﻿:root {
  --ink: #07101f;
  --ink-2: #0c1a2d;
  --paper: #f9fbf7;
  --cream: #fff4de;
  --line: #d9dfd4;
  --muted: #657080;
  --red: #e63946;
  --teal: #00b3a4;
  --gold: #f6b73c;
  --blue: #2364aa;
  --green: #168c61;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 10px 16px;
  background: rgba(249, 251, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 900;
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.top-nav a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #253041;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  overflow: hidden;
  background: var(--ink);
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/tax-ratio.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: background-image 260ms ease, transform 800ms ease;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 31, 0.96) 0%, rgba(7, 16, 31, 0.8) 42%, rgba(7, 16, 31, 0.32) 100%),
    linear-gradient(0deg, rgba(7, 16, 31, 0.92) 0%, rgba(7, 16, 31, 0) 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(760px, 100%);
  min-height: calc(100svh - 68px);
  padding: 96px 18px 34px;
}

.kicker {
  width: max-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 7px 10px;
  background: var(--gold);
  color: #1d1300;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(38px, 12vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 520px;
  margin: 16px 0 0;
  color: #dce6ef;
  font-size: 16px;
}

.hero-data {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-data span {
  color: var(--gold);
  font-size: 42px;
  line-height: 0.86;
  font-weight: 900;
}

.hero-data small {
  max-width: 180px;
  color: #cad5df;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--ink);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
}

.hero-controls {
  display: flex;
  gap: 8px;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.hero-index {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 6px 9px;
  background: rgba(7, 16, 31, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #dce6ef;
  font-size: 12px;
  font-weight: 800;
}

.ticker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}

.ticker article {
  padding: 17px 18px;
  background: var(--cream);
}

.ticker span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.ticker p {
  margin: 5px 0 0;
  color: #4e5c6c;
  font-size: 14px;
}

.section-head {
  padding: 34px 18px 18px;
}

.section-head p {
  margin: 0 0 5px;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.section-head h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(28px, 8vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.story-grid {
  display: grid;
  gap: 14px;
  padding: 0 14px 28px;
}

.story-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 156px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.story-card img {
  height: 100%;
  min-height: 156px;
  object-fit: cover;
}

.story-card > div {
  min-width: 0;
  padding: 13px;
}

.category {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ekonomi { background: var(--teal); }
.politik { background: var(--red); }
.sosial { background: var(--gold); color: #1d1300; }
.pendidikan { background: var(--blue); }
.umum { background: var(--green); }
.olahraga { background: var(--ink); }
.hukum { background: #7c3aed; }

.story-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.06;
  letter-spacing: 0;
}

.story-card p {
  margin: 8px 0 0;
  color: #536172;
  font-size: 14px;
}

.feature-card {
  grid-template-columns: 1fr;
}

.feature-card img {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.feature-card h3 {
  font-size: 26px;
}

.feature-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 0;
}

.feature-card dl div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.feature-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-card dd {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 900;
}

.split-section {
  display: grid;
  gap: 0;
  background: var(--ink);
  color: #ffffff;
}

.data-panel {
  padding: 34px 18px;
}

.data-panel p {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.data-panel h2 {
  max-width: 560px;
  margin: 0 0 20px;
  font-size: clamp(32px, 9vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.data-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-panel li {
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #dce6ef;
}

.visual-panel img {
  height: 100%;
  max-height: 760px;
  object-fit: cover;
  object-position: center top;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 18px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.site-footer span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.article-page {
  background: #ffffff;
}

.article-hero {
  display: grid;
  gap: 0;
  background: var(--ink);
  color: #c8c2bc;
}

.article-hero-copy {
  padding: 30px 18px 24px;
}

.article-hero h1 {
  max-width: 100%;
  margin: 8px 0 0;
  font-size: clamp(21px, 6vw, 41px);
  line-height: 1.1;
  letter-spacing: 0;
  color: #e6e1da;
}

.article-hero-copy > p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #8a98a6;
  font-size: clamp(8px, 2.2vw, 9px);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.byline span {
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #6b7b8a;
  font-size: 10px;
  font-weight: 800;
}

.article-hero-visual {
  margin: 0;
}

.article-hero-visual img {
  max-height: 720px;
  object-fit: cover;
  object-position: center top;
}

.article-hero-visual figcaption {
  padding: 10px 18px 14px;
  background: #050b15;
  color: #aebdca;
  font-size: 12px;
}

.article-layout {
  display: grid;
  gap: 26px;
  padding: 26px 18px 36px;
}

.article-body {
  min-width: 0;
}

.article-body p {
  margin: 0 0 18px;
  color: #273447;
  font-size: 17px;
}

.article-body .lead {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.34;
  font-weight: 700;
}

.article-section {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-section h2,
.source-rail h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}

.data-facts {
  display: grid;
  gap: 10px;
}

.data-facts article {
  padding: 16px;
  background: var(--cream);
  border: 1px solid #eddcb9;
  border-radius: 8px;
}

.data-facts span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-facts strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.data-facts p {
  margin: 6px 0 0;
  color: #536172;
  font-size: 14px;
}

/* Kartu SVG (infografis) sudah punya background/border sendiri di dalam
   viewBox -- lepas padding/border duplikat dari wrapper .data-facts article. */
.data-facts article.dv-card {
  padding: 0;
  background: none;
  border: none;
  overflow: hidden;
  border-radius: 8px;
}

.data-facts article.dv-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.article-chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 720px;
}

.slide-strip {
  display: grid;
  grid-auto-columns: minmax(220px, 78vw);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.slide-strip img {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  scroll-snap-align: start;
}

.source-rail {
  align-self: start;
  padding: 18px;
  background: #f4f7f0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.source-rail dl {
  margin: 0 0 24px;
}

.source-rail dl div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.source-rail dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-rail dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.source-rail ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-rail li {
  padding-left: 12px;
  border-left: 4px solid var(--teal);
  color: #344154;
  font-size: 14px;
  font-weight: 700;
}

.related {
  padding-bottom: 36px;
  background: var(--paper);
}

.story-grid.compact {
  padding-top: 0;
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100svh;
  padding: 28px;
  background: var(--ink);
  color: #ffffff;
}

.not-found .brand {
  color: #ffffff;
}

.not-found .brand-mark {
  background: var(--cream);
  color: var(--ink);
}

.not-found .brand small,
.not-found p {
  color: #cfd9e5;
}

.not-found h1 {
  margin: 34px 0 0;
  color: var(--gold);
  font-size: clamp(86px, 26vw, 180px);
  line-height: 0.85;
  letter-spacing: 0;
}

.not-found p {
  max-width: 360px;
  margin: 16px 0 24px;
  font-size: 18px;
}

@media (min-width: 720px) {
  .site-header {
    padding-inline: 26px;
  }

  .hero-content {
    padding-inline: 34px;
  }

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

  .section-head {
    padding-inline: 28px;
  }

  .story-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-inline: 28px;
  }

  .feature-card {
    grid-column: span 2;
    grid-template-columns: 46% 1fr;
  }

  .feature-card img {
    height: 100%;
    aspect-ratio: auto;
  }

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

  .data-panel {
    padding: 54px 34px;
  }

  .article-hero {
    grid-template-columns: 1fr 44%;
    min-height: 640px;
  }

  .article-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 54px 34px;
  }

  .article-hero-visual img {
    width: 100%;
    height: 100%;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    padding: 38px 28px 46px;
  }

  .data-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .slide-strip {
    grid-auto-columns: 240px;
  }
}

@media (min-width: 1080px) {
  .site-header {
    padding-inline: 42px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    min-height: 760px;
    padding-inline: 52px;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .story-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
    padding-inline: 42px;
  }

  .feature-card {
    grid-row: span 2;
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .story-card {
    min-height: 210px;
  }

  .section-head {
    padding-inline: 42px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 780px) 330px;
    justify-content: center;
    gap: 42px;
    padding-inline: 42px;
  }

  .article-hero-copy {
    padding-inline: 52px;
  }
}

