/* 
  SPOOFVILLE MASTER STYLESHEET
  ----------------------------
  1. Variables & Global Root
  2. Base Reset & Typography
  3. Layout Components (Masthead, Footer, Grid)
  4. Interactive Components (Themes, Cookies, Modals)
  5. Homepage Layout & Section Themes
  6. Search Results & Skeleton Loaders
  7. Ingestion Progress & Dashboards
  8. Utilities & Animations
*/

:root {
  --page-bg: #f7f4ed;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --accent: #b91c1c;
  --border: #d1d5db;
  --accent-soft: #fee2e2;
  --shadow-elevated: 0 12px 26px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 16px 36px rgba(15, 23, 42, 0.12);
  --footer-bg: #fefbf7;
  --footer-text: #111827;
  --footer-muted: rgba(55, 65, 81, 0.75);
}

:root[data-theme="dark"] {
  --page-bg: #020617;
  --surface: #0f172a;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --accent: #f97316;
  --border: #1f2937;
  --accent-soft: rgba(249, 115, 22, 0.18);
  --shadow-elevated: 0 14px 30px rgba(2, 6, 23, 0.45);
  --shadow-strong: 0 20px 48px rgba(2, 6, 23, 0.6);
  --footer-bg: #040b1d;
  --footer-text: #e2e8f0;
  --footer-muted: rgba(148, 163, 184, 0.75);
}



/* 2. Base Reset & Typography */
* {
  box-sizing: border-box;
}



body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--page-bg);
  color: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 24, 39, 0.35) rgba(17, 24, 39, 0.1);
}

:root[data-theme="dark"] body {
  scrollbar-color: rgba(148, 163, 184, 0.45) rgba(148, 163, 184, 0.15);
}

/* WebKit scrollbar styling */
body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.08);
}

body::-webkit-scrollbar-thumb {
  background-color: rgba(17, 24, 39, 0.35);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

:root[data-theme="dark"] body::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.12);
}

:root[data-theme="dark"] body::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.45);
}



a {

  color: inherit;

}



a:hover {

  color: var(--accent);

}



/* 3. Layout Components */
.masthead {

  background: var(--surface);

  border-bottom: 1px solid var(--border);

  padding: 1.75rem 0 1.25rem;

}


.masthead__inner {
  width: min(1120px, 94vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(1rem, 3vw, 2rem);
  min-height: 128px;
  flex-wrap: nowrap;
}


.masthead__logo {

  font-family: "Merriweather", "Georgia", serif;

  font-size: clamp(2.6rem, 3.8vw, 3.2rem);

  text-decoration: none;

  font-weight: 700;

  line-height: 1;

}



.masthead__dateline {
  align-self: flex-end;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}




.masthead__branding {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(0.45rem, 2vw, 1.65rem);
  flex: 0 1 clamp(320px, 38vw, 440px);
  min-width: 0;
  padding-top: 0.15rem;
}



.masthead__brand-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.35rem, 1.8vw, 1.5rem);
  min-width: 0;
  min-height: clamp(2.2rem, 3vw, 2.6rem);
}



.masthead__tagline {

  margin: 0;

  font-size: clamp(0.88rem, 1.8vw, 1rem);

  font-weight: 600;

  color: var(--accent);

  line-height: 1.4;

  letter-spacing: 0.02em;
  display: -webkit-box;
  max-width: clamp(260px, 30vw, 360px);
  white-space: normal;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  transition: color 0.2s ease;

}



.masthead__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 0.15rem;
}



.masthead__actions-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.9rem, 2.4vw, 1.75rem);
  flex-wrap: nowrap;
  min-width: 0;
}

.masthead__nav {

  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: clamp(0.85rem, 2.2vw, 1.35rem);

  flex: 1 1 auto;

  flex-wrap: nowrap;

  white-space: nowrap;

  overflow: visible;

  font-size: 0.9rem;

  text-transform: uppercase;

  letter-spacing: 0.04em;

  min-width: 0;

}


.masthead__controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.admin-ribbon {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
}

.admin-ribbon__inner {
  width: min(1200px, 96vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.5rem;
  flex-wrap: wrap;
}

.admin-ribbon__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.admin-ribbon__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1;
}

.admin-ribbon__nav a {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink);
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.admin-ribbon__nav a:hover {
  background: var(--accent-soft);
  border-color: var(--border);
}

.admin-ribbon__nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-ribbon__logout {
  margin-left: auto;
}

.admin-ribbon__logout button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.admin-ribbon__logout button:hover {
  background: var(--accent-soft);
}

.admin-ribbon__logout button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


.masthead__dateline {
  align-self: flex-end;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}


.masthead__nav a {

  text-decoration: none;

  color: var(--muted);

  font-weight: 600;

  display: inline-flex;

  align-items: center;

  padding-bottom: 0.1rem;

  transition: color 0.2s ease;

  flex-shrink: 0;

  letter-spacing: 0.02em;

}



.masthead__nav a:hover {

  color: var(--accent);

}

.masthead__nav a:focus-visible {

  outline: 2px solid var(--accent);

  outline-offset: 4px;

}

.masthead__admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.masthead__admin:hover {
  color: var(--accent);
  border-color: rgba(185, 28, 28, 0.22);
  background: rgba(185, 28, 28, 0.08);
}

.masthead__admin:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.masthead__logout {
  display: inline-flex;
  margin: 0;
}



.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  position: relative;
}

.theme-switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.theme-switch__track {
  position: relative;
  width: 70px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(145deg, #fefefe 0%, #e3e9ff 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), inset 0 -1px 0 rgba(148, 163, 184, 0.24), 0 6px 12px rgba(15, 23, 42, 0.1);
  display: block;
  padding: 0;
  overflow: hidden;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.theme-switch__track::before,
.theme-switch__track::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.theme-switch__track::before {
  background: radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 65%);
  opacity: 0.85;
}

.theme-switch__track::after {
  background: radial-gradient(circle at 75% 65%, rgba(59, 130, 246, 0.45) 0%, rgba(15, 23, 42, 0) 70%);
  opacity: 0;
}

.theme-switch.is-dark .theme-switch__track {
  background: linear-gradient(145deg, #111827 0%, #020617 95%);
  border-color: rgba(59, 130, 246, 0.38);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.24), inset 0 -1px 0 rgba(15, 23, 42, 0.64), 0 10px 18px rgba(15, 23, 42, 0.48);
}

.theme-switch.is-dark .theme-switch__track::before {
  opacity: 0.3;
}

.theme-switch.is-dark .theme-switch__track::after {
  opacity: 0.55;
}

.theme-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #fde68a 58%, #fbbf24 100%);
  box-shadow: 0 6px 14px rgba(251, 191, 36, 0.42);
  transition: transform 0.26s ease, background 0.26s ease, box-shadow 0.26s ease;
}

.theme-switch.is-dark .theme-switch__thumb {
  transform: translateX(38px);
  background: radial-gradient(circle at 42% 30%, #f8fafc 0%, #93c5fd 55%, #2563eb 100%);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.45);
}

.theme-switch__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.theme-switch__icon--sun {
  left: 9px;
  color: #f59e0b;
}

.theme-switch__icon--moon {
  right: 9px;
  color: #60a5fa;
}

.theme-switch:not(.is-dark) .theme-switch__icon--sun,
.theme-switch.is-dark .theme-switch__icon--moon {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.theme-switch.is-dark .theme-switch__icon--sun,
.theme-switch:not(.is-dark) .theme-switch__icon--moon {
  opacity: 0.28;
  transform: translateY(-50%) scale(0.92);
}

.theme-switch__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.theme-switch__icon--sun svg {
  stroke: currentColor;
}

.theme-switch__icon--sun svg circle {
  fill: rgba(255, 223, 110, 0.9);
  stroke: none;
}

.theme-switch__sun-rays line {
  stroke: currentColor;
}

.theme-switch__icon--moon svg {
  fill: rgba(96, 165, 250, 0.55);
  stroke: currentColor;
}

.theme-switch:hover .theme-switch__track {
  filter: brightness(1.05);
}

.theme-switch:active .theme-switch__thumb {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  transform: translateX(1px) scale(0.96);
}

.theme-switch.is-dark:active .theme-switch__thumb {
  transform: translateX(38px) scale(0.96);
}

.search-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-width: 38px;
}

.search-toggle:hover,
.search-toggle:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.masthead__search {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  display: none;
  gap: 0.45rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem;
  box-shadow: var(--shadow-elevated);
  min-width: 280px;
  z-index: 12;
}

.masthead__search.is-open .search-dropdown {
  display: flex;
}

.search-dropdown input[type="search"] {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--page-bg);
  color: var(--ink);
}

:root[data-theme="dark"] .search-dropdown input[type="search"] {
  background: var(--surface);
  color: var(--ink);
}

.search-dropdown button {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {

  .theme-switch,
  .theme-switch__track,
  .theme-switch__thumb,
  .theme-switch__icon {
    transition: none !important;
  }
}

.layout {

  width: min(1120px, 94vw);

  margin: 2rem auto 3rem;

}

.layout--admin-dashboard {
  width: min(1680px, 98vw);
}



.homepage-banner {

  width: min(1120px, 94vw);

  margin: 0 auto 2rem;

  text-align: center;

}

.frontpage-search {
  width: min(1120px, 94vw);
  margin: 0 auto 1.5rem;
}

.search-results .ad-placeholder--panel {
  min-height: 120px;
}



.ad-placeholder--banner {

  min-height: 120px;

}



.homepage-dashboard {

  width: min(1120px, 94vw);

  margin: 0 auto 2rem;

  display: grid;

  gap: 2rem;

  grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);

}



.dashboard-heading {

  margin-bottom: 1.75rem;

  display: flex;

  flex-direction: column;

  gap: 0.65rem;

}



.dashboard-heading h1 {

  margin: 0;

  font-size: clamp(1.75rem, 3.2vw, 2.3rem);

}



.dashboard-heading p {

  margin: 0;

  color: var(--muted);

  font-size: 0.95rem;

}



.card-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));

  gap: 1.35rem;

}



.article-card {

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 16px;

  overflow: hidden;

  display: flex;

  flex-direction: column;

  box-shadow: var(--shadow-elevated);

  transition: transform 0.2s ease, box-shadow 0.2s ease;

}



.article-card:hover {

  transform: translateY(-3px);

  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);

}



.article-card__media {

  display: block;

  background: #0f172a;

  overflow: hidden;

}



.article-card__media img {

  width: 100%;

  object-fit: cover;

  object-position: center;

  aspect-ratio: var(--media-ratio, 4 / 3);

  transition: transform 0.25s ease;

}



.article-card__media:hover img {

  transform: scale(1.04);

}



.article-card__body {
  padding: 0.95rem 1.2rem 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}



.article-card__tags,

.rail-card__tags {

  display: flex;

  flex-wrap: wrap;

  gap: 0.45rem;

}



.tag-badge {

  display: inline-flex;

  align-items: center;

  padding: 0.3rem 0.75rem;

  border-radius: 999px;

  background: var(--page-bg);

  border: 1px solid var(--border);

  font-size: 0.75rem;

  letter-spacing: 0.04em;

  text-transform: none;

  text-decoration: none;

  color: var(--muted);

  max-width: 12rem;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}



.tag-badge:hover {

  border-color: var(--accent);

  color: var(--accent);

}



.tag-badge--small {

  padding: 0.25rem 0.6rem;

  font-size: 0.7rem;

}



.article-card__headline {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.32;
}



.article-card__headline a {

  text-decoration: none;

}



.article-card__headline a:hover {

  color: var(--accent);

}



.article-card__summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}



.article-card__meta {

  margin-top: auto;

  display: flex;

  justify-content: space-between;

  gap: 0.65rem;

  font-size: 0.8rem;

  color: rgba(17, 24, 39, 0.6);

}



.homepage-dashboard__rail {

  display: flex;

  flex-direction: column;

  gap: 1.75rem;

}



