/* =====================================================================
   FYE 100 Pathfinder Guidebook: shared styles
   Link from every page as: css/styles.css?v=N  (bump N after any change)
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --blue: #00467f; --dark-blue: #00345f; --navy: #011d41; --sky: #3bb3e5; --gold: #e7a614;
  --soft-blue: #eaf4fb; --soft-gold: #fff5dc; --ink: #17212b; --muted: #52606d; --border: #d9e2ea;
  /* chapter accent (override per chapter on <body> if desired) */
  --accent: var(--sky); --accent-ink: #0b5f86; --accent-soft: #e3f4fc;
  --radius: 14px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0; font-family: Aptos, Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.75; color: var(--ink); background: #fff;
}
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { color: var(--navy); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ic { width: 18px; height: 18px; flex-shrink: 0; }
.placeholder { background: #fff3f3 !important; outline: 2px dashed #c0392b; outline-offset: 2px; }
.draft-flag { display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 700; color: #8b2a1c; background: #fff; border: 1px dashed #c0392b; border-radius: 6px; padding: 2px 8px; }

/* ---------- Running header ---------- */
.bookbar { background: var(--navy); color: #fff; border-bottom: 4px solid var(--accent); }
.bookbar .inner { max-width: 1320px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; text-decoration: none; }
.brand img { width: auto; display: block; flex-shrink: 0; }
.brand .logo { height: 32px; }
.brand .logo-full { height: 38px; }
.brand-text { border-left: 1px solid rgba(255,255,255,.35); padding-left: 12px; margin-left: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text .book { font-weight: 700; font-size: .95rem; }
.brand-text .where { font-size: .8rem; color: #bfe6f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contents-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; color: #fff; border: 2px solid rgba(255,255,255,.7); border-radius: 999px; padding: 5px 14px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.contents-btn:hover { background: rgba(255,255,255,.12); }

/* ---------- Chapter banner (chapter openers) ---------- */
.banner { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--blue) 0%, var(--dark-blue) 55%, var(--navy) 100%); color: #fff; }
.banner .inner { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 44px 16px 150px 316px; }
.chapter-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--gold); }
.chapter-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--navy); font-size: 1.35rem; letter-spacing: 0; }
.banner h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.1; margin: 14px 0 12px; font-weight: 800; max-width: 16ch; }
.banner .tagline { font-size: 1.15rem; color: #d6eefa; margin: 0; max-width: 34ch; }
.banner-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 170px; }

/* ---------- Page shell: chapter sidebar | reading area ---------- */
.shell { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); }

