/* ============================================================================
   E-Khanza — Standardized Royal Emerald & Gold Design System (Inner Pages)
   Palette: Emerald (#064e3b), Dark (#03251d), Gold (#d4af37 / #ffe29a), Ivory (#fbf9f5)
   Typography: Cinzel (Display) + Plus Jakarta Sans (Body)
   ISO 9241 & WCAG 2.1 AA Compliant
   ============================================================================ */

:root {
    --emerald: #064e3b;
    --dark: #03251d;
    --gold: #d4af37;
    --gold-light: #ffe29a;
    --ivory: #fbf9f5;
    --muted: #a8c3b9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ivory);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(ellipse at 80% 30%, #126149, #03251d 65%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { width: 17px; height: 17px; vertical-align: middle; }
.container { width: min(1440px, 94%); margin: auto; }

/* UNIFIED GLASSMORPHISM FLOATING TOP NAVIGATION BAR (Matches Homepage /) */
.ek-top-zone {
    position: relative;
    background:
      linear-gradient(180deg, rgba(1, 26, 20, 0.92) 0%, rgba(3, 37, 29, 0.72) 42%, rgba(3, 37, 29, 0.92) 100%),
      url('/dist/images/source/rumoh-aceh.jpg') center 38% / cover;
    overflow: hidden;
    padding-top: 16px;
    border-bottom: 1px solid #d4af3738;
}
.ek-header {
    position: relative;
    z-index: 100;
    padding: 0 16px;
}
.ek-navbar {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(4, 34, 26, 0.86) 0%, rgba(7, 56, 43, 0.76) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(245, 200, 81, 0.34);
    box-shadow:
      0 14px 36px rgba(0, 0, 0, 0.36),
      inset 0 1px 0 rgba(255, 240, 179, 0.18);
}
.ek-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: #ffffff;
    flex-shrink: 0;
}
.ek-brand:hover { color: #ffffff; }
.ek-brand-emblem {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(245, 200, 81, 0.42));
}
.ek-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.ek-brand-title {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}
.ek-brand-sub {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(214, 240, 230, 0.82);
    letter-spacing: 0.01em;
    margin-top: 2px;
}
.ek-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ek-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    min-height: 40px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(235, 248, 243, 0.9);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.22s ease;
    border: 1px solid transparent;
}
.ek-nav-links a:hover,
.ek-nav-links a:focus-visible {
    color: #fef08a;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}
.ek-nav-links a.active {
    color: #fde68a;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(245, 200, 81, 0.18), rgba(6, 78, 59, 0.55));
    border-color: rgba(245, 200, 81, 0.58);
    box-shadow: 0 0 18px rgba(245, 200, 81, 0.22), inset 0 -2px 0 rgba(253, 224, 71, 0.75);
}
.ek-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.ek-nav-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, rgba(245, 200, 81, 0.38), transparent);
}
.ek-emblems {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.ek-emblems img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}
.ek-emblems img:hover { transform: scale(1.06); }
.ek-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 18px;
    min-height: 40px;
    border-radius: 11px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0b1f19;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(135deg, #fce38a 0%, #eab338 55%, #c98c12 100%);
    border: 1px solid rgba(255, 245, 196, 0.75);
    box-shadow: 0 6px 18px rgba(212, 160, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.ek-btn-login:hover,
.ek-btn-login:focus-visible {
    color: #061510;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(234, 179, 56, 0.48);
    filter: brightness(1.05);
}
.ek-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(6, 78, 59, 0.7);
    border: 1px solid rgba(245, 200, 81, 0.45);
    color: #fef08a;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.ek-mobile-drawer {
    display: none;
    max-width: 1340px;
    margin: 10px auto 0;
    padding: 16px;
    border-radius: 16px;
    background: rgba(3, 27, 20, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 200, 81, 0.36);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
}
.ek-mobile-drawer.is-open { display: block; }
.ek-mobile-drawer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ek-mobile-drawer a.ek-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #edf8f3;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}
.ek-mobile-drawer a.ek-mobile-link.active,
.ek-mobile-drawer a.ek-mobile-link:hover {
    background: rgba(245, 200, 81, 0.16);
    color: #fde68a;
}
.ek-mobile-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gold-button {
    background: linear-gradient(135deg, #ffe39a, #d6a52b);
    color: #152a20;
    border: 0;
    border-radius: 8px;
    padding: 12px 22px;
    font-weight: 700;
    transition: .25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.gold-button:hover {
    box-shadow: 0 0 22px #d4af3740;
    transform: translateY(-2px);
    color: #0b1c15;
}

/* HERO */
.hero {
    min-height: 230px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero-content { position: relative; z-index: 2; padding: 38px 20px; }
.eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--gold-light);
}
h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(30px, 4.6vw, 60px);
    margin: 14px 0;
    color: var(--gold-light);
    text-shadow: 0 4px 30px #0007;
}
.hero p { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 12px; }
.ornament {
    color: var(--gold);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.ornament::before, .ornament::after {
    content: '';
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { transform: rotate(180deg); }
.orbit {
    position: absolute;
    width: 650px;
    height: 650px;
    border: 1px solid #d4af3725;
    border-radius: 50%;
    animation: spin 25s linear infinite;
    pointer-events: none;
}
.orbit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -3px;
    width: 7px;
    height: 7px;
    background: #ffe29a;
    border-radius: 50%;
    box-shadow: 0 0 25px 6px #d4af37;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* BREADCRUMB & MAIN LAYOUT */
.breadcrumb {
    font-size: 12px;
    color: var(--muted);
    padding: 22px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--gold-light); }
.layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
    gap: 24px;
    padding-bottom: 65px;
    align-items: start;
}

/* PANEL */
.panel {
    border: 1px solid #d4af3760;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff05;
}
.panel-heading {
    padding: 22px 25px;
    background: linear-gradient(120deg, #064e3b, #03251d);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.panel-heading-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.panel-heading h2 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    margin: 0;
}
.emblem { color: var(--gold); font-size: 32px; line-height: 1; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-light);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d4af3760;
    background: rgba(255, 255, 255, 0.05);
    transition: .2s;
}
.back-link:hover {
    background: var(--gold);
    color: var(--dark);
}
.panel-body {
    background: var(--ivory);
    color: #18392d;
    padding: 24px;
}

/* SEARCH & FILTERS */
.search {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #c8d5ce;
    border-radius: 8px;
    background: #fff;
    padding: 0 14px;
    flex: 1;
    min-width: 0;
}
.search-box input {
    width: 100%;
    border: 0;
    outline: none;
    padding: 13px 0;
    background: transparent;
    font-size: 13px;
    color: #18392d;
}
.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.filter-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2f5547;
    margin-bottom: 6px;
}
.filter-field select,
.filter-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c8d5ce;
    border-radius: 8px;
    background: #fff;
    color: #18392d;
    font-size: 13px;
    outline: none;
}
.filter-field select:focus,
.filter-field input:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.12);
}

