/* Inbox Field Guide: the guides, the guide index, the tools, the recruitment hub and the publication pages.
   Loaded after the kit's system.css and ifg-theme.css, which set the palette, the type, the header and the
   footer. Everything here is drawn from those tokens: no colour, face or radius of its own except the few
   page tokens below. The homepage does not load this file. */

.page {
  --text: color-mix(in oklab, var(--p-ink) 86%, var(--p-bg));   /* running text, 7:1 on the ground */
  --muted: #a3a9a2;                                              /* secondary text, 7:1 on the ground */
  --wash: #1b2321;                                               /* a quiet band or table head */
  --well: #121715;                                               /* code, tool output, figures */
  --accent-strong: #c2ded3;
  --accent-wash: color-mix(in oklab, var(--p-accent) 14%, var(--p-bg));
  --pass: #93d3ad; --pass-wash: color-mix(in oklab, #93d3ad 14%, var(--p-bg));
  --warn: #e6bd73; --warn-wash: color-mix(in oklab, #e6bd73 14%, var(--p-bg));
  --fail: #f2978d; --fail-wash: color-mix(in oklab, #f2978d 14%, var(--p-bg));
  padding-top: var(--nav);
  color: var(--text);
}
html { scroll-padding-top: calc(var(--nav) + 24px); }

/* ---------------------------------------------------------------- running text the kit's base rules leave bare */
.page svg.icon { display: inline-block; flex: none; width: 18px; height: 18px; vertical-align: -.2em; }
.page p { overflow-wrap: break-word; }
.page code { padding: 1px 5px; border-radius: var(--r-sm); background: color-mix(in oklab, var(--p-ink) 9%, transparent); color: var(--ink); font: .86em var(--font-mono); overflow-wrap: anywhere; }
.page pre { overflow: auto; padding: var(--s-4); border-radius: var(--r-md); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 13px/1.7 var(--font-mono); }
.page pre code { padding: 0; background: none; color: inherit; }
.page fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.page :is(h1, h2, h3, h4) { color: var(--ink); }

