@font-face {
  font-family: "Noir Et Blanc";
  src: url("assets/fonts/noir-et-blanc.ttf") format("truetype");
  font-display: swap;
}

/* media26: Turkish-safe typography and wide paper map */
body[data-theme="press"],
body[data-theme="press"] button,
body[data-theme="press"] input,
body[data-theme="press"] select,
body[data-theme="press"] textarea,
body[data-theme="press"] h1,
body[data-theme="press"] h2,
body[data-theme="press"] h3,
body[data-theme="press"] p,
body[data-theme="press"] a,
body[data-theme="press"] span,
body[data-theme="press"] small,
body[data-theme="press"] strong,
body[data-theme="press"] em {
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-variant-ligatures: common-ligatures;
}

body[data-theme="press"] h1,
body[data-theme="press"] h2,
body[data-theme="press"] h3,
body[data-theme="press"] .lead-copy strong,
body[data-theme="press"] .visual-tile strong,
body[data-theme="press"] .pcai-card strong,
body[data-theme="press"] .story h3,
body[data-theme="press"] .quick-copy strong,
body[data-theme="press"] .social-card strong,
body[data-theme="press"] .video-card strong,
body[data-theme="press"] .press-tool strong,
body[data-theme="press"] .metric-strip strong,
body[data-theme="press"] .paper-map-readout strong,
body[data-theme="press"] .article-page .reader-copy h1 {
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  line-height: 1.12;
  overflow-wrap: break-word;
}

body[data-theme="press"] p,
body[data-theme="press"] em,
body[data-theme="press"] small,
body[data-theme="press"] .story-body,
body[data-theme="press"] .reader-copy {
  line-height: 1.42;
}

body[data-theme="press"] .press-front h1,
body[data-theme="press"] .brand strong {
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  font-weight: 900;
}

body[data-theme="press"] .paper-map-section,
body[data-theme="press"] .paper-map-section.is-wide-map {
  display: block;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 8px;
}

body[data-theme="press"] .paper-map-copy {
  display: none !important;
}

body[data-theme="press"] .paper-map-frame {
  min-height: clamp(330px, 37vw, 540px);
}

body[data-theme="press"] #paper-map {
  min-height: clamp(330px, 37vw, 540px);
}

body[data-theme="press"] .map-status {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  max-width: min(420px, calc(100% - 24px));
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(242, 223, 180, 0.7);
  color: #fff8e8;
  background: rgba(12, 9, 7, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
}

body[data-theme="press"] .paper-map-actions {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  width: min(260px, calc(100% - 24px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="press"] .paper-map-readout {
  z-index: 2;
}

/* media30: visible generated studio assets, clean headline wrapping */
body[data-theme="press"] .studio-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.72fr) minmax(180px, 0.72fr);
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px;
  border: 4px double #1d140d;
  color: #fff8e8;
  background:
    linear-gradient(135deg, rgba(12, 9, 7, 0.96), rgba(36, 23, 14, 0.9)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 760px auto repeat;
}

body[data-theme="press"] .studio-card {
  position: relative;
  min-height: 178px;
  margin: 0;
  overflow: hidden;
  border: 2px solid #f2dfb4;
  background: #110c08;
}

body[data-theme="press"] .studio-card-main {
  min-height: 238px;
}

body[data-theme="press"] .studio-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: contrast(1.06) saturate(0.94);
}

body[data-theme="press"] .studio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.42)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
}

body[data-theme="press"] .studio-card figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 5px 8px;
  color: #17100a;
  background: #f2dfb4;
  font-size: 0.76rem;
  font-weight: 900;
}

body[data-theme="press"] .fun-band {
  margin: 0 0 14px;
  padding: 10px;
  border: 4px double #1d140d;
  color: #17100a;
  background:
    linear-gradient(180deg, rgba(255, 248, 226, 0.86), rgba(235, 216, 178, 0.42)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 760px auto repeat;
}

body[data-theme="press"] .fun-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body[data-theme="press"] .fun-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 2px solid #1d140d;
  color: #fff8e8;
  background: #120d08;
}

body[data-theme="press"] .fun-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  filter: grayscale(0.12) sepia(0.18) contrast(1.08);
}

body[data-theme="press"] .fun-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.76));
}

body[data-theme="press"] .fun-card small,
body[data-theme="press"] .fun-card strong {
  position: absolute;
  left: 10px;
  right: 10px;
  z-index: 1;
}

body[data-theme="press"] .fun-card small {
  bottom: 76px;
  color: #f2dfb4;
  font-weight: 900;
}

body[data-theme="press"] .fun-card strong {
  bottom: 12px;
  color: #fff8e8;
  font-size: clamp(1rem, 1.7vw, 1.36rem);
  font-weight: 900;
}

body[data-theme="press"] .lead-copy strong,
body[data-theme="press"] .visual-tile strong,
body[data-theme="press"] .pcai-card strong,
body[data-theme="press"] .fun-card strong,
body[data-theme="press"] .story h3,
body[data-theme="press"] .quick-copy strong,
body[data-theme="press"] .social-card strong,
body[data-theme="press"] .video-card strong {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}

body[data-theme="press"] .lead-copy strong {
  font-size: clamp(1.72rem, 3.7vw, 3.65rem);
  line-height: 1.04;
}

body[data-theme="press"] .story h3,
body[data-theme="press"] .visual-tile strong,
body[data-theme="press"] .pcai-card strong,
body[data-theme="press"] .fun-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media (max-width: 860px) {
  body[data-theme="press"] .studio-showcase,
  body[data-theme="press"] .fun-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body[data-theme="press"] .studio-showcase {
    grid-template-columns: 1fr;
    margin-inline: -7px;
    border-left: 0;
    border-right: 0;
  }

  body[data-theme="press"] .studio-card,
  body[data-theme="press"] .studio-card-main {
    min-height: 220px;
  }

  body[data-theme="press"] .fun-grid {
    grid-template-columns: 1fr;
  }

  body[data-theme="press"] .press-front h1 {
    max-width: 100%;
    font-size: clamp(1.5rem, 8.2vw, 1.95rem) !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal;
  }
}

body[data-theme="press"] .press-tool span,
body[data-theme="press"] .paper-map-readout span,
body[data-theme="press"] .ad-label,
body[data-theme="press"] .consent-banner p strong,
body[data-theme="press"] .story-meta,
body[data-theme="press"] .section-title span,
body[data-theme="press"] .reader-meta {
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  body[data-theme="press"] .paper-map-frame,
  body[data-theme="press"] #paper-map {
    min-height: 330px;
  }

  body[data-theme="press"] .paper-map-actions {
    width: min(230px, calc(100% - 24px));
  }

  body[data-theme="press"] .paper-map-readout strong {
    font-size: 1.86rem;
  }
}

/* media30 final placement */
body[data-theme="press"] .studio-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.72fr) minmax(180px, 0.72fr);
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px;
  border: 4px double #1d140d;
  color: #fff8e8;
  background:
    linear-gradient(135deg, rgba(12, 9, 7, 0.96), rgba(36, 23, 14, 0.9)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 760px auto repeat;
}

body[data-theme="press"] .studio-card {
  position: relative;
  min-height: 178px;
  margin: 0;
  overflow: hidden;
  border: 2px solid #f2dfb4;
  background: #110c08;
}

body[data-theme="press"] .studio-card-main {
  min-height: 238px;
}

body[data-theme="press"] .studio-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: contrast(1.06) saturate(0.94);
}

body[data-theme="press"] .studio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.42)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
}

body[data-theme="press"] .studio-card figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 5px 8px;
  color: #17100a;
  background: #f2dfb4;
  font-size: 0.76rem;
  font-weight: 900;
}

body[data-theme="press"] .fun-band {
  margin: 0 0 14px;
  padding: 10px;
  border: 4px double #1d140d;
  color: #17100a;
  background:
    linear-gradient(180deg, rgba(255, 248, 226, 0.86), rgba(235, 216, 178, 0.42)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 760px auto repeat;
}

body[data-theme="press"] .fun-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body[data-theme="press"] .fun-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 2px solid #1d140d;
  color: #fff8e8;
  background: #120d08;
}

body[data-theme="press"] .fun-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  filter: grayscale(0.12) sepia(0.18) contrast(1.08);
}

body[data-theme="press"] .fun-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.76));
}

body[data-theme="press"] .fun-card small,
body[data-theme="press"] .fun-card strong {
  position: absolute;
  left: 10px;
  right: 10px;
  z-index: 1;
}

body[data-theme="press"] .fun-card small {
  bottom: 76px;
  color: #f2dfb4;
  font-weight: 900;
}

body[data-theme="press"] .fun-card strong {
  bottom: 12px;
  color: #fff8e8;
  font-size: clamp(1rem, 1.7vw, 1.36rem);
  font-weight: 900;
}

body[data-theme="press"] .lead-copy strong,
body[data-theme="press"] .visual-tile strong,
body[data-theme="press"] .pcai-card strong,
body[data-theme="press"] .fun-card strong,
body[data-theme="press"] .story h3,
body[data-theme="press"] .quick-copy strong,
body[data-theme="press"] .social-card strong,
body[data-theme="press"] .video-card strong {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}

body[data-theme="press"] .lead-copy strong {
  font-size: clamp(1.72rem, 3.7vw, 3.65rem);
  line-height: 1.04;
}

body[data-theme="press"] .story h3,
body[data-theme="press"] .visual-tile strong,
body[data-theme="press"] .pcai-card strong,
body[data-theme="press"] .fun-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media (max-width: 860px) {
  body[data-theme="press"] .studio-showcase,
  body[data-theme="press"] .fun-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body[data-theme="press"] .studio-showcase {
    grid-template-columns: 1fr;
    margin-inline: -7px;
    border-left: 0;
    border-right: 0;
  }

  body[data-theme="press"] .studio-card,
  body[data-theme="press"] .studio-card-main {
    min-height: 220px;
  }

  body[data-theme="press"] .fun-grid {
    grid-template-columns: 1fr;
  }

  body[data-theme="press"] .press-front h1 {
    max-width: 100%;
    font-size: clamp(1.5rem, 8.2vw, 1.95rem) !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal;
  }
}

