/* johncrockett.com
   Concept: the site reads like a search result that cites John.
   Blue links, purple visited links and breadcrumb URLs come from the
   vernacular of search; the orange comes from John's logo. */

@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted-grotesk.woff2?v=2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted-grotesk-italic.woff2?v=2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4.woff2?v=2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-italic.woff2?v=2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --paper: #F3F5F7;
  --surface: #FFFFFF;
  --ink: #16213A;
  --ink-2: #3B4660;
  --muted: #5E6880;
  --rule: #D6DCE4;
  --link: #1A4DD6;
  --visited: #6A3EA1;
  --signal: #F24E1E;
  --signal-ink: #16213A;
  --cite-bg: #E3EAFB;
  --band: #16213A;
  --band-ink: #E9EDF3;
  --band-muted: #A9B3C6;
  --hero-bg: #16213A;
  --shadow: 0 1px 2px rgba(22, 33, 58, .06), 0 8px 24px rgba(22, 33, 58, .06);

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", ui-serif, Georgia, serif;
  --wrap: 1120px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1727;
    --surface: #172238;
    --ink: #E9EDF3;
    --ink-2: #C4CCDA;
    --muted: #97A2B6;
    --rule: #2A3752;
    --link: #8AB0FF;
    --visited: #C3A6F0;
    --cite-bg: #22345E;
    --band: #172238;
    --hero-bg: #0A1120;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --paper: #0F1727; --surface: #172238; --ink: #E9EDF3; --ink-2: #C4CCDA; --muted: #97A2B6;
  --rule: #2A3752; --link: #8AB0FF; --visited: #C3A6F0; --cite-bg: #22345E; --band: #172238;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.15; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Masthead */
.masthead { background: var(--surface); border-bottom: 1px solid var(--rule); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem; }
.masthead nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.masthead nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .9875rem; }
.masthead nav a:hover { color: var(--ink); background: var(--paper); }
.masthead nav a[aria-current="page"] { color: var(--ink); background: var(--paper); }
.masthead nav a.nav-cta { background: var(--ink); color: var(--paper); }
.masthead nav a.nav-cta:hover { background: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { filter: brightness(1.06); border-color: var(--signal); }
.btn:disabled { opacity: .6; cursor: progress; }

/* Hero: a query, the answer that cites John, and the authority graph */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background-color: var(--hero-bg);
  background-image:
    radial-gradient(circle at 78% 46%, rgba(242, 78, 30, .14), transparent 38%),
    radial-gradient(rgba(233, 237, 243, .07) 1px, transparent 1.5px);
  background-size: auto, 22px 22px;
  color: var(--band-ink);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 0; align-items: center; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-art { position: relative; margin: 0 calc(-1 * min(180px, (100vw - 1120px) / 2 + 8px)) 0 8px; min-width: 0; }
.query {
  display: flex; align-items: center; gap: 12px;
  max-width: 720px; min-height: 58px; padding: 0 22px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 999px;
  box-shadow: var(--shadow); color: var(--muted);
  font-size: 1.1875rem;
}
.hero .query { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); border-color: transparent; }
.query svg { flex: none; }
.query-line { min-width: 0; }
.query-text { color: var(--ink); transition: opacity .25s ease; }
.query-text.is-swapping { opacity: 0; transition-duration: .18s; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -.2em; background: var(--link); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.answer {
  margin-top: 20px;
  padding: 34px 38px 28px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32), 0 2px 6px rgba(0, 0, 0, .12);
}
.hero .answer { border-color: transparent; }
.answer .sources { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); gap: 10px; }
.answer .sources li { font-size: .9375rem; }
.answer .src-domain { display: inline; margin-right: 6px; }

