/* =========================================================
   infoberita.online — Stylesheet
   ========================================================= */
:root {
  --brand: #d6282b;
  --brand-dark: #a91d20;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #f0f0ee;
  --text: #16181d;
  --text-2: #4a4f59;
  --muted: #7b808a;
  --line: #e3e3e0;
  --ok: #16a34a;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --radius: 10px;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #171a20; --surface-2: #1f232b; --text: #eceef2; --text-2: #b7bcc6;
    --muted: #8a909b; --line: #2a2f38; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #171a20; --surface-2: #1f232b; --text: #eceef2; --text-2: #b7bcc6;
  --muted: #8a909b; --line: #2a2f38; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar { background: #111317; color: #c9ccd2; font-size: 12.5px; }
.topbar__inner { display: flex; align-items: center; gap: 20px; height: 34px; }
.topbar__ai { display: inline-flex; align-items: center; gap: 7px; color: #8ee0a8; }
.topbar__links { margin-left: auto; display: flex; gap: 18px; }
.topbar__links a:hover { color: #fff; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; position: relative; flex: none; }
.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; animation: pulse 1.6s infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Header ---------- */
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header__inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: -.5px;
}
.logo__text { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.logo__text b { color: var(--brand); }
.logo__tagline { color: var(--muted); font-size: 13px; border-left: 1px solid var(--line); padding-left: 16px; }
.search { margin-left: auto; min-width: 0; display: flex; align-items: center; background: var(--surface-2); border-radius: 999px; padding: 0 6px 0 16px; width: 280px; }
.search input { border: 0; background: transparent; outline: 0; padding: 9px 0; flex: 1; min-width: 0; }
.search button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; display: grid; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text-2); flex: none; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.menu-btn { display: none; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; }
}

.nav-wrap { border-top: 1px solid var(--line); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 12px 14px; font-weight: 600; font-size: 14.5px; white-space: nowrap; color: var(--text-2);
  border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); border-bottom-color: var(--cat, var(--brand)); }
.nav__ai { margin-left: auto; color: var(--brand) !important; }

