/* [split 8/9] servbg.com stylesheet: content pages, threat board, weather strip, accessibility and motion fixes. Split from style.css on 2026-10-12 (lines 6886-7255 of the original); the nine css/*.css parts load in numbered order, then the terminal css/app.css. See style.css stub. */
/* ── Content pages (tool/quiz/assessment/news landing + hubs) ───────────── */
body.cpage {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.cpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 10;
}
.cpage-logo {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
}
.cpage-logo span { color: var(--text-muted); }
.cpage-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cpage-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.cpage-nav a:hover { background: var(--bg-card); color: var(--accent); }
/* Specificity, not !important: .cpage-nav a (0,1,1) and its :hover (0,2,1) used to
   outrank a bare .cpage-nav-cta, so the CTA needs the same descendant form. */
.cpage-nav a.cpage-nav-cta,
.cpage-nav a.cpage-nav-cta:hover {
  background: var(--accent);
  color: var(--bg-primary);
}
.cpage-main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  box-sizing: border-box;
}
.cpage-crumbs { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.cpage-crumbs a { color: var(--text-secondary); text-decoration: none; }
.cpage-crumbs a:hover { color: var(--accent); }
.cpage-crumbs .sep { margin: 0 8px; opacity: 0.5; }
.cpage-hero { margin-bottom: 28px; }
.cpage-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--text-primary);
  text-wrap: balance;
}
.cpage-lede { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.6; max-width: 68ch; }
.cpage-main h2 { font-size: 1.3rem; margin: 36px 0 12px; color: var(--text-primary); }
.cpage-main h3 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--text-primary); }
.cpage-main p { line-height: 1.7; color: var(--text-secondary); max-width: 72ch; }
.cpage-main a { color: var(--accent); }
.cpage-prose > * + * { margin-top: 14px; }

/* Embedded tool widget on tool landing pages */
.cpage-tool {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}
.cpage-tool-form { display: flex; gap: 8px; flex-wrap: wrap; }
.cpage-tool-form input {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
}
.cpage-tool-form input:focus { outline: none; border-color: var(--accent); }
.cpage-tool-form button {
  flex: 0 0 auto;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.cpage-tool-out {
  margin-top: 14px;
  background: #0a0a0a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12.5px;
  color: #aaa;
  /* 2026-10-10: pre, not pre-wrap — wrapping broke the DNS table's TTL column on phones; the box scrolls sideways instead. */
  white-space: pre;
  max-height: 380px;
  overflow: auto;
  display: none;
}
.cpage-tool-out.show { display: block; }

/* Card grids for hubs + related links */
.cpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.cpage-card {
  display: block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.12s, transform 0.12s;
}
.cpage-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cpage-card-title { font-weight: 700; color: var(--text-primary); margin-bottom: 5px; font-size: 15px; }
.cpage-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.cpage-card-meta { font-size: 11px; color: var(--accent); margin-top: 8px; font-weight: 600; }

/* FAQ */
.cpage-faq { margin: 22px 0; }
.cpage-faq details {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--bg-secondary);
}
.cpage-faq summary { font-weight: 600; cursor: pointer; color: var(--text-primary); }
.cpage-faq details p { margin-top: 8px; }

