/* =========================================================
   EVXL — shared styles
   Mobile-first + light/dark + clean tokens
   ========================================================= */

:root {
  /* ---- light mode (default) ---- */
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-rule: #e6e8ec;
  --bg-elev: #ffffff;

  --ink: #0b1018;
  --ink-2: #2a3140;
  --ink-3: #5b6373;
  --ink-4: #8a92a3;

  --night: #07090f;
  --night-2: #0d1220;
  --night-rule: #1f2536;

  --blue: #1E9BFF;
  --blue-2: #1E9BFF;
  --blue-3: #0A6FC2;
  --blue-soft: #e7f4ff;
  --brand-blue: #1E9BFF;
  --brand-blue-deep: #0A6FC2;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, Menlo, monospace;

  --red: #e23a3a;
  --green: #21c07a;
  --amber: #ffb500;

  /* header / footer always dark for brand consistency */
  --header-bg: #07090f;
  --header-fg: #ffffff;
  --header-rule: #14182a;
  --chip-bg: #11162a;
  --chip-border: #1c2238;

  --shadow-card: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -16px rgba(11,16,24,.18);

  --maxw: 1240px;
  --gutter: 24px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-soft: #0f1422;
  --bg-rule: #1a2038;
  --bg-elev: #0f1422;

  --ink: #e9edf5;
  --ink-2: #c3cadb;
  --ink-3: #8a92a3;
  --ink-4: #6e7794;

  --blue-soft: #0e2548;
  --shadow-card: 0 1px 0 rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.6);
  color-scheme: dark;
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  /* 16px minimum body — Google Search Console legibility requirement */
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* type helpers */
.mono { font-family: var(--font-mono); }
/* All display headlines use Rajdhani — the same family as the wordmark.
   It gives the site a broadcast/airframe feel and ties type to brand. */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.02;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow-link { color: var(--blue); font-weight: 600; }
