/* ── Module 2 page-specific styles ─────────────────────── */
/* Linked by module_2.html only. Loaded after operators-manual.css. */
/* Do not add rules here that are intended for other pages.         */

/* Hero: column widths and gap differ from shared defaults */
.hero { grid-template-columns: minmax(0, 495px) minmax(380px, 1fr); gap: 20px; }
.hero-copy { max-width: 455px; }
.primary-button { min-width: 221px; gap: 18px; }


/* Divider: tighter spacing on this page */
.divider { margin: 8px 0 12px; }

/* Underlined decorator: centred on this page */
.underlined::after { margin: 10px auto 0; }

/* Core intro block (hero sub-section) */
.core h2 { margin-bottom: 4px; font-family: var(--serif); font-size: 18px; line-height: 1.15; }
.core p { margin-bottom: 0; font-size: 14px; line-height: 1.55; }

/* Card containers: override shared padding so inner components control spacing */
.card { padding: 0; min-height: auto; background: rgba(255, 250, 241, .52); }

/* ── Helps section ──────────────────────────────────────── */
.helps h2, .failures h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.1; text-align: center; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 31px; padding: 10px 32px 8px; }
.help-item { display: grid; grid-template-columns: 74px 1fr; gap: 18px; min-height: 94px; padding-right: 23px; border-right: 1px solid var(--line); }
.help-item:last-child { border-right: 0; }
.help-icon { width: 57px; height: 57px; display: grid; place-items: center; margin-left: 14px; border-radius: 50%; background: #dfdcbd; color: #596338; }
.help-item:nth-child(2) .help-icon { background: #f2d8aa; color: #be7118; }
.help-item:nth-child(3) .help-icon { background: #f1d1bd; color: #c22c16; }
svg { display: block; }
.help-icon svg { width: 42px; height: 42px; stroke: currentColor; stroke-width: 2; fill: none; }
.help-item h3 { margin-bottom: 7px; font-family: var(--serif); font-size: 16px; font-weight: 400; line-height: 1.14; }
.help-item p { margin-bottom: 0; font-size: 12px; line-height: 1.62; }

/* ── Failures section ───────────────────────────────────── */
.failures { display: grid; grid-template-columns: minmax(0, 604px) 326px; gap: 26px; padding: 10px 7px 0; border-top: 1px solid var(--line); }
.failures h2 { text-align: left; }
.failures .intro { margin: -5px 0 11px; font-size: 12px; }
.failure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.failure-card { position: relative; min-height: 105px; display: grid; grid-template-rows: 42px 1fr; align-items: center; justify-items: center; padding: 12px 12px 11px; border: 2px solid rgba(255, 224, 152, .72); border-radius: 5px; color: #fff8e8; cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(91, 44, 10, .22), 0 5px 11px rgba(91, 44, 10, .12); }
.failure-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 28% 18%, rgba(255,255,255,.17), transparent 45%), linear-gradient(180deg, rgba(255,255,255,.08), rgba(70,21,8,.16)); pointer-events: none; }
.failure-card[aria-pressed="true"] { border-color: #fffdf1; box-shadow: 0 0 0 2px var(--olive-dark), inset 0 0 0 1px rgba(255,255,255,.35); }
.failure-card[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--olive); background: #fffdf3; font-size: 16px; font-weight: 900; }
.failure-top { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; gap: 18px; }
.failure-number { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #b56d19; background: #fffdf4; font-size: 18px; font-weight: 800; line-height: 1; }
.failure-card svg { width: 42px; height: 42px; stroke: #fff8ea; stroke-width: 1.65; fill: none; }
.failure-title { position: relative; z-index: 1; align-self: end; font-family: var(--serif); font-size: 16px; line-height: 1.12; text-align: center; text-shadow: 0 1px 2px rgba(71, 34, 13, .25); }
.risk-1 { background: linear-gradient(135deg, #8c9254, #70773e); }
.risk-2 { background: linear-gradient(135deg, #d5ac3f, #ac8428); }
.risk-3 { background: linear-gradient(135deg, #f4a523, #dd8118); }
.risk-4 { background: linear-gradient(135deg, #eba42a, #d08219); }
.risk-5 { background: linear-gradient(135deg, #e87925, #cd501a); }
.risk-6 { background: linear-gradient(135deg, #de4e16, #ba3210); }
.risk-7 { background: linear-gradient(135deg, #ee4b18, #cd3012); }
.risk-8 { background: linear-gradient(135deg, #dc3215, #b51f10); }
.risk-9 { background: linear-gradient(135deg, #c53214, #981c0d); }
.detail-risk-1 { --detail-risk: #70773e; }
.detail-risk-2 { --detail-risk: #ac8428; }
.detail-risk-3 { --detail-risk: #dd8118; }
.detail-risk-4 { --detail-risk: #d08219; }
.detail-risk-5 { --detail-risk: #cd501a; }
.detail-risk-6 { --detail-risk: #ba3210; }
.detail-risk-7 { --detail-risk: #cd3012; }
.detail-risk-8 { --detail-risk: #b51f10; }
.detail-risk-9 { --detail-risk: #981c0d; }
.risk-note { margin: 9px 0 0; display: flex; align-items: center; gap: 7px; font-size: 11px; }
.risk-note span { width: 16px; height: 16px; display: inline-grid; place-items: center; border: 1px solid var(--olive); border-radius: 50%; color: var(--olive); font-weight: 700; line-height: 1; }

/* ── Detail panel ───────────────────────────────────────── */
.detail-panel { min-height: 383px; padding: 20px 17px 15px; border: 1px solid var(--line); border-left: 4px solid var(--olive); border-radius: 7px; background: rgba(255, 250, 241, .66); }
.detail-title { display: flex; align-items: center; gap: 17px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.detail-number { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fffaf0; background: var(--detail-risk, var(--olive)); font-size: 20px; font-weight: 800; }
.detail-title svg { width: 45px; height: 45px; stroke: var(--olive); stroke-width: 1.7; fill: none; }
.detail-title h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.1; }
.detail-row { display: grid; grid-template-columns: 45px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row svg { width: 40px; height: 40px; color: var(--olive); stroke: currentColor; stroke-width: 2; fill: none; }
.detail-row h3 { margin-bottom: 6px; color: var(--olive-dark); font-family: var(--serif); font-size: 18px; line-height: 1.15; }
.detail-row p { margin: 0; font-size: 13px; line-height: 1.55; }

/* ── Lower section ──────────────────────────────────────── */
.lower { display: grid; grid-template-columns: minmax(0, 470px) minmax(390px, 1fr); gap: 25px; margin-top: 12px; align-items: start; }
.checklist { padding: 8px 17px 7px; }
.checklist h2, .field-note h2 { display: inline-block; margin: 0 0 5px; padding-bottom: 6px; border-bottom: 2px solid var(--red); font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.1; }
.check-row { border-top: 1px solid var(--line); }
.check-trigger { width: 100%; min-height: 18px; display: grid; grid-template-columns: 18px 1fr 16px; align-items: center; gap: 10px; padding: 2px 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-align: left; font-size: 11px; font-weight: 600; }
.box { width: 13px; height: 13px; border: 1px solid var(--olive); background: #faf6e8; }
.check-trigger[aria-expanded="true"] .box::after { content: "✓"; display: block; margin-top: -6px; color: var(--olive-dark); font-size: 16px; font-weight: 900; }
.chevron { justify-self: end; border: solid currentColor; border-width: 0 1.5px 1.5px 0; width: 7px; height: 7px; transform: rotate(45deg); transition: transform .16s ease; }
.check-trigger[aria-expanded="true"] .chevron { transform: rotate(225deg); }
.check-note { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .16s ease; }
.check-note[data-open="true"] { grid-template-rows: 1fr; }
.check-note-inner { overflow: hidden; }
.check-note p { margin: 1px 0 4px 30px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: rgba(247, 239, 228, .66); font-size: 10px; line-height: 1.34; }
.field-note { position: relative; min-height: 242px; padding: 13px 19px; overflow: hidden; background: radial-gradient(circle at 78% 12%, rgba(217, 156, 57, .16), transparent 13rem), linear-gradient(90deg, rgba(255,250,241,.72), rgba(250,241,224,.58)), rgba(255, 250, 241, .56); }
.plant { position: absolute; left: 40px; bottom: 31px; width: 86px; height: 137px; color: var(--olive-dark); opacity: .72; }
.note-paper { position: absolute; right: 58px; bottom: 24px; width: 294px; min-height: 190px; padding: 33px 34px 24px; transform: rotate(-3deg); background: repeating-linear-gradient(0deg, transparent 0 18px, rgba(170, 126, 68, .16) 19px), repeating-linear-gradient(90deg, transparent 0 18px, rgba(170, 126, 68, .11) 19px), #f5e1bd; box-shadow: 0 13px 22px rgba(79, 48, 22, .2); font-family: var(--hand); font-size: 15px; line-height: 1.52; }
.pin { position: absolute; left: 50%; top: -10px; width: 19px; height: 19px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f8d58e, #af6716 70%); box-shadow: 0 3px 7px rgba(66, 35, 9, .35); }

/* ── Responsive overrides ───────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .failures, .lower { grid-template-columns: 1fr; }
  .help-grid, .failure-grid { grid-template-columns: 1fr; }
  .help-item { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .help-item:last-child { border-bottom: 0; }
  .note-paper { position: relative; right: auto; bottom: auto; margin: 18px 0 0 96px; }
  .field-note { min-height: 310px; }
}
