/* =========================================================
   Profil KUA Kabupaten Karangasem — stylesheet utama
   Desain: palet hijau Kementerian Agama, aksen emas, bersih.
   ========================================================= */

:root {
    --green-950: #062a20;
    --green-900: #0a3b2c;
    --green-800: #0f4d39;
    --green-700: #14664a;
    --green-600: #1c7f5c;
    --green-100: #e6f2ec;
    --green-050: #f2f8f5;
    --gold-600: #a9832f;
    --gold-500: #c8a24a;
    --gold-300: #e5cd8f;
    --sand: #f7f4ec;
    --paper: #ffffff;
    --ink: #14231c;
    --muted: #5b6f66;
    --line: #dce6e0;
    --danger: #b42318;
    --danger-soft: #fef3f2;
    --warning-soft: #fffaeb;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(6, 42, 32, 0.05), 0 2px 6px rgba(6, 42, 32, 0.06);
    --shadow-md: 0 18px 40px -22px rgba(6, 42, 32, 0.35);
    --shadow-lg: 0 30px 70px -30px rgba(6, 42, 32, 0.45);
    --container: 1180px;
    --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--green-700);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
    color: var(--green-600);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.015em;
}

p {
    margin: 0 0 1rem;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
}

.icon--sm {
    width: 16px;
    height: 16px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    background: var(--gold-500);
    color: var(--green-950);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 700;
}

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

:focus-visible {
    outline: 3px solid rgba(200, 162, 74, 0.65);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Topbar & header ---------- */

.topbar {
    background: var(--green-950);
    color: #c6ded3;
    font-size: 0.76rem;
    letter-spacing: 0.01em;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.5rem;
    flex-wrap: wrap;
}

.topbar a {
    color: #e9f3ee;
    font-weight: 600;
}

.topbar a:hover {
    color: var(--gold-300);
}

.topbar__meta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand__mark {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.brand__text strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.2;
}

.brand__text span {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-top: 0.2rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.primary-nav a {
    color: var(--green-900);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
}

.primary-nav a:hover {
    background: var(--green-100);
    color: var(--green-800);
}

.primary-nav a.is-active {
    background: var(--green-900);
    color: #fff;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--green-900);
    cursor: pointer;
}

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

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 420px at 88% -12%, rgba(46, 151, 112, 0.55) 0%, transparent 62%),
        radial-gradient(600px 320px at -5% 110%, rgba(200, 162, 74, 0.16) 0%, transparent 60%),
        linear-gradient(145deg, #05251c 0%, #0a3b2c 55%, #0d4735 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
    gap: 3.5rem;
    align-items: center;
    padding-block: 4.5rem 4rem;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: 1.4rem;
}

.hero__eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--gold-500);
    border-radius: 2px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2.15rem, 4.3vw, 3.55rem);
    line-height: 1.08;
    color: #fff;
    margin-bottom: 1.35rem;
    letter-spacing: -0.025em;
}

.hero h1 em {
    color: var(--gold-300);
    font-style: italic;
}

.hero__lead {
    max-width: 40rem;
    color: #cfe2d9;
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1.9rem;
}

.hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero__note {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.75rem;
    font-size: 0.82rem;
    color: #b9d5c8;
}

.hero__note .icon {
    color: var(--gold-300);
}

.hero__panel {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
}

.hero__panel-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: 1rem;
}

.hero__panel ul {
    list-style: none;
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.hero__panel li a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.65rem;
    border-radius: 12px;
    color: #f0f7f3;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero__panel li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hero__panel li span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(200, 162, 74, 0.16);
    font-size: 0.95rem;
    flex: none;
}

.hero__panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: #c9ddd3;
}

.hero__panel-footer a {
    color: var(--gold-300);
    font-weight: 700;
}

/* ---------- Stats ---------- */

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

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    padding-block: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat__value {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    font-weight: 600;
    color: var(--green-800);
    line-height: 1;
}

.stat__label {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 600;
}

.stat__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--green-050);
    color: var(--green-700);
    border: 1px solid #dcece4;
    flex: none;
}

/* ---------- Sections ---------- */

.section {
    padding-block: 4.75rem;
}

.section--tight {
    padding-block: 3.5rem;
}

.section--sand {
    background: var(--sand);
}

.section--green {
    background: var(--green-050);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 0.6rem;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
}

