/* ============================================================================
   Ataski "new format" — shared component styles (2026-06-12 redesign).
   Reference: home-final-2.html. Ported here so every new-format page (landing,
   role detail, app shell, dashboards) shares one design language served from
   our own origin (no Node toolchain — ADR-0014; CSP style-src 'self').

   Colour tokens come from CSS variables defined on :root in base.html, so the
   classes below stay theme-driven. Per-section accents are passed via the
   inline `--c` custom property (department colour), as in the reference.
   ============================================================================ */

/* ---- primitives ---------------------------------------------------------- */
.nf .tnum { font-variant-numeric: tabular-nums; }
.nf .caps { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; color: var(--ink3); }
.nf .dot  { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.nf :focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); border-radius: 6px; }

/* ---- top bar — frosted white with a faint brand wash + gradient hairline -- */
.nf-topbar { position: relative; background: linear-gradient(90deg, rgba(26,111,173,.065), rgba(104,69,194,.04) 55%, rgba(14,138,114,.035)), rgba(255,255,255,.80); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--blue) 14%, var(--rule)); }
.nf-topbar::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--founder) 52%, var(--customer)); opacity: .6; pointer-events: none; }
.nf-tnav { font-size: 13.5px; font-weight: 500; color: var(--ink2); cursor: pointer; transition: color .15s ease; }
.nf-tnav:hover { color: var(--ink); }
.nf-tnav.locked { color: var(--ink3); cursor: default; }
.nf-tnav.locked:hover { color: var(--ink3); }
.nf-lk { opacity: .55; }
.nf-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(20,19,15,.10), 0 6px 16px -8px rgba(22,49,78,.55); transition: transform .12s, box-shadow .2s; }
.nf-btn-primary:hover { box-shadow: 0 1px 2px rgba(20,19,15,.10), 0 10px 22px -8px rgba(22,49,78,.6); }
.nf-btn-primary:active { transform: translateY(1px); }

/* ---- dropdown ------------------------------------------------------------ */
.nf-ddwrap { position: relative; }
.nf-dd { position: absolute; top: calc(100% + 12px); left: 0; width: 258px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 0 0 1px rgba(20,19,15,.04), 0 18px 50px -18px rgba(20,19,15,.28); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .15s; z-index: 60; }
.nf-ddwrap:hover .nf-dd, .nf-ddwrap:focus-within .nf-dd { opacity: 1; visibility: visible; transform: none; }
.nf-dditem { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.nf-dditem:hover { background: var(--raised); }

/* ---- hero — compact split band + aurora/grain/cursor glow ----------------- */
.nf-hero-grid { position: relative; z-index: 1; display: flex; align-items: center; gap: 48px; }
.nf-hero-grid h1 { flex: 1.12; margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.06; color: var(--accent); font-size: clamp(28px, 3.8vw, 52px); }
.nf-hero-sub { flex: 1; margin: 0; font-size: 15px; line-height: 1.62; color: var(--ink2); padding-left: 30px; position: relative; }
.nf-hero-sub::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--blue), var(--founder)); opacity: .75; }
.nf-hero-sub b { font-weight: 600; color: var(--ink); }
.nf-hl { position: relative; display: inline-block; }
.nf-hl::after { content: ''; position: absolute; left: .03em; right: .05em; bottom: -.11em; height: .085em; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--founder)); opacity: .9; transform: scaleX(1); transform-origin: left; }

.nf-hero-card { position: relative; overflow: hidden; --mx: 50%; --my: 30%; }
.nf-hero-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2; background: linear-gradient(90deg, var(--blue), var(--founder) 52%, var(--customer)); opacity: .85; }
.nf-hero-card h1, .nf-hero-card p { position: relative; z-index: 1; }
.nf-aur { position: absolute; inset: 0; pointer-events: none; }
.nf-aur i { position: absolute; border-radius: 50%; display: block; will-change: transform; }
.nf-aur .a1 { width: 46%; height: 240%; left: -10%; top: -70%; background: radial-gradient(closest-side, rgba(26,111,173,.15), transparent 70%); }
.nf-aur .a2 { width: 44%; height: 240%; right: -10%; top: -55%; background: radial-gradient(closest-side, rgba(104,69,194,.11), transparent 70%); }
.nf-aur .a3 { width: 42%; height: 220%; left: 32%; bottom: -110%; background: radial-gradient(closest-side, rgba(14,138,114,.10), transparent 70%); }
.nf-grain { position: absolute; inset: 0; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>"); background-size: 160px 160px; }
.nf-heroglow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(26,111,173,.10), transparent 65%); }
.nf-hero-card:hover .nf-heroglow { opacity: 1; }
.nf-hw { display: inline-block; }