/* ---------- Ticker ---------- */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: center; gap: 14px; height: 42px; }
.ticker__label { background: var(--brand); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .8px; padding: 4px 10px; border-radius: 4px; flex: none; }
.ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: inline-flex; gap: 18px; white-space: nowrap; animation: ticker 90s linear infinite; font-size: 14px; }
.ticker__track:hover { animation-play-state: paused; }
.ticker__track a:hover { text-decoration: underline; }
.ticker__sep { color: var(--muted); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Iklan ---------- */
.ad { margin: 20px auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ad__label { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.ad__box { width: min(100%, var(--dw)); height: var(--dh); position: relative; overflow: hidden; border-radius: 10px; container-type: size; }
.ad__box > a, .ad__box > iframe, .ad__box img { width: 100%; height: 100%; object-fit: cover; }
.m-only { display: none; }
.ad--mobile-only { display: none; }
.sidebar .ad { margin: 0; width: 100%; }

.feed .ad { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: stretch; }
.feed .ad__label { align-self: flex-start; }

/* ---------- Kartu & thumbnail ---------- */
.thumb { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, var(--cat, var(--brand)), color-mix(in srgb, var(--cat, var(--brand)) 35%, #000)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a:hover .thumb img { transform: scale(1.04); }
.badge-live { position: absolute; top: 8px; left: 8px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 4px; letter-spacing: .6px; }

.cat-tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--cat); margin-bottom: 6px; }
.cat-tag--solid { background: var(--cat); color: #fff; padding: 4px 9px; border-radius: 4px; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.meta__agent { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-2); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.avatar {
  --size: 44px; width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; background: var(--ag); color: #fff; font-weight: 800;
  font-size: calc(var(--size) * .36); letter-spacing: -.3px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.avatar--xs { --size: 20px; } .avatar--sm { --size: 34px; } .avatar--lg { --size: 56px; }

/* Headline */
.headline { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; margin-top: 24px; }
.card-hero__link { display: block; position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; }
.thumb--hero { aspect-ratio: 16/10; border-radius: var(--radius); }
.card-hero__body { position: absolute; inset: auto 0 0 0; padding: 28px; background: linear-gradient(transparent, rgba(0,0,0,.85) 45%); }
.card-hero__title { font-family: var(--serif); font-size: clamp(22px, 3vw, 34px); margin: 10px 0 8px; }
.card-hero__excerpt { margin: 0; color: rgba(255,255,255,.85); max-width: 640px; }
.card-hero .meta, .card-hero .meta__agent { color: rgba(255,255,255,.8); }
.headline__side { display: flex; flex-direction: column; gap: 16px; }
.card-stack { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.card-stack:last-child { border-bottom: 0; padding-bottom: 0; }
.card-stack__title { font-family: var(--serif); font-size: 16.5px; }
.card-stack__title a:hover, .card-row__title a:hover, .card-grid__title a:hover { color: var(--brand); }

/* Layout dua kolom */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; margin-top: 16px; margin-bottom: 40px; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sticky-ad { position: sticky; top: 130px; }

.section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--text); margin: 24px 0 8px; padding-bottom: 8px; }
.section-head h2 { font-size: 20px; font-weight: 800; position: relative; padding-left: 12px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--cat, var(--brand)); }
.section-head__more { font-size: 13.5px; font-weight: 600; color: var(--cat, var(--brand)); }

.card-row { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.card-row.is-new { animation: flash 2.5s ease-out; }
@keyframes flash { from { background: color-mix(in srgb, var(--brand) 12%, transparent); } to { background: transparent; } }
.card-row__title { font-family: var(--serif); font-size: 21px; }
.card-row__excerpt { margin: 8px 0 0; color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.new-pill {
  position: sticky; top: 140px; z-index: 5; display: block; margin: 8px auto; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px; padding: 9px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(214,40,43,.35);
}
.new-pill[hidden] { display: none; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 14px; }
.card-grid__title { font-family: var(--serif); font-size: 16px; margin-top: 10px; }
.cat-block { margin-top: 12px; }

/* ---------- Widget ---------- */
.widget, .newsroom { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.widget__title { font-size: 16px; font-weight: 800; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.popular { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.popular li { display: flex; gap: 12px; }
.popular__num { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--line); line-height: 1; min-width: 22px; }
.popular a { font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.35; }
.popular a:hover { color: var(--brand); }
.popular small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.tag:hover { background: var(--brand); color: #fff; }

/* Ruang Redaksi AI */
.newsroom { background: linear-gradient(180deg, color-mix(in srgb, var(--ok) 6%, var(--surface)), var(--surface) 40%); }
.newsroom__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.newsroom__head h3 { font-size: 16px; font-weight: 800; }
.newsroom__status { margin-left: auto; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--ok); padding: 2px 7px; border-radius: 4px; letter-spacing: .6px; }
.task-idle, .task-active { display: flex; gap: 10px; align-items: center; }
.task-idle span, .task-active__topic { display: block; font-size: 13px; color: var(--text-2); }
.task-active__topic { font-family: var(--serif); font-weight: 600; color: var(--text); }
.task-idle strong, .task-active strong { font-size: 13px; }
.stages { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.stages li { display: flex; align-items: center; gap: 8px; }
.stages li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.stages li.done { color: var(--text-2); }
.stages li.done::before { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 2px var(--surface); }
.stages li.active { color: var(--text); font-weight: 600; }
.stages li.active::before { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.newsroom__log { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); font-size: 12.5px; display: flex; flex-direction: column; gap: 7px; }
.log { color: var(--text-2); animation: fadein .4s; }
.log time { font-family: ui-monospace, monospace; color: var(--muted); font-size: 11px; margin-right: 6px; }
.log--publish { color: var(--text); }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } }
.newsroom__more { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--brand); }
.newsroom--big { position: sticky; top: 130px; }
.newsroom--big .newsroom__log { max-height: 420px; overflow: auto; }

/* ---------- Halaman ---------- */
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); margin: 6px 0 8px; }
.page-head[style] h1 { color: var(--cat); }
.page-head p { color: var(--text-2); margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-head--center { text-align: center; max-width: 760px; margin: 0 auto; }
.page-head--center p { display: block; font-size: 17px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.empty { color: var(--muted); padding: 30px 0; }

/* Artikel */
.article { padding-top: 20px; }
.article .crumbs { margin-bottom: 14px; }
.article__title { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); letter-spacing: -.3px; margin: 4px 0 12px; }
.article__excerpt { font-size: 19px; color: var(--text-2); margin: 0 0 20px; }
.byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline__info { display: flex; flex-direction: column; font-size: 13px; color: var(--text-2); }
.byline__info strong { font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.byline__date { color: var(--muted); }
.ai-chip { font-size: 10px; font-weight: 800; background: var(--text); color: var(--surface); padding: 2px 6px; border-radius: 4px; }
.byline__verify { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--ok); font-size: 12px; background: color-mix(in srgb, var(--ok) 10%, transparent); padding: 8px 12px; border-radius: 8px; line-height: 1.3; }
.article__figure { margin: 22px 0; }
.article__figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.article__body { font-family: var(--serif); font-size: 19px; line-height: 1.75; }
.article__body p { margin: 0 0 1.2em; }
.article__body .ad { font-family: var(--sans); margin: 28px auto; }
.lede strong { color: var(--brand); }
blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand); }
blockquote p { font-size: 23px; font-style: italic; margin: 0 0 6px !important; }
blockquote cite { font-family: var(--sans); font-size: 14px; color: var(--muted); font-style: normal; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 28px 0 16px; font-size: 14px; font-weight: 600; }
.share__btn { border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; }
.share__btn:hover { border-color: var(--text); }
.share__btn--wa { background: #25d366; color: #fff; border-color: #25d366; }
.share__btn--x { background: #000; color: #fff; border-color: #000; }
.share__btn--fb { background: #1877f2; color: #fff; border-color: #1877f2; }
.transparency { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--radius); padding: 20px 22px; }
.transparency h3 { font-size: 17px; margin-bottom: 10px; }
.transparency h4 { font-size: 14px; margin: 14px 0 6px; }
.pipeline, .sources { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.disclaimer { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.disclaimer a { color: var(--brand); font-weight: 600; }
.related { margin-top: 32px; }

/* Redaksi */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0; }
.stats-row div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stats-row b { display: block; font-family: var(--serif); font-size: 32px; color: var(--brand); }
.stats-row span { font-size: 13.5px; color: var(--text-2); }
.redaksi-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.agents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.agent-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ag); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.agent-card__top { display: flex; gap: 12px; align-items: center; }
.agent-card h3 { font-size: 18px; letter-spacing: .5px; }
.agent-card__top span { font-size: 13px; color: var(--text-2); }
.agent-card p { margin: 0; font-size: 14px; color: var(--text-2); }
.agent-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 0; }
.agent-card dl div { background: var(--surface-2); border-radius: 6px; padding: 8px; text-align: center; }
.agent-card dt { font-size: 11px; color: var(--muted); }
.agent-card dd { margin: 0; font-weight: 700; font-size: 14px; }
.agent-card__model { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--muted); }
.flow__steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
.flow__steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.flow__steps b { color: var(--brand); }
.flow__steps span { font-size: 13.5px; color: var(--text-2); }
.ethics { margin-bottom: 48px; }
.ethics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.ethics__grid div { padding: 16px; border-left: 3px solid var(--ok); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.ethics__grid h4 { margin-bottom: 6px; }
.ethics__grid p { margin: 0; font-size: 14px; color: var(--text-2); }

/* Pencarian */
.search-big { display: flex; gap: 8px; margin: 14px 0; }
.search-big input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.btn, .search-big button { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 12px 22px; font-weight: 700; cursor: pointer; display: inline-block; }
.btn:hover, .search-big button:hover { background: var(--brand-dark); }

/* Iklan page */
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rate { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.rate th, .rate td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rate th { background: var(--surface-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-2); }
.rate tr:last-child td { border-bottom: 0; }
.rate code { font-size: 12.5px; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.contact { margin-bottom: 48px; }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; max-width: 760px; }
.contact__form input, .contact__form select, .contact__form textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.contact__form select, .contact__form textarea { grid-column: 1 / -1; }
.contact__form button { justify-self: start; }

.notfound { text-align: center; padding: 80px 16px; }
.notfound h1 { font-family: var(--serif); font-size: 96px; color: var(--brand); }
.notfound p { color: var(--text-2); margin-bottom: 20px; }

/* ---------- Footer ---------- */
.footer { background: #111317; color: #b7bcc6; margin-top: 24px; padding-top: 48px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; }
.logo--footer .logo__text { color: #fff; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .8px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: #fff; }
.newsletter { display: flex; gap: 6px; }
.newsletter input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 6px; border: 1px solid #2a2f38; background: #1a1d23; color: #fff; }
.newsletter button { background: var(--brand); color: #fff; border: 0; border-radius: 6px; padding: 0 16px; font-weight: 700; cursor: pointer; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #2a2f38; margin-top: 36px; padding: 18px 16px; font-size: 12.5px; color: #8a909b; }

/* ---------- Toast & anchor ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.18); border-radius: 10px; padding: 12px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; transform: translateY(20px); opacity: 0; transition: .35s; }
.toast.show { transform: none; opacity: 1; }
.toast a:hover { color: var(--brand); }
.toast__tag { align-self: flex-start; color: #fff; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 2px 7px; border-radius: 4px; }
.anchor-ad { display: none; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .logo__tagline { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .redaksi-grid { grid-template-columns: 1fr; }
  .newsroom--big { position: static; }
  .flow__steps { grid-template-columns: repeat(3, 1fr); }
  .ethics__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .headline { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sticky-ad { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .card-row { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
  .topbar__links, .topbar [data-today] { display: none; }
  .header__inner { height: 60px; gap: 8px; }
  .header__inner > * { flex-shrink: 0; }
  .header__inner > .search { flex-shrink: 1; }
  .menu-btn { display: grid; }
  .logo__mark { width: 32px; height: 32px; font-size: 14px; }
  .logo__text { font-size: 23px; }
  .search { width: auto; flex: 1 1 0; max-width: 260px; padding-left: 12px; }
  .icon-btn { width: 38px; height: 38px; }
  .nav-wrap.open .nav { flex-wrap: wrap; }
  .nav-wrap.open .nav a { flex: 1 1 45%; border-bottom: 1px solid var(--line); }
  .nav__ai { margin-left: 0; }

  .ad__box { width: min(100%, var(--mw)); height: var(--mh); }
  .d-only { display: none; } .m-only { display: inline; }
  .ad--mobile-only { display: flex; }
  .anchor-ad { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .anchor-ad .ad { margin: 4px auto; }
  .anchor-ad .ad__label { display: none; }
  .anchor-ad__close { position: absolute; top: -26px; right: 8px; width: 26px; height: 26px; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); border-radius: 6px 6px 0 0; cursor: pointer; font-size: 18px; line-height: 1; }
  body:has(.anchor-ad) { padding-bottom: 60px; }
  .toasts { left: 16px; right: 16px; bottom: 76px; max-width: none; }

  .headline { margin-top: 16px; }
  .card-hero__body { position: static; background: none; color: var(--text); padding: 14px 0 0; }
  .card-hero__link { color: var(--text); overflow: visible; }
  .card-hero__excerpt { color: var(--text-2); }
  .card-hero .meta, .card-hero .meta__agent { color: var(--muted); }
  .card-stack { grid-template-columns: 110px 1fr; }
  .card-row { grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 0; }
  .card-row__title { font-size: 16.5px; }
  .card-row__excerpt { display: none; }
  .card-row .cat-tag { font-size: 11px; margin-bottom: 3px; }
            
  .article__body { font-size: 18px; }
  .article__excerpt { font-size: 17px; }
  .byline { flex-wrap: wrap; }
  .byline__verify { margin-left: 0; width: 100%; }
  blockquote p { font-size: 20px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .agents { grid-template-columns: 1fr; }
  .flow__steps { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .logo__text { display: none; }
  .search { max-width: none; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-grid__title { font-size: 14.5px; }
  .footer__grid { grid-template-columns: 1fr; }
  .ethics__grid { grid-template-columns: 1fr; }
  .stats-row b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.article__figure figcaption a, .sources a { color: var(--brand); }
.sources a:hover, .article__figure figcaption a:hover { text-decoration: underline; }

/* ---------- Video & media dalam artikel ---------- */
.badge-play { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; font-size: 13px; padding-left: 2px; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-file { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); background: #000; display: block; }
.article__inline { margin: 24px 0; }
.article__inline img { width: 100%; border-radius: var(--radius); }
.article__inline figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 6px; }
.article__body h2 { font-family: var(--serif); font-size: 24px; margin: 1.4em 0 .6em; }
.article__figure .ai-chip { margin-left: 4px; }
.logo__tld { font-family: var(--sans); font-size: .5em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 1px; }
.logo--footer .logo__tld { color: #8a909b; }

/* ---------- Revisi responsif ---------- */
/* Slot iklan pendek (≤ 70px, mis. 320×50 & 728×90): placeholder satu baris */
@container (max-height: 70px) {
        }
@container (max-height: 100px) and (min-height: 71px) {
    }

/* Tablet: headline penuh, 4 berita pendamping jadi grid 2 kolom */
@media (max-width: 900px) and (min-width: 601px) {
  .headline__side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .card-stack, .card-stack:last-child { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .thumb--hero { aspect-ratio: 16/9; }
}
@media (max-width: 900px) {
  .card-hero .thumb--hero { aspect-ratio: 16/9; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
  .sidebar .sticky-ad { grid-column: 1 / -1; }
}

/* HP */
@media (max-width: 600px) {
  .headline { gap: 16px; }
  .ad { margin: 14px auto; }
  .section-head { margin-top: 18px; }
  .section-head h2 { font-size: 18px; }
  .page-head { padding-top: 18px; }
  .card-hero__title { font-size: 22px; }
  .stats-row div { padding: 14px 10px; }
  .share__btn { padding: 7px 12px; }
  .transparency { padding: 16px; }
  .byline__verify { font-size: 12px; }
  .footer { padding-top: 32px; }
  .footer__grid { gap: 24px; }
}
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .card-row { grid-template-columns: 104px 1fr; gap: 12px; }
  .card-stack { grid-template-columns: 96px 1fr; gap: 12px; }
  .card-stack__title, .card-row__title { font-size: 15.5px; }
  .ticker__label { font-size: 11px; padding: 3px 8px; }
  .nav a { padding: 11px 11px; font-size: 14px; }
  .grid-4 { gap: 12px; }
}

/* =========================================================
   Slot Iklan Tersedia — kartu yang menyesuaikan bentuk slot
   (.ad__box adalah container query: ukuran = ukuran slot)
   ========================================================= */
.ad__label { font-weight: 600; }
.ad-slot {
  --tint: color-mix(in srgb, var(--brand) 7%, var(--surface));
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; height: 100%; padding: 16px; text-align: center; color: var(--text);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent) 0, transparent 55%),
    linear-gradient(160deg, var(--tint), var(--surface));
  border: 1px dashed color-mix(in srgb, var(--brand) 38%, var(--line));
  border-radius: 10px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ad-slot:hover { border-style: solid; border-color: var(--brand); box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 16%, transparent); }
.ad-slot__badge {
  position: absolute; top: 8px; right: 8px; font-size: 9.5px; font-weight: 800; letter-spacing: .8px;
  color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 4px; padding: 1px 5px;
}
.ad-slot__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none;
  font-size: 22px; color: #fff; background: var(--brand); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 35%, transparent);
}
.ad-slot__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ad-slot__title { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.ad-slot__meta { font-size: 12.5px; color: var(--text-2); }
.ad-slot__perks { display: none; font-size: 12px; color: var(--muted); }
.ad-slot__cta {
  display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; color: #fff; background: var(--brand); padding: 7px 14px; border-radius: 999px;
}
.ad-slot__cta::after { content: '→'; }
.ad-slot:hover .ad-slot__cta { background: var(--brand-dark); }
.ad-slot__thumb, .ad-slot__eyebrow { display: none; }

/* Slot melebar & pendek (leaderboard 970×90, 728×90, 320×100): satu baris */
@container (max-height: 130px) {
  .ad-slot { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 10px 18px; }
  .ad-slot__text { flex: 1; }
  .ad-slot__icon { width: 40px; height: 40px; font-size: 19px; }
  .ad-slot__badge { top: 50%; transform: translateY(-50%); right: auto; left: 8px; display: none; }
  .ad-slot__title { font-size: 15px; }
}
/* Leaderboard di layar sempit (320×100) */
@container (max-height: 130px) and (max-width: 440px) {
  .ad-slot { gap: 10px; padding: 10px 12px; }
  .ad-slot__icon { width: 34px; height: 34px; font-size: 16px; }
  .ad-slot__title { font-size: 14px; }
  .ad-slot__meta { font-size: 11.5px; }
  .ad-slot__cta { padding: 6px 10px; font-size: 11.5px; }
  .ad-slot__cta::after { content: none; }
}
/* Strip sangat pendek (320×50, anchor mobile) */
@container (max-height: 64px) {
  .ad-slot { padding: 6px 10px; gap: 8px; border-radius: 8px; }
  .ad-slot__icon { width: 28px; height: 28px; font-size: 14px; box-shadow: none; }
  .ad-slot__title { font-size: 13px; }
  .ad-slot__meta { display: none; }
  .ad-slot__cta { padding: 5px 10px; font-size: 11px; }
}
/* Billboard lebar (970×250): versi besar, satu baris */
@container (min-width: 700px) and (min-height: 180px) {
  .ad-slot { flex-direction: row; justify-content: center; gap: 28px; text-align: left; padding: 24px 48px; }
  .ad-slot__icon { width: 72px; height: 72px; font-size: 34px; }
  .ad-slot__title { font-size: 26px; }
  .ad-slot__meta { font-size: 14px; }
  .ad-slot__perks { display: block; font-size: 13px; }
  .ad-slot__cta { padding: 11px 22px; font-size: 14px; }
}
/* Slot tinggi (half page 300×600) */
@container (min-height: 400px) {
  .ad-slot { gap: 16px; padding: 28px 22px; }
  .ad-slot__icon { width: 64px; height: 64px; font-size: 30px; }
  .ad-slot__title { font-size: 20px; }
  .ad-slot__perks { display: block; margin-top: 4px; }
  .ad-slot__cta { padding: 10px 20px; font-size: 13.5px; }
}

/* Native in-feed: menyerupai kartu berita */
.ad-slot--native { flex-direction: row; justify-content: flex-start; text-align: left; gap: 16px; padding: 12px; }
.ad-slot--native .ad-slot__thumb {
  display: grid; place-items: center; flex: none; width: 160px; height: 100%; max-height: 96px; aspect-ratio: 16/9;
  border-radius: 8px; font-size: 30px; color: var(--brand);
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--brand) 9%, var(--surface)) 0 10px, color-mix(in srgb, var(--brand) 4%, var(--surface)) 10px 20px);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.ad-slot--native .ad-slot__text { flex: 1; }
.ad-slot--native .ad-slot__eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--brand); }
.ad-slot--native .ad-slot__title { font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
@container (max-width: 520px) {
  .ad-slot--native { gap: 12px; padding: 10px; }
  .ad-slot--native .ad-slot__thumb { width: 104px; font-size: 24px; }
  .ad-slot--native .ad-slot__title { font-size: 15px; }
  .ad-slot--native .ad-slot__meta { display: none; }
  .ad-slot--native .ad-slot__cta { display: none; }
}

/* Slot di sidebar & anchor tidak butuh label tebal */
.anchor-ad .ad-slot { border-radius: 8px; }
/* Kotak iklan memakai container query (isi tidak menentukan lebar), jadi slot harus selebar wadahnya */
.ad { width: 100%; }
