/* Metric-matched fallback for IBM Plex Sans (measured: Arial within 0.5% of Plex at 400), so text does not re-wrap when Plex arrives */
/* Newsreader runs 11.8% wider than Times (measured), so its fallback is scaled to keep headings on the same lines */
@font-face { font-family: 'Newsreader Fallback'; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('Times'); size-adjust: 111.8%; }
@font-face { font-family: 'Plex Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Helvetica Neue'), local('Helvetica'); size-adjust: 100.5%; }
/* ==========================================================================
   TaxEye premium layer. A quieter, human, chambers-grade identity.
   Newsreader for voice, IBM Plex Sans for work, Kalam only for a senior's margin notes.
   Ink #15203D, porcelain #F5F6F9, rule #D9DDE7, TaxEye blue #2F4BE0,
   notice amber #F5A524 for what needs attention, margin red #B4232C for handwriting only.
   ========================================================================== */
:root {
  --ink-900: #15203D; --ink-700: #2B3654; --ink-600: #4F5873; --ink-400: #636B82;
  --surface-50: #F5F6F9; --line: #D9DDE7; --line-soft: #E7EAF0;
  --pen: #B4232C; --paper: #FFFFFF;
  --font: 'IBM Plex Sans', 'Plex Fallback', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Newsreader', 'Newsreader Fallback', 'Iowan Old Style', Georgia, serif;
  --hand: 'Kalam', 'Segoe Print', cursive;
  --mono: 'IBM Plex Sans', system-ui, sans-serif;
  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 10px;
  --shadow-card: none;
  --shadow-pop: 0 24px 60px -24px rgba(21,32,61,.28);
}
body { font-family: var(--font); font-size: 16.5px; line-height: 1.62; color: var(--ink-900); font-feature-settings: 'tnum' 0; }
.mono { font-family: var(--font); font-variant-numeric: tabular-nums; letter-spacing: .01em; font-size: .94em; }

/* Type: the serif speaks, the sans works */
h1, h2, .h-display, .h-1, .h-2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em; }
.h-display { font-size: clamp(38px, 4.3vw, 62px); line-height: 1.04; font-weight: 450; letter-spacing: -0.02em; font-variation-settings: 'opsz' 72; }
.h-1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; font-variation-settings: 'opsz' 60; }
.h-2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
h3, .h-3 { font-family: var(--font); font-weight: 600; letter-spacing: -0.005em; }
.lead { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.6; color: var(--ink-600); max-width: 62ch; }
.accent { color: inherit !important; background: none !important; -webkit-text-fill-color: currentColor !important; }

/* Labels above every heading are template chrome. Headings carry the sections now. */
.eyebrow { display: none !important; }

/* Section heads read left aligned, like a well set document */
.section-head, .section-head.center { text-align: left; margin-left: 0; margin-right: auto; max-width: 760px; }
.section-head.center .lead { margin-left: 0; }
.section { padding: 112px 0; }
.section-alt { background: var(--surface-50); }
.field-grid, .dark.field-grid { background-image: none !important; }

