/* AnyCreo guides. Plain CSS, no build step, no external requests.
   Shape rule (from the AnyCreo brand): controls are full pills; large panels 24px; cards 16px; inner items 10px.
   Orange is kept for calls to action and highlights. */

/* Fonts: self-hosted, SIL Open Font License (see /fonts/OFL-*.txt). */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-opsz.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --fg: #141519;
  --fg-2: #2d3038;
  --muted: #5a5f69;
  --line: #e3e1db;
  --line-strong: #8b9099;
  --accent: #c2410c;
  --accent-hover: #a8380a;
  --accent-fg: #ffffff;
  --accent-soft: #fcebe2;
  --mark: #fbdcc9;
  --ok: #18794e;
  --ok-soft: #e3f3ea;
  --shadow-sm: 0 1px 2px rgb(20 21 25 / .06);
  --shadow: 0 1px 2px rgb(20 21 25 / .05), 0 12px 32px -12px rgb(20 21 25 / .16);
  --wrap: 1160px;
  --measure: 768px;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11;
    --surface: #16181b;
    --surface-2: #1d2024;
    --fg: #f0f0ee;
    --fg-2: #d6d7d9;
    --muted: #a3a8b0;
    --line: #2a2d33;
    --line-strong: #6b717b;
    --accent: #f08a4b;
    --accent-hover: #f59d66;
    --accent-fg: #1b0c03;
    --accent-soft: #2a1a10;
    --mark: #4a2a16;
    --ok: #4cc38a;
    --ok-soft: #13271d;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -16px rgb(0 0 0 / .7);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 75%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 600; }
code, kbd { font-family: var(--mono); font-size: .9em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--surface); color: var(--fg); font-weight: 600; box-shadow: var(--shadow); }
.skip:focus { left: 16px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Header + footer */
.site-head { border-bottom: 1px solid var(--line); }
.site-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; color: var(--fg); }
.brand img { width: 30px; height: 30px; }
.brand__tag { font-family: var(--body); font-weight: 500; font-size: .9rem; letter-spacing: 0; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.head-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--fg-2); }
.head-link:hover { color: var(--fg); }

.site-foot { margin-top: 96px; border-top: 1px solid var(--line); background: var(--surface); }
.site-foot__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; padding-block: 40px; }
.site-foot p { color: var(--muted); font-size: .94rem; margin-top: 8px; max-width: 46ch; }
.site-foot nav ul { list-style: none; display: grid; gap: 8px; }
.site-foot nav a { font-size: .95rem; color: var(--fg-2); }
.site-foot__base { padding-block: 0 26px; color: var(--muted); font-size: .88rem; }
.site-foot__base p { margin: 0; max-width: none; padding-top: 18px; border-top: 1px solid var(--line); }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); font-size: .86rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--accent); }
.display--article { font-size: clamp(2.3rem, 6vw, 4.1rem); }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.022em; font-variation-settings: "opsz" 72; text-wrap: balance; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow-sm), inset 0 1px 0 rgb(255 255 255 / .18); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--shadow); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg-2); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .93rem; }

/* Home: hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 620px; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 55% at 50% 60%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%);
}
.hero__copy { display: grid; justify-items: start; gap: 22px; }
.hero__copy .display { max-width: 15ch; }

/* Home: how this works */
.how { padding: 40px 0 24px; }
.how__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; counter-reset: step; }
.how__step { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.how__step p { color: var(--muted); font-size: .97rem; }
.how__art { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; }
.how__num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .95rem; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--surface-2); color: var(--fg-2); font-size: .9rem; font-weight: 500; }
.chip--word { font-family: var(--mono); font-weight: 700; letter-spacing: .04em; color: var(--fg); }
.chip .icon { color: var(--accent); }

/* Home: guides list */
.guides { padding: 56px 0 0; }
.guides__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.search { display: grid; gap: 6px; width: min(100%, 360px); }
.search label { font-weight: 600; font-size: .92rem; }
.search__box { position: relative; }
.search__box .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 48px; padding: 0 16px 0 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 1rem;
}
.search input:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; border-color: var(--accent); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.guides__count { margin-top: 20px; color: var(--muted); font-size: .92rem; }
.guide-list { list-style: none; display: grid; gap: 12px; margin-top: 12px; }
.guide {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px;
  padding: 24px 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.guide:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); box-shadow: var(--shadow); }