.section-rail { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.brand {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-mark {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .brand-mark { height: 28px; }
}
@media (max-width: 420px) {
  .brand-mark { height: 26px; }
}

/* =========================================================
   Ticker  (DEALS pill never overlaps with scrolling text)
   ========================================================= */
.ticker {
  background: #000;
  color: #d7dae0;
  border-bottom: 1px solid #1a1d24;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  height: 30px;
  display: flex;
  align-items: stretch;
}
.ticker-tag {
  background: var(--amber);
  color: #1a1300;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 0 14px;
  display: flex; align-items: center;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}
.ticker-mask {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  /* fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 32px), transparent 100%);
}
.ticker-track {
  display: inline-flex;
  gap: 28px;
  padding-left: 18px;
  white-space: nowrap;
  animation: ticker-scroll 90s linear infinite;
}
.ticker-item {
  display: inline-flex; gap: 8px; align-items: baseline;
  text-decoration: none; color: inherit;
  transition: opacity .15s;
}
.ticker-item:hover { opacity: 0.7; }
.ticker-item .sym { color: #fff; font-weight: 600; letter-spacing: 0.08em; }
.ticker-item .pos { color: var(--green); }
.ticker-item .neg { color: #ff5b5b; }
.ticker-item .mut { color: #6b7280; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 540px) {
  .ticker { height: 28px; font-size: 10.5px; }
  .ticker-tag { padding: 0 10px; }
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  background: var(--header-bg);
  color: var(--header-fg);
  border-bottom: 1px solid var(--header-rule);
  position: sticky; top: 0; z-index: 30;
}
.site-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 18px;
}
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #d2d6df;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.icon-btn[aria-pressed="true"] { background: rgba(255,255,255,.08); color: #fff; }

.theme-toggle .sun, .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon,
:root:not([data-theme]) .theme-toggle .moon { display: block; }

.menu-btn { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
}

.nav {
  display: flex; align-items: center;
  flex: 1;
  justify-content: space-between;
  margin: 0 28px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav a { color: #d2d6df; padding: 6px 0; position: relative; }
.nav a:hover { color: #fff; }
.nav a.active { color: var(--blue-2); }
.nav a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -19px; height: 2px;
  background: var(--blue-2);
}
@media (max-width: 980px) {
  .nav { display: none; }
}

.header-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 6px;
  padding: 7px 14px 7px 12px;
  color: #aeb4c2;
  font-size: 13px;
  min-width: 240px;
}
.search input {
  background: transparent; border: 0; outline: 0; color: #fff;
  font: inherit; flex: 1; min-width: 0;
}
@media (max-width: 1100px) {
  .search { min-width: 0; width: 180px; }
}
@media (max-width: 780px) {
  .search { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background .15s;
  min-height: 40px;
}
.header-right .btn { min-width: 160px; }
.btn:hover { background: var(--blue-2); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--bg-rule);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-dark { background: #11162a; border: 1px solid #1c2238; color: #fff; }
.btn-dark:hover { background: #182040; }
@media (max-width: 540px) {
  .header-right .btn { padding: 9px 14px; font-size: 11px; }
}
@media (max-width: 420px) {
  .header-right .btn { display: none; }
}

/* =========================================================
   Mobile drawer
   ========================================================= */
.drawer {
  position: fixed; inset: 0;
  background: rgba(4,7,13,.6);
  backdrop-filter: blur(6px);
  z-index: 60;
  display: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.drawer.open { display: block; opacity: 1; }
.drawer-panel {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: min(86vw, 360px);
  background: #07090f;
  color: #fff;
  padding: 22px 22px 28px;
  display: flex; flex-direction: column; gap: 24px;
  transform: translateX(-100%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid #14182a;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #fff;
}
.drawer-nav a:hover { color: var(--blue-2); }
.drawer-nav a .meta {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #6e7794;
  font-weight: 400;
}
.drawer-foot {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #6e7794;
  margin-top: auto;
}
.drawer-search {
  display: flex; align-items: center; gap: 8px;
  background: #11162a;
  border: 1px solid #1c2238;
  border-radius: 6px;
  padding: 11px 14px;
  color: #aeb4c2;
  font-size: 14px;
}
.drawer-search input {
  background: transparent; border: 0; outline: 0; color: #fff;
  font: inherit; flex: 1; min-width: 0;
}

/* =========================================================
   Tags  — default is now a SUBTLE label (mono uppercase + colored
   square). For loud cases, add .solid (used on the article-hero
   page badge, wire-row beat chips, and any explicit override).
   ========================================================= */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-3);
  line-height: 1;
  border: 0;
}
.tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--ink-3);
  flex-shrink: 0;
}
.tag.blue::before   { background: var(--brand-blue); }
.tag.red::before    { background: var(--red); }
.tag.amber::before  { background: var(--amber); }
.tag.green::before  { background: var(--green); }
.tag.purple::before { background: #7e57f0; }
.tag.pink::before   { background: #e25ea3; }
.tag.slate::before  { background: #3a4356; }
.tag.outline::before { background: var(--brand-blue); }

/* On dark backgrounds, subtle tags need lighter text */
.section-dark .tag:not(.solid) { color: rgba(255,255,255,.6); }

/* Solid pill modifier — loud category chip */
.tag.solid {
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
}
.tag.solid::before { display: none; }
.tag.solid.blue   { background: var(--brand-blue); color: #fff; }
.tag.solid.red    { background: var(--red); color: #fff; }
.tag.solid.amber  { background: var(--amber); color: #1a1300; }
.tag.solid.green  { background: var(--green); color: #fff; }
.tag.solid.purple { background: #7e57f0; color: #fff; }
.tag.solid.pink   { background: #e25ea3; color: #fff; }
.tag.solid.slate  { background: #3a4356; color: #fff; }

/* Promote specific places back to solid via descendant rules */
.wire-row .cat .tag,
.article-hero .tag {
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
}
.wire-row .cat .tag::before,
.article-hero .tag::before { display: none; }
.wire-row .cat .tag.blue,   .article-hero .tag.blue   { background: var(--brand-blue); }
.wire-row .cat .tag.red,    .article-hero .tag.red    { background: var(--red); }
.wire-row .cat .tag.amber,  .article-hero .tag.amber  { background: var(--amber); color: #1a1300; }
.wire-row .cat .tag.green,  .article-hero .tag.green  { background: var(--green); }
.wire-row .cat .tag.purple, .article-hero .tag.purple { background: #7e57f0; }
.wire-row .cat .tag.pink,   .article-hero .tag.pink   { background: #e25ea3; }
.wire-row .cat .tag.slate,  .article-hero .tag.slate  { background: #3a4356; }

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* placeholder images */
.ph {
  position: relative;
  background:
    radial-gradient(120% 80% at 30% 20%, #1a2c52 0%, #0a1024 60%, #060912 100%);
  overflow: hidden;
  isolation: isolate;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  pointer-events: none;
  z-index: 1;
}
/* Real image overlay inside .ph — fades in on load. */
.ph img.cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  opacity: 0;
  transition: opacity .4s ease;
}
.ph img.cover.loaded { opacity: 1; }
.ph.red   { background: radial-gradient(120% 80% at 30% 20%, #5a1d23 0%, #2a0a0e 60%, #14070a 100%); }
.ph.blue  { background: radial-gradient(120% 80% at 30% 20%, #1f4faa 0%, #0e1e4a 60%, #06102a 100%); }
.ph.steel { background: radial-gradient(120% 80% at 30% 20%, #344a72 0%, #1b2436 60%, #0d1320 100%); }
.ph.olive { background: radial-gradient(120% 80% at 30% 20%, #4a5236 0%, #1f2614 60%, #0e1208 100%); }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 28px var(--gutter) 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
}
.hero-main { display: flex; flex-direction: column; }
.hero-img {
  aspect-ratio: 16/9;
  border-radius: 6px;
  position: relative;
}
/* Live badge moved to TOP-LEFT so it doesn't collide with anything */
.hero-img .live-badge {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff; padding: 5px 9px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  border-radius: 3px;
  z-index: 2;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: pulse 1.5s infinite;
}
.hero-body { padding-top: 20px; }
.hero-body .eyebrow { color: var(--blue); font-weight: 700; margin-bottom: 14px; display: block; }
.hero-body h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.hero-body h1 a { color: inherit; }
.hero-body p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 64ch;
}
.hero-body .read-time-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-soft);
  color: var(--brand-blue-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  margin-right: 8px;
}
[data-theme="dark"] .hero-body .read-time-chip { color: #6db4ff; }
.byline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap;
}
.byline .author { color: var(--ink); font-weight: 700; }
.byline .dot { width: 3px; height: 3px; background: var(--ink-4); border-radius: 50%; }

.hero-side { display: flex; flex-direction: column; gap: 22px; }
.top-stories {
  border: 1px solid var(--bg-rule);
  border-radius: 6px;
  background: var(--bg-elev);
}
.top-stories-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-rule);
}
.top-stories-head .live {
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 3px 7px; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 6px;
}
.top-stories-head .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 700;
}
.top-stories ol { list-style: none; margin: 0; padding: 4px 0; }
.top-stories li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-rule);
}
.top-stories li:last-child { border-bottom: 0; }
.top-stories .num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 18px;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.top-stories .ts-title {
  font-size: 14px;
  line-height: 1.32;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.top-stories .ts-meta {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
[data-theme="light"] .top-stories li:hover,
:root:not([data-theme]) .top-stories li:hover { background: var(--bg-soft); }
[data-theme="dark"] .top-stories li:hover { background: #0c1120; }

.spons {
  border-radius: 6px;
  background: linear-gradient(135deg, #0c2e74 0%, #1a4ec3 50%, #2773ee 100%);
  color: #fff;
  padding: 22px 22px 24px;
  position: relative;
  overflow: hidden;
}
.spons::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 90% 10%, rgba(255,255,255,.15), transparent 60%);
  pointer-events: none;
}
.spons .pill-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
}
.spons .pill-row .pill {
  border: 1px solid rgba(255,255,255,.35);
  padding: 3px 8px; border-radius: 2px;
}
.spons .pill-row .pill.amber { background: var(--amber); border-color: var(--amber); color: #1a1300; font-weight: 700; }
.spons h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.spons p { font-size: 13px; opacity: 0.85; margin: 0 0 18px; max-width: 30ch; }
.spons .cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue-3);
  padding: 9px 14px; border-radius: 4px;
  font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.spons .fine {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  opacity: 0.5;
}

@media (max-width: 820px) {
  .hero { padding: 22px var(--gutter) 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-body h1 { font-size: 30px; }
  .hero-body p { font-size: 15px; }
}

/* =========================================================
   THE WIRE
   ========================================================= */
.wire { padding: 36px var(--gutter); }
.wire-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 4px;
}
.wire-head .title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.wire-head .dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse 1.5s infinite; }
.wire-head nav {
  display: flex; gap: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  overflow-x: auto;
}
.wire-head nav a { white-space: nowrap; }
.wire-head nav a.active { color: var(--blue); }

.wire-row {
  display: grid;
  grid-template-columns: 100px 60px 1fr 160px;
  gap: 18px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--bg-rule);
  font-size: 15px;
}
.wire-row .replies { display: none; }
.wire-row:hover { background: var(--bg-soft); }
.wire-row.head {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-4);
  padding: 10px 4px;
}
.wire-row.head:hover { background: transparent; }
.wire-row .time {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink-2);
}
.wire-row .time .sub { display: block; color: var(--ink-4); font-size: 10px; }
.wire-row .cat { display: flex; }
.wire-row .head-title { font-weight: 600; color: var(--ink); }
.wire-row .head-title:hover { color: var(--blue); }
.wire-row .reporter {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-3);
}
.wire-row .replies {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}

@media (max-width: 820px) {
  /* Mobile: each row becomes a stacked card */
  .wire-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "tag time"
      "title title"
      "meta meta";
    gap: 6px 12px;
    padding: 14px 0;
  }
  .wire-row.head { display: none; }
  .wire-row .cat { grid-area: tag; }
  .wire-row .time { grid-area: time; text-align: right; font-size: 11px; }
  .wire-row .time .sub { display: inline; margin-left: 6px; }
  .wire-row .head-title {
    grid-area: title;
    font-family: var(--font-sans);
    font-size: 16px; line-height: 1.28;
    font-weight: 700; letter-spacing: -0.01em;
  }
  .wire-row .reporter { grid-area: meta; font-size: 10px; }
  .wire-row .replies { grid-area: meta; justify-self: end; }
  .wire-row .reporter::after { content: " · "; color: var(--ink-4); }
  .wire-row .replies::before { content: "💬 "; }
}

.wire-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  gap: 12px;
  flex-wrap: wrap;
}
.pager { display: flex; gap: 4px; align-items: center; }
.pager a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--bg-rule);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}
.pager a.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager a:hover:not(.active) { background: var(--bg-soft); }

/* =========================================================
   3-up cards
   ========================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 36px 0;
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; gap: 28px; padding: 24px 0; }
}

.card-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: end;
}
.card-news > .img {
  grid-column: 1 / -1; grid-row: 1;
  aspect-ratio: 16/9;
  border-radius: 5px;
  margin-bottom: 14px;
}
.card-news > h3 {
  grid-column: 1 / -1; grid-row: 2;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 10px;
  text-wrap: balance;
}
.card-news h3 a { color: var(--ink); }
.card-news h3 a:hover { color: var(--blue); }
.card-news > .byline {
  grid-column: 1; grid-row: 3;
  font-size: 10px;
}
.card-news > .tag {
  grid-column: 2; grid-row: 3;
  justify-self: end; align-self: center;
  margin: 0;
}

/* =========================================================
   Featured story
   ========================================================= */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  padding: 8px 0 48px;
  border-bottom: 1px solid var(--bg-rule);
}
.feature .img { aspect-ratio: 16/10; border-radius: 6px; }
.feature .body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: end;
  padding-top: 6px;
}
.feature .body > h2 {
  grid-column: 1 / -1; grid-row: 1;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.feature .body > p {
  grid-column: 1 / -1; grid-row: 2;
  color: var(--ink-2); margin: 0 0 16px;
  font-size: 15px; line-height: 1.55;
}
.feature .body > .byline { grid-column: 1; grid-row: 3; }
.feature .body > .tag {
  grid-column: 2; grid-row: 3;
  justify-self: end; align-self: center;
  margin: 0;
}
.feature h2 a { color: var(--ink); }
.feature h2 a:hover { color: var(--blue); }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 16px; padding: 8px 0 32px; }
  .feature h2 { font-size: 26px; }
}

/* =========================================================
   Ad slot
   ========================================================= */
.adslot { padding: 24px 0; }
.adslot-inner {
  height: 96px;
  border: 1px dashed var(--bg-rule);
  background: var(--bg-soft);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.adslot-inner .sz { color: var(--ink-3); font-weight: 700; }
@media (max-width: 540px) {
  .adslot-inner { height: 100px; }
}

/* =========================================================
   Dark themed verticals (Conflict Watch, DJI Watch)
   ========================================================= */
.section-dark {
  background: #04070d;
  color: #fff;
}
.section-dark .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--gutter) 44px;
}
.section-dark .section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid #131726;
  gap: 16px;
  flex-wrap: wrap;
}
.section-dark .section-head .title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  color: #fff;
}
.section-dark .section-head .accent {
  width: 6px; height: 22px; background: var(--red);
}
.section-dark.djilink .section-head .accent { background: var(--blue); }
.section-dark .section-head .pill {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  border: 1px solid #2a3045;
  padding: 4px 8px; border-radius: 2px;
  color: #9aa3b9;
  display: inline-flex; align-items: center; gap: 6px;
}
.section-dark .section-head .pill .live-dot { width: 6px; height: 6px; }
.section-dark .section-head nav {
  display: flex; gap: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7491;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-dark .section-head nav::-webkit-scrollbar { display: none; }
.section-dark .section-head nav a { white-space: nowrap; }
.section-dark .section-head nav a:hover { color: #fff; }
.section-dark .layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0 0;
}
.section-dark .stack { display: flex; flex-direction: column; gap: 22px; }
.section-dark .dcard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: end;
}
.section-dark .dcard > .img {
  grid-column: 1 / -1; grid-row: 1;
  aspect-ratio: 4/3;
  border-radius: 4px;
  margin-bottom: 12px;
}
.section-dark .dcard > h3 {
  grid-column: 1 / -1; grid-row: 2;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.12; letter-spacing: 0.005em;
  margin: 0 0 6px;
  color: #fff;
}
.section-dark .dcard h3 a { color: inherit; }
.section-dark .dcard h3 a:hover { color: var(--blue-2); }
.section-dark .dcard > .byline { grid-column: 1; grid-row: 3; color: #6b7491; }
.section-dark .dcard > .tag {
  grid-column: 2; grid-row: 3;
  justify-self: end; align-self: center;
  margin: 0;
}
.section-dark .big {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 22px 0 12px;
}
.section-dark .big .img { aspect-ratio: 16/9; border-radius: 6px; }
.section-dark .big h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1.04; letter-spacing: 0.005em;
  margin: 14px 0 12px;
  color: #fff;
  text-wrap: balance;
}
.section-dark .big h2 a { color: inherit; }
.section-dark .big p { color: #aeb6cc; margin: 0 0 14px; font-size: 14px; line-height: 1.55; }

@media (max-width: 980px) {
  .section-dark .layout { grid-template-columns: 1fr 1fr; }
  .section-dark .layout > .dcard:first-child { grid-column: 1/-1; }
  .section-dark .big { grid-template-columns: 1fr; gap: 16px; }
  .section-dark .big h2 { font-size: 24px; }
}
.section-dark .layout.three-equal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 18px 0 0;
  margin-top: 14px;
  border-top: 1px solid #131726;
  align-items: start;
}
.section-dark .layout.three-equal > .dcard { align-items: end; }
.section-dark .layout.three-equal > .dcard:first-child { grid-column: auto; }
.section-dark .layout.three-equal .dcard > .img {
  aspect-ratio: 16/10;
  width: 100%;
}
/* min-height for the h3 ensures all 3 cards' content blocks align uniformly
   even when titles wrap to different number of lines. */
.section-dark .layout.three-equal .dcard > h3 {
  min-height: calc(1.12em * 3);
}

@media (max-width: 980px) {
  .section-dark .layout.three-equal { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section-dark .layout.three-equal { grid-template-columns: 1fr; }
}

/* =========================================================
   Lead card variant (top-left big card with excerpt paragraph)
   ========================================================= */
.dcard.lead > p {
  grid-column: 1 / -1; grid-row: 3;
  color: rgba(255,255,255,.7);
  font-size: 14.5px; line-height: 1.6;
  margin: 4px 0 12px;
}
.dcard.lead > .byline { grid-row: 4; }
.dcard.lead > .tag { grid-row: 4; }

/* =========================================================
   SECTION-LIGHT — light-themed dark-sibling (DJI Rumors)
   Uses same internal structure as .section-dark, but white bg.
   ========================================================= */
.section-light {
  background: var(--bg-soft);
  color: var(--ink);
  border-top: 1px solid var(--bg-rule);
  border-bottom: 1px solid var(--bg-rule);
}
.section-light .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--gutter) 44px;
}
.section-light .section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--bg-rule);
  gap: 16px; flex-wrap: wrap;
}
.section-light .section-head .title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--ink);
}
.section-light .section-head .accent {
  width: 6px; height: 22px; background: var(--brand-blue);
}
.section-light .section-head .pill {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  border: 1px solid var(--bg-rule);
  padding: 4px 8px; border-radius: 2px;
  color: var(--ink-3);
}
.section-light .section-head nav {
  display: flex; gap: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  overflow-x: auto;
  scrollbar-width: none;
}
.section-light .section-head nav::-webkit-scrollbar { display: none; }
.section-light .section-head nav a { white-space: nowrap; }
.section-light .section-head nav a:hover { color: var(--ink); }

