/* ============================================================
   PRESS / NEWSROOM STYLES — Business Ops Center
   Extends common.css. Distinct from blog via:
   - Newsroom pulse badge
   - Monospace datelines + meta labels
   - Left accent border on release cards
   - Timeline rail on archive
   - Media-kit sidebar treatment
   ============================================================ */

/* ---------- Tokens scoped to press pages ---------- */
.press-scope {
  --press-rail: rgba(15, 23, 42, 0.08);
  --press-rail-strong: rgba(15, 23, 42, 0.18);
  --press-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --press-accent: #FFD950;
  --press-accent-ink: #1a1407;
  --press-chip-bg: rgba(255, 217, 80, 0.14);
  --press-chip-ink: #6b4f00;
  --press-card-bg: #ffffff;
  --press-card-border: rgba(15, 23, 42, 0.08);
  --press-quote-bg: #fffaeb;
}

html[data-theme="dark"] .press-scope,
.dark .press-scope {
  --press-rail: rgba(255, 255, 255, 0.10);
  --press-rail-strong: rgba(255, 255, 255, 0.22);
  --press-chip-bg: rgba(255, 217, 80, 0.18);
  --press-chip-ink: #ffe79a;
  --press-card-bg: #0f172a;
  --press-card-border: rgba(255, 255, 255, 0.08);
  --press-quote-bg: rgba(255, 217, 80, 0.06);
}

/* ---------- Newsroom pulse badge ---------- */
.newsroom-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--press-chip-bg);
  color: var(--press-chip-ink);
  font-family: var(--press-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 217, 80, 0.45);
}
.newsroom-badge .pulse-dot {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18);
}
.newsroom-badge .pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(217, 119, 6, 0.5);
  animation: pressPulse 1.8s ease-out infinite;
}
@keyframes pressPulse {
  0%   { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .newsroom-badge .pulse-dot::after { animation: none; }
}

/* ---------- Dateline (monospace meta line) ---------- */
.dateline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--press-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(15, 23, 42, 0.62);
}
.dark .dateline,
html[data-theme="dark"] .dateline { color: rgba(255, 255, 255, 0.6); }

.dateline .sep {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.5;
}
.dateline .city {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1f2937;
}
.dark .dateline .city,
html[data-theme="dark"] .dateline .city { color: #f1f5f9; }

/* ---------- Release card (archive) ---------- */
.release-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--press-card-bg);
  border: 1px solid var(--press-card-border);
  border-radius: 1.5rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 12px 28px -18px rgba(15, 23, 42, 0.18);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.release-card::before {
  content: "";
  position: absolute;
  left: 0; top: 1.25rem; bottom: 1.25rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--press-accent), #f59e0b);
  opacity: 0.85;
}
.release-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 217, 80, 0.55);
  box-shadow: 0 18px 36px -18px rgba(245, 158, 11, 0.35);
}
.release-card .release-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--press-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--press-chip-ink);
  font-weight: 800;
}
.release-card h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}
.dark .release-card h3,
html[data-theme="dark"] .release-card h3 { color: #f8fafc; }

.release-card p.lede {
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
}
.dark .release-card p.lede,
html[data-theme="dark"] .release-card p.lede { color: rgba(255, 255, 255, 0.72); }

.release-card .read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0f172a;
  text-decoration: underline;
  text-decoration-color: var(--press-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.dark .release-card .read-link,
html[data-theme="dark"] .release-card .read-link { color: #fde68a; }

/* ---------- Topic filter pills ---------- */
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--press-card-border);
  background: var(--press-card-bg);
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  transition: all .2s ease;
}
.topic-pill:hover { border-color: #f59e0b; color: #92400e; }
.topic-pill.is-active {
  background: var(--press-accent);
  color: var(--press-accent-ink);
  border-color: transparent;
  box-shadow: 0 4px 14px -4px rgba(245, 158, 11, 0.5);
}
.dark .topic-pill,
html[data-theme="dark"] .topic-pill { color: #cbd5e1; }

/* ---------- Search bar ---------- */
.press-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.65rem 0.65rem 1.1rem;
  background: var(--press-card-bg);
  border: 1px solid var(--press-card-border);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.press-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.92rem;
  color: inherit;
}
.press-search input::placeholder { color: rgba(15, 23, 42, 0.45); }
.dark .press-search input::placeholder,
html[data-theme="dark"] .press-search input::placeholder { color: rgba(255, 255, 255, 0.45); }

/* ---------- Timeline rail (archive list) ---------- */
.press-timeline {
  position: relative;
  padding-left: 1.75rem;
}
.press-timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--press-rail-strong), transparent);
}
.press-timeline > .tl-item { position: relative; }
.press-timeline > .tl-item::before {
  content: "";
  position: absolute;
  left: -1.45rem; top: 1.65rem;
  width: 0.85rem; height: 0.85rem;
  border-radius: 999px;
  background: var(--press-accent);
  border: 3px solid var(--press-card-bg);
  box-shadow: 0 0 0 2px var(--press-rail-strong);
}
@media (max-width: 640px) {
  .press-timeline { padding-left: 1.25rem; }
  .press-timeline > .tl-item::before { left: -1.05rem; top: 1.4rem; }
}

