/* ============================================================
   AI Global News Radio — Premium Editorial Theme (interior)
   Used by: about, contact, schedule, privacy, terms,
            news/index, news/*.html (articles), support
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,900&family=Inter+Tight:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  color-scheme: dark;
  --ink:        #0a0a0c;
  --ink-2:      #111114;
  --ink-3:      #17171b;
  --rule:       rgba(255,255,255,0.08);
  --rule-strong:rgba(255,255,255,0.16);
  --text:       #eaeaea;
  --text-soft:  #b8b8bd;
  --muted:      #8c8c92;
  --gold:       #d4a24a;
  --gold-soft:  #efc774;
  --signal-red: #e10600;
  --on-air:     #ff2a2a;
  --serif: "Fraunces", "Tiempos Headline", Georgia, "Times New Roman", serif;
  --sans:  "Inter Tight", "Söhne", "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: -0.005em;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212,162,74,0.06), transparent 60%),
    linear-gradient(180deg, #07070a 0%, #0a0a0c 38%, #050507 100%);
}

/* Subtle paper noise */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }

/* ---------- Utility bar ---------- */
.util-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 22px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(7,7,10,0.6);
  flex-wrap: wrap;
}
.util-left, .util-right { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.on-air-badge {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff;
  padding: 4px 10px;
  border: 1px solid rgba(255,42,42,0.45);
  background: rgba(255,42,42,0.12);
  border-radius: 3px;
  font-weight: 700;
}
.on-air-badge::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--on-air);
  box-shadow: 0 0 0 0 rgba(255,42,42,0.6);
  animation: onAirPulse 1.6s infinite;
}
@keyframes onAirPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,42,42,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(255,42,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,42,42,0); }
}

/* ---------- Primary nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--rule);
  background: rgba(7,7,10,0.86);
  backdrop-filter: saturate(140%) blur(14px);
  flex-wrap: wrap;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.site-brand .brand-mark {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: #000 url("/icon.svg") center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.14),
    0 4px 18px rgba(255,42,42,0.18);
  flex: 0 0 auto;
  position: relative;
}
.site-brand .brand-mark::before {
  display: none;
}
.site-brand img { display: none; }
.site-brand strong {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #fff;
  display: block;
}
.site-brand span {
  color: var(--gold-soft);
  font-family: var(--mono);
  letter-spacing: 0.18em;
  font-size: 0.66rem;
  text-transform: uppercase;
}
.nav-links {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  color: #cfcfcf;
  letter-spacing: 0.01em;
  border-radius: 4px;
  position: relative;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--gold);
}
.nav-links a.nav-new-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}
.new-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff1f2f, #b8000c);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  box-shadow: 0 0 14px rgba(255,42,42,0.28);
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 80px;
}

/* ---------- Page header / hero ---------- */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.page-header h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #fff;
  max-width: 22ch;
}
.page-header p.lead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  color: var(--text-soft);
  max-width: 58ch;
  margin: 0;
}

/* ---------- Grid / cards ---------- */
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  align-items: flex-start;
}
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

.card-stack { display: flex; flex-direction: column; gap: 24px; }

.card {
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius: 6px;
  padding: 32px;
}
.card h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #fff;
}
.card h2:not(:first-child) { margin-top: 32px; }
.card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: #fff;
}
.card p { color: var(--text-soft); line-height: 1.65; margin: 0 0 14px; }
.card ul { color: var(--text-soft); line-height: 1.7; padding-left: 18px; margin: 0 0 14px; }
.card ul li { margin-bottom: 6px; }
.card .muted { color: var(--muted); font-size: 0.9rem; }