.eyebrow { display: block; font: 500 var(--t-label)/1.4 var(--font-text); letter-spacing: .01em; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--accent); font-size: var(--t-small); font-weight: 500; text-decoration: none; }
.text-link:hover { color: var(--accent-strong); }
.text-link .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.page .btn .icon { width: 16px; height: 16px; }
.page .btn-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--r-sm); font: 500 12px/1.4 var(--font-mono); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-ad { color: var(--accent); background: var(--accent-wash); }
.status { padding: 3px 8px; border-radius: var(--r-sm); background: var(--wash); color: var(--muted); font: 500 12px var(--font-mono); white-space: nowrap; }
.status-pass { color: var(--pass); background: var(--pass-wash); }
.status-fail, .status-softfail, .status-permerror { color: var(--fail); background: var(--fail-wash); }
.status-neutral, .status-none, .status-unknown, .status-temperror { color: var(--warn); background: var(--warn-wash); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.no-js-note { padding: var(--s-4); border-radius: var(--r-md); background: var(--warn-wash); font-size: var(--t-small); }

/* ---------------------------------------------------------------- page frame: breadcrumb, page heading, section heading */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: var(--s-5); font-size: var(--t-label); color: var(--muted); }
.breadcrumb a { color: var(--text); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero { max-width: 880px; padding-block: var(--s-6); }
.page-hero h1 { margin-top: var(--s-3); font-size: clamp(32px, 3.4vw, 52px); line-height: 1.06; }
.page-hero > p { max-width: 64ch; margin-top: var(--s-4); font-size: var(--t-lead); line-height: 1.55; color: var(--text); }
.tool-page .page-hero h1 { font-size: clamp(32px, 3vw, 44px); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-bottom: var(--s-5); }
.section-heading h2 { margin-top: var(--s-2); font-size: var(--t-h3); line-height: 1.2; }
.section-heading > p { max-width: 380px; font-size: var(--t-small); color: var(--muted); }
.section-heading > .text-link { margin-bottom: 6px; white-space: nowrap; }
.feature-band { padding-block: var(--s-8); background: var(--wash); border-block: 1px solid var(--line); }

/* ---------------------------------------------------------------- a guide */
.article-header { padding-top: var(--s-6); }
.article-header h1 { max-width: 24ch; margin-top: var(--s-3); font-size: clamp(34px, 3.8vw, 56px); line-height: 1.06; }
.article-deck { max-width: 62ch; margin-top: var(--s-4); font-size: var(--t-lead); line-height: 1.55; color: var(--text); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); padding-block: var(--s-3); border-block: 1px solid var(--line); font-size: var(--t-label); color: var(--muted); }
.article-header .guide-action { display: inline-flex; margin-top: var(--s-4); }
.placement-offer .btn-row .btn { max-width: 100%; min-width: 0; white-space: normal; }
.article-meta b { color: var(--ink); font-weight: 500; }
.article-meta a { color: inherit; text-decoration: none; }
.article-meta a:hover { color: var(--ink); text-decoration: underline; }
.documented { display: inline-flex; align-items: center; gap: 6px; }
.documented .icon { width: 15px; height: 15px; }
.article-grid { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 76px; padding-block: var(--s-7) var(--s-8); }
.article-sidebar { position: sticky; top: calc(var(--nav) + 24px); align-self: start; }
.article-sidebar nav { display: grid; gap: 2px; margin-top: var(--s-3); }
.article-sidebar nav a { padding: 7px 0 7px var(--s-3); border-left: 1px solid var(--line); font-size: var(--t-label); line-height: 1.45; color: var(--muted); text-decoration: none; }
.article-sidebar nav a:hover { color: var(--ink); border-left-color: var(--accent); }
.sidebar-tool { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-label); }
.sidebar-tool strong { display: block; color: var(--ink); font-weight: 500; }
.sidebar-tool p { margin: 6px 0 10px; color: var(--muted); }
.sidebar-tool a { font-weight: 500; color: var(--accent); text-decoration: none; }
.mobile-toc { display: none; }
.mobile-toc summary { cursor: pointer; font-size: var(--t-small); font-weight: 500; color: var(--ink); }
.mobile-toc nav { margin-top: 10px; }

.prose { min-width: 0; font-size: 17px; line-height: 1.75; color: var(--text); }
.prose h2 { margin: var(--s-7) 0 var(--s-3); font-size: 28px; line-height: 1.2; }
.prose h3 { margin: var(--s-6) 0 10px; font-size: 21px; line-height: 1.25; }
.prose p { margin: var(--s-4) 0; }
.prose :is(ul, ol) { margin: var(--s-4) 0; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: var(--s-2) 0; padding-left: 4px; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
:is(.prose, .source-list, .legal-layout, .page-hero p, .notice, .disclosure, .offer-disclosure, .editorial-accountability, .hub-caption, .tool-footnote) a:not(.btn, .text-link) { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: 3px; }
:is(.prose, .source-list, .legal-layout) a:not(.btn, .text-link):hover { text-decoration-color: currentColor; }
.prose table { display: block; overflow-x: auto; width: 100%; margin: var(--s-5) 0; border-collapse: collapse; font-size: var(--t-small); line-height: 1.55; }
.prose :is(th, td) { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--wash); color: var(--ink); font-weight: 500; }
.prose blockquote { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--warn-wash); font-size: var(--t-body); }
.prose pre { font-size: 13px; }
.prose code { font-size: .82em; }

