:root {
  --primary: #0F1A2C;
  --accent: #D4A84B;
  --accent-2: #3ECF9E;
  --bg: #F8F9FB;
  --ink: #1E2733;
  --ink-2: #5A6C7E;
  --card: rgba(255, 255, 255, 0.92);
  --line: rgba(90, 108, 126, 0.22);
  --line-soft: rgba(90, 108, 126, 0.12);
  --primary-08: rgba(15, 26, 44, 0.08);
  --accent-12: rgba(212, 168, 75, 0.12);
  --accent2-14: rgba(62, 207, 158, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 18px; }

/* ---------- header ---------- */
.site-head {
  background: var(--primary);
  color: #F8F9FB;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(212, 168, 75, 0.35);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F8F9FB;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  letter-spacing: 0.4px;
}
.brand:hover { color: var(--accent); }
.brand svg { flex: 0 0 auto; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(248, 249, 251, 0.82);
  font-size: 14.5px;
  padding: 8px 11px;
  border-radius: 6px;
}
.main-nav a:hover { color: var(--accent); background: rgba(248, 249, 251, 0.07); }
.main-nav a.active { color: var(--accent); }

.nav-toggle {
  margin-left: auto;
  display: none;
  background: transparent;
  border: 1px solid rgba(248, 249, 251, 0.35);
  color: #F8F9FB;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero { padding: 34px 0 6px; }
.hero .kicker {
  color: var(--accent);
  font-size: 12.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 700;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.22;
  margin: 8px 0 8px;
  color: var(--primary);
  max-width: 720px;
}
.hero p.sub { color: var(--ink-2); margin: 0; max-width: 660px; }

.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cat-chips a {
  font-size: 13px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--card);
}
.cat-chips a:hover { border-color: var(--accent); color: var(--primary); }

.hero-cover { margin: 22px 0 0; }
.hero-cover img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}

/* ---------- ad slots ---------- */
.adbox {
  width: 100%;
  height: auto;
  text-align: center;
}
.adbox .ad-note {
  display: none;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--ink-2);
  text-transform: lowercase;
}
.adbox.is-empty .ad-note { display: block; }

/* Strict contract mode (default): unfilled boxes collapse, nothing gray shows */
.adbox.is-empty { display: none; }

/* Demo mode: this is the no-ad placeholder labeled "advertisement". It fills
   the column width on both PC and mobile and keeps a 250px minimum height, so
   the reserved position reads clearly before real ads are connected. It only
   applies while the box is .is-empty: once the platform injects real ad code
   the box loses .is-empty and the real creative is shown instead. */
html.ad-demo .adbox.is-empty { display: block; }
html.ad-demo .adbox.is-empty .ad-slot {
  display: block;
  width: 100%;
  min-height: 250px;
  margin: 6px auto 4px;
  border: 1px dashed rgba(90, 108, 126, 0.55);
  border-radius: 6px;
  background: rgba(90, 108, 126, 0.06);
}

.ad-under-hero { margin: 26px 0 80px; }
.ad-under-hero + .ad-spacing { margin-top: 80px; } /* 80 + 80 = 160px gap between home1 and home2 */
.ad-spacing { margin: 80px 0; }

.ad-inline { margin: 75px 0; } /* 75 + 75 = 150px gap between detail ad positions */

/* ---------- anchor bar ---------- */
#adAnchor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  justify-content: center;
  background: rgba(15, 26, 44, 0.96);
  border-top: 1px solid rgba(212, 168, 75, 0.5);
  padding: 4px 8px;
}
#adAnchor.is-open { display: flex; }
#adAnchor .ad-note { color: rgba(248, 249, 251, 0.65); display: block; font-size: 10px; letter-spacing: 1.4px; }
#adAnchor .ad-anchor-inner { width: 320px; max-width: 100%; text-align: center; }
#adAnchor .ad-slot { width: 100%; max-width: 320px; aspect-ratio: 320 / 50; height: auto; }
html.ad-demo #adAnchor .ad-slot.is-empty-slot {
  border: 1px dashed rgba(248, 249, 251, 0.4);
  border-radius: 4px;
  color: rgba(248, 249, 251, 0.8);
  font-size: 12px;
  line-height: 48px;
}

