/* ==========================================================================
   LunaBiner — sistem desain situs publik
   Token warna/jarak di :root; komponen di bawahnya. Mobile mengikuti breakpoint di akhir file.
   ========================================================================== */

:root {
    /* Warna merek */
    --ink: #132a32;
    --muted: #5b6e73;
    --teal: #08747a;
    --teal-dark: #065c61;
    --aqua: #18b7b3;
    --aqua-soft: #63cec9;
    --orange: #f5a033;
    --orange-dark: #dd841c;

    /* Permukaan */
    --bg: #f8fafa;
    --surface: #ffffff;
    --tint: #eaf5f4;
    --border: #dde7e7;
    --on-dark: #ffffff;
    --on-dark-muted: #c7d7d7;

    /* Tipografi */
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --text-sm: .875rem;
    --text-base: 1rem;
    --text-lg: 1.15rem;

    /* Jarak & bentuk */
    --shell: 1180px;
    --gutter: 32px;
    --section: 96px;
    --radius: 16px;
    --radius-sm: 8px;
    --pill: 999px;
    --tap: 44px;
}

/* ---------- Dasar ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -.035em;
    font-weight: 650;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
    font-size: clamp(1.8rem, 3.4vw, 3rem);
}

h3 {
    font-size: 1.3rem;
    line-height: 1.35;
    letter-spacing: -.02em;
}

p {
    color: var(--muted);
    line-height: 1.8;
}

:focus-visible {
    outline: 3px solid var(--aqua);
    outline-offset: 3px;
    border-radius: 4px;
}

.shell {
    width: min(100% - 2 * var(--gutter), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgb(19 42 50 / 15%);
}

.skip-link:focus {
    top: 12px;
}

/* ---------- Komponen umum ---------- */

.kicker {
    margin-bottom: 18px;
    color: var(--teal);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.lead {
    max-width: 640px;
    margin-top: 24px;
    font-size: var(--text-lg);
    line-height: 1.85;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--pill);
    background: var(--orange);
    color: var(--ink);
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.button:hover {
    background: var(--orange-dark);
}

.button-secondary {
    border-color: var(--border);
    background: var(--surface);
}

.button-secondary:hover {
    border-color: var(--aqua);
    background: var(--tint);
}

.button-small {
    min-height: var(--tap);
    padding: 8px 18px;
    font-size: var(--text-sm);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgb(248 250 250 / 94%);
    backdrop-filter: blur(12px);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: var(--tap);
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: var(--text-sm);
    font-weight: 500;
}

.desktop-nav > a:not(.button) {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    transition: color .15s;
}

.desktop-nav > a:not(.button):hover,
.desktop-nav > a[aria-current="page"]:not(.button) {
    color: var(--teal);
}

.desktop-nav > a[aria-current="page"]:not(.button) {
    box-shadow: inset 0 -2px 0 var(--aqua);
}

.language {
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .05em;
}

.mobile-nav {
    display: none;
}

/* ---------- Hero ---------- */

.hero {
    overflow: hidden;
    padding: 72px 0 64px;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 64px;
    min-height: 500px;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    line-height: 1.04;
}

.hero .orbit {
    justify-self: end;
}

/* ---------- Section & warna latar ---------- */

.page-hero {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    max-width: 920px;
    font-size: clamp(2.3rem, 4.6vw, 3.8rem);
}

.section {
    padding: var(--section) 0;
}

.tone-plain {
    background: var(--surface);
}

.tone-plain + .tone-plain {
    border-top: 1px solid #f1f5f5;
}

.tone-tint {
    background: var(--tint);
}

.tone-dark {
    background: var(--ink);
    color: var(--on-dark);
}

.tone-dark p {
    color: var(--on-dark-muted);
}

.tone-dark .kicker {
    color: var(--aqua-soft);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 64px;
}

.section-heading h2,
.section > .shell > h2 {
    max-width: 760px;
}

.section-body {
    max-width: 640px;
    margin-top: 20px;
}

.prose {
    font-size: 1.05rem;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--tap);
    margin-top: 28px;
    color: var(--teal);
    font-size: .92rem;
    font-weight: 650;
}