.rail-panel {

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 16px;

  padding: 1.4rem;

  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);

}



.rail-panel h2 {

  margin: 0 0 1rem;

  font-size: 1rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;

}



.rail-panel--ad {

  display: grid;

  place-items: center;

}



.ad-placeholder--panel {

  min-height: 200px;

}



.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 14rem;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 24, 39, 0.35) rgba(17, 24, 39, 0.1);
}

.tag-cloud__item {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--page-bg);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}



.tag-cloud__item:hover,

.tag-cloud__item--active {

  border-color: var(--accent);

  color: var(--accent);

}



.tag-cloud__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Article Library Filters */
.filter-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.filter-bar--compact {
  padding: 0.5rem 0 1.5rem 0;
}

.filter-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1rem;
}

.filter-group--search {
  flex: 1;
  max-width: 450px;
  justify-content: flex-end !important;
}

.search-form {
  width: 100%;
}

.search-input-wrap {
  display: flex !important;
  flex-direction: row !important;
  width: 100%;
  gap: 0;
}

.search-input {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: var(--surface-brighter);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: var(--text);
  transition: border-color 0.2s;
}

.search-input-wrap .button--primary {
  border-radius: 0 4px 4px 0;
  padding: 0 1.25rem;
}

.search-input-wrap .button--secondary {
  margin-left: 0.5rem;
  border-radius: 4px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.filter-list {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0.25rem !important;
  gap: 0.25rem;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.filter-list li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}

.filter-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-link:hover {
  color: var(--text);
}

.filter-link.active {
  background: var(--surface-brighter);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dashboard-chip--active {
  background: var(--surface-brighter);
  border-color: var(--accent);
  color: var(--accent);
}

.dashboard-chip--active a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 0.25rem;
  font-weight: bold;
}

.dashboard-chip--active a:hover {
  color: var(--danger);
}

.frontpage {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
  --hero-surface: #020617;
  --hero-gradient-start: rgba(2, 6, 23, 0.85);
  --hero-gradient-end: rgba(2, 6, 23, 0.35);
  --hero-tag-bg: rgba(2, 6, 23, 0.55);
}

.frontpage[data-section-theme="politics"] {
  --hero-surface: #310b1f;
  --hero-gradient-start: rgba(76, 12, 32, 0.92);
  --hero-gradient-end: rgba(190, 24, 93, 0.45);
  --hero-tag-bg: rgba(88, 28, 67, 0.7);
}

.frontpage[data-section-theme="world"] {
  --hero-surface: #052b3a;
  --hero-gradient-start: rgba(4, 47, 73, 0.92);
  --hero-gradient-end: rgba(14, 165, 233, 0.35);
  --hero-tag-bg: rgba(8, 47, 73, 0.55);
}

.frontpage[data-section-theme="technology"] {
  --hero-surface: #0b1225;
  --hero-gradient-start: rgba(13, 25, 54, 0.92);
  --hero-gradient-end: rgba(59, 130, 246, 0.38);
  --hero-tag-bg: rgba(30, 64, 175, 0.55);
}

.frontpage[data-section-theme="business"] {
  --hero-surface: #0b1a0b;
  --hero-gradient-start: rgba(22, 78, 33, 0.9);
  --hero-gradient-end: rgba(34, 197, 94, 0.35);
  --hero-tag-bg: rgba(21, 128, 61, 0.55);
}

.frontpage[data-section-theme="culture"] {
  --hero-surface: #2b1033;
  --hero-gradient-start: rgba(76, 29, 149, 0.9);
  --hero-gradient-end: rgba(217, 70, 239, 0.35);
  --hero-tag-bg: rgba(109, 40, 217, 0.6);
}

.frontpage[data-section-theme="lifestyle"] {
  --hero-surface: #2a1206;
  --hero-gradient-start: rgba(120, 53, 15, 0.92);
  --hero-gradient-end: rgba(251, 146, 60, 0.4);
  --hero-tag-bg: rgba(194, 65, 12, 0.6);
}

.frontpage[data-section-theme="sports"] {
  --hero-surface: #120b2c;
  --hero-gradient-start: rgba(76, 29, 149, 0.9);
  --hero-gradient-end: rgba(14, 165, 233, 0.32);
  --hero-tag-bg: rgba(56, 189, 248, 0.55);
}

.frontpage-top-row {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(280px, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.frontpage-primary {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  height: 100%;
}

.frontpage-hero {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 580px;
  background: var(--hero-surface);
  color: var(--hero-copy-color, #fff);
  --hero-copy-color: #f8fafc;
  --hero-copy-strong: rgba(248, 250, 252, 0.95);
  --hero-copy-muted: rgba(248, 250, 252, 0.82);
  --hero-copy-meta: rgba(248, 250, 252, 0.75);
  --hero-copy-kicker: rgba(248, 250, 252, 0.8);
  --hero-tag-border: rgba(248, 250, 252, 0.35);
  --hero-tag-color: rgba(248, 250, 252, 0.97);
  --hero-text-shadow: 0 2px 14px rgba(2, 6, 23, 0.35);
  --hero-panel-start: rgba(2, 6, 23, 0.58);
  --hero-panel-mid: rgba(2, 6, 23, 0.24);
  --hero-panel-end: rgba(2, 6, 23, 0);
  --hero-image-brightness: 0.85;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.35);
}

.frontpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--hero-panel-start) 0%,
    var(--hero-panel-mid) 38%,
    var(--hero-panel-end) 72%
  );
}

.frontpage-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 65%);
}

.frontpage-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.frontpage-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(var(--hero-image-brightness));
}

.frontpage-hero__body {
  position: relative;
  z-index: 2;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 760px;
  height: 100%;
  justify-content: space-between;
  text-align: left;
}

.frontpage-hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--hero-copy-kicker);
  text-shadow: var(--hero-text-shadow);
  margin: 0 0 0.35rem;
}

.frontpage-hero__headline {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: auto;
  text-shadow: var(--hero-text-shadow);
}

.frontpage-hero__headline a {
  color: inherit;
  text-decoration: none;
}

.frontpage-hero__headline a:hover,
.frontpage-hero__headline a:focus-visible {
  text-decoration: underline;
}

.frontpage-hero__dek {
  margin: 0.5rem 0 1.25rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--hero-copy-strong);
  font-style: italic;
  max-width: 680px;
  text-shadow: var(--hero-text-shadow);
}

.frontpage-hero__summary {
  margin: 0;
  font-size: 1.05rem;
  color: var(--hero-copy-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: var(--hero-text-shadow);
}

.frontpage-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--hero-copy-meta);
  text-shadow: var(--hero-text-shadow);
}

.frontpage-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.frontpage-hero__tags .tag-badge {
  border-color: var(--hero-tag-border);
  background: var(--hero-tag-bg);
  color: var(--hero-tag-color);
  backdrop-filter: blur(6px);
}


.frontpage-secondary-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow-elevated);
}

.frontpage-secondary-hero__media img {
  width: 100%;
  border-radius: 1rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.frontpage-secondary-hero__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.frontpage-secondary-hero__kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.frontpage-secondary-hero__dek {
  margin: 0.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.frontpage-secondary-hero__summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.frontpage-interstitial-ad {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow-elevated);
}

.frontpage-interstitial-ad .ad-placeholder {
  margin: 0;
}

.frontpage-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.frontpage-headlines {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.headline-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-content: stretch;
  gap: 1.25rem;
}

.headline-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.headline-card__thumb {
  display: block;
  width: 100%;
}

.headline-card__thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 0.9rem;
  display: block;
}

.headline-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.headline-card h3 {
  margin: 0;
  font-size: 1rem;
}

.headline-card__summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  min-height: 2.4rem;
}

.headline-card__meta {
  margin: auto 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.frontpage-spotlight-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.spotlight-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.spotlight-card__media img {
  width: 100%;
  border-radius: 0.9rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

.spotlight-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.spotlight-card__kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.spotlight-card__dek {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.spotlight-card__summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.spotlight-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.spotlight-card--ad {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.spotlight-card__sponsor {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.spotlight-card__actions {
  margin-top: 0.5rem;
}

.spotlight-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.spotlight-card__cta:hover,
.spotlight-card__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.3);
}


.brief-card__summary {
  margin-top: 0.4rem;
}

.quick-hit__summary {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.quick-hit__actions {
  margin-top: 0.35rem;
}

.quick-hit__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background 120ms ease, color 120ms ease;
}

.quick-hit__cta:hover,
.quick-hit__cta:focus-visible {
  background: var(--accent-soft);
  color: var(--ink);
}

.frontpage-briefs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
}

.frontpage-briefs h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.frontpage-briefs__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
}

.brief-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.brief-card:first-of-type {
  border-top: none;
  padding-top: 0;
}

.brief-card__body h3 {
  margin: 0;
  font-size: 1rem;
}

.brief-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.brief-card__body h3 a:hover,
.brief-card__body h3 a:focus-visible {
  text-decoration: underline;
}

.brief-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.frontpage-briefs--with-thumbs .brief-card {
  align-items: flex-start;
}

.frontpage-briefs--with-thumbs .brief-card__thumb {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  display: block;
  flex: 0 0 72px;
  height: 72px;
  overflow: hidden;
  text-decoration: none;
  width: 72px;
}

.frontpage-briefs--with-thumbs .brief-card__thumb img,
.frontpage-briefs--with-thumbs .brief-card__thumb video {
  border-radius: 0;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.frontpage-briefs--with-thumbs .brief-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.frontpage-rail {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  height: 100%;
  min-height: 100%;
}

.rail-panel--trending {
  padding-bottom: 1.75rem;
}

.rail-panel--trending .tag-cloud {
  min-height: 320px;
  scrollbar-color: rgba(148, 163, 184, 0.4) rgba(148, 163, 184, 0.12);
}

.rail-panel--quick {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rail-panel--quick .quick-hit-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: flex-start;
  height: 100%;
}

.quick-hit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quick-hit-list li {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
  flex: 1;
}

.quick-hit-list img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
}

.quick-hit-list h4 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
}

.quick-hit-list li>div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.quick-hit-list h4 a {
  color: inherit;
  text-decoration: none;
}

.quick-hit-list h4 a:hover,
.quick-hit-list h4 a:focus-visible {
  text-decoration: underline;
}

.quick-hit-list p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.rail-panel--quick .quick-hit-list.quick-hit-list--overlay {
  flex: 0 0 auto;
  height: auto;
  gap: 0.875rem;
}

.rail-panel--quick .quick-hit-list.quick-hit-list--overlay li {
  align-items: stretch;
  display: block;
  flex: 0 0 auto;
}

.rail-panel--quick .quick-hit-list.quick-hit-list--overlay li > a {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  display: block;
  min-height: 116px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.rail-panel--quick .quick-hit-list.quick-hit-list--overlay li > a img,
.rail-panel--quick .quick-hit-list.quick-hit-list--overlay li > a video {
  border-radius: 0;
  display: block;
  filter: brightness(0.78);
  height: 100%;
  min-height: 116px;
  object-fit: cover;
  width: 100%;
}

.quick-hit-overlay {
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.03) 14%, rgba(2, 6, 23, 0.62) 62%, rgba(2, 6, 23, 0.9) 100%);
  display: flex;
  inset: 0;
  padding: 0.65rem;
  position: absolute;
}

.quick-hit-overlay__copy {
  display: grid;
  gap: 0.12rem;
  width: 100%;
}

.quick-hit-overlay__kicker {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.quick-hit-overlay h4 {
  color: #fff;
  font-size: 1.07rem;
  line-height: 1.08;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.rail-panel--quick .quick-hit-list.quick-hit-list--overlay li > a:hover .quick-hit-overlay,
.rail-panel--quick .quick-hit-list.quick-hit-list--overlay li > a:focus-visible .quick-hit-overlay {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.03) 10%, rgba(2, 6, 23, 0.56) 56%, rgba(2, 6, 23, 0.86) 100%);
}

