/*
 * torja.id - gaya publik (PRD v2.4 bagian 16)
 * Color-Coded Niche System: Media Ajar IPA (teal), EdTech & AI (biru), Finansial Guru (amber).
 * Tanpa framework CSS. Ikon: Bootstrap Icons (font), di-host sendiri sebelum peluncuran.
 */

:root {
    --bg-canvas: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-muted: #f1f5f9;
    --brand-primary: #0f172a;
    --text-body: #1e293b;
    --text-muted: #475569;
    --text-faint: #64748b;
    --border-light: #e2e8f0;
    --border-strong: #cbd5e1;

    --media: #0f766e;
    --media-bright: #0d9488;
    --media-dark: #115e59;
    --media-soft: #ccfbf1;
    --media-tint: #f0fdfa;
    --media-border: #99f6e4;
    --mint: #5eead4;

    --edtech: #1d4ed8;
    --edtech-bright: #2563eb;
    --edtech-dark: #1e40af;
    --edtech-soft: #dbeafe;
    --edtech-tint: #eff6ff;
    --edtech-border: #93c5fd;
    --tech-navy: #0b192c;

    --finansial: #b45309;
    --finansial-bright: #d97706;
    --finansial-dark: #92400e;
    --finansial-soft: #fef3c7;
    --finansial-tint: #fffbeb;
    --finansial-border: #fcd34d;
    --finansial-ink: #78350f;

    --danger: #b91c1c;
    --success: #15803d;

    --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", Consolas, monospace;

    --radius-sm: .5rem;
    --radius: .85rem;
    --radius-lg: 1rem;
    --wide: 1320px;
    --reading: 800px;
    --reading-lab: 1000px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-body);
    background: var(--bg-canvas);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--brand-primary);
    margin: 0 0 .5rem;
}
h1 { font-size: clamp(1.85rem, 3.6vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1rem; }
code { font-family: var(--font-mono); font-size: .875em; color: #be185d; }

a { color: var(--edtech); text-underline-offset: .18em; }
a:hover { color: var(--edtech-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--edtech-bright);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.article-container { max-width: var(--reading); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--brand-primary); color: #fff; padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.tone-media { color: var(--media) !important; }
.tone-edtech { color: var(--edtech) !important; }
.tone-finansial { color: var(--finansial) !important; }

/* ---------- Garis tiga pilar ---------- */
.tri-bar {
    height: 4px;
    background: linear-gradient(90deg,
        var(--media) 0 33.33%,
        var(--edtech) 33.33% 66.66%,
        var(--finansial) 66.66% 100%);
}

/* ---------- Navbar ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
}
.header-inner { min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; }
.brand, .footer-brand {
    font-family: var(--font-head); font-weight: 800; font-size: 1.38rem;
    letter-spacing: -.02em; color: var(--brand-primary); text-decoration: none;
}
.brand { margin-right: 1.5rem; padding: .3rem 0; }
.brand span { color: var(--media-bright); }
.nav-collapse { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.nav-list { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
    display: block; font-size: .95rem; font-weight: 500; color: var(--text-body);
    padding: .45rem .85rem; border-radius: var(--radius-sm); text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.nav-list a:hover { background: var(--bg-subtle); color: var(--brand-primary); }
.nav-list a[aria-current="page"] { background: var(--bg-muted); color: var(--brand-primary); font-weight: 700; }
.nav-list a[data-tone="media"][aria-current="page"] { background: var(--media-tint); color: var(--media); }
.nav-list a[data-tone="edtech"][aria-current="page"] { background: var(--edtech-tint); color: var(--edtech); }
.nav-list a[data-tone="finansial"][aria-current="page"] { background: var(--finansial-tint); color: var(--finansial); }
.nav-toggle {
    display: none; margin-left: auto; border: 0; background: transparent; cursor: pointer;
    font-size: 1.6rem; line-height: 1; color: var(--brand-primary); padding: .4rem .5rem; border-radius: var(--radius-sm);
}

/* Badge status zona iklan (hanya development) */
.mode-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap;
}
.mode-adsense-on { background: var(--media-tint); color: var(--media); border: 1px solid var(--media-border); }
.mode-adsense-off { background: var(--bg-muted); color: #334155; border: 1px solid var(--border-strong); }

/* ---------- Badge ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .78rem; font-weight: 600; line-height: 1.3;
    padding: .3rem .65rem; border-radius: .4rem;
    background: var(--bg-muted); color: var(--text-body);
}
.badge-lg { font-size: .8rem; padding: .5rem 1rem; border-radius: 999px; }
.badge-media { background: var(--media-soft); color: var(--media); }
.badge-edtech { background: var(--edtech-soft); color: var(--edtech); }
.badge-finansial { background: var(--finansial-soft); color: var(--finansial); }
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.5;
    padding: .45rem 1rem; border-radius: var(--radius-sm); border: 1px solid transparent;
    text-decoration: none; cursor: pointer; text-align: center;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { font-size: .875rem; padding: .3rem .75rem; border-radius: .4rem; }
.btn-block { display: flex; width: 100%; padding-top: .6rem; padding-bottom: .6rem; }
.btn-media { background: var(--media); border-color: var(--media); color: #fff; }
.btn-media:hover { background: var(--media-dark); border-color: var(--media-dark); color: #fff; }
.btn-outline-media { background: transparent; border-color: var(--media); color: var(--media); }
.btn-outline-media:hover { background: var(--media); color: #fff; }
.btn-edtech { background: var(--edtech); border-color: var(--edtech); color: #fff; }
.btn-edtech:hover { background: var(--edtech-dark); border-color: var(--edtech-dark); color: #fff; }
.btn-finansial { background: var(--finansial); border-color: var(--finansial); color: #fff; }
.btn-finansial:hover { background: var(--finansial-dark); border-color: var(--finansial-dark); color: #fff; }
.btn-dark { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-outline-dark { background: transparent; border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-outline-dark:hover { background: var(--brand-primary); color: #fff; }
.btn-mint { background: var(--mint); border-color: var(--mint); color: var(--brand-primary); font-weight: 700; font-size: .875rem; }
.btn-mint:hover { background: #2dd4bf; border-color: #2dd4bf; color: var(--brand-primary); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }

/* ---------- Hero ---------- */
.site-main { min-height: 60vh; }
.hero-compact {
    background:
        radial-gradient(circle at 12% 18%, rgba(13, 148, 136, .08) 0%, transparent 42%),
        radial-gradient(circle at 55% 10%, rgba(37, 99, 235, .06) 0%, transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(217, 119, 6, .06) 0%, transparent 42%),
        linear-gradient(180deg, var(--bg-subtle) 0%, #fff 100%);
    border-bottom: 1px solid var(--border-light);
    padding: 2.75rem 0 2.35rem;
}
.hero-grid { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.hero-title { font-size: calc(1.375rem + 1.5vw); font-weight: 700; margin-bottom: 1rem; }
.hero-lead { color: var(--text-muted); max-width: 650px; margin-bottom: 1.5rem; }
.lead { color: var(--text-muted); max-width: 650px; }

.search-box {
    position: relative; max-width: 560px;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075); border-radius: var(--radius-sm);
}
.search-box .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.1rem; pointer-events: none; }
.search-box input {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text-body);
    padding: .65rem 1rem .65rem 2.75rem; background: #fff;
    border: 1px solid #dee2e6; border-radius: var(--radius-sm);
}
.search-box input:focus { border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25); }
.search-empty { margin-top: 1.5rem; color: var(--text-muted); }

/* Kartu unggulan */
.featured-lab-card {
    padding: 1.5rem;
    background: linear-gradient(145deg, var(--brand-primary) 0%, var(--media-dark) 100%);
    color: #f8fafc;
    border: 1px solid rgba(94, 234, 212, .25);
    border-radius: var(--radius-lg);
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}
.featured-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.featured-tag { font-size: .75rem; font-weight: 700; color: var(--brand-primary); background: var(--mint); padding: .25rem .55rem; border-radius: .35rem; }
.featured-head small { font-size: .875rem; color: rgba(248, 250, 252, .75); }
.featured-lab-card h2 { font-size: 1.25rem; color: #fff; margin: .5rem 0; }
.featured-lab-card p { font-size: .875rem; color: rgba(248, 250, 252, .75); margin-bottom: 1rem; line-height: 1.6; }

/* Simulasi bandul (dipakai ulang di halaman lab) */
.bandul { display: block; width: 100%; height: auto; max-height: 240px; margin: .5rem 0; }
.bandul-support { stroke: #e2e8f0; stroke-width: 4; stroke-linecap: round; }
.bandul-tali { stroke: #e2e8f0; stroke-width: 1.5; }
.bandul-beban { fill: var(--mint); stroke: #0f172a; stroke-width: 1.5; }
.bandul-pivot { fill: #e2e8f0; }
.bandul-arc { fill: none; stroke: var(--finansial-border); stroke-width: 1.5; stroke-dasharray: 4 5; }

/* ---------- Section dan kartu ---------- */
.section { padding: 3rem 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.section-head h2, .split-grid h2 { font-size: 1.5rem; margin: 0; }
.section-eyebrow { display: inline-block; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.link-more { font-size: .875rem; font-weight: 600; text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; }
.link-more:hover { text-decoration: underline; }

.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 3rem; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.searchable-card { display: flex; flex-direction: column; }
.searchable-card > .card { flex: 1; }
.card {
    display: flex; flex-direction: column; align-items: flex-start;
    background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -8px rgba(15, 23, 42, .08); }
.card h2, .card h3 { margin: .5rem 0; }
.card h2 { font-size: 1.5rem; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--text-muted); font-size: .875rem; line-height: 1.7; }
.card-flush { padding: 0; align-items: stretch; overflow: hidden; }
.card-thumb {
    aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
    padding: 1rem; text-align: center; font-weight: 700; font-size: .92rem;
    border-top-left-radius: .65rem; border-top-right-radius: .65rem;
}
.card-thumb .bi { display: block; font-size: 2rem; margin-bottom: .25rem; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.5rem; }
.card-body p { flex: 1; }
.card-meta { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.card-meta small { font-size: .875rem; color: var(--text-muted); }
.card-media { border-top: 4px solid var(--media-bright); }
.card-edtech { border-top: 4px solid var(--edtech-bright); }
.card-finansial { border-top: 4px solid var(--finansial-bright); }
.link-stack { list-style: none; padding: 0; margin: auto 0 0; font-weight: 600; font-size: .95rem; }
.link-stack li + li { margin-top: .25rem; }

.split-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .5rem; }
.split-grid h2 { margin-bottom: 1rem; }

/* Slot iklan */
.ad-slot {
    margin: 2rem 0; padding: .75rem 1rem 1rem; text-align: center;
    background: var(--bg-subtle); border: 1px dashed var(--border-strong); border-radius: .75rem;
}
.ad-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: .5rem; }
.ad-box { display: flex; align-items: center; justify-content: center; color: var(--text-faint); font-size: .85rem; }
.ad-box-infeed { min-height: 100px; }
.ad-box-inarticle { min-height: 250px; }

/* Strip penulis */
.author-strip {
    margin-top: 3rem; padding: 1.5rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--media-tint) 100%);
    border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
}
.author-strip > div:first-child { flex: 1 1 30rem; }
.author-strip h2, .author-strip h3 { font-size: 1.25rem; margin: 0 0 .25rem; }
.author-strip p { margin: 0; color: var(--text-muted); font-size: .875rem; }
.author-label {
    display: inline-block; font-size: .75rem; font-weight: 700; color: #fff;
    background: var(--brand-primary); padding: .25rem .55rem; border-radius: .35rem; margin-bottom: .5rem;
}
.author-actions { display: flex; flex-wrap: wrap; gap: .5rem; flex-shrink: 0; }

/* ---------- Halaman isi ---------- */
.page { padding-top: 3rem; padding-bottom: 3rem; }
.page-head { padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); }
.page-head .lead { margin-bottom: 0; }
.page-head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.page-head-split > div { flex: 1 1 32rem; }
.article-container h2 { margin-top: 2rem; }
.legal h2 { font-size: 1.25rem; }
.legal li { margin-bottom: .5rem; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }

.quote {
    margin: 1.5rem 0; padding: 1rem 1.25rem;
    background: var(--media-tint); border-left: 4px solid var(--media-bright); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--brand-primary);
}
.quote p { margin: 0; }
.quote cite { display: block; margin-top: .4rem; font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: .9rem; color: var(--text-muted); }

.callout { margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--bg-subtle); border: 1px solid var(--border-light); border-radius: var(--radius); }
.callout h2 { margin-top: 0; font-size: 1.25rem; }
.callout p:last-child { margin: 0; }

.timeline { list-style: none; padding: 0; margin: 1.25rem 0; border-left: 2px solid var(--media-border); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.4rem; }
.timeline li::before {
    content: ""; position: absolute; left: -7px; top: .5rem;
    width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--media-bright);
}
.timeline-date { margin: 0; font-size: .9rem; font-weight: 600; color: var(--media); font-variant-numeric: tabular-nums; }
.timeline h3 { margin: .1rem 0 .25rem; font-size: 1.1rem; }
.timeline p:last-child { margin: 0; color: var(--text-muted); }