.section-heading h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.55rem, 2.7vw, 2.15rem);
    letter-spacing: -0.02em;
}

.section-heading__desc {
    max-width: 44rem;
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-700);
    white-space: nowrap;
}

.link-arrow .icon {
    transition: transform 0.18s ease;
}

.link-arrow:hover .icon {
    transform: translateX(3px);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.87rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--green-800);
    color: #fff;
    box-shadow: 0 10px 24px -14px rgba(15, 77, 57, 0.7);
}

.btn--primary:hover {
    background: var(--green-700);
    color: #fff;
}

.btn--gold {
    background: var(--gold-500);
    color: #251c05;
    box-shadow: 0 10px 24px -14px rgba(200, 162, 74, 0.9);
}

.btn--gold:hover {
    background: var(--gold-300);
    color: #251c05;
}

.btn--outline {
    background: #fff;
    border-color: var(--line);
    color: var(--green-900);
}

.btn--outline:hover {
    border-color: var(--green-600);
    color: var(--green-700);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.btn--danger {
    background: var(--danger);
    color: #fff;
}

.btn--danger:hover {
    background: #951c13;
    color: #fff;
}

.btn--sm {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
}

.btn--block {
    width: 100%;
}

.btn--icon {
    padding: 0.55rem;
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

/* ---------- Cards ---------- */

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.kua-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.kua-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.3rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kua-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #c3d9ce;
}

.kua-card__head {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.kua-card__head h3 {
    font-size: 1rem;
    line-height: 1.25;
}

.kua-card__head h3 a {
    color: var(--ink);
}

.kua-card__head h3 a:hover {
    color: var(--green-700);
}

.avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-100), #d5eadf);
    border: 1px solid #c7dfd4;
    color: var(--green-800);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.kua-card__kecamatan {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 0.15rem;
}

.kua-card__address {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.kua-card__address .icon {
    margin-top: 0.15rem;
    color: var(--green-600);
}

.kua-card__meta {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: var(--muted);
}

.kua-card__meta strong {
    color: var(--green-800);
}

/* ---------- Services ---------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #c3d9ce;
}

.service-card__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--green-050);
    border: 1px solid #dcece4;
    font-size: 1.4rem;
}

.service-card h3 {
    font-size: 1.02rem;
    line-height: 1.35;
}

.service-card h3 a {
    color: var(--ink);
}

.service-card h3 a:hover {
    color: var(--green-700);
}

.service-card p {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.service-card .link-arrow {
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ---------- Profile / split ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
    align-items: center;
}

.split__copy h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-bottom: 1rem;
}

.split__copy p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.96rem;
}

.split__copy .btn {
    margin-top: 0.75rem;
}

.visi-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, var(--green-900), var(--green-700));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.visi-card::before {
    content: "❝";
    position: absolute;
    top: -0.35em;
    right: 0.4rem;
    font-family: var(--font-serif);
    font-size: 7rem;
    color: rgba(255, 255, 255, 0.09);
    line-height: 1;
}

.visi-card__label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-300);
    font-weight: 700;
    margin-bottom: 1rem;
}

.visi-card blockquote {
    margin: 0 0 1.5rem;
    font-family: var(--font-serif);
    font-size: 1.22rem;
    line-height: 1.5;
    color: #fff;
}

.visi-card ul {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    font-size: 0.84rem;
    color: #d4e7dd;
}

.visi-card li {
    display: flex;
    gap: 0.5rem;
}

.visi-card li .icon {
    color: var(--gold-300);
    margin-top: 0.15rem;
}

/* ---------- Articles ---------- */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.post-card__cover {
    position: relative;
    height: 158px;
    overflow: hidden;
    background:
        radial-gradient(160px 120px at 82% 18%, rgba(229, 205, 143, 0.35), transparent 70%),
        linear-gradient(135deg, #0b3d2e, #14664a);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.post-card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 120%, rgba(255, 255, 255, 0.1) 0 22%, transparent 23%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 16px);
    pointer-events: none;
}

.post-card__cover--alt {
    background:
        radial-gradient(160px 120px at 20% 15%, rgba(229, 205, 143, 0.3), transparent 70%),
        linear-gradient(135deg, #123f33, #1c7f5c);
}

.post-card__cover-mark {
    position: relative;
    z-index: 1;
    font-family: var(--font-serif);
    font-size: 2.6rem;
    color: rgba(255, 255, 255, 0.22);
    line-height: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--green-100);
    color: var(--green-800);
    white-space: nowrap;
}

.badge--gold {
    background: #fbf3dd;
    color: var(--gold-600);
}

.badge--muted {
    background: #eef2f0;
    color: var(--muted);
}

.badge--success {
    background: #e7f6ee;
    color: #12633f;
}

.badge--warning {
    background: var(--warning-soft);
    color: #8a5a00;
}

.post-card__cover .badge {
    position: absolute;
    z-index: 2;
    top: 0.9rem;
    left: 0.9rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--green-900);
}

.post-card__body {
    padding: 1.2rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.post-card__date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.post-card h3 {
    font-size: 1.02rem;
    line-height: 1.4;
}

.post-card h3 a {
    color: var(--ink);
}

.post-card h3 a:hover {
    color: var(--green-700);
}

.post-card p {
    font-size: 0.84rem;
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .link-arrow {
    margin-top: auto;
    padding-top: 0.4rem;
    font-size: 0.8rem;
}

/* ---------- CTA ---------- */

.cta-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(500px 240px at 90% 0%, rgba(200, 162, 74, 0.22), transparent 65%),
        linear-gradient(120deg, var(--green-950), var(--green-800));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-band h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: #fff;
    margin-bottom: 0.4rem;
}

.cta-band p {
    color: #cfe2d9;
    margin: 0;
    max-width: 34rem;
    font-size: 0.92rem;
}

/* ---------- Page hero & breadcrumb ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding-block: 3rem 3.25rem;
    background:
        radial-gradient(700px 320px at 85% -20%, rgba(46, 151, 112, 0.5), transparent 65%),
        linear-gradient(135deg, var(--green-950), var(--green-800));
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000, transparent 90%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    color: #fff;
    letter-spacing: -0.02em;
    margin-block: 0.85rem 0.6rem;
}

.page-hero p {
    max-width: 46rem;
    color: #cfe2d9;
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #a9c8b9;
}

.breadcrumb a {
    color: #d9e9e1;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--gold-300);
}

.breadcrumb span[aria-current] {
    color: var(--gold-300);
}

.breadcrumb .sep {
    opacity: 0.55;
}

/* ---------- Filter/search ---------- */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.search-field {
    position: relative;
    flex: 1 1 260px;
}

.search-field .icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-field .input {
    padding-left: 2.6rem;
}

.chip-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.chip:hover {
    border-color: var(--green-600);
    color: var(--green-700);
}

.chip.is-active {
    background: var(--green-900);
    border-color: var(--green-900);
    color: #fff;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2.75rem;
    align-items: start;
}

.detail-card {
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

.detail-card h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 1.02rem;
    margin-bottom: 0.6rem;
}

.prose {
    color: #33443c;
    font-size: 0.96rem;
    line-height: 1.85;
}

.prose p {
    margin-bottom: 1.1rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.info-tile {
    padding: 1rem;
    border-radius: 14px;
    background: var(--green-050);
    border: 1px solid #e0eee7;
}

.info-tile dt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.info-tile dt .icon {
    color: var(--green-600);
}

.info-tile dd {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
}

.info-tile dd a {
    color: var(--green-800);
    text-decoration: underline;
    text-decoration-color: #b9d4c7;
    text-underline-offset: 3px;
}

.check-list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.check-list li {
    position: relative;
    padding-left: 1.9rem;
    font-size: 0.9rem;
    color: #3b4d44;
    line-height: 1.6;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314664a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 1rem;
}

.steps li {
    position: relative;
    counter-increment: step;
    padding: 0.15rem 0 0.15rem 3rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #3b4d44;
    min-height: 2rem;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green-900);
    color: var(--gold-300);
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 38px;
    bottom: -12px;
    width: 1px;
    background: var(--line);
}

.sidebar-card {
    padding: 1.4rem;
    margin-bottom: 1.25rem;
}

.sidebar-card h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
    font-size: 0.86rem;
}

.contact-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    color: #3b4d44;
}

.contact-list .icon {
    color: var(--green-600);
    margin-top: 0.15rem;
}

.contact-list strong {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.1rem;
}

.mini-list {
    list-style: none;
    display: grid;
    gap: 0.25rem;
}

.mini-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.55rem;
    border-radius: 9px;
    font-size: 0.85rem;
    color: var(--green-900);
    font-weight: 500;
}