.read-link:hover {
    color: var(--teal-dark);
}

/* ---------- Pita pernyataan ---------- */

.statements {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.statement-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-block: 0;
    padding: 28px 0;
    list-style: none;
    font-size: .92rem;
}

.statement-list li:first-child {
    font-weight: 650;
}

.statement-list li:not(:first-child) {
    color: var(--muted);
}

/* ---------- Kartu ---------- */

.card-grid {
    display: grid;
    gap: 20px;
}

.card-grid-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-stack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 40px;
}

.card-grid-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
}

.section > .shell > .card-grid-services:first-child {
    margin-top: 0;
}

.card {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.card h3 {
    margin-top: 20px;
}

.card p {
    margin-top: 10px;
    font-size: .95rem;
}

.card-grid-stack .card h3 {
    margin-top: 0;
}

.card-marker {
    color: var(--orange);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .05em;
}

.card-marker-check {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--teal);
    font-size: .85rem;
}

.card-label {
    display: block;
    color: var(--muted);
    font-size: .85rem;
}

.card-arrow {
    display: block;
    margin-top: 6px;
    color: var(--orange);
}

.card-label + .card-arrow + h3 {
    margin-top: 6px;
}

.tone-dark .card {
    border-color: rgb(255 255 255 / 15%);
    background: rgb(255 255 255 / 3%);
}