/* media26 label case fix */
body[data-theme="press"] .press-tool span,
body[data-theme="press"] .paper-map-readout span,
body[data-theme="press"] .ad-label,
body[data-theme="press"] .consent-banner p strong,
body[data-theme="press"] .story-meta,
body[data-theme="press"] .section-title span,
body[data-theme="press"] .reader-meta {
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

@font-face {
  font-family: "Noir Et Blanc";
  src: url("assets/fonts/noir-et-blanc-bold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Radium FG";
  src: url("assets/fonts/radium-fg.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Radium FG";
  src: url("assets/fonts/radium-fg-bold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070705;
  --bg-2: #10100d;
  --panel: rgba(25, 25, 22, 0.74);
  --panel-2: rgba(36, 35, 31, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --line-hot: rgba(255, 132, 32, 0.36);
  --text: #fbfaf6;
  --muted: #a9aaa5;
  --soft: #d8d7cf;
  --hot: #ff861f;
  --hot-2: #ffb15e;
  --blue: #7cc7ff;
  --green: #7ce3a5;
  --danger: #ff667d;
  --shadow: rgba(0, 0, 0, 0.45);
  --accent-ink: #15100a;
  --input-bg: rgba(0, 0, 0, 0.3);
  --body-bg:
    linear-gradient(180deg, rgba(255, 134, 31, 0.1), transparent 260px),
    linear-gradient(135deg, #040403 0%, #0c0c09 45%, #13120f 100%);
  --grid-line: rgba(255, 255, 255, 0.035);
  --grid-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 58%);
}

/* media12: cleaner Turkish news-desk layout */
body[data-theme="day"] {
  --body-bg: #f4f3ee;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(248, 246, 239, 0.92);
  --line: rgba(28, 25, 20, 0.12);
  --line-hot: rgba(215, 105, 22, 0.28);
  --shadow: rgba(55, 43, 27, 0.12);
}

body::before {
  opacity: 0.42;
}

.topbar,
.lead-card,
.quick-card,
.story,
.rail-panel,
.control-strip,
.metric-strip article,
.visual-tile,
.pcai-card,
.social-card,
.video-card,
.admin-card,
.admin-panel {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: 0 12px 34px var(--shadow);
  backdrop-filter: blur(12px);
}

.topbar {
  top: 0;
  width: min(1480px, calc(100vw - 24px));
  margin-top: 10px;
  border-radius: 16px;
  padding: 8px 10px;
}

.brand-mark {
  border-radius: 10px;
  box-shadow: none;
}

.nav-chip,
.tools button,
.tools a,
.control-strip button,
.story-actions a,
.story-actions button {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.nav-chip.is-active,
.nav-chip:hover,
.tools button:hover,
.tools a:hover,
.control-strip button:hover {
  color: #fff;
  background: #15130f;
}

.select-wrap select,
.search input {
  background: #fff;
}

.site-shell,
.admin-shell {
  width: min(1480px, calc(100vw - 24px));
  margin-top: 12px;
}

.hero-section {
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.8fr);
  gap: 12px;
}

.lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 34%);
  gap: 18px;
  min-height: 292px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f5f2e9);
}

.lead-card img {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 256px;
  border-radius: 14px;
}

.lead-shade {
  display: none;
}

.lead-copy {
  position: static;
  grid-column: 1;
  grid-row: 1;
  align-content: end;
  max-width: none;
  color: var(--text);
}

.lead-copy small {
  color: #fff;
  background: #15130f;
}

.lead-copy strong {
  max-width: 18ch;
  font-size: clamp(2rem, 3.6vw, 4.2rem);
  line-height: 0.95;
}

.lead-copy em {
  max-width: 58ch;
  color: var(--soft);
}

.hero-side {
  gap: 10px;
}

.metric-strip {
  gap: 8px;
}

.metric-strip article {
  min-height: 76px;
  padding: 11px;
  border-radius: 14px;
}

.metric-strip strong {
  color: #15130f;
  font-size: 1.35rem;
}

.quick-grid {
  gap: 8px;
}

.quick-card {
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 91px;
  border-radius: 14px;
}

.quick-copy {
  padding: 11px;
}

.quick-copy strong {
  font-size: 0.88rem;
}

.ticker {
  height: 36px;
  border-radius: 12px;
  background: #15130f;
}

.ticker span {
  color: #fff;
  font-size: 0.82rem;
}

.music-ad {
  grid-template-columns: 104px minmax(0, 1fr) minmax(230px, 0.36fr);
  min-height: 152px;
  padding: 14px;
  border-radius: 18px;
}

.music-cover {
  width: 104px;
  border-radius: 14px;
}

.ad-label {
  padding: 5px 8px;
}

.music-ad h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.music-ad p,
.music-kicker {
  font-size: 0.76rem;
}

.music-button {
  min-height: 42px;
  border-radius: 12px;
}

.control-strip {
  margin-top: 12px;
  border-radius: 14px;
}

.visual-wall,
.pcai-band {
  margin-top: 18px;
}

.visual-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.visual-tile,
.visual-tile:first-child {
  grid-column: auto;
  grid-row: auto;
  min-height: 215px;
  border-radius: 14px;
}

.visual-tile:first-child strong,
.visual-tile strong {
  max-width: none;
  font-size: 0.96rem;
}

.pcai-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pcai-card,
.pcai-card:first-child {
  min-height: 235px;
  border-radius: 14px;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.28fr);
  gap: 14px;
}

.news-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.story {
  min-height: 274px;
  grid-template-rows: 126px minmax(0, 1fr);
  border-radius: 14px;
}

.story img {
  height: 126px;
}

.story h3 {
  font-size: 0.88rem;
}

.story p {
  font-size: 0.78rem;
}

.rail-panel {
  border-radius: 14px;
}

.split-band {
  grid-template-columns: 1fr 1fr;
}

.social-card,
.video-card {
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .hero-section,
  .content-grid,
  .split-band {
    grid-template-columns: 1fr;
  }

  .news-grid,
  .visual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .hero-section,
  .lead-card,
  .music-ad,
  .quick-grid,
  .news-grid,
  .visual-grid,
  .pcai-grid,
  .social-grid,
  .video-grid,
  .rail,
  .control-strip {
    grid-template-columns: 1fr;
  }

  .lead-card {
    min-height: auto;
  }

  .lead-card img {
    grid-column: 1;
    grid-row: 1;
    min-height: 210px;
  }

  .lead-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .lead-copy strong {
    font-size: 2rem;
  }

  .music-ad {
    min-height: auto;
  }

  .music-ad-copy {
    order: 1;
  }

  .music-cover-link {
    order: 2;
  }

  .music-ad-links {
    order: 3;
  }

  .music-cover {
    width: 132px;
  }
}

@media (max-width: 460px) {
  .site-shell,
  .topbar,
  .admin-shell {
    width: min(100vw - 14px, 1480px);
  }

  .lead-card {
    padding: 12px;
  }

  .lead-card img {
    min-height: 190px;
  }

  .lead-copy strong {
    font-size: 1.7rem;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-theme="day"] {
  color-scheme: light;
  --bg: #f6f5f0;
  --bg-2: #ece9df;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-2: rgba(255, 255, 255, 0.64);
  --line: rgba(29, 26, 21, 0.13);
  --line-hot: rgba(198, 91, 15, 0.34);
  --text: #171510;
  --muted: #69675f;
  --soft: #3b3933;
  --hot: #d96f17;
  --hot-2: #f39a3e;
  --blue: #2568d8;
  --green: #0a9d62;
  --danger: #c43b55;
  --shadow: rgba(80, 62, 37, 0.16);
  --accent-ink: #16110a;
  --input-bg: rgba(255, 255, 255, 0.74);
  --body-bg:
    linear-gradient(180deg, rgba(255, 142, 35, 0.18), transparent 250px),
    linear-gradient(135deg, #fffdf8 0%, #f4f1e8 52%, #ece7da 100%);
  --grid-line: rgba(18, 18, 16, 0.045);
  --grid-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 60%);
}

body[data-theme="signal"] {
  --bg: #05080d;
  --bg-2: #0b121b;
  --panel: rgba(12, 20, 30, 0.78);
  --panel-2: rgba(18, 31, 44, 0.72);
  --line: rgba(168, 211, 255, 0.14);
  --line-hot: rgba(255, 142, 38, 0.36);
  --text: #f6fbff;
  --muted: #9baab8;
  --soft: #c9d6df;
  --hot: #ff8b2d;
  --hot-2: #78c8ff;
  --blue: #78c8ff;
  --green: #80e2ad;
  --danger: #ff6980;
  --shadow: rgba(0, 0, 0, 0.48);
  --accent-ink: #081019;
  --input-bg: rgba(1, 9, 18, 0.42);
  --body-bg:
    linear-gradient(180deg, rgba(38, 127, 255, 0.13), transparent 280px),
    linear-gradient(135deg, #03060b 0%, #08111c 48%, #101722 100%);
  --grid-line: rgba(125, 200, 255, 0.045);
}

body[data-theme="graphite"] {
  --bg: #090909;
  --bg-2: #141414;
  --panel: rgba(24, 24, 24, 0.78);
  --panel-2: rgba(35, 35, 35, 0.72);
  --line: rgba(255, 255, 255, 0.11);
  --line-hot: rgba(255, 142, 38, 0.32);
  --text: #f4f2ee;
  --muted: #9d9b96;
  --soft: #d1cec7;
  --hot: #ff8a24;
  --hot-2: #f3c46d;
  --blue: #b7d9ff;
  --green: #93d6a6;
  --danger: #ff7387;
  --shadow: rgba(0, 0, 0, 0.42);
  --accent-ink: #15110a;
  --input-bg: rgba(0, 0, 0, 0.34);
  --body-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 260px),
    linear-gradient(135deg, #050505 0%, #101010 54%, #191816 100%);
  --grid-line: rgba(255, 255, 255, 0.03);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  background: var(--body-bg);
  font-family: Aptos, "SF Pro Text", "Segoe UI", Roboto, Arial, system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: var(--grid-mask);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.topbar,
.lead-card,
.quick-card,
.story,
.rail-panel,
.control-strip,
.metric-strip article,
.visual-tile,
.pcai-card,
.social-card,
.video-card,
.admin-card,
.admin-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: 0 22px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(1460px, calc(100vw - 24px));
  margin: 12px auto 0;
  padding: 10px;
  border-radius: 22px;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 134, 31, 0.42);
  box-shadow: 0 0 34px rgba(255, 134, 31, 0.2);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand strong {
  font-size: 0.98rem;
  font-weight: 750;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-chip,
.tools button,
.tools a,
.control-strip button,
.story-actions a,
.story-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  text-decoration: none;
}

.nav-chip {
  flex: 0 0 auto;
  padding: 9px 13px;
  font-size: 0.82rem;
  font-weight: 720;
}

.nav-chip.is-active,
.nav-chip:hover,
.tools button:hover,
.tools a:hover,
.control-strip button:hover {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--hot), var(--hot-2));
  border-color: transparent;
}

.link-chip {
  border-color: var(--line-hot);
}

.tools {
  display: flex;
  gap: 7px;
  align-items: center;
}

.admin-link {
  display: inline-grid;
  place-items: center;
  height: 40px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.select-wrap select,
.search input {
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--line);
  outline: none;
}

.select-wrap select {
  width: 62px;
  height: 40px;
  border-radius: 999px;
  padding: 0 10px;
}

.theme-select select {
  width: 112px;
}

.icon-button {
  width: 40px;
  height: 40px;
  font-weight: 900;
}

.site-shell,
.admin-shell {
  width: min(1460px, calc(100vw - 24px));
  margin: 16px auto 34px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 14px;
}

.lead-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  color: var(--text);
  text-decoration: none;
}

.lead-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  background: var(--bg-2);
}

.lead-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.18) 64%, rgba(0, 0, 0, 0.32)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 56%);
}

.lead-copy {
  position: absolute;
  inset: auto 24px 24px;
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.lead-copy small,
.story-kicker,
.quick-copy span,
.story-meta,
.panel-head span,
.metric-strip span,
.social-card small,
.video-card small,
.admin-eyebrow {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}

.lead-copy small {
  width: fit-content;
  color: #17110b;
  background: linear-gradient(135deg, var(--hot), var(--hot-2));
  border-radius: 999px;
  padding: 7px 11px;
}

.lead-copy strong {
  max-width: 18ch;
  font-size: 2.35rem;
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead-copy em {
  color: var(--soft);
  font-style: normal;
  line-height: 1.48;
  max-width: 760px;
}

.hero-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric-strip article {
  min-height: 92px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
}

.metric-strip strong {
  color: var(--hot-2);
  font-size: 1.76rem;
  line-height: 1;
}

.quick-grid {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quick-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 112px;
  overflow: hidden;
  border-radius: 22px;
  color: var(--text);
  text-decoration: none;
}

.quick-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-2);
}

.quick-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 15px;
}

.quick-copy strong {
  font-size: 0.94rem;
  line-height: 1.15;
}

.ticker {
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(255, 134, 31, 0.22);
  border-radius: 999px;
  background: rgba(255, 134, 31, 0.08);
}

.ticker span {
  display: inline-flex;
  gap: 22px;
  min-width: max-content;
  padding: 0 18px;
  color: #fff0dd;
  font-weight: 800;
  animation: ticker 44s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.music-ad {
  position: relative;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 16px;
  min-height: 210px;
  margin-top: 14px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 134, 31, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.48)),
    url("assets/mazi-ad-bg.webp") center / cover no-repeat,
    var(--panel);
  box-shadow: 0 18px 48px var(--shadow);
  isolation: isolate;
}

