/* Client portal. Phone-first. Colors, type, spacing and radii come from the ProCadence design system
   (design/tokens.css); fonts ship with the app (CSP default-src 'self'). */
:root {
  /* Names used below, mapped onto the shared design tokens (design/tokens.css). */
  --bg: var(--paper); --muted: var(--ink-muted); --soft: var(--surface-sunk);
  --accent: var(--petrol); --accent-ink: var(--on-petrol); --accent-soft: var(--petrol-soft);
  --hold: var(--amber-ink); --hold-soft: var(--amber-soft); --info: var(--petrol); --info-soft: var(--petrol-soft);
  --radius: var(--radius-md);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/25px var(--font-sans); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: 22px; line-height: 30px; font-weight: 600; } h2 { font-size: 20px; line-height: 28px; font-weight: 600; } p { margin: 0 0 .8rem; }
.card h2, .card h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
@media (min-width: 960px) { h1 { font-size: 28px; line-height: 36px; letter-spacing: -.01em; } }
.eyebrow { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.muted { color: var(--muted); } .small { font-size: .9rem; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: 760px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.org { flex: 1; min-width: 0; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkbtn { background: none; border: 0; padding: 8px; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; min-height: 44px; }
.mt { margin-top: 14px; }
progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; border: 0; background: var(--surface-sunk); color: var(--accent); }
progress::-webkit-progress-bar { background: var(--surface-sunk); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
progress.bar { height: 4px; }
progress.progress { height: 8px; border-radius: 4px; overflow: hidden; margin: 6px 0 14px; }
progress.progress::-webkit-progress-bar, progress.progress::-webkit-progress-value { border-radius: 4px; }
main { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.card.focus { border: 2px solid var(--accent); }
.btn, button.primary, button.secondary, button.act { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; }
.btn.secondary, button.secondary { background: var(--surface); color: var(--petrol); border: 1px solid var(--petrol); font-weight: 600; }
.btn.secondary:hover, button.secondary:hover { background: var(--petrol-soft); }
.btn:not(.secondary):not(.act):hover, button.primary:hover { background: var(--petrol-strong); }
.btn, button { white-space: nowrap; }
.btn.block, button.block { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }

.pill { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 600; padding: 2px 10px; border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--surface-sunk); color: var(--ink); border: 1px solid transparent; }
.pill.done, .pill.accepted { background: var(--go-soft); color: var(--go); border-color: var(--go-line); }
.pill.waiting { background: var(--wait-soft); color: var(--wait); border-color: var(--wait-line); }
.pill.in_review { background: var(--info-soft); color: var(--info); border-color: var(--info-line); }
.pill.needs_fix { background: var(--stop-soft); color: var(--stop); border-color: var(--stop-line); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { border-top: 1px solid var(--surface-sunk); }
.steps li:first-child { border-top: 0; }
.steps a, .steps .soon { display: flex; align-items: center; gap: 12px; padding: 12px 2px; min-height: 56px; color: var(--ink); text-decoration: none; }
.steps .soon { color: var(--muted); }
.dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; border: 1px solid var(--line-strong); color: var(--muted); }
.dot.done { background: var(--go); border-color: var(--go); color: var(--surface); }
.dot.waiting { background: var(--info-soft); border-color: var(--info-soft); color: var(--info); }
.steps .label { flex: 1; min-width: 0; }
.steps .detail { display: block; font-size: .85rem; color: var(--muted); }

.options { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
.option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 1rem; text-align: left;
  color: var(--ink); cursor: pointer; }
.option[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--petrol-soft); font-weight: 600; }
.hint { display: inline-block; font-size: .8rem; background: var(--soft); padding: 3px 8px; border-radius: 4px; margin: 0 0 12px; }

.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--surface-sunk); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .facts > div { grid-template-columns: 1fr; } }