.readmore-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.readmore-link:hover,
.readmore-link:focus-visible {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .frontpage-top-row {
    grid-template-columns: 1fr;
  }

  .frontpage-secondary-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .frontpage-hero__body {
    padding: 2rem;
  }

  .frontpage-secondary-hero {
    grid-template-columns: 1fr;
  }

  .headline-list {
    grid-template-columns: 1fr;
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .brief-card {
    flex-direction: column;
  }

  .frontpage-briefs--with-thumbs .brief-card {
    flex-direction: row;
  }
}



.rail-stack {

  display: grid;

  gap: 1rem;

}



.rail-card {

  display: grid;

  grid-template-columns: 110px minmax(0, 1fr);

  gap: 0.85rem;

  align-items: start;

}



.rail-card__media {

  display: block;

  border-radius: 12px;

  overflow: hidden;

  background: #0f172a;

}



.rail-card__media img {

  width: 100%;

  object-fit: cover;

  object-position: center;

  aspect-ratio: var(--media-ratio, 4 / 3);

}



.rail-card__body {

  display: flex;

  flex-direction: column;

  gap: 0.4rem;

}



.rail-card__body h3 {

  margin: 0;

  font-size: 0.95rem;

  line-height: 1.35;

  display: -webkit-box;

  -webkit-line-clamp: 3;

  -webkit-box-orient: vertical;

  overflow: hidden;

  max-height: calc(1.35em * 3);

  word-break: break-word;

}



.rail-card__body h3 a {

  text-decoration: none;

}



.rail-card__body h3 a:hover {

  color: var(--accent);

}



.card-grid__empty {

  margin: 0;

  color: var(--muted);

  font-size: 0.95rem;

}



@media (max-width: 1180px) {

  .homepage-dashboard {

    grid-template-columns: 1fr;

  }



  .homepage-dashboard__rail {

    flex-direction: row;

    flex-wrap: wrap;

    gap: 1.5rem;

  }



  .homepage-dashboard__rail .rail-panel {

    flex: 1 1 280px;

  }

}



@media (max-width: 820px) {

  .card-grid {

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

  }



  .article-card__body {
    padding: 0.85rem 1rem 0.2rem;
    gap: 0.45rem;
  }



  .homepage-dashboard__rail {

    flex-direction: column;

  }

}

.empty-state {

  background: var(--surface);

  border: 1px solid var(--border);

  padding: 3rem;

  text-align: center;

}



.empty-state h1 {

  font-family: "Merriweather", "Georgia", serif;

}



.article-view__header {

  border-bottom: 1px solid var(--border);

  padding-bottom: 1.5rem;

  margin-bottom: 1.5rem;

}



.article-view__section {

  margin: 0;

  font-size: 0.75rem;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  color: var(--accent);

}



.article-view__meta {

  display: flex;

  gap: 1rem;

  flex-wrap: wrap;

  font-size: 0.9rem;

  color: var(--muted);

}



.article-view__hero {

  margin: 0 0 1.75rem;

}



.article-view__hero a {

  display: block;

  border-radius: 12px;

  overflow: hidden;

}



.article-view__hero img {

  width: 100%;

  object-fit: cover;

  object-position: center;

  aspect-ratio: 16 / 9;

  border: 1px solid var(--border);

}



.article-view__hero figcaption {

  font-size: 0.85rem;

  color: var(--muted);

  margin-top: 0.5rem;

}



.article-view__layout {

  display: grid;

  grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr);

  gap: 2.5rem;

}



.article-view__body {
  padding: 1.5rem 2rem 2rem;
}



.article-view__body p {

  font-family: "Merriweather", "Georgia", serif;

  font-size: 1.08rem;

  margin: 0 0 1.4rem;

}



.article-view__sidebar {

  display: flex;

  flex-direction: column;

  gap: 1.75rem;

}



.article-view__widget {

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 14px;

  padding: 1.5rem;

  display: flex;

  flex-direction: column;

  gap: 0.75rem;

}



.article-view__widget h3 {

  margin: 0;

  font-size: 0.95rem;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  color: var(--muted);

}



.article-view__tag-list {

  list-style: none;

  margin: 0;

  padding: 0;

  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

}



.article-view__tag-list a {

  display: inline-flex;

  align-items: center;

  padding: 0.35rem 0.85rem;

  border-radius: 999px;

  background: var(--page-bg);

  border: 1px solid var(--border);

  font-size: 0.85rem;

  text-decoration: none;

  color: var(--ink);

}



.article-view__tag-list a:hover {

  border-color: var(--accent);

  color: var(--accent);

}







.article-view__tags {

  color: var(--muted);

  font-size: 0.9rem;

}



.footer {

  background: var(--footer-bg);

  color: var(--footer-text);

  margin-top: 4rem;

  padding: 3rem 0 2.5rem;

  transition: background 0.3s ease, color 0.3s ease;

}



.footer a {

  color: inherit;

  text-decoration: none;

}



.footer a:hover {

  color: var(--accent);

}



.footer__mega {

  width: min(1120px, 94vw);

  margin: 0 auto 2.5rem;

  display: block;

  gap: 2.5rem;

}



@media (min-width: 960px) {

  .footer__mega {

    display: block;

  }

}



.footer__tagline-band {

  width: 100%;

  background: var(--footer-bg);

  color: var(--footer-text);

  padding: 0.4rem 0 0.95rem;
  margin-bottom: 0.5rem;

  border-bottom: 1px solid var(--border);

  display: flex;
  justify-content: center;
  align-items: center;

}



.footer__tagline-inner {

  width: min(1120px, 94vw);

  margin: 0 auto;

  display: flex;

  align-items: center;

  gap: 1rem;

}



.footer__hero-logo {

  font-family: "Merriweather", "Georgia", serif;

  font-size: clamp(2.2rem, 4vw, 3rem);

  letter-spacing: 0.08em;
  font-weight: 700;

  text-decoration: none;

  color: var(--footer-text);

  line-height: 1;

  margin: 0;

}



.footer__hero-motto {

  margin: 0;

  max-width: 560px;

  font-size: 1rem;

  color: var(--accent);

  flex: 1;

  min-width: 0;

  text-align: left;

  line-height: 1.2;

}



:root[data-theme="dark"] .footer__tagline-band {

  background: var(--footer-bg);

  color: var(--footer-text);

  border-bottom-color: rgba(148, 163, 184, 0.25);

}



.footer__grid {

  display: grid;

  gap: 1.75rem;

  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

}



.footer__column h3 {

  margin: 0 0 0.75rem;

  font-size: 0.9rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: var(--footer-muted);

}



.footer__column ul {

  list-style: none;

  margin: 0;

  padding: 0;

  display: grid;

  gap: 0.5rem;

}



.footer__column--split ul {

  grid-template-columns: repeat(2, minmax(0, 1fr));

  column-gap: 1rem;

}



.footer__column--split li {

  break-inside: avoid;

}



.footer__column a {

  font-size: 0.95rem;

  color: var(--footer-text);

}



.footer__column a:hover {

  color: var(--accent);

}



.footer__bottom {

  width: min(1120px, 94vw);

  margin: 0 auto;

  border-top: 1px solid var(--border);

  padding-top: 1.75rem;

  display: flex;

  flex-direction: column;

  gap: 1.5rem;

}



.footer__legal-links {

  display: flex;

  flex-wrap: wrap;

  gap: 1.25rem;

  font-size: 0.85rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  justify-content: center;

}



.footer__disclaimer {

  margin: 0;

  font-size: 0.9rem;

  color: var(--footer-muted);

  line-height: 1.6;

}



@media (max-width: 960px) {
  .masthead__inner {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .masthead__branding {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .masthead__brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .masthead__tagline {
    max-width: 100%;
    white-space: normal;
  }

  .masthead__actions {
    width: 100%;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .masthead__nav {
    flex-wrap: wrap;
    white-space: normal;
    gap: 0.85rem;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .masthead__controls {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .masthead__actions-row {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    gap: 0.7rem;
  }

  .masthead__dateline {
    align-self: flex-start;
  }

  .footer__grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}




@media (max-width: 700px) {

  .masthead__inner {

    flex-direction: column;

    align-items: flex-start;

    gap: 1rem;

  }



  .masthead__brand-row {

    width: 100%;

  }



  .masthead__actions {
    width: 100%;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .masthead__nav {

    width: 100%;

    justify-content: flex-start;

    gap: 0.65rem;

    flex-wrap: wrap;

  }

  .masthead__controls {
    width: 100%;
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .masthead__actions-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .masthead__dateline {
    align-self: flex-start;
  }

  .masthead__admin {
    padding: 0.3rem 0.85rem;
  }



  .footer__tagline-band {

    flex-direction: column;

    text-align: center;

    gap: 0.25rem;

  }



  .footer__column ul {

    display: none;

  }

}





.dashboard__header {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 1.5rem;

  margin-bottom: 1.75rem;

}



.dashboard__lead {

  margin: 0.25rem 0 0;

  color: var(--muted);

  font-size: 0.95rem;

}


.dashboard__subnav {
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 1.5rem;
  margin: 0 -1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] .dashboard__subnav {
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dashboard__subnav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s ease;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}


.dashboard__subnav a:hover,
.dashboard__subnav a:focus-visible {
  background: rgba(79, 70, 229, 0.12);
  color: var(--accent);
}



.dashboard__subnav-cta {

  background: var(--accent);

  color: #fff !important;

  border-color: transparent !important;

  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.25);

}




.dashboard__timestamp {

  margin: 0;

  color: var(--muted);

  font-size: 0.9rem;

  font-weight: 600;

}



.dashboard-cards {

  display: grid;

  gap: 0.5rem;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  margin-bottom: 1.25rem;

}

.dashboard-cards--metrics {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}




.dashboard-card {

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 0.75rem;

  padding: 0.85rem 1rem;

  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);

  display: flex;

  flex-direction: column;

  gap: 0.75rem;

}



.dashboard-card h2 {

  margin: 0;

  font-size: 1.1rem;

}


.dashboard-card--metric {

  align-items: flex-start;

}



.dashboard-card__headline {

  margin: 0;

  font-size: clamp(1.6rem, 3vw, 2.1rem);

  font-weight: 700;

  color: var(--ink);

}




.dashboard-card__list {

  margin: 0;

  padding-left: 1.1rem;

  display: flex;

  flex-direction: column;

  gap: 0.5rem;

  font-weight: 600;

}



.dashboard-card__list li {

  display: flex;

  justify-content: space-between;

  gap: 0.75rem;

}



.dashboard-card__topic {

  flex: 1;

  color: var(--ink);

}



.dashboard-card__metric {

  color: var(--accent);

}



.dashboard-card__meta {

  margin: 0;

  color: var(--muted);

  font-size: 0.85rem;

}



.dashboard-card__empty {

  margin: 0;

  color: var(--muted);

  font-style: italic;

  font-size: 0.9rem;

}

.dashboard-card__meta-list {

  margin: 0;

  padding: 0;

  list-style: none;

  display: flex;

  flex-direction: column;

  gap: 0.25rem;

  font-size: 0.85rem;

  color: var(--muted-strong);

}

.dashboard-card__meta-list li span {

  font-weight: 600;

  margin-left: 0.4rem;

  color: var(--ink);

}



.dashboard-card__chips {

  list-style: none;

  margin: 0;

  padding: 0;

  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

}



.dashboard-card__chips li {

  background: var(--accent-soft);

  border: 1px solid var(--accent);

  color: var(--accent);

  font-size: 0.8rem;

  font-weight: 600;

  padding: 0.25rem 0.75rem;

  border-radius: 999px;

  text-transform: uppercase;

  letter-spacing: 0.04em;

}



.dashboard-card__alert {

  margin: 0;

  color: var(--accent);

  font-weight: 600;

}



.dashboard-card__ok {

  margin: 0;

  color: #047857;

  font-weight: 600;

}



.dashboard-card--alert {

  border-color: var(--accent);

  box-shadow: 0 14px 28px rgba(185, 28, 28, 0.15);

}



.dashboard-grid {

  display: grid;

  gap: 1.5rem;

  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));

}



.dashboard-panel {

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 0.75rem;

  padding: 1.25rem;

  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);

  display: flex;

  flex-direction: column;

  gap: 1rem;

}

.dashboard-panel,
.dashboard-card,
.dashboard-panel p,
.dashboard-panel li,
.dashboard-card__meta,
.dashboard-card__list,
.dashboard-inline-list li,
.dashboard-table td,
.dashboard-table th,
.log-list li {
  word-break: break-word;
  overflow-wrap: anywhere;
}

#auto-ingest-progress {

  max-height: 600px;
  padding: 1.15rem 1.25rem 1rem;

  overflow-y: auto;

}

.trend-table__scroll {

  max-height: 640px;

  overflow-y: auto;
  overflow-x: auto;

  margin-right: -0.5rem;

  padding-right: 0.5rem;

}

.dashboard-table--compact {

  font-size: 0.85rem;
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;

}

.dashboard-table--compact th,
.dashboard-table--compact td {

  padding: 0.35rem 0.5rem;

  vertical-align: middle;

  line-height: 1.2;

}

/* Numeric/short columns - prevent wrapping */
.dashboard-table--compact th:nth-child(1),
.dashboard-table--compact td:nth-child(1),
.dashboard-table--compact th:nth-child(3),
.dashboard-table--compact td:nth-child(3),
.dashboard-table--compact th:nth-child(4),
.dashboard-table--compact td:nth-child(4),
.dashboard-table--compact th:nth-child(6),
.dashboard-table--compact td:nth-child(6),
.dashboard-table--compact th:nth-child(8),
.dashboard-table--compact td:nth-child(8) {
  white-space: nowrap;
}

.trend-table__topic-cell {

  min-width: 14rem;
  max-width: 28rem;

  white-space: normal;

  word-break: break-word;

}

.trend-table__topic {

  font-weight: 600;

}

.trend-table__score-cell {
  min-width: 4rem;
  text-align: center;
  white-space: nowrap;
}

.trend-table__satire-cell {
  min-width: 4rem;
  text-align: center;
  white-space: nowrap;
}

.trend-table__satire-cell .dashboard-chip {
  display: inline-block;
  min-width: 3ch;
  text-align: center;
  padding: 0.15rem 0.35rem;
  font-size: 0.8rem;
}

.trend-table__chip-cell {

  min-width: 10rem;

}

.trend-table__chip-row {

  display: flex;

  flex-wrap: wrap;

  gap: 0.25rem;
  min-width: 0;

}

.trend-table__chip-row .dashboard-chip {
  font-size: 0.75rem;
  padding: 0.1rem 0.3rem;
  margin: 0;
  white-space: nowrap;
}

.trend-table__chip-row .dashboard-chip {

  margin: 0;

}

.trend-table__rank {

  min-width: 2.5ch;

  text-align: right;

  white-space: nowrap;

}

.trend-table__mentions-cell {
  min-width: 4rem;
  text-align: center;
  white-space: nowrap;
}

.trend-table__lastseen-cell {
  min-width: 5rem;
  white-space: nowrap;
}

.headline-lab__output {

  border-top: 1px solid var(--border);

  margin-top: 1rem;

  padding-top: 1rem;

}

.headline-lab__headline {

  font-size: 1.35rem;

  font-weight: 700;

  margin: 0 0 0.5rem 0;

}

.headline-lab__source,
.headline-lab__summary {

  margin: 0 0 0.75rem 0;

}

.headline-lab__force {

  display: flex;

  align-items: center;

  gap: 0.35rem;

  font-size: 0.9rem;

  color: var(--muted);

}


.dashboard-panel--wide {
  grid-column: 1 / -1;
}

.dashboard-panel--narrow {
  grid-column: span 1;
}

.headline-lab__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.headline-lab__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.headline-lab__grid input[type="text"] {
  padding: 0.85rem 1rem;
}

.headline-lab__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: end;
}