.music-ad::before,
.music-ad::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.music-ad::before {
  background:
    radial-gradient(circle at var(--ad-x, 76%) var(--ad-y, 46%), rgba(255, 145, 42, 0.32), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%);
  opacity: 0.75;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.music-ad::after {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  z-index: 2;
}

.music-ad-copy,
.music-cover-link,
.music-ad-links {
  position: relative;
  z-index: 1;
}

.music-ad-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.ad-label {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--hot-2);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.music-ad h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.music-ad p {
  margin: 0;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 740;
}

.music-kicker {
  color: var(--hot-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.music-ad-links {
  display: grid;
  gap: 8px;
  align-content: center;
}

.music-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  color: var(--text);
  background: rgba(8, 8, 7, 0.52);
  backdrop-filter: blur(18px);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.music-button span,
.music-button small {
  display: block;
  line-height: 1.08;
}

.music-button small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.music-button:hover {
  transform: translateY(-2px);
  border-color: var(--line-hot);
  background: rgba(255, 134, 31, 0.15);
}

.music-cover-link {
  align-self: center;
  justify-self: start;
  color: inherit;
}

.music-cover {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.music-ad:hover .music-cover {
  transform: translateY(-3px) rotate(-1deg) scale(1.02);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.54);
}

.control-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
}

.search {
  display: grid;
  gap: 6px;
}

.search span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.search input {
  height: 46px;
  border-radius: 14px;
  padding: 0 14px;
}

.control-strip button {
  min-height: 46px;
  padding: 0 15px;
  font-weight: 760;
}

.control-strip button[hidden] {
  display: none;
}

#update-button {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--hot), var(--hot-2));
  border-color: transparent;
  box-shadow: 0 0 0 0 rgba(255, 134, 31, 0.45);
  animation: pulseLive 1.8s ease-out infinite;
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(255, 134, 31, 0.42); }
  100% { box-shadow: 0 0 0 16px rgba(255, 134, 31, 0); }
}

.visual-wall,
.pcai-band {
  margin-top: 26px;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.visual-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 22px;
  color: var(--text);
  text-decoration: none;
}

.visual-tile:first-child {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 392px;
}

.visual-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  background: var(--bg-2);
}

.visual-tile span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent 62%);
}

.visual-tile strong,
.visual-tile small {
  position: absolute;
  left: 14px;
  right: 14px;
}

.visual-tile small {
  bottom: 72px;
  color: var(--hot-2);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-tile strong {
  bottom: 16px;
  font-size: 0.96rem;
  line-height: 1.16;
}

.visual-tile:first-child strong {
  font-size: 1.28rem;
  max-width: 18ch;
}

.pcai-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, minmax(0, 0.82fr));
  gap: 12px;
}

.pcai-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--text);
  text-decoration: none;
}

.pcai-card:first-child {
  min-height: 340px;
}

.pcai-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  background: var(--bg-2);
}

.pcai-card span {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 62%),
    linear-gradient(135deg, rgba(255, 134, 31, 0.22), transparent 46%);
}

.pcai-card small,
.pcai-card strong {
  position: absolute;
  left: 16px;
  right: 16px;
}

.pcai-card small {
  bottom: 82px;
  color: var(--hot-2);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pcai-card strong {
  bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.14;
}

.pcai-card:first-child strong {
  max-width: 18ch;
  font-size: 1.42rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 26px;
}

.main-flow,
.split-band > section {
  min-width: 0;
}

.section-title,
.panel-head,
.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  font-size: 1.72rem;
  font-weight: 760;
}

h2 {
  font-size: 1.02rem;
  font-weight: 760;
}

#result-count,
#social-count,
#video-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.story {
  position: relative;
  min-height: 310px;
  display: grid;
  grid-template-rows: 150px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 22px;
  color: var(--text);
}

.story.is-video::before,
.video-card::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--hot), var(--hot-2));
}

.story.is-video::after,
.video-card::after {
  content: "";
  position: absolute;
  top: 31px;
  right: 30px;
  z-index: 3;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--accent-ink);
}

.story img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--bg-2);
}

.story-body {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.story h3 {
  font-size: 0.94rem;
  line-height: 1.18;
}

.story p {
  margin: 0;
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.38;
}

.story-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.story-actions a,
.story-actions button {
  padding: 8px 11px;
  font-size: 0.78rem;
  font-weight: 760;
}

.story-actions a:hover,
.story-actions button:hover,
.story.is-saved .save-button {
  color: var(--accent-ink);
  background: var(--hot);
  border-color: transparent;
}

.rail {
  display: grid;
  align-content: start;
  gap: 14px;
}

.rail-panel {
  border-radius: 22px;
  padding: 15px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding: 18px 0 6px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a,
.text-link {
  color: var(--soft);
  text-decoration: none;
}

.footer-links a:hover,
.text-link:hover {
  color: var(--hot-2);
}

.policy-shell {
  width: min(920px, calc(100vw - 24px));
  margin: 30px auto 42px;
}

.policy-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: var(--panel);
  box-shadow: 0 22px 70px var(--shadow);
}

.policy-card h1 {
  margin-bottom: 16px;
}

.policy-card h2 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.policy-card p,
.policy-card li {
  color: var(--soft);
  line-height: 1.62;
}

.policy-card ul {
  padding-left: 20px;
}

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(22, 21, 18, 0.94);
  box-shadow: 0 22px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.consent-banner p {
  margin: 0;
  color: var(--soft);
  font-size: 0.86rem;
  line-height: 1.42;
}

.consent-actions {
  display: flex;
  gap: 8px;
}

.consent-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 760;
}

.consent-actions button:first-child {
  color: var(--accent-ink);
  border-color: transparent;
  background: var(--hot);
}

.trend-list,
.source-list,
.admin-list {
  display: grid;
  gap: 8px;
}

.trend-list a,
.source-row,
.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  font-size: 0.88rem;
}

.trend-list a:hover,
.source-row:hover,
.admin-row:hover {
  border-color: var(--line-hot);
}

.source-row.is-active {
  border-color: rgba(255, 134, 31, 0.45);
  background: rgba(255, 134, 31, 0.11);
}

