/*
Arah: beranda narabahasa.id (Soledad).
Warna: #313131 teks, #a52620 tautan dan tombol, #234b7e nama topik. Itu palet situs asli.
Huruf: Lato untuk judul, Open Sans untuk teks, sama seperti font yang dimuat situs itu.
Susunan: logo tengah, menu di bawah, slider 67/33, kisi dua kolom, sisi berita.
Proporsi: kartu kecil judulnya dipotong tiga baris, menu diapit dua kolom sama lebar,
kartu produk sama ukurannya (bukan 2 lebar lalu 3 sempit), sudut foto 8px seperti penyetel situs.
Gerak: hanya geser slider. Tanpa gerak jika pengguna minta dikurangi.
*/

:root {
    --ink: #313131;
    --muted: #5c5c5c;
    --accent: #a52620;
    --accent-gelap: #7e1c18;
    --cat: #234b7e;
    --line: #ececec;
    --paper: #ffffff;
    --judul: "Lato", "Segoe UI", sans-serif;
    --teks: "Open Sans", "Segoe UI", sans-serif;
    --lebar: 1170px;
    --radius: 8px;
}

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

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--teks);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: clip;
}

h1,
h2,
h3,
.sisi-judul,
.ringkas {
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--accent-gelap);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip {
    position: absolute;
    left: 12px;
    top: -4rem;
    background: #fff;
    color: var(--ink);
    padding: 0.5rem 0.8rem;
    z-index: 30;
}

.skip:focus {
    top: 8px;
}

.container {
    width: min(var(--lebar), calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.logo-row {
    display: flex;
    justify-content: center;
    padding: 18px 16px 6px;
}

.logo-row a {
    display: block;
    width: min(420px, 86%);
}

.logo {
    display: block;
    width: 100%;
    height: auto;
}

.nav-bar {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    min-height: 56px;
}

.menu-slot {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.main-nav .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav a {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--judul);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    text-align: center;
}

.main-nav .nav a:hover,
.main-nav .nav .nav-current > a,
.main-nav .nav a.nav-current {
    color: var(--accent);
}

.menu-toggle,
.search-toggle,
.geser {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    grid-column: 1;
    display: none;
}

.search-toggle {
    grid-column: 3;
    justify-self: end;
}

.burger,
.burger::before,
.burger::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.burger::before,
.burger::after {
    content: "";
    position: absolute;
    left: 0;
}

.burger::before { top: -6px; }
.burger::after { top: 6px; }

.search-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 6;
    width: min(340px, calc(100vw - 32px));
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid #dedede;
}

.search-panel[hidden] {
    display: none;
}

.search-panel input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border: 1px solid #dedede;
    padding: 0 12px;
    font: inherit;
    color: var(--ink);
}

