/* ============================================================
   PGRI CMS — Public stylesheet
   Elegant · Modern · Professional · Clean
   Identitas PGRI: biru · merah · emas · hijau
   ============================================================ */

:root {
    /* PGRI blue */
    --pgri-900: #0a2148;
    --pgri-800: #0e2f6b;
    --pgri-700: #123b82;
    --pgri-600: #1a4fa0;
    --pgri-500: #2a5fb4;
    --pgri-100: #e2eaf8;
    --pgri-50: #f2f6fc;

    /* PGRI red */
    --red-600: #c8102e;
    --red-500: #de1e3d;
    --red-700: #9e0f25;
    --red-300: #f0a1ae;
    --red-100: #fbe7ea;

    /* Gold / emas */
    --gold-600: #b8860b;
    --gold-500: #c9a227;
    --gold-400: #d9b34a;
    --gold-100: #f7eed2;

    /* Hijau (aksen logo) */
    --green-700: #0e7a3c;
    --green-100: #e6f4ec;

    --ink: #1d2634;
    --muted: #5c6675;
    --text: #1e293b;
    --text-muted: #64748b;
    --surface: #ffffff;
    --line: #e3e7ef;
    --bg: #ffffff;
    --bg-soft: #f6f8fb;

    --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", "Palatino Linotype", serif;

    --radius: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(10, 33, 72, .08);
    --shadow: 0 10px 30px -12px rgba(10, 33, 72, .22);
    --shadow-lg: 0 24px 50px -20px rgba(10, 33, 72, .38);
    --container: 1200px;
    --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.public-nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--pgri-700); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--red-600); }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .55em; color: var(--pgri-900); }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
h3 { font-size: 1.18rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--article { max-width: 1120px; }

/* Article layout: konten di kiri, TOC di kanan (desktop), TOC di atas (mobile) */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 4vw, 52px); align-items: start; }
.article-layout:not(.article-layout--with-toc) { grid-template-columns: 1fr; justify-items: center; }
.article-layout__main { min-width: 0; }
.article-layout__side { position: sticky; top: calc(var(--header-h, 80px) + 24px); min-width: 0; }
.article { width: 100%; max-width: 820px; }

.icon { width: 14px; height: 14px; vertical-align: -2px; }

/* Aksesibilitas: fokus & skip-link */
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 2px; }
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--red-600); color: #fff; font-weight: 700;
    padding: .7em 1.2em; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .78em 1.6em; border-radius: 999px;
    font-weight: 600; font-size: .95rem; line-height: 1;
    cursor: pointer; border: 2px solid transparent;
    transition: all .2s ease; white-space: nowrap;
}
.btn--primary { background: var(--pgri-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--pgri-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--red { background: linear-gradient(135deg, var(--red-500), var(--red-600)); color: #fff; box-shadow: 0 8px 20px -8px rgba(200, 16, 46, .55); }
.btn--red:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(200, 16, 46, .6); }
.btn--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #fff; box-shadow: 0 8px 20px -8px rgba(184, 134, 11, .65); }
.btn--gold:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(184, 134, 11, .7); }
.btn--outline { border-color: var(--pgri-700); color: var(--pgri-700); background: transparent; }
.btn--outline:hover { background: var(--pgri-700); color: #fff; }
.btn--sm { padding: .55em 1.15em; font-size: .85rem; }
.btn--lg { padding: 1em 2.1em; font-size: 1rem; }
.btn--block { display: flex; justify-content: center; width: 100%; }

/* ============================================================
   Pita identitas PGRI (garis atas situs)
   ============================================================ */
.identity-strip {
    height: 5px;
    background: linear-gradient(90deg, var(--pgri-700) 0 25%, var(--red-600) 25% 50%, var(--gold-500) 50% 75%, var(--green-700) 75% 100%);
}

/* ============================================================
   Top bar
   ============================================================ */
.topbar { background: var(--pgri-900); color: rgba(255, 255, 255, .82); font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; flex-wrap: wrap; padding-top: 2px; padding-bottom: 2px; }
.topbar__contact, .topbar__social { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 6px; padding: .25em 0; }
.topbar a:hover { color: var(--gold-400); }
.topbar__contact-item { min-width: 0; white-space: nowrap; }
.topbar__contact-item .icon { flex: 0 0 auto; }
.topbar__contact-item--email span { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.topbar__social > a { display: none; }

/* ============================================================
   Header / navigasi
   ============================================================ */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line);
    transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(10, 33, 72, .3); }
.header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 18px; }