.short-answer { padding: var(--s-5); border-radius: var(--r-md); background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.short-answer .eyebrow { color: var(--accent); }
.short-answer p { margin: var(--s-2) 0 0; font-size: 18px; line-height: 1.65; color: var(--ink); }
.disclosure { display: flex; align-items: baseline; gap: 10px; padding-bottom: var(--s-5); font-size: var(--t-small); line-height: 1.55; color: var(--muted); }
.disclosure strong { color: var(--ink); font-weight: 500; }
.notice { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--warn-wash); font-size: var(--t-small); line-height: 1.6; color: var(--text); }
.notice strong { color: var(--ink); }
.notice :is(p, strong) + p { margin-top: 6px; }
.source-list { margin-top: var(--s-7); padding-top: var(--s-2); border-top: 1px solid var(--line-strong); font-size: 15px; line-height: 1.6; color: var(--muted); }
.source-list h2 { margin-top: var(--s-5); font-size: 22px; }
.source-list ul { margin: var(--s-3) 0; padding-left: 18px; list-style: disc; }
.source-list li { margin: 6px 0; }
.source-list .icon { width: 13px; height: 13px; margin-left: 4px; }
.editorial-accountability { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.handoff-prompt { display: flex; align-items: flex-start; gap: var(--s-4); margin-top: var(--s-6); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.handoff-prompt > svg { margin-top: 4px; color: var(--accent); }
.handoff-prompt h2 { margin: 0; font-size: 22px; }
.handoff-prompt p { margin: 6px 0 10px; font-size: var(--t-small); color: var(--muted); }
.related-section { padding-block: var(--s-7) var(--s-8); border-top: 1px solid var(--line); }

/* the vendor's screenshots, shown as theirs */
.merchant-figure { margin: var(--s-6) 0; }
.merchant-figure img { display: block; width: 100%; height: auto; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line-strong); }
.merchant-figure figcaption { margin-top: 10px; font-size: var(--t-label); line-height: 1.55; color: var(--muted); }

/* the labelled GlockApps block (placement-offer.njk) */
.placement-offer { margin-block: var(--s-6); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.placement-offer h2 { margin-top: 10px; font-size: 24px; }
.placement-offer > p { max-width: 66ch; margin-top: var(--s-2); font-size: 15px; color: var(--text); }
.placement-offer .btn-row { margin-top: var(--s-4); }
.offer-disclosure { margin-top: var(--s-3); font-size: var(--t-label); line-height: 1.55; color: var(--muted); }

/* the delivery drawing (delivery-figure.njk) */
.article-visual { margin-block: var(--s-6); }
.article-delivery-visual { margin-block: var(--s-6); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.delivery-figure { margin: 0; }
.delivery-drawing { display: block; width: 100%; overflow: visible; }
.delivery-mobile { display: none; }
.delivery-line { fill: none; stroke: var(--p-accent); stroke-width: 1.6; }
.delivery-line-unknown { stroke: #6f7a74; stroke-dasharray: 4 5; }
.delivery-node { fill: #26302d; stroke: var(--p-accent); stroke-width: 1.5; }
.delivery-folder { fill: #26302d; stroke: #6f7a74; stroke-width: 1.3; }
.delivery-packet { fill: var(--p-accent); animation: route-enter 1.5s ease-in-out .25s both; }
.delivery-code { fill: var(--p-accent); font: 12px var(--font-mono); }
.delivery-label { fill: var(--text); font: 12px var(--font-text); }
.delivery-caption { fill: var(--muted); font: 10px var(--font-text); }
.evidence-boundary { fill: none; stroke: #6f7a74; stroke-dasharray: 2 5; }
.delivery-figure figcaption { margin-top: var(--s-5); font-size: 12px; color: var(--muted); }
.mobile-exchange { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.mobile-exchange > span:nth-child(2) { text-align: center; }
.mobile-exchange > span:last-child { text-align: right; }
.mobile-exchange code { padding: 0; background: none; font-size: 11px; white-space: nowrap; }
.mobile-exchange b { display: block; margin-top: var(--s-2); font-size: 30px; font-weight: 400; line-height: 1; color: var(--ink); }
.delivery-mobile p { margin-top: 15px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 12px; line-height: 1.7; color: var(--muted); }
.delivery-mobile p strong { color: var(--ink); font-weight: 500; }
@keyframes route-enter { from { transform: translateX(-70px); opacity: 0; } 25% { opacity: 1; } to { transform: translateX(124px); opacity: 1; } }

/* the annotated header (header-example.njk) */
.header-example { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--well); color: var(--text); line-height: 1.5; }
.header-example > figcaption { display: flex; justify-content: space-between; gap: var(--s-3); padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); font: 500 var(--t-label)/1.5 var(--font-text); color: var(--muted); }
.header-origin { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; padding: 22px 20px 17px; }
.header-origin > span { font: 12px var(--font-mono); color: var(--muted); }
.header-origin code { padding: 0; background: none; font: 13px/1.6 var(--font-mono); overflow-wrap: anywhere; }
.header-origin small { flex-basis: 100%; padding-left: 45px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.header-example mark { padding: 2px 3px; background: color-mix(in oklab, var(--p-accent) 22%, transparent); color: var(--accent-strong); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.header-evaluator { display: grid; gap: 7px; padding: 0 20px 20px; }
.header-evaluator code { padding: 0; background: none; font: 12px/1.6 var(--font-mono); overflow-wrap: anywhere; }
.header-evaluator > span { font-size: 12px; line-height: 1.5; color: var(--muted); }
.header-annotation { border-top: 1px solid var(--line); }
.header-annotation summary { display: grid; grid-template-columns: 51px minmax(0, 1fr) 15px; align-items: center; gap: var(--s-3); padding: 17px 20px; list-style: none; cursor: pointer; }
.header-annotation summary::-webkit-details-marker { display: none; }
.header-annotation summary:hover { background: color-mix(in oklab, var(--p-ink) 7%, transparent); }
.header-annotation[open] { background: color-mix(in oklab, var(--p-ink) 4%, transparent); }
.annotation-protocol { font: 500 11px var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.header-annotation summary code { min-width: 0; padding: 0; background: none; font: 12px/1.8 var(--font-mono); overflow-wrap: anywhere; }
.header-annotation summary code > span { color: var(--muted); }
.header-annotation summary .icon { width: 15px; height: 15px; color: var(--accent); transition: transform var(--dur) var(--ease); }
.header-annotation[open] summary .icon { transform: rotate(45deg); }
.header-annotation p { margin: 0; padding: 0 47px 20px 83px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.header-conclusion { display: flex; align-items: center; gap: 10px; padding: var(--s-4) 20px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--text); }
.header-conclusion .icon { width: 17px; height: 17px; color: var(--accent); }
.header-conclusion strong { font-weight: 600; }

/* ---------------------------------------------------------------- the guide index and its list rows (macros.njk guideCard) */
.guide-list-section { padding-bottom: var(--s-8); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-4); }
.filter-buttons { display: flex; flex-wrap: wrap; }
.filter-buttons button { min-height: 44px; padding: var(--s-2) 13px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: var(--t-label); font-weight: 500; color: var(--muted); cursor: pointer; }
.filter-buttons button:hover { color: var(--ink); }
.filter-buttons button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.search-input { width: 280px; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: 400 var(--t-small) var(--font-text); }
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--accent); outline: none; }
.result-count { margin: var(--s-4) 0; font: 12px var(--font-mono); color: var(--muted); }
.empty-state { margin: var(--s-4) 0; padding: var(--s-6); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.empty-state h2 { margin-bottom: var(--s-2); font-size: 22px; }

.guide-grid { border-top: 1px solid var(--line-strong); }
.guide-card { display: grid; grid-template-columns: 150px 1.05fr 1.25fr 20px; align-items: start; gap: var(--s-5); padding: var(--s-5) var(--s-3); border-bottom: 1px solid var(--line); text-decoration: none; transition: background var(--dur) var(--ease); }
.guide-card:hover { background: var(--wash); }
.guide-card .card-top { padding-top: 4px; }
.guide-card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.guide-card:hover h3 { color: var(--accent); }
.guide-entry-meta { display: block; margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.guide-card p { font-size: var(--t-small); line-height: 1.6; color: var(--muted); }
.guide-card .card-arrow { color: var(--accent); }
.guide-card .card-arrow .icon { transition: transform var(--dur) var(--ease); }
.guide-card:hover .card-arrow .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------- the tools index (tool-cards.njk) */
.tool-grid { border-top: 1px solid var(--line-strong); }
.tool-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 36px; padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.tool-illustration img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.tool-body { display: flex; flex-direction: column; gap: var(--s-2); }
.tool-body h3 { font-size: 24px; }
.tool-body p { max-width: 65ch; font-size: var(--t-small); color: var(--muted); }
.tool-body .text-link { margin-top: var(--s-2); }

/* ---------------------------------------------------------------- the three tools */
.tool-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; align-items: start; gap: var(--s-7); padding-bottom: var(--s-8); }
.tool-workspace { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); background: var(--wash); }
.workspace-header h2 { font: 500 var(--t-small) var(--font-text); letter-spacing: 0; }
.workspace-header .pill { height: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.workspace-body { padding: var(--s-6) var(--s-5); }
.tool-aside { padding: 4px 0 0 var(--s-5); border-left: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); }
.tool-aside > .icon { color: var(--accent); }
.tool-aside h2 { margin: var(--s-2) 0 var(--s-3); font-size: 18px; letter-spacing: -.01em; }
.tool-aside h3 { margin: 22px 0 6px; font: 500 15px var(--font-text); letter-spacing: 0; }
.tool-aside p { margin: var(--s-2) 0; line-height: 1.6; }
.tool-aside a { display: block; margin: var(--s-2) 0; color: var(--accent); font-weight: 500; text-decoration: none; }
.tool-aside a:hover { text-decoration: underline; }
.progress { height: 3px; background: var(--line); }
.progress-fill { width: 33.33%; height: 100%; background: var(--accent); transition: width .2s; }
.step-caption { display: flex; justify-content: space-between; margin-bottom: 18px; font: 12px var(--font-mono); color: var(--muted); }
.step-title { margin-bottom: 6px; font: var(--display-weight) 26px/1.2 var(--font-display); letter-spacing: var(--display-tracking); color: var(--ink); }
.step-description { margin-bottom: 18px; font-size: 15px; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.choice { position: relative; display: block; min-height: 84px; padding: 15px 15px 15px 42px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; transition: border-color var(--dur) var(--ease); }
.choice:hover { border-color: var(--muted); }
.choice input { position: absolute; top: 19px; left: 15px; width: 15px; height: 15px; margin: 0; accent-color: var(--p-accent); }
.choice strong { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.choice span { display: block; margin-top: 3px; font-size: var(--t-label); line-height: 1.5; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); }
.tool-back { padding: var(--s-2) 4px; border: 0; background: none; font-size: var(--t-small); color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tool-error { margin: 14px 0; font-size: var(--t-small); color: var(--fail); }
.result-panel h2 { margin: var(--s-3) 0; font-size: 28px; }
.result-panel .result-intro { font-size: 17px; line-height: 1.6; color: var(--text); }
.result-panel:focus { outline: 2px solid var(--accent); outline-offset: 6px; }
.result-panel:focus:not(:focus-visible) { outline: none; }
.result-steps { margin: 22px 0; padding: 0; list-style: none; counter-reset: steps; }
.result-steps li { display: grid; grid-template-columns: 30px 1fr; gap: var(--s-3); margin: 14px 0; font-size: 15px; line-height: 1.6; counter-increment: steps; }
.result-steps li::before { content: counter(steps); display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: 500 12px var(--font-mono); color: var(--ink); }
.result-links { display: grid; gap: 10px; margin-top: 22px; }
.result-context { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font: 12px var(--font-mono); color: var(--muted); }

/* tool forms: the kit's .field (system.css) draws the inputs; these set the tools' spacing and hints */
.page .field { margin-bottom: var(--s-5); }
.page .field label { font-size: 15px; font-weight: 500; color: var(--ink); }
.page .field :is(input, select) { min-height: 44px; }
.page .field :is(input, select, textarea):focus { border-color: var(--accent); outline: none; }
.page .field :is(input, textarea)::placeholder { color: var(--muted); }
.page .field textarea { min-height: 170px; font: 13px/1.7 var(--font-mono); }
.field .hint { font-size: var(--t-label); font-weight: 400; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.tool-pair { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: var(--s-5); margin: var(--s-6) 0; }
.tool-pair article { border-top: 1px solid var(--line-strong); padding-top: var(--s-4); }
.tool-pair h2, .workspace-body section h2 { font-size: var(--t-lead); margin: var(--s-4) 0 var(--s-2); }
.tool-pair p, .workspace-body section > p { margin: var(--s-3) 0; }
.compare-rows { margin: var(--s-4) 0; }
.compare-rows dt, .provider-row legend { font-weight: 600; }
.compare-rows dd { margin: 0 0 var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.compare-rows dd div { display: grid; grid-template-columns: 6em minmax(0,1fr); overflow-wrap: anywhere; font: 13px/1.65 var(--font-mono); }
.compare-rows dd span { color: var(--muted); }
.provider-row, .planner-file { margin-top: var(--s-5); }
.provider-row { min-width: 0; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-sm); }
.provider-row .field, .credit-estimate .field { min-width: 0; }
.provider-row .field :is(input,select) { display: block; width: 100%; }
.provider-row button { background: none; color: var(--accent); border: 0; cursor: pointer; text-decoration: underline; }
#provider-rows, #plan-steps { margin: var(--s-4) 0; }
#plan-steps { list-style: decimal; padding-left: 1.5em; }
#provider-help summary { cursor: pointer; color: var(--accent); }
#plan-status:not(:empty), #compare-status:not(:empty) { margin: var(--s-4) 0; }
.workspace-body [hidden] { display: none; }
.form-grid .full-width { grid-column: 1 / -1; }
.textarea-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-bottom: 14px; font-size: var(--t-small); }
.textarea-actions button { padding: 2px 0; border: 0; background: none; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.textarea-actions span { margin-left: auto; font: 12px var(--font-mono); color: var(--muted); }
.auth-results { display: grid; gap: 10px; margin-top: 20px; }
.auth-result { padding: var(--s-4) 18px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.auth-result-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.auth-result h3 { font: 500 var(--t-body) var(--font-text); letter-spacing: 0; }
.auth-result p { margin-top: var(--s-2); font-size: var(--t-small); line-height: 1.6; color: var(--text); }
.auth-context { margin: 18px 0; font-size: var(--t-small); color: var(--muted); overflow-wrap: anywhere; }
.handoff-output { margin-top: 22px; padding: 20px; border-radius: var(--r-md); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 13px/1.8 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.print-handoff { display: none; }
.tool-footnote { margin-top: 20px; padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-label); color: var(--muted); }

/* ---------------------------------------------------------------- the recruitment hub */
.recruitment-hero { max-width: 960px; }
.recruitment-hero .hub-scope { margin-top: 20px; font-size: var(--t-small); color: var(--muted); }
.hub-chapter { padding-block: 52px; border-top: 1px solid var(--line); }
.hub-heading { max-width: 720px; margin-bottom: 26px; }
.hub-heading h2 { margin: 10px 0; font-size: var(--t-h3); }
.hub-heading p { max-width: 62ch; font-size: var(--t-body); color: var(--muted); }
.investigation-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.investigation-paths > a { display: block; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; }
.investigation-paths h3 { font-size: 20px; }
.investigation-paths a:hover h3 { color: var(--accent); }
.investigation-paths p { margin: var(--s-2) 0 var(--s-3); font-size: var(--t-small); color: var(--muted); }
.path-number { display: block; margin-bottom: var(--s-2); font: 500 var(--t-label)/1.4 var(--font-text); color: var(--muted); }
.hub-two-column { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s-8); }
.hub-two-column .prose { font-size: var(--t-body); }
.hub-two-column .prose h3:first-child { margin-top: 0; }
.route-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.route-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--t-small); }
.route-table :is(th, td) { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.route-table tbody tr:last-child > * { border-bottom: 0; }
.route-table thead th { background: var(--wash); font: 500 var(--t-label) var(--font-text); color: var(--muted); }
.route-table tbody th { width: 23%; font-weight: 500; color: var(--ink); }
.route-table td { width: 38%; color: var(--text); }
.prose .route-table-wrap { margin: 22px 0; }
.prose .route-table { display: table; margin: 0; }
.prose .route-table tbody th { background: none; }
.hub-caption { max-width: 85ch; margin-top: 20px; font-size: var(--t-small); color: var(--muted); }
.hub-decision-list > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--s-7); padding-block: 20px; border-top: 1px solid var(--line); }
.hub-decision-list h3 { font-size: 19px; }
.hub-decision-list p { font-size: 15px; color: var(--text); }
.hub-references { padding-bottom: var(--s-8); font-size: var(--t-small); color: var(--muted); }
.hub-references h2 { margin-bottom: 14px; font-size: 19px; }
.hub-references ul { margin: 14px 0; padding-left: 18px; list-style: disc; }

/* ---------------------------------------------------------------- the publication pages (about, standards, privacy, funding, contact) */
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 76px; padding-bottom: var(--s-8); }
.legal-layout aside { font-size: var(--t-label); line-height: 1.8; color: var(--muted); }
.legal-layout aside p + p { margin-top: var(--s-4); }
.about-principles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin: var(--s-5) 0; }
.about-principles > div { padding-top: 14px; border-top: 1px solid var(--line-strong); }
.about-principles h3 { margin: 0; font-size: 19px; }
.about-principles p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* system.js outlines text naming .example domains or "illustrative" examples, a check written for landing pages.
   The guides use reserved .example domains on purpose (see /methodology/), so no reader sees that outline. */
.page [data-placeholder] { outline: none; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1100px) {
  .article-grid, .legal-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 44px; }
  .tool-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 30px; }
  .guide-card { grid-template-columns: 120px 1fr 1fr 18px; gap: 20px; }
}
@media (max-width: 860px) {
  .article-grid { display: block; padding-top: var(--s-5); }
  .article-sidebar { position: static; margin-bottom: var(--s-6); padding: var(--s-3) 0; border-block: 1px solid var(--line); }
  .article-sidebar > .eyebrow, .article-sidebar > nav, .sidebar-tool { display: none; }
  .mobile-toc { display: block; }
  .tool-layout { display: block; }
  .tool-aside { max-width: 600px; margin-top: var(--s-6); padding: var(--s-5) 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .legal-layout, .hub-two-column { grid-template-columns: 1fr; gap: var(--s-5); }
  .legal-layout aside { padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
  .guide-card { grid-template-columns: 115px minmax(0, 1fr) 18px; }
  .guide-card p { grid-column: 2; }
  .guide-card .card-arrow { grid-column: 3; grid-row: 1; }
}
@media (max-width: 639px) {
  .page-hero { padding-block: 27px; }
  .page-hero h1, .article-header h1 { font-size: 32px; }
  .tool-page .page-hero h1 { font-size: 31px; }
  .page-hero > p, .article-deck { font-size: var(--t-body); }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading > :is(.text-link, p) { margin-top: 14px; }
  .article-meta { gap: var(--s-2) 18px; font-size: 12px; }
  .prose { font-size: var(--t-body); line-height: 1.8; }
  .prose h2 { font-size: 25px; }
  .short-answer { padding: 17px 18px; }
  .short-answer p { font-size: var(--t-body); }
  .guide-card { grid-template-columns: minmax(0, 1fr) 18px; gap: 9px; padding-block: 21px; padding-inline: 0; }
  .guide-card :is(.card-top, .card-main, p) { grid-column: 1; }
  .guide-card .card-arrow { grid-column: 2; grid-row: 2; }
  .filter-bar { display: block; }
  .filter-buttons { margin-bottom: 18px; }
  .filter-buttons button { padding-inline: 9px; font-size: 12px; }
  .search-input { width: 100%; font-size: 16px; }
  .page .field :is(input, select) { font-size: 16px; }
  .choice-grid, .form-grid, .investigation-paths, .about-principles { grid-template-columns: 1fr; }
  .hub-decision-list > div { grid-template-columns: 1fr; gap: var(--s-2); }
  .workspace-header { padding: 14px 18px; }
  .workspace-body { padding: 22px 18px; }
  .tool-card { grid-template-columns: 115px minmax(0, 1fr); align-items: start; gap: 18px; }
  .tool-body h3 { font-size: 20px; }
  .tool-body :is(p, .text-link) { font-size: var(--t-label); }
  .article-delivery-visual { padding: 22px 18px; }
  .delivery-drawing { display: none; }
  .delivery-mobile { display: block; }
  .delivery-figure figcaption { font-size: 11px; line-height: 1.5; }
  .header-example > figcaption { padding: 12px 14px; font-size: 10px; }
  .header-origin { padding: 18px 14px 16px; }
  .header-origin code { font-size: 12px; }
  .header-origin small { padding-left: 0; }
  .header-evaluator { padding: 0 14px 17px; }
  .header-evaluator code { font-size: 11px; }
  .header-annotation summary { grid-template-columns: minmax(0, 1fr) 15px; gap: 7px 10px; padding: 14px; }
  .annotation-protocol { grid-column: 1 / -1; }
  .header-annotation summary code { font-size: 11px; }
  .header-annotation p { padding: 0 14px 17px; font-size: 12px; }
  .header-conclusion { align-items: flex-start; padding: 14px; }
}
@media (max-width: 380px) {
  .tool-card { grid-template-columns: 1fr; }
  .tool-illustration img { width: 145px; }
}
@media (prefers-reduced-motion: reduce) {
  .delivery-packet { animation: none; }
  .text-link .icon, .guide-card .card-arrow .icon { transition: none; }
}

/* ---------------------------------------------------------------- print: a guide or a handoff on paper */
@media print {
  .nav, .footer, .breadcrumb, .article-sidebar, .related-section, .btn-row, .tool-actions, .tool-aside, .tool-footnote,
  .workspace-header, .tool-form, .disclosure, .handoff-prompt, .placement-offer, .analytics-consent { display: none !important; }
  html, body, .page { background: #fff; color: #111; --text: #111; --ink: #111; --muted: #444; --line: #ccc; --wash: #f2f2f2; --surface: #fff; --well: #f2f2f2; --accent: #111; }
  .page { padding-top: 0; }
  .container { width: 100%; max-width: 100%; }
  .article-grid, .tool-layout { display: block; }
  .prose { font-size: 11pt; line-height: 1.6; }
  .tool-workspace { border: 0; }
  .workspace-body { padding: 0; }
  .print-handoff { display: block; color: #111; font: 10pt/1.6 monospace; white-space: pre-wrap; }
  .handoff-output { display: none; }
  .handoff-page :is(.page-hero, #edit-handoff) { display: none !important; }
  .page a { color: #111; }
  .header-example { break-inside: avoid; }
  .header-annotation p { display: block; }
}