/* Equal-size grid: 3 columns, each with the same aspect-ratio image */
.section-light .layout.three-equal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 22px 0 0;
  align-items: start;
}
.section-light .dcard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: end;
}
.section-light .dcard > .img {
  grid-column: 1 / -1; grid-row: 1;
  aspect-ratio: 16/10;
  border-radius: 5px;
  margin-bottom: 12px;
}
.section-light .dcard > h3 {
  grid-column: 1 / -1; grid-row: 2;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 6px;
  color: var(--ink);
  min-height: calc(1.12em * 3);
}
.section-light .dcard h3 a { color: inherit; }
.section-light .dcard h3 a:hover { color: var(--brand-blue); }
.section-light .dcard > .byline {
  grid-column: 1; grid-row: 3;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-light .dcard > .tag {
  grid-column: 2; grid-row: 3;
  justify-self: end; align-self: center;
  margin: 0;
}

@media (max-width: 980px) {
  .section-light .layout.three-equal { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section-light .layout.three-equal { grid-template-columns: 1fr; }
}

/* =========================================================
   FAA & Reg lite-three
   ========================================================= */
.lite-three {
  padding: 48px var(--gutter);
  border-top: 1px solid var(--bg-rule);
}
.lite-three .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}
.lite-three .head .title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.lite-three .head .title .accent { width: 6px; height: 22px; background: var(--blue); }
.lite-three .head .meta {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* =========================================================
   Newsletter
   ========================================================= */
.newsband {
  background: linear-gradient(135deg, #08183f 0%, #0e2a73 50%, #1850c4 100%);
  color: #fff;
  margin: 48px 0 0;
  position: relative;
  overflow: hidden;
}
.newsband::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(255,255,255,.12), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.newsband .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--gutter);
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsband .eyebrow { color: rgba(255,255,255,.7); margin-bottom: 14px; display: block; }
.newsband h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 14px;
}
.newsband p { font-size: 14.5px; max-width: 46ch; opacity: 0.85; margin: 0 0 26px; }
.newsband .stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.newsband .stat .n {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.newsband .stat .l {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}
.newsband form {
  display: flex; align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  padding: 6px;
  flex-wrap: wrap;
}
.newsband input {
  background: transparent; border: 0; outline: 0;
  color: #fff; font: inherit; font-size: 14px;
  padding: 10px 14px; flex: 1; min-width: 160px;
}
.newsband input::placeholder { color: rgba(255,255,255,.45); }
.newsband form button {
  border: 0;
  background: #2d7df0;
  color: #fff;
  padding: 11px 22px;
  border-radius: 4px;
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  min-height: 44px;
}
.newsband .legal {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  opacity: 0.55;
}

@media (max-width: 820px) {
  .newsband .inner { grid-template-columns: 1fr; gap: 32px; padding: 40px var(--gutter); }
  .newsband h2 { font-size: 28px; }
  .newsband .stats { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Newsroom
   ========================================================= */
.newsroom { padding: 48px var(--gutter); }
.newsroom-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--bg-rule);
  padding-bottom: 14px;
  gap: 16px;
}
.newsroom-head .title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.newsroom-head .title .accent { width: 6px; height: 22px; background: var(--ink); }
.newsroom-head .meta {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.newsroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 48px;
}
.story-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--bg-rule);
  align-items: center;
}
.story-row .img { aspect-ratio: 16/10; border-radius: 5px; }
.story-row > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: end;
}
.story-row > div > h3 {
  grid-column: 1 / -1; grid-row: 1;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 6px;
}
.story-row h3 a { color: var(--ink); }
.story-row h3 a:hover { color: var(--blue); }
.story-row > div > p {
  grid-column: 1 / -1; grid-row: 2;
  color: var(--ink-3); margin: 0 0 8px;
  font-size: 14.5px; line-height: 1.55;
}
.story-row > div > .byline {
  grid-column: 1; grid-row: 3; font-size: 10px;
}
.story-row > div > .tag {
  grid-column: 2; grid-row: 3;
  justify-self: end; align-self: center;
  margin: 0;
}

@media (max-width: 820px) {
  .newsroom-grid { grid-template-columns: 1fr; gap: 36px; }
  .story-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .story-row .img { aspect-ratio: 16/9; }
  .story-row h3 { font-size: 20px; }
}