.baca,
.search-panel button {
    font-family: var(--teks);
    font-weight: 700;
    font-size: 14px;
    min-height: 44px;
    border: 0;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    padding: 0 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.baca:hover,
.baca:focus-visible,
.search-panel button:hover,
.search-panel button:focus-visible {
    background: var(--accent-gelap);
    color: #fff;
}

.sorotan {
    margin-top: 16px;
}

.sorotan-bingkai {
    position: relative;
}

.sorotan-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.sorotan.is-cari .sorotan-stage {
    grid-template-columns: 1fr;
}

.sorotan.is-cari .geser {
    display: none;
}

.sorotan.is-siap:not(.is-cari) .pasang {
    display: none;
}

.sorotan.is-siap:not(.is-cari) .pasang.is-tampil {
    display: block;
}

.sorotan-bingkai,
.sorotan-stage,
.pasang,
.pasang-media {
    min-width: 0;
    max-width: 100%;
}

.pasang {
    position: relative;
    background: #1a1a1a;
    border-radius: var(--radius);
}

.pasang.is-sendiri {
    grid-column: 1 / -1;
}

.pasang-media {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
}

.pasang-media img,
.pasang .tanpa-foto,
.kartu-gambar img,
.kartu-gambar .tanpa-foto {
    display: block;
    width: 100%;
    aspect-ratio: 25 / 16;
    object-fit: cover;
}

.tanpa-foto {
    background: #e7e7e7;
}

.tanpa-foto.gelap,
.pasang .tanpa-foto {
    background: #3a3a3a;
}

.pasang-teks {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 64px 16px 14px;
    border-radius: 0 0 var(--radius) var(--radius);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
}

.pasang-teks h2 {
    margin: 4px 0 6px;
    font-family: var(--judul);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.pasang.is-kecil h2 {
    font-size: 16px;
}

.pasang.is-kecil .kategori {
    display: none;
}

.pasang-teks h2 a,
.pasang-teks .meta,
.pasang-teks .meta a,
.kategori.terang {
    color: #fff;
    text-decoration: none;
}

.pasang-teks h2 a:hover,
.kategori.terang:hover {
    text-decoration: underline;
}

.meta {
    margin: 0;
    color: var(--muted);
    font-style: italic;
    font-size: 13px;
}

.pasang-teks .meta {
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.meta a {
    color: inherit;
}

.geser {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 28px;
    line-height: 1;
}

.geser-prev { left: 18px; }
.geser-next { right: 18px; }

.majalah {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
    gap: 36px;
    padding: 34px 0 64px;
    align-items: start;
}

.majalah:not(:has(.kartu)):not(:has(.tulisan)) {
    grid-template-columns: minmax(0, 320px);
    justify-content: end;
}

.kisi-daftar,
.sisi-daftar {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kisi-daftar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 22px;
}

.kartu-gambar {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.kategori {
    color: var(--cat);
    font-family: var(--judul);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.kategori:hover {
    text-decoration: underline;
}

.kartu h2,
.sisi-judul,
.judul-halaman,
.tulisan h1,
.halaman h1,
.halaman h2,
.judul-sisi {
    font-family: var(--judul);
    font-weight: 700;
}

.kartu h2 {
    margin: 6px 0 4px;
    font-size: 18px;
    line-height: 1.35;
}

.kartu h2 a,
.sisi-judul {
    color: var(--ink);
    text-decoration: none;
}

.kartu h2 a:hover,
.sisi-judul:hover {
    color: var(--accent);
}

.ringkas {
    margin: 8px 0 12px;
    color: var(--ink);
}

.judul-sisi {
    margin: 0 0 8px;
    text-align: center;
    position: relative;
    font-size: 16px;
    line-height: 1.3;
}

.judul-sisi::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #dedede;
}

.judul-sisi span {
    position: relative;
    background: #fff;
    padding: 0 12px;
}

.sisi-daftar li {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.sisi-gambar {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
}

.sisi-gambar img,
.sisi-gambar .tanpa-foto {
    display: block;
    width: 96px;
    height: 72px;
    object-fit: cover;
}

.sisi-judul {
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.sisi-teks time {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
}

.kosong {
    margin: 0;
    color: var(--muted);
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    margin-top: 28px;
}

.pager a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

.judul-halaman,
.halaman h1,
.tulisan h1 {
    font-size: 30px;
    line-height: 1.25;
    margin: 0 0 12px;
}

.tulisan-kepala {
    margin-bottom: 18px;
}

.halaman {
    width: min(760px, calc(100% - 32px));
    margin: 28px auto 72px;
}

.halaman.lebar {
    width: min(var(--lebar), calc(100% - 32px));
}

.halaman h2 {
    font-size: 20px;
    margin: 1.6rem 0 0.4rem;
}

.gambar-utama {
    margin: 0 0 20px;
}

.gambar-utama img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 520px;
    margin-inline: auto;
    border-radius: var(--radius);
}

.gambar-utama figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.post-body img,
.post-body video,
.post-body iframe,
.post-body figure,
.kg-width-wide,
.kg-width-full {
    max-width: 100%;
}

.post-body pre,
.post-body code {
    font-size: 0.92em;
}

.post-body pre {
    overflow-x: auto;
    padding: 12px;
    background: #f5f5f5;
}

.post-body blockquote {
    margin: 1.2em 0;
    font-style: italic;
}

.kutip-nama {
    margin-top: -0.6rem;
    font-weight: 700;
}

.site-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 36px 16px 28px;
}

.nawala-wrapper {
    width: 100%;
    margin-bottom: 40px;
}

.nawala {
    width: min(440px, 100%);
    margin: 0 auto;
}

.nawala-blok {
    display: flex;
    flex-direction: column;
    background: #f7f8fa;
    border: 1px solid #e3e6ea;
    border-radius: 20px;
    padding: 34px 28px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nawala h2,
.nawala h3 {
    margin: 0 0 10px;
    text-align: center;
    font-family: var(--judul);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
}

.nawala-sub {
    margin: 0 0 24px;
    text-align: center;
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.45;
}

.nawala-isian {
    width: 100%;
    margin-bottom: 18px;
}

.nawala input[type="email"] {
    width: 100%;
    height: 50px;
    border: 1px solid #dcdfe4;
    border-radius: 12px;
    padding: 0 18px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nawala input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(165, 38, 32, 0.12);
}

.nawala input[type="email"]::placeholder {
    color: #8c8c8c;
}

.nawala altcha-widget {
    --altcha-max-width: 100%;
    --altcha-border-radius: 12px;
    --altcha-color-border: #dcdfe4;
    --altcha-color-base: #fff;
    display: block;
    width: 100%;
    margin: 0 0 20px;
}

.nawala-tombol {
    width: 100%;
    height: 50px;
    margin: 0;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(165, 38, 32, 0.22);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.nawala-tombol:hover,
.nawala-tombol:focus-visible {
    background: var(--accent-gelap);
}

.social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    list-style: none;
    margin: 28px 0 8px;
    padding: 0 16px;
}

.social a {
    color: var(--ink);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social a:hover {
    color: var(--accent);
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 24px;
    padding: 0 16px;
}

.footer-bar p {
    margin: 0;
    color: var(--muted);
}

.ke-atas {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.ke-atas:hover {
    color: var(--accent);
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 4px 0 8px;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.layanan {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 36px 28px;
    margin-top: 12px;
}

.layanan section {
    grid-column: span 2;
    text-align: center;
}

.layanan section:nth-child(4) {
    grid-column: 2 / span 2;
}

.layanan section:nth-child(5) {
    grid-column: 4 / span 2;
}

.ikon {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #ededed;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.layanan h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.layanan p {
    margin: 0;
}

.aksi {
    text-align: center;
    margin-top: 36px;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
    }

    .menu-slot {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 4px 0 12px;
    }

    .main-nav.is-open .menu-slot {
        display: block;
    }

    .main-nav .nav {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav .nav a {
        justify-content: flex-start;
    }

    .majalah,
    .kisi-daftar {
        grid-template-columns: minmax(0, 1fr);
    }

    .majalah:not(:has(.kartu)):not(:has(.tulisan)) {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }

    .pasang-teks h2 {
        font-size: 18px;
        -webkit-line-clamp: 4;
    }

    .geser {
        top: 22%;
    }

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

    .layanan section,
    .layanan section:nth-child(4),
    .layanan section:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .logo-row a {
        width: 250px;
    }

    .nawala-blok {
        padding: 24px 18px 20px;
    }

    .sorotan-stage {
        grid-template-columns: minmax(0, 1fr);
    }

    .judul-halaman,
    .halaman h1,
    .tulisan h1 {
        font-size: 24px;
    }

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

    .geser-prev { left: 8px; }
    .geser-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .sorotan {
        scroll-behavior: auto;
    }
}

/* Halaman Konfirmasi Nawala (Subscription / Listmonk) */
body.halaman-nawala {
    min-height: 100vh;
    background-color: #f6f8fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 16px;
    margin: 0;
}

.nawala-kartu-wadah {
    width: 100%;
    max-width: 640px;
    margin: auto;
}

.nawala-kartu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    padding: 40px 44px;
}

.nawala-kartu-logo {
    display: inline-block;
    line-height: 0;
}

.nawala-kartu-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.nawala-pemisah {
    border: 0;
    border-top: 1px solid #edf0f3;
    margin: 22px 0 28px;
}

.nawala-kartu-judul {
    font-family: var(--judul);
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px;
    line-height: 1.25;
}

.nawala-kartu-pesan {
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    margin: 0 0 16px;
}

.nawala-kartu-keterangan {
    font-size: 14.5px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 24px;
}

.nawala-langkah {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    padding: 20px 22px;
    margin: 0 0 24px;
}

.nawala-langkah-judul {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px;
}

.nawala-langkah-daftar {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nawala-langkah-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nawala-langkah-nomor {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--cat);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nawala-langkah-isi {
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

.nawala-langkah-isi strong {
    color: #0f172a;
}

.nawala-bantuan {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 0 0 28px;
}

.nawala-bantuan-judul {
    font-weight: 700;
    font-size: 13.5px;
    color: #92400e;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nawala-bantuan-daftar {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.55;
    color: #78350f;
}

.nawala-bantuan-daftar li + li {
    margin-top: 4px;
}

.nawala-aksi {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.nawala-tombol-utama {
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s ease;
}

.nawala-tombol-utama:hover {
    background: var(--accent-gelap);
    color: #ffffff;
}

.nawala-tombol-sekunder {
    color: #475569;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.nawala-tombol-sekunder:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

.nawala-footer-luar {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #94a3b8;
}

@media (max-width: 640px) {
    body.halaman-nawala {
        padding: 24px 14px;
    }

    .nawala-kartu {
        padding: 28px 20px;
    }

    .nawala-kartu-judul {
        font-size: 24px;
    }

    .nawala-aksi {
        flex-direction: column;
        align-items: stretch;
    }

    .nawala-tombol-utama,
    .nawala-tombol-sekunder {
        justify-content: center;
        text-align: center;
    }
}