.headline-lab__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--surface-strong, var(--surface));
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
}

.headline-lab__field label {
  font-weight: 600;
  color: var(--ink);
}

.headline-lab__field--inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.headline-lab__field select,
.headline-lab__field input[type="text"] {
  width: 100%;
  border-radius: 0.55rem;
  padding: 0.75rem 0.9rem;
}

.headline-lab__field button {
  margin-left: 0.5rem;
  white-space: nowrap;
}

.headline-lab__force {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-stack--compact {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-stack--compact input[type="text"] {
  flex: 1 1 220px;
}

.form-stack--compact select,
.form-stack--compact button,
.form-stack--compact label {
  flex: 0 0 auto;
}



.dashboard-panel--compact {

  padding: 1rem;

  gap: 0.75rem;

}



.dashboard-panel--emphasized {

  border-width: 2px;

  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.12);

}




.dashboard-panel header h2 {

  margin: 0;

}



.dashboard-metrics {

  margin: 0;

  display: grid;

  gap: 0.75rem;

  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));

}



.dashboard-metrics div {

  background: rgba(17, 24, 39, 0.03);

  border-radius: 0.5rem;

  padding: 0.75rem;

  text-align: center;

}



.dashboard-metrics dt {

  font-size: 0.85rem;

  text-transform: uppercase;

  letter-spacing: 0.05em;

  color: var(--muted);

  margin: 0 0 0.35rem;

}



.dashboard-metrics dd {

  margin: 0;

  font-size: 1.4rem;

  font-weight: 700;

}



.dashboard-table {

  width: 100%;

  border-collapse: collapse;

  font-size: 0.92rem;

  line-height: 1.4;

}



.dashboard-table thead th {

  text-align: left;

  padding: 0.5rem 0.75rem;

  font-size: 0.8rem;

  text-transform: uppercase;

  letter-spacing: 0.05em;

  color: var(--muted);

  border-bottom: 1px solid var(--border);

}



.dashboard-table tbody td {

  padding: 0.65rem 0.75rem;

  border-bottom: 1px solid rgba(15, 23, 42, 0.08);

  vertical-align: top;

}



.dashboard-table tr:last-child td {

  border-bottom: none;

}



.dashboard-table--grid thead th,

.dashboard-table--grid tbody td {

  border: 1px solid rgba(15, 23, 42, 0.12);

}



.dashboard-table--grid thead th {

  background: rgba(15, 23, 42, 0.04);

}



.dashboard-table--grid tbody td {

  background: rgba(15, 23, 42, 0.02);

}

.dashboard-table--scores-wide th:nth-child(3),
.dashboard-table--scores-wide td:nth-child(3) {
  min-width: 190px;
  width: 190px;
  white-space: nowrap;
}



.dashboard-table__title {

  font-weight: 600;

  color: var(--ink);

  width: 26%;

}



.dashboard-table__title a {

  color: inherit;

  text-decoration: none;

}



.dashboard-table__title a:hover {

  text-decoration: underline;

}



.dashboard-table__summary {

  width: 44%;

  color: var(--muted-strong);

  white-space: normal;

}



.dashboard-table--articles tbody td {

  white-space: normal;

}



.dashboard-table--articles tbody td:nth-child(3),

.dashboard-table--articles tbody td:nth-child(4) {

  white-space: nowrap;

  font-size: 0.85rem;

  color: var(--muted);

}



.log-list {

  list-style: none;

  margin: 0;

  padding: 0;

  display: flex;

  flex-direction: column;

  gap: 0.6rem;

  font-size: 0.9rem;

}



.log-list li {

  padding: 0.6rem 0.75rem;

  border-radius: 0.5rem;

  background: rgba(17, 24, 39, 0.04);

}

.log-details {
  margin: 0.4rem 0 0;
  padding: 0.35rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  font-size: 0.8rem;
  color: var(--muted);
}

.log-details__item {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.log-details__label {
  font-weight: 600;
  text-transform: capitalize;
}

.log-details__value {
  font-family: var(--font-family-mono, 'IBM Plex Mono', monospace);
}



.progress-run__header {

  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

  align-items: baseline;

}

.progress-run__title {

  font-weight: 600;

}

.progress-run__status {

  font-weight: 500;

  color: var(--accent);

}

.progress-run__time {

  font-size: 0.8rem;

  color: var(--muted);

}

.progress-run__events {

  list-style: none;

  margin: 0.5rem 0 0;

  padding: 0;

  display: flex;

  flex-direction: column;

  gap: 0.5rem;

}


.ingest-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem;
  margin: 0.35rem 0 0;
  padding: 0.3rem 0.55rem 0.45rem;
  width: 100%;
}

@media (max-width: 1400px) {
  .ingest-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 1200px) {
  .ingest-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ingest-card-grid {
    grid-template-columns: 1fr;
    padding: 0.2rem 0;
  }
}

.ingest-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.ingest-card--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.ingest-card--failed {
  border-color: rgba(220, 38, 38, 0.6);
  background: rgba(220, 38, 38, 0.08);
}

.ingest-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.ingest-card__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.ingest-card__meta {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.ingest-card__controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
}

.ingest-card__toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  color: var(--ink);
}

.ingest-card__toggle:focus-visible,
.ingest-card__toggle:hover {
  border-color: var(--accent);
  background: rgba(17, 24, 39, 0.12);
  outline: none;
}

.ingest-card__toggle-icon {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s ease;
}

.ingest-card__toggle[aria-expanded='true'] .ingest-card__toggle-icon {
  transform: rotate(180deg);
}

.ingest-card__timestamp {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.ingest-card__progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ingest-card__progress-track {
  flex: 1;
  height: 6px;
  background: rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.ingest-card__progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.25s ease;
}

.ingest-card--failed .ingest-card__progress-track span {
  background: #dc2626;
}

.ingest-card__progress-label {
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 3ch;
  text-align: right;
}

.ingest-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.ingest-card__chips .dashboard-chip {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ingest-card__detail {
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ingest-card__detail[hidden] {
  display: none !important;
}

.ingest-card__detail-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.45rem;
  font-size: 0.85rem;
}

.ingest-card__detail-list dt {
  font-weight: 600;
  color: var(--muted);
}

.ingest-card__detail-list dd {
  margin: 0;
}

.ingest-card__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.ingest-card__detail-actions {
  display: flex;
  justify-content: flex-end;
}

.ingest-card__focus {
  border: 1px solid rgba(17, 24, 39, 0.2);
  background: transparent;
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ingest-card__focus:hover,
.ingest-card__focus:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(249, 115, 22, 0.08);
  outline: none;
}

.ingest-card--empty {
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
  box-shadow: none;
}

.table-actions {

  display: flex;

  gap: 0.5rem;

  flex-wrap: wrap;

}



.table-actions form {

  margin: 0;

}



@media (max-width: 960px) {

  .front-page {

    grid-template-columns: 1fr;

  }



  .lead-story {

    grid-template-columns: 1fr;

  }



  .spotlight-stack {

    position: static;

  }



  .news-grid__heading {

    flex-direction: column;

    align-items: flex-start;

  }



  .article-view__layout {

    grid-template-columns: 1fr;

  }

}



@media (max-width: 720px) {

  .masthead__inner {

    flex-direction: column;

    align-items: flex-start;

  }



  .masthead__nav {

    gap: 0.75rem;

    font-size: 0.85rem;

  }



  .dashboard__header {

    flex-direction: column;

    align-items: flex-start;

  }



  .dashboard__timestamp {

    font-size: 0.85rem;

  }

}



.ad-slot {

  margin: 2rem auto;

  text-align: center;

}



.ad-slot ins {

  display: inline-block;

  margin: 0 auto;

}



.ad-slot--leaderboard {

  padding: 1rem 0;

}



.ad-slot--inline {

  margin: 2.5rem 0;

}



.ad-slot--sidebar {

  margin: 0;

  position: sticky;

  top: 2rem;

}



.ad-placeholder {

  display: grid;

  place-items: center;

  padding: 1.5rem;

  border-radius: 12px;

  border: 1px dashed var(--border);

  background: var(--surface);

  color: var(--muted);

  font-size: 0.8rem;

  letter-spacing: 0.1em;

  text-transform: uppercase;

}



.media-thumb {

  display: inline-flex;

  max-width: 160px;

  border-radius: 8px;

  overflow: hidden;

  border: 1px solid var(--border);

  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);

  transition: transform 0.2s ease, box-shadow 0.2s ease;

}



.media-thumb:hover {

  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);

}