.mini-list a:hover {
    background: var(--green-050);
    color: var(--green-700);
}

.mini-list .icon {
    color: var(--muted);
}

/* ---------- Profile page ---------- */

.profile-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
    align-items: start;
}

.identity-card {
    padding: 1.5rem;
    background: linear-gradient(160deg, var(--green-050), #fff);
    border: 1px solid #dcece4;
    border-radius: var(--radius);
}

.identity-card__mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--green-900);
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}

.identity-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.identity-card p {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.identity-card dl {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    font-size: 0.82rem;
}

.identity-card dt {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 700;
}

.identity-card dd {
    margin: 0.1rem 0 0;
    color: var(--ink);
    font-weight: 600;
}

.misi-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
    counter-reset: misi;
}

.misi-list li {
    position: relative;
    padding-left: 2.4rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #3b4d44;
    counter-increment: misi;
}

.misi-list li::before {
    content: counter(misi);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--green-100);
    color: var(--green-800);
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2.5rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 0.9rem;
}

.contact-info .info-tile {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 1.1rem;
}

.contact-info .info-tile dd {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- Forms ---------- */

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--green-900);
}

.field label .required {
    color: var(--danger);
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #ccdad3;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder,
.textarea::placeholder {
    color: #98a8a1;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(28, 127, 92, 0.14);
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.textarea--lg {
    min-height: 200px;
}

.hint {
    font-size: 0.74rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

.error-text {
    font-size: 0.76rem;
    color: var(--danger);
    margin-top: 0.3rem;
}

.input.is-invalid,
.textarea.is-invalid,
.select.is-invalid {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
}

.field--full {
    grid-column: 1 / -1;
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
}

.form-card + .form-card {
    margin-top: 1.25rem;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.alert {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    border: 1px solid transparent;
    margin-bottom: 1.25rem;
}

.alert--success {
    background: #ecf8f1;
    border-color: #bfe5d1;
    color: #0f5a3a;
}

.alert--error {
    background: var(--danger-soft);
    border-color: #fecdca;
    color: #912018;
}

.alert--info {
    background: #eff6ff;
    border-color: #cfe2ff;
    color: #1e4d8c;
}

.alert__close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.1rem 0.2rem;
}

/* ---------- Pagination ---------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding-inline: 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--green-900);
    font-size: 0.8rem;
    font-weight: 600;
}

.pagination__item:hover {
    border-color: var(--green-600);
    color: var(--green-700);
}

.pagination__item.is-active {
    background: var(--green-900);
    border-color: var(--green-900);
    color: #fff;
}

.pagination__item.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pagination__label {
    font-size: 0.78rem;
    color: var(--muted);
    padding-inline: 0.4rem;
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 0;
    background: var(--green-950);
    color: #b7d0c4;
    padding-top: 3.5rem;
    font-size: 0.86rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.9fr 1.1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.site-footer .brand__text strong {
    color: #fff;
}

.site-footer .brand__text span {
    color: #8fb3a4;
}

.footer-about {
    margin-top: 1rem;
    line-height: 1.7;
    color: #9dbdae;
    max-width: 26rem;
}

.footer-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-300);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.footer-links a {
    color: #c0d8cc;
}

.footer-links a:hover {
    color: var(--gold-300);
}

.footer-contact {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.footer-contact li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: #c0d8cc;
    line-height: 1.5;
}

.footer-contact .icon {
    color: var(--gold-300);
    margin-top: 0.15rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: #87a99a;
    font-size: 0.76rem;
}

.footer-bottom a {
    color: #c0d8cc;
}

.footer-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ---------- Misc ---------- */

.muted {
    color: var(--muted);
}

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.empty-state {
    padding: 3.5rem 1.5rem;
    text-align: center;
    color: var(--muted);
    border: 1px dashed #cbdcd3;
    border-radius: var(--radius);
    background: var(--green-050);
}

.empty-state .icon {
    width: 36px;
    height: 36px;
    color: var(--green-600);
    margin-bottom: 0.75rem;
}

.empty-state h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.86rem;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--muted);
}

.meta-row .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.article-header {
    max-width: 46rem;
    margin-bottom: 2rem;
}

.article-header h1 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    line-height: 1.2;
    margin-block: 0.75rem 1rem;
}