/* ---------- interstitial ---------- */
#adInterstitial {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 26, 44, 0.82);
  padding: 24px; /* gutter so the panel never sits flush against the screen edges */
}
#adInterstitial.is-open { display: flex; }
.inter-panel {
  background: var(--card);
  border-radius: 12px;
  border-top: 3px solid var(--accent);
  padding: 22px 22px 18px;
  width: 340px;
  /* Cap the width (PC): even if real ad code is wider than the base 340px,
     the panel stays a centered card with clear left/right margins. On small
     screens it shrinks to the viewport minus the 24px overlay gutter. */
  max-width: min(380px, 100%);
  text-align: center;
  box-shadow: 0 18px 50px rgba(15, 26, 44, 0.35);
}
.inter-panel .inter-label {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--ink-2);
  text-transform: lowercase;
  margin-bottom: 8px;
}
.inter-panel .ad-slot { width: 100%; min-height: 250px; margin: 0 auto; }
html.ad-demo .inter-panel .ad-slot.is-empty-slot {
  border: 1px dashed rgba(90, 108, 126, 0.55);
  border-radius: 6px;
  background: rgba(90, 108, 126, 0.06);
}
.inter-continue {
  margin-top: 16px;
  background: var(--primary);
  color: #F8F9FB;
  border: 0;
  border-radius: 8px;
  padding: 10px 26px;
  font-size: 15px;
  cursor: pointer;
}
.inter-continue:hover { background: var(--accent); color: var(--primary); }

/* ---------- cards / stream ---------- */
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  color: var(--primary);
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-12);
}
.section-title span { color: var(--accent); }

.stream {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 18px 0 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 10px 26px rgba(15, 26, 44, 0.1); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--primary-08); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .tag {
  align-self: flex-start;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent-12);
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 700;
}
.card h3 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18.5px;
  line-height: 1.3;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card time { color: var(--ink-2); font-size: 12.5px; }
.card p.dek { color: var(--ink-2); font-size: 14px; margin: 0; }

/* ---------- home portal framework (mirrors the reference site) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-main { padding: 20px 0 6px; }

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.layout .main-col { min-width: 0; }
.layout .sidebar { min-width: 0; }

@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .layout .sidebar { position: sticky; top: 76px; align-self: start; }
}

.home-section { margin: 0 0 28px; }
.home-section .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--primary);
}
.home-section .section-title::before {
  content: "";
  width: 3px;
  height: 1.15em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.home-section .section-title span { color: var(--accent); }

/* Home ad slots, mobile-first: the three ads sit roughly one phone screen
   (iPhone-16 viewport ≈ 852px) apart so they land on the first three content
   screens — home1 under the Editor's picks title (screen 1), home2 and home3
   dropped by app.js as anchors inside the Editor's picks block: after the lead
   feature (screen 2) and after the 2nd pick card (screen 3). Slot names and the
   contract are unchanged. */
.ad-slot-row { margin: 26px 0; }

/* editor's picks */
.pickup { display: grid; gap: 16px; }
.pickup .lead {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  color: inherit;
}
.pickup .lead img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.pickup .lead .cap { display: block; padding: 14px 16px 16px; }
.pickup .lead h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.28;
  margin: 8px 0 6px;
  color: var(--ink);
}
.pickup .lead:hover h3 { color: var(--accent); }
.pickup .lead .dek { display: block; color: var(--ink-2); font-size: 14.5px; }
.pickup .picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; grid-auto-flow: dense; }
.pickup .pick {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  color: inherit;
}
.pickup .pick img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pickup .pick .pick-body { display: block; padding: 10px 12px 12px; }
.pickup .pick h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15.5px;
  line-height: 1.32;
  margin: 6px 0 0;
  color: var(--ink);
}
.pickup .pick:hover h3 { color: var(--accent); }

.pickup .tag, .news-list .tag, .rank-txt .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent-12);
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 700;
}

/* latest news list */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.news-list li {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
}
.news-list li a { display: block; color: inherit; }
.news-list img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.news-list .li-body { display: block; padding: 12px 14px 14px; }
.news-list h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.3;
  margin: 8px 0 6px;
  color: var(--ink);
}
.news-list li:hover h3 { color: var(--accent); }
.news-list .dek { display: block; color: var(--ink-2); font-size: 13.5px; }
.news-list time { display: block; margin-top: 8px; color: var(--ink-2); font-size: 12.5px; }
/* home in-page ad anchors (dropped inside .pickup / .picks): the frame spans
   the full row and shows no card chrome around the ad itself */