.brand { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; color: var(--pgri-900); }
.brand:hover { color: var(--pgri-900); }
.brand__logo { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 6px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__text strong { font-size: 1.28rem; letter-spacing: .02em; color: var(--pgri-900); }
.brand__text small { color: var(--muted); font-size: .72rem; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; flex: 1 1 auto; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; }
.nav__link {
    position: relative; display: block; padding: .55em .8em;
    font-weight: 600; font-size: .95rem; color: var(--ink);
}
.nav__link::after {
    content: ""; position: absolute; left: .8em; right: .8em; bottom: .15em;
    height: 3px; background: var(--red-600); border-radius: 3px;
    transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--pgri-800); }
.nav__external { display: inline-block; margin-left: 3px; font-size: .78em; color: var(--gold-600); }
.nav__item { position: relative; }
.nav__link--trigger { border: 0; background: transparent; cursor: pointer; font-family: inherit; font-size: .95rem; font-weight: 600; line-height: inherit; text-align: left; appearance: none; -webkit-appearance: none; color: var(--ink); }
.nav__chevron { display: inline-block; margin-left: 6px; font-size: .9em; transition: transform .18s ease; }
.nav__item--has-children:focus-within .nav__chevron, .nav__link--trigger[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }
/* Main nav: letakkan chevron di dalam padding kanan item agar lebar & jarak
   antar-menu tetap seragam (tidak ikut menambah lebar tombol). */
.nav > .nav__list > .nav__item > .nav__link--trigger .nav__chevron { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin-left: 0; }
.nav > .nav__list > .nav__item--has-children:focus-within > .nav__link--trigger .nav__chevron,
.nav > .nav__list > .nav__item > .nav__link--trigger[aria-expanded="true"] .nav__chevron { transform: translateY(-50%) rotate(180deg); }
.nav__submenu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 210px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 18px 38px -18px rgba(10, 33, 72, .4); }
.nav__submenu[hidden] { display: none; }
.nav__submenu-list { display: grid; min-width: 190px; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__submenu .nav__link { display: block; width: 100%; padding: .7em .75em; border-radius: 7px; font-size: .88rem; text-align: left; white-space: nowrap; }
.nav__submenu .nav__link::after { display: none; }
.nav__submenu .nav__link:hover { background: var(--navy-50); color: var(--pgri-800); }
.nav__submenu .nav__link.active { background: var(--navy-50); color: var(--pgri-800); }
.topbar__menu { margin-left: 10px; }
.topbar__menu-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.topbar__menu .nav__link { padding: .2em .5em; color: rgba(255,255,255,.85); font-size: .75rem; }
.topbar__menu .nav__link::after { display: none; }
.topbar__menu .nav__link:hover { color: var(--gold-400); }
.topbar__menu .nav__submenu { top: calc(100% + 7px); right: 0; left: auto; }
.nav__toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    padding: 8px; cursor: pointer; border-radius: var(--radius);
}
.nav__toggle span { width: 24px; height: 2px; background: var(--pgri-900); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav__scrim { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; height: min(640px, 88vh); min-height: 480px; overflow: hidden; }
.hero--fallback { background-image: radial-gradient(1200px 500px at 85% -10%, rgba(201, 162, 39, .18), transparent 60%), linear-gradient(135deg, var(--pgri-900), var(--pgri-700)); }
.hero--fallback::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 26px 26px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }
.hero__slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    background-size: cover; background-position: center;
    transition: opacity .9s ease, visibility .9s ease;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__slide > .hero__overlay, .hero__slide > .hero__content { position: relative; z-index: 1; }
.hero__slide img { display: none; }
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(10, 33, 72, .93) 0%, rgba(10, 33, 72, .74) 42%, rgba(10, 33, 72, .3) 100%);
}
.hero__content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    color: #fff; max-width: 720px; margin-left: max(24px, calc((100vw - var(--container)) / 2));
    padding-right: 24px;
}
.hero__eyebrow {
    display: inline-flex; align-self: flex-start; align-items: center; gap: .5em;
    font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold-400); margin-bottom: 1.1rem;
}
.hero__eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold-500); }
.hero__title {
    color: #fff; margin: 0 0 .5em;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.6vw, 3.5rem);
    text-shadow: 0 3px 18px rgba(0, 0, 0, .35);
}
.hero__subtitle { font-size: clamp(1rem, 1.6vw, 1.14rem); max-width: 560px; margin: 0 0 1.9rem; color: rgba(255, 255, 255, .88); }

.hero__nav {
    position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
    z-index: 3; display: flex; align-items: center; gap: 14px;
}
.hero__arrow {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08);
    color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer;
    transition: all .2s ease;
}
.hero__arrow:hover { background: var(--red-600); border-color: var(--red-600); }
.hero__dots { display: flex; gap: 8px; }
.hero.is-paused .hero__arrow--prev,
.hero.is-paused .hero__arrow--next { opacity: .65; }
.hero__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: all .25s ease; padding: 0; }
.hero__dot.is-active { background: var(--gold-500); transform: scale(1.25); }