.article-header .lead {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.75rem;
    align-items: start;
}

.article-body {
    font-size: 1rem;
    line-height: 1.9;
    color: #2f4239;
}

.article-body p {
    margin-bottom: 1.3rem;
}

.article-body p:first-child::first-letter {
    float: left;
    font-family: var(--font-serif);
    font-size: 3.4rem;
    line-height: 0.85;
    padding: 0.15rem 0.5rem 0 0;
    color: var(--green-800);
}

/* =========================================================
   ADMIN
   ========================================================= */

.admin-body {
    background: #f2f6f4;
    min-height: 100vh;
}

.admin-shell {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem 1.25rem;
    background:
        radial-gradient(300px 180px at 0% 0%, rgba(46, 151, 112, 0.35), transparent 70%),
        linear-gradient(180deg, #072f24, #0a3b2c);
    color: #c8ddd2;
    z-index: 50;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-inline: 0.5rem;
    color: #fff;
}

.admin-brand:hover {
    color: #fff;
}

.admin-brand strong {
    display: block;
    font-size: 0.88rem;
    line-height: 1.25;
}

.admin-brand span {
    display: block;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8fb3a4;
    margin-top: 0.15rem;
}

.admin-nav-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #7fa596;
    padding-inline: 0.7rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.admin-nav {
    display: grid;
    gap: 0.2rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.62rem 0.7rem;
    border-radius: 10px;
    color: #b9d3c7;
    font-size: 0.86rem;
    font-weight: 500;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.admin-nav a.is-active {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--gold-500);
}

.admin-nav a .badge {
    margin-left: auto;
    background: var(--gold-500);
    color: #2b2107;
    font-size: 0.62rem;
    padding: 0.1rem 0.4rem;
}

.admin-sidebar__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.74rem;
    color: #7fa596;
    display: grid;
    gap: 0.5rem;
    padding-inline: 0.5rem;
}

