/* =============================================================
   public/assets/css/custom.css
   CMS Pengadilan Tinggi Bandung
   Design system: SK 127 DJU/2026 + GOV.UK · SGDS · kcmo.gov
   ─────────────────────────────────────────────────────────────
   TOC:
    1.  Bootstrap Overrides
    2.  CSS Variables (design tokens)
    3.  Reset & Base
    4.  Skip Link
    5.  Topbar  ← + search expand (§21 digabung sini)
    6.  Header  ← bg putih, garis merah 3px, morph BerAKHLAK/EVP, WBK/WBBM logo-link
    7.  [REMOVED — diganti section 20]
    8.  [REMOVED — diganti section 20]
    9.  Announcement Banner
   10.  Accessibility Toolbar
   11.  Footer  ← + gov logo area
   12.  Section Header Pattern
   13.  HOME — Hero Slider
   14.  HOME — Quick Links
   15.  HOME — Berita Terkini  ← sharp corners
   16.  HOME — Pengumuman Lokal
   17.  HOME — Dari Mahkamah Agung
   18.  HOME — Layanan Pengadilan  ← sharp corners
   19.  HOME — Widget IKM + IPK + Jam PTSP  ← sharp corners
   20.  Navbar & Mega Menu (Fase 7 — AKTIF)
   21.  Utilities & Helpers
   ============================================================= */