/* Sample quiz questions */
.cpage-q { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.cpage-q-text { font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.cpage-q-opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.cpage-q-opts li { font-size: 13px; color: var(--text-secondary); padding: 6px 10px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 6px; }
.cpage-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  margin: 16px 0;
}
.cpage-news-item { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.cpage-news-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 4px;
  padding: 1px 7px;
  margin-right: 6px;
  white-space: nowrap;
  vertical-align: 1px;
}

/* Terminal voice for the content-page family (owner: terminal-retro everywhere). */
.cpage-hero h1,
.cpage-main h2,
.cpage-card-title {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.01em;
}
.cpage-hero h1::before {
  content: '> ';
  color: var(--accent);
}
.cpage-main h2::before {
  content: '## ';
  color: var(--accent);
  opacity: 0.85;
}
.cpage-card:hover .cpage-card-title { color: var(--accent); }
.cpage-breadcrumb, .cpage-breadcrumb a { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.cpage-news-item a { color: var(--text-primary); text-decoration: none; font-weight: 600; }
.cpage-news-item a:hover { color: var(--accent); }
.cpage-news-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.cpage-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px;
  text-align: center;
  background: var(--bg-secondary);
}
.cpage-footer-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.cpage-footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.cpage-footer-links a:hover { color: var(--accent); }
.cpage-footer-copy { font-size: 12px; color: var(--text-muted); }
/* CTA may wrap an <a> (quiz pages) — force dark button text, not link-green. */
/* CTA text must stay dark-on-green whether the anchor IS the .cpage-cta or is
   nested inside it — outrank the .cpage-main a link color. */
.cpage-main a.cpage-cta,
.cpage-cta a { color: var(--bg-primary); text-decoration: none; }

/* ── Threat board (openspec/changes/threat-board task 4.3) ──────────────────────────────
   This whole family only ever ships on a page.php route (/threats/*), which loads only
   style.css — css/app.css is the SPA's (index.php's) own stylesheet and is never linked
   here, so threat-board rules live in this file, not app.css, matching the existing
   .cpage-* convention (style.css:7073+). Mobile overrides are in the TRAILING ≤932px
   block at the end of this file, per the project rule — never here. */
.threats-headline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.threats-headline-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px 14px; }
.threats-headline-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.threats-headline-nums { display: flex; gap: 10px; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-primary); }
.threats-tsla { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-secondary); margin: 10px 0 0; }
.threats-tsla strong { color: var(--accent); }
.threats-status { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-secondary); margin: 6px 0 14px; }

/* Attack weather strip (owner item 4, 2026-10-04) */
.threats-weather { margin: 18px 0; }
.threats-weather-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.threats-weather-list li { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-secondary); }

.threats-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.threats-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-secondary); }
.threats-chip-tier { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.threats-tier-blocked { color: var(--error); border-color: var(--error-dim); background: var(--error-dim); }
.threats-tier-listed { color: var(--warning); border-color: var(--warning-dim); background: var(--warning-dim); }
.threats-tier-recorded { color: var(--text-muted); }
.threats-chip-level { color: var(--accent); border-color: var(--accent-border); background: var(--accent-dim); }
.threats-chip-removed { color: var(--text-muted); border-style: dashed; background: transparent; }

.threats-muted { color: var(--text-muted); font-size: 13px; }

.threats-lookup { margin: 28px 0; }
.threats-lookup-result { font-family: 'JetBrains Mono', monospace; font-size: 13px; min-height: 1.4em; margin-top: 8px; }
.threats-lookup-result a { color: var(--accent); }

.threats-wire-table, .threats-wanted-table, .threats-hoster-table, .threats-matrix-table,
.threats-asn-table, .threats-country-table, .threats-asn-ip-table, .threats-evidence-table,
.threats-report-table, .threats-enrich-table, .threats-about-table, .threats-ai-crawler-table {
  width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 13px;
}
.threats-wire-table th, .threats-wanted-table th, .threats-hoster-table th, .threats-matrix-table th,
.threats-asn-table th, .threats-country-table th, .threats-asn-ip-table th, .threats-evidence-table th,
.threats-report-table th, .threats-enrich-table th, .threats-about-table th, .threats-ai-crawler-table th {
  text-align: left; color: var(--text-muted); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--border-color); white-space: nowrap;
}
.threats-wire-table td, .threats-wanted-table td, .threats-hoster-table td, .threats-matrix-table td,
.threats-asn-table td, .threats-country-table td, .threats-asn-ip-table td, .threats-evidence-table td,
.threats-report-table td, .threats-enrich-table td, .threats-about-table td, .threats-ai-crawler-table td {
  padding: 6px 10px; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); vertical-align: top;
}
.threats-wire-table a, .threats-wanted-table a, .threats-asn-table a, .threats-asn-ip-table a { color: var(--accent); text-decoration: none; }
.threats-evidence-line code, .threats-enrich-table code { font-family: 'JetBrains Mono', monospace; font-size: 12px; word-break: break-word; color: var(--text-primary); }
.threats-enrich-table th { width: 160px; }

