/* ==========================================================================
   Cyber Security Global Intelligence

   Editorial light theme: white ground, charcoal text, deep green accent
   carried over from the logo. Grotesque headlines, serif body for reading,
   monospace reserved for data — CVE identifiers, timestamps, labels.
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #f7f8f7;
  --surface-2: #eef1ef;
  --line: #dce1dd;
  --line-soft: #e9ede9;

  --fg: #15181a;
  --fg-soft: #333d37;
  --muted: #5c6962;
  --muted-dim: #6f7b74;

  --accent: #0b7a3b;
  --accent-bright: #0e9449;
  --accent-tint: #e8f4ec;
  --accent-edge: #b4ddc4;

  --critical: #c21d33;
  --high: #b2560a;
  --medium: #86680a;
  --low: #1a6ba4;

  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- utility bar ---------- */

.utility {
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}
.utility .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  padding-block: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--muted-dim);
}
.utility strong { color: var(--muted); font-weight: 500; }

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
  vertical-align: 1px;
}
.status-dot.stale { background: var(--high); }
.status-dot.down  { background: var(--critical); }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 15px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand svg { color: var(--accent); display: block; flex: 0 0 auto; }
.brand-type { display: flex; flex-direction: column; line-height: 1.05; }
.brand-type .l1,
.brand-type .l2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.brand-type .l1 { color: var(--fg); }
.brand-type .l2 { color: var(--accent); }

nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 2px;
  margin-left: auto;
}
nav.primary a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: var(--radius);
}
nav.primary a:hover { color: var(--accent); background: var(--accent-tint); }
nav.primary a[aria-current="page"] { color: #fff; background: var(--accent); }

/* ---------- ticker ---------- */

.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.ticker-label {
  flex: 0 0 auto;
  background: var(--critical);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  display: flex;
  align-items: center;
  padding-inline: 14px;
  padding-left: max(14px, env(safe-area-inset-left, 0px));
}
.ticker-track { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.ticker-run {
  display: flex;
  gap: 40px;
  width: max-content;
  padding-block: 8px;
  animation: csgi-slide 60s linear infinite;
}
.ticker-run a {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--fg-soft);
  white-space: nowrap;
  text-decoration: none;
}
.ticker-run a:hover { color: var(--accent); }
.ticker-run b {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--critical);
}
@keyframes csgi-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker:hover .ticker-run { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .ticker-run { animation: none; }
  .ticker-track { overflow-x: auto; }
}

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius);
  white-space: nowrap;
  color: #fff;
}
.chip.critical { background: var(--critical); }
.chip.high     { background: var(--high); }
.chip.medium   { background: var(--medium); }
.chip.low      { background: var(--low); }
.chip.official { background: var(--accent); }
.chip.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

.section-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 9px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-bar h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0;
}
.section-bar .rule { flex: 1 1 auto; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.panel-head h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0;
  color: var(--fg);
}
.panel-head .count { font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-weight: 700; }
.panel-body { padding: 2px 16px 12px; }

.rail { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* ---------- hero ---------- */

.hero { padding-block: 32px 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 34px;
}
/* Flex column so the byline can anchor to the bottom, keeping the lead and
   the sidebar rail ending on the same line however short the standfirst is. */
.lead { min-width: 0; display: flex; flex-direction: column; }
.sev-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.lead h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 800;
  letter-spacing: -1.1px;
  line-height: 1.08;
  margin: 0 0 16px;
  text-wrap: balance;
}
.lead h1 a { text-decoration: none; }
.lead h1 a:hover { color: var(--accent); }
.lead .dek {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-soft);
  margin: 0 0 18px;
  max-width: 60ch;
}
.byline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.3px;
  color: var(--muted-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: auto;
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.byline a { color: var(--accent); text-decoration: none; font-weight: 500; }
.byline a:hover { text-decoration: underline; }

/* ---------- KEV entries ---------- */

.kev {
  display: block;
  text-decoration: none;
  padding-block: 12px;
  border-top: 1px solid var(--line-soft);
}
.kev:first-child { border-top: 0; }
.kev-id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2px;
}
.kev-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.32;
  margin: 3px 0 6px;
  color: var(--fg);
}
.kev:hover .kev-title { color: var(--accent); }
.kev-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3px;
  color: var(--muted-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

/* ---------- wire cards ---------- */

.feed-section { padding-block: 38px 16px; }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 14px;
  text-decoration: none;
  display: inline-block;
}
.filters a:hover { color: var(--accent); border-color: var(--accent-edge); background: var(--accent-tint); }
.filters a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.searchbox {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0 12px;
  border-radius: 100px;
  min-width: 0;
}
.searchbox .prompt { color: var(--muted-dim); font-family: var(--font-mono); font-size: 13px; }
.searchbox input {
  background: transparent;
  border: 0;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 14px;
  padding: 8px 0;
  width: 190px;
  max-width: 44vw;
}
.searchbox input::placeholder { color: var(--muted-dim); }
.searchbox input:focus { outline: none; }

.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 38px;
  align-items: start;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