.check { background: var(--finansial-soft); color: var(--finansial-dark); font-size: .85rem; font-weight: 600; padding: .05rem .35rem; border-radius: .3rem; }

/* ---------- Formulir ---------- */
.form { margin: 0 0 2rem; display: block; }
.form.card:hover { transform: none; box-shadow: none; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .3rem; }
.field input, .field textarea {
    width: 100%; font: inherit; color: var(--text-body); background: #fff;
    padding: .45rem .75rem; border: 1px solid #dee2e6; border-radius: .4rem;
}
.field input:focus, .field textarea:focus { border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .875rem; margin: .3rem 0 0; }
.notice { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: .95rem; }
.notice-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--success); }
.notice-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }
.info-box { padding: 1.5rem; background: var(--bg-subtle); border: 1px solid #dee2e6; border-radius: .6rem; }
.info-box h2 { margin-top: 0; font-size: 1.15rem; }
.info-box ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Galat ---------- */
.error-page { padding-top: 4rem; padding-bottom: 4.5rem; }
.link-list { padding-left: 1.2rem; }
.dev-note { font-family: var(--font-mono); font-size: .85rem; background: var(--bg-subtle); border: 1px solid var(--border-light); padding: .75rem; border-radius: var(--radius-sm); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 3rem; background: var(--brand-primary); color: #cbd5e1; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-top: 3rem; }
.footer-about { flex: 0 1 40%; min-width: 260px; }
.footer-about p:last-child { font-size: .875rem; margin: 0; }
.footer-cols { flex: 0 1 50%; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; min-width: 280px; }
.footer-brand { color: #fff; font-size: 1.25rem; margin: 0 0 .5rem; }
.footer-brand span { color: var(--mint); }
.footer-heading { color: #fff; font-weight: 600; font-size: .875rem; margin: 0 0 .5rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; font-size: .875rem; display: grid; gap: .25rem; }
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem;
    border-top: 1px solid #475569; margin-top: 1.5rem; padding: 1.5rem 0 3rem;
    font-size: .875rem; color: #94a3b8;
}

/* ---------- Responsif ---------- */
@media (max-width: 991.98px) {
    .nav-toggle { display: inline-block; }
    .nav-collapse { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; padding: .5rem 0 1rem; }
    .nav-collapse.is-open { display: flex; }
    .nav-list { flex-direction: column; width: 100%; }
    .hero-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-grid { grid-template-columns: 1fr; }
    .footer-about, .footer-cols { flex-basis: 100%; }
}

@media (min-width: 1200px) {
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 767.98px) {
    body { font-size: 16px; }
    .container { padding: 0 1rem; }
    .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .card, .btn, .nav-list a { transition: none; }
    .card:hover { transform: none; }
}

/* ---------- Halaman informasi & legal: lebar sama dengan beranda ---------- */
.info-layout { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.info-main { min-width: 0; }
.info-main > *:not(.page-head):not(.form):not(.info-box) { max-width: 820px; }
.info-main h2 { margin-top: 2rem; }
.info-main .page-head h1 { margin-bottom: .5rem; }
.info-aside { position: sticky; top: 88px; display: grid; gap: 1.25rem; }
.info-nav, .info-help {
    background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 1.25rem;
}
.info-help { background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--media-tint) 100%); border-color: var(--border-strong); }
.info-help p:not(.info-nav-title) { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.info-nav-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--brand-primary); margin: 0 0 .6rem; }
.info-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.info-nav a {
    display: flex; align-items: center; gap: .55rem; padding: .45rem .7rem; border-radius: var(--radius-sm);
    color: var(--text-body); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.info-nav a:hover { background: var(--bg-subtle); color: var(--brand-primary); }
.info-nav a[aria-current="page"] { background: var(--bg-muted); color: var(--brand-primary); font-weight: 700; }
.info-nav .bi { color: var(--text-muted); }

@media (max-width: 991.98px) {
    .info-layout { grid-template-columns: 1fr; }
    .info-aside { position: static; }
}

/* ---------- Rilis 2: indeks pilar dan artikel ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .875rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--border-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-title { font-size: calc(1.325rem + .9vw); font-weight: 700; margin: .75rem 0 .75rem; }
@media (min-width: 1200px) { .page-title { font-size: 2rem; } }
.page-head .badge-lg { margin-bottom: .25rem; }
.badge-neutral { background: var(--bg-subtle); color: var(--text-body); border: 1px solid #dee2e6; }
.badge-solid-media { background: var(--media); color: #fff; }
.btn-outline-secondary { background: #fff; border-color: #6c757d; color: #495057; }
.btn-outline-secondary:hover { background: #6c757d; color: #fff; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; text-decoration: underline; }
.card-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-top-left-radius: .65rem; border-top-right-radius: .65rem; }
.empty-state { padding: 2.5rem; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg-subtle); }
.empty-state h2 { font-size: 1.25rem; }
.empty-inline { color: var(--text-muted); margin-bottom: 3rem; }
.lab-source { font-size: .8125rem; color: var(--text-muted); margin: .5rem 0 0; }
.lab-source a { color: var(--text-body); }

.article-head { margin-bottom: 1.5rem; }
.article-meta { font-size: .875rem; color: var(--text-muted); margin: 0; }
.article-meta a { color: var(--text-body); text-decoration: none; }
.article-body > .prose, .article-body .sources, .article-body .reviewed { max-width: none; }
.prose > * { max-width: 820px; }
.prose > .prompt-box, .prose > .table-wrap { max-width: none; }
.prose h2 { font-size: 1.45rem; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 1.25rem 0; padding: .75rem 1.25rem; border-left: 4px solid var(--border-strong); background: var(--bg-subtle); color: var(--text-muted); }
.prose code { background: var(--bg-muted); padding: .1rem .35rem; border-radius: .3rem; color: #be185d; }
.prose img { height: auto; border-radius: .5rem; }
.prose figure { margin: 1.5rem 0; }
.prose figure img { display: block; }
.prose figcaption { margin-top: .45rem; font-size: .85rem; color: var(--text-muted); text-align: center; }
.prose pre:not(.prompt-box-body) { padding: 1rem 1.25rem; overflow-x: auto; background: var(--bg-muted); border-radius: .5rem; font-size: .88rem; line-height: 1.6; }
.prose pre:not(.prompt-box-body) code { padding: 0; background: none; color: inherit; }

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-wrap th, .table-wrap td { border: 1px solid #dee2e6; padding: .55rem .75rem; text-align: left; vertical-align: middle; }
.table-wrap thead th { background: var(--media-tint); font-weight: 600; }

/* Kotak Bank Prompt */
.prompt-box {
    margin: 2rem 0; overflow: hidden; color: #f8fafc;
    background: var(--tech-navy); border: 1px solid #1e3a8a; border-radius: var(--radius);
    box-shadow: 0 10px 24px -8px rgba(29, 78, 216, .16);
}
.prompt-box-header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
    background: #172554; border-bottom: 1px solid var(--edtech-dark); padding: .7rem 1.1rem; font-size: .85rem;
}
.prompt-box-title { font-weight: 600; color: #f8fafc; }
.prompt-box-title .bi { color: #67e8f9; margin-right: .35rem; }
.prompt-box .btn.is-copied { background: var(--success); border-color: var(--success); }
.prompt-box-body {
    margin: 0; padding: 1.25rem; white-space: pre-wrap; word-break: break-word;
    font-family: var(--font-mono); font-size: .88rem; line-height: 1.65; color: #e2e8f0; background: transparent;
}
.prompt-var {
    background: rgba(37, 99, 235, .35); color: #93c5fd; border: 1px solid rgba(147, 197, 253, .35);
    padding: .08rem .38rem; border-radius: .3rem; font-weight: 500;
}

/* Kotak disclaimer finansial */
.disclaimer-box {
    margin: 1.5rem 0; padding: 1rem 1.25rem; font-size: .92rem; line-height: 1.65; color: var(--finansial-ink);
    background: var(--finansial-tint); border: 1px solid var(--finansial-border); border-left: 4px solid var(--finansial-bright);
    border-radius: var(--radius-sm); max-width: 820px;
}
.disclaimer-box a { color: var(--finansial-ink); font-weight: 600; }

/* Panggung lab */
.lab-stage {
    margin: 0 0 2rem; overflow: hidden; background: #fff;
    border: 1px solid var(--media-border); border-radius: .9rem;
    box-shadow: 0 10px 25px -5px rgba(15, 118, 110, .08);
}
.lab-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .7rem 1rem; background: var(--media-tint); border-bottom: 1px solid var(--media-border);
}
.lab-toolbar-info, .lab-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.lab-module { font-size: .875rem; font-weight: 600; color: var(--text-body); }
.lab-canvas { background: radial-gradient(circle at top right, var(--media-tint) 0%, var(--bg-subtle) 65%); }
.lab-frame { display: block; width: 100%; height: 560px; border: 0; background: transparent; }
.lab-stage:fullscreen, .lab-stage.is-fullscreen-fallback {
    position: fixed; inset: 0; z-index: 9999; width: 100vw; height: 100vh;
    display: flex; flex-direction: column; border: 0; border-radius: 0; margin: 0;
}
.lab-stage:fullscreen .lab-canvas, .lab-stage.is-fullscreen-fallback .lab-canvas { flex: 1; display: flex; }
.lab-stage:fullscreen .lab-frame, .lab-stage.is-fullscreen-fallback .lab-frame { height: auto; flex: 1; }
body.lab-fullscreen-open { overflow: hidden; }

/* Sumber dan tanggal tinjau */
.sources { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-light); }
.sources h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.sources ol { font-size: .9rem; padding-left: 1.25rem; margin: 0; }
.reviewed { font-size: .85rem; color: var(--text-muted); margin-top: 1rem; }

/* Daftar artikel terkait di sidebar */
.related-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .25rem; }
.related-list a { display: block; padding: .5rem .7rem; border-radius: var(--radius-sm); color: var(--text-body); text-decoration: none; font-size: .9rem; line-height: 1.45; }
.related-list a:hover { background: var(--bg-subtle); }
.related-list small { display: block; color: var(--text-muted); font-size: .78rem; margin-top: .15rem; }

/* Pager bawaan CI4 */
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span { display: block; padding: .4rem .8rem; border: 1px solid var(--border-light); border-radius: var(--radius-sm); text-decoration: none; font-size: .9rem; }
.pagination .active a { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

@media (max-width: 767.98px) {
    .lab-frame { height: 640px; }
}

/* ---------- Rilis 4: slot iklan ---------- */
.ad-label { text-transform: none; letter-spacing: .02em; }
.ad-slot-preview .ad-box { font-size: .8rem; }
.prose .ad-slot { max-width: none; }