.ad-row { grid-column: 1 / -1; }

/* topics grid */
.subgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) {
  .subgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.topic-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 18px;
  color: inherit;
}
.topic-card:hover { border-color: var(--accent); }
.topic-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--primary);
}
.topic-card p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* sidebar rank box */
.rank-box {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
}
.rank-title {
  margin: 0;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--primary);
  background: var(--accent-12);
  border-bottom: 1px solid var(--line-soft);
}
.rank-list { list-style: none; margin: 0; padding: 8px 0; }
.rank-list li a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px;
  color: inherit;
}
.rank-list li a:hover { background: var(--primary-08); }
.rank-num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-list li:nth-child(-n + 3) .rank-num { background: var(--accent); color: #F8F9FB; }
.rank-txt { font-size: 14px; line-height: 1.35; color: var(--ink); }
.rank-txt small { display: block; margin-top: 3px; color: var(--ink-2); font-size: 12px; }

/* ---------- detail page ---------- */
.article-head { padding: 30px 0 0; }
.article-head .crumb { color: var(--ink-2); font-size: 13px; }
.article-head .crumb a { color: var(--ink-2); }
.article-head .crumb a:hover { color: var(--accent); }
.article-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.25;
  color: var(--primary);
  margin: 10px 0 6px;
}
.article-head .meta { color: var(--ink-2); font-size: 13.5px; }
.article-head .ad-under-title { margin: 22px 0 26px; }

.article-body { font-size: 17px; }
.article-body p { margin: 0 0 20px; }
.article-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  color: var(--primary);
  margin: 30px 0 10px;
}
.article-body figure { margin: 24px 0; }
.article-body figure img { border-radius: 8px; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.article-body figcaption { color: var(--ink-2); font-size: 13px; margin-top: 8px; }
.article-body .continue-wrap { text-align: center; margin: 26px 0; }
.continue-btn {
  background: var(--accent-12);
  color: var(--primary);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 26px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.continue-btn:hover { background: var(--accent); }

.article-collapsed .article-rest { display: none; }
.article-collapsed .continue-wrap { display: block; }
.continue-wrap { display: block; }

.related { margin: 14px 0 40px; }

/* ---------- category page ---------- */
.list-head { padding: 30px 0 0; }
.list-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  color: var(--primary);
  margin: 6px 0 4px;
}
.list-head p { color: var(--ink-2); margin: 0 0 4px; }
.list-ad { margin: 24px 0 8px; }

/* ---------- static pages ---------- */
/* horizontal inset restored: the shorthand below otherwise zeroes out the
   18px gutter that .wrap provides, leaving the text flush against the column
   edges (and the viewport on narrow screens). box-sizing:border-box keeps the
   760px reading column intact. */
.static-page { padding: 30px 24px 40px; max-width: 760px; }
.static-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  color: var(--primary);
  margin: 6px 0 14px;
}
.static-page h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  color: var(--primary);
  margin: 24px 0 8px;
}
.static-page p, .static-page li { color: var(--ink); font-size: 15.5px; }
.static-page ul { padding-left: 22px; }
.static-page a { color: var(--primary); text-decoration: underline; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--primary);
  color: rgba(248, 249, 251, 0.78);
  margin-top: 30px;
  padding: 30px 0 90px;
  font-size: 13.5px;
}
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; }
.site-foot h4 { color: #F8F9FB; margin: 0 0 8px; font-size: 14.5px; letter-spacing: 0.5px; }
.site-foot a { color: rgba(248, 249, 251, 0.78); display: block; padding: 2px 0; }
.site-foot a:hover { color: var(--accent); }
.site-foot .disclosure {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(248, 249, 251, 0.15);
  color: rgba(248, 249, 251, 0.6);
  line-height: 1.6;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px 16px;
    border-top: 1px solid rgba(248, 249, 251, 0.12);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; font-size: 16px; }
  .nav-toggle { display: block; }
  .stream { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: 1fr; }
  .pickup .picks { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .article-head h1 { font-size: 24px; }
  .ad-inline { margin: 56px 0; }
  .ad-under-hero { margin: 20px 0 56px; }
  .ad-spacing { margin: 56px 0; }
}