.media-thumb img,

.media-thumb video {

  display: block;

  width: 100%;

  height: auto;

  object-fit: contain;

  background: #000;

}



/* Admin form layout */

.form-panel {

  width: min(920px, 94vw);

  margin: 0 auto;

  padding: 2rem 0 3rem;

  display: flex;

  flex-direction: column;

  gap: 1.75rem;

}



.form-panel__header {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 1.5rem;

  flex-wrap: wrap;

}



.form-card {

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 1.5rem;

  padding: clamp(1.5rem, 2vw, 2.25rem);

  box-shadow: var(--shadow-elevated);

}



.form-card__meta {

  margin: 0.35rem 0;

  font-size: 0.9rem;

  color: var(--muted);

}



.form-card__success {

  margin-top: 0.75rem;

  padding: 0.85rem 1rem;

  background: rgba(34, 197, 94, 0.12);

  border-radius: 0.75rem;

  color: #15803d;

  font-weight: 600;

}



.form-card__error {

  margin-top: 0.75rem;

  padding: 0.85rem 1rem;

  background: rgba(248, 113, 113, 0.12);

  border-radius: 0.75rem;

  color: #b91c1c;

  font-weight: 600;

}



.form-stack {

  display: flex;

  flex-direction: column;

  gap: 1.5rem;

  margin-top: 1.5rem;

}



.form-stack__section {

  display: flex;

  flex-direction: column;

  gap: 0.65rem;

}



.form-stack__section h3 {

  margin: 0;

  font-size: 0.95rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: var(--muted);

}



.form-stack input[type="text"],

.form-stack textarea {

  width: 100%;

  border: 1px solid var(--border);

  border-radius: 1rem;

  padding: 1rem 1.25rem;

  font-size: 1.05rem;

  line-height: 1.5;

  background: var(--surface);

  color: var(--ink);

  transition: border-color 0.2s ease, box-shadow 0.2s ease;

}



.form-stack textarea {

  min-height: 120px;

  resize: vertical;

}



.form-stack input[type="text"]:focus,

.form-stack textarea:focus {

  outline: none;

  border-color: var(--accent);

  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.2);

}



.form-stack__hint {

  margin: 0;

  font-size: 0.9rem;

  color: var(--muted);

}



.form-stack__actions {

  display: flex;

  justify-content: flex-end;

  align-items: center;

  gap: 0.75rem;

  flex-wrap: wrap;

}



.form-stack__actions--split {

  justify-content: flex-end;

}



.lightbox {

  position: fixed;

  inset: 0;

  z-index: 4000;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(17, 24, 39, 0.76);

  padding: 2.5rem clamp(1rem, 4vw, 3rem);

  backdrop-filter: blur(4px);

  animation: lightbox-fade 0.18s ease;

}



.lightbox__content {
  --lightbox-padding: clamp(0.75rem, 1.2vw, 1.5rem);
  width: min(92vw, 1200px);
  max-height: min(90vh, 1200px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--lightbox-padding);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.5);
  overflow: hidden;
}

.lightbox__content img,
.lightbox__content video {
  max-width: 100%;
  max-height: calc(90vh - (var(--lightbox-padding) * 2));
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.32);
}



.lightbox__close {

  position: absolute;

  top: calc(var(--lightbox-padding, 1rem) - 0.25rem);

  right: calc(var(--lightbox-padding, 1rem) - 0.25rem);

  background: rgba(17, 24, 39, 0.65);

  color: #fff;

  border: none;

  border-radius: 50%;

  width: 36px;

  height: 36px;

  cursor: pointer;

  display: grid;

  place-items: center;

  font-size: 1.25rem;

  transition: background 0.2s ease, transform 0.2s ease;

}



.lightbox__close:hover {

  background: rgba(17, 24, 39, 0.85);

  transform: scale(1.06);

}



@keyframes lightbox-fade {

  from {

    opacity: 0;

  }

  to {

    opacity: 1;

  }

}



img.image-placeholder {

  filter: saturate(0) contrast(1.05);

  background: #111827;

}



.article-author {
  margin-top: 3rem;
  padding: 2.5rem 2rem 2rem;
  border-top: 1px solid var(--border);
}



.article-author__content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 0 1.5rem;
}

.article-author__heading {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 1.5rem;
}



.article-author__avatar {

  width: 96px;

  height: 96px;

  border-radius: 50%;

  object-fit: cover;

  border: 2px solid var(--accent);

  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);

}



.article-author__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 1rem;
}



.article-author__name {

  font-weight: 700;

  font-size: 1.05rem;

  margin: 0;

}



.article-author__bio {

  margin: 0;

  color: var(--muted);

  font-size: 0.95rem;

  line-height: 1.6;

}



@media (max-width: 720px) {

  .ad-slot--sidebar {

    position: static;

    margin: 2rem 0;

  }



  .article-author__content {

    flex-direction: column;

    align-items: flex-start;

  }

}




:root[data-theme="dark"] .homepage-dashboard,
:root[data-theme="dark"] .layout,
:root[data-theme="dark"] .homepage-banner {
  color: var(--ink);
}

:root[data-theme="dark"] .article-card,
:root[data-theme="dark"] .dashboard-card,
:root[data-theme="dark"] .article-view__body,
:root[data-theme="dark"] .article-view__sidebar,
:root[data-theme="dark"] .article-author {
  background: var(--surface);
  border-color: var(--border);
}

:root[data-theme="dark"] .tag-badge,
:root[data-theme="dark"] .article-view__tag-list a {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--border);
  color: var(--ink);
}

:root[data-theme="dark"] .ad-placeholder,
:root[data-theme="dark"] .ad-placeholder--banner,
:root[data-theme="dark"] .ad-placeholder--panel {
  background: rgba(15, 23, 42, 0.5);
  color: var(--muted);
  border-color: var(--border);
}

:root[data-theme="dark"] .footer a:hover,
:root[data-theme="dark"] .masthead__nav a:hover {
  color: var(--accent);
}

:root[data-theme="dark"] .footer__tagline-band {
  background: var(--footer-bg);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--footer-text);
}

.article-card__tags--inline {
  margin-top: 0.75rem;
  gap: 0.3rem;
  max-height: 3.25rem;
  overflow: hidden;
}

.article-card__tags--inline .tag-badge {
  font-size: 0.72rem;
  padding: 0.24rem 0.6rem;
  line-height: 1.1;
}

.article-card__summary .article-card__readmore {
  display: inline-block;
  margin-left: 0.35rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}

.article-card__summary .article-card__readmore:hover {
  text-decoration: underline;
}

.rail-card__summary {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.article-card__summary-text {
  flex: 1 1 100%;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.button {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  border: none;

  cursor: pointer;

}





.button--pill {

  border-radius: 999px;

  padding: 0.55rem 1.35rem;

  font-weight: 600;

  letter-spacing: 0.03em;

  transition: transform 0.2s ease, box-shadow 0.2s ease;

}


.button--pill.button--compact {

  padding: 0.35rem 0.75rem;

  font-size: 0.82rem;

  line-height: 1.15;

}

.button--tiny {

  padding: 0.15rem 0.5rem;

  font-size: 0.78rem;

  line-height: 1.2;

}


.button--pill:hover {

  transform: translateY(-1px);

  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);

}



.button--primary {

  background: linear-gradient(135deg, #0b66c3, #1f9dff);

  color: #ffffff;

}



.button--secondary {

  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);

  color: #1e3a8a;

}

.button--danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
}

.topic-vote-btn {
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.topic-vote-btn:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.topic-vote-btn--selected {
  color: #fff;
  border-color: transparent;
}

.topic-vote-btn--selected.topic-vote-btn--keep {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.topic-vote-btn--selected.topic-vote-btn--drop {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}




/* Admin dashboard spacing & article library enhancements */

.dashboard>*+* {

  margin-top: clamp(1.5rem, 2vw, 2.25rem);

}



.dashboard-panel__footer {

  margin-top: 1rem;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 0.75rem;

  flex-wrap: wrap;

}



.table-actions {

  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

}



.icon-button {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 2.5rem;

  height: 2.5rem;

  border-radius: 0.75rem;

  border: 1px solid var(--border);

  background: var(--surface);

  color: var(--ink);

  padding: 0;

  cursor: pointer;

  text-decoration: none;

  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;

}



.icon-button svg {
  width: 1.2rem;
  height: 1.2rem;
}

.icon-button.icon-button--chevron svg {
  width: 1.35rem;
  height: 1.35rem;
}



.icon-button:hover {

  transform: translateY(-1px);

  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);

  color: var(--accent);

}



.icon-button:focus-visible {

  outline: 2px solid var(--accent);

  outline-offset: 2px;

}



.icon-button--success {

  border-color: rgba(34, 197, 94, 0.35);

  background: rgba(34, 197, 94, 0.12);

  color: #166534;

}



.icon-button--success:hover {

  background: rgba(34, 197, 94, 0.22);

  color: #0f5132;

}



.icon-button--danger {

  border-color: rgba(239, 68, 68, 0.4);

  background: rgba(239, 68, 68, 0.12);

  color: #b91c1c;

}



.icon-button--danger:hover {

  background: rgba(239, 68, 68, 0.22);

  color: #991b1b;

}

.icon-button--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.icon-button--ghost:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
}



.pagination {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 0.75rem;

}



.pagination__summary {

  font-size: 0.9rem;

  color: var(--muted);

}



.pagination__controls {

  display: inline-flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 0.75rem;

}



.pagination__link {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 0.35rem 0.85rem;

  border-radius: 0.65rem;

  border: 1px solid var(--border);

  background: var(--surface);

  color: var(--ink);

  font-weight: 600;

  letter-spacing: 0.01em;

  text-decoration: none;

  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;

}



.pagination__link:hover {

  background: rgba(79, 70, 229, 0.1);

  color: var(--accent);

}



.pagination__link--disabled {

  pointer-events: none;

  opacity: 0.45;

}



.pagination__page-indicator {

  font-size: 0.9rem;

  color: var(--muted);

}



.dashboard--library {

  gap: clamp(1.5rem, 2vw, 2.5rem);

}



.article-library {

  display: grid;

  gap: clamp(1.25rem, 2vw, 1.75rem);

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

}

.article-library--rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}



.article-library__card {

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 1rem;

  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);

  padding: clamp(1.25rem, 3vw, 1.75rem);

  display: flex;

  flex-direction: column;

  gap: 1.25rem;

}



.article-library__header {

  display: flex;

  justify-content: space-between;

  gap: 1.5rem;

  flex-wrap: wrap;

  align-items: flex-start;

}



.article-library__slug {

  margin: 0.35rem 0 0;

  font-size: 0.85rem;

  letter-spacing: 0.04em;

  text-transform: uppercase;

  color: var(--muted);

}



.article-library__stats {

  margin: 0;

  display: grid;

  gap: 0.65rem 1.5rem;

  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));

}



.article-library__stats dt {

  font-size: 0.7rem;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  color: var(--muted);

}



.article-library__stats dd {

  margin: 0.25rem 0 0;

  font-weight: 600;

}



.status-badge {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 2.4rem;

  padding: 0.2rem 0.6rem;

  border-radius: 999px;

  font-size: 0.75rem;

  letter-spacing: 0.04em;

  font-weight: 700;

  background: rgba(79, 70, 229, 0.12);

  color: #4338ca;

}