/* ── 1. BOOTSTRAP OVERRIDES ─────────────────────────────────── */
:root {
    --bs-primary:                  #9a2109;
    --bs-primary-rgb:              154, 33, 9;
    --bs-link-color:               #9a2109;
    --bs-link-color-rgb:           154, 33, 9;
    --bs-link-hover-color:         #7a1a07;
    --bs-link-decoration:          none;
    /* Sharp corners global — semua component ikut ini */
    --bs-border-radius:            0px;
    --bs-border-radius-sm:         0px;
    --bs-border-radius-lg:         0px;
    --bs-border-radius-xl:         0px;
    --bs-border-radius-pill:       50rem; /* pill tetap pill */
    --bs-font-sans-serif:          'Plus Jakarta Sans', 'Noto Sans', system-ui, sans-serif;
    --bs-body-font-family:         var(--bs-font-sans-serif);
    --bs-body-color:               #1e1e1c;
    --bs-body-bg:                  #ffffff;
    --bs-border-color:             #e8e3e0;
    --bs-border-color-translucent: rgba(0,0,0,.08);
}
.btn-primary {
    --bs-btn-bg:                   #9a2109;
    --bs-btn-border-color:         #9a2109;
    --bs-btn-hover-bg:             #7a1a07;
    --bs-btn-hover-border-color:   #7a1a07;
    --bs-btn-active-bg:            #6b1208;
    --bs-btn-color:                #ffffff;
    --bs-btn-hover-color:          #ffffff;
    --bs-btn-focus-shadow-rgb:     154, 33, 9;
    border-radius: 0;
}
.btn-outline-primary {
    --bs-btn-color:                #9a2109;
    --bs-btn-border-color:         #9a2109;
    --bs-btn-hover-bg:             #9a2109;
    --bs-btn-hover-color:          #ffffff;
    --bs-btn-focus-shadow-rgb:     154, 33, 9;
    border-radius: 0;
}
.btn { border-radius: 0; }
.card, .card-header, .card-footer,
.card-img, .card-img-top, .card-img-bottom { border-radius: 0 !important; }
.badge.bg-primary, .badge.text-bg-primary  { background-color: #9a2109 !important; }
.bg-primary     { background-color: #9a2109 !important; }
.text-primary   { color: #9a2109 !important; }
.border-primary { border-color: #9a2109 !important; }
.form-control:focus,
.form-select:focus    { border-color: #9a2109; box-shadow: 0 0 0 .2rem rgba(154,33,9,.2); }
.form-control, .form-select, .input-group { border-radius: 0 !important; }
.page-item.active .page-link { background-color: #9a2109; border-color: #9a2109; }
.page-link      { color: #9a2109; border-radius: 0; }
.page-link:hover { color: #7a1a07; }
.nav-tabs .nav-link.active { color: #9a2109; border-bottom-color: #9a2109; }
.alert-primary  { --bs-alert-color: #5c1406; --bs-alert-bg: #f5ebe8; --bs-alert-border-color: #e8b4a8; }


/* ── 2. CSS VARIABLES ───────────────────────────────────────── */
:root {
    /* Brand */
    --pt-red:        #9a2109;
    --pt-red-dark:   #7a1a07;
    --pt-red-hover:  #c4341a;
    --pt-red-light:  #f5ebe8;
    --pt-red-pale:   #fde8e8;

    /* Neutral */
    --pt-dark:       #1e1e1c;
    --pt-dark-2:     #2c2c2a;
    --pt-muted:      #888780;
    --pt-muted-2:    #b4b2a9;
    --pt-bg:         #f7f5f2;
    --pt-bg-white:   #ffffff;
    --pt-border:     #e8e3e0;

    /* Type */
    --pt-font:       'Plus Jakarta Sans', 'Noto Sans', system-ui, sans-serif;

    /* Layout heights */
    --topbar-h:      34px;
    --header-h:      80px;
    --nav-h:         56px;   /* satu variable, tidak ada --navbar-h lagi */

    /* Radius — 0 = sharp corners by design */
    --pt-radius:     0px;
    --pt-radius-sm:  0px;
    --pt-radius-lg:  0px;
    --pt-radius-pill: 50rem;

    /* Alias untuk inner-pages.css */
    --color-primary:       #9a2109;
    --color-primary-dark:  #7a1a07;
    --color-primary-light: #f5ebe8;
    --color-bg-soft:       #f7f5f2;

    /* Mega menu tokens (section 20) */
    --brand:          #9a2109;
    --brand-dark:     #7a1a07;
    --brand-light:    #f9ece8;
    --panel-shadow:   0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.08);
    --col-head-color: #6b7280;
    --link-hover-bg:  #f4f4f5;
    --transition:     200ms cubic-bezier(.4,0,.2,1);
}


/* ── 3. RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
html.font-large  { font-size: 18px; }
html.font-xlarge { font-size: 20px; }
html.high-contrast { filter: contrast(1.5); }
html.grayscale     { filter: grayscale(1); }
body {
    font-family: var(--pt-font);
    font-size: 1rem;
    color: var(--pt-dark);
    background-color: var(--pt-bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


/* ── 4. SKIP LINK ───────────────────────────────────────────── */
.skip-link {
    position: absolute; top: -100px; left: 16px; z-index: 9999;
    background: var(--pt-dark); color: #fff;
    padding: 10px 18px; font-size: .875rem; font-weight: 600;
    text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 0; outline: 3px solid #ffbf47; outline-offset: 2px; }

/* ── 5. TOPBAR ──────────────────────────────────────────────── */
/* Includes: masthead badge, kontak, lang switcher */

.topbar {
    background: var(--pt-dark);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}

/* Badge "RI" */
.topbar-ri-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--pt-red); color: #fff;
    font-size: .625rem; font-weight: 700; padding: 2px 6px; letter-spacing: .04em;
}
.topbar-official-text { font-size: .6875rem; color: #d3d1c7; }
.topbar-sep { width: 1px; height: 14px; background: #555; }

/* Kontak */
.topbar-contact-item {
    font-size: .6875rem; color: #c4c2b8; text-decoration: none;
    display: flex; align-items: center; gap: 4px; transition: color .15s;
}
.topbar-contact-item:hover { color: #ffffff; }

/* Lang switcher */
.topbar-lang { display: flex; gap: 4px; align-items: center; }
.lang-btn {
    font-size: .6875rem; font-weight: 600;
    padding: 2px 8px;
    border: 1px solid #6b6b66;
    color: #e5e3da; background: transparent;
    text-decoration: none; transition: all .15s;
    border-radius: var(--pt-radius-pill);
    display: flex; align-items: center; gap: 5px;
    line-height: 1;
}
.lang-btn:hover,
.lang-btn.active { background: var(--pt-red); border-color: var(--pt-red); color: #fff; }
.lang-btn .lang-flag { font-size: .85rem; line-height: 1; }


/* ── 6. HEADER ──────────────────────────────────────────────── */
/* Bg putih, garis merah 3px di bawah (token --pt-red, sama dgn --brand
   di mega-panel section 20 — sengaja reuse token yg sama, BUKAN duplikat,
   biar dua garis itu konsisten tanpa perlu disambung jadi 1 elemen DOM)
   Full-bleed container khusus header (beda dari container-xxl konten body)
   Logo institusi + BerAKHLAK/EVP (morph CSS-only) + WBK/WBBM (image, link RB) */

.site-header {
    background: #ffffff;
    border-bottom: 3px solid var(--pt-red);
    padding: 14px 0;
    min-height: var(--header-h);
    display: flex; align-items: center;
}

.header-container {
    max-width: none;
    width: 100%;
    padding: 0 2rem;
}

/* Logo institusi */
.header-logo-link { display: block; line-height: 0; }
.header-logo {
    width: auto; height: 52px; max-width: 52px;
    object-fit: contain; object-position: center; display: block;
}
.header-logo-placeholder {
    width: 52px; height: 52px; background: var(--pt-red-light);
    border: 1.5px solid var(--pt-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--pt-red); font-size: 1.375rem;
}

/* Identitas — teks gelap di atas putih (sebelumnya putih di atas merah) */
.header-sub     { font-size: .6875rem; color: var(--pt-dark); line-height: 1.3; }
.header-title   { font-size: 1.125rem; font-weight: 600; color: var(--pt-red); line-height: 1.2; }
.header-address { font-size: .6875rem; color: var(--pt-dark2); margin-top: 2px; }

/* BerAKHLAK + EVP — morph auto-loop CSS-only, satu bounding box, hemat tempat */
.header-gov-morph {
    position: relative;
    width: 130px; height: 32px;
    flex-shrink: 0; margin-left: auto;
}
.header-gov-morph-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain; object-position: right center;
}
.header-gov-morph-img--a { animation: govMorphA 8s ease-in-out infinite; }
.header-gov-morph-img--b { animation: govMorphB 8s ease-in-out infinite; }
@keyframes govMorphA {
    0%, 35%  { opacity: 1; transform: scale(1); }
    50%, 85% { opacity: 0; transform: scale(.92); }
    100%     { opacity: 1; transform: scale(1); }
}
@keyframes govMorphB {
    0%, 35%  { opacity: 0; transform: scale(.92); }
    50%, 85% { opacity: 1; transform: scale(1); }
    100%     { opacity: 0; transform: scale(.92); }
}
@media (prefers-reduced-motion: reduce) {
    /* Override eksplisit — bukan animation-duration global di section 21,
       karena infinite-loop yg cuma dipercepat ke .01ms = strobing, bukan berhenti */
    .header-gov-morph-img--a, .header-gov-morph-img--b { animation: none; }
    .header-gov-morph-img--a { opacity: 1; }
    .header-gov-morph-img--b { opacity: 0; }
}

/* WBK / WBBM — settings-driven, logo asli, link ke Zona Integritas */
.header-wbk-wrap { display: flex; gap: 5px; flex-shrink: 0; }
.header-wbk-logo { width: auto; object-fit: contain; border-radius: 50%; }
.header-wbk-wrap a:focus-visible {
    outline: 2px solid var(--pt-red); outline-offset: 2px;
}


/* ── 9. ANNOUNCEMENT BANNER ─────────────────────────────────── */
.announcement-banner { background: #fffbeb; border-bottom: 2px solid #f59e0b; padding: 9px 0; }
.ann-icon {
    width: 22px; height: 22px; background: #f59e0b;
    border-radius: 50%; /* lingkaran — pengecualian desain */
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .75rem; flex-shrink: 0;
}
.ann-text         { font-size: .8125rem; color: #92400e; }
.ann-text-prefix  { font-weight: 600; }
.ann-text-link    { color: var(--pt-red); text-decoration: underline; }
.ann-badge        { font-size: .625rem; font-weight: 600; padding: 2px 8px; }
.ann-badge--ma    { background: #dbeafe; color: #1e40af; }
.ann-badge--local { background: #fde68a; color: #78350f; }
.ann-close {
    background: none; border: none; color: #b45309;
    font-size: 1rem; cursor: pointer; padding: 3px 5px; line-height: 1;
}
.ann-close:hover { background: rgba(0,0,0,.06); }


/* ── 10. ACCESSIBILITY TOOLBAR ──────────────────────────────── */
.a11y-toolbar {
    position: fixed; right: 16px; bottom: 24px; z-index: 1040;
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.a11y-trigger {
    width: 46px; height: 46px; border-radius: 50%; /* FAB tetap lingkaran */
    background: var(--pt-red); border: 2px solid rgba(255,255,255,.3); color: #fff;
    font-size: 1.25rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(154,33,9,.4); transition: background .15s, transform .15s;
}
.a11y-trigger:hover { background: var(--pt-red-hover); transform: scale(1.05); }
.a11y-panel {
    background: #fff; border: .5px solid var(--pt-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.12); width: 220px; overflow: hidden;
}
.a11y-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; background: var(--pt-red); color: #fff;
}
.a11y-panel-title  { font-size: .8125rem; font-weight: 600; }
.a11y-panel-close  { background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; padding: 2px; }
.a11y-section { padding: 10px 12px; border-bottom: .5px solid var(--pt-border); }
.a11y-section:last-child { border-bottom: none; }
.a11y-section-label {
    display: block; font-size: .6875rem; font-weight: 600; color: var(--pt-muted);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px;
}
.a11y-btn-group { display: flex; gap: 5px; }
.a11y-btn {
    flex: 1; padding: 5px; border: 1px solid var(--pt-border);
    background: #fff; font-family: var(--pt-font); font-size: .8125rem;
    cursor: pointer; color: var(--pt-dark); transition: all .12s;
}
.a11y-btn.active, .a11y-btn:hover { background: var(--pt-red); border-color: var(--pt-red); color: #fff; }
.a11y-toggle-btn {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 0;
    background: none; border: none; cursor: pointer;
    font-size: .8125rem; font-family: var(--pt-font); color: var(--pt-dark); text-align: left;
}
.a11y-toggle-btn:hover { color: var(--pt-red); }
.a11y-toggle-state {
    margin-left: auto; font-size: .625rem; font-weight: 700;
    background: #e5e5e5; color: var(--pt-muted); padding: 2px 6px;
    border-radius: var(--pt-radius-pill);
}
.a11y-toggle-btn[aria-checked="true"] .a11y-toggle-state { background: var(--pt-red); color: #fff; }
.a11y-reset-btn {
    display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px 0;
    background: none; border: none; cursor: pointer;
    font-size: .8125rem; font-family: var(--pt-font); color: var(--pt-muted); transition: color .12s;
}
.a11y-reset-btn:hover { color: var(--pt-red); }


/* ── 11. FOOTER ─────────────────────────────────────────────── */
.site-footer  { background: var(--pt-dark); }
.footer-main  { padding: 28px 0 20px; }
.footer-logo  { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; }
.footer-logo-placeholder {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700; color: #d3d1c7;
}
.footer-org-sub  { font-size: .625rem; color: var(--pt-muted); }
.footer-org-name { font-size: .875rem; font-weight: 600; color: #d3d1c7; line-height: 1.3; }
.footer-address  { font-size: .8125rem; color: var(--pt-muted); font-style: normal; line-height: 1.9; }
.footer-contact-link { color: var(--pt-muted); text-decoration: none; transition: color .15s; }
.footer-contact-link:hover { color: #d3d1c7; }
.footer-socials { display: flex; gap: 6px; }
.footer-social-btn {
    width: 30px; height: 30px; background: rgba(255,255,255,.07);
    display: flex; align-items: center; justify-content: center;
    font-size: .875rem; color: var(--pt-muted); text-decoration: none; transition: all .15s;
}
.footer-social-btn:hover { background: var(--pt-red); color: #fff; }
.footer-col-title {
    font-size: .625rem; font-weight: 600; color: #d3d1c7; text-transform: uppercase;
    letter-spacing: .06em; margin-bottom: 10px; padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-links { display: flex; flex-direction: column; gap: 1px; }
.footer-link  {
    font-size: .8125rem; color: var(--pt-muted); text-decoration: none;
    padding: 3px 0; transition: color .15s; display: flex; align-items: center; gap: 4px;
}
.footer-link:hover  { color: #d3d1c7; }
.footer-ext-icon    { font-size: .625rem; opacity: .6; }
.footer-bottom      { border-top: 1px solid rgba(255,255,255,.05); padding: 12px 0; background: #161614; }
.footer-copy        { font-size: .75rem; color: #5f5e5a; }
.footer-badges      { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.footer-badge       {
    font-size: .625rem; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09); color: var(--pt-muted); padding: 2px 8px;
}
/* Logo BerAKHLAK + EVP di footer — silhouette putih, beda treatment dari header
   karena bg footer gelap (--pt-dark), bukan duplikat aturan header */
.footer-gov-logos { display: flex; gap: 12px; align-items: center; margin-top: 8px; opacity: .55; }
.footer-gov-logos img { height: 22px; width: auto; filter: brightness(0) invert(1); }
.footer-trust { display: flex; flex-direction: column; gap: 6px; }
.footer-trust-link {
    display: flex; align-items: center; gap: 6px;
    font-size: .8125rem; color: var(--pt-muted);
    text-decoration: none; transition: color .15s;
}
.footer-trust-link:hover { color: #d3d1c7; }
.footer-trust-logo { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }


/* ── 12. SECTION HEADER PATTERN ─────────────────────────────── */
.section-hd {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 16px;
}
.section-title {
    font-size: 1.0625rem; font-weight: 600; color: var(--pt-dark);
    display: flex; align-items: center; gap: 10px;
}
.section-title::before {
    content: ''; display: block; width: 4px; height: 18px;
    background: var(--pt-red); flex-shrink: 0;
}
.section-more-link {
    font-size: .8125rem; color: var(--pt-red); text-decoration: none;
    display: flex; align-items: center; gap: 3px; transition: gap .15s;
}
.section-more-link:hover { gap: 6px; }
.bg-alt   { background: var(--pt-bg) !important; }
.text-red { color: var(--pt-red) !important; }


/* ── 13. HOME — HERO SLIDER ──────────────────────────────────── */
.hero-section { position: relative; overflow: hidden; background: var(--pt-dark); min-height: clamp(260px,42vw,480px); }
.hero-swiper  { width: 100%; height: 100%; min-height: clamp(260px,42vw,480px); }
.hero-slide   { position: relative; overflow: hidden; }
.hero-slide-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.hero-slide-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg,rgba(20,5,3,.88) 0%,rgba(90,15,5,.6) 50%,rgba(20,5,3,.25) 100%);
}
.hero-slide-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; justify-content: flex-end;
    height: 100%; min-height: clamp(260px,42vw,480px); padding: 28px 32px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
    border-radius: var(--pt-radius-pill); /* exception: pill badge di hero */
    padding: 4px 12px; font-size: .6875rem; font-weight: 500;
    color: rgba(255,255,255,.92); margin-bottom: 10px;
    width: fit-content; backdrop-filter: blur(4px);
}
.hero-title {
    font-size: clamp(1.125rem,2.5vw,1.625rem); font-weight: 700; color: #fff;
    line-height: 1.25; margin-bottom: 8px; max-width: 580px; text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero-desc {
    font-size: clamp(.8125rem,1.2vw,.9375rem); color: rgba(255,255,255,.75);
    line-height: 1.6; max-width: 500px; margin-bottom: 18px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btn-primary {
    background: #fff; color: var(--pt-red); border: none;
    padding: 9px 20px; font-size: .875rem; font-weight: 600; font-family: var(--pt-font);
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px; transition: background .15s, color .15s;
}
.hero-btn-primary:hover { background: #f5ebe8; color: var(--pt-red-dark); }
.hero-btn-secondary {
    background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5);
    padding: 8px 18px; font-size: .875rem; font-family: var(--pt-font);
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px; transition: background .15s, border-color .15s;
}
.hero-btn-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); color: #fff; }
.hero-lock-badge {
    position: absolute; top: 14px; left: 16px; z-index: 3;
    background: rgba(0,0,0,.32); border-radius: var(--pt-radius-pill);
    padding: 3px 10px; font-size: .625rem; color: rgba(255,255,255,.7);
    display: flex; align-items: center; gap: 4px; backdrop-filter: blur(4px);
}
.hero-counter {
    position: absolute; top: 14px; right: 16px; z-index: 3;
    background: rgba(0,0,0,.32); border-radius: var(--pt-radius-pill);
    padding: 3px 10px; font-size: .625rem; color: rgba(255,255,255,.75); backdrop-filter: blur(4px);
}
.hero-section .swiper-pagination       { bottom: 16px; right: 20px; left: auto; width: auto; display: flex; gap: 5px; align-items: center; }
.hero-section .swiper-pagination-bullet { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); opacity: 1; margin: 0; transition: width .2s, background .2s; }
.hero-section .swiper-pagination-bullet-active { background: #fff; width: 32px; }
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev       { width: 36px; height: 36px; background: rgba(0,0,0,.35); border-radius: 50%; color: #fff; backdrop-filter: blur(4px); transition: background .15s; }
.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover { background: rgba(0,0,0,.6); }
.hero-section .swiper-button-next::after,
.hero-section .swiper-button-prev::after { font-size: .875rem; font-weight: 700; }


/* ── 14. HOME — QUICK LINKS ──────────────────────────────────── */
.quicklinks-section { background: var(--pt-red); }
.quicklinks-grid {
    display: grid; grid-template-columns: repeat(6,1fr);
    gap: 1px; background: rgba(0,0,0,.15);
}
@media (max-width: 767px) { .quicklinks-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 479px) { .quicklinks-grid { grid-template-columns: repeat(2,1fr); } }
.ql-item {
    background: var(--pt-red); padding: 14px 8px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-decoration: none; transition: background .15s;
}
.ql-item:hover { background: var(--pt-red-dark); }
.ql-icon-wrap {
    width: 38px; height: 38px; background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; color: #fff; transition: background .15s;
}
.ql-item:hover .ql-icon-wrap { background: rgba(255,255,255,.22); }
.ql-label { font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.92); line-height: 1.3; }
.ql-arrow { font-size: .625rem; color: rgba(255,255,255,.4); }


/* ── 15. HOME — BERITA TERKINI ───────────────────────────────── */
.news-section { padding: 36px 0; background: #fff; }
.news-grid    { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 16px; }
@media (max-width: 991px) { .news-grid { grid-template-columns: 1fr 1fr; } .news-card--featured { grid-column: 1 / -1; } }
@media (max-width: 575px)  { .news-grid { grid-template-columns: 1fr; } }

.news-card {
    background: #fff; border: .5px solid var(--pt-border);
    overflow: hidden; text-decoration: none;
    display: flex; flex-direction: column;
    transition: border-color .15s, box-shadow .15s;
}
.news-card:hover { border-color: var(--pt-red-hover); box-shadow: 0 4px 16px rgba(154,33,9,.1); }
.news-card-img  {
    position: relative; overflow: hidden; aspect-ratio: 16/9;
    background: var(--pt-bg); flex-shrink: 0;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-card-img img { transform: scale(1.03); }

/* Placeholder saat tidak ada thumbnail */
.news-card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--pt-red-light), var(--pt-bg));
}
.news-card-img-placeholder i { font-size: 2rem; color: var(--pt-red); opacity: .3; }

.news-cat-badge { position: absolute; top: 8px; left: 8px; font-size: .625rem; font-weight: 600; padding: 3px 8px; border-radius: var(--pt-radius-pill); }
.news-cat-badge--berita     { background: var(--pt-red-pale); color: var(--pt-red-dark); }
.news-cat-badge--pengumuman { background: #fef3c7; color: #78350f; }

.news-card-body    { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.news-card-date    { font-size: .6875rem; color: var(--pt-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 5px; }
.news-card-title   { font-weight: 600; color: var(--pt-dark); line-height: 1.4; margin-bottom: 6px; }
.news-card--featured .news-card-title { font-size: 1rem; }
.news-card--small .news-card-title    { font-size: .875rem; }
.news-card-excerpt {
    font-size: .8125rem; color: #5f5e5a; line-height: 1.55; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card--small .news-card-excerpt { display: none; }
.news-card-read {
    font-size: .8125rem; color: var(--pt-red);
    display: flex; align-items: center; gap: 4px;
    margin-top: 10px; font-weight: 500; transition: gap .15s;
}
.news-card:hover .news-card-read { gap: 7px; }


/* ── 16. HOME — PENGUMUMAN LOKAL ─────────────────────────────── */
.pengumuman-section { padding: 0 0 36px; background: var(--pt-bg); }
.pengumuman-card    { background: #fff; border: .5px solid var(--pt-border); padding: 16px; }
.peng-list { display: flex; flex-direction: column; }
.peng-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 11px 0;
    border-bottom: .5px solid #f5f0ee; text-decoration: none; transition: background .12s;
}
.peng-item:last-child { border-bottom: none; padding-bottom: 0; }
.peng-item:hover {
    background: var(--pt-red-light);
    margin: 0 -16px; padding-left: 16px; padding-right: 16px;
}
.peng-date-box { background: var(--pt-red-light); padding: 6px 9px; text-align: center; flex-shrink: 0; min-width: 44px; }
.peng-day   { font-size: 1.125rem; font-weight: 700; color: var(--pt-red); line-height: 1; display: block; }
.peng-month { font-size: .5625rem; font-weight: 600; color: var(--pt-red-hover); text-transform: uppercase; display: block; margin-top: 1px; }
.peng-content   { flex: 1; min-width: 0; }
.peng-title-row { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.peng-title     { font-size: .875rem; font-weight: 500; color: var(--pt-dark); line-height: 1.4; flex: 1; min-width: 0; }
.peng-item:hover .peng-title { color: var(--pt-red); }
.peng-new  { font-size: .5625rem; font-weight: 700; background: var(--pt-red-pale); color: var(--pt-red-dark); padding: 2px 6px; border-radius: var(--pt-radius-pill); flex-shrink: 0; white-space: nowrap; }
.peng-meta { font-size: .6875rem; color: var(--pt-muted); display: flex; align-items: center; gap: 6px; }


/* ── 17. HOME — DARI MAHKAMAH AGUNG ─────────────────────────── */
.ma-section { padding: 36px 0; background: #fff; }
.ma-tabs-nav { display: flex; gap: 0; border-bottom: 2px solid var(--pt-border); margin-bottom: 14px; }
.ma-tab-btn {
    padding: 8px 18px; font-size: .875rem; font-weight: 500; color: var(--pt-muted);
    background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
    cursor: pointer; font-family: var(--pt-font); transition: color .15s, border-color .15s;
}
.ma-tab-btn:hover  { color: var(--pt-red); }
.ma-tab-btn.active { color: var(--pt-red); border-bottom-color: var(--pt-red); }
.ma-tab-content        { display: none; }
.ma-tab-content.active { display: block; }
.ma-rss-badge-global   { font-size: .6875rem; background: #dbeafe; color: #1e40af; padding: 2px 8px; font-weight: 500; }
.ma-list { display: flex; flex-direction: column; }
.ma-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 0;
    border-bottom: .5px solid #f7f5f2; text-decoration: none; transition: background .12s;
}
.ma-item:last-child { border-bottom: none; }
.ma-item:hover { background: var(--pt-red-light); margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
.ma-item-dot   { width: 6px; height: 6px; border-radius: 50%; background: var(--pt-red); flex-shrink: 0; }
.ma-item-title { font-size: .875rem; color: var(--pt-dark-2); flex: 1; line-height: 1.4; min-width: 0; }
.ma-item:hover .ma-item-title { color: var(--pt-red); }
.ma-item-rss   { font-size: .5625rem; background: #dbeafe; color: #1e40af; padding: 1px 5px; font-weight: 600; flex-shrink: 0; }
.ma-item-date  { font-size: .6875rem; color: var(--pt-muted); white-space: nowrap; flex-shrink: 0; }


/* ── 18. HOME — LAYANAN PENGADILAN ──────────────────────────── */
.layanan-section { padding: 36px 0; background: var(--pt-bg); }
.layanan-grid    { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media (max-width: 991px) { .layanan-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 479px) { .layanan-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.layanan-card {
    background: #fff; border: .5px solid var(--pt-border);
    padding: 18px 14px; text-align: center; text-decoration: none;
    display: flex; flex-direction: column; align-items: center;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.layanan-card:hover { border-color: var(--pt-red); box-shadow: 0 4px 16px rgba(154,33,9,.08); transform: translateY(-2px); }
.layanan-icon-wrap {
    width: 48px; height: 48px; background: var(--pt-red-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.375rem; color: var(--pt-red); margin-bottom: 11px; transition: background .15s;
}
.layanan-card:hover .layanan-icon-wrap { background: var(--pt-red-pale); }
.layanan-title { font-size: .9375rem; font-weight: 600; color: var(--pt-dark); margin-bottom: 5px; }
.layanan-desc  { font-size: .8125rem; color: var(--pt-muted); line-height: 1.5; flex: 1; }
.layanan-arrow {
    font-size: .875rem; color: var(--pt-red); margin-top: 10px;
    display: flex; align-items: center; gap: 3px; font-weight: 500; transition: gap .15s;
}
.layanan-card:hover .layanan-arrow { gap: 6px; }


/* ── 19. HOME — WIDGET IKM + IPK + JAM PTSP ─────────────────── */
.widget-section { padding: 36px 0; background: var(--pt-bg); }
.widget-grid    { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 991px) { .widget-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px)  { .widget-grid { grid-template-columns: 1fr; } }
.widget-card { background: #fff; border: .5px solid var(--pt-border); padding: 18px; }
.widget-head  { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.widget-head-icon {
    width: 34px; height: 34px; background: var(--pt-red-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--pt-red); flex-shrink: 0;
}
.widget-head-icon--green { background: #d1fae5; color: #065f46; }
.widget-head-title { font-size: .9375rem; font-weight: 600; color: var(--pt-dark); line-height: 1.3; }
.ikm-score-row { display: flex; align-items: baseline; gap: 5px; margin-bottom: 4px; }
.ikm-score-num { font-size: 2.25rem; font-weight: 700; color: var(--pt-red); line-height: 1; }
.ikm-score-max { font-size: .875rem; color: var(--pt-muted-2); }
.ikm-sub       { font-size: .75rem; color: var(--pt-muted); margin-bottom: 10px; }
.ikm-bar       { height: 6px; background: var(--pt-red-light); overflow: hidden; margin-bottom: 8px; }
.ikm-bar-fill  { height: 100%; background: var(--pt-red); transition: width .6s ease; }
.ikm-stars     { display: flex; gap: 3px; margin-bottom: 5px; }
.ikm-star      { font-size: .9375rem; color: var(--pt-red); }
.ikm-star-empty{ font-size: .9375rem; color: #e8ddd8; }
.ikm-predikat  { font-size: .8125rem; color: var(--pt-muted); }
.ikm-predikat strong { color: #166534; }
.ipk-score-row { display: flex; align-items: baseline; gap: 5px; margin-bottom: 4px; }
.ipk-score-num { font-size: 2.25rem; font-weight: 700; color: #0f766e; line-height: 1; }
.ipk-score-max { font-size: .875rem; color: var(--pt-muted-2); }
.ipk-sub       { font-size: .75rem; color: var(--pt-muted); margin-bottom: 10px; }
.ipk-bar       { height: 6px; background: #d1fae5; overflow: hidden; margin-bottom: 6px; }
.ipk-bar-fill  { height: 100%; background: #0f766e; transition: width .6s ease; }
.ipk-scale     { display: flex; justify-content: space-between; font-size: .625rem; color: var(--pt-muted); margin-bottom: 8px; }
.ipk-badge     { display: inline-block; font-size: .6875rem; font-weight: 600; background: #d1fae5; color: #065f46; padding: 3px 10px; border-radius: var(--pt-radius-pill); margin-bottom: 6px; }
.ipk-note      { font-size: .75rem; color: var(--pt-muted); line-height: 1.5; }
.ptsp-rows     { display: flex; flex-direction: column; }
.ptsp-row      { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: .5px solid #f5f0ee; font-size: .875rem; gap: 8px; }
.ptsp-row:last-child { border-bottom: none; }
.ptsp-day     { color: #444; font-weight: 500; flex-shrink: 0; }
.ptsp-time    { color: var(--pt-muted); }
.ptsp-closed  { color: var(--pt-muted-2); font-style: italic; }
.ptsp-open-badge { font-size: .5625rem; font-weight: 600; background: #dcfce7; color: #166534; padding: 2px 6px; border-radius: var(--pt-radius-pill); flex-shrink: 0; }
.ptsp-location {
    margin-top: 10px; padding: 8px 10px; background: var(--pt-red-light);
    font-size: .75rem; color: var(--pt-red-dark);
    display: flex; align-items: flex-start; gap: 5px; line-height: 1.5;
}


/* ── 20. NAVBAR & MEGA MENU (Fase 7) ────────────────────────── */
/* White sticky navbar, click-toggle, getBoundingClientRect positioning */

.main-navbar {
    position: sticky;
    top: 0; z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    height: var(--nav-h);
    display: flex; align-items: stretch;
    transition: box-shadow var(--transition);
}
.main-navbar[data-scrolled="true"] { box-shadow: 0 2px 16px rgba(0,0,0,.10); }

/* Desktop nav list */
.navbar-menu { display: flex; align-items: stretch; gap: 0; height: 100%; }
.navbar-item { position: relative; display: flex; align-items: stretch; }

/* Nav link */
.navbar-link {
    display: flex; align-items: center; gap: 4px;
    padding: 0 14px; font-size: .9rem; font-weight: 500; color: #374151;
    text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap;
    transition: color var(--transition), border-color var(--transition); cursor: pointer;
}
.navbar-link:hover,
.navbar-link:focus-visible         { color: var(--brand); outline: none; }
.navbar-link.is-active,
.navbar-item.is-active > .navbar-link,
.navbar-item.is-panel-open > .navbar-link { color: var(--brand); border-bottom-color: var(--brand); }
.navbar-chevron { font-size: .7rem; transition: transform var(--transition); }
.navbar-link[aria-expanded="true"] .navbar-chevron { transform: rotate(180deg); }

/* Backdrop */
.nav-backdrop {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,.8); opacity: 0; transition: opacity var(--transition);
}
.nav-backdrop.is-visible { opacity: 1; }

/* Navbar Search */
.navbar-search-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    height: 100%;
    color: #6b7280;
    font-size: .875rem;
    font-family: inherit;
    text-decoration: none;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

/* Mega Panel — border-top 3px solid var(--brand): sengaja reuse token yang
   sama dengan .site-header border-bottom, biar dua garis itu satu bahasa
   visual walau beda elemen DOM (lihat catatan di section 6) */
.mega-panel {
    position: fixed; left: 0; right: 0; z-index: 1001;
    background: #fff; border-top: 3px solid var(--brand); border-bottom: 1px solid #e5e7eb;
    box-shadow: var(--panel-shadow);
    opacity: 0; transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
}
.mega-panel.is-open { opacity: 1; transform: translateY(0); pointer-events: all; }

.mega-inner   { display: flex; align-items: flex-start; padding: 28px 0 32px; }
.mega-columns { display: flex; flex: 1; min-width: 0; }
.mega-col {
    flex: 1; padding: 0 20px; border-right: 1px solid #f3f4f6; min-width: 0;
}
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child  { border-right: none; }

.mega-col-head {
    display: flex; align-items: center; gap: 7px;
    font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    color: var(--col-head-color); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #f3f4f6;
}
.mega-col-head i { font-size: .95rem; color: var(--brand); }

.mega-link {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; margin: 1px 0;
    font-size: .875rem; color: #374151; text-decoration: none;
    transition: background var(--transition), color var(--transition); line-height: 1.4;
}
.mega-link:hover,
.mega-link:focus-visible { background: var(--link-hover-bg); color: var(--brand); outline: none; }
.mega-link.is-active     { background: var(--brand-light); color: var(--brand); font-weight: 500; }
.mega-external { font-size: .7rem; opacity: .5; margin-left: auto; flex-shrink: 0; }

/* Featured card */
.mega-featured { width: 260px; flex-shrink: 0; padding-left: 24px; border-left: 1px solid #f3f4f6; }
.mega-card     { background: var(--brand-light); padding: 20px; height: 100%; }
.mega-card--cta { background: var(--brand); color: #fff; }
.mega-card--cta .mega-card-eyebrow,
.mega-card--cta .mega-card-body { color: rgba(255,255,255,.9); }
.mega-card-eyebrow {
    font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    color: var(--brand); margin-bottom: 8px; display: flex; align-items: center; gap: 5px;
}
.mega-card-icon-wrap { font-size: 2.2rem; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.mega-card-body { font-size: .82rem; color: #4b5563; line-height: 1.55; margin: 8px 0 14px; }
.mega-card-img {
    width: 100%; height: 110px; object-fit: cover; margin-bottom: 12px;
}
.mega-card-img-placeholder {
    width: 100%; height: 110px; background: #e9d5ce;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--brand); margin-bottom: 12px;
}
.mega-card-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: #fff; color: var(--brand); font-size: .8rem; font-weight: 600;
    padding: 7px 14px; border-radius: var(--pt-radius-pill); /* pill CTA */
    text-decoration: none; transition: background var(--transition), transform var(--transition); margin-top: 4px;
}
.mega-card--cta .mega-card-btn:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }
.mega-card-link {
    display: inline-flex; align-items: center; gap: 5px; color: var(--brand);
    font-size: .82rem; font-weight: 600; text-decoration: none;
    transition: gap var(--transition); margin-top: 4px;
}
.mega-card-link:hover { gap: 8px; }
.mega-card-quicklinks { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.mega-ql-item {
    display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--brand);
    text-decoration: none; padding: 5px 8px; background: #fff; transition: background var(--transition);
}
.mega-ql-item:hover { background: #f0e4e1; }
.mega-ql-item i { font-size: .85rem; }
.mega-card-info {
    display: flex; align-items: flex-start; gap: 8px; font-size: .78rem; color: #6b7280; line-height: 1.5;
    border-top: 1px solid rgba(154,33,9,.15); padding-top: 10px; margin-top: 4px;
}
.mega-card-info i { font-size: .95rem; color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.mega-card-badges { display: flex; gap: 8px; margin-bottom: 12px; }
.mega-badge {
    display: inline-block; padding: 4px 10px; font-size: .75rem; font-weight: 700;
    letter-spacing: .04em; background: rgba(255,255,255,.25); color: #fff;
    border: 1px solid rgba(255,255,255,.4);
}
.mega-badge--gold { background: rgba(255,215,0,.3); border-color: rgba(255,215,0,.6); color: #ffe066; }

/* Simple dropdown */
.nav-dropdown {
    position: absolute; top: calc(100% + 1px); left: 0; min-width: 220px;
    background: #fff; border: 1px solid #e5e7eb; border-top: 3px solid var(--brand);
    box-shadow: var(--panel-shadow); padding: 6px 0;
    opacity: 0; transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none; z-index: 1001;
}
.nav-dropdown.is-open { opacity: 1; transform: translateY(0); pointer-events: all; }
.nav-dropdown-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 16px;
    font-size: .875rem; color: #374151; text-decoration: none; transition: background var(--transition);
}
.nav-dropdown-item:hover { background: var(--link-hover-bg); color: var(--brand); }

/* Mobile toggler */
.mobile-toggler {
    background: none; border: none; font-size: 1.5rem; color: #374151;
    padding: 8px; cursor: pointer; display: flex; align-items: center;
    transition: color var(--transition); border-radius: 0;
}
.mobile-toggler:hover { color: var(--brand); background: var(--brand-light); }

/* Mobile drawer */
.mobile-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(340px,90vw); background: #fff; z-index: 1100;
    overflow-y: auto; transform: translateX(100%);
    transition: transform 280ms cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 3px solid var(--brand);
    position: sticky; top: 0; background: #fff; z-index: 1;
}
.mobile-drawer-title { font-size: 1rem; font-weight: 600; color: var(--brand); }
.mobile-close {
    background: none; border: none; font-size: 1.25rem; cursor: pointer;
    color: #6b7280; padding: 4px; transition: color var(--transition);
}
.mobile-close:hover { color: var(--brand); }
.mobile-nav-item { border-bottom: 1px solid #f3f4f6; }
.mobile-nav-link,
.mobile-nav-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 14px 20px; font-size: .9rem; font-weight: 500; color: #374151;
    text-decoration: none; background: none; border: none; cursor: pointer;
    text-align: left; transition: color var(--transition), background var(--transition);
}
.mobile-nav-link.is-active,
.mobile-nav-btn.is-active        { color: var(--brand); background: var(--brand-light); }
.mobile-nav-link:hover,
.mobile-nav-btn:hover            { background: var(--link-hover-bg); }
.mobile-chevron                  { font-size: .75rem; transition: transform var(--transition); }
.mobile-nav-btn[aria-expanded="true"] .mobile-chevron { transform: rotate(180deg); }
.mobile-accordion                { background: #fafafa; border-top: 1px solid #f3f4f6; padding: 8px 0; }
.mobile-acc-section              { margin-bottom: 4px; }
.mobile-acc-heading {
    display: flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    color: var(--col-head-color); padding: 10px 24px 4px;
}
.mobile-acc-heading i { color: var(--brand); }
.mobile-acc-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 24px 9px 30px; font-size: .85rem; color: #4b5563;
    text-decoration: none; transition: color var(--transition), background var(--transition);
}
.mobile-acc-link:hover { color: var(--brand); background: var(--brand-light); }
.mobile-search-item { border-top: 2px solid #f3f4f6; }

@media (max-width: 1200px) {
    .mega-featured { width: 220px; }
    .navbar-link   { padding: 0 10px; font-size: .85rem; }
}
.search-modal {
    position: fixed; top: 12vh; left: 50%;
    width: min(800px, 92vw);
    z-index: 1101;
    background: #fff;
    box-shadow: var(--panel-shadow);
    padding: 28px 28px 20px;
    transform: translate(-50%, -12px);
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
}
.search-modal.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: all; }

.search-modal-form { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--pt-red); padding-bottom: 14px; }
.search-modal-icon { font-size: 1.25rem; color: var(--pt-red); flex-shrink: 0; }
.search-modal-input { flex: 1; border: none; outline: none; font-size: 1.25rem; font-family: var(--pt-font); color: var(--pt-dark); background: transparent; }
.search-modal-input::placeholder { color: var(--pt-muted-2); }
.search-modal-close { background: none; border: none; cursor: pointer; color: var(--pt-muted); font-size: 1rem; padding: 4px; flex-shrink: 0; transition: color .15s; }
.search-modal-close:hover { color: var(--pt-red); }
.search-modal-hint { margin: 12px 0 0; font-size: .75rem; color: var(--pt-muted); }
.search-modal-hint kbd {
    background: var(--pt-bg);
    border: 1px solid var(--pt-border);
    color: var(--pt-dark);
    padding: 1px 6px;
    font-size: .6875rem;
    font-family: var(--pt-font);
}

/* ── 21. UTILITIES & HELPERS ─────────────────────────────────── */
.home-section-pad { padding: 36px 0; }
@media (max-width: 767px) { .home-section-pad { padding: 24px 0; } }

.section-divider { height: 1px; background: var(--pt-border); margin: 0; }

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

/* Fade-up scroll animation */
@media (prefers-reduced-motion: no-preference) {
    .fade-up { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; }
    .fade-up.visible { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Navbar search button + label */
.navbar-search-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    height: 100%;
    color: #6b7280;
    font-size: .875rem;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
}
.navbar-search-btn:hover {
    color: var(--brand);
    border-bottom-color: var(--brand);
}
.navbar-search-label {
    font-size: .9rem;
    font-weight: 500;
}

/* ── END ──────────────────────────────────────────────────────── */