.sidebar { display: flex; flex-direction: column; gap: 22px; }
.sidebar .panel {
  border: 1px solid var(--bg-rule);
  border-radius: 6px;
  padding: 18px;
  background: var(--bg-elev);
}
.sidebar .panel-head {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.sidebar .panel-head .strong { color: var(--ink); font-weight: 700; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li {
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-rule);
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}
.sidebar li:last-child { border-bottom: 0; }
.sidebar li .ts {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  margin-top: 4px;
  font-weight: 400;
}

.podcast {
  background: #07090f;
  color: #fff;
  border-radius: 6px;
  padding: 18px;
  display: flex; gap: 14px; align-items: center;
}
.podcast .cover {
  width: 72px; height: 72px; border-radius: 4px;
  background: radial-gradient(120% 80% at 30% 20%, #1f4faa 0%, #0e1e4a 60%, #06102a 100%);
  flex-shrink: 0;
  position: relative;
}
.podcast .cover::after {
  content: "▶";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
}
.podcast .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7e8aab;
}
.podcast h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  margin: 6px 0 0;
  color: #fff;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #04070d;
  color: #aeb6cc;
  border-top: 1px solid #11152a;
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px var(--gutter) 28px;
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr) 1.4fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #11152a;
}
.site-footer h5 {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e7794;
  margin: 0 0 14px;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { color: #c9d0e2; font-size: 13px; }
.site-footer ul a:hover { color: #fff; }
.site-footer .blurb { font-size: 13px; color: #7a83a0; max-width: 30ch; line-height: 1.55; margin: 12px 0 0; }
.site-footer .socials {
  display: flex; gap: 12px;
  margin-top: 14px;
}
.site-footer .socials a {
  width: 32px; height: 32px;
  border: 1px solid #1a2038;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #c9d0e2;
}
.site-footer .socials a:hover { background: #11162a; color: #fff; }
.site-footer .nl-form {
  display: flex; gap: 0;
  background: #0d1320; border: 1px solid #1a2038; border-radius: 6px; padding: 4px;
  margin-top: 10px;
}
.site-footer .nl-form input {
  background: transparent; border: 0; outline: 0; color: #fff;
  font: inherit; flex: 1; padding: 8px 10px; font-size: 13px; min-width: 0;
}
.site-footer .nl-form button {
  background: var(--blue); color: #fff; border: 0; padding: 8px 14px;
  border-radius: 4px; font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.site-footer .bottom {
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555e7a;
  gap: 16px; flex-wrap: wrap;
}
.site-footer .bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .bottom nav a:hover { color: #fff; }

@media (max-width: 980px) {
  .site-footer .top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .site-footer .top > div:first-child,
  .site-footer .top > div:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 540px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* =========================================================
   ARTICLE
   ========================================================= */
.article-hero {
  background: linear-gradient(135deg, #04070d 0%, #0a1024 55%, #0d1538 100%);
  color: #fff;
  padding: 36px 0 140px;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(30,155,255,.18), transparent 60%),
    radial-gradient(40% 70% at 12% 90%, rgba(30,155,255,.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.article-hero .inner { position: relative; }
.read-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.read-progress span {
  display: block; height: 100%;
  background: var(--brand-blue);
  width: 0%;
  transition: width 80ms linear;
  box-shadow: 0 0 8px rgba(30,155,255,.5);
}
.article-hero .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.article-hero .crumbs {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #8a92a3;
  margin-bottom: 24px;
}
.article-hero .crumbs a:hover { color: #fff; }
.article-hero .tag { margin-bottom: 22px; }
.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0 0 18px;
  text-wrap: pretty;
  max-width: 30ch;
}
.article-hero .deck {
  font-size: 18px; line-height: 1.5; color: #b6bdd1;
  max-width: 60ch; margin: 0 0 26px;
}
.article-hero .meta {
  display: flex; gap: 24px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #8a92a3;
  flex-wrap: wrap;
}
.article-hero .meta .author { color: #fff; font-weight: 700; }

.article-cover {
  max-width: var(--maxw); margin: -100px auto 0; padding: 0 var(--gutter);
  position: relative; z-index: 2;
}
.article-cover .img { aspect-ratio: 21/9; border-radius: 6px; }
.article-cover .caption {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4); margin-top: 8px; margin-bottom: 0;
}

.article-body {
  max-width: var(--maxw); margin: 32px auto 60px; padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 56px minmax(0, 720px) 300px;
  justify-content: center;
  gap: 32px;
  align-items: start;
}
.article-body > .article-tools { grid-column: 1; grid-row: 1; }
.article-body > .prose { grid-column: 2; grid-row: 1; }
.article-body > .article-sidebar { grid-column: 3; grid-row: 1; }
.article-sidebar {
  align-self: start;
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 18px;
}
.article-sidebar .ad-vertical {
  width: 300px; height: 600px;
  background: var(--bg-soft);
  border: 1px dashed var(--bg-rule);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.article-sidebar .ad-vertical .sz { color: var(--ink-3); font-weight: 700; }
.article-sidebar .trending {
  background: var(--bg-elev);
  border: 1px solid var(--bg-rule);
  border-radius: 6px;
  padding: 16px;
}
.article-sidebar .trending h4 {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
  font-weight: 700;
}
.article-sidebar .trending ol {
  list-style: none; margin: 0; padding: 0;
  counter-reset: trending;
}
.article-sidebar .trending li {
  counter-increment: trending;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-rule);
  font-size: 13.5px; line-height: 1.32;
  font-weight: 600;
  color: var(--ink);
}
.article-sidebar .trending li:last-child { border-bottom: 0; }
.article-sidebar .trending li::before {
  content: counter(trending, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--brand-blue);
  letter-spacing: 0.005em;
}
.article-tools {
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 84px; align-self: start;
}
.article-tools button {
  width: 40px; height: 40px;
  border: 1px solid var(--bg-rule);
  background: var(--bg-elev);
  color: var(--ink-2);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.article-tools button:hover { background: var(--bg-soft); color: var(--ink); }
.article-tools .count {
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
  color: var(--ink-3);
  margin-top: 2px;
}

.prose { font-size: 18px; line-height: 1.7; color: var(--ink); }
[data-theme="dark"] .prose { color: #d2d6df; }
.prose p { margin: 0 0 24px; }
.prose p:first-of-type::first-letter {
  font-family: var(--font-sans);
  font-weight: 800;
  float: left;
  font-size: 70px;
  line-height: 0.85;
  margin: 6px 12px 0 0;
  color: var(--blue);
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 40px 0 14px;
  color: var(--ink);
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.005em;
  margin: 28px 0 10px;
  color: var(--ink);
}
.prose blockquote {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.prose ul { margin: 0 0 24px; padding-left: 22px; }
.prose ul li { margin-bottom: 8px; }
.prose .figure { margin: 32px 0; }
.prose .figure .img { aspect-ratio: 16/9; border-radius: 5px; }
.prose .figure .cap {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-top: 8px;
}
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); border-bottom: 1px solid var(--blue-soft); }
.callout {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  padding: 18px 20px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
[data-theme="dark"] .callout { background: rgba(31,111,229,.08); }
.callout .eyebrow { color: var(--blue); margin-bottom: 6px; display: block; }

.spec-table {
  margin: 28px 0;
  border: 1px solid var(--bg-rule);
  border-radius: 6px;
  overflow: hidden;
  font-size: 14px;
}
.spec-table .row {
  display: grid; grid-template-columns: 1fr 1.4fr;
  border-top: 1px solid var(--bg-rule);
}
.spec-table .row:first-child { border-top: 0; }
.spec-table .row .k {
  background: var(--bg-soft);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 700;
}
.spec-table .row .v { padding: 12px 16px; color: var(--ink); }

.article-foot {
  max-width: 720px; margin: 40px auto; padding: 0 var(--gutter);
  display: flex; flex-direction: column; gap: 16px;
}
.tagline-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tagline-row .chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--bg-soft);
  color: var(--ink-2);
  border-radius: 3px;
}
.author-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px; align-items: center;
  padding: 18px; border: 1px solid var(--bg-rule); border-radius: 6px;
  background: var(--bg-elev);
}
.author-card .ph-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(120% 80% at 30% 20%, #1f4faa 0%, #0e1e4a 60%, #06102a 100%);
}
.author-card .who { font-family: var(--font-sans); font-weight: 700; font-size: 18px; color: var(--ink); }
.author-card .role {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3); margin-top: 4px;
}

.related {
  max-width: var(--maxw); margin: 60px auto 80px; padding: 0 var(--gutter);
}
.related h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--bg-rule);
  padding-bottom: 14px; margin: 0 0 22px;
  color: var(--ink);
}
.related .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

@media (max-width: 1180px) {
  .article-body {
    grid-template-columns: 56px minmax(0, 720px);
  }
  .article-body > .article-tools { grid-column: 1; }
  .article-body > .prose { grid-column: 2; }
  .article-sidebar { display: none; }
}

@media (max-width: 980px) {
  .article-hero { padding: 28px var(--gutter) 110px; }
  .article-hero h1 { font-size: 44px; max-width: none; }
  .article-hero .deck { font-size: 17px; }
  .article-cover { margin-top: -80px; }
  .article-body {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 24px auto 40px;
  }
  /* Reset desktop's explicit row/column pinning so children stack naturally on mobile */
  .article-body > .article-tools,
  .article-body > .prose,
  .article-body > .article-sidebar {
    grid-column: 1;
    grid-row: auto;
  }
  .article-body > .article-sidebar { display: none; }
  .article-tools {
    flex-direction: row;
    position: sticky; top: 60px;
    background: var(--bg);
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-rule);
    margin-bottom: 24px;
    gap: 8px;
    z-index: 4;
  }
  .article-tools .count { display: inline-block; margin: 0 0 0 4px; align-self: center; }
  .related .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .article-hero h1 { font-size: 30px; }
  .article-hero .deck { font-size: 15px; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 24px; }
  .related .grid { grid-template-columns: 1fr; }
  .author-card { grid-template-columns: 56px 1fr; }
  .author-card .btn-ghost { grid-column: 1 / -1; }
}

/* =========================================================
   Homepage hero band — full-bleed dark gradient + pattern
   wraps the hero + first ad
   ========================================================= */
.hero-band {
  position: relative;
  background: linear-gradient(135deg, #04070d 0%, #0a1024 55%, #0d1538 100%);
  color: #fff;
  overflow: hidden;
  padding: 8px 0 18px;
  margin-bottom: 4px;
}
.hero-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(30,155,255,.18), transparent 60%),
    radial-gradient(40% 70% at 12% 90%, rgba(30,155,255,.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 18px);
  pointer-events: none;
  z-index: 0;
}
.hero-band > * { position: relative; z-index: 1; }

/* Hero main column on dark band */
.hero-band .hero-body h1,
.hero-band .hero-body h1 a { color: #fff; }
.hero-band .hero-body h1 a:hover { color: #6db4ff; }
.hero-band .hero-body p { color: #c5cbdc; }
.hero-band .hero-body .eyebrow { color: #6db4ff; }
.hero-band .hero-body .eyebrow-link { color: #6db4ff; }
.hero-band .hero-body .read-time-chip {
  background: rgba(30,155,255,.18);
  color: #9cc8ff;
  border: 1px solid rgba(109,180,255,.25);
}
.hero-band .byline { color: #8a92a3; }
.hero-band .byline .author { color: #c5cbdc; }
.hero-band .byline .dot { background: #4a5269; }

/* Live badge on hero image keeps its red */

/* Top-stories card on dark band — translucent dark variant */
.hero-band .top-stories {
  background: rgba(10,16,36,.55);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-band .top-stories-head {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-band .top-stories-head .label { color: #c5cbdc; }
.hero-band .top-stories li {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-band .top-stories .num { color: #6db4ff; }
.hero-band .top-stories .ts-title,
.hero-band .top-stories .ts-title a { color: #f1f3f8; }
.hero-band .top-stories .ts-title a:hover { color: #6db4ff; }
.hero-band .top-stories .ts-meta { color: #8a92a3; }
.hero-band .top-stories li:hover { background: rgba(255,255,255,.04); }

/* Ad slot inside the band — translucent */
.hero-band-ad { padding-bottom: 8px; }
.hero-band-ad .adslot {
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.18);
}
.hero-band-ad .adslot-inner { color: #8a92a3; }

[data-theme="dark"] .hero-band { background: linear-gradient(135deg, #02040a 0%, #060c1c 55%, #081130 100%); }

/* =========================================================
   CATEGORY (DJI / FAA / etc) — hero with gradient pattern
   ========================================================= */
.cat-hero {
  background: linear-gradient(135deg, #04070d 0%, #0a1024 55%, #0d1538 100%);
  color: #fff;
  padding: 50px 0 36px;
  position: relative;
  overflow: hidden;
}
.cat-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(30,155,255,.18), transparent 60%),
    radial-gradient(40% 70% at 12% 90%, rgba(30,155,255,.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.cat-hero .inner { position: relative; }
.cat-hero .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.cat-hero .crumbs {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #8a92a3; margin-bottom: 22px;
}
.cat-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 80px;
  line-height: 0.96;
  letter-spacing: 0.005em;
  margin: 0 0 14px;
}
.cat-hero .deck {
  color: #b6bdd1; max-width: 60ch;
  font-size: 16px; line-height: 1.55; margin: 0;
}
.cat-hero .stats-row {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #11152a;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.cat-hero .stats-row .n {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.cat-hero .stats-row .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6e7794;
  margin-top: 4px;
}

.cat-toolbar {
  border-bottom: 1px solid var(--bg-rule);
  position: sticky; top: 64px; background: var(--bg); z-index: 5;
}
.cat-toolbar .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 18px;
}
.cat-toolbar .subnav {
  display: flex; gap: 22px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.cat-toolbar .subnav::-webkit-scrollbar { display: none; }
.cat-toolbar .subnav a { white-space: nowrap; }
.cat-toolbar .subnav a.active { color: var(--ink); border-bottom: 2px solid var(--blue); padding-bottom: 4px; }
.cat-toolbar .right {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  flex-shrink: 0;
}
.cat-toolbar select {
  border: 1px solid var(--bg-rule); border-radius: 4px;
  padding: 6px 10px; font: inherit;
  font-size: 11px; color: var(--ink);
  background: var(--bg-elev);
}

.cat-grid {
  max-width: var(--maxw); margin: 36px auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
}
.cat-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--bg-rule);
}
.cat-feature .img { aspect-ratio: 16/10; border-radius: 6px; }
.cat-feature > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: end;
}
.cat-feature > div > h2 {
  grid-column: 1 / -1; grid-row: 1;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: 0.005em;
  margin: 14px 0 12px;
  text-wrap: balance;
}
.cat-feature h2 a { color: var(--ink); }
.cat-feature h2 a:hover { color: var(--blue); }
.cat-feature > div > p {
  grid-column: 1 / -1; grid-row: 2;
  color: var(--ink-2); margin: 0 0 14px;
}
.cat-feature > div > .byline { grid-column: 1; grid-row: 3; }
.cat-feature > div > .tag {
  grid-column: 2; grid-row: 3;
  justify-self: end; align-self: center;
  margin: 0;
}

.cat-list { display: flex; flex-direction: column; }
.cat-list .item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--bg-rule);
}
.cat-list .item .img { aspect-ratio: 16/10; border-radius: 5px; }
.cat-list .item > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: end;
}
.cat-list .item > div > h3 {
  grid-column: 1 / -1; grid-row: 1;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.14;
  letter-spacing: 0.005em;
  margin: 8px 0 8px;
}
.cat-list .item h3 a { color: var(--ink); }
.cat-list .item h3 a:hover { color: var(--blue); }
.cat-list .item > div > p {
  grid-column: 1 / -1; grid-row: 2;
  font-size: 14px; color: var(--ink-3); margin: 0 0 10px;
}
.cat-list .item > div > .byline { grid-column: 1; grid-row: 3; }
.cat-list .item > div > .tag {
  grid-column: 2; grid-row: 3;
  justify-self: end; align-self: center;
  margin: 0;
}

@media (max-width: 980px) {
  .cat-hero { padding: 36px 0 28px; }
  .cat-hero h1 { font-size: 48px; }
  .cat-hero .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; gap: 36px; }
  .cat-feature { grid-template-columns: 1fr; gap: 16px; }
  .cat-feature h2 { font-size: 24px; }
  .cat-list .item { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-hero {
  background: linear-gradient(135deg, #04070d 0%, #0a1024 55%, #0d1538 100%);
  color: #fff;
  padding: 60px 0 50px;
  position: relative; overflow: hidden;
}
.contact-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(30,155,255,.18), transparent 60%),
    radial-gradient(40% 70% at 12% 90%, rgba(30,155,255,.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 18px);
}
.contact-hero .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  position: relative;
}
.contact-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 66px;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 14px 0 18px;
  max-width: 16ch;
}
.contact-hero .deck {
  max-width: 56ch;
  font-size: 17px; line-height: 1.55;
  color: #b6bdd1;
}

.contact-layout {
  max-width: var(--maxw); margin: 40px auto 60px; padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.012em;
  margin: 0 0 4px;
  color: var(--ink);
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2);
  font-weight: 700;
}
.field input, .field textarea, .field select {
  border: 1px solid var(--bg-rule);
  border-radius: 5px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-elev);
  min-height: 44px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,229,.18);
}
.field textarea { min-height: 140px; resize: vertical; }
.contact-form .submit-row {
  display: flex; align-items: center; justify-content: space-between; margin-top: 10px;
  gap: 16px; flex-wrap: wrap;
}
.contact-form .submit-row small {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4);
}

.contact-aside { display: flex; flex-direction: column; gap: 22px; }
.contact-aside .block {
  border: 1px solid var(--bg-rule);
  border-radius: 6px;
  padding: 20px;
  background: var(--bg-elev);
}
.contact-aside h3 {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 18px;
  margin: 0 0 8px; color: var(--ink);
}
.contact-aside p { color: var(--ink-3); font-size: 13.5px; margin: 0 0 12px; line-height: 1.5; }
.contact-aside .kv {
  display: grid; grid-template-columns: 110px 1fr; gap: 6px;
  font-size: 13.5px;
}
.contact-aside .kv dt {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4);
  align-self: center;
}
.contact-aside .kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.contact-aside .block.dark {
  background: #04070d; color: #fff; border-color: transparent;
}
.contact-aside .block.dark h3 { color: #fff; }
.contact-aside .block.dark p { color: #aeb6cc; }
.contact-aside .block.dark .kv dt { color: #6e7794; }
.contact-aside .block.dark .kv dd { color: #fff; }

@media (max-width: 820px) {
  .contact-hero { padding: 40px 0 36px; }
  .contact-hero h1 { font-size: 42px; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .contact-form .row { grid-template-columns: 1fr; }
}

/* =========================================================
   404 — drifting silhouette
   ========================================================= */
.fourohfour {
  background: linear-gradient(135deg, #04070d 0%, #0a1024 55%, #0d1538 100%);
  color: #fff;
  position: relative; overflow: hidden;
  padding: 60px 0 80px;
}
.fourohfour .drift-sil {
  position: absolute;
  height: 360px;
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
  animation: drift 24s ease-in-out infinite;
  filter: blur(0.2px);
}
.fourohfour .drift-sil-2 {
  position: absolute;
  height: 180px;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
  animation: drift-2 32s ease-in-out infinite;
  animation-delay: -8s;
}
@keyframes drift {
  0%   { transform: translate(-10vw, 10vh) rotate(-4deg); }
  50%  { transform: translate(85vw, 30vh) rotate(3deg); }
  100% { transform: translate(-10vw, 10vh) rotate(-4deg); }
}
@keyframes drift-2 {
  0%   { transform: translate(75vw, 60vh) rotate(2deg); }
  50%  { transform: translate(5vw, 40vh) rotate(-3deg); }
  100% { transform: translate(75vw, 60vh) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fourohfour .drift-sil,
  .fourohfour .drift-sil-2 { animation: none; }
}
.fourohfour::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(30,155,255,.18), transparent 60%),
    radial-gradient(40% 70% at 12% 90%, rgba(30,155,255,.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.fourohfour .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.fourohfour .code {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 200px;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff 0%, #6c7aa0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fourohfour h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 20px 0 16px;
  text-wrap: balance;
}
.fourohfour p {
  color: #aeb6cc; font-size: 16px; line-height: 1.55;
  margin: 0 0 24px; max-width: 50ch;
}
.fourohfour .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fourohfour .ctas .btn-dark { background: #11162a; border: 1px solid #1c2238; }
.fourohfour .lost-list {
  background: #0a0e1a;
  border: 1px solid #11152a;
  border-radius: 6px;
  padding: 22px;
}
.fourohfour .lost-list h4 {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e7794; margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.fourohfour .lost-list h4::before {
  content: ""; width: 8px; height: 8px; background: var(--red); border-radius: 50%;
  animation: pulse 1.6s infinite;
}
.fourohfour .lost-list ul { list-style: none; padding: 0; margin: 0; }
.fourohfour .lost-list li {
  padding: 14px 0; border-bottom: 1px solid #11152a;
  display: grid; grid-template-columns: 50px 1fr auto;
  gap: 14px; align-items: center;
}
.fourohfour .lost-list li:last-child { border-bottom: 0; }
.fourohfour .lost-list .id {
  font-family: var(--font-mono);
  font-size: 11px; color: #6e7794;
  letter-spacing: 0.08em;
}
.fourohfour .lost-list .title { font-size: 14px; font-weight: 600; color: #fff; }
.fourohfour .lost-list .arrow { color: var(--blue); font-family: var(--font-mono); }

@media (max-width: 820px) {
  .fourohfour { padding: 40px 0 56px; }
  .fourohfour .inner { grid-template-columns: 1fr; gap: 36px; }
  .fourohfour .code { font-size: 120px; }
  .fourohfour h1 { font-size: 28px; }
}

/* =========================================================
   Sticky mobile subscribe (bottom bar)
   ========================================================= */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 16px;
  z-index: 25;
  display: none;
  align-items: center; justify-content: space-between;
  gap: 10px;
  box-shadow: 0 -8px 24px -8px rgba(0,0,0,.35);
}
.mobile-cta .copy {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 14px;
  line-height: 1.2;
}
.mobile-cta .copy .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; opacity: 0.75;
  font-weight: 400;
  margin-top: 2px;
}
.mobile-cta button.dismiss {
  background: transparent; border: 0; color: #fff;
  width: 32px; height: 32px;
  font-size: 22px;
}
.mobile-cta .go {
  background: #fff; color: var(--blue-3);
  padding: 9px 14px;
  border-radius: 4px;
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 0; flex-shrink: 0;
}
@media (max-width: 820px) {
  .mobile-cta { display: flex; }
  body.has-mobile-cta { padding-bottom: 72px; }
}

/* small util to hide on mobile / show on mobile */
.only-mobile { display: none; }
@media (max-width: 820px) { .only-mobile { display: block; } .only-desktop { display: none; } }

/* The site-footer top padding is generous (48px) — if the AD 4 block sits
   between the marketplace and footer, we already have plenty of vertical
   chrome around it. Shrink the wrapper-level breathing room. */
.adslot.compact { padding: 8px 0; }

/* =========================================================
   FORM PAGES — used by Career/DSP/Jobs/Market submission flows.
   Container = 800px centered. Stepped fieldsets, large fields,
   chip multi-select, file dropzones.
   ========================================================= */
.dxl-form {
  max-width: 800px;
  margin: 40px auto 60px;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column;
  gap: 28px;
}
.dxl-form .form-step {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand-blue);
  font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.dxl-form .form-step .pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(30,155,255,.18);
}
.dxl-form fieldset {
  border: 1px solid var(--bg-rule);
  border-radius: 8px;
  padding: 24px 24px 20px;
  margin: 0;
  background: var(--bg-elev);
}
.dxl-form legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px; letter-spacing: 0.005em;
  text-transform: uppercase;
  padding: 0 8px;
  color: var(--ink);
  margin-left: -8px;
}
.dxl-form .legend-note {
  font-size: 13px; color: var(--ink-3);
  margin: -4px 0 18px;
  line-height: 1.5;
}
.dxl-form .grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.dxl-form .grid-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
  padding-bottom: 0;
}
.dxl-form .field { margin-bottom: 16px; }
.dxl-form .field:last-child { margin-bottom: 0; }
.dxl-form .field .hint {
  font-size: 12px; color: var(--ink-3);
  margin-top: 6px; line-height: 1.4;
}
.dxl-form .field label .required { color: var(--red); margin-left: 2px; }

/* Chip multi-select (services, certs, tags) */
.chip-select {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px 0 2px;
}
.chip-select input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.chip-select label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--bg-rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-elev);
  cursor: pointer;
  font-weight: 700;
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
}
.chip-select label:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.chip-select input:checked + label,
.chip-select label:has(input:checked) {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

/* Radio button group as segmented control */
.seg-radio {
  display: inline-flex;
  border: 1px solid var(--bg-rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-elev);
}
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio label {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  font-weight: 700;
  border-right: 1px solid var(--bg-rule);
}
.seg-radio label:last-of-type { border-right: 0; }
.seg-radio input:checked + label,
.seg-radio label:has(input:checked) {
  background: var(--ink);
  color: var(--bg);
}

/* File upload dropzone */
.dropzone {
  border: 2px dashed var(--bg-rule);
  border-radius: 8px;
  padding: 28px 18px;
  text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover { border-color: var(--brand-blue); background: rgba(30,155,255,.04); }
.dropzone .dz-icon {
  width: 36px; height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--bg-rule);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.dropzone .dz-text {
  font-weight: 700; font-size: 14px; color: var(--ink);
}
.dropzone .dz-hint {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  margin-top: 6px; font-weight: 700;
}
.dropzone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-top: 12px;
}
.dz-thumb {
  aspect-ratio: 4/3;
  background: radial-gradient(120% 80% at 30% 20%, #1f4faa 0%, #0e1e4a 60%, #06102a 100%);
  border-radius: 6px; position: relative;
  display: flex; align-items: flex-end; padding: 8px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
}
.dz-thumb.cover-tag::after {
  content: "Cover";
  position: absolute; top: 6px; right: 6px;
  background: var(--brand-blue); color: #fff;
  font-size: 8px; letter-spacing: 0.16em;
  padding: 2px 6px; border-radius: 2px;
  font-weight: 700;
}

/* Range field (min - max) */
.range-pair {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 90px;
  gap: 8px; align-items: end;
}
.range-pair .dash {
  text-align: center;
  color: var(--ink-3);
  padding-bottom: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Premium upsell card inside the form */
.premium-upsell {
  background: linear-gradient(135deg, #04070d 0%, #0a1024 55%, #0d1538 100%);
  color: #fff;
  border-radius: 10px;
  padding: 22px 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px; align-items: center;
  position: relative; overflow: hidden;
}
.premium-upsell::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 90% 10%, rgba(30,155,255,.22), transparent 60%);
  pointer-events: none;
}
.premium-upsell .label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--amber);
  font-weight: 700; margin-bottom: 4px;
}
.premium-upsell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px; letter-spacing: 0.005em;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.premium-upsell p {
  font-size: 13.5px; line-height: 1.55;
  color: rgba(255,255,255,.8); margin: 0;
}
.premium-upsell .toggle-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Form footer */
.form-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-top: 6px;
}
.form-footer small {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.form-footer .actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .dxl-form fieldset { padding: 18px 16px 14px; }
  .dxl-form .grid-2,
  .dxl-form .grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .range-pair { grid-template-columns: 1fr; gap: 8px; }
  .range-pair .dash { display: none; }
  .dropzone-grid { grid-template-columns: repeat(2, 1fr); }
  .premium-upsell { grid-template-columns: 1fr; padding: 18px; }
}

/* =========================================================
   DETAIL PAGES  (career-detail / dsp-detail / jobs-detail / market-detail)
   Hero with key data, two-column body (main + sidebar), similar grid below.
   ========================================================= */
.detail-hero {
  background: linear-gradient(135deg, #04070d 0%, #0a1024 55%, #0d1538 100%);
  color: #fff;
  position: relative; overflow: hidden;
  padding: 40px 0 36px;
}
.detail-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(30,155,255,.18), transparent 60%),
    radial-gradient(40% 70% at 12% 90%, rgba(30,155,255,.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.detail-hero .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  position: relative;
}
.detail-hero .crumbs {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #8a92a3;
  margin-bottom: 18px;
}
.detail-hero .crumbs a:hover { color: #fff; }
.detail-hero .vert-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 6px;
}
.detail-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 14px;
  max-width: 22ch;
  text-wrap: pretty;
}
.detail-hero .org-line {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  color: #c3cadb;
  margin-bottom: 18px;
}
.detail-hero .org-line strong { color: #fff; font-weight: 700; }
.detail-hero .meta-chips {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px;
}
.detail-hero .meta-chips .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c3cadb; font-weight: 700;
}
.detail-hero .meta-chips .chip.price {
  background: rgba(30,155,255,.15);
  border-color: rgba(30,155,255,.4);
  color: #6db4ff;
}
.detail-hero .meta-chips .chip.urgent {
  background: rgba(226,58,58,.18);
  border-color: rgba(226,58,58,.4);
  color: #ff8a8a;
}
.detail-hero .ctas {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.detail-hero .ctas .btn-dark {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.detail-hero .ctas .btn-dark:hover { background: rgba(255,255,255,.14); }

.detail-body {
  max-width: var(--maxw); margin: 40px auto 60px; padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.detail-main h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 24px; letter-spacing: 0.005em;
  margin: 32px 0 10px;
  color: var(--ink);
}
.detail-main h2:first-child { margin-top: 0; }
.detail-main p { font-size: 16px; line-height: 1.6; color: var(--ink); margin: 0 0 14px; }
.detail-main ul { font-size: 16px; line-height: 1.6; padding-left: 22px; margin: 0 0 18px; }
.detail-main ul li { margin-bottom: 6px; color: var(--ink); }
.detail-main .spec-table {
  margin: 16px 0 22px;
  border: 1px solid var(--bg-rule);
  border-radius: 6px;
  overflow: hidden;
  font-size: 14px;
}
.detail-main .spec-table .row {
  display: grid; grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--bg-rule);
}
.detail-main .spec-table .row:first-child { border-top: 0; }
.detail-main .spec-table .row .k {
  background: var(--bg-soft);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 700;
}
.detail-main .spec-table .row .v { padding: 12px 16px; color: var(--ink); }
.detail-main .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin: 14px 0 22px;
}
.detail-main .gallery .ph { aspect-ratio: 4/3; border-radius: 5px; }

.detail-sidebar { display: flex; flex-direction: column; gap: 20px; align-self: start; }
.detail-sidebar .panel {
  border: 1px solid var(--bg-rule);
  background: var(--bg-elev);
  border-radius: 8px;
  padding: 18px;
}
.detail-sidebar .panel h4 {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin: 0 0 12px;
}
.detail-sidebar .quick-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--bg-rule);
  font-size: 13.5px;
}
.detail-sidebar .quick-row:last-child { border-bottom: 0; }
.detail-sidebar .quick-row dt {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4);
  font-weight: 700; align-self: center;
}
.detail-sidebar .quick-row dd {
  margin: 0; font-weight: 600; color: var(--ink);
}
.detail-sidebar .panel.cta {
  background: linear-gradient(135deg, #04070d 0%, #0a1024 55%, #0d1538 100%);
  color: #fff;
  border-color: transparent;
  position: relative; overflow: hidden;
}
.detail-sidebar .panel.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 90% 10%, rgba(30,155,255,.22), transparent 60%);
  pointer-events: none;
}
.detail-sidebar .panel.cta h4 { color: rgba(255,255,255,.65); }
.detail-sidebar .panel.cta .price-row {
  font-family: var(--font-display);
  font-weight: 700; font-size: 32px;
  letter-spacing: 0.005em;
  margin: 6px 0 14px;
  position: relative;
}
.detail-sidebar .panel.cta .price-row .unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-left: 4px;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: 8px;
}
.detail-sidebar .panel.cta .full-btn {
  display: block; width: 100%;
  background: var(--brand-blue);
  color: #fff;
  padding: 12px;
  border-radius: 5px;
  text-align: center;
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
}
.detail-sidebar .panel.cta .full-btn:hover { background: var(--brand-blue-deep); }
.detail-sidebar .panel.cta .ghost-btn {
  display: block; width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 12px;
  border-radius: 5px;
  text-align: center;
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  position: relative;
}
.detail-sidebar .panel.cta .ghost-btn:hover { background: rgba(255,255,255,.06); }
.detail-sidebar .panel.cta small {
  display: block; margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  text-align: center;
  position: relative;
}

.detail-similar {
  max-width: var(--maxw); margin: 40px auto 80px; padding: 0 var(--gutter);
}
.detail-similar h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--bg-rule);
  padding-bottom: 14px; margin: 0 0 22px;
  color: var(--ink);
}

@media (max-width: 980px) {
  .detail-hero h1 { font-size: 38px; }
  .detail-body { grid-template-columns: 1fr; gap: 32px; }
  .detail-main .spec-table .row { grid-template-columns: 1fr; }
  .detail-main .spec-table .row .k { padding: 8px 12px; }
  .detail-main .spec-table .row .v { padding: 8px 12px; }
  .detail-main .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   MARKETPLACE PREVIEW — stacked rows, one per vertical.
   Each row: left rail (badge + count + see-all) + horizontal card grid.
   ========================================================= */
.mp-preview { padding: 48px var(--gutter) 24px; border-top: 1px solid var(--bg-rule); }
.mp-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-bottom: 22px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--bg-rule);
}
.mp-preview-head .title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.mp-preview-head .title .accent {
  width: 6px; height: 22px; background: var(--brand-blue);
}
.mp-preview-head .meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}

.mp-preview-grid {
  display: flex; flex-direction: column;
  gap: 40px;
}
.mp-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  padding: 28px 0;
  border-top: 1px solid var(--bg-rule);
}
.mp-row:first-child { border-top: 0; padding-top: 0; }
.mp-row-head {
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding-right: 8px;
}
.mp-row-head .badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 0.95;
}
.mp-row.career .badge { color: var(--green); }
.mp-row.dsp .badge { color: var(--amber); }
.mp-row.jobs .badge { color: var(--brand-blue); }
.mp-row.market .badge { color: #7e57f0; }
.mp-row-head .count {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  font-weight: 700;
}
.mp-row-head .desc {
  font-size: 13.5px; line-height: 1.5;
  color: var(--ink-3); margin: 4px 0 6px;
}
.mp-row-head .see {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 700;
  margin-top: 4px;
}
.mp-row-head .see:hover { color: var(--brand-blue-deep); }

.mp-row-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mp-card {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--bg-rule);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  position: relative;
  gap: 8px;
  min-height: 168px;
}
.mp-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(30,155,255,.25);
}
.mp-card .featured-flag {
  position: absolute; top: 0; right: 14px;
  background: var(--amber);
  color: #1a1300;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 0 0 3px 3px;
}
.mp-card .top-line {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  font-weight: 700;
}
.mp-card .ttl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  flex: 1;
}
.mp-card .meta-row {
  font-size: 12.5px; color: var(--ink-3);
  line-height: 1.4;
}
.mp-card .bottom-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--bg-rule);
  gap: 8px;
}
.mp-card .p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  line-height: 1;
}
.mp-card .p .unit {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  margin-left: 2px;
  font-weight: 400;
  letter-spacing: 0;
}
.mp-card .arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 700;
}