/* ============================================================
   Stats band
   ============================================================ */
.stats { background: linear-gradient(135deg, var(--pgri-800), var(--pgri-600)); position: relative; }
.stats::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--pgri-500) 0 25%, var(--red-500) 25% 50%, var(--gold-500) 50% 75%, var(--green-700) 75% 100%);
}
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
.stat { text-align: center; color: #fff; }
.stat__value { display: block; font-family: var(--font-serif); font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; color: var(--gold-400); }
.stat__label { font-size: clamp(.72rem, 1.4vw, .84rem); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding: clamp(56px, 7vw, 92px) 0; }
.section--tinted { background: var(--bg-soft); }
.section-eyebrow {
    display: inline-block; font-size: .76rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase; color: var(--red-600);
    margin-bottom: .7rem;
}
.section-title { margin-bottom: .35em; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3vw, 42px); }
.link-more { font-weight: 700; color: var(--pgri-700); font-size: .92rem; white-space: nowrap; }
.link-more:hover { color: var(--red-600); }

/* ============================================================
   Welcome
   ============================================================ */
.welcome__grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.welcome__media { position: relative; display: flex; flex-direction: column; align-items: center; }
.welcome__img { display: flex; justify-content: center; overflow: hidden; border-radius: var(--radius-lg); background: var(--pgri-50); box-shadow: var(--shadow-lg); }
.welcome__img { width: min(100%, 360px); }
.welcome__img img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; object-position: center; }
.welcome__content { max-width: 560px; padding-top: clamp(4px, 1.5vw, 18px); }
.welcome__content .section-title { max-width: 540px; font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.2; }
.welcome__lead { color: var(--muted); margin: 0 0 1.5rem; }
.welcome__list { list-style: none; margin: 0 0 1.9rem; padding: 0; display: grid; gap: .7rem; }
.welcome__list li { position: relative; padding-left: 1.6em; color: var(--ink); font-weight: 500; }
.welcome__list li::before { content: "◆"; position: absolute; left: 0; color: var(--red-600); font-size: .72rem; top: .42em; }

/* ============================================================
   Cards (grid berita)
   ============================================================ */
.grid { display: grid; gap: clamp(20px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 9.6; overflow: hidden; background: var(--pgri-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--pgri-100), var(--pgri-50));
    color: var(--pgri-700); font-weight: 700; letter-spacing: .1em;
}
.card__chip {
    position: absolute; left: 14px; top: 14px;
    background: var(--red-600); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    padding: .3em .85em; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.card__chip--dark { position: static; background: var(--pgri-800); display: inline-block; box-shadow: none; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .8rem; margin-bottom: .6rem; }
.card__views { color: var(--red-600); font-weight: 600; white-space: nowrap; }
.card__title { margin-bottom: .5rem; font-size: 1.16rem; }
.card__title a { color: var(--pgri-900); }
.card__title a:hover { color: var(--red-600); }
.card__excerpt { color: var(--muted); font-size: .92rem; margin: 0 0 1.1rem; flex: 1; }
.card__more { font-weight: 700; font-size: .86rem; color: var(--pgri-700); }
.card__more:hover { color: var(--red-600); }

/* ============================================================
   Artikel pilihan (row)
   ============================================================ */
.articles-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 28px); }
.feature {
    padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--pgri-800), var(--pgri-700));
    color: #fff; position: relative; overflow: hidden;
    border-top: 4px solid var(--red-600);
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature::after {
    content: "❝"; position: absolute; right: 18px; bottom: -34px;
    font-family: var(--font-serif); font-size: 8rem; color: rgba(255, 255, 255, .07);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; flex-wrap: wrap; }