/* ---- flow strip — coloured bg, steps, progress beam ---------------------- */
.nf-flowwrap { position: relative; border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--rule)); border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 8%, #fff) 0%, color-mix(in srgb, var(--founder) 6%, #fff) 100%); box-shadow: 0 1px 2px rgba(20,19,15,.05), 0 0 0 1px rgba(20,19,15,.04), 0 22px 44px -26px rgba(22,49,78,.30); }
.nf-flow { display: flex; align-items: flex-start; gap: 0; padding: 13px 18px; }
.nf-fstep { flex: 1; text-align: center; padding: 0 6px; }
.nf-ficon { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); position: relative; box-shadow: 0 2px 6px rgba(20,19,15,.06); transition: transform .45s cubic-bezier(.22,1,.36,1), background-color .4s, color .4s, border-color .4s, box-shadow .4s; }
.nf-ficon .n { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--rule)); font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: var(--c); transition: all .4s; }
.nf-fstep.on .nf-ficon { background: var(--c); color: #fff; border-color: transparent; box-shadow: 0 12px 24px -8px var(--c); transform: translateY(-3px); }
.nf-fstep.on .nf-ficon .n { background: var(--c); color: #fff; border-color: transparent; }
.nf-ficon::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--c); opacity: 0; pointer-events: none; }
.nf-fttl { margin-top: 13px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.nf-fsub { margin-top: 4px; font-size: 12px; line-height: 1.42; color: var(--ink2); }
.nf-fchev { align-self: flex-start; margin-top: 19px; color: color-mix(in srgb, var(--blue) 30%, transparent); flex: 0 0 auto; transition: color .4s, transform .4s cubic-bezier(.22,1,.36,1); }
.nf-fchev.on { color: var(--c2); transform: translateX(2px); }
.nf-fprog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--sales) 0%, var(--customer) 26%, var(--founder) 50%, var(--finance) 74%, var(--live) 100%); transform-origin: left; transform: scaleX(0); transition: transform .65s cubic-bezier(.22,1,.36,1); }

/* ---- role cards — 4-quadrant spec --------------------------------------- */
.nf-cat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: stretch; }
.nf-deptbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 11px; padding: 9px 14px; border-radius: 11px; border-left: 4px solid var(--c); scroll-margin-top: 70px; margin-top: 6px; }
.nf-rc { position: relative; display: flex; flex-direction: column; border: 1px solid var(--rule); border-left: 3px solid var(--c); background: #fff; border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(20,19,15,.05), 0 8px 22px -12px rgba(20,19,15,.10); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.nf-rc:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 35%, var(--rule)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 12%, transparent), 0 14px 30px -12px color-mix(in srgb, var(--c) 32%, transparent); }
.nf-rc::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .22s ease; background: radial-gradient(130% 80% at 50% -10%, color-mix(in srgb, var(--c) 10%, transparent), transparent 62%); }
.nf-rc:hover::after { opacity: 1; }
.nf-rc:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c), 0 14px 30px -12px color-mix(in srgb, var(--c) 32%, transparent); }
.nf-rc-head { padding: 13px 18px 14px; background: color-mix(in srgb, var(--c) 11%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--c) 18%, var(--rule)); display: flex; flex-direction: column; }
/* Name pinned to the TOP of the head (right under the dept tag/pill row) so
   the role names — and the tagline tops — sit on the SAME baseline across
   every card, regardless of how many lines the tagline runs. JS equalises
   head height per row, so shorter taglines simply leave whitespace below. */