.source-row button {
  margin-left: auto;
  border: 0;
  color: var(--hot-2);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.astro-panel {
  padding: 0;
  overflow: hidden;
}

.astro-panel a {
  display: grid;
  gap: 8px;
  min-height: 136px;
  align-content: end;
  color: #130d07;
  background:
    linear-gradient(135deg, rgba(255, 134, 31, 0.96), rgba(255, 177, 94, 0.86)),
    url("assets/berzah-mark.webp?v=20260518-logo2") center / cover;
  padding: 18px;
  text-decoration: none;
}

.astro-panel span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.astro-panel strong {
  font-size: 1.38rem;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 30px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social-card {
  display: grid;
  gap: 10px;
  min-height: 128px;
  padding: 15px;
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
}

.social-card strong {
  font-size: 1.08rem;
  line-height: 1.15;
}

.social-card span {
  color: var(--hot-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.video-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
}

.video-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--bg-2);
}

.video-card div {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.video-card strong {
  line-height: 1.14;
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

body.is-compact .story {
  min-height: 252px;
  grid-template-rows: 122px minmax(0, 1fr);
}

body.is-compact .story img {
  height: 122px;
}

body.is-compact .story p {
  display: none;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 26px 0 6px;
}

.admin-hero h1 {
  font-size: 2.6rem;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-actions button,
.admin-actions a {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.admin-actions button:hover,
.admin-actions a:hover {
  color: var(--accent-ink);
  background: var(--hot);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admin-card {
  min-height: 120px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
}

.admin-card strong {
  color: var(--hot-2);
  font-size: 2rem;
  line-height: 1;
}

.report-panel {
  display: grid;
  gap: 14px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.report-card {
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.report-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 860;
  text-transform: uppercase;
}

.report-card strong {
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.08;
}

.report-card small {
  color: var(--soft);
  font-size: 0.8rem;
  line-height: 1.25;
}

.admin-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.admin-panel {
  border-radius: 22px;
  padding: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.status-pill {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.is-ok {
  color: var(--accent-ink);
  background: var(--green);
}

.status-pill.is-bad {
  color: #fff;
  background: var(--danger);
}

@media (max-width: 1180px) {
  .hero-section,
  .content-grid,
  .split-band,
  .admin-board {
    grid-template-columns: 1fr;
  }

  .rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .topbar {
    grid-template-columns: 1fr auto;
    border-radius: 20px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .hero-section,
  .music-ad,
  .quick-grid,
  .news-grid,
  .visual-grid,
  .pcai-grid,
  .social-grid,
  .video-grid,
  .rail,
  .control-strip,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .music-ad {
    min-height: auto;
    background-position: center;
  }

  .music-ad h2 {
    max-width: 9ch;
    font-size: 2.45rem;
  }

  .music-ad-copy {
    order: 1;
  }

  .music-cover-link {
    order: 2;
    justify-self: start;
  }

  .music-ad-links {
    order: 3;
  }

  .music-cover {
    width: 150px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-card,
  .lead-card img {
    min-height: 350px;
  }

  .lead-copy strong {
    font-size: 1.82rem;
  }

  .quick-card {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .visual-tile:first-child {
    grid-column: auto;
    grid-row: auto;
    min-height: 230px;
  }

  .admin-hero,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .topbar,
  .site-shell,
  .admin-shell {
    width: min(100vw - 16px, 1460px);
  }

  .tools {
    justify-content: end;
  }

  .admin-link {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav-chip {
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .lead-card,
  .lead-card img {
    min-height: 330px;
  }

  .music-ad {
    padding: 14px;
  }

  .music-ad h2 {
    font-size: 2.1rem;
  }

  .music-button {
    min-height: 48px;
    padding: 9px 11px;
    font-size: 0.76rem;
  }

  .lead-copy {
    inset: auto 16px 16px;
  }

  .lead-copy strong {
    font-size: 1.46rem;
  }

  .consent-banner {
    grid-template-columns: 1fr;
  }
}

/* media12 final overrides: keep this block last */
body[data-theme="day"] {
  --body-bg: #f4f3ee;
  --panel: rgba(255, 255, 255, 0.92);
  --line: rgba(28, 25, 20, 0.12);
  --shadow: rgba(55, 43, 27, 0.12);
}

.topbar,
.lead-card,
.quick-card,
.story,
.rail-panel,
.control-strip,
.metric-strip article,
.visual-tile,
.pcai-card,
.social-card,
.video-card {
  box-shadow: 0 12px 34px var(--shadow);
}

.lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 34%);
  gap: 18px;
  min-height: 292px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f5f2e9);
}

.lead-card img {
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  min-height: 256px;
  border-radius: 14px;
}

.lead-shade {
  display: none;
}

.lead-copy {
  position: static;
  grid-column: 1;
  grid-row: 1;
  align-content: end;
  color: var(--text);
}

.lead-copy strong {
  max-width: 18ch;
  font-size: clamp(2rem, 3.6vw, 4.2rem);
  line-height: 0.95;
}

.lead-copy small {
  color: #fff;
  background: #15130f;
}

.ticker {
  height: 36px;
  border-color: transparent;
  border-radius: 12px;
  background: #15130f;
}

.ticker span {
  color: #fff;
  font-size: 0.82rem;
}

.music-ad {
  grid-template-columns: 116px minmax(0, 1fr) minmax(250px, 0.34fr);
  min-height: 152px;
  padding: 14px;
  border-radius: 18px;
  color: #fff;
}

.music-ad h2,
.music-ad p,
.music-kicker,
.ad-label,
.music-button,
.music-button span,
.music-button small {
  color: #fff;
}

.music-cover {
  width: 116px;
  border-radius: 14px;
}

.music-button {
  min-height: 44px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
}

.music-ad-copy {
  gap: 9px;
}

.music-ad-copy p {
  max-width: 48ch;
}

.visual-tile,
.visual-tile:first-child,
.pcai-card,
.pcai-card:first-child {
  grid-column: auto;
  grid-row: auto;
  min-height: 215px;
  border-radius: 14px;
}

.news-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story {
  min-height: 274px;
  grid-template-rows: 126px minmax(0, 1fr);
  border-radius: 14px;
}

.story img {
  height: 126px;
}

@media (max-width: 1180px) {
  .hero-section,
  .content-grid,
  .split-band {
    grid-template-columns: 1fr;
  }

  .news-grid,
  .visual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .hero-section,
  .lead-card,
  .music-ad,
  .news-grid,
  .visual-grid,
  .pcai-grid {
    grid-template-columns: 1fr;
  }

  .lead-card {
    min-height: auto;
  }

  .lead-card img {
    grid-column: 1;
    grid-row: 1;
    min-height: 210px;
  }

  .lead-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .music-cover {
    width: 132px;
  }
}

@media (max-width: 460px) {
  .lead-card img {
    min-height: 190px;
  }

  .lead-copy strong {
    font-size: 1.7rem;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.reader-open {
  overflow: hidden;
}

.reader-modal[hidden] {
  display: none;
}

.reader-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.reader-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 6, 5, 0.68);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.reader-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  width: min(1040px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.9), rgba(5, 5, 4, 0.78) 56%, rgba(5, 5, 4, 0.58)),
    url("assets/news-hub-panel-bg.webp") center / cover no-repeat,
    #11100d;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.44);
}

.reader-panel,
.reader-panel .reader-copy,
.reader-panel .reader-copy h2,
.reader-panel .reader-copy p {
  color: #fff;
}

.reader-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  font-weight: 820;
}

.reader-media {
  min-height: 430px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
}

.reader-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.reader-copy {
  display: grid;
  align-content: end;
  gap: 14px;
  min-width: 0;
  padding: 54px 10px 10px 0;
}

.reader-meta {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #14110c;
  background: linear-gradient(135deg, var(--hot), var(--hot-2));
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reader-copy h2 {
  max-width: 18ch;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 4rem);
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.68);
}

.reader-copy p {
  max-width: 62ch;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  font-size: 0.98rem;
  line-height: 1.56;
}

.reader-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.reader-actions a {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #14110c;
  background: #fff;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 880px) {
  .reader-panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reader-media {
    min-height: 260px;
  }

  .reader-copy {
    padding: 0;
  }
}

@media (max-width: 460px) {
  .reader-modal {
    padding: 10px;
  }

  .reader-panel {
    width: min(100vw - 14px, 1040px);
    max-height: calc(100vh - 14px);
    padding: 12px;
    border-radius: 16px;
  }

  .reader-close {
    top: 10px;
    right: 10px;
  }

  .reader-media {
    min-height: 220px;
  }

  .reader-copy h2 {
    font-size: 1.8rem;
  }
}

/* media16: image-card contrast fixes */
.visual-tile,
.pcai-card {
  color: #fff;
}

.visual-tile span {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.48) 58%, rgba(0, 0, 0, 0.12)),
    linear-gradient(135deg, rgba(0, 0, 0, 0.28), transparent 48%);
}

.pcai-card span {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.14)),
    linear-gradient(135deg, rgba(255, 134, 31, 0.2), transparent 46%);
}

.visual-tile strong,
.pcai-card strong {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.visual-tile small,
.pcai-card small {
  color: #ffb15e;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

/* media17: slower ticker, mobile density, image/reader safety */
:root {
  --ticker-duration: 128s;
}

.ticker {
  height: 42px;
  border: 1px solid rgba(220, 38, 28, 0.36);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(220, 38, 28, 0.3), transparent 18%, transparent 82%, rgba(220, 38, 28, 0.24)),
    #070707;
}

.ticker > span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-width: max-content;
  padding: 0 18px;
  color: #fff;
  animation: ticker var(--ticker-duration) linear infinite;
}

.ticker:hover > span {
  animation-play-state: paused;
}

.ticker .ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 18px;
  color: #fff8ef;
  font-size: 0.79rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  animation: none;
}

.ticker .ticker-item b {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: #fff;
  background: #d42118;
  font-size: 0.66rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story,
.quick-card,
.visual-tile,
.pcai-card,
.video-card {
  min-width: 0;
}

.story-body {
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.lead-copy strong,
.quick-copy strong,
.story h3,
.story p,
.visual-tile strong,
.pcai-card strong,
.social-card strong,
.video-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.lead-copy strong {
  max-width: 24ch;
  -webkit-line-clamp: 3;
}

.quick-copy strong,
.story h3,
.video-card strong {
  -webkit-line-clamp: 3;
}

.story p {
  -webkit-line-clamp: 3;
}

.visual-tile small,
.pcai-card small {
  top: 13px;
  bottom: auto;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.58);
}

.visual-tile strong,
.pcai-card strong {
  bottom: 14px;
  max-height: 4.2em;
  -webkit-line-clamp: 3;
}

.visual-tile:first-child strong,
.pcai-card:first-child strong {
  max-width: calc(100% - 28px);
}

.has-fallback-image img {
  filter: saturate(0.94) contrast(1.04);
  object-position: center;
}

.reader-panel {
  align-items: stretch;
  overflow-x: hidden;
}

.reader-media {
  min-height: 360px;
}

.reader-copy {
  align-content: start;
  padding: 54px 4px 4px 0;
}

.reader-copy h2 {
  max-width: none;
  font-size: clamp(1.65rem, 3.2vw, 3.35rem);
  line-height: 1.14;
  padding-bottom: 2px;
}

.reader-copy p {
  max-width: none;
  overflow-wrap: anywhere;
}

@media (max-width: 880px) {
  .topbar {
    top: 6px;
    gap: 9px;
  }

  .tools {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.35fr) 40px;
  }

  .select-wrap select,
  .theme-select select {
    width: 100%;
  }

  .nav {
    justify-content: start;
    padding: 1px 0 3px;
  }

  .lead-card {
    gap: 12px;
    padding: 12px;
  }

  .lead-copy strong {
    font-size: 1.52rem;
    line-height: 1.08;
  }

  .lead-copy em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .quick-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .story {
    min-height: 0;
    grid-template-rows: 138px auto;
  }

  .story img {
    height: 138px;
  }

  .visual-tile,
  .pcai-card,
  .video-card {
    min-height: 220px;
  }

  .ticker {
    height: 40px;
    margin-top: 10px;
  }

  .ticker .ticker-item {
    font-size: 0.73rem;
  }
}

@media (max-width: 560px) {
  .topbar,
  .site-shell,
  .admin-shell {
    width: calc(100vw - 14px);
  }

  .topbar {
    grid-template-columns: 1fr;
    padding: 9px;
    border-radius: 16px;
  }

  .brand {
    width: 100%;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .tools {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
  }

  .tools .admin-link {
    display: none;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .nav-chip {
    padding: 8px 10px;
  }

  .metric-strip article {
    min-height: 66px;
    padding: 10px;
  }

  .metric-strip strong {
    font-size: 1.12rem;
  }

  .music-ad {
    gap: 12px;
    padding: 12px;
  }

  .control-strip {
    gap: 8px;
    padding: 10px;
  }

  .control-strip button,
  .search input {
    min-height: 42px;
    height: 42px;
  }

  .reader-modal {
    align-items: start;
    padding: 7px;
  }

  .reader-panel {
    width: calc(100vw - 14px);
    max-height: calc(100dvh - 14px);
    gap: 10px;
    padding: 10px;
  }

  .reader-media {
    min-height: 185px;
  }

  .reader-copy h2 {
    font-size: 1.52rem;
  }

  .reader-copy p {
    padding: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

/* media19: force a visibly new live-desk surface */
body[data-theme="ember"] {
  --body-bg:
    radial-gradient(circle at 18% -10%, rgba(255, 123, 31, 0.24), transparent 28rem),
    linear-gradient(135deg, #050403 0%, #0b0907 48%, #17100b 100%);
  --panel: rgba(17, 15, 12, 0.88);
  --panel-2: rgba(28, 24, 18, 0.84);
  --line: rgba(255, 255, 255, 0.13);
  --line-hot: rgba(255, 93, 35, 0.52);
  --text: #fff9ef;
  --muted: #a99f92;
  --soft: #e6d8c8;
  --hot: #ff4d1e;
  --hot-2: #ff9a3d;
  --accent-ink: #140906;
  --input-bg: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body[data-theme="ember"] .topbar {
  border-color: rgba(255, 77, 30, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 93, 35, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(4, 4, 3, 0.92);
}

body[data-theme="ember"] .brand-mark {
  background: #000;
  border-color: rgba(255, 154, 61, 0.56);
  box-shadow: 0 0 0 4px rgba(255, 77, 30, 0.08), 0 16px 34px rgba(0, 0, 0, 0.36);
}

body[data-theme="ember"] .nav-chip,
body[data-theme="ember"] .tools button,
body[data-theme="ember"] .tools a,
body[data-theme="ember"] .control-strip button,
body[data-theme="ember"] .story-actions a,
body[data-theme="ember"] .story-actions button {
  color: #fff7ef;
  background: rgba(255, 255, 255, 0.065);
}

body[data-theme="ember"] .nav-chip.is-active,
body[data-theme="ember"] .nav-chip:hover,
body[data-theme="ember"] .tools button:hover,
body[data-theme="ember"] .tools a:hover,
body[data-theme="ember"] .control-strip button:hover {
  color: #190804;
  background: linear-gradient(135deg, #ff3b19, #ff9a3d);
}

body[data-theme="ember"] .hero-section {
  gap: 16px;
}

body[data-theme="ember"] .lead-card {
  grid-template-columns: minmax(0, 0.86fr) minmax(260px, 0.72fr);
  min-height: 360px;
  border: 1px solid rgba(255, 77, 30, 0.46);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 77, 30, 0.18), transparent 44%),
    #080706;
}

body[data-theme="ember"] .lead-card img {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #120b07;
  box-shadow: inset 0 0 0 1px rgba(255, 77, 30, 0.12);
}

body[data-theme="ember"] .lead-copy {
  align-content: center;
  gap: 12px;
}

body[data-theme="ember"] .lead-copy small {
  color: #fff;
  background: #d42118;
}

body[data-theme="ember"] .lead-copy strong {
  max-width: 20ch;
  color: #fff;
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  line-height: 0.98;
}

body[data-theme="ember"] .lead-copy em {
  color: #eadac8;
}

body[data-theme="ember"] .metric-strip article,
body[data-theme="ember"] .quick-card,
body[data-theme="ember"] .story,
body[data-theme="ember"] .rail-panel,
body[data-theme="ember"] .control-strip,
body[data-theme="ember"] .visual-tile,
body[data-theme="ember"] .pcai-card,
body[data-theme="ember"] .social-card,
body[data-theme="ember"] .video-card {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 77, 30, 0.055)),
    rgba(12, 11, 9, 0.84);
}

body[data-theme="ember"] .metric-strip strong,
body[data-theme="ember"] .source-row button,
body[data-theme="ember"] #result-count,
body[data-theme="ember"] #social-count,
body[data-theme="ember"] #video-count {
  color: #ff9a3d;
}

body[data-theme="ember"] .section-title {
  padding: 9px 0 8px;
  border-bottom: 1px solid rgba(255, 77, 30, 0.24);
}

body[data-theme="ember"] .section-title h1,
body[data-theme="ember"] .section-title h2,
body[data-theme="ember"] .panel-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
}

body[data-theme="ember"] .section-title h1::before,
body[data-theme="ember"] .section-title h2::before,
body[data-theme="ember"] .panel-head h2::before {
  content: "";
  width: 8px;
  height: 22px;
  border-radius: 3px;
  background: #d42118;
  box-shadow: 0 0 18px rgba(255, 77, 30, 0.4);
}

body[data-theme="ember"] .ticker {
  border-color: rgba(255, 77, 30, 0.58);
  background:
    linear-gradient(90deg, #d42118 0 74px, transparent 74px),
    #030303;
}

body[data-theme="ember"] .story h3,
body[data-theme="ember"] .quick-copy strong,
body[data-theme="ember"] .video-card strong,
body[data-theme="ember"] .social-card strong {
  color: #fff7ef;
}

body[data-theme="ember"] .story p {
  color: #d8cbbb;
}

body[data-theme="ember"] .select-wrap select,
body[data-theme="ember"] .search input {
  color: #fff7ef;
  background: rgba(0, 0, 0, 0.34);
}

@media (max-width: 880px) {
  body[data-theme="ember"] .lead-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-theme="ember"] .lead-card img {
    grid-row: 1;
    min-height: 230px;
  }

  body[data-theme="ember"] .lead-copy {
    grid-row: 2;
  }
}

/* media20: real newspaper + CRT newsroom concept */
body[data-theme="ember"] {
  --paper: #f4ead4;
  --paper-ink: #21180f;
  --paper-muted: #6c5b47;
  --paper-line: rgba(62, 43, 25, 0.22);
  background-color: #080604;
}

body[data-theme="ember"]::before {
  opacity: 0.72;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    var(--grid-mask);
  background-size: 18px 18px, 18px 18px, 100% 100%;
}

body[data-theme="ember"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.76)),
    url("assets/crt-newsdesk-bg.webp?v=20260525-media20") center top / cover no-repeat;
  opacity: 0.56;
}

body[data-theme="ember"] .topbar {
  border-radius: 9px;
  box-shadow:
    0 0 0 1px rgba(255, 154, 61, 0.18),
    0 18px 50px rgba(0, 0, 0, 0.48);
}

body[data-theme="ember"] .brand {
  gap: 12px;
}

body[data-theme="ember"] .brand-mark {
  width: 58px;
  height: 46px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.52);
}

body[data-theme="ember"] .brand strong {
  font-size: 1.05rem;
  text-transform: uppercase;
}

body[data-theme="ember"] .brand small {
  color: #ffbd70;
}

body[data-theme="ember"] .site-shell {
  position: relative;
}

body[data-theme="ember"] .site-shell::before {
  content: "";
  position: absolute;
  inset: 118px -18px auto;
  height: 220px;
  z-index: -1;
  border: 1px solid rgba(255, 226, 172, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(244, 234, 212, 0.28), rgba(244, 234, 212, 0.06)),
    url("assets/newsprint-panel.webp?v=20260525-media20") center / cover no-repeat;
  transform: rotate(-0.8deg);
  opacity: 0.52;
  filter: sepia(0.3) saturate(0.88);
}

body[data-theme="ember"] .hero-section {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.6fr);
  align-items: stretch;
}

body[data-theme="ember"] .lead-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 22px;
  min-height: 430px;
  padding: 26px;
  border-radius: 18px 18px 34px 34px;
  border: 2px solid rgba(24, 18, 12, 0.92);
  background:
    radial-gradient(circle at 48% 46%, rgba(255, 154, 61, 0.23), transparent 40%),
    linear-gradient(135deg, #1b1510, #050403 52%, #100a06);
  box-shadow:
    inset 0 0 0 8px rgba(255, 154, 61, 0.08),
    inset 0 0 0 16px rgba(0, 0, 0, 0.28),
    0 22px 74px rgba(0, 0, 0, 0.56);
}

body[data-theme="ember"] .lead-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 154, 61, 0.26);
  border-radius: 12px 12px 26px 26px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 40%, rgba(255, 125, 45, 0.1));
  mix-blend-mode: screen;
  opacity: 0.44;
}