.feature__date { color: rgba(255, 255, 255, .65); font-size: .8rem; }
.feature__title { margin-bottom: .6rem; font-size: 1.2rem; }
.feature__title a { color: #fff; }
.feature__title a:hover { color: var(--gold-400); }
.feature__excerpt { color: rgba(255, 255, 255, .82); font-size: .94rem; margin: 0 0 1.2rem; }
.feature__more { color: var(--gold-400); font-weight: 700; font-size: .88rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta { background: linear-gradient(135deg, var(--pgri-900), var(--pgri-700)); position: relative; overflow: hidden; }
.cta::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(217, 179, 74, .16) 1px, transparent 1px);
    background-size: 26px 26px; opacity: .5;
}
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(44px, 6vw, 64px) 0; }
.cta__title { color: #fff; margin-bottom: .3em; }
.cta__text { color: rgba(255, 255, 255, .8); margin: 0; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--pgri-900); color: rgba(255, 255, 255, .78); font-size: .92rem; }
.footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--pgri-500) 0 25%, var(--red-500) 25% 50%, var(--gold-500) 50% 75%, var(--green-700) 75% 100%); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: clamp(28px, 4vw, 48px); padding: clamp(44px, 6vw, 64px) 0 52px; }
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 1.1rem; }
.footer__brand img { border-radius: 6px; }
.footer__brand strong { display: block; color: #fff; font-size: 1.02rem; line-height: 1.25; }
.footer__brand span { color: var(--gold-400); font-size: .8rem; }
.footer__about { margin: 0; max-width: 380px; color: rgba(255, 255, 255, .66); }
.footer__title {
    color: #fff; font-size: .86rem; letter-spacing: .16em; text-transform: uppercase;
    margin-bottom: 1.2rem; position: relative; padding-bottom: .6rem;
}
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; background: var(--red-600); border-radius: 3px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__links a { color: rgba(255, 255, 255, .72); }
.footer__links a:hover { color: var(--gold-400); }
.footer__links--contact .ft-addr { color: rgba(255, 255, 255, .6); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: rgba(255, 255, 255, .5); }
.footer__admin a { color: rgba(255, 255, 255, .5); }
.footer__admin a:hover { color: var(--gold-400); }

/* ============================================================
   Page hero (halaman dalam)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--pgri-900), var(--pgri-600));
    color: #fff; padding: clamp(44px, 6vw, 68px) 0 clamp(40px, 5vw, 58px);
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(217, 179, 74, .14) 1px, transparent 1px);
    background-size: 26px 26px; opacity: .45;
}
.page-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--pgri-500) 0 25%, var(--red-500) 25% 50%, var(--gold-500) 50% 75%, var(--green-700) 75% 100%);
}
.page-hero .container { position: relative; }
.page-hero--compact { padding: clamp(36px, 5vw, 52px) 0 clamp(34px, 4.5vw, 48px); }
.page-hero__title { color: #fff; margin: .3rem 0 .4rem; font-family: var(--font-serif); }
.page-hero--post .page-hero__title--post { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.page-hero__lead { color: rgba(255, 255, 255, .82); max-width: 620px; margin: 0 0 .5rem; }
.page-hero__cats { margin-top: .6rem; }
.hero-cat {
    display: inline-block; background: rgba(255, 255, 255, .14); color: #fff;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
    padding: .25em 1em; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hero-cat:hover { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.page-hero__meta { display: flex; align-items: center; gap: .8em; flex-wrap: wrap; color: rgba(255, 255, 255, .72); font-size: .9rem; }
.page-hero__meta .sep { color: var(--gold-400); }

.breadcrumb { display: flex; align-items: center; gap: .6em; font-size: .8rem; color: rgba(255, 255, 255, .6); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255, 255, 255, .75); }
.breadcrumb a:hover { color: var(--gold-400); }

/* ============================================================
   Halaman Tentang
   ============================================================ */
.about__story { max-width: 860px; }
.about__story p { color: var(--muted); font-size: 1.05rem; }
.about__story strong { color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(24px, 3.5vw, 38px); box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--red-600);
}
.panel__text { color: var(--muted); margin: 0; font-size: 1.02rem; }
.panel__list { color: var(--muted); margin: 0; padding-left: 1.2em; }
.panel__list li { margin-bottom: .5rem; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.value { text-align: center; padding: 30px 22px; }.value__icon { color: var(--red-600); font-size: 1.2rem; }
.value h3 { margin: .8rem 0 .4rem; }
.value p { color: var(--muted); font-size: .9rem; margin: 0; }

.about__cta {
    margin-top: 64px; padding: clamp(32px, 5vw, 54px); text-align: center;
    background: linear-gradient(135deg, var(--pgri-800), var(--pgri-600));
    border-radius: var(--radius-lg); color: #fff; position: relative; overflow: hidden;
}
.about__cta::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--pgri-500) 0 25%, var(--red-500) 25% 50%, var(--gold-500) 50% 75%, var(--green-700) 75% 100%);
}
.about__cta .section-title { color: #fff; }
.about__cta p { color: rgba(255, 255, 255, .85); max-width: 520px; margin: .4rem auto 1.8rem; }

/* Tombol WhatsApp */
.btn--whatsapp { background: #128c4b; color: #fff; box-shadow: 0 8px 20px -8px rgba(18, 140, 75, .55); }
.btn--whatsapp:hover { background: #0e7540; color: #fff; transform: translateY(-1px); }

/* ============================================================
   Kontak
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact__info { display: grid; gap: 18px; }
.contact__card {
    display: flex; gap: 16px; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.contact__icon {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pgri-100); color: var(--pgri-700); font-size: 1.1rem;
}
.contact__card h3 { font-size: 1rem; margin-bottom: .2rem; }
.contact__card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ============================================================
   Forms
   ============================================================ */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 38px); box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__group { margin-bottom: 20px; }
.form__group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .45rem; color: var(--pgri-900); }
.form__group .req { color: var(--red-600); }
.form__group input[type="text"],
.form__group input[type="email"],
.form__group input[type="tel"],
.form__group input[type="password"],
.form__group input[type="number"],
.form__group input[type="datetime-local"],
.form__group input[type="url"],
.form__group input[type="search"],
.form__group input[type="file"],
.form__group select,
.form__group textarea {
    width: 100%; padding: .72em .95em; border: 1px solid #ccd3e2;
    border-radius: var(--radius); font: inherit; color: var(--ink);
    background: #fbfcfe; transition: border-color .2s ease, box-shadow .2s ease;
}
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
    outline: none; border-color: var(--pgri-600); box-shadow: 0 0 0 3px rgba(26, 79, 160, .14); background: #fff;
}
.form__group input[aria-invalid="true"], .form__group select[aria-invalid="true"], .form__group textarea[aria-invalid="true"] { border-color: var(--red-600); }
.form__group textarea { resize: vertical; }
.form__hint, .form__error { display: block; margin-top: .35rem; font-size: .78rem; line-height: 1.45; }
.form__hint { color: var(--muted); }
.form__error { color: var(--red-600); font-weight: 600; }
.form__group.is-invalid label { color: var(--red-600); }
.form__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.form__note { color: var(--muted); font-size: .82rem; margin: 0; }