@media (max-width: 980px) {
  .mp-row { grid-template-columns: 1fr; gap: 16px; }
  .mp-row-head { padding-right: 0; }
  .mp-row-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .mp-row-cards { grid-template-columns: 1fr; }
}

/* =========================================================
   MARKETPLACE  shared chrome — used by market, career, dsp, jobs.
   Variant classes:  .mp-page.market | .mp-page.career | .mp-page.dsp | .mp-page.jobs
   ========================================================= */
.mp-hero {
  background: linear-gradient(135deg, #04070d 0%, #0a1024 55%, #0d1538 100%);
  color: #fff;
  padding: 50px 0 40px; position: relative; overflow: hidden;
}
.mp-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(30,155,255,.18), transparent 60%),
    radial-gradient(40% 70% at 12% 90%, rgba(30,155,255,.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.mp-hero .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  position: relative;
}
.mp-hero .crumbs {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #8a92a3; margin-bottom: 22px;
}
.mp-hero h1 {
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase;
  font-size: 76px; line-height: 0.98; letter-spacing: 0.005em;
  margin: 0 0 14px;
}
.mp-hero .sub {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand-blue);
  margin-bottom: 14px; font-weight: 700;
}
.mp-hero .deck {
  max-width: 62ch; font-size: 17px; line-height: 1.55;
  color: #b6bdd1; margin: 0;
}
.mp-hero .powered {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  padding: 6px 12px;
  background: rgba(30,155,255,.12);
  border: 1px solid rgba(30,155,255,.4);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #6db4ff;
}
.mp-hero .powered::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 8px rgba(30,155,255,.6);
  animation: pulse 1.6s infinite;
}
.mp-hero .stats-row {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #11152a;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.mp-hero .stats-row .n {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase;
  font-size: 28px; letter-spacing: 0.005em;
}
.mp-hero .stats-row .l {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #6e7794; margin-top: 4px;
}