.guide:focus-within { border-color: var(--accent); }
.guide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: .88rem; }
.guide__meta .chip { padding: 3px 10px; font-size: .82rem; }
.guide__title { margin-top: 10px; }
.guide__title a { text-decoration: none; }
.guide__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide__title a:focus-visible { outline: none; }
.guide:has(.guide__title a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.guide__desc { margin-top: 6px; color: var(--muted); max-width: 64ch; }
.guide__go { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); }
.guide:hover .guide__go { background: var(--accent-hover); }
.guides__empty { margin-top: 12px; padding: 24px; border-radius: 16px; border: 1px dashed var(--line-strong); color: var(--muted); }
.guides__empty button { margin-top: 12px; }
.guides__soon { margin-top: 20px; color: var(--muted); font-size: .95rem; }

/* Article */
.article-head { padding: 56px 0 8px; }
.article-head__inner { display: grid; justify-items: start; gap: 20px; max-width: var(--measure); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .92rem; }
.byline span:not(:last-child)::after { content: "·"; margin-left: 16px; }
.prose { max-width: var(--measure); margin-inline: auto; }
.wrap .prose { max-width: calc(var(--measure) - 48px); }
.section-tail { margin-top: 28px; }
.prose > * + * { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose .h2 + * { margin-top: 18px; }
.section { padding-top: 72px; }
.toc { margin: 32px auto 0; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); max-width: calc(var(--measure) - 48px); }
.toc h2 { font-size: .86rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.toc ol { margin-top: 10px; padding-left: 1.3em; columns: 2 260px; column-gap: 32px; }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.source-note { color: var(--muted); font-size: .92rem; }
.callout { padding: 18px 20px; border-radius: 16px; background: var(--surface-2); }
.callout strong { color: var(--fg); }

/* The tool */
.tool { margin-top: 28px; padding: 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.tool__grid { display: grid; gap: 36px; }
.tool__intro { color: var(--muted); max-width: 60ch; }
.fields { display: grid; gap: 22px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label { display: flex; align-items: baseline; gap: 10px; font-weight: 600; line-height: 1.35; }
.field__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 700; flex: none; transform: translateY(-1px); }
.field__hint { color: var(--muted); font-size: .9rem; line-height: 1.45; padding-left: 34px; }
.field input, .field textarea {
  width: 100%; margin-top: 2px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg);
  font-size: 1rem; line-height: 1.5;
  transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; border-color: var(--accent); background: var(--surface); }

.months { margin: 26px 0 0; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.months legend { padding: 0 6px; margin-left: -6px; font-weight: 600; }
.months__opts { display: inline-flex; gap: 4px; margin-top: 10px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); }
.months__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.months__opts label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--muted); transition: background-color .2s, color .2s; }
.months__opts input:checked + label { background: var(--fg); color: var(--bg); }
.months__opts input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.months p { margin-top: 10px; color: var(--muted); font-size: .92rem; }