.tone-dark .card-label {
    color: var(--on-dark-muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 6px 12px;
    border-radius: var(--pill);
    background: #f1f7f7;
    color: var(--teal);
    font-size: .75rem;
    overflow-wrap: anywhere;
}

/* ---------- Ubin & langkah ---------- */

.tiles {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    align-self: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tiles li {
    display: grid;
    place-items: center;
    min-height: 88px;
    padding: 16px 8px;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 12px;
    background: rgb(255 255 255 / 3%);
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
}

.tiles li:last-child {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--ink);
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.steps li {
    padding-top: 20px;
    border-top: 2px solid var(--aqua);
}

.steps h3 {
    margin-top: 16px;
    font-size: 1rem;
}

.steps p {
    margin-top: 6px;
    font-size: .88rem;
}

/* ---------- Kontak ---------- */

.contact-title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.contact-channels {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.contact-channel {
    display: grid;
    gap: 4px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .15s, transform .15s;
}

.contact-channel:hover {
    border-color: var(--aqua);
    transform: translateY(-2px);
}

.contact-channel-name {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-channel-value {
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -.02em;
}

.contact-channel-action {
    margin-top: 8px;
    color: var(--teal);
    font-size: .92rem;
    font-weight: 650;
}

.prepare {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--tint);
}

.prepare ul {
    margin: 16px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.prepare li + li {
    margin-top: 8px;
}

@media (max-width: 1100px) {
    .card-grid-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 960px) {
    :root {
        --section: 72px;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .statement-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    :root {
        --section: 56px;
    }

    .page-hero {
        padding: 48px 0;
    }

    .card-grid-split,
    .card-grid-stack,
    .card-grid-services,
    .steps {
        grid-template-columns: 1fr;
    }

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

    .card {
        padding: 22px;
    }
}

/* ---------- CTA penutup & footer ---------- */

.cta-band {
    padding: 72px 0;
    background: var(--teal);
    color: var(--on-dark);
}

.cta-row {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    align-items: end;
    gap: 48px;
}

.cta-band .kicker {
    color: var(--aqua-soft);
}

.cta-band h2 {
    max-width: 760px;
}

.cta-band .button {
    justify-self: end;
}

.site-footer {
    padding: 64px 0 24px;
    background: var(--ink);
    color: var(--on-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 64px;
}

.site-footer p {
    margin-top: 16px;
    color: var(--on-dark-muted);
    font-size: var(--text-sm);
}

.site-footer h2 {
    margin: 12px 0;
    font-size: .9rem;
    letter-spacing: 0;
}

.site-footer nav > a,
.footer-contact > a {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--on-dark-muted);
    font-size: var(--text-sm);
    transition: color .15s;
}

.footer-contact > a {
    color: var(--aqua-soft);
}

.site-footer nav > a:hover,
.footer-contact > a:hover {
    color: var(--on-dark);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 24px;
    margin-top: 48px;
    padding-top: 8px;
    border-top: 1px solid rgb(255 255 255 / 12%);
}

.site-footer .footer-bottom p {
    margin-top: 0;
}

.footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--on-dark-muted);
    font-size: var(--text-sm);
    transition: color .15s;
}

.footer-bottom a:hover {
    color: var(--on-dark);
}

/* ---------- Halaman error ---------- */

.error-page {
    padding: 120px 0;
}

.error-page p {
    margin-top: 16px;
}

/* ---------- Responsif ---------- */

@media (max-width: 1100px) {
    :root {
        --gutter: 24px;
    }

    .desktop-nav {
        gap: 16px;
    }

    .hero-grid {
        gap: 36px;
    }
}

@media (max-width: 960px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .mobile-nav summary {
        display: flex;
        align-items: center;
        min-height: var(--tap);
        padding: 0 16px;
        border: 1px solid var(--border);
        border-radius: var(--pill);
        background: var(--surface);
        font-size: var(--text-sm);
        font-weight: 650;
        list-style: none;
        cursor: pointer;
    }

    .mobile-nav summary::-webkit-details-marker {
        display: none;
    }

    .mobile-nav summary::after {
        content: "";
        width: 8px;
        height: 8px;
        margin-left: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform .15s;
    }

    .mobile-nav[open] summary::after {
        transform: translateY(2px) rotate(-135deg);
    }

    .mobile-nav nav {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        display: grid;
        gap: 4px;
        padding: 12px var(--gutter) 20px;
        border-bottom: 1px solid var(--border);
        background: var(--surface);
        box-shadow: 0 16px 32px rgb(19 42 50 / 10%);
    }

    .mobile-nav nav > a:not(.button) {
        display: flex;
        align-items: center;
        min-height: 48px;
        border-bottom: 1px solid #f1f5f5;
        font-weight: 500;
    }

    .mobile-nav nav > a[aria-current="page"] {
        color: var(--teal);
    }

    .mobile-nav .button {
        margin-top: 12px;
    }

    .hero-grid,
    .cta-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: 0;
    }

    .hero .orbit,
    .cta-band .button {
        justify-self: start;
    }

    .footer-grid {
        gap: 32px;
    }
}

@media (max-width: 640px) {
    :root {
        --gutter: 16px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero .orbit {
        justify-self: center;
    }

    .actions .button {
        flex: 1 1 100%;
    }

    .cta-band {
        padding: 56px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* ==========================================================================
   Konten dari database: kartu, daftar, filter, detail, harga (Task 7)
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.content-list .content-grid:first-child {
    margin-top: 0;
}

.content-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .2s, border-color .2s;
}

.content-card:hover {
    border-color: var(--aqua);
    transform: translateY(-3px);
}

.content-card-cover {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--tint);
}

.content-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ink), var(--teal) 60%, var(--aqua));
    color: rgb(255 255 255 / 85%);
    font-weight: 650;
    letter-spacing: -.03em;
}

.content-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 24px;
}

.content-card-meta {
    margin-bottom: 8px;
    color: var(--teal);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.content-card h3 {
    font-size: 1.2rem;
}

.content-card h3 a::after {
    /* Seluruh kartu bisa diklik lewat tautan judul. */
    position: absolute;
    inset: 0;
    content: "";
}

.content-card {
    position: relative;
}

.content-card-body > p:not(.content-card-meta) {
    margin-top: 10px;
    font-size: .95rem;
    line-height: 1.7;
}

.content-card .read-link {
    margin-top: auto;
    padding-top: 12px;
}

.collection-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px 32px;
}