/* ============================================================
   Alerts
   ============================================================ */
.alert { padding: .9em 1.2em; border-radius: var(--radius); font-size: .9rem; margin-bottom: 24px; }
.alert--success { background: var(--green-100); color: var(--green-700); border: 1px solid #b8e3c4; }
.alert--error { background: var(--red-100); color: var(--red-600); border: 1px solid #f5c3bd; }

/* ============================================================
   Halaman daftar berita/artikel
   ============================================================ */
.list-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(24px, 4vw, 44px); align-items: start; }
.post-list { display: grid; gap: 26px; }
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination__link {
    min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--pgri-700);
    font-weight: 600; font-size: .9rem; transition: all .2s ease;
}
.pagination__link:hover { border-color: var(--pgri-600); color: var(--pgri-600); }
.pagination__link.is-active { background: var(--pgri-700); border-color: var(--pgri-700); color: #fff; }
.pagination__ellipsis { color: var(--muted); padding: 0 4px; }
.post-row {
    display: grid; grid-template-columns: 300px 1fr; gap: 26px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; transition: box-shadow .22s ease;
}
.post-row:hover { box-shadow: var(--shadow); }
.post-row__media { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--pgri-100); }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-row:hover .post-row__media img { transform: scale(1.06); }
.post-row__ph {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--pgri-100), var(--pgri-50)); color: var(--pgri-700);
    font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem;
}
.post-row__body { padding: 22px 26px 24px 0; display: flex; flex-direction: column; }
.post-row__meta { display: flex; gap: 14px; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: .5rem; flex-wrap: wrap; }
.post-row__cat a { color: var(--red-600); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .74rem; }
.post-row__cat a:hover { color: var(--pgri-700); }
.post-row__title { font-size: 1.28rem; margin-bottom: .5rem; }
.post-row__title a { color: var(--pgri-900); }
.post-row__title a:hover { color: var(--red-600); }
.post-row__excerpt { color: var(--muted); font-size: .94rem; margin: 0 0 1rem; flex: 1; }
.post-row__more { font-weight: 700; font-size: .86rem; color: var(--pgri-700); }
.post-row__more:hover { color: var(--red-600); }

.sidebar { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.sidebar__title {
    font-size: 1rem; margin-bottom: 1rem; padding-bottom: .7rem;
    border-bottom: 2px solid var(--gold-100); position: relative;
}
.sidebar__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 42px; height: 3px; background: var(--red-600); border-radius: 3px; }
.sidebar__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.sidebar__cats a {
    display: flex; justify-content: space-between; padding: .55em .8em; border-radius: var(--radius);
    color: var(--ink); font-size: .92rem; font-weight: 500;
}
.sidebar__cats a:hover, .sidebar__cats a.is-active { background: var(--pgri-100); color: var(--pgri-800); }