label { display: block; font-size: .9rem; color: var(--ink); margin-bottom: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--ink); }
input:not([type=checkbox]):not([type=radio]):not([type=file]):focus, select:focus, textarea:focus { outline: none; border: 2px solid var(--petrol); padding: 8px 11px; }
textarea { min-height: 96px; }
input[type=file] { font: inherit; max-width: 100%; }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; color: var(--ink); min-height: 44px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.error { background: var(--hold-soft); color: var(--hold); border-radius: 8px; padding: 10px 12px; }
.note-box { background: var(--hold-soft); border-radius: 8px; padding: 10px 12px; font-size: .95rem; margin: 8px 0; }
.info-box { background: var(--soft); border-radius: 8px; padding: 12px 14px; font-size: .95rem; }
.doc { border-top: 1px solid var(--surface-sunk); padding: 14px 0; }
.doc:first-child { border-top: 0; padding-top: 0; }
.doc form { margin-top: 8px; }
ol.plain { padding-left: 1.2rem; } ol.plain li { margin-bottom: 8px; }
.code { font-family: var(--font-mono); font-size: 1.1rem; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--bg); }
.auth { max-width: 420px; margin: 8vh auto; }
.foot { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 24px; }

.plain-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.plain-fieldset legend { padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
input[type=file] { padding: 8px 0; }
input[type=file]::file-selector-button { min-height: 44px; padding: 0 14px; margin-right: 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.doc .row { align-items: center; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.stages li { font-size: .88rem; color: var(--muted); }
.stage-bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-sunk); margin-bottom: 6px; }
.stages li.done .stage-bar { background: var(--ink-muted); }
.stages li.current { color: var(--ink); font-weight: 600; }
.stages li.current .stage-bar { background: var(--accent); }
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { display: grid; grid-template-columns: minmax(6.5rem, 8rem) minmax(0, 1fr); gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--surface-sunk); }
.dates li:first-child { border-top: 0; }
.dates strong { font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 420px) { .dates li { grid-template-columns: 1fr; } }
.doc-text h1 { font-size: 1.35rem; }
.doc-text h2 { font-size: 1.02rem; margin-top: 18px; }
.doc-text ul { padding-left: 1.2rem; margin: 0 0 .8rem; }
.doc-text li { margin-bottom: 6px; }
.doc-text p, .doc-text li { overflow-wrap: anywhere; }
.sig-preview { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 12px 14px; margin: 10px 0 16px; }
.sig-line { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 1.5rem; margin: 0 0 6px; overflow-wrap: anywhere; }
.plain-fieldset legend { font-weight: 600; margin-bottom: 4px; }
.check input[type=radio] { width: 22px; height: 22px; margin-top: 2px; flex: none; }
/* Act button: amber means "this needs you" (sign, certify, book). One per screen at most. */
button.act, .btn.act { background: var(--amber); color: var(--on-amber); border: 0; }
button.act:hover, .btn.act:hover { background: var(--amber-hover); }
button.primary, .btn { transition: background-color .15s, filter .15s; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-3); }
@media (min-width: 560px) { .field-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
input[type=text] { min-width: 0; }
.stages a { display: block; color: inherit; text-decoration: none; padding: 4px 0; min-height: 44px; }
.stages a:hover { color: var(--petrol); }
/* Profile circle and its menu (top right, every page) */
.me { position: relative; flex: none; }
.me summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.me summary::-webkit-details-marker { display: none; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-pill);
  background: var(--petrol); color: var(--on-petrol); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.me[open] .avatar { outline: 2px solid var(--petrol-soft); outline-offset: 2px; }
.me-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(280px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-overlay);
  padding: var(--space-3); display: flex; flex-direction: column; gap: 2px; }