.out { display: grid; gap: 14px; align-content: start; }
.out__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.out__count { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.prompt {
  margin: 0; padding: 18px; max-height: 420px; overflow-x: hidden; overflow-y: auto;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg-2);
  font: 400 .84rem/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.prompt mark { background: var(--mark); color: var(--fg); border-radius: 4px; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prompt .blank { color: var(--accent); font-weight: 700; }
.actions { display: grid; gap: 10px; }
.actions .btn--primary { width: 100%; }
.actions__open { display: flex; flex-wrap: wrap; gap: 8px; }
.actions__open .btn { flex: 1 1 auto; padding: 0 16px; white-space: nowrap; }
.status { min-height: 1.6em; font-weight: 600; font-size: .95rem; color: var(--ok); }
.status.is-warn { color: var(--fg-2); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--ok-soft); color: var(--fg-2); font-size: .92rem; line-height: 1.5; }
.note .icon { color: var(--ok); margin-top: 2px; }
.out__tips { color: var(--muted); font-size: .9rem; }
.tool__credit { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* Lists with numbers */
.steps { list-style: none; padding: 0 !important; display: grid; gap: 14px; counter-reset: s; }
.steps > li { position: relative; padding: 18px 20px 18px 62px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); counter-increment: s; }
.steps > li + li { margin-top: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 18px; top: 17px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem; }
.steps h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.steps p { margin-top: 4px; color: var(--muted); }
.steps p strong { color: var(--fg-2); }

.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.copy-line code { padding: 6px 12px; border-radius: 10px; background: var(--surface-2); color: var(--fg); font-size: .9rem; }

/* Round 2 */
.round2 { margin-top: 24px; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.round2__wrapper { font-style: italic; color: var(--fg-2); }
.round2 ol { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 18px; counter-reset: q; }
.round2 li { counter-increment: q; display: grid; grid-template-columns: 30px 1fr; gap: 4px 12px; }
.round2 li::before { content: counter(q); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: .9rem; }
.round2 li strong { display: block; }
.round2__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
.round2__credit { margin-top: 18px; color: var(--muted); font-size: .88rem; }

/* Test results */
.idea-card { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.idea-card h3 { font-size: .86rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.idea-card p { margin-top: 6px; }
.table-wrap { margin: 28px auto 0; max-width: 980px; }
.results { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); font-size: .95rem; line-height: 1.5; }
.results caption { caption-side: bottom; text-align: left; padding-top: 12px; color: var(--muted); font-size: .9rem; }
.results th, .results td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.results thead th { border-top: 0; background: var(--surface-2); color: var(--fg-2); font-size: .9rem; font-weight: 600; }
.results tbody th { width: 20%; font-weight: 600; }
.results td { width: 40%; color: var(--fg-2); }
.results td.with { background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface)); color: var(--fg); }
.results thead th.with { background: var(--accent-soft); color: var(--fg); }
.ai { display: inline-flex; align-items: center; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
td.with .ai { background: var(--surface); }
.score { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.sources { list-style: none; padding: 0 !important; display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.sources a { color: var(--fg-2); }

/* Credits + licences */
.licences { margin-top: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.licences > summary {
  list-style: none; cursor: pointer; position: relative;
  min-height: 56px; padding: 16px 56px 16px 22px; font-weight: 600;
}
.licences > summary::-webkit-details-marker { display: none; }
.licences > summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.licences[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.licences__body { padding: 0 22px 22px; display: grid; gap: 24px; }
.licences__body h3 { font-size: 1rem; font-weight: 600; }
.licences__body h3 a { font-weight: 500; color: var(--muted); font-size: .9rem; }
.licences pre { margin: 8px 0 0; padding: 16px; border-radius: 10px; background: var(--surface-2); font: 400 .8rem/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg-2); }

/* Follow row (home and every guide) */
.follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.follow p { margin-top: 4px; color: var(--muted); font-size: .95rem; max-width: 62ch; }
.follow .follow__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.follow .follow__links li + li { margin-top: 0; }
.follow__links .icon { color: var(--accent); }
.follow__links .icon--fill { width: 1em; height: 1em; }

/* Guide: security */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.facts > div { padding: 14px 16px; background: var(--surface); }
.facts dt { color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.facts dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
.facts dd small { display: block; margin-top: 2px; font-family: var(--body); font-weight: 400; font-size: .82rem; line-height: 1.4; letter-spacing: 0; color: var(--muted); }

.codecard { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.codecard > div { display: grid; gap: 8px; padding: 16px 18px; background: var(--surface); }
.codecard__label { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.codecard__label .icon { width: 1.25em; height: 1.25em; }
.codecard .is-bad .codecard__label .icon { color: var(--accent); }
.codecard .is-good .codecard__label .icon { color: var(--ok); }
.codecard code { display: block; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--fg); font-size: .86rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.codecard p { color: var(--fg-2); }
.codecard__note { color: var(--muted); font-size: .9rem; }

.flow { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.flow > li { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); counter-increment: f; }
.flow > li + li { margin-top: 0; }
.flow h4 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.flow h4::before { content: counter(f); display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .88rem; font-weight: 700; }
.flow p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.flow q { color: var(--fg-2); }

.needs { padding: 0 0 0 1.3em; }
.prose > p + .needs { margin-top: 8px; }
.needs li + li { margin-top: 8px; }

.cmd { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 14px 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.cmd code { flex: 1 1 280px; min-width: 0; color: var(--fg); font-size: .9rem; line-height: 1.55; overflow-wrap: break-word; }
.cmd .status { flex-basis: 100%; min-height: 0; }
.cmd .status:empty { display: none; }
.nobr { white-space: nowrap; }

.prose > .h3:not(:first-child) { margin-top: 32px; }
.tool--prompt { padding: 26px; }
.tool--prompt .out__head { margin-bottom: 2px; }
.tool--prompt .status:empty { display: none; }

.catches { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.catches > li { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.catches > li + li { margin-top: 0; }
.catches h4 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.catches h4 .icon { color: var(--accent); }
.catches p { margin-top: 6px; color: var(--muted); }
.catches p strong { color: var(--fg-2); }

.checklist { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.checklist > li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background-color .2s; }
.checklist > li + li { margin-top: 0; }
.checklist input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
.checklist label { display: block; font-weight: 600; line-height: 1.4; cursor: pointer; }
.checklist p { margin-top: 4px; color: var(--muted); }
.checklist .copy-line code { overflow-wrap: anywhere; }
.checklist > li:has(input:checked) { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok-soft) 55%, var(--surface)); }

/* 404 */
.notfound { padding-block: 96px 24px; display: grid; justify-items: start; gap: 20px; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Responsive */
@media (min-width: 980px) {
  .tool__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; }
  .out { position: sticky; top: 24px; align-self: start; }
  .prompt { max-height: max(240px, calc(100vh - 500px)); }
}
@media (max-width: 860px) {
  .how__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; }
  .follow { padding: 20px; }
  .follow .follow__links { width: 100%; gap: 6px; }
  .follow__links li { flex: 1 1 auto; }
  .follow__links .btn { width: 100%; padding: 0 12px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .hero { padding-top: 44px; }
  .article-head { padding-top: 36px; }
  .section { padding-top: 56px; }
  .tool { padding: 20px 16px; border-radius: 20px; margin-inline: -4px; }
  .round2 { padding: 22px 18px; }
  .guide { grid-template-columns: 1fr; padding: 20px; }
  .guide__go { display: none; }
  .brand__tag { display: none; }
  .field__hint { padding-left: 0; }
  .prompt { max-height: 380px; font-size: .8rem; padding: 14px; }
  .tool--prompt { padding: 20px 16px; }
  .checklist > li { padding: 16px; gap: 12px; }
  .steps > li { padding: 16px 16px 16px 56px; }
  .steps > li::before { left: 14px; top: 15px; }
  /* Results table becomes stacked cards. Roles in the HTML keep it a table for screen readers. */
  .results, .results thead, .results tbody, .results tr, .results th, .results td { display: block; width: auto; }
  .results { border: 0; border-radius: 0; background: none; overflow: visible; }
  .results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .results tbody tr { margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
  .results tbody th { border-top: 0; padding: 14px 16px 6px; font-family: var(--display); font-size: 1.05rem; }
  .results td { border-top: 0; padding: 8px 16px 12px; }
  .results td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
  .results td.with { border-top: 1px solid var(--line); padding-top: 12px; }
  .results caption { display: block; padding-top: 0; margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* A prompt that is read in full, not scrolled (kept after the responsive rules on purpose). */
.prompt.prompt--full { max-height: none; overflow: visible; }

@media print {
  .site-head, .site-foot, .actions, .round2__actions, .copy-line button, .cmd button, .toc, .follow { display: none !important; }
  .tool, .round2 { box-shadow: none; }
  .prompt { max-height: none; overflow: visible; }
}