.mp-filters {
  border-bottom: 1px solid var(--bg-rule);
  position: sticky; top: 64px; background: var(--bg); z-index: 5;
}
.mp-filters .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.mp-filters .pill-group { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.mp-filters .pill-group::-webkit-scrollbar { display: none; }
.mp-pill {
  padding: 8px 14px;
  border: 1px solid var(--bg-rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-elev);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
}
.mp-pill:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.mp-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mp-filters .sort {
  margin-left: auto;
  display: flex; gap: 10px; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.mp-filters select {
  border: 1px solid var(--bg-rule); border-radius: 4px;
  padding: 8px 12px; font: inherit;
  font-size: 12px; color: var(--ink);
  background: var(--bg-elev);
  min-height: 36px;
}

.mp-grid {
  max-width: var(--maxw); margin: 36px auto; padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1100px) { .mp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .mp-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px)  { .mp-grid { grid-template-columns: 1fr; gap: 20px; } }

.product {
  display: flex; flex-direction: column;
  border: 1px solid var(--bg-rule);
  border-radius: 8px;
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
}
.product:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(30,155,255,.3);
}
.product .pimg {
  aspect-ratio: 4/3;
  background: #06080f;
  position: relative;
}
.product .pimg .badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 3px;
  background: var(--amber); color: #1a1300;
}
.product .pimg .badge.new   { background: var(--green); color: #062013; }
.product .pimg .badge.used  { background: #3a4356; color: #fff; }
.product .pimg .badge.urgent{ background: var(--red); color: #fff; }
.product .pimg .badge.live  { background: var(--brand-blue); color: #fff; }
.product .pimg .stock {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff;
  padding: 4px 8px; background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px); border-radius: 3px;
}
.product .pimg .stock::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}
.product .pimg .stock.low::before { background: var(--amber); }
.product .pimg .stock.out::before { background: #e23a3a; }
.product .pbody { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .pbrand {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  font-weight: 700;
}
.product .ptitle {
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase;
  font-size: 19px; line-height: 1.15;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.product .pmeta {
  font-size: 13.5px; color: var(--ink-3);
  line-height: 1.45;
  margin-top: 2px;
}
.product .ptags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.product .ptags span {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px;
  background: var(--bg-soft); color: var(--ink-2);
  font-weight: 700;
}
.product .prow {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px;
}
.product .price {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  color: var(--ink); line-height: 1;
}
.product .price .was {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  text-decoration: line-through;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0;
}
.product .price .unit {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 2px;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: 4px;
}
.product .pbtn {
  background: var(--brand-blue);
  color: #fff;
  padding: 9px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 0;
}
.product .pbtn:hover { background: var(--brand-blue-deep); }
.product .pseller {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-4);
  padding-top: 10px; border-top: 1px solid var(--bg-rule);
  margin-top: 8px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.product .pseller .verified {
  color: var(--green);
  display: inline-flex; align-items: center; gap: 4px;
}
.product .pseller .verified::before { content: "✓"; font-size: 13px; }

/* Logo placeholder used on Career & DSP cards — colored square w/ initials. */
.product .pimg.logo {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 80% at 30% 20%, #1f4faa 0%, #0e1e4a 60%, #06102a 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.product .pimg.logo.brand-dji { background: radial-gradient(120% 80% at 30% 20%, #1f6fe5 0%, #08183f 70%); }
.product .pimg.logo.brand-skydio { background: radial-gradient(120% 80% at 30% 20%, #2a3140 0%, #06080f 70%); }
.product .pimg.logo.brand-brinc { background: radial-gradient(120% 80% at 30% 20%, #e23a3a 0%, #2a0a0e 70%); }
.product .pimg.logo.brand-autel { background: radial-gradient(120% 80% at 30% 20%, #ffb500 0%, #1a1300 70%); color: #1a1300; }
.product .pimg.logo.brand-anduril { background: radial-gradient(120% 80% at 30% 20%, #21c07a 0%, #062013 70%); }
.product .pimg.logo.brand-zipline { background: radial-gradient(120% 80% at 30% 20%, #7e57f0 0%, #1a0a2a 70%); }
.product .pimg.logo.brand-wing { background: radial-gradient(120% 80% at 30% 20%, #e25ea3 0%, #2a0a1a 70%); }
.product .pimg.logo.brand-flytrex { background: radial-gradient(120% 80% at 30% 20%, #344a72 0%, #0d1320 70%); }
.product .pimg.logo.brand-parrot { background: radial-gradient(120% 80% at 30% 20%, #4a5236 0%, #0e1208 70%); }
.product .pimg.logo.brand-yuneec { background: radial-gradient(120% 80% at 30% 20%, #0d54c7 0%, #06102a 70%); }

.product.dsp .pimg.logo,
.product.career .pimg.logo { aspect-ratio: 16/10; }

.product.jobs .pimg {
  background: radial-gradient(120% 80% at 30% 20%, #1a2c52 0%, #0a1024 60%, #060912 100%);
  position: relative;
}
.product.jobs .pimg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px);
}
.product.jobs .pimg .budget-tag {
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  color: #fff;
}
.product.jobs .pimg .budget-tag .unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.7);
  margin-left: 4px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.product.jobs .pimg .icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  opacity: 0.7;
  color: rgba(255,255,255,.5);
}

.mp-sell {
  max-width: var(--maxw); margin: 48px auto; padding: 0 var(--gutter);
}
.mp-sell-inner {
  background: linear-gradient(135deg, #08183f 0%, #0e2a73 50%, #1850c4 100%);
  color: #fff;
  border-radius: 10px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
  position: relative; overflow: hidden;
}
.mp-sell-inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 90% 20%, rgba(255,255,255,.15), transparent 60%);
  pointer-events: none;
}
.mp-sell-inner h2 {
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase;
  font-size: 32px; line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0 0 10px;
  text-wrap: balance;
}
.mp-sell-inner p { margin: 0; max-width: 56ch; opacity: 0.85; font-size: 15px; line-height: 1.55; }
.mp-sell-inner .sellbtn {
  background: #fff; color: var(--brand-blue-deep);
  padding: 14px 22px; border-radius: 6px;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .mp-hero h1 { font-size: 48px; }
  .mp-hero .stats-row { grid-template-columns: repeat(2, 1fr); }
  .mp-sell-inner { grid-template-columns: 1fr; padding: 28px; }
  .mp-sell-inner h2 { font-size: 24px; }
}

/* =========================================================
   Mobile readability bumps (GSC tap-target + font-size safe)
   ========================================================= */
@media (max-width: 820px) {
  body { font-size: 17px; line-height: 1.6; }
  .top-stories .ts-title { font-size: 15.5px; line-height: 1.35; }
  .top-stories .ts-meta { font-size: 11px; }
  .top-stories li { padding: 14px 16px; }
  .top-stories .num { font-size: 22px; }
  .byline { font-size: 12px; gap: 10px; }
  .card-news .byline { font-size: 11px; }
  .eyebrow { font-size: 12px; }
  .feature p, .hero-body p { font-size: 16px; }
  .section-dark .dcard h3 { font-size: 19px; }
  .wire-row .head-title { font-size: 17px; }
  .product .ptitle { font-size: 18px; }
  .product .pmeta { font-size: 14px; }
  .product .pseller { font-size: 11px; }
  .nav, .drawer-nav a, .pager a, .icon-btn { min-height: 44px; min-width: 44px; }
  .pager a { padding: 0 6px; }
  .mp-pill { min-height: 40px; }
}

/* Focus rings — keyboard-only */
:focus { outline: 0; }
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.icon-btn:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

/* =========================================================
   Skip link (a11y) — hidden until keyboard-focused
   ========================================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 400;
  background: var(--brand-blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font: 600 13px/1 var(--font-sans);
  text-decoration: none;
}
.skip-link:focus {
  left: 10px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Search-as-form reset (converted from div for Enter-to-search) */
form.search, form.drawer-search { margin: 0; }

/* =========================================================
   Mobile tap targets — give pill navs comfortable height
   ========================================================= */
@media (max-width: 720px) {
  .section-head nav a,
  .wire-head nav a,
  .subnav a { padding-top: 9px; padding-bottom: 9px; }
  .pager a {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .lite-three .head .meta { padding: 9px 0; }
}

/* =========================================================
   China Watch — amber accent variant of section-dark
   ========================================================= */
.section-dark.china-watch .section-head .accent { background: var(--amber); }
.section-dark.china-watch .dcard h3 a:hover { color: var(--amber); }
.section-dark.china-watch .big h2 a:hover { color: var(--amber); }

/* =========================================================
   Brand-row subtitle (next to brand name in lite-three head)
   ========================================================= */
.lite-three .head .title .brand-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  padding-left: 4px;
}
@media (max-width: 720px) {
  .lite-three .head .title .brand-meta { display: none; }
}

/* Brand-row rhythm: tighter top padding when stacked back-to-back */
.brand-row + .brand-row { padding-top: 8px; }
.section-light.brand-row + .section-rail.brand-row,
.section-rail.brand-row + .section-light.brand-row { border-top: 1px solid var(--bg-rule); }


/* =========================================================
   System-font display tuning (Google Fonts removed for speed)
   Former Rajdhani headlines: heavier weight + tighter tracking
   ========================================================= */
.h-display, .hero-body h1, .card-news > h3, .feature .body > h2,
.section-dark .dcard > h3, .section-dark .big h2, .section-light .dcard > h3,
.newsband h2, .story-row > div > h3, .article-hero h1, .prose h2, .prose h3,
.cat-hero h1, .cat-feature > div > h2, .cat-list .item > div > h3, .contact-hero h1 {
  font-weight: 800;
  letter-spacing: -0.01em;
}