/* PROFILE / ITEM CARDS */
.profile {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    margin-bottom: 15px;
    border-radius: 12px;
    color: var(--ivory);
    background: linear-gradient(120deg, #064e3b, #03251d);
    border: 1px solid #d4af3735;
    position: relative;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px #03251d25;
}
.portrait {
    width: 130px;
    height: 160px;
    border: 3px solid var(--gold);
    border-radius: 18px 18px 8px 8px;
    overflow: hidden;
    background: #ffffff0c;
    display: grid;
    place-items: center;
    position: relative;
}
.portrait.landscape {
    height: 130px;
    border-radius: 12px;
}
.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.portrait svg { width: 52px; height: 52px; color: var(--gold); }
.profile h3 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    margin: 7px 0;
    line-height: 1.3;
}
.title-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold-light);
    text-transform: uppercase;
}
.date {
    font-size: 11px;
    color: var(--muted);
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile p {
    font-size: 13px;
    line-height: 1.8;
    margin: 10px 0;
    color: #e2ebe6;
}
.read-more {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .2s;
}
.read-more:hover { background: var(--gold); color: var(--dark); }
.read-more.solid {
    background: linear-gradient(135deg, #ffe39a, #d6a52b);
    color: #152a20;
    border-color: transparent;
}
.read-more.solid:hover {
    filter: brightness(1.06);
}
.card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ROYAL TABLE (Lembaga Adat & Detail Tabs) */
.royal-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #d7e2dd;
    background: #fff;
}
.royal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 540px;
}
.royal-table thead th {
    background: linear-gradient(120deg, #064e3b, #03251d);
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid var(--gold);
}
.royal-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid #e7efeb;
    color: #18392d;
    vertical-align: top;
    line-height: 1.55;
}
.royal-table tbody tr:hover td {
    background: #f2f8f5;
}
.royal-table tbody tr:last-child td {
    border-bottom: 0;
}
.table-link {
    font-weight: 700;
    color: #064e3b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.table-link:hover {
    color: #9a7415;
    text-decoration: underline;
}
.badge-cat {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #e5f3ec;
    color: #064e3b;
    border: 1px solid #bfe0d0;
}