.status-badge--icon {
  min-width: 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  border: 2px solid transparent;
  position: relative;
  background: rgba(99, 102, 241, 0.18);
  color: #4f46e5;
}

.status-badge--icon::before {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}



.status-badge--published {

  background: rgba(34, 197, 94, 0.15);

  color: #166534;

}



.status-badge--draft {

  background: rgba(234, 179, 8, 0.2);

  color: #92400e;

}



.status-badge--scheduled,
.status-badge--queued {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.status-badge--in-progress,
.status-badge--in_progress {
  background: rgba(59, 130, 246, 0.22);
  color: #1e3a8a;
}

.status-badge--completed {
  background: rgba(34, 197, 94, 0.22);
  color: #065f46;
}

.status-badge--failed {
  background: rgba(248, 113, 113, 0.28);
  color: #7f1d1d;
}

.status-badge--warning {
  background: rgba(250, 204, 21, 0.3);
  color: #854d0e;
}

:root[data-theme="dark"] .status-badge {
  background: rgba(99, 102, 241, 0.32);
  color: #e0e7ff;
}

:root[data-theme="dark"] .status-badge--published {
  background: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

:root[data-theme="dark"] .status-badge--draft {
  background: rgba(234, 179, 8, 0.32);
  color: #fde68a;
}

:root[data-theme="dark"] .status-badge--scheduled,
:root[data-theme="dark"] .status-badge--queued {
  background: rgba(59, 130, 246, 0.32);
  color: #bfdbfe;
}

:root[data-theme="dark"] .status-badge--in-progress,
:root[data-theme="dark"] .status-badge--in_progress {
  background: rgba(30, 64, 175, 0.45);
  color: #c7d2fe;
}

:root[data-theme="dark"] .status-badge--completed {
  background: rgba(21, 128, 61, 0.45);
  color: #a7f3d0;
}

:root[data-theme="dark"] .status-badge--failed {
  background: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

:root[data-theme="dark"] .status-badge--warning {
  background: rgba(250, 204, 21, 0.35);
  color: #fde68a;
}

:root[data-theme="dark"] .status-badge--icon {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
}

:root[data-theme="dark"] .status-badge--icon.status-badge--queued {
  color: #93c5fd;
}

:root[data-theme="dark"] .status-badge--icon.status-badge--failed {
  border-color: #f87171;
  color: #fca5a5;
}

:root[data-theme="dark"] .status-badge--icon.status-badge--failed::after {
  border-color: rgba(248, 113, 113, 0.4);
}

.status-badge--icon.status-badge--completed {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
  color: #059669;
}

.status-badge--icon.status-badge--completed::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4Z'/%3E%3C/svg%3E");
}

.status-badge--icon.status-badge--failed {
  background: transparent;
  border: 3px solid #ef4444;
  color: #ef4444;
}

.status-badge--icon.status-badge--failed::before {
  width: 1.25rem;
  height: 0.22rem;
  background: currentColor;
  mask: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 1rem;
}

.status-badge--icon.status-badge--failed::after {
  content: '';
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(239, 68, 68, 0.65);
  border-radius: 50%;
}

.status-badge--icon.status-badge--warning {
  border: none;
  background: transparent;
  color: #facc15;
}

.status-badge--icon.status-badge--warning::before {
  width: 0;
  height: 0;
  mask: none;
  border-left: 0.55rem solid transparent;
  border-right: 0.55rem solid transparent;
  border-bottom: 0.95rem solid currentColor;
  background: none;
  position: relative;
  top: 0.05rem;
}

.status-badge--icon.status-badge--warning::after {
  content: '';
  position: absolute;
  width: 0.12rem;
  height: 0.42rem;
  background: #111827;
  top: 0.38rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  box-shadow: 0 0.32rem 0 0 #111827;
}

.status-badge--icon.status-badge--in-progress,
.status-badge--icon.status-badge--in_progress {
  border: none;
  background: transparent;
  color: #f97316;
}

.status-badge--icon.status-badge--in-progress::before,
.status-badge--icon.status-badge--in_progress::before {
  width: 1.1rem;
  height: 1.1rem;
  mask: none;
  background: none;
  border: 3px solid rgba(249, 115, 22, 0.25);
  border-top-color: #f97316;
  border-radius: 50%;
  animation: status-spin 0.9s linear infinite;
}

.status-badge--icon.status-badge--queued {
  background: rgba(59, 130, 246, 0.15);
  border: none;
  color: #2563eb;
}

.status-badge--icon.status-badge--queued::before {
  width: 1.3rem;
  height: 1.3rem;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 10h4v2h-6V7h2v5Z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

@keyframes status-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}



.article-library__summary {

  margin: 0;

  font-size: 0.95rem;

  color: var(--muted);

}

.article-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-elevated);
  padding: 1rem 1.25rem;
}

.article-row__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 0.9fr) auto;
  gap: 1rem;
  align-items: center;
}

.article-row__primary h2 {
  margin: 0;
  font-size: 1.05rem;
}

.article-row__primary h2 a {
  text-decoration: none;
}

.article-row__primary h2 a:hover {
  color: var(--accent);
}

.article-row__slug {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.article-row__summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.article-row__stats {
  margin: 0;
  display: grid;
  gap: 0.4rem 0.75rem;
}

.article-row__stats div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.article-row__stats dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.article-row__stats dd {
  margin: 0;
  font-weight: 600;
}

.article-row__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.article-row__actions .article-library__action-form {
  display: inline-flex;
}

.article-row__detail {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.15);
}

.article-row__detail[hidden] {
  display: none;
}

@media (max-width: 1024px) {
  .article-row__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .article-row__actions {
    justify-content: flex-start;
  }
}



.article-library__body {

  display: grid;

  gap: clamp(1rem, 2vw, 1.5rem);

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

}



.article-library__section {

  background: rgba(15, 23, 42, 0.02);

  border-radius: 0.75rem;

  padding: 1rem;

  display: flex;

  flex-direction: column;

  gap: 0.85rem;

}



.article-library__section h3 {

  margin: 0;

  font-size: 1rem;

}



.article-library__meta-grid {

  display: grid;

  gap: 0.6rem 1rem;

  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

}



.article-library__meta-grid dt {

  font-size: 0.75rem;

  text-transform: uppercase;

  letter-spacing: 0.06em;

  color: var(--muted);

}



.article-library__meta-grid dd {

  margin: 0.2rem 0 0;

  font-weight: 500;

}



.article-library__details {

  border: 1px solid rgba(15, 23, 42, 0.12);

  border-radius: 0.65rem;

  padding: 0.65rem 0.85rem;

  background: var(--surface);

}



.article-library__details+.article-library__details {

  margin-top: 0.5rem;

}



.article-library__details summary {

  cursor: pointer;

  font-weight: 600;

}



.article-library__details pre {

  margin: 0.75rem 0 0;

  font-size: 0.85rem;

  line-height: 1.5;

  white-space: pre-wrap;

  word-break: break-word;

}



.article-library__footer {

  display: flex;

  justify-content: flex-end;

}



.article-library__actions {

  display: inline-flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 0.75rem;

}



.article-library__action-form {

  margin: 0;

}



.article-library__empty {

  margin: 0;

  color: var(--muted);

  font-size: 0.9rem;

}



.article-library__empty--standalone {

  padding: 2rem;

  text-align: center;

}




.progress-meter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.progress-meter__track {
  position: relative;
  flex: 1;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.1);
  overflow: hidden;
}

.progress-meter__bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2c7be5 0%, #6c5ce7 100%);
  transition: width 0.3s ease;
}

.progress-meter__label {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 3ch;
  text-align: right;
  color: var(--muted);
}

.progress-log {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.progress-log__line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-log__time {
  font-family: var(--font-mono, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace);
  font-size: 0.75rem;
  color: var(--muted);
}

.progress-log__run {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: var(--muted);
}

.progress-log__status {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(17, 24, 39, 0.08);
  color: var(--muted);
}

.progress-log__status.status-badge--icon {
  padding: 0;
  background: transparent;
  border: none;
  text-transform: none;
  letter-spacing: 0;
}

.progress-log__percent {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.progress-log__message {
  margin: 0;
  line-height: 1.4;
}

.progress-log__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.progress-log__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0 0 0.2rem;
}

.progress-log__chips .dashboard-chip {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progress-log--completed {
  background: rgba(16, 185, 129, 0.18);
}

.progress-log--failed {
  background: rgba(248, 113, 113, 0.2);
}

.progress-log--queued,
.progress-log--in_progress {
  background: rgba(147, 197, 253, 0.2);
}

.progress-log--skipped {
  background: rgba(156, 163, 175, 0.25);
}

.progress-log--warning {
  background: rgba(250, 204, 21, 0.18);
}

.progress-log__status--completed {
  background: #15803d;
  color: #f4fdf3;
}

.progress-log__status--failed {
  background: #b91c1c;
  color: #fff5f5;
}

.progress-log__status--queued,
.progress-log__status--in_progress {
  background: #2563eb;
  color: #f0f5ff;
}

.progress-log__status--skipped {
  background: #4b5563;
  color: #f8fafc;
}

.progress-log__status--warning {
  background: #ca8a04;
  color: #0f172a;
}

[data-theme="dark"] .progress-log__status--completed {
  background: #14532d;
  color: #ecfdf5;
}

[data-theme="dark"] .progress-log__status--failed {
  background: #7f1d1d;
  color: #fef2f2;
}

[data-theme="dark"] .progress-log__status--queued,
[data-theme="dark"] .progress-log__status--in_progress {
  background: #1e3a8a;
  color: #eef2ff;
}

[data-theme="dark"] .progress-log__status--skipped {
  background: #374151;
  color: #f9fafb;
}

[data-theme="dark"] .progress-log__status--warning {
  background: #b45309;
  color: #fff7ed;
}

[data-theme="dark"] .progress-log--completed {
  background: rgba(34, 197, 94, 0.12);
}

[data-theme="dark"] .progress-log--failed {
  background: rgba(248, 113, 113, 0.15);
}

[data-theme="dark"] .progress-log--queued,
[data-theme="dark"] .progress-log--in_progress {
  background: rgba(59, 130, 246, 0.16);
}

[data-theme="dark"] .progress-log--skipped {
  background: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .progress-log--warning {
  background: rgba(251, 191, 36, 0.2);
}

.progress-log--focused {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


@media (max-width: 900px) {

  .article-library__body {

    grid-template-columns: 1fr;

  }

  .article-library__stats {

    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));

  }

}



@media (max-width: 640px) {

  .pagination {

    flex-direction: column;

    align-items: flex-start;

  }

  .article-library__actions {

    justify-content: flex-start;

  }

}


.newsroom-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.newsroom-table {
  width: 100%;
  table-layout: fixed;
}

.newsroom-table thead th:nth-child(1),
.newsroom-table tbody td:nth-child(1) {
  width: 23%;
}

.newsroom-table thead th:nth-child(2),
.newsroom-table tbody td:nth-child(2) {
  width: 16%;
}

.newsroom-table thead th:nth-child(3),
.newsroom-table tbody td:nth-child(3) {
  width: 14%;
}

.newsroom-table thead th:nth-child(4),
.newsroom-table tbody td:nth-child(4) {
  width: 13%;
}

.newsroom-table thead th:nth-child(5),
.newsroom-table tbody td:nth-child(5) {
  width: 6%;
}

.newsroom-table thead th:nth-child(6),
.newsroom-table tbody td:nth-child(6) {
  width: 8%;
}

.newsroom-table thead th:nth-child(7),
.newsroom-table tbody td:nth-child(7) {
  width: 5%;
}

.newsroom-table thead th:nth-child(8),
.newsroom-table tbody td:nth-child(8) {
  width: 15%;
}

.newsroom-grid-wrapper {
  width: 100%;
  overflow-x: auto;
}

.newsroom-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.newsroom-grid th,
.newsroom-grid td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  white-space: normal;
}

.newsroom-grid__cell {
  white-space: normal;
  word-break: break-word;
}

.newsroom-grid__cell--headline {
  white-space: normal;
}

.newsroom-grid__cell--id,
.newsroom-grid__actions,
.newsroom-grid__cell time,
.newsroom-grid__cell .status-badge {
  white-space: nowrap;
}

.newsroom-grid__tags {
  font-size: 0.78rem;
  color: var(--muted);
}

.newsroom-grid__actions .button {
  margin-right: 0.25rem;
}

.newsroom-grid__detail {
  background: rgba(15, 23, 42, 0.03);
}

.newsroom-entry-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.newsroom-entry {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow-elevated);
}