.chapnav { border-right: 1px solid var(--border); background: var(--soft-blue); }
.chapnav details { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 28px 18px 28px 20px; }
.chapnav summary { list-style: none; cursor: default; }
.chapnav summary::-webkit-details-marker { display: none; }
.chapnav .chap-label { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.chapnav .chap-title { display: block; font-weight: 800; color: var(--navy); line-height: 1.3; margin: 2px 0 18px; font-size: 1rem; }
.chapnav .summary-toggle { display: none; }
.chapnav ol { list-style: none; margin: 0; padding: 0; }
.chapnav li { margin: 2px 0; }
.chapnav a.les { display: grid; grid-template-columns: 34px 1fr; gap: 4px; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--blue); font-size: .93rem; line-height: 1.35; }
.chapnav a.les:hover { background: #fff; }
.chapnav a.les .n { font-weight: 800; color: var(--accent-ink); }
.chapnav a.les[aria-current="page"] { background: #fff; color: var(--navy); font-weight: 700; box-shadow: inset 4px 0 0 var(--accent); }
.chapnav .tip-n { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: #8a5d00; padding-top: 3px; }
.chapnav .sections { margin: 4px 0 8px 44px; border-left: 2px solid var(--border); }
.chapnav .sections a { display: block; padding: 4px 0 4px 12px; margin-left: -2px; border-left: 2px solid transparent; font-size: .85rem; color: var(--muted); text-decoration: none; line-height: 1.35; }
.chapnav .sections a:hover { color: var(--blue); }
.chapnav .sections a.on { color: var(--navy); font-weight: 700; border-left-color: var(--accent); }
.chapnav .home-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: .85rem; font-weight: 700; text-decoration: none; }

.reading { padding: 36px 40px 56px; min-width: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* Content rows: main text column + optional margin-note column */
.row { display: grid; grid-template-columns: minmax(0, 660px) 220px; column-gap: 44px; }
.row > .main { grid-column: 1; min-width: 0; }
.row > .note-col { grid-column: 2; }
.row.wide { grid-template-columns: minmax(0, 924px); }
.row.wide > .main { grid-column: 1; }
.main > p:last-child { margin-bottom: 0; }
.gap-sm { margin-top: 28px; }
.gap-md { margin-top: 44px; }
.gap-lg { margin-top: 56px; }

/* Rest-stop divider between major sections */
.rest { display: block; width: 120px; height: 12px; margin: 72px auto 64px 270px;
  background:
    radial-gradient(circle, var(--accent) 5px, transparent 6px) center / 12px 12px no-repeat,
    linear-gradient(90deg, var(--border) 50%, transparent 50%) left center / 12px 2px repeat-x; }
.row.wide + .rest, .rest.wide { margin-left: 402px; }

/* Headings */
.h2wrap { margin: 0 0 20px; }
h2 { font-size: 1.6rem; line-height: 1.25; margin: 0;
  display: inline; background-image: linear-gradient(transparent 62%, var(--accent-soft) 62%); padding-right: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h3 { font-size: 1.2rem; margin: 0; line-height: 1.3; }

/* ---------- Lesson header ---------- */
.lesson-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.reading h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.12; margin: 8px 0 10px; font-weight: 800; }
.lesson-sub { font-size: 1.2rem; color: var(--blue); margin: 0 0 20px; }
.lesson-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .88rem; color: var(--muted); }
.lesson-meta span { display: inline-flex; align-items: center; gap: 6px; }
.progress { flex: 1 1 140px; max-width: 200px; height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.lede { font-size: 1.15rem; }

/* ---------- Margin notes: Key Term, Pathfinder Tip, See Also ---------- */
.note { border-radius: 12px; padding: 14px 16px; font-size: .9rem; line-height: 1.55; margin: 6px 0 20px; }
.note .label { display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.note p { margin: 0; }
.note-term { background: var(--soft-blue); border-top: 3px solid var(--blue); }
.note-term .label { color: var(--blue); }
.note-term dfn { font-style: normal; font-weight: 800; color: var(--navy); }
.note-tip { background: var(--soft-gold); border-top: 3px solid var(--gold); }
.note-tip .label { color: #7a5500; }
.note-see { background: #fff; border: 1px dashed var(--border); }
.note-see .label { color: var(--muted); }

/* ---------- In-text components ---------- */
.pull { margin: 8px 0 28px; padding: 6px 0 6px 22px; border-left: 5px solid var(--accent); font-size: 1.3rem; line-height: 1.45; font-weight: 700; color: var(--navy); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--blue); color: #fff; }
.card-head h3 { color: #fff; font-size: 1.05rem; }
.card-head svg { width: 22px; height: 22px; flex-shrink: 0; }
.card-body { padding: 18px 20px 20px; font-size: 1rem; }
.card-body p:last-child { margin-bottom: 0; }

.compare { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.compare li { display: grid; grid-template-columns: 1fr auto 1fr; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare .side { padding: 14px 18px; font-size: .98rem; }
.compare .tag { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.compare .before { background: #f6f8fa; color: #34414d; }
.compare .before .tag { color: var(--muted); }
.compare .now { background: var(--accent-soft); }
.compare .now .tag { color: var(--accent-ink); }
.compare .arrow { display: grid; place-items: center; width: 36px; background: linear-gradient(90deg, #f6f8fa 50%, var(--accent-soft) 50%); color: var(--accent-ink); }

.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checks .box { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--accent); display: grid; place-items: center; color: var(--accent-ink); margin-top: 2px; }
.checks .box svg { width: 16px; height: 16px; }

.expect { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.expect-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--soft-blue); border-bottom: 1px solid var(--border); }
.expect-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: #fff; flex-shrink: 0; }
.expect-icon svg { width: 22px; height: 22px; }
.expect-body { padding: 20px 22px 22px; }
.expect-body p:last-child { margin-bottom: 0; }

.script { display: grid; gap: 12px; margin: 20px 0 18px; }
.script figure { margin: 0; border-radius: 12px; padding: 14px 18px; }
.script figcaption { display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.script blockquote { margin: 0; font-size: 1rem; }
.script .no { background: #f6f8fa; border: 1px solid var(--border); }
.script .no figcaption { color: #8b2a1c; }
.script .no blockquote { color: #4a5663; }
.script .yes { background: #fff; border: 2px solid var(--accent); }
.script .yes figcaption { color: #165c32; }

/* Sticky-note block: "Why this matters" and in-text stops (Reflect, Try It) */
.sticky { position: relative; border-radius: 4px 4px 4px 22px; background: var(--soft-gold); border: 1px solid #f0dca6; padding: 40px 36px 32px; box-shadow: 0 10px 22px -14px rgba(1,29,65,.35); }
.sticky::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 24px; transform: translateX(-50%) rotate(-2deg); background: rgba(59,179,229,.35); border-left: 1px dashed rgba(1,29,65,.2); border-right: 1px dashed rgba(1,29,65,.2); }
.sticky .label { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7a5500; margin-bottom: 8px; }
.sticky h2 { display: block; background-image: none; padding: 0; font-size: 1.4rem; margin: 0 0 12px; }
.sticky p:last-child { margin-bottom: 0; }

.closing { font-size: 1.12rem; }
.closing strong { color: var(--navy); }

/* ---------- Chapter opener parts ---------- */
.obj-intro { margin: 0 0 20px; color: var(--muted); }
.objectives { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.objectives li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.obj-letter { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--soft-blue); color: var(--blue); font-weight: 800; font-size: 1.1rem; }
.obj-text { margin: 0; }
.obj-text strong { color: var(--navy); }
.in-course { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); border: 1px dashed var(--border); border-radius: 999px; padding: 2px 10px; }
.in-course svg { width: 15px; height: 15px; }

.skill-groups { display: grid; gap: 28px; }
.skill-group h3 { margin: 0 0 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 700; font-size: .95rem; line-height: 1.2; }
.badge-10es { background: var(--blue); color: #fff; }
.badge-10es .n { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--blue); font-size: .85rem; }
.badge-focus { background: var(--navy); box-shadow: inset 0 0 0 2px var(--gold); }
.badge-focus .focus { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); border-left: 1px solid rgba(255,255,255,.35); padding-left: 8px; margin-left: 2px; }
.badge-be { background: var(--accent-soft); color: var(--navy); border: 2px solid var(--accent); padding: 5px 14px; }
.badge-be svg { width: 18px; height: 18px; }
.skill-note { margin: 10px 0 0; font-size: .92rem; color: var(--muted); }

.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lesson-card { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; border: 1px solid var(--border); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--ink); background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.lesson-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(1,29,65,.45); }
.lesson-num { font-weight: 800; font-size: 1.25rem; color: var(--accent-ink); line-height: 1.2; padding-top: 2px; }
.lesson-card h3 { font-size: 1.15rem; color: var(--blue); }
.lesson-card:hover h3 { text-decoration: underline; }
.lesson-card p { margin: 4px 0 0; }
.lesson-card .lesson-meta { margin-top: 8px; font-size: .85rem; gap: 6px 14px; }
.lesson-card .lesson-meta svg { width: 14px; height: 14px; }
.lesson-card.tip { border-left-color: var(--gold); background: #fffdf7; }
.lesson-card.tip .lesson-num { color: #8a5d00; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 6px; }

.start-row { margin-top: 48px; text-align: center; }
.start-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 1.1rem; text-decoration: none; padding: 14px 28px; border-radius: 999px; box-shadow: 0 6px 0 #b98200; transition: transform .1s ease, box-shadow .1s ease; }
.start-btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 #b98200; }
.start-btn svg { width: 22px; height: 22px; }

/* ---------- Page nav (prev / next) ---------- */
.pagenav { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pagenav a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; color: var(--blue); border: 2px solid var(--border); border-radius: 999px; padding: 8px 18px; }
.pagenav a:hover { border-color: var(--blue); }
.pagenav .next { margin-left: auto; text-align: right; }
.pagenav small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; line-height: 1.1; }

/* ---------- Book home ---------- */
.hero { background: linear-gradient(160deg, var(--blue) 0%, var(--dark-blue) 55%, var(--navy) 100%); color: #fff; position: relative; overflow: hidden; }
.hero .inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 64px 16px 170px; }
.hero .eyebrow { margin: 0; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1.05; margin: 14px 0 14px; font-weight: 800; max-width: 14ch; }
.hero .tagline { font-size: 1.2rem; color: #d6eefa; margin: 0 0 30px; max-width: 40ch; }
.home { max-width: 960px; margin: 0 auto; padding: 56px 16px 64px; }
.home-intro { max-width: 65ch; font-size: 1.1rem; }
.toc { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.toc > li { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: #fff; }
.toc .cnum { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 1.25rem; border: 2px solid var(--accent); }
.toc h3 { font-size: 1.25rem; }
.toc h3 a { text-decoration: none; }
.toc h3 a:hover { text-decoration: underline; }
.toc .cdesc { margin: 4px 0 0; color: var(--ink); }
.toc .soon { display: inline-block; margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--muted); border: 1px dashed var(--border); border-radius: 999px; padding: 1px 10px; }
.toc .toc-lessons { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--border); display: grid; gap: 4px; }
.toc .toc-lessons a { display: grid; grid-template-columns: 70px 1fr; text-decoration: none; padding: 3px 0; }
.toc .toc-lessons a:hover span:last-child { text-decoration: underline; }
.toc .toc-lessons .n { font-weight: 800; color: var(--accent-ink); }
.toc .toc-lessons .tip-n { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #8a5d00; padding-top: 3px; }
.toc > li.pending { background: #fafbfc; }
.toc > li.pending .cnum { background: #fff; border-color: var(--border); color: var(--muted); }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #c9d6e3; font-size: .88rem; padding: 18px 0; }
footer .inner { max-width: 1320px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

/* =====================================================================
   Responsive
   ===================================================================== */

/* Laptops: margin notes drop back into the text, in source order */
@media (max-width: 1180px) {
  .row { grid-template-columns: minmax(0, 680px); }
  .row > .note-col { grid-column: 1; }
  .row > * { grid-row: auto !important; }
  .row > .note-col .note { margin: 4px 0 26px; }
  .row.wide { grid-template-columns: minmax(0, 760px); }
  .rest, .row.wide + .rest, .rest.wide { margin-left: auto; margin-right: auto; }
}

/* Tablets and phones: sidebar becomes a "Lessons" button */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .chapnav { border-right: 0; border-bottom: 1px solid var(--border); }
  .chapnav details { position: static; max-height: none; padding: 0; }
  .chapnav summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
  .chapnav .chap-title { margin: 0; font-size: .95rem; }
  .chapnav .summary-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--blue); border: 2px solid var(--border); background: #fff; border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
  .chapnav details[open] .summary-toggle .when-closed,
  .chapnav details:not([open]) .summary-toggle .when-open { display: none; }
  .chapnav .panel { padding: 4px 16px 18px; }
  .reading { padding: 26px 16px 44px; }
  .banner .inner { padding: 30px 16px 124px; }
  .banner-art { height: 130px; }
  .pair { grid-template-columns: 1fr; }
  .compare li { grid-template-columns: 1fr; }
  .compare .arrow { width: auto; height: 26px; background: linear-gradient(180deg, #f6f8fa 50%, var(--accent-soft) 50%); }
  .compare .arrow svg { transform: rotate(90deg); }
  .rest { margin: 56px auto 48px !important; }
  .sticky { padding: 34px 22px 24px; }
  .brand-text .where { display: none; }
}

@media (max-width: 560px) {
  .lesson-card { grid-template-columns: 1fr; gap: 4px; }
  .objectives li { grid-template-columns: 34px 1fr; gap: 10px; padding: 16px; }
  .obj-letter { width: 34px; height: 34px; }
  .toc > li { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .toc .toc-lessons a { grid-template-columns: 56px 1fr; }
  .hero .inner { padding: 44px 16px 130px; }
  .contents-btn .long, .brand-text .long { display: none; }
  .brand .logo { height: 28px; }
  .brand .logo-full { height: 30px; }
  .brand-text { display: none; }
}

/* =====================================================================
   Print
   ===================================================================== */
@media print {
  .bookbar, .chapnav, .skip-link, .pagenav, .start-row, .banner-art, .progress { display: none !important; }
  .shell { display: block; }
  .reading { padding: 0; }
  .banner, .hero { background: none; color: var(--ink); border-bottom: 3px solid var(--ink); }
  .banner .inner, .hero .inner { padding: 0 0 12px; }
  .banner h1, .hero h1, .banner .tagline, .hero .tagline, .chapter-kicker { color: var(--ink); }
  .row { grid-template-columns: 1fr 180px; column-gap: 24px; }
  .rest { margin: 28px auto; }
  .card, .expect, .compare li, .sticky, .note, .objectives li, .lesson-card, .toc > li { break-inside: avoid; box-shadow: none; }
  footer { background: none; color: var(--ink); border-top: 1px solid var(--border); }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* =====================================================================
   Lesson components (added with Chapter 1 lessons)
   ===================================================================== */

/* 10 Essential Skills grid */
.skill-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.skill-grid li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.skill-grid .sn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: .9rem; }
.skill-grid h3 { font-size: 1.05rem; color: var(--blue); margin-top: 4px; }
.skill-grid p { margin: 4px 0 0; font-size: .96rem; }
.skill-grid li.focus { border: 2px solid var(--navy); box-shadow: inset 0 0 0 1px var(--gold); }
.skill-grid li.focus .sn { background: var(--navy); box-shadow: 0 0 0 2px var(--gold); }
.focus-tag { display: inline-block; margin-top: 4px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); background: var(--navy); border-radius: 999px; padding: 1px 9px; }

/* Benchmark / Milestone / Capstone */
.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.levels > li { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: #fff; font-size: .97rem; }
.levels h3 { font-size: 1.1rem; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.levels p { margin: 0 0 .6em; }
.levels .anchor { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); font-style: italic; }
.levels > li.target { border: 2px solid var(--accent); background: var(--accent-soft); }
.target-tag { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--navy); color: var(--gold); border-radius: 999px; padding: 1px 9px; }

/* BE behaviors */
.riff { font-family: Consolas, "Courier New", monospace; color: var(--blue); background: #fff; padding: 1px 6px; border-radius: 4px; }
.be-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.be-grid li { border: 1px solid var(--border); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.be-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.be-grid h3 { font-size: 1.1rem; margin-bottom: 4px; }
.be-grid p { margin: 0; font-size: .97rem; }
.be-grid li.lead { border-left-color: var(--navy); background: var(--soft-blue); }

/* Numbered steps with headings */
.steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: st; display: grid; gap: 14px; }
.steps li { counter-increment: st; position: relative; padding: 14px 18px 14px 62px; border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(st); position: absolute; left: 18px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: 2px; }
.steps p { margin: 0; }

/* AI use labels */
.labels { list-style: none; margin: 14px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.labels li { border: 2px solid var(--navy); border-radius: 999px; padding: 4px 16px; font-weight: 800; color: var(--navy); background: #fff; }

/* The 3 Qs */
.qs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qs li { border-top: 5px solid var(--accent); background: var(--soft-blue); border-radius: 0 0 var(--radius) var(--radius); padding: 16px 18px 18px; display: flex; flex-direction: column; }
.qs .when { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.qs h3 { font-size: 1.12rem; margin: 6px 0 12px; }
.qs .be { margin: auto 0 0; font-size: .82rem; font-weight: 700; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 8px; }

/* How-to numbered lists */
.howto { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: ht; display: grid; gap: 10px; }
.howto li { counter-increment: ht; position: relative; padding-left: 40px; }
.howto li::before { content: counter(ht); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.stepnum { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 1rem; margin-right: 10px; vertical-align: 3px; }

/* Definition lists: Blackboard areas, Office apps */
.areas, .apps { margin: 18px 0 0; display: grid; gap: 12px; }
.apps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.areas > div, .apps > div { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; background: #fff; }
.areas dt, .apps dt { font-weight: 800; color: var(--navy); }
.areas dd, .apps dd { margin: 2px 0 0; font-size: .96rem; }

/* Resource card (external link) */
.resource-card { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; border: 2px solid var(--blue); border-radius: var(--radius); padding: 18px 20px; }
.rc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue); color: #fff; }
.rc-icon svg { width: 22px; height: 22px; }
.resource-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.resource-card p { margin: 0 0 8px; }
.resource-card a { font-weight: 700; }

/* Chapter wrap-up */
.takeaways { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.takeaways li { position: relative; padding: 14px 18px 14px 52px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.takeaways li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.takeaways strong { color: var(--navy); }
.end-card { text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px 24px; }
.end-card .end-h { color: #fff; background: none; display: block; padding: 0; font-size: 1.8rem; margin-bottom: 8px; }
.end-card p { margin: 0 0 16px; color: #d6eefa; }
.end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; align-items: center; }
.end-links a { color: var(--navy); background: var(--gold); font-weight: 800; text-decoration: none; padding: 10px 22px; border-radius: 999px; }
.end-links .soon-link { color: #bfe6f7; font-size: .92rem; }

@media (max-width: 900px) {
  .skill-grid, .be-grid, .levels, .qs, .apps { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .levels, .qs, .apps { grid-template-columns: 1fr 1fr; }
}
@media print {
  .skill-grid li, .levels > li, .be-grid li, .qs li, .steps li, .takeaways li, .resource-card { break-inside: avoid; }
  .end-card { background: none; color: var(--ink); border: 2px solid var(--ink); }
  .end-card .end-h, .end-card p { color: var(--ink); }
}

/* 10ES coin icons with number badge */
.skill-grid li { grid-template-columns: 76px 1fr; gap: 16px; align-items: start; }
.skill-grid .coin { position: relative; width: 72px; height: 72px; }
.skill-grid .coin img { width: 72px; height: auto; display: block; }
.skill-grid .coin .sn { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; font-size: .85rem; border: 3px solid #fff; }
.skill-grid li.focus .coin .sn { box-shadow: 0 0 0 2px var(--gold); }
@media (max-width: 560px) {
  .skill-grid li { grid-template-columns: 60px 1fr; gap: 14px; }
  .skill-grid .coin, .skill-grid .coin img { width: 58px; height: auto; }
  .skill-grid .coin { height: 58px; }
}

/* Key takeaways: lead phrase on its own line, stronger */
.takeaways li { padding: 16px 20px 16px 54px; color: #34414d; }
.takeaways li::before { top: 22px; }
.takeaways strong { display: block; font-size: 1.14rem; line-height: 1.35; font-weight: 800; color: var(--navy); margin-bottom: 4px; }

/* 10ES badges with coin icons (chapter openers) */
.badge-10es { background: #fff; color: var(--navy); border: 1.5px solid var(--border); padding: 5px 16px 5px 5px; gap: 12px; }
.badge-10es.badge-focus { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: inset 0 0 0 2px var(--gold); }
.coin-sm { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.coin-sm img { width: 40px; height: 40px; display: block; }
.coin-sm .n { position: absolute; right: -5px; bottom: -4px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.badge-focus .coin-sm .n { border-color: var(--navy); box-shadow: 0 0 0 1.5px var(--gold); }

/* =====================================================================
   Chapter 2 components
   ===================================================================== */

/* Skill spotlight header */
.spotlight { display: flex; align-items: center; gap: 22px; padding: 20px 24px; border-radius: var(--radius); background: var(--soft-blue); border: 1px solid var(--border); }
.coin-lg { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.coin-lg img { width: 96px; height: 96px; display: block; }
.coin-lg .sn { position: absolute; right: -6px; bottom: -6px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; border: 3px solid #fff; }
.spot-label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.spot-name { margin: 2px 0 0; font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.2; }

/* Two-level comparison + dotted lists */
.levels-2 { grid-template-columns: 1fr 1fr; }
.level-sub { font-size: .8rem; font-weight: 700; color: var(--muted); }
.dots { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.dots li::marker { color: var(--accent); }
.levels .dots { font-size: .97rem; }

/* Reflect lists inside sticky notes */
.reflect-list { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.reflect-list li::marker { color: #b98200; }

.source-note { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .86rem; color: var(--muted); font-style: italic; }
.sub-h { font-size: 1.1rem; margin: 26px 0 8px; }
.main > .sub-h:first-of-type { margin-top: 18px; }

/* Option tags (Option 1 / Option 2) */
.opt-tag { flex-shrink: 0; background: var(--navy); color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; }
.expect-head .stepnum { margin-right: 0; vertical-align: 0; }

/* Resource cards */
.res-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.res-grid-3 { grid-template-columns: repeat(3, 1fr); }
.res-grid li { border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; background: #fff; display: flex; flex-direction: column; }
.res-grid h3 { font-size: 1.05rem; margin-bottom: 4px; }
.res-grid p { margin: 0 0 10px; font-size: .96rem; }
.res-grid a { margin-top: auto; font-weight: 700; font-size: .92rem; }

/* Email examples */
.emails { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.email { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.email figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.email.no figcaption { background: #fbe8e6; color: #8b2a1c; }
.email.yes figcaption { background: #e3f4ea; color: #165c32; }
.email.yes { border: 2px solid #3f9a66; }
.email-body { padding: 16px 18px; font-size: .96rem; }
.email-body p { margin: 0 0 .8em; }
.email-body p:last-child { margin: 0; }
.email-body .subj { font-weight: 800; color: var(--navy); padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.email.no .email-body { color: #4a5663; }

.anatomy { margin: 10px 0 0; padding-left: 24px; display: grid; gap: 8px; }
.anatomy li::marker { color: var(--accent-ink); font-weight: 800; }

/* Optional badge, warnings, done line, URL example, link list */
.opt-badge { display: inline-block; margin-bottom: 14px; background: var(--navy); color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }
.warn { border: 2px solid #b3261e; border-left-width: 8px; background: #fdf1ef; border-radius: 12px; padding: 16px 20px; }
.warn .label { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8b1a14; margin-bottom: 6px; }
.warn p { margin: 0 0 .6em; }
.warn p:last-child { margin: 0; }
.done { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 14px; border-radius: 10px; background: #e3f4ea; color: #165c32; font-weight: 700; }
.url-ex { background: var(--soft-blue); border-radius: 10px; padding: 10px 14px; font-weight: 700; color: var(--navy); word-break: break-all; }
.url-ex span { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.linklist { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.linklist a { font-weight: 700; }
.expect-body .note { margin: 14px 0 0; }

.end-links a.alt { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }

@media (max-width: 900px) {
  .levels-2, .res-grid, .res-grid-3, .emails { grid-template-columns: 1fr; }
  .spotlight { gap: 16px; padding: 16px; }
  .coin-lg, .coin-lg img { width: 72px; height: 72px; }
  .spot-name { font-size: 1.3rem; }
}
@media print {
  .res-grid li, .email, .warn, .spotlight { break-inside: avoid; }
  .warn { background: none; }
}

/* External links (open in a new tab): small arrow cue */
a[target="_blank"]::after { content: "\2197"; display: inline-block; margin-left: 3px; font-size: .8em; text-decoration: none; }
.start-btn[target="_blank"]::after, .end-links a[target="_blank"]::after { content: none; }
@media print { a[target="_blank"]::after { content: " (" attr(href) ")"; } }
.res-grid li.more { background: var(--soft-blue); border-top-color: var(--navy); }

/* Three levels of AI use (matches the BE the Change workbook cards) */
.ai-levels { display: grid; gap: 14px; margin: 18px 0 22px; }
.ai-level { padding: 16px 20px 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 52, 95, .06); }
.ai-level h4 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 1.1rem; color: var(--dark-blue); }
.ai-level p { margin: 0 0 .6em; }
.ai-level p:last-child { margin-bottom: 0; }
.ai-level .ai-example { color: var(--muted); font-style: italic; font-size: .95rem; }
.ai-dots { display: inline-flex; gap: 4px; flex: none; }
.ai-dots i { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--blue); border-radius: 50%; }
.ai-dots i.on { background: var(--gold); border-color: var(--gold); }
@media print { .ai-level { break-inside: avoid; box-shadow: none; } .ai-dots i.on { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* =====================================================================
   Mile Marker pages
   ===================================================================== */
.mm-submit { display: grid; grid-template-columns: 52px 1fr; gap: 16px; border: 2px solid var(--navy); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.mm-submit-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--gold); }
.mm-submit-icon svg { width: 24px; height: 24px; }
.mm-h { display: block; background: none; padding: 0; font-size: 1.2rem; margin-bottom: 6px; }
.mm-submit p { margin: 0 0 .5em; }
.mm-submit p:last-child { margin: 0; }

.mm-q { border: 1px solid var(--border); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 18px 22px; background: #fff; }
.mm-num { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7a5500; margin-bottom: 4px; }
.mm-q h3 { font-size: 1.15rem; margin-bottom: 8px; }
.mm-prompt { color: #34414d; }
.mm-strong { margin-top: 12px; padding: 12px 16px; border-radius: 10px; background: var(--soft-blue); }
.mm-strong-label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 2px; }
.mm-strong p { margin: 0; }

.prompt-box { margin: 14px 0; padding: 14px 18px; border: 2px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); }
.prompt-label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.prompt-box p { margin: 0; font-style: italic; }

.care { border: 2px solid var(--navy); border-left-width: 8px; border-radius: 12px; padding: 16px 20px; background: #fff; }
.care .label { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.care p { margin: 0; }

.rubric { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: .97rem; }
.rubric thead th { background: var(--navy); color: #fff; text-align: left; padding: 10px 16px; font-size: .85rem; letter-spacing: .04em; }
.rubric tbody th { text-align: left; vertical-align: top; padding: 12px 16px; width: 34%; color: var(--navy); white-space: nowrap; }
.rubric td { padding: 12px 16px; vertical-align: top; }
.rubric tbody tr { border-top: 1px solid var(--border); }
.rubric tbody tr:nth-child(even) { background: #f7f9fb; }
.rubric .lvl { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; margin-right: 10px; }

/* Fill-in form */
.mm-form { border: 2px solid var(--border); border-radius: var(--radius); padding: 24px; background: #fbfcfd; }
.mm-print-title { display: none; }
.mm-id { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 8px; }
.mm-field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.mm-field label, .mm-field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; padding: 0; }
.mm-field .mm-num { margin-bottom: 2px; }
.mm-form input, .mm-form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); border: 1.5px solid #9aa9b7; border-radius: 8px; padding: 10px 12px; background: #fff; }
.mm-form textarea { resize: vertical; line-height: 1.6; min-height: 150px; }
.mm-form input:focus, .mm-form textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.mm-form input[aria-invalid="true"] { border-color: #b3261e; }
.req { font-weight: 400; color: var(--muted); font-size: .88rem; }
.mm-err { margin: 6px 0 0; color: #8b1a14; font-weight: 700; font-size: .92rem; }
.mm-pairs { display: grid; gap: 8px; }
.mm-pair { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.mm-pair.three { grid-template-columns: 1fr 1fr 1.5fr; }
.mm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.mm-save { border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.05rem; }
.mm-save svg { width: 20px; height: 20px; }
.mm-clear { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .92rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.mm-how { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.mm-out { display: none; }

@media (max-width: 560px) {
  .mm-id, .mm-pair, .mm-pair.three { grid-template-columns: 1fr; }
  .mm-form { padding: 16px; }
  .rubric tbody th { white-space: normal; width: 42%; }
  .mm-submit { grid-template-columns: 1fr; }
}

@media print {
  .mm-form input, .mm-form textarea, .mm-actions, .mm-how, .req, .mm-err { display: none !important; }
  .mm-out { display: block; white-space: pre-wrap; min-height: 2.2em; padding: 4px 0 10px; border-bottom: 1px solid #999; }
  .mm-field textarea + .mm-out { min-height: 8em; }
  .mm-form { border: 0; padding: 0; background: none; }
  .mm-pair { grid-template-columns: 1fr 2fr; }
  .mm-pair.three { grid-template-columns: 1fr 1fr 1.5fr; }
  .mm-q, .mm-submit, .rubric tr { break-inside: avoid; }
  /* Save-as-PDF from the button: print only the form */
  body.mm-printing .bookbar, body.mm-printing .chapnav, body.mm-printing footer,
  body.mm-printing .crumbs, body.mm-printing .skip-link { display: none !important; }
  body.mm-printing main > *:not(#form) { display: none !important; }
  body.mm-printing #form > .row:first-child, body.mm-printing #form .note-col { display: none !important; }
  body.mm-printing .mm-print-title { display: block; font-size: 1.4rem; font-weight: 800; color: #000; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 3px solid #000; }
  body.mm-printing .mm-field { break-inside: avoid; }
  body.mm-printing .row, body.mm-printing .row.wide { grid-template-columns: 1fr !important; }
  body.mm-printing #form { margin: 0; }
}

/* Example AI use label (as faculty paste it into Blackboard assignments) */
.ai-tag-ex { margin: 6px 0 22px; }
.ai-tag-ex figcaption { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ai-tag { border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: 8px; padding: 12px 16px; background: #fff; font-size: .96rem; }
.ai-tag p { margin: 0 0 4px; }
.ai-tag-level { font-weight: 800; color: var(--dark-blue); display: flex; align-items: center; gap: 10px; }
.ai-chars b { font-weight: 400; color: var(--blue); font-size: 1.05rem; }
.ai-chars b.on { color: var(--gold); }
.ai-tag-policy { font-size: .88rem; color: var(--muted); margin: 0; }

/* Sidebar: wider label column so two-word labels (Trail Tip, Mile Marker, Wrap Up) fit cleanly */
.chapnav a.les { grid-template-columns: 52px 1fr; gap: 6px; }
.chapnav .tip-n { font-size: .64rem; letter-spacing: .03em; line-height: 1.25; padding-top: 3px; word-break: normal; overflow-wrap: normal; }
.chapnav .sections { margin-left: 62px; }

/* Jump-to-form button on Mile Marker pages */
.jump-btn { margin-top: 12px; font-size: 1rem; padding: 11px 22px; }
.jump-btn svg { width: 20px; height: 20px; }
@media print { .jump-btn { display: none !important; } }

/* Footer: light blue top line to match the header */
footer { border-top: 4px solid var(--accent); }
@media print { footer { border-top: 1px solid var(--border); } }

/* Module overview: skills in the side column next to the objectives, tighter section spacing */
.obj-row { grid-template-columns: minmax(0, 640px) 264px; column-gap: 32px; }
.skills-side { padding: 18px 18px 20px; border-radius: var(--radius); background: var(--soft-blue); border: 1px solid var(--border); align-self: start; margin-top: 4px; }
.skills-side .side-h { display: block; background: none; padding: 0; font-size: 1.15rem; margin: 0 0 14px; }
.skills-side .skill-group + .skill-group { margin-top: 18px; }
.skills-side .skill-group h3 { font-size: .72rem; margin-bottom: 8px; }
.skills-side .badges { flex-direction: column; align-items: stretch; gap: 8px; }
.skills-side .badge { font-size: .88rem; }
.skills-side .badge-focus { flex-wrap: wrap; row-gap: 2px; }
.skills-side .badge-focus .focus { border-left: 0; padding-left: 0; margin-left: 0; flex-basis: 100%; padding-left: 52px; font-size: .64rem; }
.skills-side .badge-be { align-self: flex-start; }
.skills-side .skill-note { font-size: .84rem; }
.opener .rest { margin-top: 56px; margin-bottom: 48px; }
.opener .row.obj-row + .rest { margin-left: 402px; }
@media (max-width: 1180px) {
  .obj-row { grid-template-columns: minmax(0, 760px); }
  .skills-side { margin-top: 28px; }
  .skills-side .badges { flex-direction: row; flex-wrap: wrap; }
  .skills-side .badge-focus .focus { flex-basis: auto; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.35); }
  .opener .row.obj-row + .rest { margin-left: auto; }
}

/* Skill badge text: name + optional focus label */
.btext { display: inline-flex; align-items: center; gap: 8px; }
.badge-focus .btext .focus { border-left: 1px solid rgba(255,255,255,.35); padding-left: 8px; margin-left: 0; }
.obj-row { grid-template-columns: minmax(0, 600px) 300px; }
.skills-side .badge { padding: 7px 16px 7px 7px; border-radius: 18px; gap: 14px; }
.skills-side .btext { flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.25; }
.skills-side .badge-focus { flex-wrap: nowrap; }
.skills-side .badge-focus .btext .focus { border-left: 0; padding-left: 0; flex-basis: auto; font-size: .64rem; line-height: 1.2; }
@media (max-width: 1180px) {
  .skills-side .btext { flex-direction: row; align-items: center; gap: 8px; }
  .skills-side .badge-focus .btext .focus { border-left: 1px solid rgba(255,255,255,.35); padding-left: 8px; }
}

/* Phone polish: bigger tap targets and no text under 11px */
@media (max-width: 900px) {
  .chapnav .home-link { padding: 10px 0; }
  .chapnav a.les { padding-top: 10px; padding-bottom: 10px; }
  .resource-card a, .res-grid a { display: inline-block; padding: 8px 0; }
  .chapnav .tip-n, .skills-side .badge-focus .btext .focus, .badge-focus .focus { font-size: .7rem; }
}

/* Banner art scales with screen width so the sun isn't clipped on wide screens */
.banner-art { height: clamp(130px, 14.2vw, 240px); }
.banner .inner { padding-bottom: calc(clamp(130px, 14.2vw, 240px) - 10px); }
.hero .inner { padding-bottom: calc(clamp(130px, 14.2vw, 240px) + 10px); }
@media (max-width: 900px) { .banner-art { height: 130px; } .banner .inner { padding-bottom: 124px; } }
@media (max-width: 560px) { .hero .inner { padding-bottom: 130px; } }

/* =====================================================================
   10 Essential Skills toolbar (module overviews) and slim strip (lessons)
   ===================================================================== */
.skillbar { background: var(--soft-blue); border-bottom: 1px solid var(--border); }
.skillbar .sb-inner { max-width: 1320px; margin: 0 auto; padding: 12px 16px 12px 316px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.sb-label { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.sb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.tb-skill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 14px 4px 4px; font-weight: 700; font-size: .9rem; color: var(--navy); }
.tb-skill .coin-sm, .tb-skill .coin-sm img { width: 34px; height: 34px; }
.tb-skill .coin-sm .n { min-width: 18px; height: 18px; font-size: .64rem; right: -5px; bottom: -4px; }
.skillbar.slim { background: none; border: 0; margin: -14px 0 16px; }
.skillbar.slim .sb-inner { padding: 0; max-width: none; gap: 6px 10px; }
.skillbar.slim .sb-label { font-size: .66rem; color: var(--muted); }
.skillbar.slim .tb-skill { padding: 0; border: 0; background: none; }
.skillbar.slim .tb-skill .coin-sm, .skillbar.slim .tb-skill .coin-sm img { width: 30px; height: 30px; }
@media (max-width: 900px) {
  .skillbar .sb-inner { padding: 12px 16px; }
  .skillbar:not(.slim) .sb-label { flex-basis: 100%; }
  .skillbar.slim .sb-inner { padding: 0; }
}
@media print { .skillbar.slim { display: none; } .skillbar { background: none; } }

/* AI Literacy BE capsules, kept separate from the 10ES skills */
.be-block { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--border); }
.be-h { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.be-block .skill-note { margin-top: 10px; }

/* Taller sky in the banner art so the bigger sun can rise above the mountains */
.banner-art { height: clamp(170px, 20vw, 330px); }
.banner .inner { padding-bottom: calc(clamp(170px, 20vw, 330px) - 50px); }
.hero .inner { padding-bottom: calc(clamp(170px, 20vw, 330px) - 20px); }
@media (max-width: 900px) { .banner-art { height: 150px; } .banner .inner { padding-bottom: 120px; } }
@media (max-width: 560px) { .hero .inner { padding-bottom: 140px; } }

/* Keep the sun whole on very wide or zoomed-out screens */
.banner-art { height: clamp(170px, 20vw, 560px); }
.banner .inner { padding-bottom: calc(clamp(170px, 20vw, 560px) - 50px); }
.hero .inner { padding-bottom: calc(clamp(170px, 20vw, 560px) - 20px); }
@media (max-width: 900px) { .banner-art { height: 150px; } .banner .inner { padding-bottom: 120px; } }
@media (max-width: 560px) { .hero .inner { padding-bottom: 140px; } }

/* Home intro spans the same width as the contents list */
.home .home-intro { max-width: none; margin: 0; padding: 18px 22px; border-radius: var(--radius); background: var(--soft-blue); border: 1px solid var(--border); border-left: 5px solid var(--accent); }

/* ---------- Module 3 components ---------- */
.step-h { font-size: 1.2rem; margin: 0 0 10px; display: flex; align-items: center; }
.step-h .stepnum { flex-shrink: 0; }
.bucket-list { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 10px; }
.bucket-list li { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: #fff; }
.bucket { justify-self: start; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 3px 12px; }
.must .bucket { background: #fde8e6; color: #8b1a14; border: 1px solid #f0b8b2; }
.should .bucket { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid #b7e0f3; }
.could .bucket { background: #f1f3f5; color: #3d4a56; border: 1px solid #d6dde3; }
.quote { margin: 0 0 26px; padding: 4px 0 4px 22px; border-left: 5px solid var(--gold); }
.quote blockquote { margin: 0; font-size: 1.3rem; line-height: 1.45; font-weight: 700; color: var(--navy); }
.quote figcaption { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.quote figcaption::before { content: "— "; }
.quote-sm blockquote { font-size: 1.08rem; }
.moments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.moments-2 { grid-template-columns: 1fr 1fr; }
.moments li { border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px; background: #fff; font-size: .98rem; }
.moments q { quotes: "\201C" "\201D"; font-style: italic; }
.m-label { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.batteries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.battery { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.battery.wide { grid-column: 1 / -1; }
.b-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--blue); color: #fff; }
.b-head h3 { color: #fff; font-size: 1.1rem; }
.b-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy); flex-shrink: 0; }
.b-icon svg { width: 22px; height: 22px; }
.b-body { padding: 16px 20px 18px; font-size: .98rem; }
.b-label { margin: 14px 0 2px !important; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.b-label.recharge { color: #7a5500; }
.battery .dots, .expect .dots { margin-top: 4px; gap: 4px; }
.battery.wide .b-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.battery.wide .b-body > p:not(.b-label) { grid-column: 1 / -1; }
.battery.wide .b-body > .b-label:first-of-type { grid-column: 1; grid-row: 3; }
.battery.wide .b-body > .dots:first-of-type { grid-column: 1; grid-row: 4; }
.battery.wide .b-body > .b-label.recharge { grid-column: 2; grid-row: 3; }
.battery.wide .b-body > .dots:last-of-type { grid-column: 2; grid-row: 4; }
.signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.signs li { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.signs .b-icon { background: var(--soft-blue); color: var(--blue); margin-bottom: 10px; }
.signs h3 { font-size: 1.1rem; margin-bottom: 4px; }
.signs p { margin: 0; font-size: .97rem; }
.seen { border: 2px solid var(--navy); border-left-width: 8px; border-radius: var(--radius); padding: 22px 26px; background: var(--soft-blue); }
.seen p { margin: 0 0 .7em; font-style: italic; font-size: 1.05rem; }
.seen .seen-end { margin: 14px 0 0; font-style: normal; font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.stack { display: grid; gap: 16px; }
.strat { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .97rem; }
.strat strong { color: var(--navy); }
.strat-grid { margin-top: 0; }
.strat-grid .card-head { background: var(--dark-blue); }
.mm-sub { font-weight: 600 !important; color: var(--ink) !important; font-size: .96rem; margin: 12px 0 6px !important; }
.mm-form select { font: inherit; font-size: 1rem; color: var(--ink); border: 1.5px solid #9aa9b7; border-radius: 8px; padding: 10px 12px; background: #fff; min-width: 220px; }
.mm-form select:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.mm-form textarea[rows="4"] { min-height: 110px; }
.mm-q .dots { margin: 8px 0 14px; }
@media (max-width: 900px) {
  .moments { grid-template-columns: 1fr 1fr; }
  .signs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .moments, .moments-2, .batteries { grid-template-columns: 1fr; }
  .battery.wide .b-body { display: block; }
  .bucket-list li { grid-template-columns: 1fr; gap: 6px; }
  .seen { padding: 18px 18px; }
}
@media print {
  .mm-form select { display: none !important; }
  .mm-field textarea[rows="4"] + .mm-out { min-height: 5em; }
  .batteries, .signs, .moments { grid-template-columns: 1fr 1fr; }
  .battery, .signs li, .moments li, .seen { break-inside: avoid; }
}
.battery .dots, .expect .dots { align-content: start; }
@media print { body.mm-printing fieldset.mm-field { break-inside: auto; } body.mm-printing .mm-sub { break-after: avoid; } }

/* ---------- Trail Tools: time log + week planner ---------- */
.tool-pair { margin-top: 0; }
.tool-pair .card-body p { margin: 0 0 .6em; }
.tool-pair .tool-use { font-size: .86rem; font-weight: 700; color: var(--accent-ink); }
.tool-pair .card.is-here { border: 2px solid var(--gold); }
.here-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--navy); color: var(--gold); border-radius: 999px; padding: 2px 10px; }
.tool-form .mm-id.even, .mm-id.even { grid-template-columns: 1fr 1fr; }
.tool-hint { margin: 0 0 12px; font-size: .95rem; color: var(--muted); }
.wk-day { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px 14px; margin: 0 0 12px; background: #fff; min-width: 0; }
.wk-day legend { font-weight: 800; color: var(--navy); padding: 0 6px; }
.wk-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wk-cell { display: grid; gap: 6px; align-content: start; }
.wk-cell label { margin: 0; }
.wk-block { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.tool-form .wk-cell textarea { min-height: 64px; }
.tool-form .wk-cell select { min-width: 0; width: 100%; padding: 6px 10px; font-size: .92rem; }
.wk-look { margin-top: 22px; }
.prio-rows { display: grid; gap: 8px; }
.prio-row { display: grid; grid-template-columns: 30px 1fr 220px; gap: 10px; align-items: center; }
.prio-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: .85rem; }
.tool-form .prio-row select { min-width: 0; width: 100%; }
@media (max-width: 700px) {
  .wk-cells { grid-template-columns: 1fr; }
  .prio-row { grid-template-columns: 30px 1fr; }
  .prio-row select { grid-column: 2; }
  .mm-id.even { grid-template-columns: 1fr; }
}
@media print {
  body.mm-printing .wk-cells { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  body.mm-printing .wk-day { break-inside: avoid; padding: 6px 10px 8px; margin-bottom: 6px; }
  body.mm-printing .wk-cell textarea + .mm-out { min-height: 2.4em; }
  body.mm-printing .wk-cell select + .mm-out { min-height: 0; border-bottom: 0; padding: 0; font-size: .85rem; }
  body.mm-printing .wk-cell select + .mm-out:not(:empty)::before { content: "Energy: "; font-weight: 700; }
  body.mm-printing .prio-row { grid-template-columns: 30px 1fr 120px; }
}
@media (max-width: 700px) { .tool-form .mm-id.even { grid-template-columns: 1fr; } }

/* ---------- Module 4 components ---------- */
.pill-start { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--navy); border-radius: 999px; padding: 2px 10px; }
/* AI literacy callout: matches the BE capsules */
.ai-box { border: 2px solid var(--accent); border-left-width: 8px; border-radius: var(--radius); background: #f5fbfe; padding: 18px 22px 20px; margin: 8px 0 0; }
.ai-box h3 { font-size: 1.1rem; margin: 4px 0 8px; }
.ai-box p { margin: 0 0 .7em; }
.ai-box .dots { margin: 6px 0 12px; }
.ai-box-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px !important; }
.be-chip { font-size: .72rem; letter-spacing: .04em; text-transform: none; font-weight: 800; color: var(--navy); background: #fff; border: 2px solid var(--accent); border-radius: 999px; padding: 1px 10px; }
.ai-box-foot { margin: 12px 0 0 !important; padding-top: 12px; border-top: 1px dashed #9fd3ea; font-size: .95rem; color: #34414d; }
/* study strategy examples + try-it */
.examples { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.examples li { background: var(--soft-blue); border-radius: 10px; padding: 10px 14px; font-size: .97rem; }
.try-note { border-left: 5px solid var(--gold); background: var(--soft-gold); border-radius: 0 10px 10px 0; padding: 10px 14px; font-size: .97rem; margin-top: 12px; }
.try-label { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a5500; margin-bottom: 2px; }
/* recording script */
.ask-script { margin: 16px 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--soft-blue); padding: 14px 18px; }
.ask-script figcaption { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.ask-script blockquote { margin: 0; font-style: italic; }
/* SIFT */
.card.consider .card-head { background: var(--dark-blue); }
.card-foot { padding: 14px 20px; background: #fdf1ef; border-top: 1px solid #f0c8c0; font-size: .97rem; }
.sift-h { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin: 0 0 10px; }
.sift-letter { display: inline-grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 1.3rem; font-weight: 800; }
.applied { border: 1px solid #9fd3ea; background: #f5fbfe; border-radius: 10px; padding: 10px 14px; font-size: .97rem; }
.applied-label { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 2px; }
.video-link { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.video-link svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.sift-ai { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; }
.sift-ai li { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
/* AI Creep Meter */
.creep { margin: 18px 0 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 18px 20px 16px; }
.creep-title { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 0 0 10px; }
.creep-bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #1D9E75, #EF9F27, #E24B4A); }
.creep-stages { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; counter-reset: cs; }
.creep-stages li { counter-increment: cs; text-align: center; font-size: .86rem; font-weight: 700; color: var(--navy); }
.creep-stages li::before { content: counter(cs); display: block; width: 22px; height: 22px; margin: 0 auto 2px; border-radius: 50%; background: var(--soft-blue); color: var(--blue); font-size: .72rem; line-height: 22px; }
.creep-ends { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: .8rem; font-style: italic; color: var(--muted); }
.creep figcaption { margin-top: 12px; text-align: center; font-weight: 700; color: var(--navy); }
.mm-q .creep { margin: 12px 0 14px; }
/* roles + attribution */
.roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.roles li { border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px; background: #fff; }
.role-name { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.roles q { font-style: italic; }
.attr-pair { margin-top: 0; }
.attr { margin: 0; border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: 12px; padding: 14px 18px; background: var(--soft-gold); }
.attr figcaption { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a5500; margin-bottom: 6px; }
.attr blockquote { margin: 0; font-style: italic; }
@media (max-width: 700px) {
  .roles { grid-template-columns: 1fr; }
  .creep-stages { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
}
@media print { .ai-box, .creep, .roles li, .attr, .applied, .try-note { break-inside: avoid; } }
/* SMART goal */
.smart { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.smart li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: #fff; }
.smart-letter { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 1.1rem; }
.compare-one { display: grid; gap: 8px; margin-top: 14px; }
.compare-one p { margin: 0; border-radius: 10px; padding: 10px 14px; }
.compare-one .tag { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.c1-no { background: #f6f8fa; color: #34414d; } .c1-no .tag { color: var(--muted); }
.c1-yes { background: var(--accent-soft); } .c1-yes .tag { color: var(--accent-ink); }
/* Merit reminder on module overviews (Modules 4, 7, 10) */
.merit-note { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; border: 2px solid var(--gold); border-left-width: 8px; border-radius: var(--radius); background: var(--soft-gold); padding: 14px 18px; }
.merit-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 1.15rem; }
.merit-note p { margin: 0 0 .3em; } .merit-note p:last-child { margin: 0; }
.merit-h { font-weight: 800; color: var(--navy); }
/* Home contents: modules collapse to their title */
.toc { gap: 12px; }
.toc > li { padding: 16px 22px; align-items: center; }
.toc > li > div { min-width: 0; }
.toc .toc-more { margin-top: 4px; }
.toc .toc-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .9rem; font-weight: 700; color: var(--accent-ink); padding: 6px 0; list-style: none; }
.toc .toc-more summary::-webkit-details-marker { display: none; }
.toc .toc-more summary::before { content: ""; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.toc .toc-more[open] summary::before { transform: rotate(45deg); }
.toc .toc-more summary:hover { text-decoration: underline; }
.toc .toc-more summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.toc .toc-more .cdesc { margin: 4px 0 0; }
.toc h3 .soon { margin: 0 0 0 8px; vertical-align: middle; }
@media print { .toc .toc-more > *:not(summary) { display: block; } }
.toc > li { align-items: start; }
@media (max-width: 900px) {
  .toc > li { grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 16px; }
  .toc .cnum { width: 38px; height: 38px; font-size: 1.05rem; }
}

/* ---------- Module 5: money tools, dimensions, budget example ---------- */
.money-head { display: grid; grid-template-columns: 1fr 150px; gap: 10px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 6px 0 4px; }
.money-rows { display: grid; gap: 6px; }
.money-row { display: grid; grid-template-columns: 1fr 150px; gap: 10px; }
.log-row5 { display: grid; grid-template-columns: 90px 1fr 170px 130px; gap: 8px; }
.dollar { position: relative; display: block; }
.dollar::before { content: "$"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.tool-form .dollar input { padding-left: 24px; text-align: right; }
.money-total { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 0; padding: 10px 14px; border-top: 3px solid var(--navy); font-weight: 800; color: var(--navy); background: var(--soft-blue); border-radius: 0 0 10px 10px; }
.money-total output { font-size: 1.15rem; }
.left-box { margin: 6px 0 22px; border: 3px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; background: #f5fbfe; }
.left-line { display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.left-line output { font-size: 1.5rem; }
.left-msg { margin: 6px 0 0; font-weight: 600; }
.left-box.is-zero { border-color: #1a7f4b; background: #edf8f1; }
.left-box.is-zero .left-msg { color: #1a6640; }
.left-box.is-over { border-color: #b3261e; background: #fdf1ef; }
.left-box.is-over .left-msg { color: #8b1a14; }
.dims { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dims li { border: 1px solid var(--border); border-radius: 12px; padding: 14px 10px; text-align: center; font-weight: 800; color: var(--navy); background: #fff; }
.dims .dim-here { border: 3px solid var(--gold); background: var(--soft-gold); }
.dims .dim-here span { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #7a5500; }
.dims-note { margin: 10px 0 0; color: var(--muted); font-style: italic; }
.isnt-pair { margin-top: 0; }
.card.is-yes .card-head { background: #1a6640; } .card.is-no .card-head { background: #8b1a14; }
.card.is-yes .card-head svg, .card.is-no .card-head svg { width: 20px; height: 20px; }
.money-help { border: 2px solid var(--navy); border-left-width: 8px; border-radius: var(--radius); padding: 16px 20px; background: #fff; }
.money-help h3 { margin: 0 0 6px; }
.money-help .linklist { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.budget-ex { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; background: #fff; }
.budget-ex figcaption { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.budget-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.budget-ex table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.budget-ex th, .budget-ex td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.budget-ex thead th { background: var(--navy); color: #fff; }
.budget-ex tfoot th, .budget-ex tfoot td { font-weight: 800; border-top: 2px solid var(--navy); border-bottom: 0; }
.budget-ex .amt { text-align: right; white-space: nowrap; }
.budget-zero { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #edf8f1; color: #1a6640; }
@media (max-width: 700px) {
  .money-row { grid-template-columns: 1fr 120px; }
  .money-head { grid-template-columns: 1fr 120px; }
  .log-row5 { grid-template-columns: 1fr 1fr; }
  .budget-cols { grid-template-columns: 1fr; }
  .dims { grid-template-columns: 1fr 1fr; }
}
@media print {
  body.mm-printing .money-row { grid-template-columns: 1fr 120px; }
  body.mm-printing .log-row5 { grid-template-columns: 70px 1fr 130px 90px; }
  body.mm-printing .dollar::before { content: ""; }
  body.mm-printing .money-rows .mm-out { min-height: 1.6em; padding: 2px 0 4px; }
  .left-box, .budget-ex, .dims { break-inside: avoid; }
}
@media (max-width: 480px) { .money-row, .money-head { grid-template-columns: 1fr 96px; gap: 6px; } .tool-form .money-row input { font-size: .95rem; padding-left: 10px; } .tool-form .dollar input { padding-left: 22px; } }

/* ---------- Module 6: pathways, planner, grades ---------- */
.small-link { font-size: .92rem; margin-top: 8px !important; }
.small-link a { font-weight: 600 !important; }
.riasec { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.riasec li { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 16px 70px; background: #fff; }
.riasec .r-letter { position: absolute; left: 16px; top: 16px; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; }
.riasec h3 { font-size: 1.05rem; margin-bottom: 4px; }
.riasec p { margin: 0; font-size: .96rem; }
.ladder { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.ladder figcaption { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.ladder-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ladder-steps li { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 10px; border-left: 6px solid var(--blue); background: var(--soft-blue); }
.ladder-steps .l-course { border-left-color: #8aa3b8; background: #f3f6f9; }
.ladder-steps .l-cert { margin-left: 0; }
.ladder-steps .l-dip { margin-left: 24px; }
.ladder-steps .l-aas { margin-left: 48px; border-left-color: var(--navy); }
.ladder-steps .l-trans { border-left-color: var(--gold); background: var(--soft-gold); }
.l-name { font-weight: 800; color: var(--navy); }
.l-sub { display: block; font-weight: 600; font-size: .82rem; color: var(--muted); }
.l-desc { font-size: .96rem; }
.ladder-or { margin: 14px 0 8px; font-weight: 700; color: var(--muted); font-size: .95rem; }
.ladder-ends { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.ladder-ends span { font-size: .88rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.ladder-ends .to-work { background: var(--soft-blue); color: var(--dark-blue); border: 1px solid #b9d6ec; }
.ladder-ends .to-uni { background: var(--soft-gold); color: #6b4a00; border: 1px solid #f0d08a; }
.cred-grid, .scen-grid, .practice-grid { margin-top: 0; }
.plain-table { width: 100%; border-collapse: collapse; font-size: .96rem; margin: 14px 0 0; }
.plain-table th, .plain-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.plain-table thead th { background: var(--navy); color: #fff; }
.plain-table tbody th { font-weight: 700; color: var(--navy); }
.plain-table tfoot th, .plain-table tfoot td { font-weight: 800; border-top: 2px solid var(--navy); border-bottom: 0; }
.plain-table .num { text-align: right; white-space: nowrap; }
.grade-ex { font-size: .92rem; }
.grade-ex th, .grade-ex td { padding: 6px 8px; }
.calc { margin: 12px 0 8px; font-size: .98rem; }
.grade-scale { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 520px; }
.grade-scale li { text-align: center; border-radius: 10px; padding: 10px 6px; border: 1px solid; }
.g-letter { display: block; font-size: 1.3rem; font-weight: 800; }
.g-pts { display: block; font-size: .85rem; }
.g-a { background: #eaf6f0; color: #1a6640; border-color: #a5d6b7 !important; }
.g-b { background: #e8f0f8; color: #003560; border-color: #90c0e0 !important; }
.g-c { background: #fff8e1; color: #6b4a00; border-color: #e7a614 !important; }
.g-d { background: #fdf0ee; color: #8b2500; border-color: #f0b0a0 !important; }
.g-f { background: #f5f5f5; color: #444; border-color: #ccc !important; }
.gpa-result { margin: 14px 0 0; display: inline-block; padding: 10px 16px; border-radius: 10px; background: var(--soft-blue); color: var(--navy); font-size: 1.05rem; }
details.answer { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
details.answer summary { cursor: pointer; font-weight: 700; color: var(--blue); }
details.answer summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
details.answer p { margin: 8px 0 0; }
.terms { display: grid; gap: 18px; margin-top: 18px; }
.checklist-card { border: 2px solid var(--gold); border-radius: var(--radius); padding: 18px 20px; background: var(--soft-gold); }
.checklist-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
@media (max-width: 900px) { .riasec { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .riasec { grid-template-columns: 1fr; }
  .ladder-steps li { grid-template-columns: 1fr; gap: 2px; }
  .ladder-steps .l-dip { margin-left: 12px; } .ladder-steps .l-aas { margin-left: 24px; }
  .grade-scale { gap: 6px; }
  .gpa-table { font-size: .86rem; } .gpa-table th, .gpa-table td { padding: 6px 5px; }
}
@media print {
  details.answer:not([open]) > *:not(summary) { display: block; }
  .riasec li, .ladder, .grade-scale, .plain-table, .checklist-card { break-inside: avoid; }
}

/* ---------- Module 7: values, strengths ---------- */
.research { border-left: 5px solid var(--blue); background: var(--soft-blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; }
.research-label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 6px; }
.research p { margin: 0 0 8px; }
.research-cite { font-size: .85rem; color: var(--muted); font-style: italic; margin: 0 !important; }
.pills { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pills li { background: var(--soft-blue); border: 1px solid #c8dcec; border-radius: 10px; padding: 10px 14px; font-size: .96rem; text-align: center; display: grid; place-items: center; }
.mini-ex { font-size: .93rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 10px; font-style: italic; }
.blind-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.blind-grid li { border: 1px solid #f0c8c0; background: #fdf8f7; border-radius: 12px; padding: 14px 16px; }
.blind-grid h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.blind-grid p { margin: 0; font-size: .95rem; }
.mm-help { font-size: .95rem; color: var(--muted); margin: 4px 0 8px; }
.value-rows { display: grid; gap: 14px; }
.value-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.v-num { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; display: grid; place-items: center; margin-top: 10px; }
.top5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.top5 .mm-sub { margin-top: 4px !important; }
@media (max-width: 900px) { .blind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .pills { grid-template-columns: 1fr 1fr; }
  .blind-grid { grid-template-columns: 1fr; }
  .top5 { grid-template-columns: 1fr 1fr; }
}
@media print {
  .blind-grid li, .pills, .research, .value-row { break-inside: avoid; }
  body.mm-printing .top5 { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Module 8: career research ---------- */
.mm-id.three, .tool-form .mm-id.three { grid-template-columns: 1fr 1fr 1fr; }
.sources { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; background: #fafcfe; }
.sources-label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 6px; }
.sources ul { margin: 0; }
.fit-six .fit-ref { margin-top: 8px !important; padding-top: 8px; border-top: 1px solid var(--border); font-size: .9rem; }
.myth { border-left: 5px solid var(--gold); background: var(--soft-gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; }
.myth-label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b4a00; margin: 0 0 6px; }
.myth p:last-child { margin-bottom: 0; }
.email-ex { margin: 16px 0 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.email-ex figcaption { background: var(--blue); color: #fff; font-weight: 700; padding: 10px 18px; }
.em-meta { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--border); background: #f7fafc; font-size: .96rem; }
.em-body { padding: 14px 18px; font-size: .98rem; }
.em-body p:last-child { margin-bottom: 0; }
.mm-parts { margin: 4px 0 10px 20px; padding: 0; }
.mm-parts li { margin-bottom: 4px; }
@media (max-width: 700px) { .mm-id.three, .tool-form .mm-id.three { grid-template-columns: 1fr; } }
@media print { .email-ex, .myth, .sources { break-inside: avoid; } body.mm-printing .mm-id.three { grid-template-columns: 1fr 1fr 1fr; } }
.pills.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .pills.five { grid-template-columns: 1fr 1fr; } }

/* ---------- Guides (appendix): Merit Guide ---------- */
img.merit-badge { width: 44px; height: 44px; border-radius: 0; background: none; }
.guide-icon { width: 40px; height: 40px; margin-right: 10px; vertical-align: middle; }
.guide-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.guide-card { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; border: 2px solid var(--border); border-radius: var(--radius); padding: 16px 20px; background: #fff; text-decoration: none; color: var(--ink); }
.guide-card:hover, .guide-card:focus-visible { border-color: var(--blue); }
.guide-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gc-title { display: block; font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.gc-desc { display: block; font-size: .97rem; color: var(--muted); margin-top: 2px; }
.merit-pace { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.merit-pace li { border: 1px solid var(--border); border-top: 5px solid #16687a; border-radius: 12px; padding: 16px 18px; text-align: center; background: #fff; }
.mp-num { display: inline-block; background: #16687a; color: #fff; font-weight: 800; font-size: .82rem; padding: 3px 12px; border-radius: 999px; }
.mp-when { display: block; font-weight: 800; color: var(--navy); font-size: 1.15rem; margin-top: 8px; }
.mp-sub { display: block; font-size: .93rem; color: var(--muted); }
.merit-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.merit-paths .card-head { background: #16687a; }
.path-for { font-size: .92rem; color: var(--muted); font-style: italic; }
.path-proof { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--border); font-size: .95rem; }
.od-list { display: grid; gap: 14px; }
.od-card { border: 1px solid var(--border); border-left: 6px solid #16687a; border-radius: 12px; padding: 16px 20px; background: #fff; }
.od-card h3 { font-size: 1.1rem; margin-bottom: 0; }
.od-who { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.od-card p:last-child { margin-bottom: 0; }
.wc-box { margin-top: 14px; border: 2px solid var(--border); border-radius: 10px; padding: 10px 14px; background: #f7fafc; }
.wc-box p { margin: 0; }
.wc-line { font-weight: 700; color: var(--navy); }
.wc-line output { font-size: 1.15rem; }
.wc-range { font-weight: 400; color: var(--muted); font-size: .92rem; }
.wc-msg { font-size: .95rem; }
.wc-box.is-in { border-color: #1a6640; background: #edf8f1; }
.wc-box.is-in .wc-msg { color: #1a6640; }
.wc-box.is-over { border-color: #b36b00; background: var(--soft-gold); }
@media (max-width: 900px) { .merit-paths { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .merit-pace { grid-template-columns: 1fr; } }
@media print { .merit-paths .card, .od-card, .merit-pace { break-inside: avoid; } body.mm-printing .wc-box, body.mm-printing [data-copy] { display: none; } }
.mm-form select { max-width: 100%; min-width: 0; }

/* ---------- STAR(T) Stories Guide ---------- */
:root { --ss-s: #1565c0; --ss-t: #00796b; --ss-a: #4a7c22; --ss-r: #6a3fb5; --ss-tr: #bf360c; }
.coin-md { position: relative; width: 64px; height: 64px; flex-shrink: 0; display: block; }
.coin-md img { width: 64px; height: 64px; display: block; }
.coin-md .sn { position: absolute; right: -5px; bottom: -5px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; border: 3px solid #fff; }
.coin-choice { border-radius: 50%; background: var(--soft-gold); border: 3px dashed var(--gold); display: grid; place-items: center; }
.choice-mark { font-size: 1.8rem; font-weight: 800; color: #6b4a00; }
.four-stories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.four-stories a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 12px; border: 2px solid var(--border); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--navy); font-weight: 800; height: 100%; }
.four-stories a:hover { border-color: var(--blue); }
.four-stories a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fs-name { font-size: 1rem; line-height: 1.3; }
.star-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.star-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; border: 1px solid var(--border); border-left: 6px solid var(--c, var(--blue)); border-radius: 12px; padding: 14px 18px; background: #fff; }
.star-steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.star-steps p { margin: 0 0 6px; }
.ss-letter { width: 44px; height: 44px; border-radius: 50%; background: var(--c, var(--blue)); color: #fff; font-weight: 900; font-size: 1.35rem; display: grid; place-items: center; }
.ss-s { --c: var(--ss-s); } .ss-t { --c: var(--ss-t); } .ss-a { --c: var(--ss-a); } .ss-r { --c: var(--ss-r); } .ss-tr { --c: var(--ss-tr); }
.star-steps .ss-tr { background: #fff7f0; }
.ss-q { font-weight: 700; font-style: italic; color: var(--navy); }
.ss-watch, .st-watch { font-size: .93rem; color: #8b1a14; border-left: 3px solid #c0392b; padding-left: 10px; margin: 8px 0 0 !important; }
.star-example { margin: 14px 0 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.star-example figcaption { display: flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; font-weight: 700; padding: 10px 16px; }
.star-example dl { margin: 0; padding: 6px 18px 12px; }
.star-example dt { font-weight: 800; color: var(--navy); margin-top: 10px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.star-example dd { margin: 2px 0 0; }
.skill-stories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.skill-stories li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: start; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.skill-stories h3 { font-size: 1.08rem; margin-bottom: 4px; }
.skill-stories p { margin: 0 0 6px; font-size: .97rem; }
.skill-stories a { font-weight: 700; }
.focus-tag { display: inline-block; font-size: .72rem; font-weight: 800; color: #6b4a00; background: var(--soft-gold); border: 1px solid var(--gold); border-radius: 999px; padding: 1px 8px; vertical-align: middle; margin-left: 4px; }
.pace-guide { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.pace-guide figcaption { background: var(--navy); color: #fff; font-weight: 700; padding: 10px 16px; }
.pace-guide ol { list-style: none; margin: 0; padding: 0; }
.pace-guide li { display: grid; grid-template-columns: 110px 150px 1fr; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); border-left: 6px solid var(--c); }
.pace-guide li:last-child { border-bottom: 0; }
.pg-step { font-weight: 800; color: var(--navy); }
.pg-time { font-weight: 700; }
.fix-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fix { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.fix h3 { font-size: 1.05rem; margin-bottom: 8px; }
.fix p { margin: 0 0 8px; font-size: .96rem; }
.fix p span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fix-before { color: #5a5a5a; } .fix-before span { color: #8b1a14; }
.fix-after span { color: #1a6640; }
.choice-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-grid li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.cg-desc { display: block; font-size: .93rem; color: var(--muted); }
.st-spot { margin-bottom: 20px; }
.st-prompts li { margin-bottom: 6px; }
.st-step legend { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.st-letter { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--c, var(--blue)); color: #fff; font-weight: 900; font-size: 1.15rem; display: grid; place-items: center; }
.st-name { font-weight: 800; color: var(--navy); }
.st-q { font-weight: 400; font-style: italic; color: var(--muted); font-size: .95rem; }
.st-coach { font-size: .96rem; background: var(--soft-blue); border-left: 3px solid var(--blue); padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 8px 0 !important; }
.st-transfer { background: #fff7f0; }
@media (max-width: 900px) { .four-stories { grid-template-columns: 1fr 1fr; } .fix-list { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .skill-stories, .choice-grid { grid-template-columns: 1fr; }
  .pace-guide li { grid-template-columns: 1fr; gap: 2px; }
}
@media print { .star-steps li, .star-example, .pace-guide, .fix, .skill-stories li { break-inside: avoid; } body.mm-printing .st-coach, body.mm-printing .st-watch { display: none; } }

/* ---------- Module 9: critical thinking, 4C Check ---------- */
:root { --c1: #1565c0; --c2: #00796b; --c3: #8a5a00; --c4: #a13d3d; }
.signs.two { grid-template-columns: 1fr 1fr; }
.trap-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trap-grid li { border: 1px solid var(--border); border-top: 4px solid var(--blue); border-radius: 12px; padding: 14px 16px; background: #fff; }
.trap-grid h3 { font-size: 1.02rem; margin-bottom: 4px; }
.trap-grid p { margin: 0 0 6px; font-size: .96rem; }
.trap-q { font-style: italic; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 10px; margin: 0 !important; }
.c-clarity { --c: var(--c1); } .c-context { --c: var(--c2); } .c-credibility { --c: var(--c3); } .c-consequences { --c: var(--c4); }
.fourc { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fourc > li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; border: 1px solid var(--border); border-left: 6px solid var(--c); border-radius: 12px; padding: 14px 18px; background: #fff; }
.fourc h3 { font-size: 1.06rem; margin-bottom: 4px; color: var(--c); }
.fourc p { margin: 0 0 6px; }
.c-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 900; font-size: 1rem; display: grid; place-items: center; }
.c-ask { font-weight: 700; font-style: italic; color: var(--c); margin-top: 8px !important; }
.c-ai { font-size: .95rem; background: #f5f0fa; border-left: 3px solid #6b3fa0; padding: 6px 10px; border-radius: 0 8px 8px 0; color: #4a2a78; }
.fourc-ex { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.fourc-ex figcaption { background: var(--navy); color: #fff; font-weight: 700; padding: 10px 16px; }
.fourc-ex dl { margin: 0; padding: 6px 18px 4px; }
.fourc-ex dt { font-weight: 800; color: var(--c); margin-top: 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.fourc-ex dd { margin: 2px 0 0; }
.fourc-result { margin: 12px 18px 16px; padding: 10px 14px; border-left: 4px solid var(--gold); background: var(--soft-gold); border-radius: 0 8px 8px 0; font-weight: 700; }
.fourc-scenario { background: var(--soft-blue); border-radius: 10px; padding: 10px 14px; }
.star-mini { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.star-mini li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; border: 1px solid var(--border); border-left: 5px solid var(--c); border-radius: 10px; padding: 8px 14px; background: #fff; }
.star-mini .ss-letter { width: 36px; height: 36px; font-size: 1.1rem; }
.fix-list.two { grid-template-columns: 1fr 1fr; }
.fc-step legend { display: flex; align-items: center; gap: 10px; color: var(--c) !important; }
.fc-step .c-badge { width: 34px; height: 34px; font-size: .85rem; }
@media (max-width: 900px) { .trap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .trap-grid, .signs.two, .fix-list.two { grid-template-columns: 1fr; } .fourc > li { grid-template-columns: 1fr; } }
@media print { .trap-grid li, .fourc > li, .fourc-ex, .star-mini { break-inside: avoid; } }
.trap-grid.two { grid-template-columns: 1fr 1fr; } @media (max-width: 700px) { .trap-grid.two { grid-template-columns: 1fr; } }
.fc-step { border-top: 1px solid var(--border) !important; padding-top: 18px !important; margin-top: 22px !important; }

/* ---------- Instructor Guide: maps and tables ---------- */
.table-scroll { position: relative; overflow-x: auto; margin: 14px 0 0; border-radius: var(--radius); }
.table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.map-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; background: #fff; }
.map-table th, .map-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.map-table thead th { background: var(--navy); color: #fff; font-size: .8rem; letter-spacing: .03em; }
.map-table tbody th { color: var(--navy); font-weight: 800; white-space: nowrap; }
.map-table tbody th a, .map-table td a { color: var(--blue); }
.map-table tfoot th, .map-table tfoot td { font-weight: 800; border-top: 2px solid var(--navy); border-bottom: 0; color: var(--navy); }
.map-table .num { text-align: right; }
.map-table .nowrap { white-space: nowrap; }
.map-table tr.planned td, .map-table tr.planned th { background: #f7f9fb; color: var(--muted); }
.map-table .be-chip { display: inline-block; margin: 2px 2px 2px 0; white-space: nowrap; }
.split-table td { width: 50%; }
.es-tag { display: inline-flex; align-items: center; gap: 5px; margin: 2px 4px 2px 0; padding: 1px 9px 1px 2px; border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--navy); background: var(--soft-blue); white-space: nowrap; }
.es-tag .es-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .7rem; }
.es-tag.es-all { padding-left: 9px; background: var(--soft-gold); }
.anchor-star { color: #b27c00; font-weight: 800; margin-left: 4px; }
.map-note { display: block; margin-top: 4px; font-size: .82rem; color: var(--muted); font-style: italic; }
.planned-tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; border: 1px dashed var(--muted); font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .03em; vertical-align: middle; font-style: normal; }
.muted { color: var(--muted); }
.page-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0 0; padding: 9px 14px; background: #f6f8fa; border: 1px dashed #b9c4d0; border-radius: 10px; font-size: .85rem; color: var(--muted); }
.pt-label { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-right: 14px; border-right: 1px solid #c9d2dc; }
.print-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: 700; color: var(--blue); background: #fff; border: 1px solid #9fb0c2; border-radius: 6px; padding: 5px 12px; cursor: pointer; }
.print-btn svg { width: 16px; height: 16px; }
.print-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.print-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 520px) { .pt-label { border-right: 0; padding-right: 0; flex-basis: 100%; } }
.anchors li { margin-bottom: 6px; }
.map-mod { margin: 0 0 34px; }
.map-mod h3 { margin: 0 0 6px; font-size: 1.15rem; }
.map-mod h3 a { color: var(--navy); }
.map-mod.planned h3 { color: var(--muted); }
.map-extras { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .88rem; color: var(--muted); }
.map-extras a { color: var(--blue); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9rem; color: var(--muted); }
.matrix th.mx-h { text-align: center; padding: 8px 4px; vertical-align: bottom; }
.be-matrix th.mx-h { font-size: .78rem; }
.coin-xs { display: block; width: 30px; height: 30px; margin: 0 auto 2px; }
.coin-xs img { width: 30px; height: 30px; display: block; }
.mx-num { display: block; font-size: .75rem; }
.matrix td.mx-c { text-align: center; padding: 8px 4px; white-space: nowrap; }
.matrix tbody th { min-width: 150px; }
.mx-title { display: block; font-weight: 600; font-size: .8rem; color: var(--muted); white-space: normal; max-width: 22ch; line-height: 1.35; }
.mx { display: inline-block; margin: 0 1px; font-size: 1rem; line-height: 1; }
.mx.on { color: var(--blue); }
.mx.spot { color: var(--sky); }
.mx.star { color: #b27c00; }
.legend .mx { margin-right: 4px; }
.es-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.es-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.es-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.es-card-head h3 { margin: 0; font-size: 1.1rem; }
.es-def { font-size: .9rem; color: #34414d; margin: 0 0 10px; }
.es-meta { list-style: none; padding: 0; margin: 0 0 10px; font-size: .88rem; }
.es-meta a { color: var(--blue); }
.es-sub { margin: 0 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.es-ican { margin: 0; padding: 0; list-style: none; font-size: .88rem; line-height: 1.5; }
.es-ican li { padding: 5px 0; border-top: 1px solid var(--border); }
.ic-key { display: inline-block; min-width: 36px; font-weight: 800; color: var(--navy); }
.source-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.anatomy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.anatomy li { border: 2px solid var(--border); border-radius: var(--radius); padding: 14px 18px; background: #fff; }
.anatomy h3 { margin: 0 0 4px; font-size: 1.02rem; }
.anatomy p { margin: 0; font-size: .95rem; }
@media (max-width: 900px) {
  .es-cards, .anatomy { grid-template-columns: 1fr; }
  .map-table { font-size: .86rem; }
}
@media print {
  .page-tools { display: none; }
  .table-scroll { overflow: visible; }
  .map-table { font-size: 8.5pt; }
  .map-table thead { display: table-header-group; }
  .map-table tr, .es-card, .anatomy li { break-inside: avoid; }
  .map-table thead th, .es-tag, .es-tag .es-n, .map-table tr.planned td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .es-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .map-mod { break-inside: auto; }
}

/* ---------- Module 10: collaboration ---------- */
.trap-grid.roles li { border-top-color: var(--gold); }
.trap-grid.roles li:last-child { grid-column: span 1; }
.messy { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.messy li { border: 1px solid var(--border); border-left: 5px solid var(--blue); border-radius: 10px; padding: 10px 14px; background: #fff; }
.messy strong { color: var(--navy); }
.aspects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aspects > li { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; background: #fff; }
.aspects > li:last-child { grid-column: 1 / -1; }
.aspects h3 { font-size: 1.08rem; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.asp-sub { font-size: .85rem; font-weight: 600; color: var(--muted); }
.aspects dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aspects dl > div { background: var(--soft-blue); border-radius: 8px; padding: 8px 12px; }
.aspects dt { font-weight: 800; color: var(--blue); font-size: .92rem; }
.aspects dd { margin: 2px 0 0; font-size: .93rem; }
.table-wrap { overflow-x: auto; position: relative; }
.ss-table th[scope="row"] { white-space: nowrap; }
.strat-list > li { padding-bottom: 16px; }
.strat-list .dots { margin-top: 6px; }
.gap-xs { margin-top: 8px !important; }
.scripts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.scripts li { font-style: italic; color: var(--dark-blue); background: var(--soft-blue); border: 1px solid #c8dcec; border-radius: 8px; padding: 6px 12px; font-size: .96rem; }
.signal-pills { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.signal-pills li { background: var(--soft-gold); border: 1px solid var(--gold); color: #5e4100; border-radius: 999px; padding: 3px 12px; font-size: .9rem; font-weight: 600; }
.plan-ex { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.plan-ex figcaption { background: var(--navy); color: #fff; font-weight: 700; padding: 10px 16px; }
.plan-body { padding: 6px 18px 16px; }
.plan-body h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin: 14px 0 4px; }
.plan-body p { margin: 0; }
.chk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; margin: 8px 0 12px; }
.chk { display: flex; align-items: flex-start; gap: 8px; font-size: .96rem; line-height: 1.4; cursor: pointer; padding: 4px 0; }
.mm-form .chk input[type="checkbox"] { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.chk-h { margin: 10px 0 0; font-weight: 800; font-size: .9rem; color: var(--navy); }
@media (max-width: 900px) { .chk-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .aspects, .aspects dl { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .chk-grid { grid-template-columns: 1fr; } }
@media print {
  .mm-form input[type="checkbox"] { display: inline-block !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .chk:not(:has(input:checked)) { color: #999; }
  .chk-grid { grid-template-columns: repeat(3, 1fr); }
  .aspects > li, .messy li, .plan-ex, .strat-list > li { break-inside: avoid; }
}
.word-bank { font-size: .9rem; color: var(--muted); background: #f7f9fb; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin: 8px 0 0; }
.word-bank strong { color: var(--navy); }
.strat-list li li { counter-increment: none; }
.strat-list li li::before { content: none; }
.strat-list .dots li { padding: 0; border: 0; border-radius: 0; }
.strat-list .scripts li { padding: 6px 12px; border: 1px solid #c8dcec; border-radius: 8px; }
.strat-list .signal-pills li { padding: 3px 12px; border: 1px solid var(--gold); border-radius: 999px; }

/* ---------- Module 11: community ---------- */
.trap-grid.sys-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trap-grid.sys-grid li { border-top-color: var(--gold); }
.sys-ex { --c: var(--blue); }
@media (max-width: 900px) { .trap-grid.sys-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trap-grid.sys-grid { grid-template-columns: 1fr; } }
.skill-prompts { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; gap: 12px; }
.skill-prompts > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.skill-prompts h3 { font-size: 1.08rem; margin-bottom: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.skill-prompts p { margin: 0 0 8px; font-size: .97rem; }
.sp-def { color: var(--muted); }
.sp-prompt { font-style: italic; background: var(--soft-blue); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 8px 12px; margin: 4px 0 0 !important; }
.sp-group { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 4px; }
.req-tag { font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--gold); color: #3a2800; border-radius: 999px; padding: 2px 9px; }
.req-tag.choice { background: #00695c; color: #fff; }
@media (max-width: 560px) { .skill-prompts > li { grid-template-columns: 1fr; } }
@media print { .skill-prompts > li { break-inside: avoid; } }

/* ---------- Module 12 ---------- */
.mm-trail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mm-trail a { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: #fff; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; }
.mm-trail a:hover { border-color: var(--accent); background: var(--accent-soft); }
.mmn { display: inline-grid; place-items: center; min-width: 38px; height: 28px; border-radius: 999px; background: var(--gold); color: #3a2800; font-weight: 800; font-size: .85rem; }
.mm-hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.end-card a.inline-light { color: #fff; text-decoration: underline; }
@media (max-width: 900px) { .mm-trail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .mm-trail { grid-template-columns: 1fr; } }
@media print { .end-card a.inline-light { color: var(--ink); } }

/* ---------- Book bar nav + How to Use page ---------- */
.bar-nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bar-btn { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 6px 10px; border-radius: 999px; }
.bar-btn:hover { background: rgba(255,255,255,.12); }
.bar-btn:focus-visible, .contents-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.bar-btn svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .bar-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .bar-btn { padding: 6px; } .bar-nav { gap: 4px; } }
/* Top bar: let the logo scale down instead of sliding under the buttons */
.brand-text .book { white-space: nowrap; }
@media (max-width: 1100px) { .brand-text .long { display: none; } }
@media (max-width: 900px) { .brand-text { display: none; } }
@media (max-width: 760px) {
  .brand { flex: 1 1 auto; }
  .brand img, .brand .logo-full { flex-shrink: 1; min-width: 0; max-width: 100%; height: auto; max-height: 30px; }
  .bookbar .inner { gap: 8px; }
}
@media (max-width: 400px) {
  .contents-btn { padding: 6px 8px; }
  .contents-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.shell.solo { grid-template-columns: minmax(0, 1fr); max-width: 1100px; }
.page-toc { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; background: var(--soft-blue); }
.pt-label { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.page-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.page-toc a { color: var(--blue); font-weight: 600; font-size: .95rem; }
.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.parts > li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; background: #fff; }
.parts h3 { font-size: 1.05rem; margin-bottom: 2px; }
.parts p { margin: 0; }
.part-tag { display: inline-block; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid #b9e3f5; margin-top: 3px; }
.part-tag.tool { background: #fffdf7; color: #8a5d00; border-color: #f0d79a; }
.part-tag.mm { background: var(--navy); color: #fff; border-color: var(--navy); }
.hero-sub { margin: 18px 0 0; }
.hero-sub a { color: #d6eefa; font-weight: 700; }
@media (max-width: 560px) { .parts > li { grid-template-columns: 1fr; gap: 6px; } .part-tag { justify-self: start; } }
@media print { .bar-nav, .page-toc { display: none; } .parts > li { break-inside: avoid; } }

/* Instructor Guide: Appreciative Advising */
.d-intro { display: grid; grid-template-columns: minmax(240px, 370px) 1fr; gap: 28px; align-items: center; }
.d-fig { margin: 0; }
.d-wheel { width: 100%; height: auto; display: block; font-family: inherit; }
.d-fig figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 8px; }
.d-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.d-list li::marker { font-weight: 800; color: var(--accent-ink); }
.d-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.d-phase { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.d-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 18px; background: var(--navy); color: #fff; }
.d-head h3 { margin: 0; color: inherit; font-size: 1.15rem; }
.d-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 800; }
.d-mods { margin-left: auto; font-size: .82rem; font-weight: 700; letter-spacing: .03em; }
.d-discover .d-head { background: var(--blue); }
.d-dream .d-head { background: var(--accent-ink); }
.d-design .d-head { background: #bfe6f7; color: var(--navy); }
.d-deliver .d-head { background: var(--gold); color: var(--navy); }
.d-dontsettle .d-head { background: var(--dark-blue); }
.d-design .d-n, .d-deliver .d-n { background: var(--navy); color: #fff; }
.d-body { padding: 16px 20px 18px; }
.d-body > p { margin: 0 0 10px; }
.d-body h4 { margin: 14px 0 4px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.d-body .dots { margin-top: 4px; }
.d-say { margin: 14px 0 0 !important; padding: 12px 16px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; }
.d-say-l { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
@media (max-width: 720px) { .d-intro { grid-template-columns: 1fr; } .d-fig { max-width: 300px; margin: 0 auto; } .d-mods { margin-left: 0; flex-basis: 100%; } }
@media print { .d-phase { break-inside: avoid; } .d-intro { grid-template-columns: 220px 1fr; } .d-head, .d-say, .d-wheel path { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Footer: equal opportunity statement (required on KCTCS websites) */
footer .eeo { margin: 12px 0 0; font-size: .8rem; line-height: 1.55; max-width: 110ch; }

/* Legal pad: writing forms only (Mile Markers, snapshots, Look Back, Merit reflection, STAR(T) practice,
   4C Check, Career Research Guide). Number and grid tools keep the plain .mm-form box. Screen only. */
@media screen {
  .mm-form.pad {
    --pad-sheet: #fffae3; --pad-rule: rgba(0,70,127,0.16); --pad-margin: rgba(214,92,112,0.6); --pad-gap: 1.75rem;
    padding: 26px 28px 28px 78px;
    background-color: var(--pad-sheet);
    background-image:
      linear-gradient(90deg, transparent 52px, var(--pad-margin) 52px, var(--pad-margin) 53px, transparent 53px, transparent 56px, var(--pad-margin) 56px, var(--pad-margin) 57px, transparent 57px),
      repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--pad-gap) - 1px), var(--pad-rule) calc(var(--pad-gap) - 1px), var(--pad-rule) var(--pad-gap));
    border: 1px solid #ecdca0; border-top: 16px solid var(--navy); border-radius: 6px;
    box-shadow: 0 10px 24px rgba(1,29,65,0.12);
  }
  .mm-form.pad textarea {
    background-color: #fff;
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.6em - 1px), rgba(0,70,127,0.16) calc(1.6em - 1px), rgba(0,70,127,0.16) 1.6em);
    background-attachment: local; background-position: 0 10px;
  }
}
@media screen and (max-width: 600px) {
  .mm-form.pad {
    padding: 20px 16px 22px 40px;
    background-image:
      linear-gradient(90deg, transparent 22px, var(--pad-margin) 22px, var(--pad-margin) 23px, transparent 23px, transparent 26px, var(--pad-margin) 26px, var(--pad-margin) 27px, transparent 27px),
      repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--pad-gap) - 1px), var(--pad-rule) calc(var(--pad-gap) - 1px), var(--pad-rule) var(--pad-gap));
  }
}

/* Results in action: one callout per Inventory result and the course change it led to */
.results-list { display: grid; gap: 18px; margin: 14px 0 6px; }
.results { border: 1px solid var(--border); border-left: 6px solid var(--gold); border-radius: var(--radius); background: #fff; padding: 18px 22px 16px; box-shadow: 0 2px 10px rgba(1,29,65,.06); }
.results-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7a5500; }
.results-kicker svg { width: 18px; height: 18px; }
.results h4 { margin: 0 0 10px; font-size: 1.12rem; color: var(--navy); }
.results-parts { margin: 0; }
.results-parts dt { margin: 12px 0 2px; font-weight: 800; font-size: .92rem; color: var(--blue); }
.results-parts dt:first-child { margin-top: 0; }
.results-parts dd { margin: 0; }
.results-parts dd .dots { margin-top: 4px; }
@media print { .results { break-inside: avoid; box-shadow: none; } }

/* Lookout: Ask Your Success Coach. Navy header band + owl badge so it never reads as a Pathfinder Tip, Trail Tip, or AI box. */
.lookout { margin: 18px 0 8px; border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: 0 3px 12px rgba(1,29,65,.08); }
.lookout-head { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 10px 18px; }
.lookout-head svg { width: 22px; height: 22px; flex: none; color: #f2a71b; }
.lookout-head h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; color: #fff; }
.lookout-head .lk-word { color: #f2a71b; text-transform: uppercase; letter-spacing: .08em; font-size: .82em; font-weight: 800; margin-right: 2px; }
.lookout-body { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; padding: 16px 20px 16px 16px; }
.lookout-owl { width: 76px; height: auto; display: block; }
.lookout-body p { margin: 0 0 10px; }
.lookout-body .dots { margin: 0 0 10px; }
.lookout-foot { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0 !important; padding-top: 10px; border-top: 1px dashed var(--border); font-size: .93rem; color: var(--muted); }
.lookout-foot svg { flex: none; margin-top: 3px; width: 16px; height: 16px; color: var(--blue); }
@media (max-width: 560px) { .lookout-body { grid-template-columns: 1fr; } .lookout-owl { width: 60px; } }
@media print { .lookout { break-inside: avoid; box-shadow: none; } .lookout-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Home hero: foreground tree with the Lookout owl, framing the left margin */
.hero-tree { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; z-index: 0; pointer-events: none; }
@media (max-width: 1359px) { .hero-tree { display: none; } }
@media print { .hero-tree { display: none !important; } }
/* Narrower screens: no trunk, just a branch tip and the owl reaching in over the mountains */
.hero-branch { display: none; position: absolute; left: 0; bottom: 0; height: 170px; width: auto; z-index: 0; pointer-events: none; }
@media (max-width: 1359px) { .hero-branch { display: block; } }
@media (max-width: 760px) { .hero-branch { height: 130px; } }
@media print { .hero-branch { display: none !important; } }
/* Module overview banners: the left column is open from 901px up, so the full tree fits there */
@media (min-width: 901px) { .banner .hero-tree { display: block; } .banner .hero-branch { display: none; } }
@media (max-width: 900px) { .banner .hero-tree { display: none; } .banner .hero-branch { display: block; height: 115px; } }

/* Workspace pages (Instructor Guide, Results in Action): a legal-pad sheet marks behind-the-scenes material */
@media screen {
  main.workspace {
    --pad-sheet: #fffae3; --pad-rule: rgba(0,70,127,0.10); --pad-margin: rgba(214,92,112,0.55);
    background-color: var(--pad-sheet);
    background-image:
      linear-gradient(90deg, transparent 34px, var(--pad-margin) 34px, var(--pad-margin) 35px, transparent 35px, transparent 38px, var(--pad-margin) 38px, var(--pad-margin) 39px, transparent 39px),
      repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.75rem - 1px), var(--pad-rule) calc(1.75rem - 1px), var(--pad-rule) 1.75rem);
    border-top: 14px solid var(--navy); padding-left: max(52px, 4vw); box-shadow: inset 0 1px 0 #ecdca0;
  }
  main.workspace .map-table, main.workspace .results, main.workspace .note { background-color: #fff; }
}
.term-stamp { display: inline-block; vertical-align: middle; margin-left: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a5500; border: 2px solid #7a5500; border-radius: 4px; padding: 2px 8px; transform: rotate(-2deg); }
details.results > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
details.results > summary::-webkit-details-marker { display: none; }
details.results > summary::before { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); font-weight: 800; }
details.results[open] > summary::before { content: "−"; }
details.results > summary h3 { margin: 0; font-size: 1.08rem; color: var(--navy); }
details.results .results-body { margin-top: 12px; }
details.results > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
@media print { details.results .results-body { display: block; } }