.admin-sidebar__footer a {
    color: #c8ddd2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-main {
    min-width: 0;
    padding: 0 2rem 3rem;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-block: 1.35rem;
    border-bottom: 1px solid #e0e8e3;
    margin-bottom: 1.9rem;
}

.admin-topbar__left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.admin-topbar__left h1 {
    font-size: 1.2rem;
    line-height: 1.3;
}

.admin-topbar__left p {
    margin: 0.1rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.admin-topbar__right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.admin-user__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green-900);
    color: var(--gold-300);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.admin-content {
    max-width: 1120px;
}

.admin-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--green-900);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.admin-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
}

.admin-page-head h2 {
    font-size: 1.45rem;
    font-family: var(--font-serif);
    font-weight: 500;
}

.admin-page-head p {
    margin: 0.3rem 0 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
    overflow: hidden;
}

.stat-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.stat-card__value {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    color: var(--green-900);
    line-height: 1.1;
}

.stat-card__icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--green-050);
    color: var(--green-700);
    display: grid;
    place-items: center;
}

.stat-card a {
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: #fbfcfb;
}

.panel__head h2,
.panel__head h3 {
    font-size: 0.92rem;
}

.panel__body {
    padding: 0.5rem 0;
}

.panel__body--pad {
    padding: 1.25rem;
}

.simple-list {
    list-style: none;
}

.simple-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid #eef3f0;
}

.simple-list li:last-child {
    border-bottom: 0;
}

.simple-list .avatar {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 0.72rem;
}

.simple-list__body {
    min-width: 0;
    flex: 1;
}

.simple-list__body strong {
    display: block;
    font-size: 0.84rem;
    line-height: 1.35;
    color: var(--ink);
}

.simple-list__body span,
.simple-list__body time {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.simple-list__body a strong:hover {
    color: var(--green-700);
}

.table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    min-width: 680px;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: #f8faf9;
    border-bottom: 1px solid var(--line);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eef3f0;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fbfdfc;
}

.data-table .cell-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 220px;
}

.data-table .cell-title strong {
    display: block;
    font-size: 0.86rem;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.35;
}

.data-table .cell-title small {
    display: block;
    color: var(--muted);
    font-size: 0.73rem;
    margin-top: 0.1rem;
}

.table-actions {
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
    white-space: nowrap;
}

.table-actions form {
    display: inline;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--green-800);
    cursor: pointer;
}

.icon-btn:hover {
    border-color: var(--green-600);
    background: var(--green-050);
    color: var(--green-700);
}

.icon-btn--danger {
    color: var(--danger);
}