/* DETAIL METADATA & TABS */
.meta-card {
    background: linear-gradient(120deg, #064e3b, #03251d);
    color: var(--ivory);
    border-radius: 12px;
    border: 1px solid #d4af3745;
    padding: 22px;
    margin-bottom: 22px;
}
.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}
.meta-item-label {
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 4px;
    font-weight: 700;
}
.meta-item-value {
    font-size: 13.5px;
    line-height: 1.65;
    color: #e6f0ec;
}
.royal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d8e3de;
}
.royal-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #18392d;
    background: #e9f0ec;
    border: 1px solid #cbd9d2;
    transition: .2s;
}
.royal-tab:hover {
    background: #dce9e3;
}
.royal-tab.active {
    background: linear-gradient(120deg, #064e3b, #03251d);
    color: var(--gold-light);
    border-color: var(--gold);
}

/* RICH DETAIL & PROSE */
.prose {
    font-size: 14.5px;
    line-height: 1.85;
    color: #1d3c31;
}
.prose p { margin: 0 0 14px; }
.prose h2, .prose h3, .prose h4 {
    font-family: 'Cinzel', serif;
    color: #064e3b;
    margin: 20px 0 10px;
}
.detail-header-grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 22px;
}
.detail-portrait {
    width: 100%;
    border: 3px solid var(--gold);
    border-radius: 14px;
    overflow: hidden;
    background: #064e3b14;
    aspect-ratio: 3 / 4;
    display: grid;
    place-items: center;
}
.detail-portrait.wide {
    aspect-ratio: 4 / 3;
}
.detail-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.detail-title {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    color: #064e3b;
    margin: 6px 0 10px;
}
.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(120deg, #064e3b, #03251d);
    color: var(--gold-light);
}
.detail-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #557066;
    margin-bottom: 16px;
}
.pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #d7e2dd;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #ddd;
    flex-wrap: wrap;
}
.page-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.page-number {
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    border: 0;
}
.page-btn {
    background: #e9efec;
    color: #18392d;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #c8d5ce;
    font-weight: 600;
}
.page-btn:hover { background: var(--gold-light); }
.empty { padding: 35px 10px; text-align: center; color: #516b61; font-size: 13.5px; }

/* SIDEBAR */
aside { display: flex; flex-direction: column; gap: 22px; }
.banner {
    min-height: 230px;
    border: 1px solid var(--gold);
    border-radius: 14px;
    padding: 25px;
    text-align: center;
    background: radial-gradient(ellipse at bottom, #126149, #03251d);
    position: relative;
    overflow: hidden;
}
.banner img { width: 100%; border-radius: 8px; margin-top: 8px; display: block; }
.banner h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    font-size: 25px;
    margin: 10px 0 8px;
}
.banner p { font-size: 12px; line-height: 1.8; color: #d8e6df; }
.rss {
    background: var(--ivory);
    color: var(--dark);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d4af3745;
}
.rss-header {
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #ddd;
}
.rss-header svg { color: #b78b15; }
.rss-header h3 { font-family: 'Cinzel', serif; margin: 0; font-size: 18px; }
.news {
    padding: 16px 0;
    margin: 0 20px;
    border-bottom: 1px solid #ddd;
}
.news:last-child { border-bottom: 0; }
.news h4 { font-size: 13px; line-height: 1.65; margin: 0 0 6px; font-weight: 600; }
.news time { font-size: 11px; color: #75847c; }

/* FOOTER */
footer {
    background: #03251d;
    border-top: 2px solid var(--gold);
    padding: 45px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr .8fr 1fr;
    gap: 30px;
}
footer h3 { color: var(--gold-light); font-family: 'Cinzel', serif; margin-top: 0; font-size: 17px; }
footer p, footer li { font-size: 12px; line-height: 1.9; color: #c2d5cc; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; }
footer a:hover { color: var(--gold-light); }
.map-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d4af3765;
    transition: transform .2s ease;
}
.map-card:hover { transform: translateY(-2px); }
.map-card img { width: 100%; height: auto; display: block; object-fit: cover; }
.copyright {
    margin-top: 35px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #d4af3740;
    font-size: 11px;
    color: var(--muted);
}

/* DETAIL MODAL */
dialog {
    width: min(650px, 92%);
    max-height: 85vh;
    border: 1px solid var(--gold);
    border-radius: 18px;
    padding: 30px;
    background: var(--dark);
    color: var(--ivory);
}
dialog::backdrop { background: #00150dd9; backdrop-filter: blur(7px); }
dialog h2 { font-family: 'Cinzel', serif; color: var(--gold-light); margin: 8px 0; }
dialog p { line-height: 1.9; font-size: 14px; white-space: pre-line; }
.modal-footer-link {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.close-modal {
    float: right;
    background: transparent;
    color: white;
    border: 0;
    font-size: 24px;
    line-height: 1;
}

.reveal { animation: reveal .65s ease both; }
@keyframes reveal {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
[hidden] { display: none !important; }

@media (max-width: 1200px) {
    .ek-nav-links { display: none; }
    .ek-nav-right .ek-emblems,
    .ek-nav-right .ek-nav-divider { display: none; }
    .ek-menu-toggle { display: inline-flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    .hero { min-height: 200px; }
    .filters-grid { grid-template-columns: 1fr; }
    .meta-grid { grid-template-columns: 1fr; }
    .detail-header-grid { grid-template-columns: 1fr; }
    .detail-portrait { max-width: 220px; }
}
@media (max-width: 600px) {
    .ek-header { padding: 0 12px; }
    .ek-navbar { padding: 8px 12px; border-radius: 14px; }
    .ek-brand-title { font-size: 1.12rem; }
    .ek-brand-sub { font-size: 0.62rem; }
    .ek-btn-login { display: none; }
}
@media (max-width: 480px) {
    .panel-body { padding: 14px; }
    .profile { grid-template-columns: 1fr; padding: 18px; }
    .portrait { width: 110px; height: 135px; }
    .profile h3 { font-size: 18px; }
    .search .gold-button { padding: 10px 14px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero p { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