.empty-state { text-align: center; padding: clamp(40px, 6vw, 64px) 20px; color: var(--muted); }
.empty-state__icon { font-size: 2.6rem; color: var(--line); display: block; margin-bottom: .6rem; }
.empty-state .btn { margin-top: 14px; }

/* ============================================================
   Detail artikel
   ============================================================ */
.article__figure { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.article__lead { font-size: 1.18rem; color: var(--pgri-800); font-weight: 500; margin: 0 0 1.8rem; }
.article__body { font-size: 1.06rem; }
.article__body p { margin: 0 0 1.4em; }
.article__body h2 {
    font-family: var(--font-serif); margin: 2em 0 .7em;
    padding-bottom: .4em; border-bottom: 1px solid var(--line);
}
.article__body ul, .article__body ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.article__body li { margin-bottom: .4em; }
.article__body a { color: var(--pgri-700); text-decoration: underline; text-underline-offset: 3px; }
.article__share { display: flex; align-items: center; gap: 14px; margin: 2.4rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.article__share span { font-weight: 700; color: var(--pgri-900); font-size: .9rem; }
.article__share a {
    background: var(--pgri-100); color: var(--pgri-800); font-size: .82rem; font-weight: 600;
    padding: .45em 1em; border-radius: 999px;
}
.article__share a:hover { background: var(--red-600); color: #fff; }
.article__back { margin-top: 2rem; }
.article__back a { color: var(--muted); font-size: .9rem; }
.article__back a:hover { color: var(--pgri-700); }

.related { margin-top: clamp(36px, 5vw, 56px); }
.related__title {
    font-size: 1.25rem; margin-bottom: 1.2rem; padding-bottom: .6rem;
    border-bottom: 2px solid var(--line); position: relative;
}
.related__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 48px; height: 3px; background: var(--red-600); border-radius: 3px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related__item {
    display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
    background: #fff; transition: box-shadow .2s ease, transform .2s ease;
}
.related__item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.related__meta { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--red-600); font-weight: 700; margin-bottom: .5rem; }
.related__title-sm { display: block; font-weight: 700; color: var(--pgri-900); line-height: 1.4; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 1; transform: none; }
.js-enabled .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js-enabled .reveal.reveal-pending { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Page layout + Table of contents
   ============================================================ */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--header-h, 80px) + 16px); }

.page-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 56px);
    padding: clamp(28px, 5vw, 56px) 0 0;
}
.page-layout--toc-top { grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 4vw, 52px); }
.page-layout__side { min-width: 0; }
.page-layout__toc { position: sticky; top: calc(var(--header-h, 80px) + 24px); align-self: start; min-width: 0; }
.page-layout__main { min-width: 0; }