article.card {
  background: var(--bg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
article.card:hover { background: var(--surface); }
.card .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.3px;
  margin: 0;
  text-wrap: balance;
}
.card h3 a { text-decoration: none; }
.card:hover h3 a { color: var(--accent); }
.card p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.card .foot {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3px;
  color: var(--muted-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.card .foot .cve { color: var(--accent); font-weight: 500; }

.empty {
  grid-column: 1 / -1;
  background: var(--bg);
  padding: 44px 20px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.empty code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 2px 7px;
  border-radius: var(--radius);
}

/* ---------- pagination ---------- */

.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding-block: 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.pager a, .pager span {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  text-decoration: none;
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.pager a:hover { color: var(--accent); border-color: var(--accent-edge); background: var(--accent-tint); }
.pager .current { color: #fff; background: var(--accent); border-color: var(--accent); }
.pager .disabled { opacity: 0.4; }

/* ---------- newsletter ---------- */

.signup {
  border: 1px solid var(--accent-edge);
  border-radius: var(--radius);
  background: var(--accent-tint);
  padding: 20px 18px;
}
.signup h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 7px;
  color: var(--fg);
}
.signup p {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-soft);
}
.signup form { display: flex; flex-direction: column; gap: 9px; }
.signup label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.signup input[type="email"] {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 15px;
  padding: 11px 12px;
  border-radius: var(--radius);
  width: 100%;
}
.signup button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 12px 14px;
  cursor: pointer;
  min-height: 44px;
}
.signup button:hover { background: var(--accent-bright); }

.flash {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
}
.flash.ok   { color: #0a5f2f; background: #e4f3ea; border: 1px solid var(--accent-edge); }
.flash.warn { color: #8a4208; background: #fdf1e3; border: 1px solid #f0d2ab; }
.flash.err  { color: #99162a; background: #fdeaed; border: 1px solid #f2c0c8; }

/* ---------- article (original posts) ---------- */

.article { padding-block: 36px; }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.prose { min-width: 0; max-width: 68ch; }
.prose h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -1.1px;
  line-height: 1.1;
  margin: 0 0 16px;
  text-wrap: balance;
}
.prose .dek {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg-soft);
  margin: 0 0 18px;
}
.prose h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 40px 0 12px;
  text-wrap: balance;
}
.prose h3 { font-size: 20px; font-weight: 700; margin: 30px 0 10px; }
.prose p,
.prose li {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
}
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-bright); }
.prose blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  color: var(--fg-soft);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: var(--radius);
  color: #0a5f2f;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin: 0 0 22px;
}
.prose pre code { background: none; padding: 0; color: var(--fg-soft); font-size: 13.5px; }
.prose img { border: 1px solid var(--line); border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.table-scroll { overflow-x: auto; margin-bottom: 22px; }

/* ---------- KEV table ---------- */

.kev-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table.kev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 760px;
}
table.kev-table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 12px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.kev-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.kev-table tr:last-child td { border-bottom: 0; }
table.kev-table tr:hover td { background: var(--surface); }
table.kev-table .cve {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  font-size: 13px;
}
table.kev-table .vendor { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
table.kev-table .date { font-family: var(--font-mono); font-size: 12px; color: var(--muted-dim); white-space: nowrap; }
table.kev-table .name { font-weight: 600; }
table.kev-table .desc { font-family: var(--font-serif); color: var(--muted); font-size: 14.5px; margin-top: 5px; line-height: 1.45; }

/* ---------- advisory strip ---------- */

.strip { border-block: 1px solid var(--line); background: var(--surface); margin-top: 44px; }
.strip .wrap { padding-block: 32px; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.strip h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 11px;
}
.strip ul { margin: 0; padding-left: 18px; }
.strip li {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.45;
}
.strip li b { color: var(--fg); font-weight: 600; }
.strip li a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); background: var(--surface); }
footer .wrap { padding-block: 36px 42px; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.foot-about p {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--muted);
  margin: 13px 0 0;
  max-width: 46ch;
  line-height: 1.55;
}
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 0 0 12px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { font-size: 14.5px; color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--accent); text-decoration: underline; }
.colophon {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--muted-dim);
}

/* ---------- admin ---------- */

.admin-shell { padding-block: 30px 60px; }
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 26px;
}
.admin-bar h1 { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -0.5px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.btn:hover { color: var(--accent); border-color: var(--accent-edge); background: var(--accent-tint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-bright); color: #fff; }
.btn.danger { color: var(--critical); border-color: #f2c0c8; }
.btn.danger:hover { background: var(--critical); color: #fff; border-color: var(--critical); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
}
.stat { background: var(--bg); padding: 16px 18px; }
.stat .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted-dim);
  display: block;
  margin-bottom: 6px;
}
.stat .value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat .value.warn { color: var(--high); }

.form-grid { display: flex; flex-direction: column; gap: 17px; max-width: 820px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 15px;
  padding: 11px 13px;
  border-radius: var(--radius);
  width: 100%;
}
.field textarea {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  resize: vertical;
  min-height: 420px;
}
.field .hint { font-size: 12.5px; color: var(--muted-dim); line-height: 1.45; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 17px; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.admin-table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
table.admin-table td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.admin-table tr:hover td { background: var(--surface); }
.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius);
}
.badge.published { background: var(--accent); color: #fff; }
.badge.draft { background: var(--surface-2); color: var(--muted); }

.login-shell {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 40px;
}
.login-card { width: 100%; max-width: 380px; }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero-grid,
  .feed-layout,
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-grid { gap: 36px; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .searchbox { margin-left: 0; width: 100%; }
  .searchbox input { width: 100%; max-width: none; }
  nav.primary { margin-left: 0; width: 100%; }
  .ticker-label { padding-inline: 10px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .prose p, .prose li { font-size: 17px; }
}
