/* The crawlable case and path pages (src/site/seo.ts): plain HTML in the site's colours, no script. */
:root { --bg: #070b14; --panel: #0e1525; --line: #1d2a44; --text: #e8edf7; --muted: #a3b2cc; --dim: #8090ae; --amber: #f5a524; --on-amber: #241400; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 'IBM Plex Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--amber); }
h1, h2 { text-wrap: balance; }
h1, h2, .s-brand { font-family: 'Chakra Petch', system-ui, sans-serif; line-height: 1.15; }
h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; margin: 8px 0 12px; overflow-wrap: anywhere; }
h2 { font-size: 22px; margin: 36px 0 10px; }
code { font: 13.5px 'IBM Plex Mono', ui-monospace, monospace; }
/*
 * The top bar: the app's (src/site/site.css .topnav) in plain HTML, one link list for both (footerLinks.ts MAIN_NAV).
 * Same height, the same 1400 px frame as the app's pages and footer, and on a phone the labels fold into icons.
 */
.s-skip { position: absolute; left: -9999px; top: 10px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--amber); color: var(--on-amber); font-weight: 600; }
.s-skip:focus { left: 10px; }
.s-nav { position: sticky; top: 0; z-index: 40; background: rgba(7, 11, 20, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.s-nav-in { max-width: 1400px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 18px; }
.s-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 17px; font-weight: 700; white-space: nowrap; }
.s-brand .s-logo { width: 24px; height: 24px; }
.s-links { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.s-nl { display: inline-flex; align-items: center; gap: 7px; height: 60px; padding: 0 12px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.s-nl:hover { color: var(--text); }
.s-nl[aria-current='page'] { color: var(--text); box-shadow: inset 0 -2px 0 var(--amber); }
.s-nav .s-cta, .s-btn { display: inline-block; padding: 10px 16px; border-radius: 11px; background: var(--amber); color: var(--on-amber); font-weight: 600; text-decoration: none; white-space: nowrap; }
.s-nav .s-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 4px 0 14px; font: 700 14px 'Chakra Petch', system-ui, sans-serif; border-radius: 10px; background: linear-gradient(135deg, #e2780e, var(--amber) 55%, #ffc057); color: var(--on-amber); box-shadow: 0 8px 26px rgba(245, 165, 36, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.s-nav .s-cta::after { content: ''; width: 28px; height: 28px; border-radius: 7px; background: rgba(36, 20, 0, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23241400' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.s-nav .s-cta:hover, .s-nav .s-cta:focus-visible { color: var(--on-amber); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(245, 165, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.s-btn { border-radius: 12px; background: linear-gradient(135deg, #e2780e, var(--amber) 55%, #ffc057); font-family: 'Chakra Petch', system-ui, sans-serif; font-weight: 700; box-shadow: 0 8px 26px rgba(245, 165, 36, 0.28); }
@media (prefers-reduced-motion: reduce) { .s-nav .s-cta { transition: none; } .s-nav .s-cta:hover { transform: none; } }
@media (max-width: 1720px) { .s-nl { padding: 0 9px; } }
@media (max-width: 1480px) {
  .s-nav-in { gap: 10px; }
  .s-nl { padding: 0 8px; font-size: 14px; }
  .s-nl svg { display: none; }
}
@media (max-width: 1180px) {
  .s-nl { padding: 0 10px; }
  .s-nl svg { display: block; }
  .s-nl span { display: none; }
}
@media (max-width: 760px) {
  .s-nav-in { gap: 10px; }
  .s-brand span { display: none; }
  .s-nl { padding: 0 11px; }
  .s-nl span { display: none; }
}
@media (max-width: 520px) { .s-nav-in { padding: 0 10px; gap: 4px; } .s-nl { padding: 0 6px; min-width: 38px; justify-content: center; } .s-nav .s-cta { display: none !important; } }
/* The same frame as the app's pages (site.css .page) and the footer; running text keeps a readable measure. */
.s-main { max-width: 1400px; margin: 0 auto; padding: 8px 20px 60px; }
.s-main:focus { outline: none; }
.s-main p, .s-main li, .s-main dd { max-width: 860px; }
.s-main .s-cards li, .s-main .s-facts li { max-width: none; }
.s-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.s-crumbs a { color: var(--dim); text-decoration: none; padding: 4px 0; }
.s-kicker { color: var(--amber); font: 600 13px 'IBM Plex Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; margin: 22px 0 0; }
.s-lead { font-size: 16px; color: var(--muted); max-width: 720px; }
.s-dim, .s-meta { color: var(--dim); font-size: 14px; }
.s-art { width: 100%; max-width: 560px; height: auto; border-radius: 16px; background: radial-gradient(120% 100% at 30% 15%, #1b2a4a, #0b1222 70%); display: block; margin-top: 18px; }
.s-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 20px 0; }
.s-facts li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.s-facts b { display: block; font-size: 17px; }
.s-facts span { color: var(--dim); font-size: 13px; }
.s-steps li { margin: 6px 0; }
.s-kind { color: var(--dim); font: 12.5px 'IBM Plex Mono', monospace; }
.s-scroll { max-width: 100%; overflow-x: auto; }
/*
 * A table wider than the phone scrolls in its own box, and shows it: a hint line above it and an amber edge on the
 * side that has more (the shadows scroll away with the content: background-attachment local).
 */
.s-scroll-hint { display: none; }
@media (max-width: 720px) {
  .s-scroll-hint { display: block; margin: 10px 0 6px; font-size: 13px; color: var(--dim); }
  .s-scroll { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(to right, var(--bg) 40%, rgba(7, 11, 20, 0)) left / 36px 100% no-repeat local, linear-gradient(to left, var(--bg) 40%, rgba(7, 11, 20, 0)) right / 36px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(245, 165, 36, 0.35), transparent) left / 12px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(245, 165, 36, 0.35), transparent) right / 12px 100% no-repeat scroll, var(--bg); }
}
.s-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.s-table code { overflow-wrap: anywhere; }
.s-quote { margin: 8px 0; padding: 12px 16px; border-left: 3px solid var(--amber); background: var(--panel); border-radius: 0; color: var(--muted); }
.s-table th, .s-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.s-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.s-cards a { display: flex; flex-direction: column; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--text); text-decoration: none; }
.s-cards a:hover { border-color: var(--amber); }
.s-cards img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: radial-gradient(120% 100% at 30% 15%, #1b2a4a, #0b1222 70%); }
.s-cards a > span { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.s-404 { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.s-404-links { max-width: 900px; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* The reference libraries (src/site/library/pages.ts). */
.s-libtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.s-libtabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); text-decoration: none; font-size: 14px; }
.s-libtabs a:hover { color: var(--text); border-color: #2a3a5c; }
.s-libtabs a[aria-current='page'] { color: var(--on-amber); background: var(--amber); border-color: var(--amber); font-weight: 600; }
.s-jump { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.s-jump a { padding: 6px 0; }
.s-id { display: inline-block; padding: 2px 12px; margin-right: 6px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--amber); font: 600 0.72em 'IBM Plex Mono', monospace; vertical-align: 0.12em; }
.s-ref h3 { font: 600 16px 'IBM Plex Sans', system-ui, sans-serif; margin: 18px 0 4px; color: var(--muted); }
.s-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 18px 0; }
.s-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px 10px; }
.s-panel h2 { font-size: 18px; margin: 14px 0 6px; }
.s-ok { border-top: 3px solid #59c27a; }
.s-bad { border-top: 3px solid #ff7a8f; }
.s-code { margin: 4px 0 0; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 12px; background: #050810; border: 1px solid var(--line); overflow-x: auto; color: #ffcf7a; }
.s-src { margin-top: 30px; font-size: 14px; }
.s-lib th[scope='row'] { white-space: nowrap; font: 600 14px 'IBM Plex Mono', monospace; }
.s-inline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.s-gloss { margin: 0; display: grid; gap: 10px; }
.s-gloss > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; scroll-margin-top: 16px; }
.s-gloss > div:target { border-color: var(--amber); }
.s-gloss dt { font-weight: 600; }
.s-gloss dd { margin: 4px 0 0; color: var(--muted); }
.s-see { display: block; margin-top: 6px; font-size: 14px; color: var(--dim); }
.s-qs li { margin: 10px 0; padding-left: 4px; }
.s-cards-text a > span { gap: 8px; padding: 16px 18px; }

/* The footer: brand and four columns, then the bottom bar (src/site/footerLinks.ts). */
.s-foot { border-top: 1px solid var(--line); background: #060912; margin-top: 30px; }
.s-foot-top { max-width: 1400px; margin: 0 auto; padding: 22px 22px 12px; display: grid; grid-template-columns: minmax(200px, 1.2fr) repeat(3, minmax(0, 1fr)) minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; }
.s-fbrand p { margin: 6px 0 0; color: var(--dim); font-size: 12.5px; line-height: 1.4; max-width: 240px; }
.s-fbrand .s-brand { display: inline-flex; align-items: center; gap: 8px; }
.s-logo { color: var(--amber); }
.s-fctas { display: flex; flex-wrap: wrap; gap: 8px; }
.s-fctas .s-btn { padding: 8px 14px; font-size: 14px; }
.s-btn-ghost { background: transparent !important; color: var(--text) !important; border: 1px solid var(--line); }
.s-fcol h2 { font: 600 10.5px 'IBM Plex Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 2px 0 6px; }
.s-fcol ul { list-style: none; margin: 0; padding: 0; }
.s-fcol a { display: inline-block; padding: 2px 0; color: var(--muted); text-decoration: none; font-size: 12.5px; }
.s-fcol:last-child ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.s-fcol a:hover, .s-foot-bar a:hover { color: var(--amber); }
.s-foot-bar { max-width: 1400px; margin: 0 auto; padding: 8px 22px 12px; display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }
@media (max-width: 1000px) { .s-foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .s-fbrand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .s-foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .s-foot-top { grid-template-columns: 1fr; } }

/* Legal pages (src/site/legal/pages.ts): one notice for the company facts the owner still fills in, and the draft banner. */
.s-launch { margin: 18px 0 8px; padding: 18px 20px 14px; border-radius: 14px; border: 1px solid var(--line); border-left: 3px solid #6f9bff; background: linear-gradient(100deg, rgba(92, 156, 255, 0.1), rgba(92, 156, 255, 0) 70%), var(--panel); max-width: 860px; }
.s-launch h2 { font-size: 18px; margin: 0 0 6px; }
.s-launch p { margin: 6px 0; color: var(--muted); }
.s-launch p b { color: var(--text); }
.s-launch details { margin-top: 10px; font-size: 14px; color: var(--dim); }
.s-launch summary { cursor: pointer; padding: 4px 0; color: var(--muted); }
.s-launch summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.s-launch ul { margin: 6px 0 0; padding-left: 20px; columns: 2 280px; column-gap: 28px; }
.s-launch li { margin: 2px 0; break-inside: avoid; }
.s-pend { color: var(--dim); font-style: italic; }
.s-draft { margin: 18px 0; padding: 14px 18px; border-radius: 12px; border: 1px solid #ff9f6b; background: rgba(255, 143, 92, 0.1); color: #ffd9c2; }
.s-draft b { color: #ffe7d6; }
.s-facts-list { margin: 18px 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 760px; }
.s-facts-list > div { display: grid; grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel); }
.s-facts-list > div:first-child { border-top: none; }
.s-facts-list dt { color: var(--dim); font-size: 14px; }
.s-facts-list dd { margin: 0; overflow-wrap: anywhere; }
.s-legal h2 { scroll-margin-top: 16px; }
.s-legal .s-table td { vertical-align: top; }
.s-legal { max-width: 1000px; }
.s-updated { margin-top: 30px; }
@media (max-width: 560px) { .s-facts-list > div { grid-template-columns: 1fr; gap: 2px; } }

/* A finger needs 44 x 44 CSS px (WCAG 2.5.5), as in the app (site.css); a mouse keeps the compact sizes. */
@media (pointer: coarse) {
  .s-nl { min-width: 44px; justify-content: center; flex: none; }
  .s-brand { min-height: 44px; min-width: 44px; justify-content: center; }
  .s-nav .s-cta { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
  .s-crumbs a, .s-fcol a, .s-foot a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* The case page: a short head, jump links, compact rows and a tidy list of paths. */
.s-hero { padding: 26px 0 18px; }
.s-hero h1 { margin: 0 0 10px; }
.s-hero .s-lead { margin: 0 0 16px; max-width: 640px; }
.s-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.s-hero .s-btn { border-radius: 3px; font-weight: 700; }
.s-hero-facts { color: var(--dim); font-size: 14px; }
.s-jump { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; margin-bottom: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-jump a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 14px; text-decoration: none; }
.s-jump a:hover, .s-jump a:focus-visible { border-color: var(--amber); }
.s-jump span { color: var(--dim); font-size: 12.5px; }
.s-h2-row { margin: 28px 0 12px; font-size: 20px; scroll-margin-top: 76px; }
.s-h2-sub { margin: -8px 0 12px; font-size: 14px; }
.s-cards-row { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.s-cards-row a { flex-direction: row; align-items: stretch; border-radius: 10px; }
.s-cards-row img { flex: none; width: 92px; height: auto; aspect-ratio: auto; min-height: 92px; }
.s-cards-row a > span { min-width: 0; padding: 10px 12px; gap: 3px; font-size: 13.5px; }
.s-pathlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.s-main .s-pathlist li { max-width: none; }
.s-pathlist a { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); text-decoration: none; }
.s-pathlist a:hover, .s-pathlist a:focus-visible { border-color: var(--amber); }
.s-pathlist span { color: var(--muted); font-size: 13.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.s-pathlist small { margin-top: auto; padding-top: 4px; color: var(--dim); font-size: 12.5px; }
@media (max-width: 400px) { .s-cards-row, .s-pathlist { grid-template-columns: 1fr; } }
/* The ATT&CK index: every tactic's table has the same columns, so they line up down the page (site check 2026-11-08). */
.s-attack-t { table-layout: fixed; width: 100%; }
.s-attack-t th:nth-child(1), .s-attack-t td:nth-child(1) { width: 7.5em; }
.s-attack-t th:nth-child(3), .s-attack-t td:nth-child(3) { width: 7em; }
@media (max-width: 560px) { .s-attack-t th:nth-child(1), .s-attack-t td:nth-child(1) { width: 6.2em; } .s-attack-t th:nth-child(3), .s-attack-t td:nth-child(3) { width: 5.6em; } }

/* Nav labels on the crawlable pages, as in the app (site.css): a short word under each icon when the full label does
   not fit, and on a phone the links take their own full row (site check 2026-11-08). */
.s-nl .s-nl-s { display: none; }
@media (max-width: 1180px) {
  .s-nl { flex-direction: column; justify-content: center; gap: 3px; }
  .s-nl .s-nl-s { display: block; font-size: 10.5px; line-height: 1; }
}
@media (max-width: 760px) {
  .s-nav-in { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: 6px; }
  .s-nav-in > .s-brand { height: 48px; }
  .s-nav-in > .s-cta { margin-left: auto; }
  .s-nav-in > .s-links { order: 3; flex: 1 1 100%; justify-content: space-between; border-top: 1px solid var(--line); overflow: visible; }
  .s-links .s-nl { height: 50px; flex: 1 1 0; min-width: 0; padding: 0 2px; }
  .s-nl .s-nl-s { font-size: 10px; }
}