.threats-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 640px; }
.threats-timeline-row { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 10px; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--text-secondary); }
.threats-timeline-bar-track { background: var(--bg-card); border-radius: 3px; height: 8px; overflow: hidden; }
.threats-timeline-bar { display: block; height: 100%; background: var(--accent); }

.threats-refs { font-size: 13px; color: var(--text-secondary); }
.threats-refs a { color: var(--accent); }

.threats-dispute, .threats-campaign { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px 14px; font-size: 13px; color: var(--text-secondary); margin: 14px 0; }
.threats-dispute code { font-family: 'JetBrains Mono', monospace; color: var(--text-primary); }

.threats-plain-list { margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 13px; }
.threats-plain-list li { margin-bottom: 4px; }

.threats-about-code { margin: 10px 0 20px; background: #0a0a0a; border: 1px solid var(--border-color); border-radius: 8px; padding: 14px; font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 12.5px; line-height: 1.5; color: #aaa; white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
.threats-about-code code { font-family: inherit; }


.threats-chart-fallback summary { cursor: pointer; color: var(--text-secondary); font-size: 13px; }

/* ── Accessibility fixes (audit 2026-08-14) ─────────────────────────────── */
/* Contrast: --text-muted (#6e7681) fails AA (3.5-4.1:1). Use --text-secondary
   (#8b949e, 5.2-6.4:1) for real textual content. */
.news-time, .news-read-more, .cpage-crumbs, .cpage-crumbs a, .cpage-card-desc,
.cpage-footer-copy, .qpo-letter, .cpage-news-meta { color: var(--text-secondary); }
.news-read-more { opacity: 1; }

/* Visible focus rings — match the site's own .rail-item:focus-visible pattern
   instead of relying on a 1px border-color swap. */
.tool-input:focus-visible, .form-input:focus-visible, .auth-input:focus-visible,
.profile-input:focus-visible, .news-search-input:focus-visible,
.emp-form-input:focus-visible, .emp-form-select:focus-visible,
.emp-form-textarea:focus-visible, .emp-filter-chip select:focus-visible,
.cpage-tool-form input:focus-visible, .cpage-tool-form button:focus-visible,
.cpage-nav a:focus-visible, .cpage-card:focus-visible,
.cpage-news-item a:focus-visible, .cpage-crumbs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Focus-visible fallback (2026-09-26). Buttons, links and tabs that had no ring
   of their own fell back to the UA default, which resolves to ~rgb(16,16,16) on
   this near-black shell and is invisible in practice (verified on .go-btn,
   .term-group, .term-tab, .tool-btn-special, a.logo). Anything that already
   declares its own ring above keeps it; :focus-visible means pointer users see
   nothing new. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Numerals in the footer counters and stat tiles are compared column-to-column
   and tick live, so they need fixed-width digits to stop the row jittering. */
.stat-val, .stat-value, .stats-value,
.footer-left .stat-val, .qp-stat-val {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Tap targets ≥24px tall (WCAG 2.5.8) on the small chip/pill controls. */
.news-chip, .news-chips-toggle { padding-top: 6px; padding-bottom: 6px; }
.news-cve-toggle { min-height: 24px; }
.qp-mode-row .quiz-pill { padding-top: 7px; padding-bottom: 7px; }

/* Reduced motion: neutralise every infinite/decorative animation at once
   (standard nuke). Only 1 of 17 animated rules honored it before. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Motion: gentle entrance for news items (respects the reduced-motion nuke above). */
@keyframes newsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.news-item { animation: newsIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.news-item:hover { transform: translateY(-1px); }

/* Slim assessment sign-in banner (guests browse roles, sign in to start). */
.assess-auth-note {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-secondary));
  border: 1px solid var(--accent-border);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 12px;
  font-size: 13px; color: var(--text-secondary);
}
.assess-auth-note span { flex: 1 1 220px; }