.icon-btn--danger:hover {
    border-color: #f3b6b1;
    background: var(--danger-soft);
    color: var(--danger);
}

.icon-btn .icon {
    width: 16px;
    height: 16px;
}

.admin-filter {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-filter .search-field {
    max-width: 340px;
}

.detail-list {
    display: grid;
    gap: 0;
}

.detail-list__row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #eef3f0;
    font-size: 0.86rem;
}

.detail-list__row:last-child {
    border-bottom: 0;
}

.detail-list__row dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}

.detail-list__row dd {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.subnav-tabs {
    display: flex;
    gap: 0.35rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.subnav-tabs a {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.subnav-tabs a:hover {
    color: var(--green-700);
}

.subnav-tabs a.is-active {
    color: var(--green-900);
    border-bottom-color: var(--green-700);
}

/* ---------- Auth ---------- */

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(28, 127, 92, 0.25), transparent 70%),
        radial-gradient(500px 300px at 0% 100%, rgba(200, 162, 74, 0.14), transparent 70%),
        var(--green-950);
}

.auth-shell {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.6);
}

.auth-aside {
    position: relative;
    overflow: hidden;
    padding: 3rem 2.75rem;
    color: #fff;
    background:
        radial-gradient(320px 220px at 85% 10%, rgba(200, 162, 74, 0.28), transparent 65%),
        linear-gradient(155deg, #0a3b2c, #14664a);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(160deg, #000, transparent 80%);
    pointer-events: none;
}

.auth-aside > * {
    position: relative;
    z-index: 1;
}

.auth-aside h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.9rem;
    color: #fff;
    margin-top: auto;
    line-height: 1.25;
}

.auth-aside p {
    color: #cfe2d9;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.auth-aside ul {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    font-size: 0.84rem;
    color: #d9e9e1;
}

.auth-aside li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.auth-aside li .icon {
    color: var(--gold-300);
    margin-top: 0.2rem;
}

.auth-main {
    background: #fff;
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-main h1 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.7rem;
    margin-bottom: 0.4rem;
}

.auth-main > p {
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 1.75rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.password-field {
    position: relative;
}

.password-field .input {
    padding-right: 3.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--green-700);
}

/* ---------- Error page ---------- */

.error-page {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 4rem 1rem;
}

.error-page__code {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 12vw, 7rem);
    color: var(--green-100);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-page h1 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.error-page p {
    color: var(--muted);
    max-width: 30rem;
    margin-inline: auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
    .kua-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero__inner {
        gap: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-grid > :last-child {
        grid-column: 1 / -1;
    }

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

@media (max-width: 960px) {
    .primary-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 0.75rem 1.25rem 1.25rem;
        box-shadow: var(--shadow-md);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        padding: 0.7rem 0.85rem;
        border-radius: 9px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        padding-block: 3.25rem;
    }

    .hero__panel {
        max-width: 32rem;
    }

    .detail-grid,
    .article-layout,
    .contact-grid,
    .profile-lead,
    .split {
        grid-template-columns: 1fr;
    }

    .detail-grid > aside,
    .article-layout > aside {
        order: 2;
    }

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

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 264px;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        box-shadow: 30px 0 60px -30px rgba(0, 0, 0, 0.4);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-main {
        padding-inline: 1.25rem;
    }

    .admin-menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 860px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .auth-aside {
        display: none;
    }

    .stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-grid > :last-child {
        grid-column: auto;
    }
}

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

    .topbar__meta {
        gap: 0.75rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .cta-band {
        padding: 1.75rem;
        border-radius: var(--radius);
    }

    .section {
        padding-block: 3.25rem;
    }

    .detail-card {
        padding: 1.35rem;
    }
}

@media (max-width: 620px) {
    .container {
        padding-inline: 18px;
    }

    .kua-grid,
    .service-grid,
    .post-grid,
    .stats__grid {
        grid-template-columns: 1fr;
    }

    .brand__text span {
        display: none;
    }

    .brand__mark {
        width: 40px;
        height: 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero__actions .btn {
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-list__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .admin-topbar {
        align-items: flex-start;
    }

    .admin-topbar__right .admin-user span {
        display: none;
    }

    .stats__grid {
        gap: 1rem;
    }

    .stat__icon {
        width: 42px;
        height: 42px;
    }

    .auth-main {
        padding: 2rem 1.5rem;
    }

    .article-body p:first-child::first-letter {
        font-size: 2.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
