/* Capella Assessments — "The Card Catalog"
   Sample-paper library for Capella FlexPath. Warm archive cream + oxblood,
   Fraunces display over Inter, folder-tab course cards, true-form paper sheets.
   Deliberately distinct from every sibling site in both networks. */

:root {
  /* Capella color family, library register: deeper oxblood than the tutors site */
  --oxblood: #8E1123;
  --oxblood-deep: #6E0C1A;
  --oxblood-bright: #B31B31;
  --oxblood-tint: rgba(142, 17, 35, 0.07);
  --oxblood-line: rgba(142, 17, 35, 0.28);

  /* warm archive base */
  --cream: #F8F3EA;
  --cream-deep: #F1E9DA;
  --manila: #EFE3C8;
  --manila-deep: #E4D4AE;
  --sheet: #FFFFFF;
  --ink: #221813;
  --muted: #6B5A4C;
  --soft: #99866F;
  --line: #E5DAC8;
  --line-strong: #D3C4A9;
  --walnut: #5C4633;
  --brass: #B08A3C;

  /* dark archive band (footer, request strip) */
  --shelf: #2A1E17;
  --shelf-2: #221812;
  --t-on-shelf: #F4EDE1;
  --m-on-shelf: #C0B09B;
  --line-shelf: #453529;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Inter", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, monospace;
  --f-paper: "Times New Roman", Times, Georgia, serif;

  --r: 12px;
  --r-b: 9px;
  --sh-1: 0 8px 24px rgba(34, 24, 19, 0.10);
  --sh-2: 0 18px 50px rgba(34, 24, 19, 0.18);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-body); color: var(--ink);
  background: var(--cream); line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--oxblood); }
::selection { background: var(--manila-deep); }

/* sleek scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

.btn {
  display: inline-block; font-family: var(--f-body); font-weight: 600;
  font-size: 0.95rem; padding: 12px 22px; border-radius: var(--r-b);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-ox { background: var(--oxblood); color: #FFF; }
.btn-ox:hover { background: var(--oxblood-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--oxblood); color: var(--oxblood); }
.btn-shelf { background: var(--walnut); color: #FFF; }
.btn-shelf:hover { background: #4A3827; }

/* ============ header ============ */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248, 243, 234, 0.92); backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 24px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.06rem; color: var(--ink); line-height: 1.1; display: block; }
.brand-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 22px; justify-content: center; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 0.93rem; font-weight: 500; }
.nav-links a:hover { color: var(--oxblood); }
.head-cta { justify-self: end; }
.nav-burger { display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: 9px; padding: 8px 11px; cursor: pointer; font-size: 1.05rem; color: var(--ink); }

/* ============ hero: the catalog search ============ */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 54px 24px 30px; }
.hero-kicker { color: var(--oxblood); font-weight: 600; font-size: 0.95rem; margin: 0 0 10px; }
.hero h1 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; margin: 0 0 16px; max-width: 21ch;
}
.hero h1 em { font-style: italic; color: var(--oxblood); }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 62ch; margin: 0 0 26px; line-height: 1.65; }

