/* openppc.si: the same palette and type as the app. Fonts are served from this site, so pages make no third-party requests. */
@font-face { font-family: "Jakarta"; src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #11181c; --ink2: #26312f; --ink3: #33403d; --muted: #5b6468; --faint: #6b7378;
  --line: #e3e7e5; --line2: #eceeef; --ground: #fbfcfb; --soft: #f4f6f5; --card: #ffffff;
  --accent: #4b32c3; --accent-ink: #36239a; --accent-tint: #efecfb; --accent-soft: #c9c1ff;
  --ok: #1f9d61; --ok-bg: #e3f4ea; --ok-ink: #0b6b3f; --mis-bg: #fdebd0; --mis-ink: #8a4b00; --nid: #c0362c;
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: 0.86em; padding: 2px 6px; border-radius: 6px; background: var(--soft); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 13px; font-weight: 700; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 15.5px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: #c7cdca; color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #ffffff; box-shadow: 0 10px 24px -12px rgba(75, 50, 195, 0.7); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #ffffff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.btn-dark:hover { background: var(--ink2); border-color: var(--ink2); color: #ffffff; }
.btn-light { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); color: #ffffff; }
.btn-light:hover { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.btn svg { flex-shrink: 0; }

/* navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 252, 251, 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line2); }
.nav-in { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: 8px; }
.nav-links a { color: var(--ink3); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-right .btn { height: 42px; padding: 0 16px; font-size: 14.5px; }

/* sections */
.section { padding-block: 96px; }
.section-head { max-width: 720px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; align-items: center; text-align: center; }
.section-head.center .eyebrow { align-self: center; }
.section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.section-head p { font-size: 18.5px; color: var(--muted); }

/* hero */
.hero { padding-block: 88px 64px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero .eyebrow { align-self: center; }
.hero h1 { max-width: 900px; font-size: clamp(40px, 6.4vw, 70px); line-height: 1.03; font-weight: 800; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 700px; font-size: 19.5px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.fine { font-size: 14px; color: var(--faint); }

/* video band */
.film { position: relative; padding-block: 72px 80px; background: radial-gradient(900px 560px at 10% -10%, rgba(126, 104, 255, 0.45), rgba(126, 104, 255, 0) 70%), linear-gradient(140deg, #4b32c3 0%, #2b1f78 42%, #161338 74%, #11181c 100%); color: #ffffff; }
.film-frame { border-radius: 16px; overflow: hidden; background: #0b0f12; box-shadow: 0 40px 90px rgba(4, 2, 18, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12); aspect-ratio: 1440 / 900; }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-caption { margin-top: 18px; text-align: center; font-size: 15px; color: #c9c1ff; }

/* proof */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split-text { display: flex; flex-direction: column; gap: 18px; }
.split-text p { font-size: 18px; color: var(--ink3); }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: 0 1px 2px rgba(17, 24, 28, 0.05), 0 24px 50px -30px rgba(17, 24, 28, 0.35); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 26px; padding: 0 10px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.p-ok { background: var(--ok-bg); color: var(--ok-ink); }
.p-mis { background: var(--mis-bg); color: var(--mis-ink); }
.p-nid { background: var(--nid); color: #ffffff; }
.p-con { background: var(--ink); color: #ffffff; }
.p-unc { background: #eef0ef; color: #5b6461; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.steps h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.steps p { font-size: 15.5px; color: var(--muted); }

/* feature spotlights and cards */
.spots { display: flex; flex-direction: column; gap: 88px; }
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.spot.flip .spot-text { order: 2; }
.spot-text { display: flex; flex-direction: column; gap: 14px; }
.spot-text h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.spot-text p { font-size: 17.5px; color: var(--ink3); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--ink3); }
.ticks li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6b3f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 88px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.card p { font-size: 15.5px; color: var(--muted); }
.card .shot { margin-top: 10px; border-radius: 10px; box-shadow: none; }
.shot.portrait img { width: 100%; height: 560px; object-fit: cover; object-position: top; }  /* a tall page: show its top */
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }

/* privacy and claude */
.band { background: var(--soft); border-block: 1px solid var(--line2); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trio .card { background: var(--card); }
.claude { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
pre.code { margin: 0; padding: 20px 22px; border-radius: 14px; background: var(--ink); color: #e9eeec; font-family: var(--mono); font-size: 14.5px; line-height: 1.7; overflow-x: auto; }
pre.code .c { color: #8b9398; }
pre.code .p { color: var(--accent-soft); user-select: none; }

/* works inside your AI */
.works { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--faint); }
.ph-badge { display: flex; justify-content: center; margin-top: 18px; }
.ph-badge img { display: block; }
.lb-badge { margin-top: 10px; }
.lb-badge img { display: block; }
.works b { padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink2); font-weight: 700; }
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card.ai { gap: 14px; }
.card.ai pre.code { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nw { white-space: nowrap; }
.card.ai .btn { align-self: flex-start; }
.card.ai .note { font-size: 14px; color: var(--muted); }
.more { margin-top: auto; font-size: 15px; font-weight: 700; text-decoration: none; }
.tools-line { margin-top: 28px; text-align: center; font-size: 15.5px; color: var(--muted); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.faq summary { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17.5px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); margin-top: -4px; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { padding: 0 24px 22px; color: var(--ink3); font-size: 16px; }

/* closing call to action */
.closing { padding-block: 96px; background: radial-gradient(800px 480px at 90% 120%, rgba(126, 104, 255, 0.4), rgba(126, 104, 255, 0) 70%), var(--ink); color: #ffffff; text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.closing h2 { max-width: 760px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.closing p { max-width: 620px; font-size: 18px; color: #c4cacd; }

/* footer */
.foot { padding-block: 56px 40px; border-top: 1px solid var(--line2); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-about { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.foot-about p { font-size: 14.5px; color: var(--muted); }
.foot h3 { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--ink3); font-size: 15px; text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--faint); }

/* docs */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 56px 96px; }
.doc-nav { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.doc-nav a { padding: 7px 10px; border-radius: 8px; color: var(--ink3); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.doc-nav a:hover { background: var(--soft); color: var(--ink); }
.doc-nav .sub { padding-left: 22px; font-weight: 500; color: var(--muted); }
.doc-body { max-width: 780px; display: flex; flex-direction: column; gap: 20px; }
.doc-body h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
.doc-body h2 { margin-top: 36px; padding-top: 8px; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; scroll-margin-top: 92px; }
.doc-body h3 { margin-top: 18px; font-size: 20px; line-height: 1.3; font-weight: 700; scroll-margin-top: 92px; }
.doc-body p, .doc-body li { font-size: 17px; color: var(--ink3); }
.doc-body ol, .doc-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc-lead { font-size: 19px !important; color: var(--muted) !important; }
.doc-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; align-items: start; }
.doc-step > div { display: flex; flex-direction: column; gap: 12px; }
.doc-step h3 { margin: 4px 0 0; }
figure { margin: 6px 0 4px; display: flex; flex-direction: column; gap: 10px; }
figure .shot { box-shadow: 0 1px 2px rgba(17, 24, 28, 0.05), 0 18px 40px -28px rgba(17, 24, 28, 0.35); }
figcaption { font-size: 14px; color: var(--faint); }
.callout { padding: 16px 20px; border-radius: 12px; background: var(--accent-tint); color: var(--ink2); font-size: 15.5px; }
.callout.ok { background: var(--ok-bg); color: var(--ok-ink); }
.toc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.toc-cards a { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.toc-cards a:hover { border-color: var(--accent-soft); color: var(--ink); }
.toc-cards b { font-size: 16px; }
.toc-cards span { font-size: 14px; color: var(--muted); }
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-list a { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.doc-list a:hover { border-color: var(--accent-soft); color: var(--ink); }
.doc-list b { font-size: 19px; }
.doc-list span { font-size: 15.5px; color: var(--muted); }

.byline { margin-top: -8px; font-size: 14.5px !important; color: var(--muted) !important; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-grid div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.stat-grid b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.stat-grid span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; color: var(--ink3); }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.data-table .amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-body .faq { margin: 0; max-width: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .faq summary::after { transition: none; } }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .split, .spot, .claude { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .spot.flip .spot-text { order: 0; }
  .steps, .cards, .trio, .toc-cards, .ai-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 32px 72px; }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .doc-nav .sub { display: none; }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap { padding-inline: 18px; }
  .section { padding-block: 64px; }
  .hero { padding-block: 56px 44px; }
  .nav-right .gh-label { display: none; }
  .foot-in, .doc-list { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { width: 100%; }
}

/* Charts and diagrams in articles: plain HTML and CSS, so the text stays crisp and readable at any width. */
.viz { margin: 6px 0 2px; padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 2px rgba(17, 24, 28, 0.04); }
.viz-head { display: flex; flex-direction: column; gap: 4px; }
.viz-head b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); line-height: 1.3; }
.viz-head span { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.viz figcaption { font-size: 13.5px; color: var(--faint); line-height: 1.45; }
.viz-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.viz-key span { display: inline-flex; align-items: center; gap: 7px; }
.viz-key i { width: 11px; height: 11px; border-radius: 3px; background: #a9d9bd; }
.viz-key i.bad { background: var(--nid); }
.viz-key i.ring { border-radius: 50%; background: var(--card); border: 2px solid var(--ink3); }
.viz-key i.fill { border-radius: 50%; background: var(--accent); }
.viz-key i.okdot { border-radius: 50%; background: var(--ok); }
.viz-key i.baddot { border-radius: 50%; background: var(--nid); }
.viz .chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.viz .chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.viz .chip.bad { background: #fbe4e1; color: #9c2a21; }

/* how a test worked: a list of steps, laid out left to right when the chart is wide enough */
.viz { container-type: inline-size; }
.doc-body .flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.doc-body .flow li { position: relative; padding: 14px 16px; border-radius: 12px; background: var(--soft); display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; }
.doc-body .flow li b { font-size: 15.5px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.doc-body .flow li span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.doc-body .flow li:last-child { background: var(--accent-tint); }
.flow svg { grid-row: span 2; width: 26px; height: 26px; color: var(--accent); }
.doc-body .flow li:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 7px; height: 7px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateX(-50%) rotate(135deg); opacity: 0.55; }
@container (min-width: 700px) {
  .doc-body .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .doc-body .flow li { display: flex; flex-direction: column; gap: 6px; padding: 14px 13px 16px; }
  .doc-body .flow li span { font-size: 13.5px; }
  .doc-body .flow li:not(:last-child)::after { left: auto; bottom: auto; top: 50%; right: -11px; transform: translateY(-50%) rotate(45deg); }
}

/* every number as a square */
.waffle { display: flex; flex-direction: column; gap: 18px; }
.waffle-name { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.waffle-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.waffle-label { font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.waffle-label b { color: var(--ink); }
.cells { display: flex; flex-wrap: wrap; gap: 2px; }
.cells i { width: 8px; height: 8px; border-radius: 2px; background: #a9d9bd; }
.cells i.w { background: var(--nid); box-shadow: 0 0 0 2px rgba(192, 54, 44, 0.2); }

/* a group of squares per kind of error */
.err { display: flex; flex-direction: column; gap: 12px; }
.err-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; }
.err-sq { display: flex; flex-wrap: wrap; gap: 4px; }
.err-sq i { width: 20px; height: 20px; border-radius: 5px; background: var(--nid); }
.err-txt { font-size: 15px; color: var(--ink3); line-height: 1.35; }
.err-txt b { margin-right: 4px; font-size: 18px; color: var(--ink); }

/* one row per answer, each dot against the real figure (SVG positions by attribute: the site's CSP blocks inline styles) */
.lineup { display: flex; flex-direction: column; }
.nl-group { display: flex; flex-direction: column; margin-top: 8px; }
.nl-head { margin-bottom: 2px; font-size: 13px; color: var(--muted); }
.nl-head b { color: var(--ink); }
.nl-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: center; }
.nl-name { font-size: 13.5px; color: var(--ink3); white-space: nowrap; }
.nl-svg { display: block; overflow: visible; }
.nl-svg text { font-family: var(--font); font-size: 12px; fill: var(--faint); }
.nl-svg .nl-real { font-size: 12.5px; font-weight: 700; fill: var(--ok-ink); }
.nl-svg .nl-lab { font-size: 12.5px; font-weight: 700; fill: var(--nid); }
.nl-true { stroke: var(--ok); stroke-width: 2; stroke-dasharray: 4 3; }
.nl-base { stroke: var(--line); stroke-width: 2; }
.nl-dot.ok { fill: var(--ok); }
.nl-dot.bad { fill: var(--nid); }
.nl-axis { margin-top: 6px; }

/* before and after on one line per row */
.db { display: flex; flex-direction: column; gap: 8px; }
.db-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 190px; gap: 18px; align-items: center; }
.db-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.db-track { display: block; padding-inline: 10px; }
.db-track svg { display: block; overflow: visible; }
.db-line { stroke: var(--line); stroke-width: 2; }
.db-bar { fill: var(--accent-soft); }
.db-chat { fill: var(--card); stroke: var(--ink3); stroke-width: 2.5; }
.db-tools { fill: var(--accent); }
.db-track text { font-family: var(--font); font-size: 12.5px; font-weight: 700; fill: var(--ink3); }
.db-axis .db-track text { font-size: 12px; font-weight: 400; fill: var(--faint); }
.db-unit { font-size: 12px; color: var(--faint); }
.db-calls { font-size: 13.5px; color: var(--muted); }
.db-calls b { font-size: 15px; color: var(--ink); }

/* one bar per row */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 190px; gap: 18px; align-items: center; }
.bar-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.bar-track svg { display: block; }
.bar-bg { fill: var(--soft); }
.bar-fg { fill: var(--accent); }
.bar-val { font-size: 13.5px; color: var(--muted); }
.bar-val b { color: var(--ink); font-size: 15px; }

/* an audit's own lines, marked up against the export */
.redline { display: flex; flex-direction: column; padding: 6px 18px; border-radius: 12px; background: var(--soft); font-family: var(--mono); font-size: 13.5px; }
.rl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rl-row:last-child { border-bottom: 0; }
.rl-row.from .rl-k { font-weight: 700; color: var(--ink); }
.rl-row.sub .rl-k { padding-left: 18px; position: relative; }
.rl-row.sub .rl-k::before { content: "↳"; position: absolute; left: 0; color: var(--faint); }
.rl-k { color: var(--ink3); }
.rl-v { text-align: right; white-space: nowrap; }
.redline s { color: var(--nid); text-decoration-thickness: 1.5px; }
.redline ins { margin-left: 8px; padding: 1px 7px; border-radius: 6px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; text-decoration: none; }
.redline .same { color: var(--ok-ink); }

/* quoted claims and what the export says */
.claims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.claim { padding: 16px 18px; border-radius: 12px; background: var(--soft); border-left: 4px solid var(--nid); display: flex; flex-direction: column; gap: 8px; }
.claim q { font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.claim span { font-size: 14.5px; line-height: 1.45; color: var(--ink3); }
.claim small { font-size: 12.5px; color: var(--faint); }

/* squares for numbers outside the data, and a bigger grid for a hundred */
.cells i.n { background: #d3d9d6; }
.cells.big { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; max-width: 350px; }
.cells.big i { width: auto; height: auto; aspect-ratio: 1; border-radius: 6px; }
.viz-key i.none { background: #d3d9d6; }
.bar-fg.hot { fill: var(--nid); }

/* parts of a total, side by side */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 96px; gap: 16px; align-items: center; }
.stack-name { font-size: 14px; line-height: 1.35; color: var(--ink3); }
.stack-svg { display: block; border-radius: 6px; }
.stack-svg rect { stroke: var(--card); stroke-width: 1.5; }
.seg-a { fill: var(--accent); }
.seg-b { fill: #8a78e6; }
.seg-miss { fill: var(--nid); }
.stack-val { font-size: 13px; color: var(--muted); }
.stack-val b { display: block; font-size: 15px; color: var(--ink); }

/* a figure with its working one click away */
.receipt { padding: 16px 18px; border: 1px dashed #cfd5d2; border-radius: 12px; background: var(--soft); font-family: var(--mono); font-size: 13.5px; }
.rc-claim { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; color: var(--ink3); }
.rc-claim b { font-size: 15px; color: var(--ink); }
.rc-claim small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.receipt summary { margin-top: 12px; cursor: pointer; list-style: none; font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--accent); }
.receipt summary::-webkit-details-marker { display: none; }
.receipt summary::before { content: "▸ "; }
.receipt details[open] summary::before { content: "▾ "; }
.rc-body { margin-top: 10px; display: flex; flex-direction: column; }
.rc-note { margin-bottom: 4px; font-family: var(--font); font-size: 13px; color: var(--muted); }
.rc-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dotted #d6dcd9; color: var(--ink3); }
.rc-row span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-sum { border-bottom: 0; font-weight: 700; color: var(--ink); }

/* numbered steps in a grid (.steps is the home page's) */
.doc-body .vsteps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; counter-reset: vstep; }
.doc-body .vsteps li { counter-increment: vstep; position: relative; padding: 14px 14px 14px 50px; border-radius: 12px; background: var(--soft); display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.doc-body .vsteps li::before { content: counter(vstep); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; }
.doc-body .vsteps li b { font-size: 15px; line-height: 1.3; color: var(--ink); }
.doc-body .vsteps li em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); }
.doc-body .vsteps.rows { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.doc-body .vsteps.rows li { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 6px; padding: 12px 14px 12px 50px; font-size: 14.5px; }
.doc-body .vsteps.rows li::before { top: 9px; }

/* two lists side by side */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.compare > div { padding: 16px 18px; border-radius: 12px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; }
.compare > div.keep { background: var(--accent-tint); }
.cmp-h { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.doc-body .compare ul { gap: 6px; padding-left: 18px; }
.doc-body .compare li { font-size: 14.5px; color: var(--ink3); }

/* three kinds, with a figure each (.trio is the home page's) */
.kinds3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kinds3 > div { padding: 16px; border-radius: 12px; border-top: 4px solid var(--ok); background: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.kinds3 > div.amber { border-top-color: #d98a00; }
.kinds3 > div.grey { border-top-color: #b4bcb8; }
.kinds3 b { font-size: 15.5px; color: var(--ink); }
.kinds3 strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.kinds3 span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }

/* reveal-the-answer list */
.quiz { display: flex; flex-direction: column; gap: 10px; }
.quiz details { padding: 14px 16px; border-radius: 12px; background: var(--soft); }
.quiz summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.quiz summary::-webkit-details-marker { display: none; }
.quiz summary::after { content: "Show the slip"; flex: none; font-size: 13px; font-weight: 700; color: var(--accent); }
.quiz details[open] summary::after { content: "Hide"; }
.doc-body .quiz p { margin-top: 8px; font-size: 14.5px; color: var(--ink3); }

/* a two by two of decisions */
.matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.matrix > div { padding: 14px 16px; border-radius: 12px; background: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.matrix > .span2 { grid-column: 1 / -1; }
.matrix > .m-block { background: #fbe4e1; }
.matrix > .m-wait { background: #fdf1dc; }
.m-h { font-size: 15px; font-weight: 800; color: var(--ink); }
.m-sub { font-size: 13px; line-height: 1.4; color: var(--muted); }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-chips span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; color: var(--ink3); }
.m-chips span b { margin-left: 4px; color: var(--ink); }
.m-none { font-size: 13.5px; font-style: italic; color: var(--faint); }

/* a line over a grid: the line is drawn in a stretched viewBox, labels and dots in a plain one */
.curve { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; }
.curve-y { height: 236px; margin-block: -8px; display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; text-align: right; color: var(--faint); }
.curve-area { display: grid; height: 220px; }
.curve-area > svg { grid-area: 1 / 1; display: block; width: 100%; height: 220px; overflow: visible; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-bar { stroke: var(--ok); stroke-width: 1.5; stroke-dasharray: 5 4; }
.c-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.c-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2.5; }
.c-dot.sure { fill: var(--ok); }
.curve-over text, .curve-x text { font-family: var(--font); font-size: 12.5px; fill: var(--ink3); }
.curve-over .c-bar-lab { font-weight: 700; fill: var(--ok-ink); }
.curve-x { display: block; margin-top: 6px; overflow: visible; }
.curve-x text { font-size: 12px; fill: var(--faint); }
.curve-xlab { margin-top: 2px; padding-left: 48px; font-size: 12.5px; color: var(--muted); }


@media (max-width: 760px) {
  .err-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .db-row, .bar-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .claims { grid-template-columns: minmax(0, 1fr); }
  .stack-row { grid-template-columns: minmax(0, 1fr) 84px; gap: 6px 12px; }
  .stack-name { grid-column: 1 / -1; }
  .compare, .kinds3, .matrix { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .viz { padding: 18px 16px 16px; }
  .waffle-pair { gap: 12px; }
  .cells i { width: 6px; height: 6px; }
  .rl-row { grid-template-columns: minmax(0, 1fr); }
  .nl-row { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .nl-name { font-size: 12.5px; }
  .rl-v { text-align: left; }
}
