/* Sign Finder (Tool 18, prefix sf-) — the verdict hero, the check tiles, the cusp timeline and the year table.
   Loaded through the `styles:` list in zodiac-hub.njk, so it sits in <head>, BEFORE the tool kit's inline <style> blocks.
   Rules are scoped `.sf .x`; where one restyles a kit class it carries one more class than the kit's `.tk .x`, so it outranks it.
   Depends on tokens.css, partials/tool-kit-css.njk and partials/result-kit-css.njk.

   Language: Atelier Cinnabar on the night surface (#0B1020). The Sun sign is one massive 800-weight word; the proof is geometry
   (a track, a tick, a pin), and every number is tabular. No clipart, no emoji, no gradient beyond one soft halo. */
.tk.sf {
  --tk-accent: var(--brand-cinnabar, #D9381E);
  --night: var(--bg-ink, #0B1020);
  --night-raised: var(--bg-ink-raised, #141B30);
  --night-text: #F8FAFC;
  --night-muted: #94A3B8;
  --night-soft: #CBD5E1;
  --night-line: rgba(248, 250, 252, 0.14);
  --glow: #E8472B;
  --glow-soft: #FF8A6C;
}
.tk.sf > * + * { margin-top: 16px; }
.tk.sf > .tk-head { margin-bottom: 20px; }
.tk.sf > .tk-head + * { margin-top: 0; }
.tk.sf > .sr-only { margin: 0; }

/* ================= Form ================= */
.sf .sf-form { display: grid; gap: 16px; }
.sf .sf-fields { display: grid; gap: 16px; }
@media (min-width: 720px) { .sf .sf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; } .sf .sf-zone { grid-column: 1 / -1; } }
.sf .sf-check { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 32px; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.sf .sf-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-accent); }
.sf .sf-zone-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sf .sf-zone-row .input { flex: 1 1 240px; min-width: 0; }
.sf input:disabled { opacity: 0.5; cursor: not-allowed; }
.tk.sf .btn { background: var(--c-ink); border-bottom: 3px solid var(--c-accent); }
.tk.sf .btn:hover { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--c-ink) 70%, transparent); }
.tk.sf .btn-sm.primary { background: var(--c-ink); border-color: var(--c-ink); }
.tk.sf .btn-sm.primary:hover:not(:disabled) { background: var(--c-ink); }
.sf .sf-go { justify-self: start; }
.sf .sf-hint { margin: 0; }

.sf .sf-sample { margin: 0; align-self: center; justify-self: center; width: min(100%, 320px); }
.sf .sf-sample-tl { display: block; width: 100%; height: auto; }