.newsroom-entry__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.newsroom-entry__id {
  font-weight: 600;
  color: var(--ink);
}

.newsroom-entry__feedback,
.newsroom-entry__timestamp time {
  font-size: 0.8rem;
  color: var(--muted);
}

.newsroom-entry__open {
  margin-left: auto;
}

.newsroom-entry__headline a {
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.newsroom-entry__headline a:hover {
  color: var(--accent);
}

.newsroom-entry__tags {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.newsroom-entry__meta {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem 1rem;
}

.newsroom-entry__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.newsroom-entry__meta span:not(.newsroom-entry__label) {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}

.newsroom-entry__actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsroom-entry__actions .button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.newsroom-entry__detail {
  margin-top: 1rem;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
}

.newsroom-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 0.75rem 0;
}

.newsroom-detail dl {
  margin: 0;
}

.newsroom-detail dt {
  font-weight: 600;
  color: var(--muted);
}

.newsroom-detail dd {
  margin: 0 0 0.35rem;
}

.newsroom-table tbody td:nth-child(1),
.newsroom-table tbody td:nth-child(2),
.newsroom-table tbody td:nth-child(3),
.newsroom-table tbody td:nth-child(4),
.newsroom-table tbody td:nth-child(6),
.newsroom-table tbody td:nth-child(7) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newsroom-table tbody td:nth-child(5) {
  white-space: nowrap;
}

.newsroom-table__headline-cell {
  overflow: hidden;
}

.newsroom-table__headline {
  font-weight: 600;
  color: var(--ink);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newsroom-table__headline a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  white-space: inherit;
  overflow: inherit;
  text-overflow: inherit;
}

.newsroom-table__headline a:hover {
  text-decoration: underline;
}

.newsroom-table__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newsroom-table__meta--wrap {
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
}

.newsroom-table__text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newsroom-table__text--muted {
  color: var(--muted);
}

.newsroom-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 11rem;
  justify-content: flex-start;
  align-items: center;
}

.newsroom-table__actions .button {
  flex: 1 0 auto;
}

@media (max-width: 1200px) {
  .newsroom-table {
    table-layout: auto;
  }

  .newsroom-table__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .newsroom-table__actions .button {
    flex: none;
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .newsroom-table-wrapper {
    overflow-x: hidden;
  }

  .newsroom-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .newsroom-table,
  .newsroom-table tbody,
  .newsroom-table tr,
  .newsroom-table td {
    display: block;
    width: 100%;
  }

  .newsroom-table {
    min-width: 0;
  }

  .newsroom-table tr {
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.85rem;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .newsroom-table tbody td {
    border: 0;
    padding: 0.5rem 0 0;
    white-space: normal;
    overflow: visible;
  }

  .newsroom-table tbody td:first-child {
    padding-top: 0;
  }

  .newsroom-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.25rem;
  }

  .newsroom-table__headline {
    white-space: normal;
  }

  .newsroom-table__meta {
    white-space: normal;
  }

  .newsroom-table__text,
  .newsroom-table__text--muted {
    white-space: normal;
  }

  .newsroom-table__actions {
    margin-top: 0.5rem;
    align-items: stretch;
    gap: 0.5rem;
  }

  .newsroom-table__actions .button {
    width: 100%;
  }

  .newsroom-table tbody td:nth-child(1),
  .newsroom-table tbody td:nth-child(2),
  .newsroom-table tbody td:nth-child(3),
  .newsroom-table tbody td:nth-child(4),
  .newsroom-table tbody td:nth-child(5),
  .newsroom-table tbody td:nth-child(6),
  .newsroom-table tbody td:nth-child(7),
  .newsroom-table tbody td:nth-child(8) {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }

  .newsroom-table__headline,
  .newsroom-table__headline a,
  .newsroom-table__meta {
    white-space: normal;
  }
}

.newsroom-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.newsroom-layout__primary {
  flex: 1 1 auto;
  min-width: 0;
}

.newsroom-layout__sidebar {
  flex: 0 0 340px;
  width: min(340px, 100%);
  position: relative;
}

@media (max-width: 1080px) {
  .newsroom-layout {
    flex-direction: column;
  }

  .newsroom-layout__sidebar {
    flex: 1 0 auto;
    width: 100%;
  }
}

.newsroom-panel {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.newsroom-panel__header {
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.newsroom-table-wrapper {
  max-height: 450px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
}

.newsroom-scroll-container {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom Scrollbar for Newsroom */
.newsroom-table-wrapper::-webkit-scrollbar,
.newsroom-scroll-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.newsroom-table-wrapper::-webkit-scrollbar-track,
.newsroom-scroll-container::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 10px;
}

.newsroom-table-wrapper::-webkit-scrollbar-thumb,
.newsroom-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.12);
  border-radius: 10px;
}

.newsroom-table-wrapper::-webkit-scrollbar-thumb:hover,
.newsroom-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.2);
}

.newsroom-panel__grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  grid-auto-flow: dense;
}

.newsroom-panel__grid--split {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 0.5rem;
}

.newsroom-panel--ingest {
  margin-top: 0;
  padding: 1.5rem;
  border-top: none;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow-elevated);
  position: sticky;
  top: 6rem;
}

.newsroom-panel--ingest .newsroom-panel__header {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.newsroom-panel--ingest h2 {
  margin: 0;
}

.newsroom-panel--ingest .newsroom-panel__meta {
  font-size: 0.85rem;
}

.ingest-run-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ingest-run-card {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ingest-run-card--active {
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(185, 28, 28, 0.18);
}

.ingest-run-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
}

.ingest-run-card__header h3 {
  margin: 0;
  font-size: 0.95rem;
  word-break: break-word;
}

.ingest-run-card__header .newsroom-card__meta {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.ingest-run-card__progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0.35rem;
}

.ingest-run-card__progress-bar {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.ingest-run-card__progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.ingest-run-card__progress-label {
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 3ch;
  text-align: right;
}

.ingest-run-card .newsroom-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-word;
}

.ingest-run-log {
  margin-top: 1rem;
}

.newsroom-ingestion-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
  padding: 0;
}

.newsroom-ingestion-meta div {
  margin: 0;
}

.newsroom-ingestion-meta dt {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

.newsroom-ingestion-meta dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.ingest-run-log__audibles-wrapper {
  overflow-x: auto;
  padding: 0.5rem 0.5rem 1.5rem;
  margin: 0 -0.5rem;
  -webkit-overflow-scrolling: touch;
}

.ingest-run-log__list--audibles {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  width: max-content;
  min-width: 100%;
}

.ingest-run-log__item--audible {
  width: 450px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  max-height: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ingest-run-log__message-scroll {
  max-height: 120px;
  overflow-y: auto;
  margin-bottom: 0.5rem;
  padding-right: 0.5rem;
}

.ingest-run-log__details-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.ingest-run-log__item--audible:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ingest-run-log__content {
  flex: 1;
  overflow-y: auto;
  margin-top: 0.75rem;
  padding-right: 0.5rem;
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.ingest-run-log__content::-webkit-scrollbar {
  width: 4px;
}

.ingest-run-log__content::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.newsroom-details-summary {
  list-style: none;
  cursor: pointer;
  display: block;
  margin-bottom: 1rem;
}

.newsroom-details-summary::-webkit-details-marker {
  display: none;
}

.newsroom-details-summary:focus {
  outline: none;
}

.ingest-run-log__item--failed {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(to bottom, var(--surface), rgba(220, 38, 38, 0.02));
}

.ingest-run-log__item--completed {
  border-color: rgba(22, 163, 74, 0.35);
  background: linear-gradient(to bottom, var(--surface), rgba(22, 163, 74, 0.02));
}

.ingest-run-log__item--skipped,
.ingest-run-log__item--warning {
  border-color: rgba(234, 179, 8, 0.3);
}

.newsroom-details-summary {
  list-style: none;
  cursor: pointer;
  display: block;
  margin-bottom: 1rem;
}

.newsroom-details-summary::-webkit-details-marker {
  display: none;
}

.newsroom-details-summary:focus {
  outline: none;
}

.newsroom-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsroom-card--full {
  grid-column: 1 / -1;
}

.newsroom-card__empty {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.newsroom-card pre {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.04);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
}

.newsroom-description {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.newsroom-description dt {
  font-weight: 600;
  color: var(--ink);
}

.newsroom-description dd {
  margin: 0;
  color: var(--muted-strong);
}

.newsroom-list,
.newsroom-pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.newsroom-pill-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.newsroom-pill-list li {
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999rem;
}

.newsroom-list__meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.newsroom-figure {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.newsroom-figure img {
  width: 100%;
  max-width: 420px;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.newsroom-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted-strong);
}

.newsroom-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.newsroom-related-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.newsroom-related__title a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.newsroom-related__title a:hover,
.newsroom-related__title a:focus-visible {
  text-decoration: underline;
}

.form-panel__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-panel__actions .button {
  margin: 0;
}

.dashboard__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle-control__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.toggle-control__state {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.toggle-control__switch {
  position: relative;
  width: 52px;
  height: 28px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toggle-control__switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.toggle-control__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  transition: background 0.25s ease;
}

.toggle-control__thumb {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  transform: translateX(-12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.toggle-control__switch--on .toggle-control__track {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.toggle-control__switch--on .toggle-control__thumb {
  transform: translateX(12px);
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.32);
}

.newsroom-feedback-flash {
  margin: 1.25rem 0 0;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.08);
  color: var(--ink);
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  box-shadow: var(--shadow-elevated);
}

.newsroom-feedback-flash[data-state="success"] {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(22, 163, 74, 0.45);
}

.newsroom-feedback-flash[data-state="error"] {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(185, 28, 28, 0.5);
}

.newsroom-feedback-flash[hidden] {
  display: none !important;
}

.newsroom-feedback-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  grid-auto-flow: dense;
}

.newsroom-editorial-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

.newsroom-feedback-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1200px) {
  .newsroom-editorial-grid {
    grid-template-columns: 480px 1fr;
  }
}

.newsroom-feedback-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.newsroom-feedback-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.newsroom-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.newsroom-feedback-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.newsroom-feedback-form input[type="text"],
.newsroom-feedback-form textarea,
.newsroom-feedback-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsroom-feedback-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.newsroom-feedback-form textarea[rows="3"] {
  min-height: 78px;
}

.newsroom-feedback-form textarea[rows="6"] {
  min-height: 140px;
}

.newsroom-feedback-form textarea[rows="12"] {
  min-height: 220px;
}

.newsroom-feedback-form input[type="text"]:focus,
.newsroom-feedback-form textarea:focus,
.newsroom-feedback-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.newsroom-feedback-controls {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.newsroom-feedback-control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.newsroom-feedback-control--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

.newsroom-feedback-control--select select {
  max-width: 160px;
}

.newsroom-feedback-control--textarea textarea {
  min-height: 84px;
}

.newsroom-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.newsroom-feedback-actions .button {
  font-size: 0.85rem;
}

.newsroom-rerun-mode {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--surface) 88%, white 12%);
}

.newsroom-rerun-mode__grid {
  display: grid;
  gap: 0.65rem;
}

.newsroom-rerun-mode__toggle {
  justify-content: space-between;
  width: 100%;
}

.newsroom-rerun-mode__toggle .toggle-control__label {
  flex-wrap: wrap;
}

.newsroom-rerun-mode__help {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink);
  line-height: 1.35;
}

.newsroom-rerun-mode__legend {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

@media (min-width: 860px) {
  .newsroom-rerun-mode__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.newsroom-feedback-status {
  min-height: 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.newsroom-feedback-status[data-state="success"] {
  color: #15803d;
}

.newsroom-feedback-status[data-state="error"] {
  color: #be123c;
}

.newsroom-feedback-status[data-state="pending"] {
  color: #2563eb;
}

.newsroom-feedback-status-links {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.newsroom-feedback-status-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.newsroom-feedback-status-links a:hover,
.newsroom-feedback-status-links a:focus {
  text-decoration: underline;
}

.newsroom-headline-options {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px dashed var(--border);
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--surface) 92%, white 8%);
}

.newsroom-headline-options__list {
  display: grid;
  gap: 0.5rem;
}

.newsroom-headline-options__item {
  display: grid;
  gap: 0.45rem;
  align-items: start;
}

.newsroom-headline-options__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.newsroom-headline-options__option {
  text-align: left;
  justify-content: flex-start;
  white-space: normal;
  max-width: 100%;
}

.newsroom-headline-options__option--selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--surface) 70%, var(--accent) 30%);
}


.performance {
  width: min(1180px, 92vw);
  margin: 0 auto 4rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.performance__header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.performance__lead {
  max-width: 52ch;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.performance__storage {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.performance__actions {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.performance-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-elevated);
}

.performance-empty ol {
  padding-left: 1.2rem;
}

.performance-empty__tip {
  font-size: 0.9rem;
  color: var(--muted);
}

.performance-status {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.performance-status__detail {
  margin: 0;
  color: var(--muted);
}

.performance-status__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 0;
}

.performance-status__actions button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.performance-status__alert {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.performance-status__alert--success {
  color: #0f915a;
}

.performance-status__alert--warn {
  color: #b45309;
}

.performance__chart-card {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border);
}

.performance__chart-card header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.performance-chart__body {
  margin-top: 1rem;
  min-height: 320px;
}

.performance-chart__body canvas {
  width: 100%;
  height: 360px;
  display: block;
}

.performance-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.performance-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.performance-chart__legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--legend-color, var(--muted));
}

.performance-chart__footer {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.performance__trend-table {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-elevated);
}

.performance__trend-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.performance__trend-table th,
.performance__trend-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.performance__trend-table tbody tr:last-child td {
  border-bottom: none;
}

.performance__run-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.perf-run-card {
  background: var(--surface);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.perf-run-card__meta {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-word;
}

.perf-run-card__aggregate dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem 1rem;
}

.perf-run-card__aggregate dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.perf-run-card__aggregate dd {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.perf-run-card__table table {
  width: 100%;
  border-collapse: collapse;
}

.perf-run-card__table th,
.perf-run-card__table td {
  font-size: 0.9rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.perf-run-card__table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 720px) {
  .performance__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .performance-chart__body canvas {
    height: 280px;
  }
}


.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.brief-card__summary,
.quick-hit__summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: linear-gradient(90deg,
      rgba(148, 163, 184, 0.15),
      rgba(148, 163, 184, 0.35),
      rgba(148, 163, 184, 0.15));
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s linear infinite;
}

.loading-chip::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: loading-spin 0.85s linear infinite;
}