.collection-heading .read-link {
    margin-top: 0;
}

.list-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filters a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: var(--pill);
    background: var(--surface);
    font-size: .9rem;
}

.filters a:hover {
    border-color: var(--aqua);
}

.filters a[aria-current="page"] {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--on-dark);
}

.search {
    display: flex;
    gap: 8px;
    width: min(100%, 360px);
}

.search input {
    flex: 1;
    min-width: 0;
    min-height: var(--tap);
    padding: 8px 14px;
    border: 1px solid #9fb4b6;
    border-radius: var(--pill);
    font: inherit;
}

.search-summary {
    margin: -12px 0 24px;
    font-size: .92rem;
}

.search-summary a,
.breadcrumb a,
.detail-hero .kicker a {
    color: var(--teal);
}

.empty-note {
    padding: 40px;
    border: 1px dashed #aac4c4;
    border-radius: var(--radius);
    text-align: center;
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    font-size: .92rem;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--teal);
    font-weight: 650;
}

.pagination a[rel="next"] {
    justify-self: end;
}

/* ---------- Detail ---------- */

.detail-shell {
    max-width: 900px;
}

.detail-hero {
    padding: 48px 0 40px;
}

.breadcrumb {
    margin-bottom: 24px;
    font-size: .9rem;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
}

.detail-hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}

.detail-byline {
    margin-top: 20px;
    font-size: .92rem;
}

.detail-byline strong {
    color: var(--ink);
}

.stage {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--pill);
    background: var(--tint);
    letter-spacing: .1em;
}

.stage-available {
    background: #ecf8f2;
    color: #11603f;
}

.stage-beta {
    background: #fff5e6;
    color: #8a5300;
}

.detail-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    object-fit: cover;
}

.detail-body {
    padding: 40px 0 72px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 0 0 40px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--tint);
}

.facts dt {
    color: var(--muted);
    font-size: .8rem;
}

.facts dd {
    margin: 2px 0 0;
    font-weight: 650;
}

.detail-cta {
    margin-top: 32px;
}

.detail-back {
    margin-top: 48px;
}

/* ---------- Harga produk ---------- */

.pricing-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.pricing-section h2 {
    font-size: 1.6rem;
}

.pricing-section > p {
    margin-top: 12px;
}

.price-single {
    color: var(--ink) !important;
    font-size: 1.6rem;
    font-weight: 650;
    letter-spacing: -.02em;
}

.packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.package-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.package-card.is-highlighted {
    border: 2px solid var(--teal);
    box-shadow: 0 16px 32px rgb(19 42 50 / 10%);
}

.package-badge {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 2px 12px;
    border-radius: var(--pill);
    background: var(--teal);
    color: var(--on-dark) !important;
    font-size: .75rem;
    font-weight: 650;
}

.package-price {
    margin-top: 8px;
    color: var(--ink) !important;
    font-size: 1.25rem;
    font-weight: 650;
}

.package-card ul {
    margin: 16px 0 24px;
    padding-left: 20px;
    color: var(--muted);
    font-size: .95rem;
}

.package-card li + li {
    margin-top: 6px;
}

.package-card .button {
    margin-top: auto;
}

.pricing-contact {
    margin-top: 28px !important;
}

@media (max-width: 960px) {
    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .search {
        width: 100%;
    }

    .detail-hero {
        padding: 32px 0 28px;
    }
}

/* ---------- Pratinjau admin (/admin/preview/...) ---------- */

.preview-ribbon {
    background: repeating-linear-gradient(-45deg, var(--orange), var(--orange) 14px, var(--orange-dark) 14px, var(--orange-dark) 28px);
    color: var(--ink);
    font-size: var(--text-sm);
}

.preview-ribbon p {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 16px;
    background: rgb(255 255 255 / .82);
    text-align: center;
}

.preview-ribbon a {
    color: var(--teal-dark);
    font-weight: 600;
}