/* ================= Level 1: the verdict ================= */
.sf .sf-funnel > * + * { margin-top: 16px; }
.sf .sf-hero { container: sf / inline-size; position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--night); color: var(--night-text); padding: 22px 18px 18px; scroll-margin-top: 80px; }
@media (min-width: 720px) { .sf .sf-hero { padding: 36px 40px 28px; } }
.sf .sf-hero::before { content: ""; position: absolute; right: -18%; top: -34%; width: 96%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(232, 71, 43, 0.2), rgba(232, 71, 43, 0)); pointer-events: none; }
.sf .sf-hero > * { position: relative; }
.sf .sf-hero :focus-visible { outline: 3px solid color-mix(in srgb, var(--glow) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
.sf .sf-mark { position: absolute; right: -4%; top: 8%; width: min(54cqw, 360px); aspect-ratio: 1; pointer-events: none; }
.sf .sf-mark-svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--glow); stroke-width: 0.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.32; }
.sf .sf-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.sf .sf-eyebrow { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow-soft); }
.sf .sf-stamp { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 14px 4px 10px; border-radius: 999px; border: 1px solid rgba(232, 71, 43, 0.7); background: rgba(232, 71, 43, 0.14); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #FBC7BA; }
.sf .sf-stamp[data-kind="cusp"] { background: var(--glow); border-color: var(--glow); color: #fff; }
.sf .sf-stamp .ic { width: 16px; height: 16px; }
.sf .sf-sign { margin-top: 28px; font-size: clamp(2.75rem, 14.5cqw, 8.25rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; overflow-wrap: anywhere; }
.sf .sf-sign.is-pair { font-size: clamp(2.25rem, 10cqw, 5.75rem); line-height: 0.98; }
.sf .sf-pair { display: grid; justify-items: start; }
.sf .sf-or { font-size: 0.34em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glow-soft); margin: 0.5em 0; }
.sf .sf-hook { margin-top: 20px; max-width: 30ch; font-size: clamp(1.1875rem, 1rem + 1vw, 1.625rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.sf .sf-line { margin-top: 12px; max-width: 52ch; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); font-weight: 600; line-height: 1.45; color: #E2E8F0; }
.sf .sf-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: 22px; border: 1px solid var(--night-line); border-radius: 14px; background: var(--night-line); overflow: hidden; }
.sf .sf-cell { padding: 12px 14px; background: var(--night); min-width: 0; }
.sf .sf-cell dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-muted); }
.sf .sf-cell dd { margin-top: 2px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sf .sf-when { margin-top: 12px; font-size: 0.8125rem; color: var(--night-muted); }
.sf .sf-notes { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--night-line); border-radius: 12px; background: rgba(248, 250, 252, 0.05); color: var(--night-soft); font-size: 0.875rem; }
.sf .sf-hero .rk-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--night-line); justify-content: flex-start; }
.tk.sf .sf-hero .btn-sm { background: rgba(248, 250, 252, 0.06); border-color: var(--night-line); color: var(--night-text); }
.tk.sf .sf-hero .btn-sm:hover:not(:disabled) { background: rgba(248, 250, 252, 0.14); border-color: rgba(248, 250, 252, 0.3); }
.tk.sf .sf-hero .btn-sm.primary { background: var(--glow); border-color: var(--glow); color: #fff; }
.tk.sf .sf-hero .btn-sm.primary:hover:not(:disabled) { background: var(--glow); filter: brightness(1.08); }
.sf .sf-hero .fine-print { color: var(--night-muted); }

/* ================= Level 2: the check ================= */
.sf .sf-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sf .sf-tile { padding: 18px 18px 16px; border: 1px solid var(--c-line); border-radius: var(--r-card); background: var(--c-card); }
.sf .sf-tile h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.sf .sf-tile-v { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.sf .sf-tile-g { width: 26px; height: 26px; fill: none; stroke: var(--c-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sf .sf-tile-s { margin-top: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--c-muted); }
.sf .sf-tile[data-state="differ"] { border-color: color-mix(in srgb, var(--c-accent) 55%, var(--c-line)); box-shadow: inset 4px 0 0 var(--c-accent); }
.sf .sf-tile[data-state="differ"] .sf-tile-s { color: var(--c-accent-ink); }
.sf .sf-tile[data-state="open"] { border-style: dashed; }

/* ================= Level 4: the proof, the cusp timeline ================= */
.sf .sf-proof { container: sfp / inline-size; }
.sf .sf-tl { position: relative; margin-top: 18px; padding-top: 58px; }
.sf .sf-tl-born { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; white-space: nowrap; }
.sf .sf-tl-born b { padding: 6px 12px; border-radius: 999px; background: var(--c-ink); color: #fff; font-size: 0.9375rem; font-weight: 800; letter-spacing: 0; }
.sf .sf-tl-born.is-start { transform: translateX(-12px); justify-items: start; }
.sf .sf-tl-born.is-end { transform: translateX(calc(-100% + 12px)); justify-items: end; }
.sf .sf-tl-track { position: relative; display: flex; align-items: center; gap: 6px; height: 40px; }
.sf .sf-seg { flex: 1 1 0; height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--c-accent) 28%, transparent); }
.sf .sf-seg.is-on { height: 38px; border-radius: 19px; background: var(--c-accent); }
.sf .sf-tl-edge { position: absolute; left: 50%; top: -10px; bottom: -10px; border-left: 2px dashed var(--c-muted); transform: translateX(-1px); pointer-events: none; }
.sf .sf-tl-pin { position: absolute; top: -26px; bottom: -8px; width: 3px; margin-left: -1.5px; background: var(--c-ink); border-radius: 2px; }
.sf .sf-tl-band { position: absolute; top: -6px; bottom: -6px; border: 2px solid var(--c-ink); border-radius: 12px; background: color-mix(in srgb, var(--c-ink) 8%, transparent); }
.sf .sf-tl-ticks { position: relative; height: 10px; margin-top: 10px; }
.sf .sf-tl-ticks i { position: absolute; top: 0; width: 1px; height: 6px; background: var(--c-line); }
.sf .sf-tl-ticks i.is-mid { height: 10px; background: var(--c-muted); }
.sf .sf-tl-labels { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 6px; }
.sf .sf-tl-labels span { display: grid; gap: 2px; font-size: 0.8125rem; color: var(--c-muted); }
.sf .sf-tl-labels b { font-size: 0.9375rem; font-weight: 800; letter-spacing: -0.01em; color: var(--c-ink); }
.sf .sf-tl-end.is-right { text-align: right; justify-items: end; }
.sf .sf-tl-mid { text-align: center; justify-items: center; }
.sf .sf-tl-mid b { font-size: 1.125rem; color: var(--c-accent-ink); }
.sf .sf-proof-rows { margin-top: 22px; border-top: 1px solid var(--c-line); }
.sf .sf-proof-rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.sf .sf-proof-rows dt { font-weight: 600; color: var(--c-muted); }
.sf .sf-proof-rows dd { font-weight: 800; letter-spacing: -0.01em; text-align: right; }
.sf .sf-proof-rows .is-strong dt { color: var(--c-ink); }
.sf .sf-proof-rows .is-strong dd { color: var(--c-accent-ink); }

/* ================= Level 5: the year ================= */
.sf .sf-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.9375rem; }
.sf .sf-table th, .sf .sf-table td { padding: 11px 12px 11px 0; border-top: 1px solid var(--c-line); text-align: left; }
.sf .sf-table thead th { border-top: 0; padding-top: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-muted); }
.sf .sf-table tbody th { font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.sf .sf-table tbody th span { margin-left: 8px; }
.sf .sf-row-g { display: inline-block; vertical-align: -5px; width: 20px; height: 20px; fill: none; stroke: var(--c-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sf .sf-table td { color: var(--c-muted); white-space: nowrap; }
.sf .sf-table tr.is-on th, .sf .sf-table tr.is-on td { color: var(--c-accent-ink); font-weight: 800; background: color-mix(in srgb, var(--c-accent) 7%, transparent); }
.sf .sf-table tr.is-on .sf-row-g { stroke: var(--c-accent); }
@media (max-width: 479px) { .sf .sf-table th:last-child, .sf .sf-table td:last-child { display: none; } }

/* ================= Static: method, next ================= */
.sf .sf-rules { display: grid; gap: 14px 28px; }
@media (min-width: 720px) { .sf .sf-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf .sf-rules dt { font-weight: 800; letter-spacing: -0.01em; }
.sf .sf-rules dd { margin-top: 2px; color: var(--c-muted); font-size: 0.9375rem; }
.sf .sf-next { display: grid; gap: 4px; }
.sf .sf-next-link { display: flex; align-items: center; gap: 14px; padding: 6px 0; color: inherit; text-decoration: none; }
.sf .sf-next-link .ic { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--c-accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sf .sf-next-link span { display: grid; gap: 2px; color: var(--c-muted); font-size: 0.9375rem; }
.sf .sf-next-link b { color: var(--c-ink); font-size: 1.0625rem; letter-spacing: -0.01em; }
.sf .sf-next-link:hover b { color: var(--c-accent-ink); }