.me-menu .me-name { font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.me-menu > .small { margin: 0 0 var(--space-2); }
.me-menu a, .me-menu .linkbtn { display: block; text-align: left; width: 100%; padding: 10px 8px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: 1rem; min-height: 44px; }
.me-menu a:hover, .me-menu .linkbtn:hover { background: var(--surface-sunk); }
.me-menu form { border-top: 1px solid var(--line); margin-top: var(--space-1); padding-top: var(--space-1); }
/* Thin setup bar under the header on pages other than home */
.setup-bar { display: flex; align-items: center; gap: var(--space-3); max-width: 760px; margin: 0 auto; padding: 8px 16px;
  color: var(--ink); text-decoration: none; font-size: .9rem; border-top: 1px solid var(--line); background: var(--petrol-soft); }
.setup-bar progress { flex: 1; height: 6px; border-radius: var(--radius-pill); overflow: hidden; min-width: 40px; }
.setup-bar .go { color: var(--petrol); font-weight: 600; white-space: nowrap; }
/* Pinned "Finish setting up" card on home */
.finish .head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.finish ul { list-style: none; margin: var(--space-2) 0 var(--space-3); padding: 0; }
.finish li a { display: flex; align-items: center; gap: var(--space-3); padding: 10px 0; min-height: 48px; color: var(--ink);
  text-decoration: none; border-top: 1px solid var(--line); }
.finish li:first-child a { border-top: 0; }
.finish .ring { flex: none; width: 22px; height: 22px; border-radius: var(--radius-pill); border: 2px solid var(--line-strong); }
.finish .ring.waiting { border-color: var(--petrol); border-style: dashed; }
.finish .label { flex: 1; min-width: 0; }
.finish .detail { display: block; font-size: .85rem; color: var(--ink-muted); }
.finish .chev { color: var(--ink-muted); }
/* Booking: a strip of days, then the open times */
.day-strip { display: flex; gap: var(--space-2); overflow-x: auto; padding: 2px 2px var(--space-3); margin-bottom: var(--space-2); scroll-snap-type: x proximity; }
.day { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 64px; min-height: 76px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface);
  color: var(--ink); text-decoration: none; }