body[data-theme="ember"] .lead-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 12px;
  height: 20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 50%, #ff3d1c 0 5px, transparent 6px),
    radial-gradient(circle at 28% 50%, #ff9a3d 0 4px, transparent 5px),
    linear-gradient(90deg, rgba(255, 154, 61, 0.24), rgba(255, 255, 255, 0.05));
  opacity: 0.76;
}

body[data-theme="ember"] .lead-card img {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 342px;
  border: 12px solid #090806;
  border-radius: 16px / 22px;
  object-fit: cover;
  box-shadow:
    inset 0 0 22px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 18px 36px rgba(0, 0, 0, 0.48);
  filter: contrast(1.04) saturate(0.92);
}

body[data-theme="ember"] .lead-shade {
  display: block;
  position: absolute;
  inset: 38px auto auto 38px;
  z-index: 2;
  width: calc((100% - 74px) * 0.38);
  max-width: 430px;
  height: calc(100% - 96px);
  border-radius: 12px / 18px;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.42) 72%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

body[data-theme="ember"] .lead-copy {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  align-content: center;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  color: var(--paper-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(244, 234, 212, 0.2)),
    url("assets/newsprint-panel.webp?v=20260525-media20") center / cover no-repeat,
    var(--paper);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  transform: rotate(0.35deg);
}

body[data-theme="ember"] .lead-copy small {
  color: #fff;
  background: #c42016;
  border-radius: 4px;
}

body[data-theme="ember"] .lead-copy strong {
  max-width: 18ch;
  color: var(--paper-ink);
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: 0.96;
  text-shadow: none;
  text-transform: uppercase;
}

body[data-theme="ember"] .lead-copy em {
  color: #463727;
  font-weight: 760;
}

body[data-theme="ember"] .hero-side {
  gap: 12px;
}

body[data-theme="ember"] .metric-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="ember"] .metric-strip article {
  min-height: 96px;
  border-radius: 8px;
  color: var(--paper-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(244, 234, 212, 0.12)),
    url("assets/newsprint-panel.webp?v=20260525-media20") center / cover no-repeat,
    var(--paper);
}

body[data-theme="ember"] .metric-strip span {
  color: var(--paper-muted);
}

body[data-theme="ember"] .metric-strip strong {
  color: #b62015;
}

body[data-theme="ember"] .quick-card,
body[data-theme="ember"] .story,
body[data-theme="ember"] .rail-panel,
body[data-theme="ember"] .control-strip,
body[data-theme="ember"] .social-card {
  border-radius: 8px;
  color: var(--paper-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(244, 234, 212, 0.12)),
    url("assets/newsprint-panel.webp?v=20260525-media20") center / cover no-repeat,
    var(--paper);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

body[data-theme="ember"] .quick-card:nth-child(2),
body[data-theme="ember"] .story:nth-child(4n + 2),
body[data-theme="ember"] .visual-tile:nth-child(odd) {
  transform: rotate(-0.35deg);
}

body[data-theme="ember"] .quick-card:nth-child(3),
body[data-theme="ember"] .story:nth-child(4n + 3),
body[data-theme="ember"] .visual-tile:nth-child(even) {
  transform: rotate(0.32deg);
}

body[data-theme="ember"] .quick-card img,
body[data-theme="ember"] .story img,
body[data-theme="ember"] .video-card img {
  filter: sepia(0.22) contrast(1.08) saturate(0.9);
  border-bottom: 1px solid rgba(57, 39, 20, 0.22);
}

body[data-theme="ember"] .quick-copy span,
body[data-theme="ember"] .story-meta,
body[data-theme="ember"] .panel-head span,
body[data-theme="ember"] .social-card small,
body[data-theme="ember"] .video-card small {
  color: #8a261c;
}

body[data-theme="ember"] .quick-copy strong,
body[data-theme="ember"] .story h3,
body[data-theme="ember"] .social-card strong {
  color: var(--paper-ink);
  text-transform: uppercase;
}

body[data-theme="ember"] .story p,
body[data-theme="ember"] .social-card span {
  color: #51402e;
}

body[data-theme="ember"] .story-actions a,
body[data-theme="ember"] .story-actions button,
body[data-theme="ember"] .control-strip button {
  border-radius: 5px;
  color: #fff7ef;
  background: #17110c;
}

body[data-theme="ember"] .visual-wall,
body[data-theme="ember"] .pcai-band,
body[data-theme="ember"] .main-flow,
body[data-theme="ember"] .split-band > section {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 154, 61, 0.2);
  border-radius: 10px;
  background: rgba(6, 5, 4, 0.36);
}

body[data-theme="ember"] .visual-tile,
body[data-theme="ember"] .pcai-card,
body[data-theme="ember"] .video-card {
  border: 10px solid #0a0806;
  border-radius: 16px / 24px;
  background:
    linear-gradient(180deg, rgba(255, 154, 61, 0.1), rgba(0, 0, 0, 0.36)),
    #0a0806;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.7),
    0 16px 38px rgba(0, 0, 0, 0.34);
}

body[data-theme="ember"] .visual-tile::after,
body[data-theme="ember"] .pcai-card::after,
body[data-theme="ember"] .video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 6px / 14px;
  background:
    radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.34) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 5px);
  opacity: 0.6;
}

body[data-theme="ember"] .visual-tile small,
body[data-theme="ember"] .pcai-card small {
  z-index: 3;
  color: #fff;
  background: #c42016;
  border-radius: 4px;
}

body[data-theme="ember"] .visual-tile strong,
body[data-theme="ember"] .pcai-card strong {
  z-index: 3;
  color: #fff8ef;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.78);
}

body[data-theme="ember"] .ticker {
  height: 46px;
  border-width: 2px;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

body[data-theme="ember"] .reader-panel {
  border: 12px solid #070605;
  border-radius: 18px / 26px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.52)),
    url("assets/crt-newsdesk-bg.webp?v=20260525-media20") center / cover no-repeat,
    #090706;
}

@media (max-width: 1180px) {
  body[data-theme="ember"] .lead-card {
    grid-template-columns: 1fr;
  }

  body[data-theme="ember"] .lead-card img,
  body[data-theme="ember"] .lead-copy {
    grid-column: 1;
  }

  body[data-theme="ember"] .lead-shade {
    width: calc(100% - 76px);
  }
}

@media (max-width: 560px) {
  html,
  body {
    overflow-x: hidden;
  }

  body[data-theme="ember"] .hero-section {
    grid-template-columns: 1fr;
  }

  body[data-theme="ember"]::after {
    opacity: 0.38;
    background-position: center top;
  }

  body[data-theme="ember"] .brand-mark {
    width: 54px;
    height: 42px;
  }

  body[data-theme="ember"] .lead-card {
    padding: 14px;
    border-radius: 12px 12px 24px 24px;
  }

  body[data-theme="ember"] .lead-card img {
    min-height: 230px;
    border-width: 8px;
  }

  body[data-theme="ember"] .lead-shade {
    inset: 26px 26px auto;
    width: auto;
    height: 218px;
  }

  body[data-theme="ember"] .lead-copy {
    padding: 14px;
    transform: rotate(0);
  }

  body[data-theme="ember"] .lead-copy strong {
    font-size: 1.7rem;
  }

  body[data-theme="ember"] .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="ember"] .visual-wall,
  body[data-theme="ember"] .pcai-band,
  body[data-theme="ember"] .main-flow,
  body[data-theme="ember"] .split-band > section {
    padding: 10px;
  }
}