/* Buttons: flat, firm, no glow */
.btn { border-radius: var(--r-md); font-family: var(--font); font-weight: 600; letter-spacing: 0; box-shadow: none !important; transform: none !important; }
.btn-primary { background: var(--brand-600); border-color: var(--brand-600); }
.btn-primary:hover { background: #2440C8; border-color: #2440C8; }
.btn-secondary { background: transparent; border: 1px solid var(--ink-900); color: var(--ink-900); }
.btn-secondary:hover { background: var(--ink-900); color: #fff; }
.dark .btn-secondary { border-color: rgba(255,255,255,.6); color: #fff; }

/* Cards become ruled entries. One radius, no shadows, no tinted icon tiles */
.card, .module-card, .bento-card, .price-card, .post-card, .solution-card { border-radius: var(--r-lg) !important; box-shadow: none !important; border-color: var(--line) !important; background-image: none !important; }
.card-hover:hover, .module-card:hover, .post-card:hover { transform: none !important; box-shadow: none !important; border-color: var(--ink-900) !important; }
.icon-badge { width: auto !important; height: auto !important; background: none !important; box-shadow: none !important; color: var(--brand-600) !important; border-radius: 0 !important; padding: 0 !important; margin-bottom: 14px; }
.module-card::after, .module-card::before, .bento-card::after { display: none !important; }
.pill { border-radius: 3px; font-weight: 600; letter-spacing: 0; }
.pill-amber { background: #FFF1D6; color: #7A4B00; }

/* Reveal: one orchestrated moment lives in the hero. Elsewhere content is simply there. */
.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Header ---------- */
.topbar { background: var(--ink-900); font-size: 13.5px; }
.header { box-shadow: none; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.mega-trigger, .header .nav a { font-weight: 500; }
.palette-btn { border-radius: var(--r-md); }

/* ---------- Hero: the desk ---------- */
.hero.hero-paper { background: var(--surface-50); color: var(--ink-900); padding: 88px 0 72px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-paper .hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-paper .h-display { color: var(--ink-900); max-width: 17ch; }
.hero-paper .lead { color: var(--ink-600); margin-top: 26px; }
.hero-paper .hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mods { margin-top: 26px; font-size: 15px; color: var(--ink-600); }
.hero-mods a { color: var(--ink-900); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; margin-left: 4px; }
.hero-mods a:hover { text-decoration-color: var(--brand-600); color: var(--brand-600); }

.hero-desk { position: relative; margin: 0; min-height: 640px; }
.sheet { position: absolute; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 1px 0 rgba(21,32,61,.04), 0 30px 60px -30px rgba(21,32,61,.35); }
.sheet-notice { top: 0; left: 0; width: 70%; padding: 26px 28px 24px; transform: rotate(-2.4deg); transform-origin: top left; font-family: 'Courier New', 'Courier', monospace; color: #3B4152; font-size: 12.5px; line-height: 1.55; background: #FBFBFA; }
.sn-gov { text-align: center; font-weight: 700; letter-spacing: .02em; color: #2A2F3C; }
.sn-title { margin: 14px 0 12px; text-align: center; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sn-meta { margin: 0 0 12px; display: grid; gap: 2px; }
.sn-meta div { display: flex; gap: 8px; }
.sn-meta dt { min-width: 120px; color: #6B7080; }
.sn-meta dd { margin: 0; font-weight: 700; }
.sn-body { color: #4A5060; }
.sn-due { margin-top: 12px; color: #2A2F3C; }
.sheet-reply { top: 168px; right: 0; width: 78%; padding: 24px 26px 18px; transform: rotate(1.2deg); z-index: 2; }
.sr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line-soft); font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--ink-900); }
.sr-tag { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--brand-600); white-space: nowrap; }
.sr-p { font-family: var(--serif); font-size: 15px; line-height: 1.6; color: var(--ink-700); margin-bottom: 10px; }
.sr-p b { font-family: var(--font); font-weight: 600; margin-right: 4px; }
.sr-dim { color: var(--ink-400); }
.sr-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-600); }

.mnote { position: absolute; z-index: 3; margin: 0; padding: 0; background: none; border: 0; font-family: var(--hand); color: var(--pen); font-size: 21px; line-height: 1.15; transform: rotate(-4deg); }
.mnote-1 { top: 96px; right: -8px; }
.mnote-2 { top: 392px; left: -10px; width: 160px; transform: rotate(-5deg); }
.mnote-3 { bottom: -8px; left: 22%; font-size: 18px; transform: rotate(-2deg); color: #5B6275; }
.ink { position: absolute; z-index: 3; width: 120px; height: 60px; fill: none; stroke: var(--pen); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ink-1 { top: 120px; right: 150px; transform: scaleX(-1) rotate(-14deg); }
.ink-2 { top: 404px; left: 132px; transform: rotate(-12deg) scaleY(-1); }

/* The one orchestrated moment: sheets settle, then the partner writes */
@media (prefers-reduced-motion: no-preference) {
  .sheet-notice { animation: settleA .9s cubic-bezier(.2,.7,.2,1) both; }
  .sheet-reply { animation: settleB 1s .25s cubic-bezier(.2,.7,.2,1) both; }
  .mnote { animation: inkIn .5s ease-out both; }
  .mnote-1 { animation-delay: 1.3s; } .mnote-2 { animation-delay: 1.9s; } .mnote-3 { animation-delay: 2.4s; }
  .ink path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s ease-out forwards; }
  .ink-1 path { animation-delay: 1.15s; } .ink-2 path { animation-delay: 1.75s; }
}
@keyframes settleA { from { opacity: 0; transform: translateY(18px) rotate(-5deg); } to { opacity: 1; transform: rotate(-2.4deg); } }
@keyframes settleB { from { opacity: 0; transform: translateY(26px) rotate(3deg); } to { opacity: 1; transform: rotate(1.2deg); } }
@keyframes inkIn { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-facts { margin: 72px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink-900); }
.hero-facts div { padding: 18px 24px 0 0; }
.hero-facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-facts dt { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink-900); }
.hero-facts dd { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-600); }

/* ---------- Proof band: a statement, not a dashboard ---------- */
.proof-bar { background: var(--paper) !important; color: var(--ink-900) !important; border-bottom: 1px solid var(--line); padding: 64px 0 !important; }
.proof-mission { text-align: left !important; padding-top: 0 !important; }
.proof-mission p { color: var(--ink-900) !important; font-family: var(--serif); font-weight: 450 !important; font-size: clamp(24px, 2.6vw, 34px) !important; max-width: 24ch !important; margin: 0 !important; line-height: 1.15; }
.proof-in { margin-top: 36px; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 !important; text-align: left !important; }
.proof-in div { border-top: 1px solid var(--line); }
.proof-in div { display: block !important; padding: 18px 24px 0 0; }
.proof-in div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.proof-in b { display: block; font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--ink-900) !important; }
.proof-in .lead-stat b { color: var(--ink-900) !important; }
.proof-in span { font-size: 14.5px; color: var(--ink-600) !important; }
.proof-note { text-align: left !important; margin: 18px auto 0 !important; max-width: var(--wrap) !important; color: var(--ink-400) !important; font-size: 13px !important; }

/* ---------- Dark bands stay, quieter ---------- */
.dark { background: #15203D; }
.model, .model * { box-shadow: none !important; text-shadow: none !important; }
.core-ring { opacity: .35; }

/* ---------- Floating assistant: plain and polite ---------- */
.cp-fab { background: var(--ink-900) !important; border: 1px solid var(--ink-900) !important; box-shadow: 0 10px 30px -12px rgba(21,32,61,.5) !important; padding: 6px 16px 6px 6px !important; min-height: 46px !important; font-family: var(--font); font-weight: 600; transform: none !important; }
.cp-fab .orb-fab { width: 30px; height: 30px; }
.cp-fab .orb-core { animation: none; box-shadow: none; }
.cp-fab .orb-core::after { display: none; }

/* ---------- Guides read like a well set brief ---------- */
.guide-section { background: var(--paper) !important; }
.guide h2:not(.guide-title) { font-family: var(--serif); font-weight: 500; font-size: 28px; }
.guide .guide-title { font-family: var(--serif); }
.guide p, .guide li { font-family: var(--serif); font-size: 18.5px; line-height: 1.72; color: #2B3654; }
.guide-toc { border-radius: var(--r-lg); background: var(--paper); backdrop-filter: none; }
.guide-next a { border-radius: var(--r-md); }
.guide blockquote { background: #FFF8E8; border-left-color: var(--amber); font-style: italic; }

/* Articles too */
.article .prose p, .article .prose li, .prose p, .prose li { font-family: var(--serif); font-size: 18.5px; line-height: 1.72; }
.prose h2 { font-family: var(--serif); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-paper .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-paper .h-display { max-width: 18ch; }
  .hero-desk { min-height: 640px; max-width: 620px; }
}
@media (max-width: 640px) {
  .hero.hero-paper { padding: 56px 0 48px; }
  .hero-desk { min-height: 600px; }
  .sheet-notice { width: 92%; font-size: 11.5px; padding: 18px; }
  .sheet-reply { top: 210px; width: 94%; padding: 18px; }
  .mnote-1 { top: 182px; right: 2px; font-size: 17px; background: rgba(255,255,255,.85); padding: 0 4px; }
  .ink-1 { display: none; }
  .mnote-2 { display: none; }
  .ink-2 { display: none; }
  .mnote-3 { display: none; }
  .hero-facts, .proof-in { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .hero-facts div:nth-child(3), .proof-in div:nth-child(3) { padding-left: 0; border-left: 0; }
  .section { padding: 72px 0; }
}

/* Clear the old hero decoration and button colours */
.hero.hero-paper::before, .hero.hero-paper::after { display: none !important; content: none !important; }
.hero-paper .btn-secondary { background: transparent !important; border: 1px solid var(--ink-900) !important; color: var(--ink-900) !important; }
.hero-paper .btn-secondary:hover { background: var(--ink-900) !important; color: #fff !important; }

/* ---------- Ruled entries instead of boxed cards ---------- */
.section-head > * { margin-left: 0 !important; }
.grid > .card:not(.price-card), .grid > .module-card { border: 0 !important; border-top: 1px solid var(--ink-900) !important; border-radius: 0 !important; background: transparent !important; padding: 22px 4px 4px 0 !important; }
.grid > .card:not(.price-card):hover, .grid > .module-card:hover { border-top-color: var(--brand-600) !important; }
.module-card .go svg, .card .go svg, .module-card a svg { display: none; }
.module-card .go, .card .go { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.dark .grid > .card { border-top-color: rgba(255,255,255,.5) !important; }

/* The stage ladder is a real sequence: keep the numbers, drop the tiles */
.ladder { gap: 0; border-top: 1px solid var(--ink-900); }
.ladder .rung { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 18px 16px 6px 0 !important; color: var(--ink-900) !important; }
.ladder .rung + .rung { padding-left: 16px !important; border-left: 1px solid var(--line) !important; }
.ladder .rung.active { box-shadow: inset 0 3px 0 var(--brand-600) !important; }
.ladder .rung .n { font-family: var(--serif); font-size: 15px; color: var(--ink-400) !important; }
.ladder .rung .h { color: var(--ink-900) !important; }
.ladder .rung .d { color: var(--ink-600) !important; }

/* No glow behind the model */
.model-section::before { display: none !important; }
.core-ring.r3 { box-shadow: none !important; background: rgba(21,32,61,.9) !important; }
.section-head.center { justify-items: start !important; margin-inline: 0 auto !important; }
.icon-badge { display: block !important; place-items: unset !important; }
.icon-badge svg { display: block; }

/* Landing heroes: no decorative rings */
.hero::after { display: none !important; }

/* TaxEye AI page keeps its dark glass, with the same typographic voice */
.ai-hello { font-family: var(--serif) !important; font-weight: 450 !important; letter-spacing: -0.02em !important; }
.ai-hello .grad { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--ai-soft) !important; }
.ai-title span, .ai-prompt b, .ai-side-head strong { font-family: var(--font); }
.ai-md, .ai-bubble { font-family: var(--font); }

/* ---------- Client desk on the chat button ---------- */
.cp-fab { gap: 10px !important; padding: 6px 18px 6px 6px !important; min-height: 52px !important; }
.desk-av { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #E8ECF8; color: var(--ink-900); font-family: var(--serif); font-size: 20px; font-weight: 500; }
.desk-av-lg { width: 42px; height: 42px; }
.desk-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #9AA1B4; border: 2px solid var(--ink-900); }
.is-online .desk-dot { background: #2FA36B; }
.cp-panel .desk-dot { border-color: #0B1230; }
.cp-fab-label { display: grid; text-align: left; line-height: 1.2; }
.cp-fab-label b { font-size: 15px; font-weight: 600; color: #fff; }
.cp-fab-label small { font-size: 12.5px; font-weight: 500; color: #C9D1F2; }

/* Panel: the person first, the assistant clearly second */
.cp-head-t strong { font-family: var(--font); font-weight: 600; }
.cp-head-t p { font-size: 12.5px; color: var(--ai-soft); }
.desk-talk { display: grid; gap: 10px; padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.desk-talk-h { font-weight: 600; color: #fff; font-size: 14.5px; }
.desk-talk-row { display: flex; flex-wrap: wrap; gap: 8px; }
.desk-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.desk-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.desk-talk-note { font-size: 12.5px; color: var(--ai-muted); }
.desk-ai-h { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.desk-ai-h p { display: grid; font-size: 13px; color: var(--ai-soft); line-height: 1.4; }
.desk-ai-h b { color: #fff; font-size: 14.5px; }

/* Greeting bubble on small screens */
.desk-hello { position: fixed; right: 16px; bottom: 84px; z-index: 51; width: min(300px, calc(100vw - 32px)); padding: 14px 34px 14px 16px; border-radius: 12px; background: #fff; color: var(--ink-900); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(21,32,61,.45); font-size: 14.5px; line-height: 1.45; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { .desk-hello:not([hidden]) { animation: helloIn .35s ease-out both; } }
@keyframes helloIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.desk-hello-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-600); cursor: pointer; border-radius: 6px; }
.desk-hello-x:hover { background: var(--surface-50); }
@media (max-width: 640px) {
  .cp-fab { width: auto !important; height: auto !important; padding: 5px 14px 5px 5px !important; }
  .cp-fab-label { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; }
  .cp-fab-label small { display: none; }
}

/* ==========================================================================
   Client desk panel, light and calm. Scoped to the widget; the full AI page keeps its dark glass.
   ========================================================================== */
.cp-panel.cp-light { background: #fff !important; color: var(--ink-900) !important; border: 1px solid var(--line) !important; border-radius: 16px !important; box-shadow: 0 32px 80px -24px rgba(21,32,61,.38), 0 2px 6px rgba(21,32,61,.06) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; width: min(392px, calc(100vw - 32px)) !important; height: min(620px, calc(100dvh - 104px)) !important; font-family: var(--font); }
@media (prefers-reduced-motion: no-preference) { .cp-panel.cp-light:not([hidden]) { animation: cpIn .24s cubic-bezier(.2,.8,.2,1) both !important; } }
@keyframes cpIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cpx-head { display: flex; align-items: center; gap: 10px; padding: 14px 10px 14px 16px; background: var(--ink-900); color: #fff; border-radius: 15px 15px 0 0; }
.cpx-head .desk-av { width: 38px; height: 38px; font-size: 18px; }
.cpx-head-t { flex: 1; min-width: 0; line-height: 1.25; }
.cpx-head-t strong { display: block; font-size: 15px; font-weight: 600; }
.cpx-head-t p { font-size: 12.5px; color: #C3CAE0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpx-hbtn, .cpx-back { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: #C3CAE0; cursor: pointer; }
.cpx-hbtn:hover, .cpx-back:hover { background: rgba(255,255,255,.1); color: #fff; }
.cpx-back { margin-left: -6px; }
.cpx-back svg { transform: rotate(90deg); }
.cp-light.is-chat .cpx-head .desk-av { display: none; }

.cp-light .cp-body { padding: 0 !important; background: #fff; }
.cpx-view { padding: 20px 16px 16px; }
.cpx-greet { padding: 2px 4px 16px; }
.cpx-hi { font-family: var(--serif); font-size: 26px; line-height: 1.15; font-weight: 500; color: var(--ink-900); }
.cpx-greet p:not(.cpx-hi) { margin-top: 4px; color: var(--ink-600); font-size: 15.5px; }

.cpx-menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.cpx-menu li { border-bottom: 1px solid var(--line-soft); }
.cpx-menu button, .cpx-menu a { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 6px; border: 0; background: none; text-align: left; font: inherit; color: var(--ink-900); text-decoration: none; cursor: pointer; border-radius: 8px; }
.cpx-menu button:hover, .cpx-menu a:hover { background: var(--surface-50); }
.cpx-menu button:focus-visible, .cpx-menu a:focus-visible, .cpx-roles button:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 1px; }
.cpx-menu > li > * > svg:last-child { flex: none; color: var(--ink-400); transform: rotate(-90deg); }
.cpx-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #EEF1F9; color: var(--brand-600); }
.cpx-ic-person { background: #E8ECF8; color: var(--ink-900); font-family: var(--serif); font-size: 17px; }
.cpx-t { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.cpx-t b { font-weight: 600; font-size: 14.5px; }
.cpx-t small { font-size: 12.5px; color: var(--ink-600); }
.is-online .cpx-ic-person { box-shadow: inset 0 0 0 2px #2FA36B; }

.cpx-q { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; }
.cpx-qs { color: var(--ink-600); font-size: 14px; margin: 4px 0 16px; }
.cpx-roles { display: grid; gap: 8px; }
.cpx-roles button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; font: inherit; color: var(--ink-900); cursor: pointer; }
.cpx-roles button:hover { border-color: var(--ink-900); }
.cpx-roles svg { color: var(--brand-600); flex: none; }
.cpx-roles span { display: grid; line-height: 1.3; }
.cpx-roles b { font-weight: 600; font-size: 14.5px; }
.cpx-roles small { font-size: 12.5px; color: var(--ink-600); }

.cpx-person { text-align: center; padding: 6px 0 18px; }
.desk-av-xl { width: 64px; height: 64px; font-size: 28px; margin: 0 auto 10px; }
.desk-av-xl .desk-dot { width: 16px; height: 16px; border-color: #fff; }
.cpx-person-n { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.cpx-person-s { font-size: 13.5px; color: var(--ink-600); }

.cpx-ai-label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 14px; border-radius: 10px; background: var(--surface-50); border: 1px solid var(--line-soft); }
.cpx-ai-label p { font-size: 12.5px; line-height: 1.45; color: var(--ink-600); }
.cpx-ai-label b { color: var(--ink-900); }

/* AI conversation, light */
.cp-light .cp-intro { margin-bottom: 12px; }
.cp-light .cp-suggest { display: grid; gap: 6px; }
.cp-light .cp-suggest button { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-900); font-size: 13.5px; }
.cp-light .cp-suggest button:hover { border-color: var(--brand-600); background: #F4F6FE; }
.cp-light .ai-thread.compact { gap: 16px; }
.cp-light .ai-md { color: var(--ink-700) !important; font-size: 14.5px; }
.cp-light .ai-md strong, .cp-light .ai-md h4 { color: var(--ink-900) !important; }
.cp-light .ai-md a { color: var(--brand-600) !important; text-decoration-color: rgba(47,75,224,.35) !important; }
.cp-light .ai-md li::marker { color: var(--brand-600); }
.cp-light .ai-md code { background: #EEF1F9; color: var(--ink-900); }
.cp-light .ai-md a.cite { color: #fff !important; background: var(--brand-600) !important; border-color: var(--brand-600) !important; }
.cp-light .ai-bubble { background: var(--brand-600) !important; box-shadow: none !important; border-radius: 14px 14px 4px 14px; }
.cp-light .ai-src-label { color: var(--ink-400); }
.cp-light .ai-src { background: #fff; border-color: var(--line); color: var(--ink-700); }
.cp-light .ai-src:hover { border-color: var(--brand-600); color: var(--ink-900); background: #fff; }
.cp-light .ai-src i { background: var(--brand-600); }
.cp-light .ai-src svg { color: var(--brand-600); }
.cp-light .ai-src small { color: var(--ink-400); }
.cp-light .ai-cta { background: #fff; border: 1px solid var(--ink-900); color: var(--ink-900); border-radius: 8px; }
.cp-light .ai-cta:hover { background: var(--ink-900); color: #fff; }
.cp-light .ai-cta.primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: none; }
.cp-light .ai-tool { color: var(--ink-400); }
.cp-light .ai-tool:hover { background: var(--surface-50); color: var(--ink-900); }
.cp-light .ai-tool[aria-pressed="true"] { color: var(--brand-600); background: #EEF1F9; }
.cp-light .ai-follow button { border: 1px solid var(--line); border-style: solid; background: #fff; color: var(--ink-900); border-radius: 999px; }
.cp-light .ai-follow button:hover { border-color: var(--brand-600); background: #F4F6FE; color: var(--ink-900); }
.cp-light .ai-think span { background: var(--brand-600); }
.cp-light .ai-think em { background: linear-gradient(90deg, var(--ink-400) 0%, var(--ink-900) 50%, var(--ink-400) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-light .ai-caret { background: var(--brand-600); }
.cp-light .glass-card, .cp-light .ai-lead { background: var(--surface-50); border: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 12px; }
.cp-light .ai-lead b { color: var(--ink-900); }
.cp-light .ai-lead > p, .cp-light .ai-lead label { color: var(--ink-600); }
.cp-light .ai-lead input, .cp-light .ai-lead select { background: #fff; border: 1px solid var(--line); color: var(--ink-900); border-radius: 8px; }
.cp-light .ai-lead input:focus, .cp-light .ai-lead select:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(47,75,224,.15); }
.cp-light .ai-lead-row a { color: var(--brand-600); }
.cp-light .ai-lead-err { color: var(--pen); }

.cp-light .cp-foot { margin: 0; padding: 10px 12px; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: #fff; box-shadow: none; }
.cp-light .cp-foot[hidden] { display: none; }
.cp-light .cp-foot input { color: var(--ink-900); padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; min-height: 42px; background: var(--surface-50); }
.cp-light .cp-foot input::placeholder { color: var(--ink-400); }
.cp-light .cp-foot input:focus { border-color: var(--brand-600); background: #fff; outline: none; }
.cp-light .cp-foot:focus-within { box-shadow: none; }
.cp-light .cp-foot .ai-send { background: var(--brand-600); box-shadow: none; border-radius: 10px; }
.cp-light .cp-note { color: var(--ink-400); padding: 0 16px 10px; background: #fff; border-radius: 0 0 16px 16px; }
.cp-light[data-view="home"] .cp-note, .cp-light[data-view="talk"] .cp-note, .cp-light[data-view="role"] .cp-note { display: none; }
.cp-light .desk-dot { border-color: var(--ink-900); }
.cpx-person .desk-dot { border-color: #fff; }
@media (max-width: 640px) { .cp-panel.cp-light { left: 8px !important; right: 8px !important; width: auto !important; bottom: 76px !important; height: min(620px, calc(100dvh - 92px)) !important; } }
.cp-light.as-desk .cpx-ai-label { display: none; }
.cp-light.as-desk .cp-foot, .cp-light.as-desk .cp-note { display: none; }
.cp-light.as-desk .cpx-head .desk-av { display: grid; }
.cp-light .ai-thread.compact { position: relative; }
.cp-light .ai-form-msg { grid-template-columns: minmax(0, 1fr) !important; }
.cp-light .ai-form-msg > .orb { display: none; }

/* ---------- Demo booking conversation ---------- */
.cp-light[data-view="book"] .cp-body { background: var(--surface-50); }
.cp-light[data-view="book"] .cp-note { display: none; }
.cpx-view[data-v="book"] { padding: 0 0 8px; }
.bk-note { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; justify-content: space-between; margin: 0; padding: 8px 16px; font-size: 12.5px; line-height: 1.4; color: var(--ink-600); background: rgba(245,246,249,.94); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(6px); }
.bk-note button { flex: none; font: inherit; font-weight: 600; color: var(--ink-900); background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); cursor: pointer; }
.bk-thread { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 4px; }
.bk-row { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.bk-row.bk-in { animation: bkIn .28s ease-out both; }
@keyframes bkIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bk-r .desk-av-sm { width: 26px; height: 26px; font-size: 13px; }
.bk-b { padding: 10px 13px; font-size: 14.5px; line-height: 1.5; border-radius: 14px; max-width: 84%; overflow-wrap: anywhere; }
.bk-r .bk-b { background: #fff; color: var(--ink-900); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.bk-r + .bk-r .desk-av-sm { visibility: hidden; }
.bk-u { justify-content: flex-end; }
.bk-u .bk-b { background: var(--ink-900); color: #fff; border-bottom-right-radius: 4px; }
.bk-b b { font-weight: 600; }
.bk-typing { display: inline-flex; gap: 4px; padding: 3px 0; }
.bk-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-600); opacity: .35; animation: bkDot 1s infinite; }
.bk-typing i:nth-child(2) { animation-delay: .15s; } .bk-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bkDot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: .9; transform: translateY(-2px); } }

.bk-dock { padding: 6px 16px 12px 50px; }
.bk-dock[hidden] { display: none; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip { font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-900); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.bk-chip:hover { border-color: var(--ink-900); }
.bk-chip[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.bk-chip[aria-pressed="true"]::before { content: '\2713'; margin-right: 6px; }
.bk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.bk-acts-col { flex-direction: column; align-items: stretch; }
.bk-go { font: inherit; font-size: 14.5px; font-weight: 600; text-align: center; color: #fff; background: var(--brand-600); border: 1px solid var(--brand-600); border-radius: 10px; padding: 10px 16px; min-height: 44px; cursor: pointer; text-decoration: none; }
.bk-go:disabled { opacity: .45; cursor: not-allowed; }
.bk-skip { font: inherit; font-size: 14px; font-weight: 500; text-align: center; color: var(--ink-900); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; min-height: 42px; cursor: pointer; text-decoration: none; }
.bk-skip:hover { border-color: var(--ink-900); }
.bk-err { margin: 0 0 8px; font-size: 13.5px; color: var(--pen); }

.bk-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bk-day { display: grid; justify-items: center; gap: 0; padding: 10px 4px 8px; font: inherit; color: var(--ink-900); background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.bk-day:hover, .bk-day:focus-visible { border-color: var(--ink-900); }
.bk-day small { font-size: 12px; color: var(--ink-600); }
.bk-day b { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.15; }
.bk-day i { margin-top: 4px; font-style: normal; font-size: 11.5px; font-weight: 600; color: #1E7A4C; }
.bk-part + .bk-part { margin-top: 10px; }
.bk-part > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-600); margin-bottom: 6px; }
.bk-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bk-time { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-900); background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 42px; cursor: pointer; }
.bk-time:hover:not(:disabled) { border-color: var(--ink-900); }
.bk-time:disabled { color: #9AA0B2; background: transparent; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }

.bk-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; }
.bk-card dl { margin: 0; }
.bk-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; }
.bk-card dl div + div { border-top: 1px solid var(--line-soft); }
.bk-card dt { color: var(--ink-600); }
.bk-card dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.bk-ok { padding: 14px; border-color: #B9DEC8; background: #F2FAF5; }
.bk-ok p { margin: 0; font-size: 14px; color: var(--ink-700); }
.bk-ref { font-size: 13px !important; color: #1E7A4C !important; margin-bottom: 4px !important; }
.bk-ref b { font-size: 15px; letter-spacing: .02em; color: var(--ink-900); }
.bk-fine { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-600); }
.bk-fine a { color: var(--ink-900); text-decoration: underline; }

.bk-stars { display: flex; gap: 6px; }
.bk-stars button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.bk-stars svg { width: 32px; height: 32px; fill: #fff; stroke: #B8BECD; stroke-width: 1.4; stroke-linejoin: round; transition: fill .12s, stroke .12s, transform .12s; }
.bk-stars button.on svg { fill: #E8A317; stroke: #C8890C; transform: scale(1.06); }
.bk-star-l { margin: 4px 0 0; font-size: 13px; color: var(--ink-600); min-height: 1.4em; }
.bk-cmt { display: block; margin-top: 10px; }
.bk-cmt textarea { width: 100%; font: inherit; font-size: 14px; color: var(--ink-900); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; resize: vertical; }
.bk-cmt textarea:focus { outline: none; border-color: var(--brand-600); }
@media (max-width: 480px) { .bk-dock { padding-left: 16px; } .bk-b { max-width: 88%; } }
@media (prefers-reduced-motion: reduce) { .bk-row.bk-in, .bk-typing i { animation: none; } }

/* Wide tables inside guides scroll on their own instead of widening the page */
.guide > * { min-width: 0; }
.guide .table-scroll, .prose .table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .cp-fab[aria-expanded="true"] { display: none !important; } }
.slots button:disabled { color: #9AA0B2; background: transparent; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }

/* ---------- Product creatives: the dashboard redrawn with sample data ---------- */
.creative-band { background: var(--surface-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.creative-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: end; margin-bottom: 72px; }
.creative-head p { color: var(--ink-600); font-size: 17px; max-width: 52ch; }
.cdesk, .csec { position: relative; margin: 0; }
.cdesk figcaption, .csec figcaption { margin-top: 16px; font-size: 14px; color: var(--ink-600); max-width: 70ch; }

.cdesk-frame { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 0 rgba(21,32,61,.04), 0 40px 80px -40px rgba(21,32,61,.35); overflow: hidden; }
.cdesk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: #FAFBFC; }
.cdesk-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D9DDE7; }
.cdesk-bar span { margin-left: 12px; font-size: 12px; color: var(--ink-600); background: #fff; border: 1px solid var(--line-soft); border-radius: 6px; padding: 3px 12px; }
.cdesk-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); }
.cdesk-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0; border-right: 1px solid var(--line-soft); color: #6B7389; }
/* The app's menu opens each desk (taxeye.js, [data-app-desk]); the name shows beside the icon on hover */
.cdesk-rail button { position: relative; width: 32px; height: 32px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; transition: background .15s, color .15s; }
.cdesk-rail button:hover { background: #EEF0F5; color: var(--ink-900); }
.cdesk-rail button.on { background: var(--ink-900); color: #fff; }
.cdesk-rail button:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.cdesk-tip { position: absolute; left: calc(100% + 10px); top: 50%; transform: translate(-4px, -50%); z-index: 3; white-space: nowrap; font-size: 12px; font-weight: 600; color: #fff; background: var(--ink-900); border-radius: 6px; padding: 4px 9px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.cdesk-rail button:hover .cdesk-tip, .cdesk-rail button:focus-visible .cdesk-tip { opacity: 1; transform: translate(0, -50%); }
.cdesk-main { padding: 18px 22px 22px; min-width: 0; }
.cdesk-top { display: flex; align-items: center; gap: 10px; font-size: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.cdesk-crumb { color: var(--ink-600); }
.cdesk-crumb::before { content: '/'; margin-right: 10px; color: var(--line); }
.cdesk-sync { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #1E7A4C; background: #F2FAF5; border: 1px solid #CFE8D8; border-radius: 999px; padding: 3px 10px; }
.cdesk-sync i { width: 7px; height: 7px; border-radius: 50%; background: #1E9E5C; }
.cdesk-h { margin: 16px 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-900); }
.cdesk-h span { margin-left: 8px; font-weight: 500; color: #8A5A00; background: #FFF4DB; border-radius: 4px; padding: 1px 7px; font-size: 12px; }
.cdesk-queue { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cq { border: 1px solid var(--line-soft); border-left: 3px solid var(--ink-900); border-radius: 6px; padding: 10px 12px; display: grid; gap: 1px; }
.cq b { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.05; color: var(--ink-900); }
.cq span { font-size: 12.5px; font-weight: 600; color: var(--ink-900); line-height: 1.3; }
.cq small { font-size: 11.5px; color: var(--ink-600); }
.cq-red { border-left-color: var(--pen); } .cq-red b { color: var(--pen); }
.cq-amber { border-left-color: #C8890C; } .cq-blue { border-left-color: var(--brand-600); }
.cdesk-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 10px; }
.cdesk-tools span { font-size: 12px; font-weight: 500; color: var(--ink-700); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; }
.cdesk-tools .sel { min-width: 150px; }
.cdesk-tools .sel::after { content: '\25BE'; float: right; margin-left: 10px; color: var(--ink-600); }
.cdesk-tools .pri { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.cdesk-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cdesk-pills span { font-size: 12.5px; color: var(--ink-600); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 12px; background: #FAFBFC; }
.cdesk-pills b { margin-left: 4px; color: var(--ink-900); font-size: 14px; }
.cdesk-pills .red { border-color: #F0C6C9; background: #FDF3F4; } .cdesk-pills .red b { color: var(--pen); }
.cdesk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--ink-900); }
.cdesk-kpis div { padding: 12px 14px 4px 0; display: grid; gap: 2px; }
.cdesk-kpis div + div { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.cdesk-kpis span { font-size: 12px; color: var(--ink-600); }
.cdesk-kpis b { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ink-900); line-height: 1.15; }
.cdesk-kpis b em { font-style: normal; font-size: 15px; color: var(--ink-600); }
.cdesk-kpis small { font-size: 11.5px; color: var(--ink-600); }
.cdesk-kpis .red { color: var(--pen); } .cdesk-kpis .green { color: #1E7A4C; }
.cdesk-track { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: #FAFBFC; }
.cdesk-track .lbl { font-size: 12px; font-weight: 600; color: #fff; background: var(--ink-900); border-radius: 6px; padding: 4px 10px; margin-right: 4px; }
.tk { font-size: 12px; font-weight: 500; border-radius: 999px; padding: 3px 4px 3px 10px; border: 1px solid; display: inline-flex; align-items: center; gap: 6px; }
.tk i { font-style: normal; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.tk-od { color: #8E1C24; border-color: #F0C6C9; background: #FDF3F4; } .tk-od i { background: var(--pen); }
.tk-td { color: #7A4F00; border-color: #F2D9A6; background: #FFF8E8; } .tk-td i { background: #8F5F00; }
.tk-wk { color: #23399E; border-color: #CCD6F6; background: #F3F6FE; } .tk-wk i { background: var(--brand-600); }
.tk-lt { color: #1E5E3E; border-color: #CFE8D8; background: #F2FAF5; } .tk-lt i { background: #1E7A4C; }
.cdesk .mnote, .csec .mnote { font-size: 20px; }
.cdesk .mnote, .csec .mnote { animation: none !important; white-space: nowrap; }
.cdesk .ink path, .csec .ink path { animation: none !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
.cdesk-n1 { left: 50%; top: -50px; transform: rotate(-2deg); } .cdesk-a1 { left: calc(50% - 92px); top: -40px; width: 96px; height: 52px; }
.cdesk-n2 { right: 0; bottom: -2px; transform: rotate(-2deg); } .cdesk-a2 { right: 120px; bottom: 26px; width: 44px; height: 56px; }

/* Desks: every view sits in the same grid cell, so the frame keeps the height of the tallest and the page never jumps */
.cdesk-bar span b { font-weight: inherit; }
.cdesk-views { display: grid; }
.cdesk-view { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; }
.cdesk-view.on { visibility: visible; opacity: 1; transition: opacity .25s; }
.cdesk-view > .cdesk-queue:first-child, .cdesk-view > .cdesk-tools:first-child, .cdesk-view > .cdesk-track:first-child, .cdesk-view > .cc:first-child { margin-top: 16px; }
.cdesk:not([data-view="dashboard"]) .mnote, .cdesk:not([data-view="dashboard"]) .ink { opacity: 0; visibility: hidden; }
.cdesk .mnote, .cdesk .ink { transition: opacity .25s; }
.cdesk-gap { margin-top: 14px; }
.cq-green { border-left-color: #1E7A4C; }
.cdesk-hint { color: var(--ink-400); }

/* Dashboard parts open the desk they belong to */
.cdesk [data-open-desk] { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; }
.cdesk [data-open-desk]:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.cdesk .cq[data-open-desk]:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(21,32,61,.45); }
.cdesk-tools [data-open-desk]:hover, .cdesk-pills [data-open-desk]:hover, .cdesk .tk[data-open-desk]:hover { border-color: var(--ink-900); }
.cdesk-tools .pri[data-open-desk]:hover { background: #26324F; }
.cdesk-kpis [data-open-desk]:hover { box-shadow: inset 0 -2px 0 var(--ink-900); }

/* Tables */
.ct { border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.ct-h, .ct-r { display: grid; grid-template-columns: var(--cols); gap: 12px; align-items: center; padding: 0 14px; }
.ct-h { background: #FAFBFC; border-bottom: 1px solid var(--line-soft); padding-top: 8px; padding-bottom: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-600); }
.ct-r { min-height: 42px; font-size: 13px; color: var(--ink-700); }
.ct-r + .ct-r { border-top: 1px solid var(--line-soft); }
.ct-h span, .ct-r span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-r span:first-child { font-weight: 600; color: var(--ink-900); }
.ct-h span:last-child, .ct-r span:last-child { text-align: right; }
.ct-r em { font-style: normal; }
.ct-foot { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-600); }
.st-info { color: #23399E; background: #F3F6FE; } .st-ok { color: #1E5E3E; background: #F2FAF5; } .st-mute { color: var(--ink-600); background: #F1F3F7; }

/* Notice hub */
.cdesk-buckets { margin-top: 16px; }
.cn { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.cn-list { border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.cn-i { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; font-size: 13px; border-left: 3px solid transparent; }
.cn-i + .cn-i { border-top: 1px solid var(--line-soft); }
.cn-i.sel { background: #F7F8FC; border-left-color: var(--ink-900); }
.cn-i b { font-family: var(--mono); font-size: 12px; color: var(--ink-900); }
.cn-i span { min-width: 0; font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-i em { font-style: normal; }
.cn-i small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-600); overflow: hidden; text-overflow: ellipsis; }
.cn-det { border: 1px solid var(--line-soft); border-top: 2px solid var(--ink-900); border-radius: 8px; padding: 12px 14px; font-size: 13px; }
.cn-dh { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-900); }
.cn-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.cn-row span { color: var(--ink-600); } .cn-row b { font-weight: 600; color: var(--ink-900); text-align: right; }
.cn-ai { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 7px 10px; border-radius: 6px; background: var(--ink-900); color: #fff; font-size: 12.5px; font-weight: 600; }

/* Team chat */
.cc { display: grid; grid-template-columns: 210px minmax(0, 1fr); border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.cc-ch { border-right: 1px solid var(--line-soft); background: #FAFBFC; }
.cc-ch div { position: relative; display: grid; padding: 10px 14px; font-size: 13px; border-left: 3px solid transparent; }
.cc-ch div + div { border-top: 1px solid var(--line-soft); }
.cc-ch div.on { background: #fff; border-left-color: var(--ink-900); }
.cc-ch b { color: var(--ink-900); font-weight: 600; } .cc-ch small { font-size: 12px; color: var(--ink-600); }
.cc-ch i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--pen); border-radius: 9px; min-width: 18px; height: 18px; display: grid; place-items: center; }
.cc-th { padding: 12px 16px; display: grid; gap: 12px; align-content: start; }
.cc-tt { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); font-size: 13px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cc-tt b { color: var(--ink-900); } .cc-tt span { color: var(--ink-600); font-size: 12px; }
.cc-m { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.cc-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-900); color: #fff; font-size: 11px; font-weight: 700; }
.cc-m b { color: var(--ink-900); font-size: 13px; } .cc-m b small { font-weight: 400; color: var(--ink-400); margin-left: 4px; }
.cc-m p { margin: 2px 0 0; color: var(--ink-700); line-height: 1.5; }
.cc-att { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: var(--ink-700); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.cc-in { margin-top: 2px; font-size: 12.5px; color: var(--ink-400); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }

/* Moving between desks: the new view's parts arrive in turn */
@keyframes cdesk-in { from { opacity: 0; transform: translateY(6px); } }
.cdesk.moved .cdesk-view.on > *, .cdesk.moved .cdesk-view.on .ct-r, .cdesk.moved .cdesk-view.on .cn-i, .cdesk.moved .cdesk-view.on .cc-m { animation: cdesk-in .35s ease both; }
.cdesk.moved .cdesk-view.on > :nth-child(2) { animation-delay: .06s; } .cdesk.moved .cdesk-view.on > :nth-child(3) { animation-delay: .12s; } .cdesk.moved .cdesk-view.on > :nth-child(n+4) { animation-delay: .18s; }
.cdesk.moved .cdesk-view.on .ct-r, .cdesk.moved .cdesk-view.on .cn-i, .cdesk.moved .cdesk-view.on .cc-m { animation-delay: calc(.12s + var(--i, 0) * 45ms); }
@media (prefers-reduced-motion: reduce) {
  .cdesk-view, .cdesk-view.on { transition: none; }
  .cdesk.moved .cdesk-view.on *, .cdesk.moved .cdesk-view.on > * { animation: none !important; }
}

.csec-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.csec-board, .csec-side { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; box-shadow: 0 30px 60px -36px rgba(21,32,61,.3); min-width: 0; }
.csec-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.csec-head b { font-size: 15px; color: var(--ink-900); }
.csec-head span { font-size: 13px; color: var(--ink-600); }
.csec-head em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: #7A4F00; background: #FFF4DB; border-radius: 4px; padding: 2px 8px; }
.csec-g { border: 1px solid var(--line-soft); border-left: 3px solid var(--ink-900); border-radius: 6px; margin-top: 8px; }
.csec-red { border-left-color: var(--pen); } .csec-blue { border-left-color: var(--brand-600); } .csec-amber { border-left-color: #C8890C; }
.csec-gh { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 10px 12px; }
.csec-gh b { font-size: 14px; color: var(--ink-900); }
.csec-gh small { grid-row: 2; font-size: 12px; color: var(--ink-600); }
.csec-gh i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--ink-900); border-radius: 999px; padding: 2px 9px; }
.csec-red .csec-gh i { background: var(--pen); } .csec-blue .csec-gh i { background: var(--brand-600); } .csec-amber .csec-gh i { background: #8F5F00; }
.csec-g.open .csec-gh { background: #FCF6F6; border-bottom: 1px solid var(--line-soft); }
.csec-r { display: grid; grid-template-columns: minmax(0, 1.5fr) auto auto auto; gap: 10px; align-items: center; padding: 9px 12px; font-size: 13px; }
.csec-r + .csec-r { border-top: 1px solid var(--line-soft); }
.csec-r .n { font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csec-r .p { font-size: 12px; color: var(--ink-600); letter-spacing: .02em; }
.csec-r .ay { font-size: 12px; color: var(--ink-700); background: var(--surface-50); border-radius: 4px; padding: 1px 6px; }
.st { font-size: 12px; font-weight: 600; border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.st-crit { color: #8E1C24; background: #FDF3F4; } .st-act { color: #7A4F00; background: #FFF8E8; }
.csec-s { display: grid; grid-template-columns: minmax(0, 1fr) 70px 26px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; color: var(--ink-700); }
.csec-s + .csec-s { border-top: 1px solid var(--line-soft); }
.csec-s i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink-900) var(--w), #E7EAF0 var(--w)); }
.csec-s b { text-align: right; color: var(--ink-900); }
.csec-cal { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ink-900); }
.csec-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.csec-days span { aspect-ratio: 1; border-radius: 4px; background: #EEF0F5; }
.csec-days .h1 { background: #F7D9DB; } .csec-days .h2 { background: #E9A2A8; } .csec-days .h3 { background: #D0606A; } .csec-days .h4 { background: var(--pen); }
.csec-cal small { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-600); }
.csec-n { left: 24%; top: -50px; transform: rotate(-2deg); } .csec-a { left: calc(24% - 92px); top: -40px; width: 96px; height: 52px; }

@media (max-width: 1100px) {
  .cdesk-queue { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cdesk .mnote, .cdesk .ink, .csec .mnote, .csec .ink { display: none; }
}
@media (max-width: 760px) {
  .creative-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .cdesk-body { grid-template-columns: 1fr; }
  .cdesk-rail { flex-direction: row; justify-content: flex-start; gap: 6px; padding: 8px 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
  .cdesk-rail::-webkit-scrollbar { display: none; }
  .cdesk-tip { display: none; }
  .ct-h, .ct-r { grid-template-columns: minmax(0, 1fr) auto; }
  .ct-h span:not(:first-child):not(:last-child), .ct-r span:not(:first-child):not(:last-child) { display: none; }
  .cn, .cc { grid-template-columns: 1fr; }
  .cn-i { grid-template-columns: minmax(0, 1fr) auto; } .cn-i b { display: none; }
  .cc-ch { display: none; }
  .cdesk figcaption { min-height: 6.6em; }
  .cdesk-main { padding: 14px; }
  .cdesk-queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cdesk-tools span:nth-child(n+4) { display: none; }
  .cdesk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cdesk-kpis div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cdesk-kpis div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .cdesk-track .tk:nth-of-type(n+6) { display: none; }
  .cdesk-sync { display: none; }
  .csec-grid { grid-template-columns: 1fr; }
  .csec-r { grid-template-columns: minmax(0, 1fr) auto; }
  .csec-r .p { display: none; } .csec-r .ay { grid-row: 2; grid-column: 1; justify-self: start; } .csec-r .st { grid-row: 1 / span 2; grid-column: 2; }
}


/* ---------- Inner pages: the same paper and ink hero as home ---------- */
.hero.field-grid { background: var(--surface-50) !important; background-image: none !important; color: var(--ink-900); border-bottom: 1px solid var(--line); }
.hero.field-grid::before, .hero.field-grid::after { display: none !important; }
.hero.field-grid h1, .hero.field-grid .h-1, .hero.field-grid .h-display { color: var(--ink-900); }
.hero.field-grid .lead, .hero.field-grid .muted, .hero.field-grid .hero-proof, .hero.field-grid .small { color: var(--ink-600) !important; }
.hero.field-grid .breadcrumb, .hero.field-grid .breadcrumb a { color: var(--ink-600); }
.hero.field-grid .breadcrumb a:hover { color: var(--brand-600); }
.hero.field-grid .accent, .hero.field-grid .eyebrow { color: var(--brand-600); }
.hero.field-grid .btn-secondary { background: transparent !important; border: 1px solid var(--ink-900) !important; color: var(--ink-900) !important; backdrop-filter: none; }
.hero.field-grid .btn-secondary:hover { background: var(--ink-900) !important; color: #fff !important; }
.hero.field-grid .hero-proof svg { color: var(--brand-600); }
.hero.field-grid li span[style*="blue-light"] { color: var(--brand-600) !important; }
.hero.field-grid ul, .hero.field-grid li { color: var(--ink-700); }
.hero.field-grid .glass { background: #fff !important; border: 1px solid var(--line) !important; box-shadow: 0 30px 60px -36px rgba(21,32,61,.3) !important; backdrop-filter: none !important; color: var(--ink-900) !important; }
.hero.field-grid .glass [style*="color:#fff"] { color: var(--ink-900) !important; }
.hero.field-grid .hero-mod-tabs a { color: var(--ink-900); background: #fff; border-color: var(--line); }
.hero.field-grid .chips a, .hero.field-grid .topic-chips a { color: var(--ink-900); background: #fff; border-color: var(--line); }
.hero.field-grid .chips a.on, .hero.field-grid .topic-chips a.on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

/* Document sheet in module heroes */
.hsheet { position: relative; margin: 0; padding: 0 0 40px 18px; }
.hsheet-doc { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 26px 28px 22px; box-shadow: 0 1px 0 rgba(21,32,61,.04), 0 30px 60px -30px rgba(21,32,61,.35); transform: rotate(-1.2deg); font-family: 'Courier New', ui-monospace, monospace; color: #2B3654; }
.hsheet-iss { margin: 0 0 12px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.45; }
.hsheet-title { margin: 0; text-align: center; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hsheet-sub { margin: 4px 0 14px; text-align: center; font-size: 12.5px; }
.hsheet-doc dl { margin: 0 0 12px; display: grid; gap: 3px; }
.hsheet-doc dl div { display: grid; grid-template-columns: 140px 1fr; font-size: 12.5px; }
.hsheet-doc dt { color: #5B6275; } .hsheet-doc dd { margin: 0; font-weight: 700; }
.hsheet-body { margin: 0; font-size: 12.5px; line-height: 1.6; }
.hsheet-read { position: relative; margin: -22px 0 0 44px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; box-shadow: 0 24px 50px -28px rgba(21,32,61,.4); font-family: var(--font); }
.hsheet-rh { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-900); }
.hsheet-rh .desk-av-sm { width: 22px; height: 22px; background: var(--ink-900); color: #fff; }
.hsheet-rh em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-600); }
.hsheet-read dl { margin: 0; }
.hsheet-read dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; border-top: 1px solid var(--line-soft); }
.hsheet-read dt { color: var(--ink-600); } .hsheet-read dd { margin: 0; font-weight: 600; color: var(--ink-900); text-align: right; }
.hsheet-n { position: relative; display: block; margin: 14px 0 0 44px; font-size: 19px; animation: none !important; transform: rotate(-1.5deg); }

/* Footer column titles: sentence case, not a shouted label */
.footer .foot-h { color: #fff; font-size: 14px; font-weight: 600; margin: 0 0 14px; }
/* Links inside fine print are underlined, not told apart by colour alone */
.fine a, .bk-fine a, .note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .hsheet { padding-left: 0; } .hsheet-read { margin-left: 16px; } .hsheet-doc dl div { grid-template-columns: 116px 1fr; } .hsheet-n { margin-left: 16px; font-size: 17px; } }

/* ---------- Blog: an editorial front page ---------- */
.blog-front { padding-top: 56px; }
.blog-topic { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--brand-600); }
.blog-lead { display: grid; gap: 14px; padding: 8px 0 40px; border-bottom: 1px solid var(--ink-900); color: var(--ink-900); text-decoration: none; max-width: 860px; }
.blog-lead-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--ink-600); }
.blog-lead-title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.012em; }
.blog-lead:hover .blog-lead-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--line); }
.blog-lead-ex { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink-700); max-width: 62ch; }
.blog-lead-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-600); }
.blog-list { margin-top: 8px; }
.blog-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 160px; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--ink-900); text-decoration: none; align-items: start; }
.blog-row-date { font-size: 13.5px; color: var(--ink-600); padding-top: 4px; }
.blog-row-main { display: grid; gap: 6px; }
.blog-row-main b { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; }
.blog-row-main span { font-size: 15.5px; color: var(--ink-600); max-width: 68ch; }
.blog-row:hover .blog-row-main b { color: var(--brand-600); }
.blog-row-side { display: grid; gap: 2px; justify-items: end; text-align: right; padding-top: 4px; }
.blog-row-side small { font-size: 13px; color: var(--ink-600); }
@media (max-width: 760px) {
  .blog-row { grid-template-columns: 1fr; gap: 6px; }
  .blog-row-side { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 12px; padding: 0; }
  .blog-row-date { order: -1; }
}

/* Product panel at the end of an article */
.art-panel { margin-top: 40px; padding: 24px 26px; border: 1px solid var(--ink-900); border-radius: 8px; background: #fff; display: grid; gap: 10px; }
.art-panel p { margin: 0; }
.art-panel .art-panel-k { font-size: 13px; font-weight: 600; color: var(--brand-600); }
.art-panel .art-panel-t { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--ink-900); }
.art-panel .art-panel-x { font-family: var(--font) !important; font-size: 16px !important; color: var(--ink-600) !important; line-height: 1.55 !important; }
.art-panel-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.runs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--ink-900); }
.run { padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.run h3 { font-size: 17px; margin: 0 0 8px; color: var(--ink-900); }
.run p { margin: 0; font-size: 15.5px; color: var(--ink-600); line-height: 1.6; }
.runs-note { margin-top: 18px; font-size: 14px; color: var(--ink-600); max-width: 72ch; }
@media (max-width: 900px) { .runs { grid-template-columns: 1fr; } }
.contact-facts { margin: 8px 0 0; border-top: 1px solid var(--ink-900); }
.contact-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-facts dt { color: var(--ink-600); } .contact-facts dd { margin: 0; color: var(--ink-900); }
.contact-facts a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .contact-facts div { grid-template-columns: 1fr; gap: 2px; } }

/* Insights featured panel: a paper sheet of the section change, not a glowing block */
.hero.field-grid .feature-art { background: #fff !important; border-right: 1px solid var(--line); }
.hero.field-grid .feature-art::before, .hero.field-grid .feature-art::after { display: none !important; }
.hero.field-grid .fa-num { font-family: var(--serif); font-weight: 500; }
.hero.field-grid .fa-num.old { color: #8A90A2; text-decoration-color: var(--pen); text-decoration-thickness: 3px; }
.hero.field-grid .fa-num.new { color: var(--ink-900); text-shadow: none; }
.hero.field-grid .fa-arrow { color: var(--pen); }
.hero.field-grid .fa-cap { color: var(--ink-600); font-family: var(--font); }
/* Buttons inside tables of contents keep button colours */
.toc a.btn, .guide-toc a.btn { color: #fff !important; border-left: 0 !important; padding: 9px 14px !important; }
.toc a.btn:hover, .guide-toc a.btn:hover { color: #fff !important; }
/* Status pills with enough contrast */
.pill-green { color: #11643B !important; }
/* Links inside running text are underlined */
.lead a, .small a, .muted a { text-decoration: underline; text-underline-offset: 3px; }
.blog-list { list-style: none; padding: 0; } .blog-list li { margin: 0; }
/* Role buttons sit on a fixed two-column grid, so their height never depends on when the font arrives */
[data-wizard] [data-choice="role"], .form-card [data-choice="role"] { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
[data-wizard] [data-choice="role"] button, .form-card [data-choice="role"] button { width: 100%; }

/* =========================================================
   Richer layer: case files, the rail, the ledger, personas, closing
   ========================================================= */
:root { --manila: #E9D9B4; --manila-2: #DCC797; --manila-ink: #5C4517; --ink-950: #0E1530; }

/* Case folders */
.folders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 8px; }
.folder { position: relative; display: block; padding-top: 30px; color: var(--ink-900); text-decoration: none; min-height: 380px; }
.folder-tab { position: absolute; top: 0; left: 0; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 18px 4px; background: var(--manila-2); border-radius: 10px 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--manila-ink); }
.folder-tab em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--pen); border-radius: 4px; padding: 1px 6px; }
.folder-paper { position: absolute; z-index: 2; left: 18px; right: 18px; top: 46px; height: 120px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 14px 16px; box-shadow: 0 10px 24px -14px rgba(21,32,61,.35); transform: rotate(-1.5deg); transition: transform .35s cubic-bezier(.2,.8,.2,1); display: grid; gap: 7px; align-content: start; font-family: 'Courier New', ui-monospace, monospace; }
.folder:nth-child(even) .folder-paper { transform: rotate(1.2deg); }
.folder-paper b { font-size: 12.5px; font-weight: 700; color: #2B3654; text-decoration: underline; text-underline-offset: 3px; }
.folder-paper i { font-style: normal; font-size: 12px; color: #5B6275; line-height: 1.4; }
.folder-paper span { display: block; height: 6px; border-radius: 3px; background: #E7EAF0; }
.folder-paper span.short { width: 60%; }
.folder-front { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; top: 138px; display: grid; align-content: start; gap: 8px; padding: 22px 22px 22px; background: linear-gradient(180deg, #EFE2C3 0%, var(--manila) 100%); border-radius: 0 12px 12px 12px; box-shadow: 0 -1px 0 rgba(107,82,32,.18) inset, 0 24px 40px -28px rgba(21,32,61,.45); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.folder-front::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.6); }
.folder-name { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.05; color: var(--ink-900); }
.folder-tag { font-size: 14.5px; color: #4A3F28; }
.folder-stages { font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--manila-ink); }
.folder-go { position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-900); }
.folder:hover .folder-paper, .folder:focus-visible .folder-paper { transform: translateY(-22px) rotate(-2.5deg); }
.folder:hover .folder-front, .folder:focus-visible .folder-front { transform: translateY(4px); }
.folder:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 6px; border-radius: 12px; }

/* Six step rail */
.rail { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.rail::before { content: ''; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-900) 0 8px, transparent 8px 14px); opacity: .35; }
.rail-step { position: relative; padding: 0 18px 0 0; display: grid; gap: 8px; align-content: start; }
.rail-n { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-50); border: 2px solid var(--ink-900); font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink-900); margin-bottom: 8px; }
.rail-step:nth-child(5) .rail-n { background: var(--ink-900); color: #fff; }
.rail-step h3 { font-size: 18px; margin: 0; }
.rail-step p { margin: 0; font-size: 14.5px; color: var(--ink-600); line-height: 1.55; min-height: 4.6em; }
.rail-chip { justify-self: start; max-width: calc(100% - 8px); flex-wrap: wrap; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--ink-900); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; box-shadow: 0 6px 14px -10px rgba(21,32,61,.4); }
.rail-chip b { font-weight: 700; }
.rail-chip .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.rail-chip .dot.ok { background: #1E9E5C; } .rail-chip .dot.warn { background: #C8890C; }

/* Ledger */
.ledger { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 30px 60px -40px rgba(21,32,61,.35); background-image: linear-gradient(90deg, transparent 0 calc(22% - 1px), rgba(180,35,44,.35) calc(22% - 1px) 22%, transparent 22%); }
.ledger-head, .ledger-row { display: grid; grid-template-columns: 22% 1fr 1fr; }
.ledger-head span { padding: 16px 22px; font-size: 13px; font-weight: 600; color: var(--ink-600); border-bottom: 2px solid var(--ink-900); }
.ledger-head span:last-child { color: var(--ink-900); }
.ledger-row > span { padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.ledger-row:last-child > span { border-bottom: 0; }
.ledger-k { font-family: var(--serif); font-size: 20px; color: var(--ink-900); }
.ledger-old { font-size: 15px; color: #5E6477; text-decoration: line-through; text-decoration-color: rgba(180,35,44,.7); text-decoration-thickness: 1.5px; }
.ledger-new { font-size: 15.5px; font-weight: 600; color: var(--ink-900); position: relative; padding-left: 46px !important; }
.ledger-new::before { content: ''; position: absolute; left: 22px; top: 23px; width: 12px; height: 7px; border-left: 2px solid #1E7A4C; border-bottom: 2px solid #1E7A4C; transform: rotate(-45deg); }

/* Ink section with personas */
.section-ink { background: var(--ink-900); color: #fff; position: relative; overflow: hidden; }
.section-ink .h-1 { color: #fff; } .section-ink .lead { color: #B9C0D6; }
.personas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.persona { display: grid; align-content: start; gap: 12px; padding: 28px 24px 30px 0; color: #fff; text-decoration: none; min-height: 300px; position: relative; }
.persona + .persona { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.persona::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--brand-600); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.persona:hover::before, .persona:focus-visible::before { transform: scaleX(1); }
.persona-fit { justify-self: start; font-size: 12.5px; font-weight: 600; color: var(--manila); border: 1px solid rgba(233,217,180,.35); border-radius: 999px; padding: 3px 10px; }
.persona-t { font-family: var(--serif); font-size: 30px; line-height: 1.08; font-weight: 500; }
.persona-d { font-size: 15.5px; line-height: 1.6; color: #C3CAE0; }
.persona-go { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: #fff; padding-top: 12px; }

/* Closing band */
.closing { background: var(--ink-950); color: #fff; overflow: hidden; position: relative; }
.closing::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 50%, rgba(47,75,224,.28), transparent 70%); pointer-events: none; }
.closing-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.closing-copy h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.015em; color: #fff; margin: 0; max-width: 15ch; }
.closing-copy > p { margin: 22px 0 0; font-size: 18px; line-height: 1.6; color: #B9C0D6; max-width: 52ch; }
.closing-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.closing-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.closing-ghost:hover { background: #fff; color: var(--ink-900); }
.closing-small { margin-top: 18px !important; font-size: 14px !important; }
.closing-small a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.closing-art { position: relative; height: 340px; }
.cl-sheet { position: absolute; width: 300px; background: #fff; border-radius: 2px; padding: 22px 22px 26px; display: grid; gap: 9px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.6); }
.cl-sheet b { font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--ink-900); padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.cl-sheet span { height: 7px; border-radius: 4px; background: #E7EAF0; } .cl-sheet span.short { width: 62%; }
.cl-s1 { left: 6%; top: 18px; transform: rotate(-5deg); }
.cl-s2 { right: 2%; top: 70px; transform: rotate(4deg); }
.cl-stamp { position: absolute; left: 34%; bottom: 26px; transform: rotate(-11deg); border: 3px solid #E0434D; color: #E0434D; border-radius: 8px; padding: 8px 18px 6px; font-family: var(--font); font-weight: 700; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; text-align: center; line-height: 1.1; background: rgba(14,21,48,.25); mix-blend-mode: screen; }
.cl-stamp small { display: block; font-size: 11px; letter-spacing: .04em; font-weight: 600; text-transform: none; }

/* Footer statement */
.footer-statement { margin: 0 0 56px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.015em; color: #fff; max-width: 20ch; }
.footer-statement span { display: block; color: #8F99B8; }

@media (max-width: 1100px) {
  .folders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .rail::before { display: none; }
  .personas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .persona:nth-child(3) { padding-left: 0; border-left: 0; }
  .persona:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 760px) {
  .folders { grid-template-columns: 1fr; gap: 28px; }
  .folder { min-height: 300px; }
  .rail { grid-template-columns: 1fr; row-gap: 22px; }
  .rail-step { grid-template-columns: 46px 1fr; column-gap: 16px; padding: 0; }
  .rail-step > :not(.rail-n) { grid-column: 2; } .rail-n { grid-row: 1 / span 3; margin: 0; }
  .rail-step p { min-height: 0; }
  .ledger { background-image: none; }
  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: 1fr; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .ledger-row > span { padding: 2px 0 !important; border: 0; }
  .ledger-new { padding-left: 24px !important; } .ledger-new::before { left: 2px; top: 8px; }
  .personas { grid-template-columns: 1fr; }
  .persona, .persona + .persona { padding: 24px 0; border-left: 0; min-height: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .closing-in { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; gap: 24px; }
  .closing-art { height: 240px; } .cl-sheet { width: 220px; } .cl-stamp { font-size: 20px; left: 22%; }
}
@media (prefers-reduced-motion: reduce) { .folder-paper, .folder-front, .persona::before { transition: none; } }

/* Inner page capabilities: a sticky heading beside a ruled index */
.feat-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.feat-aside { position: sticky; top: 110px; display: grid; gap: 18px; justify-items: start; }
.feat-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; border-top: 1px solid var(--ink-900); }
.feat-index li { padding: 22px 0 24px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; align-content: start; }
.feat-ic { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-900); color: #fff; }
.feat-index li:nth-child(4n+2) .feat-ic { background: var(--brand-600); }
.feat-index li:nth-child(4n+3) .feat-ic { background: var(--manila); color: var(--manila-ink); }
.feat-index h3 { margin: 6px 0 6px; font-size: 17px; color: var(--ink-900); }
.feat-index p { margin: 0; font-size: 15px; color: var(--ink-600); line-height: 1.6; }
@media (max-width: 960px) { .feat-split { grid-template-columns: 1fr; gap: 28px; } .feat-aside { position: static; } }
@media (max-width: 640px) { .feat-index { grid-template-columns: 1fr; } }
.legal-draft { justify-self: start; font-size: 14px; font-weight: 600; color: #7A4F00; background: #FFF4DB; border: 1px solid #F2D9A6; border-radius: 6px; padding: 8px 12px; }

/* FAQ: the left column travels with the questions instead of leaving a blank half page */
.faq-aside { position: sticky; top: 110px; display: grid; gap: 18px; align-content: start; }
.faq-aside .lead { margin: 0; }
.faq-desk { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.faq-desk p { margin: 0; }
.faq-desk-n { font-weight: 600; color: var(--ink-900); font-size: 15px; }
.faq-desk-s { font-size: 13.5px; color: var(--ink-600); }
.faq-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-count { margin: 0; font-size: 13.5px; color: var(--ink-600); padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .faq-aside { position: static; } }

/* TaxEye AI page: its guide sits on the dark chat design, so the paper background must not apply there */
.ai-guide .guide-section { background: none !important; border-top: 1px solid var(--ai-line) !important; }
.ai-guide .guide-toc { background: var(--ai-glass) !important; border-color: var(--ai-line) !important; box-shadow: none !important; }
.ai-guide .guide-toc-h { color: var(--ai-muted) !important; }
.ai-guide .guide-toc a { color: var(--ai-soft) !important; }
.ai-guide .guide-toc a:hover { color: var(--ai-sky) !important; }
.ai-guide .guide p, .ai-guide .guide li, .ai-guide .guide td { color: var(--ai-soft) !important; }
.ai-guide .guide h2, .ai-guide .guide h3, .ai-guide .guide strong, .ai-guide .guide th { color: #fff !important; }
.ai-guide .guide a:not(.btn) { color: var(--ai-sky) !important; }

/* Pricing: five plans including the free Basic, and the AI drafting add-on */
.price-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.price-grid .price-card { padding: 26px 20px; }
.price-grid .price { font-size: 30px; }
.addon-line { display: flex; align-items: center; gap: 6px; margin: 4px 0 14px; font-size: 13px; font-weight: 600; color: var(--brand-600); }
.addon-band { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 26px 28px; border: 1px solid var(--ink-900); border-radius: 10px; background: #fff; }
.addon-band h2 { margin: 0 0 8px; }
.addon-band p { margin: 0; color: var(--ink-600); font-size: 15.5px; line-height: 1.6; max-width: 72ch; }
@media (max-width: 1200px) { .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } .addon-band { grid-template-columns: 1fr; } }

/* ---------- Notice library ---------- */
.notice-hero { padding: 56px 0 56px; }
.notice-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 48px; align-items: start; }
.notice-copy { display: grid; gap: 16px; }
.notice-law { margin: 0; font-size: 14px; font-weight: 600; color: var(--pen); }
.notice-copy .h-1 { font-size: clamp(32px, 3.4vw, 46px); }
.notice-facts { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink-900); border-radius: 4px; padding: 20px 22px; box-shadow: 0 30px 60px -40px rgba(21,32,61,.4); }
.notice-facts-h { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; color: var(--ink-900); }
.notice-facts dl { margin: 0; }
.notice-facts dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; }
.notice-facts dt { color: var(--ink-600); } .notice-facts dd { margin: 0; color: var(--ink-900); font-weight: 600; }
.notice-facts a { text-decoration: underline; }
.notice-rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.notice-card { display: grid; gap: 6px; align-content: start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-900); text-decoration: none; transition: border-color .15s, transform .15s; }
.notice-card:hover { border-color: var(--ink-900); transform: translateY(-2px); }
.notice-card-code { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.notice-card-name { font-weight: 600; font-size: 15.5px; }
.notice-card-time { font-size: 13.5px; color: var(--ink-600); }
.notice-card-all { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.notice-card-all .notice-card-time { color: #B9C0D6; }
.notice-group + .notice-group { margin-top: 48px; }
.notice-group .h-2 { margin: 0 0 8px; }
.notice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-900); }
.notice-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 260px; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink-900); text-decoration: none; align-items: start; }
.notice-row-code { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.notice-row-main { display: grid; gap: 4px; } .notice-row-main b { font-size: 17px; } .notice-row-main span { font-size: 15px; color: var(--ink-600); }
.notice-row:hover .notice-row-main b { color: var(--brand-600); }
.notice-row-time { font-size: 14px; color: var(--ink-900); } .notice-row-time small { display: block; font-size: 12.5px; color: var(--ink-600); }

/* ---------- Tools ---------- */
.tool-hero { padding: 56px 0; }
.tool-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.tool-in > div:first-child { display: grid; gap: 16px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink-900); border-radius: 6px; padding: 24px; display: grid; gap: 16px; box-shadow: 0 30px 60px -40px rgba(21,32,61,.4); }
.tool-f { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-900); }
.tool-f legend { padding: 0; margin-bottom: 6px; }
.tool-f select, .tool-f input[type=date] { font: inherit; font-weight: 500; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-900); }
.tool-r { display: flex; align-items: center; gap: 8px; font-weight: 500; padding: 4px 0; }
.tool-out { border-top: 1px solid var(--ink-900); padding-top: 14px; min-height: 120px; }
.tool-k { margin: 0; font-size: 13px; color: var(--ink-600); }
.tool-v { margin: 2px 0 6px; font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--ink-900); }
.tool-s { margin: 0; font-size: 14.5px; color: var(--ink-700); line-height: 1.55; }
.tool-verdict { margin: 12px 0 0; font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: 6px; }
.tool-verdict.ok { color: #11643B; background: #F2FAF5; } .tool-verdict.bad { color: #8E1C24; background: #FDF3F4; }
.tool-fine { margin: 0; font-size: 12.5px; color: var(--ink-600); }
@media (max-width: 960px) { .notice-hero-in, .tool-in { grid-template-columns: 1fr; gap: 28px; } .notice-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .notice-row { grid-template-columns: 1fr; gap: 6px; } }
@media (max-width: 560px) { .notice-rel { grid-template-columns: 1fr; } .notice-facts dl div { grid-template-columns: 1fr; gap: 2px; } }

/* Notice decoder on home */
.decoder-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.decoder-tabs button { font: inherit; font-size: 14px; font-weight: 600; line-height: 1; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-900); cursor: pointer; }
.decoder-tabs button[aria-selected="true"] { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.decoder-tabs button:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; }
.decoder-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.decoder-doc { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 26px 28px 20px; box-shadow: 0 30px 60px -34px rgba(21,32,61,.35); font-family: 'Courier New', ui-monospace, monospace; color: #2B3654; }
.decoder-doc dl { margin: 12px 0 14px; display: grid; gap: 3px; }
.decoder-doc dl div { display: grid; grid-template-columns: 140px 1fr; font-size: 12.5px; }
.decoder-doc dt { color: #5B6275; } .decoder-doc dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.decoder-body { font-size: 14px; line-height: 1.75; margin: 0; }
.decoder-body mark { background: linear-gradient(transparent 55%, rgba(180,35,44,.16) 55%); color: inherit; padding: 0 1px; transition: background-color .15s; }
.decoder-body mark.on { background: rgba(180,35,44,.18); }
.decoder-body sup { font-family: var(--hand); color: var(--pen); font-size: 15px; font-weight: 700; margin-left: 2px; }
.decoder-sample { margin: 16px 0 0; font-size: 11.5px; color: #6B7183; }
.decoder-read .btn { white-space: normal; text-align: left; max-width: 100%; }
.decoder-notes { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 4px; }
.decoder-notes li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 12px; border-radius: 8px; transition: background-color .15s; }
.decoder-notes li.on { background: rgba(180,35,44,.06); }
.decoder-num { font-family: var(--hand); color: var(--pen); font-size: 24px; line-height: 1; font-weight: 700; }
.decoder-notes b { display: block; color: var(--ink-900); font-size: 15.5px; }
.decoder-notes p { margin: 3px 0 0; color: #4A5165; font-size: 14.5px; line-height: 1.55; }
@media (max-width: 900px) { .decoder-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; } .decoder-doc { padding: 20px 18px; } .decoder-doc dl div { grid-template-columns: 110px 1fr; } }
@media (prefers-reduced-motion: reduce) { .decoder-body mark, .decoder-notes li { transition: none; } }

/* Info pages: glossary, portals and data, about, compare */
.info-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 48px; align-items: start; }
.info-hero > div { display: grid; gap: 16px; align-content: start; }
.info-hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.info-jump { list-style: none; margin: 0; padding: 0; display: grid; }
.info-jump li { border-top: 1px solid var(--line-soft); }
.info-jump a { display: block; padding: 10px 0; color: var(--ink-900); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.info-jump a:hover { color: var(--brand-600); }
.info-signs { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-900); font-size: 15px; }
@media (max-width: 900px) { .info-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Links inside running text are underlined, so they do not depend on colour alone */
.guide.prose p a, .guide.prose li a, .guide.prose td a, .runs-note a, .section-head .lead a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* Price calculator */
.pc-hero .wrap { max-width: 860px; display: grid; gap: 14px; }
.pc-section { padding-top: 40px; }
.pc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.pc-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.pc-panel + .pc-panel { margin-top: 16px; }
.pc-h { font: 600 20px/1.2 var(--serif); margin: 0 0 14px; color: var(--ink-900); }
.pc-seg { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface-50); padding: 5px; border-radius: 10px; }
.pc-seg button { flex: 1 1 auto; min-height: 44px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-900); font: inherit; font-size: 15px; font-weight: 600; padding: 8px 14px; cursor: pointer; }
.pc-seg button[aria-pressed="true"] { background: var(--ink-900); color: #fff; }
.pc-mods { display: grid; gap: 8px; }
.pc-mod { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; min-height: 56px; }
.pc-mod:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.pc-mod input { width: 20px; height: 20px; accent-color: var(--brand-600); }
.pc-mod b { display: block; color: var(--ink-900); } .pc-mod small { color: var(--ink-600); font-size: 13.5px; }
.pc-from { font-size: 13.5px; color: var(--ink-600); white-space: nowrap; text-align: right; }
.pc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.pc-f { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.pc-f label { font-weight: 600; font-size: 15px; color: var(--ink-900); }
.pc-f input, .pc-f select { width: 100%; min-height: 44px; font: inherit; font-size: 16px; color: var(--ink-900); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.pc-hint, .pc-note { font-size: 13.5px; color: var(--ink-600); }
.pc-note { margin: 14px 0 0; }
.pc-off input { background: var(--surface-50); color: var(--ink-600); }
.pc-sheet { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--ink-900); border-radius: 6px; padding: 26px; box-shadow: 0 30px 60px -38px rgba(21,32,61,.45); }
.pc-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; font-size: 13.5px; color: var(--ink-600); }
.pc-brand { font: 600 20px var(--serif); color: var(--ink-900); }
.pc-big { padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
.pc-n { font: 600 clamp(38px, 5vw, 56px)/1 var(--serif); color: var(--ink-900); white-space: nowrap; }
.pc-n small { font: 500 16px var(--font); color: var(--ink-600); }
.pc-big p { margin: 8px 0 0; color: var(--ink-600); font-size: 14.5px; }
.pc-tag { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-50); color: var(--ink-900); }
.pc-t { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 10px; }
.pc-t td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-900); }
.pc-a { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 12px !important; }
.pc-row-h td { font-weight: 700; color: var(--ink-600); font-size: 12.5px; padding-top: 14px; border: 0; }
.pc-row-d td { color: var(--pen); } .pc-row-s td { font-weight: 600; }
.pc-row-tot td { font-weight: 700; border-top: 2px solid var(--ink-900); border-bottom: 0; padding-top: 10px; }
.pc-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #FBECEC; color: var(--ink-900); font-size: 14px; }
.pc-tip { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #E8F5EE; color: var(--ink-900); font-size: 14px; }
.pc-empty { padding: 14px 0; color: var(--ink-600); }
.pc-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 900px) { .pc-grid { grid-template-columns: minmax(0, 1fr); } .pc-sheet { position: static; } }
@media (max-width: 520px) { .pc-row { grid-template-columns: minmax(0, 1fr); } .pc-panel, .pc-sheet { padding: 18px; } .pc-mod { grid-template-columns: auto 1fr; } .pc-from { grid-column: 2; text-align: left; } }