/* ---------- Longform article ---------- */
.longform {
  max-width: 720px;
  margin: 0 auto;
}
.longform .eyebrow { margin-bottom: 16px; }
.longform h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 20px;
}
.longform .dek {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--text-soft);
  margin: 0 0 24px;
}
.longform .meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 32px;
}
.longform p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.18rem;
  line-height: 1.75;
  color: #dedede;
  margin: 0 0 24px;
}
.longform p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 4.2rem;
  line-height: 0.9;
  float: left;
  margin: 4px 12px 0 0;
  color: var(--gold);
}
.longform h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  margin: 40px 0 16px;
  color: #fff;
  letter-spacing: -0.01em;
}
.longform a { color: var(--gold); border-bottom: 1px solid rgba(212,162,74,0.4); }
.longform a:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }
.longform blockquote {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 20px;
  margin: 24px 0;
  font-family: var(--serif);
  font-style: italic;
  color: #ddd;
  font-size: 1.25rem;
}

/* ---------- Article list ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.article-card {
  background: var(--ink);
  padding: 28px;
  transition: background .2s;
}
.article-card:hover { background: var(--ink-2); }
.article-card .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.article-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.article-card h3 a { color: #fff; }
.article-card h3 a:hover { color: var(--gold-soft); }
.article-card p {
  font-family: var(--sans);
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.article-card .date {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Forms ---------- */
form { display: flex; flex-direction: column; gap: 16px; }
form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
form input,
form select,
form textarea {
  background: var(--ink-2);
  border: 1px solid var(--rule-strong);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 4px;
  outline: none;
  transition: border-color .15s, background .15s;
}
form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--gold);
  background: var(--ink-3);
}
form textarea { min-height: 140px; resize: vertical; font-family: var(--sans); }
form .actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--gold);
  color: #0a0a0c;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.button:hover { background: var(--gold-soft); color: #000; }
.button:active { transform: translateY(1px); }
.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule-strong);
}
.button.secondary:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.95rem;
}
table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-strong);
  background: rgba(255,255,255,0.02);
}
table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--text-soft);
  line-height: 1.55;
  vertical-align: top;
}
table tbody td:first-child {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #fff;
  white-space: nowrap;
}
table tbody tr:hover td { background: rgba(255,255,255,0.015); }

/* ---------- Legal pages ---------- */
.legal h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin: 0 0 24px;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  margin: 32px 0 12px;
}
.legal p {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 70ch;
  margin: 0 0 16px;
}
.legal a { color: var(--gold); border-bottom: 1px solid rgba(212,162,74,0.3); }
.legal a:hover { color: var(--gold-soft); }

/* ---------- Footer ---------- */
.pro-footer {
  margin-top: 80px;
  padding: 64px 22px 32px;
  border-top: 1px solid var(--rule-strong);
  background: linear-gradient(180deg, #0a0a0d, #050507);
}
.pro-footer .footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .pro-footer .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pro-footer .footer-inner { grid-template-columns: 1fr; } }

.pro-footer h5 {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.pro-footer .brandblock strong {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
  display: block;
  margin-bottom: 12px;
}
.pro-footer .brandblock p {
  color: #b3b3b3;
  line-height: 1.6;
  font-size: 0.9rem;
  margin: 0;
}
.pro-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pro-footer a {
  color: #b3b3b3;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.pro-footer a:hover { color: #fff; border-bottom-color: var(--gold); }

.pro-footer .legal {
  max-width: 1180px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pro-footer .ai-note {
  max-width: 1180px;
  margin: 32px auto 0;
  padding: 16px 20px;
  background: rgba(212,162,74,0.05);
  border: 1px solid rgba(212,162,74,0.2);
  border-radius: 4px;
  color: #c9c9c9;
  font-size: 0.85rem;
  line-height: 1.6;
}
.pro-footer .ai-note strong { color: var(--gold); font-family: var(--mono); letter-spacing: 0.1em; font-size: 0.78rem; text-transform: uppercase; }

/* ---------- Back to stream CTA ---------- */
.back-to-stream {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: all .15s;
  margin-top: 24px;
}
.back-to-stream:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,162,74,0.05);
}
.back-to-stream::before {
  content: "◂";
  color: var(--gold);
  font-size: 1rem;
}

/* ---------- Helpers ---------- */
.muted { color: var(--muted); }
.gold  { color: var(--gold); }
.small { font-size: 0.85rem; }
.mono  { font-family: var(--mono); }