/* media22: actual front-page newspaper concept */
body[data-theme="press"] {
  color-scheme: light;
  --bg: #ead9b5;
  --bg-2: #dac79e;
  --panel: #f5ead0;
  --panel-2: #ead8b4;
  --line: rgba(29, 19, 11, 0.34);
  --line-hot: rgba(177, 30, 19, 0.58);
  --text: #1c140d;
  --muted: #6d5a43;
  --soft: #3d2e20;
  --hot: #b91f17;
  --hot-2: #e15e2c;
  --accent-ink: #fff5de;
  --input-bg: rgba(255, 249, 232, 0.86);
  --shadow: rgba(50, 32, 17, 0.16);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    repeating-linear-gradient(0deg, rgba(42, 28, 15, 0.022) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 20% 0%, rgba(185, 31, 23, 0.08), transparent 24rem),
    linear-gradient(180deg, #efe0be 0%, #e4d1aa 100%);
}

body[data-theme="press"]::before {
  opacity: 0.38;
  background:
    repeating-linear-gradient(90deg, rgba(40, 27, 15, 0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(40, 27, 15, 0.025) 0 1px, transparent 1px 6px);
}

body[data-theme="press"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(237, 218, 181, 0.72), rgba(237, 218, 181, 0.22)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 620px auto repeat;
  opacity: 0.62;
  filter: sepia(0.22);
}

body[data-theme="press"] .topbar,
body[data-theme="press"] .lead-card,
body[data-theme="press"] .quick-card,
body[data-theme="press"] .story,
body[data-theme="press"] .rail-panel,
body[data-theme="press"] .control-strip,
body[data-theme="press"] .metric-strip article,
body[data-theme="press"] .visual-tile,
body[data-theme="press"] .pcai-card,
body[data-theme="press"] .social-card,
body[data-theme="press"] .video-card {
  border-color: rgba(29, 19, 11, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 252, 238, 0.8), rgba(245, 234, 208, 0.58)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 780px auto repeat,
    var(--panel);
  box-shadow: 0 10px 24px rgba(58, 38, 18, 0.14);
  backdrop-filter: none;
}

body[data-theme="press"] .topbar {
  position: sticky;
  top: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  border: 2px solid #1f150d;
  border-radius: 0;
  padding: 8px 10px;
}

body[data-theme="press"] .brand-mark {
  width: 52px;
  height: 42px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: sepia(0.2) contrast(1.12);
}

body[data-theme="press"] .brand strong {
  color: #1c140d;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

body[data-theme="press"] .brand small {
  color: #8b1d15;
  font-family: Arial, sans-serif;
}

body[data-theme="press"] .nav-chip,
body[data-theme="press"] .tools button,
body[data-theme="press"] .tools a,
body[data-theme="press"] .control-strip button,
body[data-theme="press"] .story-actions a,
body[data-theme="press"] .story-actions button {
  border-radius: 0;
  color: #1c140d;
  background: rgba(255, 248, 226, 0.66);
  font-family: Arial, sans-serif;
  font-weight: 900;
}

body[data-theme="press"] .nav-chip.is-active,
body[data-theme="press"] .nav-chip:hover,
body[data-theme="press"] .tools button:hover,
body[data-theme="press"] .tools a:hover,
body[data-theme="press"] .control-strip button:hover,
body[data-theme="press"] .story-actions a:hover,
body[data-theme="press"] .story-actions button:hover,
body[data-theme="press"] .story.is-saved .save-button {
  color: #fff8e8;
  background: #16100b;
}

body[data-theme="press"] .site-shell {
  width: min(1320px, calc(100vw - 24px));
  margin-top: 12px;
}

body[data-theme="press"] .press-front {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 16px 12px 12px;
  border-top: 5px solid #1e150e;
  border-bottom: 5px double #1e150e;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 251, 236, 0.86), rgba(238, 221, 183, 0.58)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 760px auto repeat;
}

body[data-theme="press"] .press-date {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid #1e150e;
  border-bottom: 1px solid #1e150e;
  color: #4c3928;
  font-family: Arial, sans-serif;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-theme="press"] .press-front h1 {
  margin: 0;
  color: #16100b;
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

body[data-theme="press"] .press-front p {
  margin: 0;
  color: #4b3827;
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  font-weight: 700;
}

body[data-theme="press"] .hero-section {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
  align-items: stretch;
}

body[data-theme="press"] .lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.82fr);
  gap: 16px;
  min-height: 460px;
  padding: 14px;
  border: 3px double #1d140d;
  border-radius: 0;
  color: #1c140d;
  overflow: hidden;
}

body[data-theme="press"] .lead-card::before {
  content: "MANSET";
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 3;
  padding: 5px 9px;
  color: #fff8e8;
  background: #b91f17;
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body[data-theme="press"] .lead-card img {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 2px solid #1d140d;
  border-radius: 0;
  object-fit: cover;
  filter: grayscale(0.24) sepia(0.28) contrast(1.08);
}

body[data-theme="press"] .lead-shade {
  display: none;
}

body[data-theme="press"] .lead-copy {
  position: static;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 0 12px 14px;
  border-left: 2px solid #1d140d;
  color: #1c140d;
}

body[data-theme="press"] .lead-copy small {
  width: fit-content;
  border-radius: 0;
  color: #fff8e8;
  background: #16100b;
  font-family: Arial, sans-serif;
}

body[data-theme="press"] .lead-copy strong {
  max-width: 15ch;
  color: #17100a;
  font-size: clamp(2.2rem, 5.6vw, 5.4rem);
  line-height: 0.86;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: none;
}

body[data-theme="press"] .lead-copy em {
  max-width: 42ch;
  color: #3c2d1f;
  font-size: 1.02rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.44;
  columns: 2 160px;
  column-gap: 18px;
}

body[data-theme="press"] .hero-side {
  gap: 10px;
}

body[data-theme="press"] .metric-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-theme="press"] .metric-strip article {
  min-height: 86px;
  border: 2px solid #1d140d;
  border-radius: 0;
}

body[data-theme="press"] .metric-strip span,
body[data-theme="press"] .quick-copy span,
body[data-theme="press"] .story-meta,
body[data-theme="press"] .panel-head span,
body[data-theme="press"] .social-card small,
body[data-theme="press"] .video-card small,
body[data-theme="press"] #result-count,
body[data-theme="press"] #social-count,
body[data-theme="press"] #video-count {
  color: #8b1d15;
  font-family: Arial, sans-serif;
}

body[data-theme="press"] .metric-strip strong {
  color: #17100a;
  font-size: 1.7rem;
}

body[data-theme="press"] .quick-grid {
  gap: 8px;
}

body[data-theme="press"] .quick-card {
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 104px;
  border: 2px solid #1d140d;
  border-radius: 0;
}

body[data-theme="press"] .quick-card img,
body[data-theme="press"] .story img,
body[data-theme="press"] .video-card img {
  filter: grayscale(0.2) sepia(0.22) contrast(1.08);
}

body[data-theme="press"] .ticker {
  height: 42px;
  border: 2px solid #1d140d;
  border-radius: 0;
  background:
    linear-gradient(90deg, #b91f17 0 96px, transparent 96px),
    #16100b;
}

body[data-theme="press"] .ticker .ticker-item b {
  border: 0;
  border-radius: 0;
  background: #b91f17;
}

body[data-theme="press"] .music-ad,
body[data-theme="press"] .control-strip {
  border: 3px double #1d140d;
  border-radius: 0;
}

body[data-theme="press"] .select-wrap select,
body[data-theme="press"] .search input {
  border-radius: 0;
  color: #1c140d;
  font-family: Arial, sans-serif;
}

body[data-theme="press"] .visual-wall,
body[data-theme="press"] .pcai-band,
body[data-theme="press"] .main-flow,
body[data-theme="press"] .split-band > section {
  padding: 12px;
  border: 3px double #1d140d;
  background:
    linear-gradient(180deg, rgba(255, 252, 238, 0.55), rgba(235, 216, 178, 0.24)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 860px auto repeat;
}

body[data-theme="press"] .section-title,
body[data-theme="press"] .panel-head {
  padding-bottom: 7px;
  border-bottom: 2px solid #1d140d;
}

body[data-theme="press"] .section-title h1,
body[data-theme="press"] .section-title h2,
body[data-theme="press"] .panel-head h2 {
  color: #17100a;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-theme="press"] .section-title h1::before,
body[data-theme="press"] .section-title h2::before,
body[data-theme="press"] .panel-head h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 20px;
  margin-right: 8px;
  vertical-align: -3px;
  background: #b91f17;
}

body[data-theme="press"] .visual-tile,
body[data-theme="press"] .pcai-card {
  border: 2px solid #1d140d;
  border-radius: 0;
  background: #111;
}

body[data-theme="press"] .visual-tile img,
body[data-theme="press"] .pcai-card img {
  filter: grayscale(0.28) sepia(0.2) contrast(1.08);
}

body[data-theme="press"] .visual-tile small,
body[data-theme="press"] .pcai-card small {
  border-radius: 0;
  color: #fff8e8;
  background: #b91f17;
  font-family: Arial, sans-serif;
}

body[data-theme="press"] .visual-tile strong,
body[data-theme="press"] .pcai-card strong {
  color: #fff8e8;
  text-transform: uppercase;
}

body[data-theme="press"] .news-grid {
  gap: 10px;
}

body[data-theme="press"] .story,
body[data-theme="press"] .rail-panel,
body[data-theme="press"] .social-card,
body[data-theme="press"] .video-card {
  border: 2px solid #1d140d;
  border-radius: 0;
}

body[data-theme="press"] .story {
  min-height: 306px;
}

body[data-theme="press"] .story h3,
body[data-theme="press"] .quick-copy strong,
body[data-theme="press"] .social-card strong,
body[data-theme="press"] .video-card strong {
  color: #17100a;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-theme="press"] .story p,
body[data-theme="press"] .social-card span {
  color: #4b3827;
  font-weight: 650;
}

body[data-theme="press"] .trend-list a,
body[data-theme="press"] .source-row {
  border-radius: 0;
  color: #1c140d;
  background: rgba(255, 247, 225, 0.58);
  font-family: Arial, sans-serif;
}

body[data-theme="press"] .source-row button {
  color: #8b1d15;
}

body[data-theme="press"] .astro-panel a {
  color: #fff8e8;
  background:
    linear-gradient(135deg, rgba(22, 16, 11, 0.88), rgba(185, 31, 23, 0.74)),
    url("assets/cloud-sketch-logo.webp?v=20260525-media22") center / cover no-repeat;
}

body[data-theme="press"] .reader-panel {
  border: 4px double #1d140d;
  border-radius: 0;
  color: #1c140d;
  background:
    linear-gradient(180deg, rgba(255, 250, 235, 0.74), rgba(236, 219, 183, 0.48)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 900px auto repeat,
    #f2e3c1;
}

body[data-theme="press"] .reader-panel,
body[data-theme="press"] .reader-panel .reader-copy,
body[data-theme="press"] .reader-panel .reader-copy h2,
body[data-theme="press"] .reader-panel .reader-copy p {
  color: #1c140d;
}

body[data-theme="press"] .reader-copy h2 {
  text-shadow: none;
  text-transform: uppercase;
}

body[data-theme="press"] .reader-copy p {
  border-color: rgba(29, 19, 11, 0.28);
  background: rgba(255, 248, 226, 0.56);
}

@media (max-width: 1180px) {
  body[data-theme="press"] .hero-section,
  body[data-theme="press"] .lead-card {
    grid-template-columns: 1fr;
  }

  body[data-theme="press"] .lead-card img,
  body[data-theme="press"] .lead-copy {
    grid-column: 1;
  }

  body[data-theme="press"] .lead-copy {
    padding-left: 0;
    border-top: 2px solid #1d140d;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  html,
  body {
    overflow-x: hidden;
  }

  body[data-theme="press"] .site-shell,
  body[data-theme="press"] .topbar {
    width: calc(100vw - 14px);
  }

  body[data-theme="press"] .press-date {
    display: grid;
    justify-content: stretch;
  }

  body[data-theme="press"] .press-front h1 {
    font-size: 3rem;
    line-height: 0.9;
  }

  body[data-theme="press"] .hero-section {
    grid-template-columns: 1fr;
  }

  body[data-theme="press"] .lead-card {
    min-height: 0;
    padding: 10px;
  }

  body[data-theme="press"] .lead-card img {
    min-height: 230px;
  }

  body[data-theme="press"] .lead-copy strong {
    font-size: 1.72rem;
    line-height: 0.95;
  }

  body[data-theme="press"] .lead-copy em {
    columns: 1;
  }

  body[data-theme="press"] .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* media23: private admin gate, telegram desk, live paper layers */
body[data-theme="press"] {
  font-family: Inter, Arial, system-ui, sans-serif;
}

body[data-theme="press"] .brand strong,
body[data-theme="press"] .press-front h1 {
  font-family: "Radium FG", "Noir Et Blanc", Impact, sans-serif;
  letter-spacing: 0;
}

body[data-theme="press"] h1,
body[data-theme="press"] h2,
body[data-theme="press"] h3,
body[data-theme="press"] .lead-copy strong,
body[data-theme="press"] .visual-tile strong,
body[data-theme="press"] .pcai-card strong,
body[data-theme="press"] .story h3,
body[data-theme="press"] .quick-copy strong,
body[data-theme="press"] .social-card strong,
body[data-theme="press"] .video-card strong,
body[data-theme="press"] .press-tool strong,
body[data-theme="press"] .metric-strip strong {
  font-family: Georgia, "Times New Roman", Arial, sans-serif;
  letter-spacing: 0;
}

.admin-link {
  display: none !important;
}

body[data-theme="press"] .press-front {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(176px, 24vw, 310px);
}

body[data-theme="press"] .press-front > *:not(.press-scene) {
  position: relative;
  z-index: 1;
}

body[data-theme="press"] .press-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.46;
  mix-blend-mode: multiply;
  pointer-events: none;
}

body[data-theme="press"] .press-utility {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

body[data-theme="press"] .press-tool {
  min-height: 132px;
  padding: 12px;
  border: 3px double #1d140d;
  color: #17100a;
  background:
    linear-gradient(180deg, rgba(255, 250, 235, 0.82), rgba(235, 216, 178, 0.36)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 760px auto repeat;
  box-shadow: 0 10px 24px rgba(58, 38, 18, 0.12);
}

body[data-theme="press"] .press-tool span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 7px;
  color: #fff8e8;
  background: #b91f17;
  font: 900 0.72rem Arial, sans-serif;
  text-transform: uppercase;
}

body[data-theme="press"] .press-tool strong {
  display: block;
  color: #17100a;
  font-family: Georgia, "Times New Roman", Arial, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1;
}

body[data-theme="press"] .press-tool small {
  display: block;
  margin-top: 8px;
  color: #5a3f29;
  font-weight: 800;
}

body[data-theme="press"] .weather-sketch {
  display: block;
  width: 100%;
  height: 78px;
  margin-top: 10px;
  border-top: 2px solid #1d140d;
}

body[data-theme="press"] .press-install-card[hidden] {
  display: none;
}

body[data-theme="press"] .press-install-card button {
  width: 100%;
  margin-top: 12px;
  padding: 11px 12px;
  border: 2px solid #17100a;
  color: #fff8e8;
  background: #17100a;
  font-weight: 900;
}

body[data-theme="press"] .paper-map-section {
  display: grid;
  grid-template-columns: minmax(255px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px;
  border: 4px double #1d140d;
  color: #f6ead0;
  background:
    linear-gradient(135deg, rgba(9, 8, 7, 0.98), rgba(22, 15, 10, 0.96)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 760px auto repeat;
  box-shadow: 0 18px 42px rgba(32, 20, 10, 0.22);
}

body[data-theme="press"] .paper-map-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(246, 234, 208, 0.22);
  background: rgba(0, 0, 0, 0.22);
}

body[data-theme="press"] .paper-map-copy span,
body[data-theme="press"] .paper-map-readout span {
  width: fit-content;
  padding: 4px 8px;
  color: #17100a;
  background: #f2dfb4;
  font: 900 0.73rem Arial, sans-serif;
  text-transform: uppercase;
}

body[data-theme="press"] .paper-map-copy h2 {
  margin: 0;
  color: #fff8e8;
  font-family: Georgia, "Times New Roman", Arial, sans-serif;
  font-size: clamp(2rem, 3.1vw, 3.35rem);
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

body[data-theme="press"] .paper-map-copy p {
  margin: 0;
  color: #e9d7b6;
  font-weight: 800;
  line-height: 1.38;
}

body[data-theme="press"] .paper-map-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-theme="press"] .paper-map-actions button {
  min-height: 44px;
  border: 2px solid #f2dfb4;
  color: #fff8e8;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

body[data-theme="press"] .paper-map-actions button:hover {
  color: #17100a;
  background: #f2dfb4;
}

body[data-theme="press"] .paper-map-frame {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 2px solid #f2dfb4;
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.18), rgba(9, 8, 7, 0.02)),
    url("assets/paper-map-istanbul-media25.png") center / cover no-repeat,
    #12100d;
}

body[data-theme="press"] .paper-map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 46%, rgba(214, 28, 20, 0.14), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 11px);
  mix-blend-mode: screen;
}

body[data-theme="press"] #paper-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  cursor: crosshair;
}

body[data-theme="press"] .paper-map-readout {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  justify-items: end;
  gap: 4px;
}

body[data-theme="press"] .paper-map-readout strong {
  color: #fff8e8;
  font-family: Georgia, "Times New Roman", Arial, sans-serif;
  font-size: 2.4rem;
  line-height: 1;
}

body.admin-private .admin-shell {
  width: min(1280px, calc(100vw - 24px));
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 248, 226, 0.75), rgba(227, 203, 161, 0.72)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 720px auto repeat;
}

.admin-login-card {
  width: min(430px, 100%);
  padding: 18px;
  border: 4px double #1d140d;
  color: #17100a;
  background: rgba(255, 250, 235, 0.82);
  box-shadow: 0 18px 44px rgba(36, 24, 12, 0.24);
}

.admin-login-card h1 {
  margin: 0 0 12px;
  font-family: "Radium FG", Impact, sans-serif;
  font-size: clamp(2.1rem, 11vw, 4rem);
  line-height: 0.9;
}

.admin-login-card label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: #5a3f29;
  font-weight: 900;
}

.admin-login-card input {
  width: 100%;
  padding: 13px 12px;
  border: 2px solid #1d140d;
  color: #17100a;
  background: #fff8e8;
  font: 900 1.1rem "Noir Et Blanc", system-ui, sans-serif;
}

.admin-login-card button,
.telegram-controls button {
  border: 2px solid #17100a;
  color: #fff8e8;
  background: #17100a;
  font-weight: 900;
}

.admin-login-card button {
  width: 100%;
  margin-top: 14px;
  padding: 13px 12px;
}

.admin-login-error {
  margin: 0 0 10px;
  padding: 9px 10px;
  color: #fff8e8;
  background: #b91f17;
  font-weight: 900;
}

body[data-theme="press"] .telegram-panel {
  border: 4px double #1d140d;
  background:
    linear-gradient(180deg, rgba(255, 250, 235, 0.76), rgba(236, 219, 183, 0.42)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 860px auto repeat;
}

.telegram-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.telegram-controls label {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 2px solid #1d140d;
  color: #17100a;
  background: rgba(255, 248, 226, 0.68);
  font-weight: 900;
}

.telegram-controls input {
  width: 100%;
  accent-color: #b91f17;
}

.telegram-controls input[type="time"],
.telegram-controls input[type="number"] {
  padding: 9px 10px;
  border: 1px solid rgba(29, 20, 13, 0.42);
  color: #17100a;
  background: #fff8e8;
}

.telegram-controls button {
  min-height: 54px;
  padding: 10px;
}

.telegram-log {
  margin-top: 12px;
}

body[data-theme="press"] .consent-banner,
body[data-theme="press"] .consent-banner p {
  color: #fff8e8;
}

body[data-theme="press"] .consent-banner {
  border: 3px double #f2dfb4;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(18, 16, 13, 0.98), rgba(34, 24, 16, 0.96)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 620px auto repeat;
}

body[data-theme="press"] .consent-banner p strong {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  color: #17100a;
  background: #f2dfb4;
  font: 900 0.75rem Arial, sans-serif;
  text-transform: uppercase;
}

body[data-theme="press"] .consent-banner a {
  color: #ffcf77;
}

body[data-theme="press"] .consent-actions button {
  border-radius: 0;
}

body[data-theme="press"] .article-shell {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding-block: 24px;
}

body[data-theme="press"] .article-page {
  position: static;
  width: min(1080px, 100%);
  max-height: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

body[data-theme="press"] .article-page .reader-copy h1 {
  margin: 0;
  color: #17100a;
  font-family: Georgia, "Times New Roman", Arial, sans-serif;
  font-size: clamp(2.1rem, 5.6vw, 5.2rem);
  line-height: 0.92;
}

body[data-theme="press"] .article-page .reader-media img {
  filter: grayscale(0.18) sepia(0.2) contrast(1.08);
}

@media (max-width: 860px) {
  body[data-theme="press"] .press-utility,
  .telegram-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="press"] .paper-map-section {
    grid-template-columns: 1fr;
  }

  body[data-theme="press"] .article-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body[data-theme="press"] .site-shell {
    width: 100vw;
    margin-top: 0;
    padding-inline: 7px;
  }

  body[data-theme="press"] .topbar {
    top: 0;
    width: 100vw;
    margin-top: 0;
    border-left: 0;
    border-right: 0;
  }

  body[data-theme="press"] .press-front {
    margin-inline: -7px;
    padding-inline: 10px;
    border-left: 0;
    border-right: 0;
  }

  body[data-theme="press"] .press-front h1 {
    max-width: 100%;
    font-size: 2.32rem;
    white-space: nowrap;
  }

  body[data-theme="press"] .press-utility,
  .telegram-controls {
    grid-template-columns: 1fr;
  }

  body[data-theme="press"] .paper-map-section {
    margin-inline: -7px;
    padding: 8px;
    border-left: 0;
    border-right: 0;
  }

  body[data-theme="press"] .paper-map-copy {
    padding: 10px;
  }

  body[data-theme="press"] .paper-map-actions {
    grid-template-columns: 1fr;
  }

  body[data-theme="press"] .paper-map-frame,
  body[data-theme="press"] #paper-map {
    min-height: 255px;
  }

  body[data-theme="press"] .press-tool {
    min-height: 112px;
  }

  body[data-theme="press"] .consent-banner {
    display: grid;
    grid-template-columns: 1fr !important;
    left: 8px;
    right: 8px;
    max-width: none;
    width: auto;
    padding: 12px;
  }

  body[data-theme="press"] .consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }

  body[data-theme="press"] .consent-actions button {
    width: 100%;
    min-width: 0;
  }

  body[data-theme="press"] .visual-wall,
  body[data-theme="press"] .pcai-band,
  body[data-theme="press"] .main-flow,
  body[data-theme="press"] .split-band > section {
    padding: 10px;
  }
}

/* media26 final overrides: Turkish-safe typography and wide paper map */
body[data-theme="press"] .press-tool span,
body[data-theme="press"] .paper-map-readout span,
body[data-theme="press"] .ad-label,
body[data-theme="press"] .consent-banner p strong,
body[data-theme="press"] .story-meta,
body[data-theme="press"] .section-title span,
body[data-theme="press"] .reader-meta {
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

body[data-theme="press"] .lead-card::before {
  content: "Manşet";
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

body[data-theme="press"] .lead-copy small,
body[data-theme="press"] .lead-copy strong,
body[data-theme="press"] .section-title h1,
body[data-theme="press"] .section-title h2,
body[data-theme="press"] .visual-tile small,
body[data-theme="press"] .pcai-card small,
body[data-theme="press"] .social-card small,
body[data-theme="press"] .video-card small {
  text-transform: none;
  letter-spacing: 0;
}

body[data-theme="press"] .select-wrap select {
  min-width: 96px;
}

body[data-theme="press"] .theme-select select {
  min-width: 116px;
}

@media (max-width: 560px) {
  body[data-theme="press"] {
    overflow-x: hidden;
  }

  body[data-theme="press"] .nav {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body[data-theme="press"] .nav::-webkit-scrollbar {
    display: none;
  }

  body[data-theme="press"] .press-front h1 {
    display: block;
    width: 100%;
    max-width: calc(100vw - 26px);
    font-size: clamp(1.7rem, 9.5vw, 2.25rem) !important;
    line-height: 1 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word;
  }

  body[data-theme="press"] .press-front p {
    width: min(32ch, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    margin-inline: auto;
    font-size: 0.86rem !important;
    line-height: 1.34 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body[data-theme="press"] .consent-banner {
    overflow: hidden;
  }

  body[data-theme="press"] .consent-banner p {
    max-width: 100%;
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
}

body[data-theme="press"],
body[data-theme="press"] button,
body[data-theme="press"] input,
body[data-theme="press"] select,
body[data-theme="press"] textarea,
body[data-theme="press"] h1,
body[data-theme="press"] h2,
body[data-theme="press"] h3,
body[data-theme="press"] p,
body[data-theme="press"] a,
body[data-theme="press"] span,
body[data-theme="press"] small,
body[data-theme="press"] strong,
body[data-theme="press"] em {
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-variant-ligatures: common-ligatures;
}

body[data-theme="press"] h1,
body[data-theme="press"] h2,
body[data-theme="press"] h3,
body[data-theme="press"] .lead-copy strong,
body[data-theme="press"] .visual-tile strong,
body[data-theme="press"] .pcai-card strong,
body[data-theme="press"] .story h3,
body[data-theme="press"] .quick-copy strong,
body[data-theme="press"] .social-card strong,
body[data-theme="press"] .video-card strong,
body[data-theme="press"] .press-tool strong,
body[data-theme="press"] .metric-strip strong,
body[data-theme="press"] .paper-map-readout strong,
body[data-theme="press"] .article-page .reader-copy h1 {
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  line-height: 1.12;
  overflow-wrap: break-word;
}

body[data-theme="press"] p,
body[data-theme="press"] em,
body[data-theme="press"] small,
body[data-theme="press"] .story-body,
body[data-theme="press"] .reader-copy {
  line-height: 1.42;
}

body[data-theme="press"] .press-front h1,
body[data-theme="press"] .brand strong {
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  font-weight: 900;
}

body[data-theme="press"] .paper-map-section,
body[data-theme="press"] .paper-map-section.is-wide-map {
  display: block;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 8px;
}

body[data-theme="press"] .paper-map-copy {
  display: none !important;
}

body[data-theme="press"] .paper-map-frame,
body[data-theme="press"] #paper-map {
  min-height: clamp(330px, 37vw, 540px);
}

body[data-theme="press"] .map-status {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  max-width: min(420px, calc(100% - 24px));
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(242, 223, 180, 0.7);
  color: #fff8e8;
  background: rgba(12, 9, 7, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
}

body[data-theme="press"] .paper-map-actions {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  width: min(260px, calc(100% - 24px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="press"] .paper-map-readout {
  z-index: 2;
}

@media (max-width: 560px) {
  body[data-theme="press"] .paper-map-frame,
  body[data-theme="press"] #paper-map {
    min-height: 330px;
  }

  body[data-theme="press"] .paper-map-actions {
    width: min(230px, calc(100% - 24px));
  }

  body[data-theme="press"] .paper-map-readout strong {
    font-size: 1.86rem;
  }
}

/* media31: Telegram mascot identity and portal */
body[data-theme="press"] .brand strong,
body[data-theme="press"] .press-front h1 {
  font-family: "Radium FG", "Noir Et Blanc", "Segoe UI", Arial, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

body[data-theme="press"] .brand strong {
  font-size: clamp(1.04rem, 2.2vw, 1.36rem);
}

body[data-theme="press"] .press-front {
  position: relative;
  min-height: clamp(300px, 34vw, 510px);
  place-items: center;
  overflow: hidden;
}

body[data-theme="press"] .press-mascot {
  position: absolute;
  right: max(14px, 4vw);
  bottom: 16px;
  z-index: 1;
  display: block;
  width: clamp(190px, 28vw, 420px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px double #1d140d;
  border-radius: 42px;
  background: #11100d;
  box-shadow: 0 20px 54px rgba(12, 9, 7, 0.28);
  text-decoration: none;
}

body[data-theme="press"] .press-mascot img,
body[data-theme="press"] .press-telegram-card img,
body[data-theme="press"] .mascot-panel img,
body.telegram-page .telegram-hero-mascot img,
body.telegram-page .telegram-route-cards img,
body[data-theme="press"] .mascot-floating img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body[data-theme="press"] .press-mascot span,
body[data-theme="press"] .mascot-floating span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 5px 9px;
  color: #f8f4e8;
  background: rgba(11, 22, 37, 0.72);
  border: 1px solid rgba(104, 188, 255, 0.58);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

body[data-theme="press"] .press-date-card {
  background:
    linear-gradient(180deg, rgba(255, 249, 231, 0.96), rgba(241, 222, 183, 0.62)),
    url("assets/newsprint-panel.webp?v=20260525-media22") center / 760px auto repeat;
}

body[data-theme="press"] .press-date-card strong {
  font-family: "Radium FG", "Segoe UI", Arial, system-ui, sans-serif;
  color: #10100d;
}

body[data-theme="press"] .press-telegram-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 132px;
  overflow: hidden;
  color: #f8f4e8;
  text-decoration: none;
  background: #0a1424;
}

body[data-theme="press"] .press-telegram-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 12, 20, 0.88), rgba(7, 12, 20, 0.34));
}

body[data-theme="press"] .press-telegram-card > *:not(img) {
  position: relative;
  z-index: 1;
}

body[data-theme="press"] .press-telegram-card span {
  width: fit-content;
  background: #1d8eff;
}

body[data-theme="press"] .press-telegram-card strong,
body[data-theme="press"] .press-telegram-card small {
  color: #f8f4e8;
}

body[data-theme="press"] .press-telegram-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.78;
}

body[data-theme="press"] .telegram-nav-chip {
  border-color: rgba(55, 168, 255, 0.5);
  color: #f8fbff;
  background: #126fce;
}

body[data-theme="press"] .mascot-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(180px, 0.72fr));
  gap: 10px;
  margin: 0 0 14px;
}

body[data-theme="press"] .mascot-panel {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 3px double #1d140d;
  border-radius: 30px;
  color: #fff8e8;
  background: #0e1420;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(12, 9, 7, 0.18);
}

body[data-theme="press"] .mascot-panel::before,
body.telegram-page .telegram-hero::before,
body.telegram-page .telegram-hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgba(247, 249, 246, 0.9);
  box-shadow:
    18px -10px 0 2px rgba(247, 249, 246, 0.92),
    38px 4px 0 -3px rgba(247, 249, 246, 0.84);
}

body[data-theme="press"] .mascot-panel::before {
  right: 14px;
  top: 16px;
  width: 38px;
  height: 28px;
  opacity: 0.86;
}

body[data-theme="press"] .mascot-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(7, 10, 16, 0.86), rgba(7, 10, 16, 0.12));
}

