/* =====================================================================
   The Language of College: shared styles
   Linked from every page as css/styles.css?v=N (raise N after any change)
   Colors are the KCTCS brand palette. Do not add colors outside it,
   except the neutral tints and status colors marked below.
   ===================================================================== */

:root {
  /* KCTCS primary */
  --blue: #00467f;      /* PMS 541 */
  --gold: #e7a614;      /* PMS 131 */
  /* KCTCS secondary */
  --navy: #011d41;      /* PMS 282 */
  --sky: #3bb3e5;       /* PMS 298 */
  --bright: #005cb8;    /* PMS 300: this site's accent */
  /* Neutrals and tints */
  --ink: #17212b; --muted: #52606d; --border: #d9e2ea;
  --soft-blue: #eaf2fb; --soft-gold: #fff5dc; --mark: #ffe7a3; --gold-ink: #6b4a00;
  /* Status (answers and warnings only) */
  --yes: #165c32; --yes-soft: #e3f4ea; --no: #8b1a14; --no-soft: #fdf1ef;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
@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.7; color: var(--ink); background: #fff;
}
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--bright); }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; border-radius: 4px; }
.bar :focus-visible, .hero :focus-visible, footer :focus-visible { outline-color: var(--gold); }
p { margin: 0 0 1.05em; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.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; }
.print-logo { display: none; }

/* ---------- Header bar ---------- */
.bar { background: var(--navy); color: #fff; border-bottom: 4px solid var(--sky); }
.bar .inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: #fff; text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.brand-text { border-left: 1px solid rgba(255,255,255,.4); padding-left: 14px; font-weight: 700; font-size: .98rem; white-space: nowrap; }
.bar-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.bar-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 8px 12px; border-radius: 999px; }
.bar-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.bar-nav a.pill { border: 2px solid rgba(255,255,255,.7); padding: 6px 14px; }