/* ---------- Single release hero ---------- */
.release-hero {
  position: relative;
  padding: 2.25rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 55%, #fef3c7 100%);
  border: 1px solid var(--press-card-border);
  overflow: hidden;
}
.dark .release-hero,
html[data-theme="dark"] .release-hero {
  background: linear-gradient(135deg, rgba(255, 217, 80, 0.10) 0%, #0f172a 60%, rgba(245, 158, 11, 0.10) 100%);
}
.release-hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 217, 80, 0.4), transparent 65%);
  pointer-events: none;
}
.release-hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #0f172a;
}
.dark .release-hero h1,
html[data-theme="dark"] .release-hero h1 { color: #f8fafc; }

.release-hero .lede {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.65;
  color: rgba(15, 23, 42, 0.78);
  max-width: 56ch;
}
.dark .release-hero .lede,
html[data-theme="dark"] .release-hero .lede { color: rgba(255, 255, 255, 0.78); }

/* ---------- Article body (press prose) ---------- */
.press-prose {
  font-size: 1.02rem;
  line-height: 1.78;
  color: #1f2937;
}
.dark .press-prose,
html[data-theme="dark"] .press-prose { color: #e2e8f0; }

.press-prose > * + * { margin-top: 1.25rem; }
.press-prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--press-accent);
  display: inline-block;
}
.dark .press-prose h2,
html[data-theme="dark"] .press-prose h2 { color: #f8fafc; }

.press-prose h3 {
  margin-top: 1.75rem;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.press-prose ul { padding-left: 1.25rem; list-style: none; }
.press-prose ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 0.5rem;
}
.press-prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7rem;
  width: 0.55rem; height: 0.55rem;
  border-radius: 2px;
  background: var(--press-accent);
  transform: rotate(45deg);
}

/* ---------- Pull quote ---------- */
.pull-quote {
  margin: 2rem 0;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--press-quote-bg);
  border-left: 4px solid var(--press-accent);
  border-radius: 0 1rem 1rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  color: #1f2937;
  font-style: italic;
}
.dark .pull-quote,
html[data-theme="dark"] .pull-quote { color: #f1f5f9; }

.pull-quote cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-family: var(--press-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.6);
  font-weight: 700;
}
.dark .pull-quote cite,
html[data-theme="dark"] .pull-quote cite { color: rgba(255, 255, 255, 0.6); }

/* ---------- Media kit sidebar ---------- */
.media-kit {
  position: sticky;
  top: 110px;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--press-card-bg);
  border: 1px solid var(--press-card-border);
}
.media-kit h3 {
  font-family: var(--press-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--press-chip-ink);
  font-weight: 800;
}
.media-kit .kit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--press-card-border);
  font-size: 0.88rem;
}
.media-kit .kit-row:last-of-type { border-bottom: 0; }
.media-kit .kit-label {
  font-family: var(--press-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}
.dark .media-kit .kit-label,
html[data-theme="dark"] .media-kit .kit-label { color: rgba(255, 255, 255, 0.5); }

.media-kit .kit-value { font-weight: 700; color: inherit; }

.media-kit .download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: #0f172a;
  color: #fff;
  border-radius: 0.85rem;
  font-weight: 800;
  font-size: 0.85rem;
  transition: transform .2s ease, background .2s ease;
}
.media-kit .download-btn:hover { transform: translateY(-2px); background: #1e293b; }

/* ---------- Boilerplate "About" block ---------- */
.boilerplate {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--press-rail-strong);
  background: rgba(15, 23, 42, 0.02);
  border-radius: 0 0.85rem 0.85rem 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.75);
}
.dark .boilerplate,
html[data-theme="dark"] .boilerplate {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.75);
}
.boilerplate strong { color: #0f172a; font-weight: 900; }
.dark .boilerplate strong,
html[data-theme="dark"] .boilerplate strong { color: #f8fafc; }

/* ---------- "### ENDS ###" marker (newsroom convention) ---------- */
.ends-marker {
  text-align: center;
  margin: 2.5rem 0;
  font-family: var(--press-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: rgba(15, 23, 42, 0.4);
}
.dark .ends-marker,
html[data-theme="dark"] .ends-marker { color: rgba(255, 255, 255, 0.4); }

/* ---------- Share row ---------- */
.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--press-card-border);
  border-bottom: 1px solid var(--press-card-border);
  margin: 2rem 0;
}
.share-row .label {
  font-family: var(--press-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 800;
  margin-right: 0.5rem;
}
.dark .share-row .label,
html[data-theme="dark"] .share-row .label { color: rgba(255, 255, 255, 0.5); }

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--press-card-border);
  color: #475569;
  transition: all .2s ease;
}
.share-btn:hover { border-color: var(--press-accent); color: #92400e; background: var(--press-chip-bg); }