body[data-theme="press"] .mascot-panel img {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(1.06);
}

body[data-theme="press"] .mascot-panel span,
body[data-theme="press"] .mascot-panel strong {
  position: relative;
  z-index: 3;
  display: block;
  margin-left: 16px;
  margin-right: 16px;
}

body[data-theme="press"] .mascot-panel span {
  margin-top: 122px;
  color: #8fd2ff;
  font-size: 0.78rem;
  font-weight: 900;
}

body[data-theme="press"] .mascot-panel strong {
  max-width: 18ch;
  margin-top: 4px;
  margin-bottom: 14px;
  color: #fff8e8;
  font-size: clamp(1.02rem, 2.1vw, 1.54rem);
  line-height: 1.08;
}

body[data-theme="press"] .mascot-panel-main {
  min-height: 250px;
}

body[data-theme="press"] .mascot-panel-main span {
  margin-top: 176px;
}

body[data-theme="press"] .mascot-floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: block;
  width: 138px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 3px solid #11100d;
  border-radius: 50%;
  background: #0a1424;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

body[data-theme="press"] .mascot-floating img {
  transform: scale(1.8);
}

body.telegram-page .telegram-shell {
  width: min(1280px, calc(100vw - 24px));
}

body.telegram-page .telegram-topbar {
  margin-top: 8px;
}