.day .dow, .day .mon { font-size: .75rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; }
.day .dnum { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.day.on { background: var(--petrol); border-color: var(--petrol); color: var(--on-petrol); }
.day.on .dow, .day.on .mon { color: var(--on-petrol); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-2); }
.times form { margin: 0; }
button.time { width: 100%; min-height: 48px; border: 1px solid var(--petrol); border-radius: var(--radius-md); background: var(--surface);
  color: var(--petrol); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
button.time:hover { background: var(--petrol-soft); }
/* Learning E-Rate: underlined terms, the explainer, why boxes, the guide */
a.term { color: inherit; text-decoration: underline dotted var(--petrol); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: help; }
#explain { max-width: min(440px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-overlay); }
#explain::backdrop { background: rgba(10, 20, 26, .45); }
#explain h2 { margin-top: 0; }
.why { background: var(--petrol-soft); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4); }
.why p { margin: 0 0 6px; }
.why p:last-child { margin-bottom: 0; }
.why summary { cursor: pointer; color: var(--petrol); font-weight: 600; min-height: 32px; }
.lead { font-size: 1.1rem; }
.cycle { list-style: none; padding: 0; margin: var(--space-4) 0; border-left: 3px solid var(--petrol); }
.cycle li { position: relative; padding: 0 0 var(--space-3) var(--space-4); display: grid; gap: 2px; }
.cycle li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--petrol); }
.plain-list { padding-left: 1.1rem; }
.plain-list li { margin-bottom: 6px; }
.glossary { margin: 0; }
.glossary > div { padding: 10px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.glossary > div:first-child { border-top: 0; }
.glossary dt { font-weight: 650; }
.glossary dd { margin: 2px 0 0; }
.glossary > div:target { background: var(--amber-soft); }

/* The E-Rate guide: a documentation layout. Desktop is the full design; narrower screens collapse it. */
main.docs { max-width: 1100px; }
.docs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.docs-nav { position: relative; }
.docs-nav summary { display: flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; font-weight: 600; list-style: none; }
.docs-nav summary::-webkit-details-marker { display: none; }
.docs-nav .nav-body { padding-top: var(--space-3); }
.docs-search { width: 100%; min-height: 44px; margin-bottom: var(--space-3); }
.docs-group { margin: 0 0 var(--space-3); }
.docs-group h3 { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin: var(--space-3) 0 var(--space-1); }
.docs-group a { display: block; padding: 8px var(--space-3); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; min-height: 40px; }
.docs-group a:hover { background: var(--surface-sunk); }
.docs-group a.on { background: var(--petrol-soft); color: var(--petrol); font-weight: 600; }
.search-results { list-style: none; margin: 0 0 var(--space-3); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.search-results li a { display: block; padding: 10px var(--space-3); color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.search-results li:first-child a { border-top: 0; }
.search-results .where { display: block; font-size: .8rem; color: var(--ink-muted); }
.search-results .none { padding: 10px var(--space-3); color: var(--ink-muted); }
.crumbs { font-size: .9rem; color: var(--ink-muted); margin: 0 0 var(--space-2); }
.crumbs a { color: var(--ink-muted); }
.docs-article { min-width: 0; }
.docs-article .summary { font-size: 1.1rem; color: var(--ink-muted); max-width: 65ch; }
.docs-article h2 { margin-top: var(--space-6); scroll-margin-top: 80px; }
.docs-article h2:first-of-type { margin-top: var(--space-4); }
.docs-article p, .docs-article li { max-width: 68ch; }
.docs-article .src { font-size: .85rem; }
.in-article { background: var(--surface-sunk); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin: var(--space-4) 0; }
.in-article h3, .on-page h3 { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-2); }
.in-article ol, .on-page ol { list-style: none; margin: 0; padding: 0; }
.in-article li, .on-page li { margin: 0 0 6px; }
.on-page { display: none; }
.pager { display: flex; justify-content: space-between; gap: var(--space-3); margin: var(--space-6) 0 var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-4); }
.pager a { flex: 1; text-decoration: none; color: var(--ink); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); min-width: 0; }
.pager a.next { text-align: right; }
.pager .dir { display: block; font-size: .8rem; color: var(--ink-muted); }
.helpful { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.helpful .choices { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-2) 0; }
.helpful textarea { min-height: 72px; }
.docs-glossary dt { font-weight: 650; scroll-margin-top: 80px; margin-top: var(--space-4); }
.docs-glossary dd { margin: 4px 0 0; }
@media (min-width: 900px) {
  .docs-grid { grid-template-columns: 240px minmax(0, 1fr); }
  .docs-nav { position: sticky; top: 16px; }
  .docs-nav summary { display: none; }
  .docs-nav .nav-body { padding-top: 0; }
  .docs-nav details > .nav-body { display: block; }
  .in-article { display: none; }
}
@media (min-width: 1180px) {
  .docs-grid { grid-template-columns: 240px minmax(0, 1fr) 200px; }
  .on-page { display: block; position: sticky; top: 16px; }
  .on-page a { color: var(--ink-muted); text-decoration: none; font-size: .9rem; display: block; padding: 2px 0 2px var(--space-3); border-left: 2px solid var(--line); }
  .on-page a.on, .on-page a:hover { color: var(--petrol); border-left-color: var(--petrol); }
}
.thumbs { display: flex; gap: var(--space-2); }
.thumbs .thumb { width: 52px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); background: var(--surface); color: var(--ink); cursor: pointer; }
.thumbs .thumb:hover { border-color: var(--petrol); color: var(--petrol); background: var(--petrol-soft); }
/* Vendor bid portal (vendor_portal/) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset.lines { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3); margin: 0 0 var(--space-3); min-width: 0; }
fieldset.lines legend { font-weight: 650; padding: 0 6px; overflow-wrap: anywhere; }
.line + .line, details.alt .line { border-top: 1px dashed var(--line); padding-top: var(--space-3); margin-top: var(--space-2); }
details.alt > summary { cursor: pointer; color: var(--petrol); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
/* "Add a date" is a button that reveals the form in place (owner, 2026-10-18), not a disclosure triangle */
details.adder > summary { list-style: none; display: inline-flex; width: auto; }
details.adder > summary::-webkit-details-marker { display: none; }
details.adder[open] > summary { display: none; }
.qa { border-top: 1px solid var(--line); padding-top: var(--space-2); margin-top: var(--space-2); }
.qa p { margin: 4px 0; }
.qa:first-of-type { border-top: 0; }
/* Bid evaluation: one block per proposal */
.score-row { border-top: 1px solid var(--line); padding-top: var(--space-3); margin-top: var(--space-3); }
.score-row:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.score-row.lead { border-left: 3px solid var(--petrol); padding-left: var(--space-3); }
.score-row h3 { margin: 0 0 4px; }
/* How-to guides: numbered steps */
.docs-article ol.howto-steps { padding-left: 1.4rem; }
.docs-article ol.howto-steps li { margin-bottom: 10px; padding-left: 4px; }
/* Bid evaluation: proposal cards the client can expand; questions */
.prop { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 12px; margin: 8px 0; }
.prop.lead { border-color: var(--petrol); box-shadow: inset 3px 0 0 var(--petrol); }
.prop > summary { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 0; cursor: pointer; min-height: 56px; }
.prop > summary::-webkit-details-marker { display: none; }
.prop-name { font-weight: 650; }
.prop-score { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.prop-price { grid-column: 1 / -1; }
.prop[open] > summary { border-bottom: 1px solid var(--line); }
.prop .facts { padding: 8px 0; }
details.how > summary { list-style: none; cursor: pointer; }
details.how > summary::-webkit-details-marker { display: none; }
details.how > summary h2 { margin: 0; }
details.how > summary h2::after { content: " ›"; color: var(--muted); }
details.how[open] > summary h2::after { content: " ⌄"; }
.q-client { background: var(--soft); border-radius: 8px; padding: 10px 12px; }
.q-firm { padding: 10px 12px; border-left: 3px solid var(--petrol); }
/* The public explainer page (/about, procadence.net). Patterns noted in notes/design_references.md. */
body.public main { max-width: 960px; padding-bottom: 64px; }
body.public .top-in { max-width: 960px; }
body.public .top-in .btn.small { min-height: 36px; padding: 0 12px; margin-left: auto; }
.pub-nav { display: flex; gap: 18px; margin-left: 12px; font-size: .92rem; }
.pub-nav a { color: var(--ink-muted); text-decoration: none; }
.pub-nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .pub-nav { display: none; } }
.hero { padding: 44px 0 20px; }
.pill-eyebrow { display: inline-block; background: var(--petrol-soft); color: var(--petrol-strong); padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; text-transform: none; font-size: .82rem; font-weight: 600; }
.hero h1 { font-size: 36px; line-height: 44px; font-weight: 700; max-width: 20ch; letter-spacing: -.02em; margin: 10px 0 14px; }
.hero .lead { font-size: 17px; line-height: 26px; }
.hero .lead { max-width: 64ch; color: var(--ink-muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.reassure { margin: 0; }
@media (max-width: 767px) { .hero { padding-top: 28px; } .hero h1 { font-size: 28px; line-height: 36px; letter-spacing: -.01em; } }
.trust { list-style: none; margin: 18px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.trust li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; }
.trust strong { font-size: 1.5rem; letter-spacing: -.01em; }
.trust span { color: var(--ink-muted); font-size: .92rem; line-height: 1.4; }
.pub-section { padding: 30px 0 10px; scroll-margin-top: 16px; }
.pub-section > h2 { font-size: 1.6rem; letter-spacing: -.01em; }
.pub-section .sub { max-width: 60ch; margin-bottom: 18px; }
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.steps-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps-grid .num { font-family: var(--font-mono); font-size: .85rem; color: var(--petrol); display: block; margin-bottom: 10px; }
.steps-grid h3 { font-size: 1.05rem; margin: 0 0 6px; }
.steps-grid p { margin: 0; font-size: .93rem; color: var(--ink-muted); line-height: 1.45; }
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.diff { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-top: 3px solid var(--petrol); }
.diff h3 { font-size: 1.05rem; margin: 0 0 6px; }
.diff p { margin: 0; font-size: .95rem; color: var(--ink-muted); line-height: 1.45; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.plan.plan-mid { border: 2px solid var(--petrol); }
.plan-for { font-size: .85rem; color: var(--ink-muted); margin: 0; min-height: 2.6em; }
.plan h3 { font-size: 1.2rem; margin: 0; }
.plan .price { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 2px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.plan .price .from { font-size: 1rem; font-weight: 500; color: var(--ink-muted); }
.plan .price .per { font-size: .88rem; font-weight: 400; color: var(--ink-muted); }
.plan .btn { margin-top: auto; }
.included { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 12px; }
.included h3 { font-size: 1rem; margin: 0 0 10px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 20px; }
.checks li { position: relative; padding-left: 26px; font-size: .95rem; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 6px; height: 11px; border: solid var(--petrol); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.terms { margin-top: 12px; max-width: 70ch; }
.who-chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 18px; margin-bottom: 8px; }
details.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--ink-muted); font-size: 1.3rem; font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 14px; color: var(--ink-muted); }
.card.talk { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 26px 24px; scroll-margin-top: 16px; }
.talk-contact { border-left: 1px solid var(--line); padding-left: 24px; }
.talk-contact p { margin-bottom: 10px; }
@media (max-width: 640px) { .card.talk { grid-template-columns: 1fr; } .talk-contact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; } }
/* Who hears about what (setup: team) */
.notify-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 6px 8px; align-items: center; }
.notify-grid [role="row"] { display: contents; }
.notify-head span { font-size: .8rem; color: var(--ink-muted); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.notify-row > span:first-child { display: grid; gap: 2px; padding: 8px 0; }
.notify-cell { text-align: center; }
.check.compact { justify-content: center; min-height: 44px; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .notify-grid { grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)); } .notify-head span { font-size: .7rem; } }
/* Notifications on the Team page: a block per contact, a labeled checkbox per kind of news (Charma, Attio, Air on Mobbin) */
.person { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.person:first-of-type { border-top: 0; padding-top: 4px; }
.person-head { display: grid; gap: 2px; margin-bottom: 6px; }
.kinds { display: grid; gap: 2px; }
.check.kind { min-height: 44px; align-items: center; }
.check.kind > span { display: grid; gap: 1px; }
.check.kind .small { line-height: 1.35; }
p.kind { margin: 0; min-height: 32px; display: flex; align-items: center; gap: 8px; }
p.kind.off { color: var(--ink-muted); }

/* Request a quote (public explainer) */
.quote-form { max-width: 560px; }
.quote-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Before you certify (client checks page) */
.checks-list { list-style: none; margin: 0; padding: 0; }
.checks-list li { border-top: 1px solid var(--line); padding: 10px 0; }
.checks-list li:first-child { border-top: 0; }
.checks-list p { margin: 4px 0; }

/* personal link: the prefilled sign-up (Mobbin: lululemon's "create an account as <email>") */
.for .prefilled { margin: 0 0 10px; }
.for details.adder { margin-bottom: 12px; }
.for details.adder summary { cursor: pointer; color: var(--accent); font-size: .95rem; }
.for details.adder .field { margin-top: 10px; }

/* personal link page: the sign-up stays in reach (Mobbin: Udemy/Deel keep the primary action in the top bar on phones) */
body.public main.for ~ *, body.public:has(main.for) .top { position: sticky; top: 0; z-index: 5; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
body.public .top-in .top-actions .btn.small { margin-left: 0; }
@media (max-width: 480px) {
  .for .hero-actions { flex-direction: column; }
  .for .hero-actions .btn { width: 100%; justify-content: center; }
  .top-actions .signin { display: none; }
}

/* the recent requests as stacked rows (a table overflowed phones) */
.req-list { list-style: none; margin: 8px 0 0; padding: 0; }
.req-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.req-list li:first-child { border-top: 0; }
.req-main { display: grid; gap: 2px; min-width: 0; }
.req-main strong { margin-right: 6px; }
.req-side { display: grid; gap: 2px; text-align: right; white-space: nowrap; color: var(--ink-muted); font-size: .92rem; }
.req-side strong { color: var(--ink); font-size: 1rem; }
body.public main.for { overflow-x: clip; }
body.public .top-in { flex-wrap: nowrap; }

/* personal link pages: brand · organization · two small actions; on phones the organization drops to a second row */
.for-top { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.for-top .org { color: var(--ink-muted); font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.for-top .top-actions { margin-left: auto; gap: 8px; }
body.public .for-top .btn.small { min-height: 32px; padding: 0 10px; font-size: .85rem; margin-left: 0; }
main.for.narrow { max-width: 560px; }
@media (max-width: 560px) {
  .for-top .org { order: 3; flex-basis: 100%; font-size: .9rem; }
}
body.public .top-in.for-top { flex-wrap: wrap; }
.for-top .btn, .for-top .top-actions a { white-space: nowrap; }
@media (max-width: 560px) { body.public .top-in.for-top .org { order: 3; flex-basis: 100%; } }

/* desktop: the public pages use the width they're given (owner, 2026-10-18) */
body.public main, body.public .top-in { max-width: 1200px; }
@media (min-width: 960px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .hero-grid .hero { padding-top: 56px; }
  .hero-grid .trust { grid-template-columns: 1fr; margin: 0; }
  .hero-grid .hero h1 { max-width: 18ch; }
  .for-grid { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .for-grid .hero { position: sticky; top: 72px; }
  .for-grid .pub-section { margin-top: 36px; }
  .for-grid .trust { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .steps-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* phone tab bar (owner, 2026-10-19; Mobbin: Rocket Money, Monzo, Cash App): five tabs, the current one tinted */
.tabbar { display: none; }
@media (max-width: 959px) {
  body:has(.tabbar) main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; color: var(--ink-muted); text-decoration: none;
    font-size: .72rem; font-weight: 600; border-radius: var(--radius-sm); min-height: 44px; }
  .tabbar a.on, .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar a:active { background: var(--surface-sunk); }
}

/* home on desktop: the flow left, dates / checks / money in a right rail (owner, 2026-10-19; Mobbin: Charma, Asana) */
@media (min-width: 960px) {
  main.home { max-width: 1100px; }
  .home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "top rail" "bottom rail"; column-gap: 24px; align-items: start; }
  .home-top { grid-area: top; }
  .home-bottom { grid-area: bottom; }
  .home-rail { grid-area: rail; position: sticky; top: 16px; }
}
@media (min-width: 960px) { body:has(main.home) .top-in { max-width: 1100px; } }

/* the explainer's hero screenshot (owner, 2026-10-19: real portal screens only), framed like a window */
.shot { margin: 8px 0 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-overlay); }
.shot::before { content: ""; display: block; height: 22px; border-bottom: 1px solid var(--line); background:
  radial-gradient(circle at 14px 11px, var(--line-strong) 3.5px, transparent 4px),
  radial-gradient(circle at 28px 11px, var(--line-strong) 3.5px, transparent 4px),
  radial-gradient(circle at 42px 11px, var(--line-strong) 3.5px, transparent 4px), var(--surface-sunk); }
.shot img { display: block; width: 100%; height: auto; }
.trust.strip { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 28px 0 8px; }
@media (min-width: 960px) {
  .hero-grid .shot { align-self: center; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

/* the guide (owner review, 2026-10-19): header lines up with the content, a clean pager, bold lead-ins */
body:has(main.docs) .top-in { max-width: 1100px; }
.pager > span:empty { display: none; }
.pager a { flex: 0 1 50%; }
.pager a.next { margin-left: auto; }
.docs-article ul.leads { padding-left: 1.1rem; }
.docs-article ul.leads li { margin-bottom: var(--space-3); }
.docs-article ul.leads li::marker { color: var(--petrol); }
.docs-article p strong, .docs-article li strong { font-weight: 600; color: var(--ink); }
.docs-article section + section { border-top: 1px solid var(--line); padding-top: var(--space-2); }

/* a definition inside a step ("What certifying means") stands apart */
.docs-article .note-box.define { background: var(--petrol-soft); border-left: 3px solid var(--petrol); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-size: 1rem; }

.docs-article .back { margin: 0 0 var(--space-2); }
.docs-article .eyebrow { margin: 0 0 var(--space-1); }