.loading-chip--static {
  animation: none;
  background: rgba(148, 163, 184, 0.12);
}

.loading-chip--static::before {
  display: none;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loading-shimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

:root[data-theme="dark"] .loading-chip {
  color: var(--ink);
  background: linear-gradient(90deg,
      rgba(148, 163, 184, 0.12),
      rgba(226, 232, 240, 0.28),
      rgba(148, 163, 184, 0.12));
}

.legal-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.legal-page__hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-elevated);
  margin-bottom: 2.25rem;
}

.legal-page__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.legal-page__title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin: 0 0 0.75rem;
  line-height: 1.2;
  color: var(--ink);
}

.legal-page__updated {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.legal-page__lede {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--ink);
}

.legal-page__body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.25rem;
  box-shadow: var(--shadow-elevated);
  line-height: 1.7;
  font-size: 1rem;
  color: var(--ink);
}

.legal-section+.legal-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

.legal-section h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
  list-style-position: outside;
}

.legal-section li {
  margin-bottom: 0.35rem;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-disclaimer {
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-table-wrapper {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.9rem 0.75rem;
  vertical-align: top;
  text-align: left;
}

.legal-table th {
  background: var(--page-bg);
  font-weight: 600;
}

.legal-table td:first-child {
  width: 28%;
  font-weight: 600;
}

.about-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.about-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.about-hero__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.about-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.about-hero__lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.6;
}

.about-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-elevated);
}

.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.about-hero__text {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-portrait {
  margin: 0;
  text-align: center;
}

.about-portrait img {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
  opacity: 0.94;
}

.about-portrait figcaption {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.about-body {
  background: var(--surface);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
  padding: 2.25rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.about-body h2 {
  margin-top: 0;
}

.about-list {
  margin: 0.5rem 0 0 1.5rem;
  color: var(--muted);
}

.about-list li {
  margin-bottom: 0.4rem;
}

@media (max-width: 720px) {
  .about-page {
    padding: 2.25rem 1rem 3rem;
  }

  .about-hero__grid {
    grid-template-columns: 1fr;
  }

  .about-body {
    padding: 1.75rem 1.5rem;
  }

  .about-hero__lede {
    font-size: 1rem;
  }
}

@media (max-width: 720px) {
  .legal-page {
    padding: 2.5rem 1rem 4rem;
  }

  .legal-page__hero,
  .legal-page__body {
    padding: 1.75rem 1.5rem;
  }

  .legal-section ul,
  .legal-section ol {
    margin-left: 1rem;
  }
}

@media (max-width: 720px) {
  .admin-ribbon__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .admin-ribbon__nav {
    width: 100%;
  }

  .admin-ribbon__logout {
    width: 100%;
    margin-left: 0;
  }

  .admin-ribbon__logout button {
    width: 100%;
    text-align: center;
  }
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  z-index: 1200;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.25));
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__panel {
  pointer-events: auto;
  background: var(--surface);
  border-radius: 1.5rem 1.5rem 0 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 3fr 1.2fr;
  gap: 1.5rem;
}

.cookie-banner__eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.cookie-banner__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cookie-banner__text {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-banner__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie-banner__list li {
  margin-bottom: 0.35rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
}

.cookie-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--ink);
  color: var(--surface);
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: var(--shadow-elevated);
}

.cookie-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.cookie-btn--ghost {
  background: transparent;
  color: var(--muted);
  border: none;
  box-shadow: none;
  padding: 0.6rem 1rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(4px);
}

.cookie-modal__dialog {
  position: relative;
  background: var(--surface);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  width: min(680px, calc(100% - 2rem));
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 2rem;
  z-index: 1;
}

.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.cookie-modal__eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.cookie-modal__header h2 {
  margin: 0;
}

.cookie-modal__lede {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.cookie-modal__close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.cookie-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-option {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
}

.cookie-option__copy h3 {
  margin: 0 0 0.35rem;
}

.cookie-option__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-option__badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-toggle__track {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  transition: background 120ms ease;
}

.cookie-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 140ms ease;
}

.cookie-toggle input:checked+.cookie-toggle__track {
  background: var(--accent);
}

.cookie-toggle input:checked+.cookie-toggle__track::after {
  transform: translateX(24px);
}

.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.cookie-modal__note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie-modal__note a {
  color: var(--accent);
}

body.cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .cookie-banner__panel {
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: 0.75rem;
  }

  .cookie-banner__panel {
    padding: 1.25rem 1.5rem;
  }

  .cookie-option {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-modal__dialog {
    padding: 1.5rem;
  }
}

.shop-coming-soon {
  display: flex;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
}

.shop-card {
  max-width: 720px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.shop-card__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-card__lede {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.shop-card__body {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.shop-card__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.shop-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.shop-card__cta:hover,
.shop-card__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

.shop-card__cta--ghost {
  background: transparent;
  color: var(--accent);
}

.shop-card__cta--ghost:hover,
.shop-card__cta--ghost:focus-visible {
  background: var(--accent-soft);
}

/* Search */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-hero {
  padding: 1.5rem 0;
}

.search-hero__inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-bar input[type="search"] {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--page-bg);
  color: var(--ink);
  font-size: 1rem;
}

:root[data-theme="dark"] .search-bar input[type="search"] {
  background: var(--surface);
  color: var(--ink);
}

.search-bar input[type="search"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.search-bar button {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.search-bar button:hover,
.search-bar button:focus-visible {
  filter: brightness(0.92);
}

.masthead__search {
  position: relative;
}

.search-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-toggle:hover,
.search-toggle:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  display: none;
  gap: 0.45rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem;
  box-shadow: var(--shadow-elevated);
  min-width: min(320px, 92vw);
  max-width: 92vw;
  z-index: 12;
}

.masthead__search.is-open .search-dropdown {
  display: flex;
}

.search-dropdown input[type="search"] {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--page-bg);
  color: var(--ink);
}

:root[data-theme="dark"] .search-dropdown input[type="search"] {
  background: var(--surface);
  color: var(--ink);
}

.search-dropdown button {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.search-dropdown .search-inline-indicator {
  display: none;
  position: absolute;
  right: 4.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
  pointer-events: none;
}

.search-dropdown.is-loading .search-inline-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.search-dropdown.is-loading input[type="search"] {
  padding-right: 5rem;
}

.search-meta {
  margin-top: 0.6rem;
  color: var(--muted);
}

.search-results {
  margin-top: 1.5rem;
}

.search-results__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 0.9rem;
}

.search-card__kicker {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.search-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  aspect-ratio: var(--media-ratio, 3 / 2);
}

.search-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.search-card__summary {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.search-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-card__tags {
  color: var(--ink);
}

.search-card--ad {
  grid-template-columns: 1fr;
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

.search-layout__rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-layout__main {
  min-width: 0;
}

.search-layout__main>.search-skeleton {
  margin: 0;
}

@media (max-width: 900px) {
  .search-layout {
    grid-template-columns: 1fr;
  }

  .search-layout__main {
    order: 1;
  }

  .search-layout__rail {
    order: 2;
  }
}

@media (max-width: 720px) {
  .masthead__controls {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .masthead__search {
    width: 100%;
  }

  .search-dropdown {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .search-dropdown input[type="search"] {
    min-width: 0;
  }
}

.search-skeleton {
  display: none;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

body.search-loading .search-skeleton {
  display: block;
}

body.search-loading .search-results {
  display: none;
}

body:not(.search-loading) .search-skeleton {
  display: none !important;
}

.search-skeleton::before,
.search-skeleton::after {
  content: "";
  position: absolute;
  inset: 1rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  border-radius: 12px;
  animation: shimmer 1.2s infinite;
}

.search-skeleton::after {
  inset: auto 1rem 1rem 1rem;
  height: 14px;
  width: 40%;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.search-loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  z-index: 1100;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.search-loading-indicator[hidden] {
  display: none !important;
}

body.search-loading .search-loading-indicator {
  display: flex;
}

.search-loading-indicator__bar {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.search-loading-indicator__bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 35%;
  background: var(--accent, #f97316);
  border-radius: 999px;
  animation: search-bar-slide 1s infinite ease-in-out;
}

.search-loading-indicator__text {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  white-space: nowrap;
}

@keyframes search-bar-slide {
  0% {
    transform: translateX(-40%);
  }

  50% {
    transform: translateX(60%);
  }

  100% {
    transform: translateX(140%);
  }
}

/* Empty States */
.empty-state,
.search-empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.search-empty-state__icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.empty-state h1,
.search-empty-state h3 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--ink);
}

.empty-state p,
.search-empty-state p {
  color: var(--muted);
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
}

.empty-state code {
  background: var(--page-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9em;
  color: var(--accent);
}

.search-empty-state__actions {
  margin-top: 1rem;
}