body.telegram-page .telegram-hero {
  position: relative;
  display: grid;
  min-height: min(780px, calc(100vh - 130px));
  margin: 12px 0 14px;
  overflow: hidden;
  border: 5px double #1d140d;
  border-radius: 36px;
  background:
    radial-gradient(circle at 54% 48%, rgba(55, 168, 255, 0.28), transparent 38%),
    linear-gradient(135deg, #090d14, #15100d 52%, #0a1424);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
}

body.telegram-page .telegram-route-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.telegram-page .telegram-hero-mascot {
  position: absolute;
  inset: 26px;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 44px;
  background: #0e1420;
}

body.telegram-page .telegram-hero-mascot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 10, 16, 0.18), rgba(6, 10, 16, 0.02) 45%, rgba(6, 10, 16, 0.64));
}

body.telegram-page .telegram-thoughts span {
  position: absolute;
  z-index: 3;
  width: 58px;
  height: 42px;
  border-radius: 999px;
  background: rgba(248, 250, 246, 0.92);
  box-shadow:
    20px -9px 0 4px rgba(248, 250, 246, 0.94),
    42px 2px 0 -3px rgba(248, 250, 246, 0.86),
    0 8px 22px rgba(0, 0, 0, 0.18);
}

body.telegram-page .telegram-thoughts span:nth-child(1) {
  left: 8%;
  top: 14%;
}

body.telegram-page .telegram-thoughts span:nth-child(2) {
  right: 18%;
  top: 9%;
}

body.telegram-page .telegram-thoughts span:nth-child(3) {
  right: 9%;
  top: 31%;
}

body.telegram-page .telegram-hero-copy {
  position: relative;
  z-index: 4;
  align-self: end;
  justify-self: end;
  width: min(470px, calc(100% - 32px));
  margin: 0 28px 28px 0;
  padding: 18px;
  border: 1px solid rgba(143, 210, 255, 0.48);
  border-radius: 24px;
  color: #f8fbff;
  background: rgba(7, 12, 20, 0.78);
  backdrop-filter: blur(14px);
}

body.telegram-page .telegram-hero-copy span {
  color: #8fd2ff;
  font-size: 0.82rem;
  font-weight: 900;
}

body.telegram-page .telegram-hero-copy h1 {
  margin: 6px 0 8px;
  color: #fff8e8;
  font-family: "Radium FG", "Noir Et Blanc", "Segoe UI", Arial, system-ui, sans-serif;
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

body.telegram-page .telegram-hero-copy p {
  margin: 0;
  color: rgba(248, 251, 255, 0.86);
}

body.telegram-page .telegram-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body.telegram-page .telegram-hero-actions a,
body.telegram-page .telegram-route-cards a {
  text-decoration: none;
}

body.telegram-page .telegram-hero-actions a {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding: 0 16px;
  border: 1px solid rgba(143, 210, 255, 0.56);
  border-radius: 999px;
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

body.telegram-page .telegram-hero-actions .telegram-primary {
  color: #07101b;
  background: #49b2ff;
}

body.telegram-page .telegram-route-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

body.telegram-page .telegram-route-cards a {
  position: relative;
  min-height: 214px;
  overflow: hidden;
  border: 3px double #1d140d;
  border-radius: 28px;
  color: #fff8e8;
  background: #0d1420;
}

body.telegram-page .telegram-route-cards a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 11, 18, 0.88), rgba(7, 11, 18, 0.06));
}

body.telegram-page .telegram-route-cards img {
  position: absolute;
  inset: 0;
  transform: scale(1.08);
}

body.telegram-page .telegram-route-cards span,
body.telegram-page .telegram-route-cards strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-inline: 14px;
}

body.telegram-page .telegram-route-cards span {
  margin-top: 142px;
  color: #8fd2ff;
  font-size: 0.78rem;
  font-weight: 900;
}

body.telegram-page .telegram-route-cards strong {
  max-width: 16ch;
  margin-top: 4px;
  color: #fff8e8;
  font-size: 1.1rem;
  line-height: 1.1;
}

@media (max-width: 920px) {
  body[data-theme="press"] .press-mascot {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(92vw, 560px);
    margin: 4px auto 0;
  }

  body[data-theme="press"] .mascot-strip,
  body.telegram-page .telegram-route-cards {
    grid-template-columns: 1fr 1fr;
  }

  body[data-theme="press"] .mascot-panel-main {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body[data-theme="press"] .press-front {
    min-height: auto;
    padding-bottom: 14px;
  }

  body[data-theme="press"] .press-mascot {
    width: calc(100vw - 22px);
    border-radius: 28px;
  }

  body[data-theme="press"] .mascot-strip,
  body.telegram-page .telegram-route-cards {
    grid-template-columns: 1fr;
  }

  body[data-theme="press"] .mascot-panel,
  body[data-theme="press"] .mascot-panel-main {
    min-height: 218px;
  }

  body[data-theme="press"] .mascot-panel span,
  body[data-theme="press"] .mascot-panel-main span {
    margin-top: 150px;
  }

  body[data-theme="press"] .mascot-floating {
    width: 94px;
    right: 10px;
    bottom: 10px;
  }

  body[data-theme="press"] .mascot-floating span {
    display: none;
  }

  body.telegram-page .telegram-shell {
    width: 100vw;
    padding-inline: 8px;
  }

  body.telegram-page .telegram-hero {
    min-height: 78vh;
    border-radius: 24px;
  }

  body.telegram-page .telegram-hero-mascot {
    inset: 10px;
    border-radius: 24px;
  }

  body.telegram-page .telegram-hero-copy {
    justify-self: center;
    width: calc(100% - 22px);
    margin: 0 0 12px;
    padding: 14px;
  }

  body.telegram-page .telegram-hero-copy h1 {
    font-size: clamp(1.9rem, 12vw, 3rem);
  }
}