.catalog-card {
  background: var(--sheet); border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: var(--sh-1); padding: 20px 22px; max-width: 760px; position: relative;
}
.catalog-card::before {
  content: "CARD CATALOG"; position: absolute; top: -11px; left: 22px;
  font-family: var(--f-body); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.14em;
  background: var(--manila); border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 3px 10px; color: var(--walnut);
}
.search-row { display: flex; gap: 10px; }
.search-row input {
  flex: 1; font-family: var(--f-body); font-size: 1.02rem; padding: 14px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-b); background: var(--cream);
  color: var(--ink); min-width: 0;
}
.search-row input:focus { outline: none; border-color: var(--oxblood); background: #FFF; }
.search-results {
  margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-b);
  background: #FFF; max-height: 320px; overflow-y: auto; display: none;
}
.search-results.is-on { display: block; }
.search-results a {
  display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 0.93rem;
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--oxblood-tint); }
.search-results .sr-code { font-family: var(--f-mono); color: var(--oxblood); font-size: 0.85rem; white-space: nowrap; }
.search-results .sr-kind { color: var(--soft); font-size: 0.8rem; white-space: nowrap; }
.search-none { padding: 14px; font-size: 0.92rem; color: var(--muted); display: none; }
.search-none.is-on { display: block; }
.search-none a { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { font-size: 0.78rem; color: var(--soft); align-self: center; }
.chips a {
  font-family: var(--f-mono); font-size: 0.8rem; text-decoration: none; color: var(--walnut);
  background: var(--manila); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px;
}
.chips a:hover { color: var(--oxblood); border-color: var(--oxblood-line); }

/* ============ shared section scaffolding ============ */
.sect { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px; }
.sect-kicker { color: var(--oxblood); font-weight: 600; font-size: 0.9rem; margin: 0 0 8px; }
.sect h2 { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 10px; line-height: 1.15; }
.sect-sub { color: var(--muted); max-width: 62ch; margin: 0 0 26px; }

/* folder-tab course cards */
.folder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.folder {
  position: relative; background: var(--sheet); border: 1px solid var(--line-strong);
  border-radius: 0 var(--r) var(--r) var(--r); padding: 20px; text-decoration: none;
  color: var(--ink); box-shadow: var(--sh-1); display: block; margin-top: 14px;
}
.folder::before {
  content: ""; position: absolute; top: -13px; left: -1px; width: 44%; height: 14px;
  background: var(--manila); border: 1px solid var(--line-strong); border-bottom: none;
  border-radius: 8px 10px 0 0;
}
.folder:hover { border-color: var(--oxblood-line); }
.folder .f-code { font-family: var(--f-mono); font-size: 0.86rem; color: var(--oxblood); font-weight: 600; }
.folder h3 { font-family: var(--f-display); font-size: 1.06rem; margin: 6px 0 8px; line-height: 1.28; }
.folder p { font-size: 0.87rem; color: var(--muted); margin: 0 0 10px; line-height: 1.55; }
.folder .f-meta { font-size: 0.78rem; color: var(--soft); }

/* how-it-works steps */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.step-card .s-n {
  width: 36px; height: 36px; border-radius: 10px; background: var(--oxblood); color: #FFF;
  font-family: var(--f-display); font-weight: 700; display: flex; align-items: center;
  justify-content: center; margin-bottom: 12px; font-size: 1.05rem;
}
.step-card h3 { font-family: var(--f-display); font-size: 1.08rem; margin: 0 0 8px; }
.step-card p { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* trust band */
.trust-band { background: var(--cream-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-in { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.trust-num { font-family: var(--f-display); font-weight: 700; font-size: 2rem; color: var(--oxblood); }
.trust-lbl { font-size: 0.85rem; color: var(--muted); }
.trust-stars { color: var(--brass); font-size: 0.95rem; }

/* request strip (dark shelf) */
.shelf-strip { background: var(--shelf); }
.shelf-in { max-width: var(--maxw); margin: 0 auto; padding: 46px 24px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; align-items: center; }
.shelf-in h2 { font-family: var(--f-display); color: var(--t-on-shelf); font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0 0 10px; }
.shelf-in p { color: var(--m-on-shelf); margin: 0 0 6px; line-height: 1.65; }

/* forms */
.ob-form { display: grid; gap: 10px; }
.ob-form input, .ob-form select, .ob-form textarea {
  font-family: var(--f-body); font-size: 0.95rem; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-b); background: #FFF; color: var(--ink); width: 100%;
}
.ob-form input:focus, .ob-form textarea:focus { outline: none; border-color: var(--oxblood); }
.ob-form .hp { position: absolute; left: -6000px; }
.ob-fine { font-size: 0.78rem; color: var(--soft); }
.on-shelf .ob-form input, .on-shelf .ob-form textarea { border-color: var(--line-shelf); background: #F8F3EA; }
.ob-thanks { font-weight: 600; color: var(--oxblood); }
.on-shelf .ob-thanks { color: var(--t-on-shelf); }

/* ============ article/library layer (hubs, about, legal) ============ */
.crumbs { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 0; font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--oxblood); }
.crumbs .sep { margin: 0 7px; color: var(--line-strong); }
.article-hero { max-width: 880px; margin: 0 auto; padding: 34px 24px 8px; }
.article-hero h1 { font-family: var(--f-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.14; margin: 12px 0 14px; }
.code-chip { display: inline-block; font-family: var(--f-mono); font-size: 0.8rem; color: var(--oxblood-deep); background: var(--oxblood-tint); border: 1px solid var(--oxblood-line); border-radius: 999px; padding: 4px 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-lib { display: inline-block; font-size: 0.78rem; color: var(--walnut); background: var(--sheet); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 11px; }
.article-hero .lead { font-size: 1.05rem; line-height: 1.66; color: var(--muted); max-width: 64ch; }
.article { max-width: 880px; margin: 0 auto; padding: 8px 24px 60px; }
.article h2 { font-family: var(--f-display); font-size: 1.42rem; margin: 34px 0 12px; }
.article h3 { font-family: var(--f-display); font-size: 1.08rem; margin: 22px 0 8px; }
.article p { line-height: 1.72; margin: 0 0 14px; }
.article ul { margin: 0 0 16px; padding: 0; list-style: none; }
.article ul li { position: relative; padding-left: 24px; margin: 0 0 10px; line-height: 1.72; }
.article ul li::before {
  content: ""; position: absolute; left: 2px; top: 0.72em;
  width: 12px; height: 12px; border-radius: 2px;
  background: var(--manila); border: 1px solid var(--walnut);
}
.article a { color: var(--oxblood); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--oxblood-line); }
.article a:hover { color: var(--oxblood-deep); text-decoration-color: var(--brass); }

/* faq drawers (lander pages) */
.faq-item {
  background: var(--sheet); border: 1px solid var(--line-strong);
  border-left: 3px solid var(--manila-deep); border-radius: var(--r-b);
  padding: 14px 18px; margin: 0 0 10px;
}
.faq-item:hover { border-color: var(--oxblood-line); border-left-color: var(--brass); }
.faq-item summary {
  font-family: var(--f-display); font-weight: 600; font-size: 1rem;
  color: var(--oxblood-deep); cursor: pointer; list-style: none;
  position: relative; padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  font-family: var(--f-mono); font-size: 1.15rem; color: var(--brass);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.faq-item p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.72; }

.answer-box { background: var(--oxblood-tint); border: 1px solid var(--oxblood-line); border-radius: var(--r); padding: 20px 22px; margin: 18px 0 8px; }
.answer-box .ab-label { display: block; font-weight: 700; font-size: 0.82rem; color: var(--oxblood-deep); margin-bottom: 8px; }
.answer-box p { margin: 0; line-height: 1.7; }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 8px; }
.related a { display: inline-block; background: var(--sheet); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; font-size: 0.88rem; color: var(--ink); text-decoration: none; }
.related a:hover { border-color: var(--oxblood); color: var(--oxblood); }

/* assessment drawer list (course hubs) */
.drawer { border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--sheet); margin: 14px 0; overflow: hidden; }
.drawer-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-row:last-child { border-bottom: none; }
.drawer-row .d-n {
  font-family: var(--f-mono); font-size: 0.8rem; color: var(--walnut); background: var(--manila);
  border: 1px solid var(--line-strong); border-radius: 7px; padding: 6px 10px; white-space: nowrap;
}
.drawer-row .d-body { flex: 1; min-width: 0; }
.drawer-row h3 { font-family: var(--f-display); font-size: 1rem; margin: 0 0 3px; }
.drawer-row p { font-size: 0.86rem; color: var(--muted); margin: 0; line-height: 1.5; }
.drawer-row .d-act { white-space: nowrap; }
.drawer-row .d-act a { font-size: 0.86rem; font-weight: 600; text-decoration: none; }

/* ============ the paper sheet (true-form sample) ============ */
.sheet-wrap { max-width: 820px; margin: 26px auto; padding: 0 24px; }
.sheet {
  background: var(--sheet); border: 1px solid var(--line-strong); box-shadow: var(--sh-2);
  border-radius: 4px; padding: 72px 84px; font-family: var(--f-paper); font-size: 1.02rem;
  line-height: 2.0; color: #111; position: relative;
}
.sheet + .sheet { margin-top: 26px; }
.sheet .pg-no { position: absolute; top: 26px; right: 34px; font-size: 0.9rem; }
.sheet-title-block { text-align: center; margin-top: 16%; }
.sheet-title-block .st-title { font-weight: 700; margin-bottom: 2.2em; }
.sheet h4 { font-size: 1.02rem; text-align: center; font-weight: 700; margin: 1.6em 0 0; }
.sheet h5 { font-size: 1.02rem; font-weight: 700; font-style: normal; margin: 1.4em 0 0; }
.sheet p { margin: 0 0 0.05em; text-indent: 0.5in; }
.sheet p.no-ind { text-indent: 0; }
.sheet .refs p { text-indent: 0; padding-left: 0.5in; text-indent: -0.5in; margin-bottom: 0.4em; }
.sheet .hl { background: #FBEED3; border-bottom: 2px solid var(--brass); }
.sheet-note {
  max-width: 820px; margin: 10px auto 0; padding: 0 24px;
  font-size: 0.8rem; color: var(--soft);
}
.annot {
  background: var(--manila); border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 16px 18px; margin: 18px 0; font-family: var(--f-body); font-size: 0.9rem; line-height: 1.6; color: var(--walnut);
}
.annot strong { color: var(--ink); }

/* ============ footer ============ */
.site-foot { background: var(--shelf-2); color: var(--m-on-shelf); margin-top: 40px; }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px 26px; display: grid; grid-template-columns: 1.3fr 1fr 0.85fr 1fr 1.15fr; gap: 30px 26px; }
.foot-in h4 { font-family: var(--f-display); color: var(--t-on-shelf); font-size: 0.98rem; margin: 0 0 12px; }
.foot-in a { color: var(--m-on-shelf); text-decoration: none; display: block; font-size: 0.88rem; margin-bottom: 8px; }
.foot-in a:hover { color: var(--t-on-shelf); }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand .brand-mark { width: 34px; height: 34px; }
.foot-brand span { font-family: var(--f-display); font-weight: 700; color: var(--t-on-shelf); }
.foot-note { font-size: 0.8rem; line-height: 1.6; }
.foot-legal { border-top: 1px solid var(--line-shelf); }
.foot-legal-in { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 0.78rem; }

/* ============ offer popup ============ */
.ob-backdrop {
  position: fixed; inset: 0; background: rgba(34, 24, 19, 0.55); z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.ob-backdrop.is-open { display: flex; }
.ob-modal { background: var(--cream); border-radius: var(--r); max-width: 470px; width: 100%; box-shadow: var(--sh-2); overflow: hidden; }
.ob-mast { background: var(--sheet); border-bottom: 1px solid var(--line-strong); padding: 18px 22px 14px; position: relative; }
.ob-mast .mini-sheet {
  font-family: var(--f-paper); text-align: center; border: 1px solid var(--line);
  border-radius: 3px; padding: 14px 10px; font-size: 0.72rem; line-height: 1.7; color: #333;
  background: #FFF; box-shadow: 0 4px 12px rgba(34,24,19,0.08); max-width: 210px; margin: 0 auto;
}
.ob-mast .mini-sheet strong { display: block; font-size: 0.76rem; }
.ob-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
.ob-body { padding: 20px 22px 24px; }
.ob-season { font-size: 0.8rem; font-weight: 600; color: var(--oxblood); }
.ob-body h3 { font-family: var(--f-display); font-size: 1.3rem; margin: 6px 0 6px; }
.ob-body .ob-sub { font-size: 0.92rem; color: var(--muted); margin: 0 0 14px; }

/* ============ live chat + dock ============ */
.chat-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 58px; height: 58px;
  border-radius: 50%; border: 2px solid var(--oxblood); background: var(--sheet);
  cursor: pointer; box-shadow: var(--sh-1); padding: 0; overflow: hidden;
}
.chat-launch svg { width: 100%; height: 100%; display: block; }
.chat-nudge {
  position: fixed; right: 92px; bottom: 34px; z-index: 79; background: var(--sheet);
  border: 1px solid var(--line-strong); border-radius: 12px 12px 3px 12px; padding: 10px 14px;
  font-size: 0.84rem; box-shadow: var(--sh-1); cursor: pointer; display: none; max-width: 240px;
}
.chat-nudge.is-on { display: block; }
.chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 85; width: 340px; max-width: calc(100vw - 32px);
  background: var(--cream); border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: var(--sh-2); display: none; flex-direction: column; overflow: hidden; max-height: 480px;
}
.chat-panel.is-open { display: flex; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sheet); border-bottom: 1px solid var(--line); }
.chat-face { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; border: 1.5px solid var(--line-strong); }
.chat-face svg { width: 100%; height: 100%; display: block; }
.chat-head .c-name { font-weight: 700; font-size: 0.92rem; }
.chat-head .c-cred { font-size: 0.74rem; color: var(--muted); }
.chat-back { margin-left: auto; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.msg { max-width: 84%; padding: 9px 12px; font-size: 0.88rem; line-height: 1.5; }
.msg-in { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; align-self: flex-start; }
.msg-out { background: var(--oxblood); color: #FFF; border-radius: 12px 12px 3px 12px; align-self: flex-end; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--sheet); }
.chat-form input { flex: 1; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; font-size: 0.88rem; min-width: 0; }
.chat-form input:focus { outline: none; border-color: var(--oxblood); }
.chat-form button { border: none; background: var(--oxblood); color: #FFF; border-radius: 999px; padding: 9px 16px; font-weight: 600; cursor: pointer; }
.dock {
  position: fixed; left: 22px; bottom: 22px; z-index: 78; display: flex; flex-direction: column; gap: 10px;
}
.dock button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--sheet); cursor: pointer; box-shadow: var(--sh-1);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.dock button svg { width: 22px; height: 22px; }

/* ============ responsive ============ */
@media (max-width: 920px) {
  .folder-grid { grid-template-columns: repeat(2, 1fr); }
  .steps3 { grid-template-columns: 1fr; }
  .shelf-in { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 660px) {
  .nav-links { display: none; }
  .head-cta { display: none; }
  .nav-burger { display: block; justify-self: end; }
  .site-head.menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 14px 24px; gap: 14px;
  }
  .folder-grid { grid-template-columns: 1fr; }
  .sheet { padding: 40px 26px; }
  .sheet-title-block { margin-top: 10%; }
  .drawer-row { flex-wrap: wrap; }
  .foot-in { grid-template-columns: 1fr; }
  .trust-in { justify-content: flex-start; }
}


/* image-program figures (apply_images.py) */
.ig-fig{margin:26px 0;max-width:100%}
.ig-fig img{display:block;width:100%;height:auto;border-radius:14px;border:1px solid var(--line);box-shadow:0 1px 2px rgba(34,24,19,.05),0 10px 26px rgba(34,24,19,.07)}
.ig-fig figcaption{margin-top:10px;font-size:.86rem;color:var(--muted);line-height:1.5}


/* mobile parity (post-audit 2026-07-22) */
input,select,textarea{font-size:16px}
html,body{overflow-x:hidden}
@media (max-width:640px){
  .chat-panel.is-open{inset:0;width:100%;height:100dvh;max-height:none;border-radius:0;z-index:95}
  .nav-links a{min-height:44px;display:flex;align-items:center}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}


/* hero lead form (post-audit P0) */
.hero-lead{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 4px;align-items:center;max-width:580px}
.hero-lead input{flex:1 1 200px;min-width:0;padding:12px 14px;font-size:16px;border:1px solid rgba(0,0,0,.22);border-radius:10px;background:#fff;color:#1a1a1a}
.hero-lead input:focus{outline:2px solid rgba(0,0,0,.35);outline-offset:1px}
.hero-lead input.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
.hero-lead .btn{flex:0 0 auto}
.hero-lead-done,.hero-lead-err{margin:10px 0 0;font-size:.92rem}
.hero-lead-done{font-weight:600}
@media(max-width:560px){.hero-lead input{flex:1 1 100%}.hero-lead .btn{width:100%}}


/* sample-paper thumbnails */
.sample-thumbs{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0 6px;max-width:560px}
.sample-thumbs figure{margin:0}
.sample-thumbs img{width:100%;height:auto;border-radius:8px;border:1px solid rgba(0,0,0,.1);box-shadow:0 6px 18px rgba(0,0,0,.09)}
.sample-thumbs figcaption{margin-top:6px;font-size:.8rem;opacity:.7;text-align:center}
@media(max-width:520px){.sample-thumbs{grid-template-columns:1fr;max-width:340px}}


/* honesty + a11y polish */
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
.ob-modal,.ae-modal{max-height:calc(100dvh - 40px);overflow-y:auto}

/* real WhatsApp dock button */
.dock .wa-live { width: 46px; height: 46px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(37,211,102,0.35); }
.dock .wa-live svg { width: 22px; height: 22px; }


/* true-form sample sheets (build_samples.py) */
.paper-wrap{margin:26px 0}
.sheet{background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:6px;padding:44px 52px;
 margin:0 0 18px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 12px 28px rgba(0,0,0,.07);
 font-family:"Times New Roman",Times,serif;font-size:1.02rem;line-height:2;color:#111}
.sheet .sh-num{float:right;font-size:.95rem;color:#444}
.sheet .sh-title{text-align:center;font-weight:700;margin:0 0 1.6em}
.sheet .sh-center{text-align:center;margin:0}
.sheet h3{font-size:1.02rem;font-weight:700;margin:0 0 .4em;font-family:inherit}
.sheet p{margin:0 0 1em;text-indent:2.2em}
.sheet p.noindent{text-indent:0}
.sheet .hl{background:#fff3bf;padding:.06em .12em;border-radius:2px}
.sheet .ref{text-indent:-2.2em;padding-left:2.2em;margin:0 0 .8em}
.annot{background:#f6f1e7;border-left:3px solid #b99a5b;border-radius:0 8px 8px 0;
 padding:14px 18px;margin:0 0 22px;font-size:.94rem;line-height:1.65}
.annot b{display:block;margin-bottom:.25em}
@media(max-width:700px){.sheet{padding:26px 22px;font-size:.98rem;line-height:1.85}}