.nf-rname-block { padding-top: 10px; }
.nf-rname { font-size: 18px; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; color: var(--ink); }
.nf-rone { margin-top: 6px; font-size: 13px; line-height: 1.46; color: var(--ink2); }
.nf-rc-body { padding: 14px 18px 16px; display: flex; flex-direction: column; flex: 1; background: color-mix(in srgb, var(--c) 3.5%, #fff); }
.nf-deptTag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-size: 9.5px; color: var(--c); }
.nf-pill { font-size: 10px; font-weight: 700; letter-spacing: .05em; display: inline-flex; align-items: center; gap: 5px; color: var(--live); background: rgba(13,124,84,.09); border: 1px solid rgba(13,124,84,.16); padding: 2px 8px 2px 7px; border-radius: 999px; }
.nf-pill.planned { color: var(--ink3); background: rgba(124,121,112,.10); border-color: rgba(124,121,112,.20); }
.nf-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: color-mix(in srgb, var(--c) 14%, var(--rule)); border: 1px solid color-mix(in srgb, var(--c) 14%, var(--rule)); border-radius: 10px; overflow: hidden; }
.nf-spec > div { padding: 10px 13px; position: relative; background: color-mix(in srgb, var(--c) 2%, #fff); }
.nf-spec > div::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.nf-spec > div:nth-child(1)::before { background: color-mix(in srgb, var(--q1) 44%, transparent); }
.nf-spec > div:nth-child(2)::before { background: color-mix(in srgb, var(--q2) 44%, transparent); }
.nf-spec > div:nth-child(3)::before { background: color-mix(in srgb, var(--q3) 44%, transparent); }
.nf-spec > div:nth-child(4)::before { background: color-mix(in srgb, var(--q4) 44%, transparent); }
.nf-spec .k { font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-size: 9.5px; }
/* Lock every quadrant value to EXACTLY two lines (min-height floors short
   ones, line-clamp caps long ones) so the 4-quadrant grid is the SAME height
   on every card — that is what makes the Control line + price align across
   cards in a row. Full copy still lives on the role detail page. */
.nf-spec .v { font-size: 12.5px; line-height: 1.4; color: #2D2B26; margin-top: 4px; font-weight: 500; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-k1 { color: var(--q1); } .nf-k2 { color: var(--q2); } .nf-k3 { color: var(--q3); } .nf-k4 { color: var(--q4); }
/* Control + price live in a bottom-pinned foot (.nf-rc-foot, mt-auto in
   role_card.html) so they share ONE baseline across every card in a row,
   no matter how tall the spec grid above ran. Zero the Control's own top
   margin inside the foot since the foot wrapper owns the spacing. */
.nf-rc-foot { display: flex; flex-direction: column; margin-top: auto; padding-top: 13px; border-top: 1px dashed color-mix(in srgb, var(--c) 22%, var(--rule)); }
.nf-rc-foot .nf-ctrl { margin-top: 0; }
.nf-ctrl { margin-top: 9px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px; background: color-mix(in srgb, var(--c) 5%, #fff); border: 1px solid color-mix(in srgb, var(--c) 14%, var(--rule)); }
.nf-ctrl svg { flex: 0 0 auto; color: var(--c); }
.nf-ctrl .ck { font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-size: 9.5px; color: var(--c); white-space: nowrap; }
/* Control stays a single clean line (truncate, never wrap) so the box is a
   uniform height on every card and never looks cramped/"слипшимся". */
.nf-ctrl .cv { font-size: 12px; line-height: 1.35; color: #2D2B26; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-price { font-size: 24px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); line-height: 1; }
.nf-openlink { font-size: 12.5px; font-weight: 700; }
/* Free-trial signal pill — terracotta, sits left of the LIVE pill in the
   card head. The ONE element that uses the brand accent so "free to start"
   pops against the per-department tint without matching the green LIVE pill. */
.nf-trial { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #b5552f; background: rgba(181,85,47,.08); border: 1px solid rgba(181,85,47,.22); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }

/* ---- role-detail hero fingerprint (trained-on / methods / for-whom) ------
   Full-width 3-column band so the "beyond the base model" anchor uses the
   width instead of stacking 9 rows (founder 2026-06-14). Accent-tinted. */
.nf-fp { display: grid; grid-template-columns: 1fr 1.25fr 0.85fr; gap: 0; border: 1px solid color-mix(in srgb, var(--c) 24%, var(--rule)); border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--c) 5%, #fff); box-shadow: inset 3px 0 0 var(--c); }
.nf-fp-cell { padding: 13px 18px; border-left: 1px solid color-mix(in srgb, var(--c) 16%, var(--rule)); min-width: 0; }
.nf-fp-cell:first-child { border-left: 0; }
@media (max-width: 760px) {
  .nf-fp { grid-template-columns: 1fr; }
  .nf-fp-cell { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--c) 16%, var(--rule)); }
  .nf-fp-cell:first-child { border-top: 0; }
}
.nf-methodpill { display: inline-flex; align-items: center; border-radius: 7px; padding: 2px 9px; font-size: 11.5px; font-weight: 500; line-height: 1.5; color: color-mix(in srgb, var(--c) 78%, var(--ink)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--rule)); background: color-mix(in srgb, var(--c) 9%, #fff); }
/* how-it-works flow card copy — full sentences (not the short homepage labels):
   readable size, darker ink, tighter to the icon so the strip stays compact. */
.nf-fstep-copy { margin-top: 9px; font-size: 13px; line-height: 1.4; color: var(--ink); }

/* ---- capability matrix — vivid tinted columns (prod-safe, no JIT utils) -- */
.nf-mx { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid; }
.nf-mx__bar { height: 4px; width: 100%; }
.nf-mx__h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.nf-mx__dot { margin-top: 7px; height: 6px; width: 6px; flex: 0 0 auto; border-radius: 50%; }
.nf-mx__more { padding-left: 16px; font-size: 11px; font-weight: 600; }
.nf-mx--emerald { background: #ECFDF5; border-color: #6EE7B7; }
.nf-mx--emerald .nf-mx__bar { background: #10B981; }
.nf-mx--emerald .nf-mx__h, .nf-mx--emerald .nf-mx__more { color: #047857; }
.nf-mx--emerald .nf-mx__dot { background: #10B981; }
.nf-mx--amber { background: #FFFBEB; border-color: #FCD34D; }
.nf-mx--amber .nf-mx__bar { background: #F59E0B; }
.nf-mx--amber .nf-mx__h, .nf-mx--amber .nf-mx__more { color: #B45309; }
.nf-mx--amber .nf-mx__dot { background: #F59E0B; }
.nf-mx--rose { background: #FFF1F2; border-color: #FDA4AF; }
.nf-mx--rose .nf-mx__bar { background: #F43F5E; }
.nf-mx--rose .nf-mx__h, .nf-mx--rose .nf-mx__more { color: #BE123C; }
.nf-mx--rose .nf-mx__dot { background: #F43F5E; }

/* niche_sdr inbox — send-schedule day chips + panel chevron */
.nf-sched > summary::-webkit-details-marker { display: none; }
.nf-sched > summary .nf-dr-chev { transition: transform .2s ease; }
.nf-sched[open] > summary .nf-dr-chev { transform: rotate(90deg); }
.nf-sched label:has(.nf-day-cb:checked) { background: var(--c); border-color: var(--c) !important; color: #fff; }

/* niche_sdr inbox — colour-coded health tiles */
.nf-tile { border: 1px solid color-mix(in srgb, var(--c) 26%, var(--rule)); border-radius: 12px; background: color-mix(in srgb, var(--c) 6%, #fff); box-shadow: inset 4px 0 0 var(--c); padding: 11px 14px; }

/* ---- niche_sdr inbox — approval table (one row per draft, expandable) ----
   Rows are <details> in display:contents so summary cells flow into the
   parent grid; the batch checkbox sits OUTSIDE the summary so ticking never
   toggles the row. No inline JS (CSP). */
.nf-draftrow { display: flex; align-items: flex-start; gap: 14px; padding: 11px 16px; border-top: 1px solid var(--rule); }
.nf-draftrow:first-child { border-top: 0; }
.nf-draftrow input[type="checkbox"] { margin-top: 3px; width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--c); cursor: pointer; }
.nf-draftrow > details { flex: 1; min-width: 0; }
.nf-dr-sum { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1.3fr) minmax(0,1.7fr) 104px 136px 20px; gap: 14px; align-items: center; cursor: pointer; list-style: none; }
.nf-dr-sum::-webkit-details-marker { display: none; }
.nf-dr-sum::marker { content: ""; }
.nf-draftrow--head { display: flex; align-items: center; gap: 14px; padding: 9px 16px; background: color-mix(in srgb, var(--c) 7%, #fff); }
.nf-draftrow--head input[type="checkbox"] { width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--c); cursor: pointer; }
.nf-draftrow--head .nf-dr-sum { flex: 1; }
.nf-dr-name { font-size: 13.5px; font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-dr-co { font-size: 12.5px; color: var(--ink2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-dr-email { font-size: 12.5px; color: var(--ink2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-dr-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--live); white-space: nowrap; }
.nf-dr-chev { justify-self: end; color: var(--ink3); font-size: 17px; line-height: 1; transition: transform .2s ease; }
.nf-draftrow > details[open] > .nf-dr-sum .nf-dr-chev { transform: rotate(90deg); }
.nf-dr-detail { padding: 6px 2px 12px 0; }
.nf-vd { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: 11px; font-weight: 600; background: color-mix(in srgb, var(--ink3) 12%, #fff); color: var(--ink2); white-space: nowrap; }
.nf-vd--ok { background: #ECFDF5; color: #047857; }
.nf-vd--edit { background: #EFF6FF; color: #1D4ED8; }
.nf-vd--bad { background: #FFF1F2; color: #BE123C; }
@media (max-width: 760px) {
  .nf-dr-sum { grid-template-columns: 1fr auto 22px; }
  .nf-draftrow--head, .nf-dr-co, .nf-dr-email { display: none; }
}
.nf-arr { display: inline-block; transition: transform .2s cubic-bezier(.22,1,.36,1); }
.nf-rc:hover .nf-arr, .nf-btn-primary:hover .nf-arr { transform: translateX(4px); }

/* ---- scroll reveal (JS adds .in — no-JS stays visible) ------------------- */
.nf-rv { opacity: 0; transform: translateY(14px); }
.nf-rv.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .6s cubic-bezier(.22,1,.36,1); transition-delay: var(--rd, 0ms); }

/* ---- motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .nf-hw { opacity: 0; transform: translateY(14px); animation: nfHwUp .7s cubic-bezier(.22,1,.36,1) forwards; animation-delay: calc(var(--d) * 85ms); }
  .nf-hero-sub { opacity: 0; animation: nfHwUp .7s cubic-bezier(.22,1,.36,1) .38s forwards; }
  @keyframes nfHwUp { to { opacity: 1; transform: none; } }
  .nf-hl::after { transform: scaleX(0); animation: nfHlDraw .65s cubic-bezier(.22,1,.36,1) .62s forwards; }
  @keyframes nfHlDraw { to { transform: scaleX(1); } }
  .nf-aur .a1 { animation: nfAurA 18s ease-in-out infinite alternate; }
  .nf-aur .a2 { animation: nfAurB 22s ease-in-out -7s infinite alternate; }
  .nf-aur .a3 { animation: nfAurA 26s ease-in-out -13s infinite alternate; }
  @keyframes nfAurA { from { transform: translate3d(-3%,-2%,0) scale(1); } to { transform: translate3d(4%,3%,0) scale(1.12); } }
  @keyframes nfAurB { from { transform: translate3d(3%,2%,0) scale(1.08); } to { transform: translate3d(-4%,-3%,0) scale(.98); } }
  .nf-fstep.live .nf-ficon::after { animation: nfRingPulse 1.35s ease-out infinite; }
  @keyframes nfRingPulse { 0% { opacity: .5; transform: scale(1); } 70% { opacity: 0; transform: scale(1.34); } 100% { opacity: 0; transform: scale(1.34); } }
}
@media (prefers-reduced-motion: reduce) {
  .nf-fstep .nf-ficon { background: var(--c); color: #fff; border-color: transparent; }
  .nf-fstep .nf-ficon .n { background: var(--c); color: #fff; }
  .nf-fchev { color: var(--c2); }
  .nf-fprog { transform: scaleX(1); }
  .nf-heroglow { display: none; }
}

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 820px) {
  .nf-flow { flex-direction: column; gap: 8px; }
  .nf-fchev { display: none; }
  .nf-fstep { text-align: left; display: grid; grid-template-columns: 54px 1fr; gap: 14px; }
  .nf-ficon { margin: 0; }
  .nf-fttl { margin-top: 0; }
  .nf-cat { grid-template-columns: 1fr; }
  .nf-hero-grid { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nf-hero-sub { padding-left: 0; font-size: 14.5px; }
  .nf-hero-sub::before { display: none; }
}

/* ===== Hero — Raycast-style flowing mesh gradient =========================
   Soft, blurred colour fields drifting + morphing behind the hero, tinted
   from the role accent (--c / --c2 / --accent / --live). Decorative
   (aria-hidden, z-0). A white veil keeps dark hero text readable over it. */
.nf-mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden; border-radius: inherit;
  filter: blur(46px) saturate(1.3); opacity: .55;
}
/* veil so the headline never loses contrast on the light card */
.nf-mesh::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.62));
}
.nf-mesh i { position: absolute; width: 56%; height: 78%; border-radius: 50%; will-change: transform; }
.nf-mesh .m1 { left: -8%;  top: -22%;    background: radial-gradient(circle, color-mix(in srgb, var(--c) 70%, transparent), transparent 62%); }
.nf-mesh .m2 { right: -10%; top: -16%;   background: radial-gradient(circle, color-mix(in srgb, var(--c2, #6845c2) 58%, transparent), transparent 62%); }
.nf-mesh .m3 { left: 24%;  bottom: -34%; background: radial-gradient(circle, color-mix(in srgb, var(--accent, #16314e) 42%, transparent), transparent 62%); }
.nf-mesh .m4 { right: 16%; bottom: -26%; background: radial-gradient(circle, color-mix(in srgb, var(--live, #0e8a72) 40%, transparent), transparent 62%); }
@media (prefers-reduced-motion: no-preference) {
  .nf-mesh .m1 { animation: nfMeshA 19s ease-in-out infinite alternate; }
  .nf-mesh .m2 { animation: nfMeshB 24s ease-in-out -6s infinite alternate; }
  .nf-mesh .m3 { animation: nfMeshA 28s ease-in-out -13s infinite alternate; }
  .nf-mesh .m4 { animation: nfMeshB 22s ease-in-out -3s infinite alternate; }
  @keyframes nfMeshA { from { transform: translate(0,0) scale(1); } to { transform: translate(14%,9%) scale(1.2); } }
  @keyframes nfMeshB { from { transform: translate(0,0) scale(1.12); } to { transform: translate(-12%,-7%) scale(.92); } }
}

/* ---- cited-evidence link (contract detail) ------------------------------- */
/* Bidirectional value <-> source flash. Wired by static/js/contract-evidence.js
   (CSP-safe, data-* only). The flash is a brief ring + tint so the eye ties an
   extracted value to its verbatim cited span and back. Colour is attention,
   never a verdict (UPL-safe). Custom classes (NOT Tailwind utilities) so they
   need no `npx tailwindcss` rebuild. */
[data-evidence-source],
[data-evidence-field] {
  scroll-margin-top: 6rem; /* clear the sticky cockpit sub-bar on scroll */
}
[data-cite-back] {
  cursor: pointer;
}
[data-cite-back]:focus-visible {
  outline: 2px solid var(--accent, #16314e);
  outline-offset: 2px;
  border-radius: 6px;
}
.ataski-cite-flash {
  animation: ataskiCiteFlash 2.2s ease-out 1;
  border-radius: 8px;
}
@keyframes ataskiCiteFlash {
  0%   { box-shadow: 0 0 0 3px rgba(204, 68, 0, 0.0);  background-color: rgba(204, 68, 0, 0.0); }
  12%  { box-shadow: 0 0 0 3px rgba(204, 68, 0, 0.55); background-color: rgba(204, 68, 0, 0.12); }
  100% { box-shadow: 0 0 0 3px rgba(204, 68, 0, 0.0);  background-color: rgba(204, 68, 0, 0.0); }
}
@media (prefers-reduced-motion: reduce) {
  .ataski-cite-flash {
    animation: none;
    box-shadow: 0 0 0 3px rgba(204, 68, 0, 0.5);
    background-color: rgba(204, 68, 0, 0.1);
  }
}