/* Authority graph */
.herograph { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.hg-orbit { fill: none; stroke: rgba(233, 237, 243, .1); stroke-dasharray: 2 6; }
.hg-edge { fill: none; stroke: #3A4A6E; stroke-width: 1.25; }
.hg-spoke { stroke: rgba(242, 78, 30, .55); stroke-width: 1.5; }
.hg-topic rect { fill: #1B2844; stroke: #44557D; stroke-width: 1; }
.hg-topic text { fill: #E9EDF3; font-size: 16px; font-weight: 600; }
.hg-surface rect { fill: #22345E; stroke: #36508C; }
.hg-surface text { fill: #C9D8FF; font-size: 14px; font-weight: 500; }
.hg-num-bg { fill: #8AB0FF; }
.hg-surface .hg-num { fill: #16213A; font-size: 12px; font-weight: 700; }
.hg-core { fill: #16213A; stroke: #F24E1E; stroke-width: 3; }
.hg-badge { fill: #16213A; stroke: #F24E1E; stroke-width: 2; }
.hg-pulse { fill: none; stroke: #F24E1E; stroke-width: 1.5; transform-origin: 360px 322px; animation: hg-pulse 3.2s ease-out infinite; }
@keyframes hg-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.hg-label-bg { fill: #F24E1E; }
.hg-label { fill: #16213A; font-size: 13px; font-weight: 700; }
.hg-dot { fill: #FF8A5C; }
.hg-dot-glow { fill: #F24E1E; opacity: .28; }
.hg-flow { opacity: 0; }


.answer-kicker { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9375rem; font-weight: 500; }
.answer-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.answer h1 {
  margin-top: 14px;
  font-size: clamp(3rem, 7.4vw, 5.75rem); font-weight: 800; letter-spacing: -.045em; line-height: .92;
}
.answer-role { margin-top: 14px; font-size: clamp(1.125rem, 2.2vw, 1.375rem); font-weight: 500; color: var(--ink-2); }
.answer-text {
  margin-top: 22px; max-width: 62ch;
  font: 400 clamp(1.0625rem, 1.5vw, 1.1875rem)/1.6 var(--serif); color: var(--ink);
}
.cite {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.35em; height: 1.35em; margin: 0 .2em 0 .25em; padding: 0 .3em;
  border-radius: 999px; background: var(--cite-bg); color: var(--link);
  font: 600 .7em/1 var(--sans); text-decoration: none; vertical-align: .35em;
}
.cite:hover { background: var(--link); color: var(--surface); }
.sources { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: src; display: grid; gap: 16px; }
.sources li { counter-increment: src; display: grid; grid-template-columns: 1.6em 1fr; font-size: .9875rem; }
.sources li::before { content: counter(src); color: var(--muted); font-weight: 600; }
.sources a { text-decoration: none; }
.sources a:hover .src-title, .sources a:hover { text-decoration: underline; }
.src-domain { display: block; color: var(--muted); font-size: .875rem; }
.sources li:target { background: var(--cite-bg); border-radius: 8px; margin: -4px -8px; padding: 4px 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: 64px 0; }
.section-flush { padding-top: 8px; }
.section-title { font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 750; letter-spacing: -.025em; }
.section-head { max-width: 860px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head a { font-weight: 500; }

/* Search-result lists */
.results { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; max-width: 860px; }
.result {
  display: grid; grid-template-columns: 1fr 200px; gap: 28px; align-items: start;
  padding: 24px 0; border-top: 1px solid var(--rule);
}
.result:last-child { border-bottom: 1px solid var(--rule); }
.results-plain .result { grid-template-columns: 1fr; }
.result-thumb { order: 2; }
.result-thumb img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--rule); }
.crumb { color: var(--muted); font-size: .875rem; }
.crumb span { color: var(--ink-2); }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { text-decoration: underline; color: var(--ink); }
.result-title { margin-top: 6px; font-size: 1.375rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.result-title a { text-decoration: none; }
.result-title a:hover { text-decoration: underline; }
.result-title a:visited { color: var(--visited); }
.snippet { margin-top: 8px; color: var(--ink-2); max-width: 68ch; }
.snippet time { color: var(--muted); }
.result-meta { margin-top: 8px; color: var(--muted); font-size: .9375rem; }

/* Dark band */
.section-tinted { background: var(--band); color: var(--band-ink); }
.section-tinted .section-title { color: var(--band-ink); }
.approach-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 28px; max-width: 980px; }
.approach h3 { font-size: 1.25rem; font-weight: 650; }
.approach p { margin-top: 10px; color: var(--band-muted); font-family: var(--serif); font-size: 1.125rem; line-height: 1.65; max-width: 52ch; }

/* Contact band */
.contact-band { border-top: 1px solid var(--rule); background: var(--surface); }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 56px; }
.contact-band h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 750; letter-spacing: -.025em; }
.contact-band p { margin-top: 8px; color: var(--ink-2); max-width: 56ch; }

/* Page headers */
.page-head { padding: 56px 0 32px; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.page-head .crumb { margin-bottom: 14px; }
.lede { margin-top: 16px; max-width: 60ch; color: var(--ink-2); font: 400 1.25rem/1.55 var(--serif); }
.lede p + p { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; }
.chips a { display: block; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.chips a:hover { border-color: var(--ink-2); color: var(--ink); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.empty { color: var(--ink-2); }

/* Posts */
.post-head { padding-top: 48px; max-width: 900px; }
.post-head h1 { margin-top: 14px; font-size: clamp(2.125rem, 5vw, 3.5rem); font-weight: 780; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.byline { margin-top: 18px; color: var(--muted); font-size: .9875rem; }
.byline-photo { display: inline-block; width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; margin: -3px 10px 0 0; }
.byline a { color: var(--ink-2); }
.post-figure { margin: 32px auto 0; max-width: 960px; }
.post-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--rule); }

.prose { max-width: calc(82ch + 2 * var(--gutter)); margin-top: 40px; font: 400 1.1875rem/1.72 var(--serif); color: var(--ink); }
.page-prose { margin-top: 0; margin-left: max(0px, calc((100% - var(--wrap)) / 2)); margin-bottom: 64px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 1.75rem; font-weight: 720; letter-spacing: -.02em; }
.prose h3 { margin-top: 1.8em; font-size: 1.3125rem; font-weight: 680; }
.prose h4 { margin-top: 1.6em; font-size: 1.125rem; font-weight: 650; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li > ul { margin-top: .45em; }
.prose li::marker { color: var(--signal); }
.prose hr { border: 0; height: 1px; background: var(--rule); margin: 2.4em 0; }
.prose strong { font-weight: 650; }
.prose a:visited { color: var(--visited); }
.prose blockquote { margin-left: 0; padding-left: 1em; border-left: 3px solid var(--signal); color: var(--ink-2); }

.faq { margin-top: 1.2em; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 0; font: 600 1.125rem/1.35 var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--link); font-weight: 500; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--ink-2); }

.author-card { display: flex; gap: 16px; align-items: flex-start; max-width: calc(82ch + 2 * var(--gutter)); margin-top: 56px; margin-bottom: 8px; }
.author-card > div { padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); flex: 1; }
.author-card img { margin-top: 20px; border-radius: 50%; }
.author-name { font-weight: 700; }
.author-card p + p { margin-top: 4px; color: var(--ink-2); }
.author-card .disclaimer { margin-top: 10px; color: var(--muted); font-size: .875rem; font-style: italic; }

/* About page portrait */
.portrait { float: right; width: 220px; margin: 6px 0 20px 32px; border-radius: 50%; border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--signal), var(--shadow); }
@media (max-width: 640px) { .portrait { float: none; width: 160px; margin: 0 0 24px; } }

/* Contact form */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin-bottom: 72px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9875rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px;
  background: var(--surface); color: var(--ink); font: 400 1.0625rem/1.4 var(--sans);
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--link); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { color: var(--muted); }
.form-status[data-state="ok"] { color: #1F7A4D; }
.form-status[data-state="error"] { color: #B3261E; }

.notfound .query { margin-bottom: 28px; }

/* Footer */
.footer { border-top: 1px solid var(--rule); background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 28px; color: var(--muted); font-size: .9375rem; }
.footer ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--ink-2); }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin: -24px auto -64px; width: min(100%, 560px); }
  .hero-copy { max-width: 720px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .masthead nav a { padding: 8px 10px; }
  .brand span { display: none; }
  .hero { padding: 28px 0 48px; }
  .query { min-height: 66px; align-items: flex-start; font-size: .9875rem; line-height: 1.35; padding: 10px 18px; border-radius: 28px; }
  .query svg { margin-top: 12px; }
  .query-line { display: block; min-height: 2.7em; padding-top: 2px; }
  .answer { padding: 24px 20px 22px; border-radius: 16px; margin-top: 16px; }
  .hero-art { margin: -30px auto -28px; width: 100%; max-width: 340px; }
  .herograph { transform: scale(1.42); }
  .hg-surface, .hg-outer, .hg-flows { display: none; }
  .hg-topic text { font-size: 15px; }
  .answer .src-domain { display: block; }
  .section { padding: 48px 0; }
  .result { grid-template-columns: 1fr 96px; gap: 16px; padding: 20px 0; }
  .result-thumb img { width: 96px; aspect-ratio: 1; border-radius: 8px; }
  .result-title { font-size: 1.1875rem; }
  .approach-cols { grid-template-columns: 1fr; gap: 28px; }
  .contact-band-inner { flex-direction: column; align-items: flex-start; padding-block: 40px; }
  .contact-form { grid-template-columns: 1fr; }
  .prose { font-size: 1.125rem; margin-top: 28px; }
  .post-figure { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { display: none; }
  .hg-pulse { animation: none; opacity: 0; }
}

/* ===================================================================================
   Discovery Readiness Auditor (/tools/discovery-auditor/)
   =================================================================================== */
:root { --good: #1F7A4D; --good-bg: #E3F4EA; --warn: #9A5B00; --warn-bg: #FCF0DC; --bad: #B3261E; --bad-bg: #FBE6E4; --neutral-bg: #EDF0F4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --good: #6FD39E; --good-bg: #173B2B; --warn: #F2B65C; --warn-bg: #3B2C14; --bad: #FF8E86; --bad-bg: #431D1C; --neutral-bg: #22304A; }
}
:root[data-theme="dark"] { --good: #6FD39E; --good-bg: #173B2B; --warn: #F2B65C; --warn-bg: #3B2C14; --bad: #FF8E86; --bad-bg: #431D1C; --neutral-bg: #22304A; }

.da-head { padding-bottom: 24px; }
.da-mount { min-height: 170px; }
.da { max-width: 1040px; }
.da-form { padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow); }
.da-label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 10px; }
.da-inputrow { display: flex; gap: 10px; }
.da-input { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font: 400 1.125rem/1 var(--sans); }
.da-input:focus { outline: 3px solid var(--link); outline-offset: 1px; border-color: transparent; }
.da-run { min-height: 52px; padding: 0 26px; }
.da-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.da-chip { padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink-2); font: 500 .9375rem/1.2 var(--sans); cursor: pointer; }
.da-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.da-chip:disabled { opacity: .55; cursor: progress; }

.da-results { outline: none; }
.da-results.is-active { min-height: 100vh; margin-top: 28px; }
.da-loading { display: flex; align-items: center; gap: 12px; padding: 20px 0; color: var(--ink-2); }
.da-spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--rule); border-top-color: var(--signal); animation: da-spin .8s linear infinite; flex: none; }
@keyframes da-spin { to { transform: rotate(360deg); } }
.da-error { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-weight: 500; }

.da-report { display: grid; gap: 28px; }
.da-card { padding: 28px; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow); }
.da-score { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; }
.da-score-main { display: flex; gap: 24px; align-items: center; }
.da-ring { position: relative; flex: none; width: 128px; height: 128px; }
.da-ring svg { display: block; }
.da-ring-track { fill: none; stroke: var(--neutral-bg); stroke-width: 12; }
.da-ring-value { fill: none; stroke: currentColor; stroke-width: 12; stroke-linecap: round; }
.da-ring.tone-good { color: var(--good); } .da-ring.tone-warn { color: var(--warn); } .da-ring.tone-bad { color: var(--bad); }
.da-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); }
.da-ring-label strong { font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.da-ring-label span { color: var(--muted); font-size: .875rem; }
.da-eyebrow { color: var(--muted); font-size: .9375rem; }
.da-domain { margin-top: 2px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 780; letter-spacing: -.03em; word-break: break-word; }
.da-posture { margin-top: 10px; font-weight: 500; }
.da-posture.tone-good strong { color: var(--good); } .da-posture.tone-warn strong { color: var(--warn); } .da-posture.tone-bad strong { color: var(--bad); }
.da-posture-desc { margin-top: 4px; color: var(--ink-2); font-size: .9375rem; max-width: 46ch; }
.da-pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
.da-pillar-head { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; font-weight: 500; }
.da-pillar-score { font-weight: 700; white-space: nowrap; }
.da-pillar-score small { color: var(--muted); font-weight: 400; }
.da-bar { height: 8px; margin-top: 6px; border-radius: 999px; background: var(--neutral-bg); overflow: hidden; }
.da-bar span { display: block; height: 100%; border-radius: 999px; }
.da-bar .tone-good { background: var(--good); } .da-bar .tone-warn { background: var(--warn); } .da-bar .tone-bad { background: var(--bad); }
.da-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 20px; border-top: 1px solid var(--rule); }
.da-meta { color: var(--muted); font-size: .875rem; }
.da-copy { padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 .9375rem/1.2 var(--sans); cursor: pointer; }
.da-actions .da-copy { background: var(--ink); border-color: var(--ink); color: var(--paper); padding: 11px 20px; }
.da-copy:hover { border-color: var(--ink-2); }

.da-pills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.da-pill { display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--rule); }
.da-pill.tone-good { border-top-color: var(--good); } .da-pill.tone-warn { border-top-color: var(--warn); } .da-pill.tone-bad { border-top-color: var(--bad); } .da-pill.tone-neutral { border-top-color: var(--muted); }
.da-pill-label { color: var(--muted); font-size: .875rem; font-weight: 500; }
.da-pill-status { font-size: 1.25rem; font-weight: 750; letter-spacing: -.01em; }
.da-pill.tone-good .da-pill-status { color: var(--good); } .da-pill.tone-warn .da-pill-status { color: var(--warn); } .da-pill.tone-bad .da-pill-status { color: var(--bad); }
.da-pill-detail { color: var(--ink-2); font-size: .875rem; }

.da-h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 750; letter-spacing: -.02em; }
.da-sub { margin-top: 6px; color: var(--ink-2); max-width: 75ch; }
.da-paths code { margin: 0 6px 4px 0; display: inline-block; }
.da-group { margin-top: 20px; }
.da-group-title { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 700; }
.da-dot { width: 10px; height: 10px; border-radius: 50%; }
.sev-critical .da-dot { background: var(--bad); } .sev-warning .da-dot { background: var(--warn); } .sev-pass .da-dot { background: var(--good); }
.da-count { padding: 1px 9px; border-radius: 999px; background: var(--neutral-bg); color: var(--ink-2); font-size: .8125rem; }
.da-finding { margin-top: 10px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--rule); border-radius: 12px; }
.sev-critical .da-finding { border-left-color: var(--bad); } .sev-warning .da-finding { border-left-color: var(--warn); } .sev-pass .da-finding { border-left-color: var(--good); }
.da-finding summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 600; }
.da-finding summary::-webkit-details-marker { display: none; }
.da-finding summary::after { content: "+"; color: var(--link); font-size: 1.375rem; line-height: 1; }
.da-finding[open] summary::after { content: "−"; }
.da-finding-body { padding: 0 18px 18px; }
.da-finding-body h4 { margin-top: 14px; font-size: .8125rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.da-finding-body p { margin-top: 4px; color: var(--ink-2); max-width: 80ch; }
.da-evidence { margin: 6px 0 0; padding-left: 1.2em; font: 400 .875rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-2); word-break: break-word; }
.da-fix-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.da-fix-head h4 { margin-top: 0; }
.da-fix-head .da-copy { padding: 5px 12px; font-size: .8125rem; }
.da-code { margin: 8px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--band); color: var(--band-ink); font: 400 .875rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }

.da-tablewrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.da-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.da-table th, .da-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.da-table thead th { color: var(--muted); font-size: .8125rem; font-weight: 600; background: var(--paper); }
.da-table tr.da-cat th { padding-top: 14px; background: var(--paper); font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.da-bot { display: block; font-weight: 600; }
.da-op { display: block; color: var(--muted); font-size: .8125rem; font-weight: 400; }
.da-access { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.da-access.is-allowed { background: var(--good-bg); color: var(--good); }
.da-access.is-blocked { background: var(--bad-bg); color: var(--bad); }
.da-ok { color: var(--good); font-weight: 600; white-space: nowrap; } .da-bad { color: var(--bad); font-weight: 600; white-space: nowrap; } .da-muted { color: var(--muted); }
.da-rule { font-size: .8125rem; color: var(--ink-2); word-break: break-word; }

.da-explainer { padding-top: 24px; }
.da-explainer .prose { margin-top: 0; }

@media (max-width: 900px) {
  .da-score { grid-template-columns: 1fr; }
  .da-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .da-form, .da-card { padding: 18px; border-radius: 16px; }
  .da-inputrow { flex-direction: column; }
  .da-score-main { flex-direction: column; align-items: flex-start; }
  .da-pills { grid-template-columns: 1fr; }
  .da-table th, .da-table td { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .da-spinner { animation-duration: 2.4s; } }
/* Keep wide content (code, bot table) scrolling inside its box instead of widening the page */
.da, .da-results, .da-report, .da-report > *, .da-findings, .da-group, .da-finding, .da-finding-body, .da-matrix { min-width: 0; max-width: 100%; }
.da-code, .da-tablewrap { max-width: 100%; }
.da-notice { padding: 14px 18px; border-radius: 14px; background: var(--warn-bg); color: var(--ink); border: 1px solid var(--warn); }
.da-notice strong { color: var(--warn); }
.masthead nav a { white-space: nowrap; }
@media (max-width: 420px) { .masthead nav ul { gap: 0; } .masthead nav a { padding: 8px 8px; font-size: .9375rem; } }
.da-quota { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.da-quota.is-out { color: var(--bad); font-weight: 600; }