/* Instructor Companion: text label plus gold line, never color alone */
.instructor .bar { border-bottom-color: var(--gold); }
.audience { background: var(--soft-gold); border-bottom: 1px solid #f0dca6; font-size: .88rem; }
.audience .inner { max-width: 1240px; margin: 0 auto; padding: 8px 16px; }
.audience strong { color: var(--navy); letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; margin-right: 8px; }

/* ---------- Page shell: section sidebar | reading area ---------- */
.shell { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidenav { border-right: 1px solid var(--border); background: var(--soft-blue); }
.sidenav details { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 26px 18px; }
.sidenav summary { list-style: none; cursor: default; }
.sidenav summary::-webkit-details-marker { display: none; }
.side-label { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.side-title { display: block; font-weight: 800; color: var(--navy); line-height: 1.3; margin: 2px 0 14px; }
.side-toggle { display: none; }
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav li { margin: 2px 0; }
.sidenav a.pg, .sidenav span.pg { display: block; padding: 8px 10px; border-radius: 8px; font-size: .94rem; line-height: 1.35; text-decoration: none; }
.sidenav a.pg:hover { background: #fff; }
.sidenav a.pg[aria-current="page"] { background: #fff; color: var(--navy); font-weight: 700; box-shadow: inset 4px 0 0 var(--bright); }
.sidenav span.pg { color: var(--muted); }
.soon { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--muted); border: 1px dashed #9aa9b7; border-radius: 999px; padding: 0 8px; margin-left: 4px; white-space: nowrap; vertical-align: 1px; }
.sidenav .onpage { margin: 4px 0 10px 14px; border-left: 2px solid var(--border); }
.sidenav .onpage a { display: block; padding: 5px 0 5px 12px; font-size: .86rem; color: var(--muted); text-decoration: none; line-height: 1.35; }
.sidenav .onpage a:hover { color: var(--blue); text-decoration: underline; }
.sidenav .all { display: inline-block; margin-top: 18px; font-size: .88rem; font-weight: 700; }

.reading { padding: 34px 40px 60px; min-width: 0; }
.reading > * { max-width: 720px; }
.reading > .wide { max-width: 900px; }
.crumbs { font-size: .86rem; color: var(--muted); margin: 0 0 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

.kicker { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bright); margin: 0; }
.reading h1 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); line-height: 1.12; margin: 6px 0 12px; font-weight: 800; }
.use-when { font-size: 1.12rem; color: var(--blue); margin: 0 0 8px; }
.use-when strong { color: var(--navy); }
.meta { font-size: .88rem; color: var(--muted); margin: 0 0 8px; }
section { margin-top: 48px; }
/* Highlighter underline on section headings */
h2 { font-size: 1.5rem; margin: 0 0 16px; display: inline; padding-right: 4px;
  background-image: linear-gradient(transparent 64%, var(--mark) 64%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h2 + * { margin-top: 16px; }
h3 { font-size: 1.14rem; margin: 26px 0 8px; }

/* ---------- Components ---------- */
.note { border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; font-size: .97rem; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.label { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.note-term { background: var(--soft-blue); border-top: 3px solid var(--blue); }
.note-term .label { color: var(--blue); }
.note-term dl { margin: 0; display: grid; gap: 8px; }
.note-term dt { font-weight: 800; color: var(--navy); display: inline; }
.note-term dd { margin: 0; display: inline; }
.note-tip { background: var(--soft-gold); border-top: 3px solid var(--gold); }
.note-tip .label { color: var(--gold-ink); }

/* The five questions */
.five { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: q; }
.five li { counter-increment: q; position: relative; margin: 0; padding: 12px 16px 12px 58px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.five li::before { content: counter(q); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; }
.five strong { color: var(--navy); }

/* Annotated example: highlighted phrases tied to numbered notes */
.annotated { margin: 20px 0 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.annotated figcaption { background: var(--navy); color: #fff; font-weight: 700; padding: 10px 18px; font-size: .95rem; }
.annotated .ex { padding: 18px 20px 6px; border-bottom: 1px dashed var(--border); }
.annotated .ex-title { font-weight: 800; color: var(--navy); }
mark { background: var(--mark); color: inherit; padding: 1px 2px; border-radius: 3px; }
a.ref { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin: 0 2px 0 3px; padding: 0 5px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 800; text-decoration: none; line-height: 1; vertical-align: 2px; }
a.ref:hover { background: var(--bright); color: #fff; }
.notes { list-style: none; margin: 0; padding: 14px 20px 16px; display: grid; gap: 12px; counter-reset: n; }
.notes li { counter-increment: n; position: relative; margin: 0; padding-left: 38px; font-size: .97rem; scroll-margin-top: 20px; }
.notes li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.notes li:target { background: var(--soft-gold); outline: 6px solid var(--soft-gold); border-radius: 4px; }
.notes .what { display: block; font-weight: 800; color: var(--navy); }
.eg { font-style: normal; font-weight: 700; color: var(--navy); }

/* Plain tables */
.table-wrap { overflow-x: auto; margin: 16px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; background: #fff; }
caption { text-align: left; font-weight: 700; color: var(--muted); font-size: .88rem; padding-bottom: 6px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-size: .86rem; }
tbody th { color: var(--navy); font-weight: 800; }

/* Language focus */
.focus { margin-top: 20px; border: 2px solid var(--bright); border-left-width: 8px; border-radius: var(--radius); padding: 18px 22px 20px; background: #fff; }
.focus .label { color: var(--bright); }
.focus h3 { margin-top: 0; }

/* Sentence starters */
.starters { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.starters li { margin: 0; border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: 10px; padding: 10px 16px; background: #fff; }
.starters .when { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.starters .say { display: block; color: var(--navy); font-weight: 600; }
.blank { display: inline-block; min-width: 3.2em; border-bottom: 2px solid var(--muted); }

/* Practice and answers */
.practice { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--soft-blue); padding: 18px 20px; }
.practice .prompt { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.practice ol { margin: 0; }
details.answer { margin-top: 16px; border: 2px solid var(--blue); border-radius: var(--radius); background: #fff; }
details.answer summary { cursor: pointer; font-weight: 800; color: var(--blue); padding: 12px 18px; }
details.answer .inside { padding: 0 18px 16px; }
details.answer li { margin-bottom: .7em; }
.why { display: block; color: var(--muted); font-size: .95rem; }

/* Before and after (instructor pages) */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; align-items: start; }
.ba figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.ba figcaption { padding: 10px 16px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ba .before figcaption { background: var(--no-soft); color: var(--no); }
.ba .after { border: 2px solid var(--yes); }
.ba .after figcaption { background: var(--yes-soft); color: var(--yes); }
.ba .body { padding: 14px 16px 6px; font-size: .96rem; }
.ba .body .ex-h { margin: 12px 0 2px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.ba .body .ex-h:first-child { margin-top: 0; }
.practices { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: p; }
.practices > li { counter-increment: p; position: relative; margin: 0; padding: 14px 18px 14px 60px; border: 1px solid var(--border); border-radius: var(--radius); }
.practices > li::before { content: counter(p); position: absolute; left: 18px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; }
.practices h3 { margin: 0 0 4px; font-size: 1.08rem; }
.practices p { margin: 0; }
.copy { margin: 16px 0 0; border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: 10px; padding: 14px 18px; background: var(--soft-gold); font-size: .97rem; }
.copy p { margin: 0 0 .6em; } .copy p:last-child { margin: 0; }
.sources { font-size: .93rem; }
.sources li { margin-bottom: .8em; }

/* Next step and related pages */
.next { margin-top: 20px; border-radius: var(--radius); background: var(--navy); color: #fff; padding: 22px 24px; }
.next h3 { color: #fff; margin: 0 0 8px; }
.next a { color: #fff; }
.related { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.related li { margin: 0; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; background: #fff; }
.related a { font-weight: 700; }
.related .desc { display: block; font-size: .93rem; color: var(--muted); }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--soft-gold); color: var(--gold-ink); border: 1px solid var(--gold); border-radius: 999px; padding: 0 9px; margin-right: 6px; vertical-align: 1px; }
a[target="_blank"]::after { content: "\2197"; display: inline-block; margin-left: 3px; font-size: .8em; }

/* ---------- Home ---------- */
.hero { background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 100%); color: #fff; }
.hero .inner { max-width: 980px; margin: 0 auto; padding: 60px 16px 56px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1.08; margin: 0 0 14px; font-weight: 800; }
.hero h1 span { background-image: linear-gradient(transparent 78%, var(--gold) 78%, var(--gold) 92%, transparent 92%); }
.hero .sub { font-size: 1.25rem; margin: 0 0 8px; }
.hero .lead { color: #d6e6f5; margin: 0; max-width: 56ch; }
.home { max-width: 980px; margin: 0 auto; padding: 44px 16px 64px; }
.home section:first-child { margin-top: 0; }
.how { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how li { margin: 0; border: 1px solid var(--border); border-top: 4px solid var(--bright); border-radius: var(--radius); padding: 14px 18px; }
.how strong { display: block; color: var(--navy); }
.toc { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toc > li { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.toc h3 { margin: 0 0 2px; font-size: 1.14rem; }
.toc .goal { margin: 0 0 10px; color: var(--muted); font-size: .94rem; }
.toc ul { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--border); }
.toc ul li { margin: 0; padding: 4px 0; }
.toc ul a { font-weight: 700; }
.toc ul span.pg { color: var(--muted); }
.companion { margin-top: 20px; border: 2px solid var(--gold); border-radius: var(--radius); background: var(--soft-gold); padding: 20px 22px; }
.companion ul { list-style: none; margin: 10px 0 0; padding: 0; columns: 2; column-gap: 28px; }
.companion li { break-inside: avoid; padding: 4px 0; margin: 0; }
.companion a { font-weight: 700; }
.companion span.pg { color: #5a4a22; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #c9d6e3; font-size: .88rem; padding: 22px 0; border-top: 4px solid var(--sky); margin-top: 0; }
.instructor footer { border-top-color: var(--gold); }
footer .inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
footer .who { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; color: #fff; font-weight: 700; }
footer .eeo { margin: 12px 0 0; font-size: .8rem; line-height: 1.55; max-width: 110ch; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav { border-right: 0; border-bottom: 1px solid var(--border); }
  .sidenav details { position: static; max-height: none; padding: 0; }
  .sidenav summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
  .side-title { margin: 0; font-size: .96rem; }
  .side-toggle { display: inline-flex; font-size: .85rem; font-weight: 700; color: var(--blue); border: 2px solid var(--border); background: #fff; border-radius: 999px; padding: 4px 14px; white-space: nowrap; }
  .sidenav details[open] .when-closed, .sidenav details:not([open]) .when-open { display: none; }
  .sidenav .panel { padding: 0 16px 16px; }
  .sidenav a.pg, .sidenav span.pg { padding: 11px 10px; }
  .reading { padding: 24px 16px 44px; }
  .ba, .toc, .how { grid-template-columns: 1fr; }
  .companion ul { columns: 1; }
  .brand-text { display: none; }
}
@media (max-width: 560px) {
  .bar .inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; row-gap: 6px; }
  .bar-nav { width: 100%; justify-content: space-between; gap: 2px; }
  .bar-nav a { padding: 6px 8px; font-size: .84rem; }
  .bar-nav a.pill { padding: 4px 10px; }
  .nav-long { display: none; }
  .brand img { height: 28px; }
  .annotated .ex, .notes { padding-left: 14px; padding-right: 14px; }
  .focus { padding: 16px; }
}

/* ---------- Print ---------- */
@media print {
  .bar, .sidenav, .skip-link, .audience { display: none !important; }
  .print-logo { display: block; height: 34px; width: auto; margin: 0 0 14px; }
  .shell { display: block; }
  .reading { padding: 0; }
  .reading > *, .reading > .wide { max-width: none; }
  details.answer > .inside { display: block; }
  .annotated, .focus, .practice, .ba figure, .practices > li, .note, .starters li, .five li { break-inside: avoid; }
  .hero, .next, footer { background: none; color: var(--ink); }
  .hero h1, .next h3, .next a, footer .who { color: var(--ink); }
  footer { border-top: 1px solid var(--border); }
  thead th, .annotated figcaption, mark, a.ref, .notes li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a[target="_blank"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ---------- Tools: forms, output, buttons (prompt builder) ---------- */
.tool-form { margin-top: 20px; display: grid; gap: 18px; }
.tool-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px 18px; margin: 0; min-width: 0; background: #fbfcfd; }
.tool-form legend { font-weight: 800; color: var(--navy); padding: 0 8px; font-size: 1.05rem; }
.field { margin-top: 14px; min-width: 0; }
.field label { display: block; font-weight: 700; color: var(--navy); }
.hint { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 4px; }
.tool-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.tool-form input, .tool-form textarea, .tool-form select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); border: 1.5px solid #6b7a89; border-radius: 8px; padding: 9px 12px; background: #fff; margin-top: 2px; }
.tool-form textarea { resize: vertical; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.btn { font: inherit; font-weight: 800; color: var(--navy); background: var(--gold); border: 2px solid var(--navy); border-radius: 999px; padding: 9px 22px; cursor: pointer; }
.btn:hover { background: #ffd000; }
.btn-plain { font: inherit; font-size: .94rem; color: var(--blue); background: none; border: 0; padding: 6px 0; text-decoration: underline; cursor: pointer; }
.tool-out { margin-top: 20px; border: 2px solid var(--blue); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.tool-out h3 { margin-top: 0; }
.tool-out pre { margin: 0 0 14px; padding: 14px 16px; background: var(--soft-blue); border-radius: 10px; font-family: inherit; font-size: .97rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.copied { font-weight: 700; color: var(--yes); }
.ba figure > figcaption { border-bottom: 1px solid var(--border); }
@media (max-width: 560px) { .tool-form .pair { grid-template-columns: 1fr; } .tool-form fieldset { padding: 12px 14px 16px; } }
@media print { .tool-form, .actions { display: none !important; } }

/* ---------- Home: color bands and tinted tiles ---------- */
.band.tint { background: var(--soft-blue); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home { padding: 44px 16px; }
.home section { margin-top: 0; }
.band:last-of-type .home { padding-bottom: 64px; }
.how li { background: var(--soft-blue); border-color: #c9dcf0; border-top-color: var(--bright); }
.toc > li { padding: 0; overflow: hidden; border-color: #c9dcf0; box-shadow: 0 6px 14px -12px rgba(1,29,65,.45); }
.toc .tile-head { background: var(--blue); color: #fff; padding: 12px 20px 13px; border-bottom: 4px solid var(--gold); }
.toc .tile-head h3 { color: #fff; margin: 0; }
.toc .tile-head .goal { color: #d6e6f5; margin: 2px 0 0; }
.toc > li > ul { border-top: 0; padding: 12px 20px 16px; }
.toc ul li.live a::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 1px; }
@media print { .band.tint { background: none; border: 0; } .toc .tile-head { background: none; border-bottom: 1px solid var(--ink); } .toc .tile-head h3, .toc .tile-head .goal { color: var(--ink); } }
/* Tile titles: capitals come from CSS, so the HTML keeps normal spelling for screen readers and translation */
.toc .tile-head h3 { text-transform: uppercase; letter-spacing: .07em; font-size: 1rem; }

/* Home: offline downloads */
.offline { margin-top: 18px; border: 1px solid #c9dcf0; border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 16px 20px; background: #fff; }
.offline h3 { margin: 0 0 4px; }
.offline p { margin: 0 0 8px; }
.offline ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.offline li { margin: 0; }
.offline a { font-weight: 800; }
.offline .desc { display: block; font-size: .93rem; color: var(--muted); }
@media (max-width: 700px) { .offline ul { grid-template-columns: 1fr; } }
@media print { .offline { display: none; } }
/* Space between parts inside a language focus box */
.focus h3 { margin-top: 24px; }
.focus .label + h3 { margin-top: 0; }

/* Prompt builder: follow-up questions and checkbox groups */
.tool-form fieldset.sub { margin-top: 16px; background: var(--soft-gold); border-color: #f0dca6; border-left: 6px solid var(--gold); }
.tool-form fieldset.sub[hidden] { display: none; }
.tool-form fieldset.sub > .hint { margin: 0 0 8px; color: #5a4a22; }
.checks { display: grid; gap: 4px; margin-top: 10px; }
.checks .group-label { font-weight: 700; color: var(--navy); }
.checks label { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-weight: 400; color: var(--ink); cursor: pointer; }
.tool-form .checks input[type="checkbox"] { width: 20px; height: 20px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--blue); }

/* Home hero: small note under the lead */
.hero .lead { max-width: 60ch; }
.hero-note { display: inline-block; margin: 18px 0 0; font-size: .86rem; font-weight: 700; color: #fff; border: 1.5px solid rgba(255,255,255,.65); border-radius: 999px; padding: 3px 14px; }

/* Example rubric inside an annotated figure */
.annotated .ex .table-wrap { margin: 0 0 12px; }
.rubric-ex { font-size: .92rem; }
.rubric-ex tbody th { width: 9.5em; }
.rubric-ex th .ref, .rubric-ex td .ref { vertical-align: 1px; }
thead th a.ref { background: var(--gold); color: var(--navy); }
.ba .body > p { margin: 0 0 .5em; }
.scroll-hint { display: none; font-size: .86rem; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 700px) {
  .scroll-hint { display: block; }
  .rubric-ex { min-width: 600px; }
  .annotated .ex .table-wrap { border: 1px solid var(--border); border-radius: 8px; }
}
@media print { .scroll-hint { display: none !important; } }

/* ---------- This semester: current-term information (changes every term) ---------- */
.shell.solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.term-badge { display: inline-block; margin: 0 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--navy); color: var(--gold); border-radius: 999px; padding: 3px 14px; }
.term-badge span { color: #fff; margin-left: 6px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.45); }
.term-updated { font-size: .86rem; color: #5a4a22; font-weight: 700; }
.term-banner { background: var(--soft-gold); border: 2px solid var(--gold); border-left-width: 10px; border-radius: var(--radius); padding: 20px 24px 8px; }
.term-banner h1 { margin: 0 0 4px; }
.term-banner .term-updated { margin: 0 0 12px; }
.term-table tbody th { width: 46%; }
.term-table td { font-weight: 700; color: var(--navy); }
.draft-flag { display: inline-block; font-size: .86rem; font-weight: 700; color: #8b1a14; background: #fff; border: 2px dashed #b3261e; border-radius: 6px; padding: 1px 8px; }
.band.term { background: var(--soft-gold); border-bottom: 1px solid #f0dca6; }
.band.term .home { padding: 22px 16px; }
.term-card { margin: 0; border: 2px solid var(--gold); border-left-width: 10px; border-radius: var(--radius); background: #fff; padding: 16px 22px 12px; }
.term-card h2 { display: block; background-image: none; padding: 0; font-size: 1.2rem; margin: 0 0 8px; }
.term-card ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.term-card li { margin: 0; }
.term-card li strong { color: var(--navy); }
.term-more { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
.term-more a { font-weight: 800; }
@media print { .band.term { background: none; } }
.term-what { margin: -4px 0 10px; color: var(--blue); font-weight: 700; }
.term-where { margin: 0 0 10px; }
.term-where strong { color: var(--navy); }

/* ---------- Home: College Life band ----------
   White band so the gold Instructor Companion box below stays the one solid gold block.
   Tiles: gold header, white body. Divider: the four KCTCS colors in equal blocks. */
.life-band { background: #fff; }
.life-eyebrow { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-ink); }
.life-band h2 { margin-top: 2px; }
.life-intro { max-width: 62ch; }
.life { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.life > li { margin: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #ecd391; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 18px -14px rgba(1,29,65,.6); }
.life-head { background: var(--gold); padding: 16px 54px 14px 18px; position: relative; }
.life-head::after { content: ""; position: absolute; right: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.35); }
.life-head h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; color: var(--navy); }
.life-head a { color: var(--navy); }
.life-goal { margin: 0; padding: 10px 18px 4px; font-size: .95rem; flex: 1; }
.life > li > .soon, .life-go { margin: 4px 18px 16px; align-self: flex-start; }
.life-go { font-weight: 700; }
.life-divider { height: 6px; background: linear-gradient(90deg, var(--sky) 0 25%, var(--gold) 25% 50%, var(--bright) 50% 75%, var(--navy) 75% 100%); }
@media (max-width: 760px) { .life { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .life { grid-template-columns: 1fr; } }
@media print { .life-head { background: none; border-bottom: 1px solid var(--ink); } .life-head::after, .life-divider { display: none; } .life > li { box-shadow: none; } }
.band.tint .life-eyebrow { color: var(--blue); }
#contents-h { margin-top: 2px; }
footer .edition { margin: 8px 0 0; font-size: .85rem; color: #fff; }
@media print { footer .edition { color: var(--ink); } }

/* Home: Instructor Companion teaser (the full list lives on instructors/index.html) */
.companion-teaser { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.companion-teaser > div { flex: 1 1 420px; min-width: 0; }
.companion-teaser h2 { margin: 0 0 6px; }
.companion-teaser p { margin: 0; }
.companion-teaser .btn { text-decoration: none; display: inline-block; }
/* Instructor Companion landing page */
.pairs td, .pairs th { vertical-align: top; }
.nb { white-space: nowrap; }
