/* threatvision.ai inner pages: built on the v18 tokens and components in main.css.
   Loaded after main.css on every page except the home page. */

/* ---------- Page hero (dark in both themes, like the home hero field) ---------- */
.phero { background: radial-gradient(120% 90% at 0% 0%, #17223f, #0d1424 55%, #0a0e17); color: #fff; padding: 22px 0 var(--sec-y); }
.phero__in { display: grid; gap: 28px; align-items: center; }
.phero .eyebrow { margin-top: 22px; color: #a9bdff; }
.phero .eyebrow::before { background: #4f7dff; }
.phero h1 { margin-top: 14px; font: 700 clamp(2rem, 8.4vw, 3.4rem)/1.05 var(--f-head); letter-spacing: -.022em; text-wrap: balance; max-width: 22em; }
.phero__lede { margin-top: 16px; max-width: 40em; font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.55; color: #d3dcf0; }
.phero__lede a { color: #fff; }
.phero__cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.phero .btn:focus-visible, .phero a:focus-visible { outline-color: #fff; }
.phero__fig { width: 100%; max-width: 560px; }
.phero__fig .fr { aspect-ratio: 3 / 2; }
.phero__fig figcaption.note { margin-top: 10px; color: #aebbdc; }
.phero--post h1 { font-size: clamp(1.9rem, 6.4vw, 3rem); }
.phero__meta { margin-top: 14px; font: 600 14px/1.4 var(--f-text); color: #aebbdc; }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font: 600 13.5px/1.3 var(--f-text); color: #aebbdc; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; opacity: .6; }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: #dfe6f7; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: #aebbdc; font-weight: 500; }

@media (min-width: 900px) {
  .phero { padding-top: 26px; }
  .phero__in--fig { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
  .phero__fig { justify-self: end; }
}

/* ---------- Content blocks ---------- */
.block { padding: var(--sec-y) 0; }
.block--alt { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.block + .block:not(.block--alt) { padding-top: 0; }
.block--alt + .block:not(.block--alt) { padding-top: var(--sec-y); }
.block .sec + * { margin-top: 24px; }
.sec__lede { margin-top: 12px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 44em; }

.prose { max-width: 46rem; font-size: 17.5px; line-height: 1.68; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.9em; font: 700 clamp(1.5rem, 4.4vw, 2rem)/1.15 var(--f-head); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.prose h3 { margin-top: 1.6em; font: 700 clamp(1.2rem, 3.4vw, 1.4rem)/1.25 var(--f-head); letter-spacing: -.012em; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .55em; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-thickness: 2.5px; }
.prose ul, .prose ol { display: grid; gap: .5em; padding-left: 0; }
.prose ul li, .prose ol li { position: relative; padding-left: 1.6em; }
.prose ul li::before { content: ""; position: absolute; left: .15em; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n) "."; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--accent-ink); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.06em; }
.prose figure { margin: 1.8em 0; }
.prose figure .fr { aspect-ratio: auto; }
.prose figure img { width: 100%; height: auto; }
.prose figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.split { display: grid; gap: 28px; align-items: start; }
.split__fig { max-width: 420px; }
.split__fig .fr { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
  .split--rev > :first-child { order: 2; }
  .split__fig { position: sticky; top: calc(var(--nav-h) + 24px); justify-self: end; width: 100%; }
}

/* Feature tiles */
.tiles { display: grid; gap: 12px; }
.tile { padding: 20px 20px 22px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-s); }
.tile__t { font: 700 19px/1.25 var(--f-head); letter-spacing: -.012em; color: var(--ink); }
.tile__d { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.tile__n { display: block; margin-bottom: 10px; font: 700 13px/1 var(--f-head); color: var(--accent-ink); letter-spacing: .02em; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) {
  .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Numbered steps (inner pages) */
.nsteps { display: grid; gap: 12px; counter-reset: s; }
.nstep { position: relative; padding: 20px 20px 22px 74px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-s); counter-increment: s; }
.nstep::before { content: counter(s); position: absolute; left: 20px; top: 14px; font: 700 44px/1 var(--f-head); letter-spacing: -.04em; color: var(--num); }
.nstep h3 { font: 700 19px/1.25 var(--f-head); letter-spacing: -.012em; }
.nstep p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 1024px) {
  .nsteps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .nsteps--3 .nstep { padding: 76px 24px 24px; }
  .nsteps--3 .nstep::before { left: 24px; top: 20px; font-size: 52px; }
}

/* Image gallery: framed frames at card size (<= 420px wide each) */
.shots { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.shots .fr { aspect-ratio: 3 / 2; max-width: 420px; }
.shots figcaption.note { margin-top: 8px; }

/* FAQ: visible questions and answers (the builder marks them up as FAQPage) */
div.faq { display: grid; gap: 0; max-width: 52rem; border-top: 1px solid var(--line); }
.faq__item { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.faq__item h3 { font: 700 clamp(1.08rem, 2.6vw, 1.25rem)/1.3 var(--f-head); letter-spacing: -.01em; color: var(--ink); }
.faq__a { margin-top: 8px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.faq__a > * + * { margin-top: .7em; }
.faq__a ul { display: grid; gap: .4em; }
.faq__a ul li { position: relative; padding-left: 1.4em; }
.faq__a ul li::before { content: ""; position: absolute; left: .1em; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

/* Tables */
.tbl { overflow-x: auto; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--card); -webkit-overflow-scrolling: touch; }
.tbl:focus-visible { outline-offset: 2px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; min-width: 520px; }
.tbl caption { padding: 14px 16px 0; text-align: left; font: 600 14px/1.4 var(--f-text); color: var(--ink-3); caption-side: top; }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.tbl thead th { font: 700 14px/1.3 var(--f-text); color: var(--ink); background: var(--bg-2); }
.tbl tbody th { font-weight: 600; color: var(--ink); }
.tbl td { color: var(--ink-2); }
.tbl tr:last-child > * { border-bottom: 0; }
/* Two-column tables fit a phone without sideways scrolling. */
.tbl table:not(:has(tr > :nth-child(3))) { min-width: 0; }

/* Small qualifier / provenance notes */
.note { font-size: 14px; line-height: 1.5; color: var(--ink-3); max-width: 52rem; }
.block .note { margin-top: 18px; }

/* Related links */
.related { display: grid; gap: 12px; }
.rel { display: flex; flex-direction: column; gap: 6px; min-height: 100%; padding: 18px 20px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-s); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.rel__k { font: 700 12px/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.rel__t { font: 700 18px/1.25 var(--f-head); letter-spacing: -.012em; color: var(--ink); }
.rel .cap__more { margin-top: auto; padding-top: 6px; }
.rel:hover, .rel:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.rel:hover .cap__more svg, .rel:focus-visible .cap__more svg { transform: translateX(4px); }
@media (min-width: 700px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .related--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Recognition and quote reuse the home components; only spacing differs here. */
.block .quote { margin-top: 0; }
.block .recog { margin-top: 20px; }

/* News index */
.newslist { display: grid; gap: 14px; }
@media (min-width: 700px) { .newslist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .newslist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post__date { padding: 0 12px; font: 600 13px/1 var(--f-text); color: var(--ink-3); }
@media (max-width: 699px) { .newslist .post__date { padding: 0; grid-column: 2; } }

/* Article (blog post) */
.article { padding: var(--sec-y) 0; }
.article__in { display: grid; gap: 40px; }
.article .prose { font-size: 18px; }
.article__fig { margin: 0 0 8px; max-width: 46rem; }
.article__fig .fr { aspect-ratio: auto; }
.article__fig img { width: 100%; height: auto; }
.aside__t { font: 700 13px/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.aside__list { margin-top: 12px; display: grid; gap: 10px; }
@media (min-width: 1100px) {
  .article__in { grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: 72px; }
  .article__aside { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
}

/* Legal pages */
.legal .prose { max-width: 50rem; font-size: 16.5px; }
.legal .prose h2 { font-size: clamp(1.25rem, 3.4vw, 1.5rem); }
.legal .prose h3 { font-size: 1.1rem; }
.legal__meta { margin-top: 10px; font-size: 14px; color: #aebbdc; }

/* Error page */
.err404 { padding: calc(var(--sec-y) * 1.5) 0; }

/* Footer link columns (all pages) */
.foot__cols { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 28px 0; border-bottom: 1px solid var(--line); }
.foot__cols h2 { font: 700 12.5px/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.foot__cols ul { margin-top: 10px; display: grid; }
.foot__cols a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.3; }
.foot__cols a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .foot__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Reveal: page heroes are never hidden (first paint). */
.phero .rv { opacity: 1 !important; transform: none !important; }

/* main.css (v18) uses .faq for the home FAQ section; the inner-page FAQ list is a div. */
div.faq { background: none; padding: 0; border-top: 1px solid var(--line); }

/* Clip confirm buttons: real buttons with 44px targets (all pages, incl. home). */
.confirm__go, .confirm__no { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font: 600 15px/1 var(--f-text); }
.confirm__no { color: var(--n-ink); }

/* Stacked components inside one section get the same gap as after a section header. */
.block .wrap:not(.split):not(.article__in) > * + * { margin-top: 24px; }
.block .wrap > .note { margin-top: 18px; }

/* Image rows: frames keep their card size; a short row doesn't stretch. */
.shots { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 420px)); }

/* Short link labels (e.g. "News") still get a 44px-wide target. */
.foot__cols a, .foot__links a { min-width: 44px; }
/* Post byline (owner, 2026-12-01) */
.phero__meta .byline a { color: #fff; text-underline-offset: 3px; }
.phero__meta .byline a { display: inline-flex; align-items: center; min-height: 44px; }