.toc {
    position: static;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface, #fff);
    box-shadow: var(--shadow-sm, 0 4px 14px rgba(15, 23, 42, .06));
}
.toc[open] { box-shadow: var(--shadow, 0 10px 30px rgba(15, 23, 42, .1)); }
.toc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    border-radius: 12px;
    transition: background .18s ease;
}
.toc__summary::-webkit-details-marker { display: none; }
.toc__summary:hover { background: var(--bg-soft, #f8fafc); }
.toc__head { display: flex; align-items: center; gap: 8px; }
.toc__head .icon { width: 18px; height: 18px; color: var(--red-600); flex: none; }
.toc__head strong { font-size: 1.02rem; letter-spacing: .02em; }
.toc__toggle {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    background: var(--bg-soft, #f1f5f9);
    color: var(--red-600);
    transition: transform .25s ease, background .18s ease;
}
.toc__toggle .icon { width: 18px; height: 18px; }
.toc[open] .toc__toggle { transform: rotate(180deg); background: rgba(220, 38, 38, .1); }
.toc__body { padding: 2px 18px 16px; }
.toc__group { margin: 14px 0 6px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted, #64748b); }
.toc__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc__list--pages { margin-top: 2px; }
.toc__link {
    display: block;
    padding: 6px 10px;
    margin: 0 -10px;
    border-radius: 6px;
    border-left: 2px solid transparent;
    color: var(--text, #1e293b);
    font-size: .92rem;
    line-height: 1.45;
}
.toc__link:hover { color: var(--red-600); background: var(--bg-soft, #f1f5f9); }
.toc__link--page { color: var(--red-700, #b91c1c); font-weight: 600; }
.toc__link.active {
    color: var(--red-600);
    border-left-color: var(--red-600);
    background: rgba(220, 38, 38, .06);
    font-weight: 700;
}

.section--flush { padding: clamp(28px, 4vw, 48px) 0; }

/* ==== Post auto-TOC (accordion) ==== */
.post-toc {
    margin: 8px 0 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft, #f8fafc);
    overflow: hidden;
}
.post-toc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    cursor: pointer;
    list-style: none;
    transition: background .18s ease;
}
.post-toc__summary::-webkit-details-marker { display: none; }
.post-toc__summary:hover { background: var(--line, #e2e8f0); }
.post-toc__title { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted, #64748b); }
.post-toc__list { list-style: none; padding: 0 24px 20px; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
.post-toc__item { counter-increment: none; }
.post-toc__item a { color: var(--red-700, #b91c1c); font-weight: 600; font-size: .92rem; line-height: 1.5; }
.post-toc__item a:hover { text-decoration: underline; }
.post-toc__item--h3 { padding-left: 14px; }
.article-layout__side .post-toc__list { grid-template-columns: 1fr; gap: 4px; }
.post-toc__item--h3 a { font-weight: 500; color: var(--text, #1e293b); }

/* ==== Category bands (home) ==== */
.catband {
    padding: clamp(40px, 6vw, 72px) 0;
    background-image: url('../img/bgbatikpgri.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}
.catband::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .93);
}
.catband .container { position: relative; }

.mini-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini {
    padding: 26px 26px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm, 0 4px 14px rgba(15, 23, 42, .06));
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.mini:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, .1); }
.mini__meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--text-muted, #64748b); }
.mini__title { font-size: 1.08rem; line-height: 1.4; }
.mini__title a { color: var(--text, #1e293b); }
.mini__title a:hover { color: var(--red-600); }
.mini__excerpt { font-size: .9rem; color: var(--text-muted, #64748b); line-height: 1.6; margin: 0; }
.mini__more { margin-top: auto; font-weight: 700; font-size: .88rem; color: var(--red-600); }
.mini__more:hover { text-decoration: underline; }

/* ==== Ikrar page ==== */
.vow {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold-600, #d4a017);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm, 0 4px 14px rgba(15, 23, 42, .06));
}
.vow__intro { font-weight: 700; color: var(--red-700, #b91c1c); margin-bottom: 16px; }
.vow__list { margin: 0 0 0 18px; padding: 0; display: grid; gap: 12px; }
.vow__list li { padding-left: 6px; line-height: 1.7; }
.vow__list--long li { padding-bottom: 2px; }
.vow__sign { margin-top: 18px; font-style: italic; color: var(--text-muted, #64748b); }

.doc-download {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 24px 28px; margin: clamp(28px, 4vw, 48px) 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red-700, #b91c1c), var(--red-600));
    color: #fff;
}
.doc-download__title { color: #fff; font-size: 1.15rem; }
.doc-download__text { color: rgba(255, 255, 255, .85); margin: 4px 0 0; font-size: .92rem; }

/* ==== Dokumen page ==== */
.doclist { display: grid; gap: 14px; }
.doclist__item {
    display: flex; align-items: center; gap: 18px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm, 0 4px 14px rgba(15, 23, 42, .05));
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.doclist__item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 23, 42, .1); border-color: var(--red-300, #fca5a5); }
.doclist__icon {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 10px;
    color: var(--red-600);
    background: rgba(220, 38, 38, .08);
}
.doclist__icon svg { width: 24px; height: 24px; }
.doclist__body { min-width: 0; display: grid; gap: 3px; flex: 1; }
.doclist__label { font-size: 1rem; color: var(--text, #1e293b); line-height: 1.4; }
.doclist__desc { font-size: .86rem; color: var(--text-muted, #64748b); line-height: 1.5; }
.doclist__meta { flex: 0 0 auto; display: grid; gap: 4px; justify-items: end; }
.doclist__type {
    font-size: .7rem; font-weight: 800; letter-spacing: .1em;
    color: var(--red-600); background: rgba(220, 38, 38, .08);
    padding: 3px 8px; border-radius: 999px;
}
.doclist__size { font-size: .78rem; color: var(--text-muted, #64748b); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .grid--3, .articles-row { grid-template-columns: repeat(2, 1fr); }
    .values { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .welcome__grid { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 44px); }
    .hero__content { margin-left: 24px; }
    .mini-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
    :root { --header-h: 70px; }
    .topbar__inner { display: grid; grid-template-columns: 1fr; justify-content: stretch; gap: 2px; padding-top: 4px; padding-bottom: 4px; }
    .topbar__contact, .topbar__social { width: 100%; justify-content: space-between; gap: 10px; }
    .topbar__social { gap: 10px; }

    .nav__toggle { display: flex; }
    .nav__toggle { position: relative; z-index: 62; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0; z-index: 61;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; padding: 12px 24px 24px; max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        visibility: hidden; opacity: 0; pointer-events: none;
        transform: translateY(-18px) scale(.985); transform-origin: top center;
        transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, visibility 0s linear .34s;
        border-top: 3px solid var(--red-600);
    }
    .nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); transition-delay: 0s; }
    .nav__scrim { display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 60; border: 0; background: rgba(10, 33, 72, .32); opacity: 0; pointer-events: none; backdrop-filter: blur(0); transition: opacity .3s ease, backdrop-filter .3s ease; }
    .nav__scrim.is-visible { opacity: 1; pointer-events: auto; backdrop-filter: blur(3px); }
    .nav > .nav__list > .nav__item,
    .nav > .nav__cta { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
    .nav.is-open > .nav__list > .nav__item,
    .nav.is-open > .nav__cta { opacity: 1; transform: translateY(0); }
    .nav.is-open > .nav__list > .nav__item:nth-child(1) { transition-delay: .04s; }
    .nav.is-open > .nav__list > .nav__item:nth-child(2) { transition-delay: .07s; }
    .nav.is-open > .nav__list > .nav__item:nth-child(3) { transition-delay: .10s; }
    .nav.is-open > .nav__list > .nav__item:nth-child(4) { transition-delay: .13s; }
    .nav.is-open > .nav__list > .nav__item:nth-child(5) { transition-delay: .16s; }
    .nav.is-open > .nav__list > .nav__item:nth-child(6) { transition-delay: .19s; }
    .nav.is-open > .nav__cta { transition-delay: .23s; }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__link { padding: .8em 0; border-bottom: 1px solid var(--line); }
    .nav__link::after { display: none; }
    .nav__link.active { color: var(--red-600); }
    .nav__cta { margin-top: 14px; justify-content: center; }
    .nav__item--has-children { border-bottom: 0; }
    .nav__link--trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: .8em 0; }
    .nav > .nav__list > .nav__item > .nav__link--trigger .nav__chevron { position: static; transform: none; margin-left: 6px; }
    .nav > .nav__list > .nav__item--has-children:focus-within > .nav__link--trigger .nav__chevron,
    .nav > .nav__list > .nav__item > .nav__link--trigger[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }
    .nav__submenu { position: static; min-width: 0; padding: 0 0 8px 14px; border: 0; box-shadow: none; background: transparent; }
    .nav__submenu .nav__link { border: 0; padding: .65em 0; }
    .topbar__menu { display: none; }
    .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .cta__inner { flex-direction: column; text-align: center; }
    .two-col, .contact-grid { grid-template-columns: 1fr; }
    .list-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .page-layout { grid-template-columns: 1fr; }
    .page-layout--toc-top { grid-template-columns: 1fr; }
    .page-layout__side { order: 2; }
    .page-layout__toc { position: static; order: 1; }
    .toc { position: static; max-height: none; }
    .article-layout { grid-template-columns: 1fr; }
    .article-layout:not(.article-layout--with-toc) { justify-items: stretch; }
    .article-layout__side { position: static; order: -1; }
    .post-row { grid-template-columns: 1fr; }
    .post-row__body { padding: 20px 22px 24px; }
    .related__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .grid--3, .articles-row, .values, .footer__grid, .form__row { grid-template-columns: 1fr; }
    .mini-row { grid-template-columns: 1fr; }
    .post-toc__list { grid-template-columns: 1fr; }
    .doclist__item { flex-wrap: wrap; }
    .doclist__meta { justify-items: start; align-self: flex-start; }
    .hero { min-height: 420px; height: 72vh; }
    .hero__content { margin-right: 24px; }
    .hero__nav { bottom: 18px; }
    .section__head { flex-direction: column; align-items: flex-start; }
    .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
    .topbar__contact { align-items: center; gap: 8px 14px; }
    .topbar__contact-item { max-width: 100%; font-size: .72rem; }
    .topbar__contact-item--email { max-width: min(100%, 230px); }
    .topbar__social { justify-content: flex-start; }
    .brand__text small { display: none; }
    .card__body { padding: 18px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .nav, .nav__scrim, .nav > .nav__list > .nav__item, .nav > .nav__cta,
    .nav__toggle span { transition: none !important; }
}

.footer__social { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.62); font-size: .78rem; }
.footer__social > a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: rgba(255,255,255,.72); transition: background .18s ease, color .18s ease, transform .18s ease; }
.footer__social > a:hover { background: rgba(255,255,255,.12); color: var(--gold-400); transform: translateY(-2px); }
.footer__social .icon { width: 15px; height: 15px; }
@media (max-width: 560px) {
    .footer__social { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
