/* ==========================================================================
   PORTAL SOEL — STYLE SYSTEM
   Theme: Classic Minimalist Modern (Palet Warna Pastel Bumi / Earthy Pastel)
   Inspirasi: Lanskap Hutan & Pesisir Werianggi-Werabur, Papua Barat (2026)
   ========================================================================== */

:root {
  /* Canvas & Permukaan (Pastel Linen & Chalk) */
  --paper: #FAF8F5;            /* Canvas linen hangat / perkamen lembut */
  --canvas: #FAF8F5;
  --paper-raised: #FFFFFF;     /* Kartu & permukaan putih murni */
  --surface: #FFFFFF;
  --surface-soft: #F4EFEB;     /* Container sekunder netral hangat */
  --surface-hover: #F8F5F0;    /* State hover kartu */

  /* Tinta & Tipografi (Espresso & Warm Charcoal) */
  --ink: #23201C;              /* Espresso charcoal pekat */
  --ink-title: #23201C;
  --ink-body: #3D3934;         /* Charcoal hangat (keterbacaan tinggi) */
  --ink-soft: #635E56;         /* Taupe lembut deskripsi */
  --ink-muted: #78726A;        /* Keterangan sekunder */
  --ink-faint: #A39D94;        /* Caption & metadata teknis */

  /* Palet Pastel Bumi (Earthy Pastel Tones) */
  --sage: #5A7B68;             /* Hijau sage hutan Werianggi-Werabur */
  --sage-bg: #EDF3F0;          /* Sage tint lembut */
  --teal: #5A7B68;             /* Kompatibilitas alias */
  --teal-dim: #4B6958;

  --clay: #A85A48;             /* Terakota lempung hangat */
  --clay-bg: #F8EFEA;          /* Clay tint lembut */
  --brick: #A85A48;            /* Kompatibilitas alias */

  --sand: #966F28;             /* Oker pala & pasir pantai */
  --sand-bg: #FBF4E8;          /* Sand tint lembut */
  --ochre: #966F28;            /* Kompatibilitas alias */

  --slate: #4D6475;            /* Biru abu pesisir laut */
  --slate-bg: #EFF3F6;         /* Slate tint lembut */

  /* Cap Status Pastel Bumi */
  --tag-aktif-bg: #EDF3F0;      --tag-aktif-fg: #3E5F4C;
  --tag-sementara-bg: #FBF4E8;  --tag-sementara-fg: #855F1B;
  --tag-direvisi-bg: #EFF3F6;   --tag-direvisi-fg: #3B5364;
  --tag-dihentikan-bg: #F8EFEA; --tag-dihentikan-fg: #944A39;
  --tag-draft-bg: #F2EFE9;      --tag-draft-fg: #6B665E;
  --tag-published-bg: #EDF3F0;  --tag-published-fg: #3E5F4C;
  --tag-diarsipkan-bg: #ECE7DE; --tag-diarsipkan-fg: #8C8578;

  /* Garis Batas Halus (Hairline Borders) */
  --line: #EAE4D9;             /* Hairline border standar */
  --line-strong: #DCD4C7;      /* Garis aksen terdefinisi */
  --line-focus: #5A7B68;

  /* Radii & Elevasi Mikro */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(35, 32, 28, 0.04), 0 1px 2px rgba(35, 32, 28, 0.02);
  --shadow-card: 0 2px 8px -2px rgba(35, 32, 28, 0.05), 0 1px 3px rgba(35, 32, 28, 0.03);
  --shadow-hover: 0 12px 28px -6px rgba(35, 32, 28, 0.08), 0 4px 10px -2px rgba(35, 32, 28, 0.03);
  --shadow-floating: 0 16px 36px -8px rgba(35, 32, 28, 0.12), 0 6px 14px -3px rgba(35, 32, 28, 0.05);

  /* Tipografi */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max-width: 1180px;
  --content-width: 44rem;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--sage); text-decoration: none; transition: color 0.15s ease, opacity 0.15s ease; }
a:hover { color: #3E5F4C; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-title);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 400; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: 1.3rem; margin-top: 1.6em; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.25em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

blockquote {
  margin: 2em 0;
  padding: 0.4em 0 0.4em 1.3em;
  border-left: 3px solid var(--sage);
  color: var(--ink-soft);
  font-style: italic;
  background: var(--sage-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

hr { border: none; border-top: 1px solid var(--line); margin: 2.6em 0; }
code {
  font-family: var(--font-mono);
  background: var(--surface-soft);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
  color: var(--ink);
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.8rem; }
.prose { max-width: var(--content-width); font-size: 1.05rem; }
.prose img {
  border-radius: var(--radius-md);
  margin: 2em 0 0.5em;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.prose figcaption {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 0.5em;
  text-align: center;
  font-family: var(--font-mono);
}

/* ==========================================================================
   TOPBAR / NAVBAR (Modern Floating Glassmorphism)
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  isolation: isolate;
  z-index: 1200;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: all 0.2s ease;
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-title);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand small {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  color: var(--sage);
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
  font-size: 0.84rem;
  flex-shrink: 1;
  white-space: nowrap;
}
.nav-links a {
  color: var(--ink-body);
  padding: 0.38rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--ink-title);
}
.nav-links a.active {
  color: var(--sage);
  background: var(--sage-bg);
  font-weight: 600;
}

/* Dropdown Menu */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-body);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.38rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.nav-dropdown-toggle .caret {
  font-size: 0.65em;
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.nav-dropdown-toggle:hover {
  background: var(--surface-soft);
  color: var(--ink-title);
}
.nav-dropdown-toggle.active {
  color: var(--sage);
  background: var(--sage-bg);
  font-weight: 600;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-floating);
  padding: 0.75rem 0.5rem 0.5rem;
  z-index: 1250;
  border-top: 1px solid transparent;
  background-clip: padding-box;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--ink-body);
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.nav-dropdown-menu a:hover {
  background: var(--surface-soft);
  color: var(--sage);
}

@media (min-width: 901px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  .nav-dropdown:hover .caret,
  .nav-dropdown:focus-within .caret,
  .nav-dropdown.is-open .caret { transform: rotate(180deg); }

  .nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 12px;
  }
}

.nav-dropdown-menu-right { left: auto; right: 0; }

/* Bilah Pencarian Header */
.nav-search { display: flex; align-items: center; margin-left: 0.25rem; flex-shrink: 0; }
.nav-search-wrap { position: relative; display: flex; align-items: center; }
.nav-search-icon {
  position: absolute;
  right: 0.68rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
  flex-shrink: 0;
  z-index: 1;
}
.nav-search-input {
  width: 110px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink-title);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.42rem 1.95rem 0.42rem 0.75rem;
  appearance: textfield;
  -webkit-appearance: textfield;
  transition: width 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search-input::-webkit-search-decoration,
.nav-search-input::-webkit-search-results-button,
.nav-search-input::-webkit-search-results-decoration,
.nav-search-input::-webkit-search-cancel-button {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.nav-search-input:focus {
  width: 180px;
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(90, 123, 104, 0.12);
}
.nav-search-input::placeholder {
  color: rgba(120, 114, 106, 0.45);
  font-style: italic;
  letter-spacing: 0.01em;
  opacity: 1;
}
.nav-link-search { display: none; }

/* Akun / Tombol Masuk */
.nav-account { display: flex; align-items: center; gap: 0.4rem; font-size: 0.84rem; flex-shrink: 0; white-space: nowrap; }
.nav-account a.btn-auth,
.nav-account > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-title);
  white-space: nowrap;
  transition: all 0.15s ease;
}
.nav-account > a:not(.btn):hover {
  background: var(--ink-title);
  border-color: var(--ink-title);
  color: #fff;
}

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--surface-soft); border-color: var(--line-strong); }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-body);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Drawer */
.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-drawer.open {
  max-height: 90vh;
  overflow-y: auto;
}
.nav-drawer-inner {
  padding: 1rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Drawer Search */
.drawer-search { margin-bottom: 0.9rem; }
.drawer-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.drawer-search-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
  z-index: 1;
}
.drawer-search-input {
  width: 100%;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink-title);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 2.35rem 0.7rem 0.8rem;
  outline: none;
  appearance: textfield;
  -webkit-appearance: textfield;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.drawer-search-input::-webkit-search-decoration,
.drawer-search-input::-webkit-search-results-button,
.drawer-search-input::-webkit-search-results-decoration,
.drawer-search-input::-webkit-search-cancel-button {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.drawer-search-input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(90, 123, 104, 0.12);
}
.drawer-search-input::placeholder {
  color: rgba(120, 114, 106, 0.5);
  font-style: italic;
  opacity: 1;
}

/* Drawer Nav Links */
.drawer-nav { display: flex; flex-direction: column; gap: 0; }
.drawer-link {
  display: block;
  padding: 0.72rem 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-body);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.drawer-link:hover { background: var(--surface-soft); color: var(--ink-title); }
.drawer-link.active { color: var(--sage); font-weight: 600; }
.drawer-link-danger { color: var(--clay) !important; }
.drawer-link-danger:hover { background: var(--clay-bg) !important; }

/* Drawer Accordion Groups */
.drawer-group { display: flex; flex-direction: column; }
.drawer-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.72rem 0.6rem;
  font: 500 0.92rem var(--font-body);
  color: var(--ink-body);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, color 0.12s ease;
}
.drawer-group-toggle:hover { background: var(--surface-soft); color: var(--ink-title); }
.drawer-caret {
  font-size: 0.6em;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.drawer-group-toggle[aria-expanded="true"] .drawer-caret { transform: rotate(180deg); }
.drawer-group-menu {
  display: none;
  flex-direction: column;
  padding-left: 0.9rem;
  border-left: 2px solid var(--line);
  margin: 0.1rem 0 0.1rem 0.6rem;
}
.drawer-group-menu.open { display: flex; }
.drawer-sub-link {
  display: block;
  padding: 0.55rem 0.6rem;
  font-size: 0.87rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.12s ease, color 0.12s ease;
}
.drawer-sub-link:hover { background: var(--surface-soft); color: var(--sage); }

/* Drawer Divider */
.drawer-divider {
  height: 1px;
  background: var(--line);
  margin: 0.75rem 0;
}

/* Drawer Account Section */
.drawer-account { display: flex; flex-direction: column; gap: 0; }
.drawer-account-name {
  padding: 0.3rem 0.6rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.drawer-label {
  padding: 0.5rem 0.6rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.drawer-btn-masuk {
  width: 100%;
  justify-content: center;
  margin-top: 0.2rem;
}

/* Mobile Breakpoint */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-account { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-drawer { display: block; }
  .topbar-inner { flex-wrap: nowrap; padding: 0.6rem 1rem; }
  .brand-mark { width: 30px; height: 30px; }
}



/* ==========================================================================
   BUTTONS (Velvet Charcoal & Minimalist Outlines)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-title);
  background: var(--ink-title);
  color: #FAF8F5;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.btn:hover {
  background: #3A352F;
  border-color: #3A352F;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(35, 32, 28, 0.15);
  color: #fff;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink-title);
  color: #FAF8F5;
  border-color: var(--ink-title);
}

.btn-secondary,
.btn-outline {
  background: transparent;
  color: var(--ink-title);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn-secondary:hover,
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--ink-title);
  color: var(--ink-title);
  box-shadow: var(--shadow-sm);
}

.btn-danger {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}
.btn-danger:hover {
  background: #8F4939;
  border-color: #8F4939;
}

.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.82rem; }

/* ==========================================================================
   TAGS, CHIPS & STEMPEL STATUS PASTEL
   ========================================================================== */
.stamp,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  line-height: 1.3;
}

.stamp-aktif, .chip-sage { background: var(--tag-aktif-bg); color: var(--tag-aktif-fg); border-color: rgba(90, 123, 104, 0.2); }
.stamp-sementara, .chip-sand { background: var(--tag-sementara-bg); color: var(--tag-sementara-fg); border-color: rgba(150, 111, 40, 0.2); }
.stamp-direvisi, .chip-slate { background: var(--tag-direvisi-bg); color: var(--tag-direvisi-fg); border-color: rgba(77, 100, 117, 0.2); }
.stamp-dihentikan, .chip-clay { background: var(--tag-dihentikan-bg); color: var(--tag-dihentikan-fg); border-color: rgba(168, 90, 72, 0.2); }
.stamp-draft { background: var(--tag-draft-bg); color: var(--tag-draft-fg); border-color: rgba(107, 102, 94, 0.2); }
.stamp-published { background: var(--tag-published-bg); color: var(--tag-published-fg); border-color: rgba(90, 123, 104, 0.2); }
.stamp-diarsipkan { background: var(--tag-diarsipkan-bg); color: var(--tag-diarsipkan-fg); border-color: rgba(140, 133, 120, 0.2); }

.kode-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.5rem;
  color: var(--ink-title);
  background: var(--surface);
  letter-spacing: 0.02em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   HERO SECTION (Editorial Magazine Style)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.hero-contours {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.hero-badge,
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sage-bg);
  color: var(--sage);
  padding: 0.32rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(90, 123, 104, 0.15);
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.hero-title,
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink-title);
  margin-bottom: 1.2rem;
}
.hero-title em {
  font-style: italic;
  color: var(--sage);
  font-weight: 400;
}

.hero-lead,
.hero p.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.hero-cta,
.hero .cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin: 2em 0;
  box-shadow: var(--shadow-sm);
}
.callout-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.section { padding: 3.5rem 0 4.5rem; }
.section-head, .section-header {
  margin-bottom: 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-head h2, .section-title { margin: 0; font-size: 1.85rem; }

.four-part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.part-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.part-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.part-card h3 { margin: 0; font-size: 1.15rem; }
.part-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.part-card a { font-size: 0.88rem; font-weight: 600; color: var(--sage); }

.principle-list {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.principle-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.principle-list strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--sage);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* ==========================================================================
   CARDS & LIST VIEWS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

.card,
.card-modern {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.card:hover,
.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
  text-decoration: none;
}

.card-cover,
.card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #F0EAE1, #E5DDD0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card-cover img,
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover .card-cover img,
.card-modern:hover .card-media img {
  transform: scale(1.02);
}
.card-cover .placeholder-code {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.card-body h3,
.card-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-title);
  transition: color 0.15s ease;
}
.card:hover .card-body h3,
.card-modern:hover .card-title {
  color: var(--sage);
}
.card-body p,
.card-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
}
.card .meta-row,
.card-meta-row {
  margin-top: 0.2rem;
}
.card-action {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

/* Filter Bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-chip {
  font-size: 0.84rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--ink-body);
  background: var(--surface);
  text-decoration: none;
  transition: all 0.15s ease;
}
.filter-chip:hover {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  color: var(--ink-title);
}
.filter-chip.active {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
  font-weight: 600;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--ink-muted);
}

/* ==========================================================================
   DETAIL PAGE & ARTICLES
   ========================================================================== */
.detail-hero { border-bottom: 1px solid var(--line); background: var(--surface); }
.detail-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.detail-head { padding: 3rem 0 2rem; }
.detail-head .meta-row { margin-bottom: 1.2rem; }
.article-body { padding: 1.5rem 0 4.5rem; }

.callout-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.callout-box h4 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  color: var(--sage);
  font-weight: 600;
}

/* ==========================================================================
   PERANGKAT (TOOLS)
   ========================================================================== */
.fase-block { margin-bottom: 3.5rem; }
.fase-block h2 {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}
.tool-card .kode-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.tool-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 500;
}
.tool-card .tool-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.tool-card .tool-desc p:last-child { margin-bottom: 0; }

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  max-width: 48rem;
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 1.4rem; }
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink-title);
}
label .hint { font-weight: 400; color: var(--ink-faint); font-size: 0.82rem; }

input[type=text],
input[type=date],
input[type=email],
input[type=password],
input[type=number],
input[type=url],
input[type=file],
input[type=search],
textarea,
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-title);
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(90, 123, 104, 0.12);
}

textarea {
  min-height: 180px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  resize: vertical;
  line-height: 1.6;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 0.9rem; margin-top: 2rem; align-items: center; }
.field-help { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.35rem; }

.upload-widget {
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.upload-widget label { margin-bottom: 0.6rem; }
.media-md-input { flex: 1; min-width: 0; }
.media-preview {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 0.8rem;
  background: #000;
}
video.media-preview { object-fit: contain; }

.prose video, .prose audio { width: 100%; margin: 1.8em 0; border-radius: var(--radius-md); }
.prose video { border: 1px solid var(--line); background: #000; }

/* ==========================================================================
   TABLES (Audit Log & Decision History)
   ========================================================================== */
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  font-weight: 600;
  background: var(--surface-soft);
}
tr:hover td { background: rgba(255, 255, 255, 0.5); }

/* ==========================================================================
   FLASH MESSAGES (Floating Pill Alerts)
   ========================================================================== */
.flash-wrap {
  max-width: var(--max-width);
  margin: 1.2rem auto 0;
  padding: 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.flash {
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}
.flash-success { background: var(--tag-aktif-bg); color: var(--tag-aktif-fg); border-color: rgba(90, 123, 104, 0.25); }
.flash-error { background: var(--tag-dihentikan-bg); color: var(--tag-dihentikan-fg); border-color: rgba(168, 90, 72, 0.25); }
.flash-info { background: var(--tag-direvisi-bg); color: var(--tag-direvisi-fg); border-color: rgba(77, 100, 117, 0.25); }

/* ==========================================================================
   FOOTER (Clean Multi-Column Minimalist Modern)
   ========================================================================== */
footer,
.footer-modern {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding: 3.8rem 0 2.2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.8rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink-title);
  margin-bottom: 0.7rem;
  display: inline-block;
  text-decoration: none;
}
.footer-brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-brand-mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}
.footer-brand-with-logo > span {
  display: flex;
  flex-direction: column;
}
.footer-brand small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 0.3rem;
}
.footer-desc {
  max-width: 26rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-title);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--sage);
}

.footer-bottom {
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   TENTANG KAMI & DASBOR
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.team-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  background: var(--surface-soft);
  margin: 0 auto 0.9rem;
}
.team-card h4 { margin: 0; font-size: 1.05rem; }
.team-card p { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--ink-muted); }

.page-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--sage);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}
.page-header p.lead {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 44rem;
  line-height: 1.6;
}

.owner-actions { display: flex; gap: 0.8rem; margin: 1.6rem 0; }
.badge-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}
.dashboard-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}
.dashboard-col h2 { margin-top: 0; font-size: 1.2rem; }
.dashboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.dashboard-item:last-child { border-bottom: none; }

/* ==========================================================================
   ABOUT PAGE — TEP UI × SOEL
   ========================================================================== */
.about-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-title);
  color: #fff;
  padding: 5.5rem 0 5rem;
}
.about-hero::after {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  right: -10rem;
  top: -14rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255,255,255,.035), 0 0 0 7rem rgba(255,255,255,.025);
}
.about-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
.about-hero-copy { max-width: 39rem; }
.about-hero .eyebrow, .section-kicker { color: var(--sand); font: 600 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.about-hero h1 { color: #fff; font-size: clamp(2.7rem, 5.5vw, 5rem); margin: 1rem 0 1.35rem; }
.about-hero-lead { color: rgba(255,255,255,.76); font-size: 1.18rem; line-height: 1.65; max-width: 34rem; }
.about-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: rgba(255,255,255,.58); font: .73rem var(--font-mono); margin: 1.8rem 0; }
.about-hero-meta span:nth-child(even) { color: var(--sand); }
.about-hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.about-hero .btn { background: #fff; border-color: #fff; color: var(--ink-title); }
.about-hero .btn-outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.35); }
.about-hero-art { position: relative; min-height: 23rem; display: flex; align-items: center; justify-content: center; }
.about-photo-placeholder { width: min(100%, 25rem); aspect-ratio: 4/5; border: 1px solid rgba(255,255,255,.24); background: linear-gradient(145deg, rgba(90,123,104,.7), rgba(77,100,117,.35)); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: rgba(255,255,255,.8); box-shadow: 1.5rem 1.5rem 0 rgba(255,255,255,.06); }
.about-photo-placeholder span { font: 600 1rem var(--font-display); }
.about-photo-placeholder code { color: rgba(255,255,255,.62); background: transparent; padding: .5rem 0 0; font-size: .67rem; }
.about-location-card { position: absolute; right: 0; bottom: 1rem; background: var(--surface); color: var(--ink-title); padding: 1rem 1.2rem; border: 1px solid var(--line); box-shadow: var(--shadow-floating); min-width: 13rem; }
.about-location-card .eyebrow { display: block; margin-bottom: .4rem; color: var(--sage); }
.about-location-card strong, .about-location-card span:last-child { display: block; }
.about-location-card span:last-child { color: var(--ink-muted); font-size: .78rem; }
.about-section { background: var(--surface); }
.about-intro-grid { display: grid; grid-template-columns: minmax(18rem, .8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; }
.about-intro-heading { position: sticky; top: 6rem; }
.about-intro-grid h2 { margin-top: .7rem; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.about-prose { max-width: none; }
.about-prose > h2:first-child { margin-top: 0; }
.about-prose > h2 { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.about-prose > hr { display: none; }
.about-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.about-detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-card); }
.about-detail-card h3 { margin: .55rem 0 .65rem; font-size: 1.3rem; }
.about-detail-card p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1rem; }
.about-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--sage); font: 600 .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .03em; }
.about-flow b { color: var(--sand); font-size: .9rem; }
.about-detail-link { font: 600 .78rem var(--font-mono); color: var(--sage); }
.about-team-section { background: var(--surface-soft); }
.about-team-section .section-head p { margin: 0; color: var(--ink-muted); font-size: .9rem; }
.team-grid-editorial { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.team-grid-editorial .team-card { padding: 0; text-align: left; overflow: hidden; display: flex; flex-direction: column; }
.team-grid-editorial .team-photo { width: 100%; height: auto; aspect-ratio: 1/1; border: 0; border-radius: 0; margin: 0; object-fit: cover; }
.team-photo-placeholder { display: flex; align-items: center; justify-content: center; background: var(--sage-bg); color: var(--sage); }
.team-photo-placeholder span { font: 2.5rem var(--font-display); }
.team-card-copy { padding: 1rem 1.1rem 1.25rem; }
.team-index { color: var(--sand); font: .68rem var(--font-mono); }
.team-grid-editorial .team-card h3 { font-size: 1.15rem; margin: .35rem 0 .3rem; }
.team-grid-editorial .team-card p { line-height: 1.5; }
.about-gallery-head { margin-top: 2.75rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.about-gallery-head h3 { margin: 0; font-size: 1.45rem; letter-spacing: -0.02em; }
.about-gallery-head p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; max-width: 32rem; }
.about-gallery-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.about-gallery-count { display: inline-flex; align-items: center; padding: .32rem .62rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-muted); font: 600 .68rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

.about-swiper { margin-top: 1.25rem; overflow: hidden; padding-bottom: 2.5rem; }
.about-swiper .swiper-slide { height: auto; }
.about-swiper .about-gallery-view { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--surface-soft); border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; }
.about-swiper img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-swiper-delete { position: absolute; top: .55rem; right: .55rem; z-index: 2; }
.about-swiper-delete .about-delete-link { display: inline-flex; align-items: center; padding: .28rem .5rem; border-radius: var(--radius-pill); background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.9); color: var(--clay); box-shadow: var(--shadow-sm); }
.about-swiper .swiper-button-prev,
.about-swiper .swiper-button-next { color: var(--ink-title); width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow-sm); }
.about-swiper .swiper-button-prev::after,
.about-swiper .swiper-button-next::after { font-size: 14px; font-weight: 700; }
.about-swiper .swiper-pagination-bullet { background: var(--ink-faint); opacity: .5; }
.about-swiper .swiper-pagination-bullet-active { background: var(--sage); opacity: 1; }
.about-swiper .swiper-slide { position: relative; }

.about-masonry { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; grid-auto-flow: dense; }
.about-masonry-item { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-soft); aspect-ratio: 4 / 3; }
.about-masonry-item.is-featured { grid-column: span 2; aspect-ratio: 16 / 10; }
.about-masonry-item[hidden] { display: none !important; }
.about-masonry-item .about-gallery-view { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.about-masonry-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.about-masonry-item:hover img { transform: scale(1.04); }
.about-masonry-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(35,32,28,.16) 100%); opacity: 0; transition: opacity .28s ease; pointer-events: none; }
.about-masonry-item:hover::after { opacity: 1; }
.about-masonry-delete { position: absolute; top: .55rem; right: .55rem; z-index: 1; }
.about-masonry-delete .about-delete-link { display: inline-flex; align-items: center; padding: .28rem .5rem; border-radius: var(--radius-pill); background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.9); color: var(--clay); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.about-masonry-delete .about-delete-link:hover { background: #fff; }
.about-gallery-more { margin-top: 1rem; display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.about-gallery-more-btn { min-height: 40px; }
.about-gallery-more-hint { color: var(--ink-muted); font: .78rem var(--font-body); }

@media (max-width: 760px) { .about-hero { padding: 3.5rem 0; } .about-hero-grid, .about-intro-grid, .about-detail-grid { grid-template-columns: 1fr; gap: 2.5rem; } .about-intro-heading { position: static; } .about-hero-art { min-height: 19rem; } .about-location-card { right: .5rem; } .team-grid-editorial { grid-template-columns: repeat(2, 1fr); } .about-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); } .about-masonry-item.is-featured { grid-column: span 2; } }
@media (max-width: 640px) {
  .team-grid-editorial { grid-template-columns: 1fr; }
  .team-grid-editorial .team-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; }
  .team-grid-editorial .team-photo { width: 76px; height: 76px; aspect-ratio: 1; }
  .team-grid-editorial .team-card-copy { padding: 0.85rem 1rem; }
  .about-masonry { grid-template-columns: 1fr; }
  .about-masonry-item, .about-masonry-item.is-featured { grid-column: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 460px) { .team-grid-editorial { grid-template-columns: 1fr; } }

.about-photo-button, .about-gallery-view, .team-photo-button { display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.about-photo-main { width: min(100%, 25rem); aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid rgba(255,255,255,.24); }
.about-inline-upload { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; }
.about-member-upload { margin-top: .55rem; }
.about-upload-link, .about-delete-link { color: var(--sage); background: none; border: 0; padding: 0; cursor: pointer; font: 600 .72rem var(--font-mono); }

.about-lightbox[hidden] { display: none; }
.about-lightbox { position: fixed; inset: 0; z-index: 2400; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.about-lightbox-backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.82); backdrop-filter: blur(8px); }
.about-lightbox-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .85rem; max-width: min(88vw, 1080px); width: 100%; margin: 0; }
.about-lightbox-image { display: block; max-width: 100%; max-height: min(78vh, 860px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-lg); box-shadow: var(--shadow-floating); background: #111; }
.about-lightbox-stage figcaption { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; justify-content: center; color: rgba(255,255,255,.86); }
.about-lightbox-title { font: 500 .88rem var(--font-body); letter-spacing: -0.01em; }
.about-lightbox-counter { display: inline-flex; align-items: center; padding: .22rem .5rem; border-radius: var(--radius-pill); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.9); font: 600 .68rem var(--font-mono); letter-spacing: .06em; }
.about-lightbox-close, .about-lightbox-nav { position: absolute; z-index: 2; display: grid; place-items: center; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(10px); cursor: pointer; transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.about-lightbox-close { top: 1rem; right: 1rem; width: 40px; height: 40px; }
.about-lightbox-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }
.about-lightbox-prev { left: 1rem; }
.about-lightbox-next { right: 1rem; }
.about-lightbox-close svg, .about-lightbox-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.about-lightbox-close:hover, .about-lightbox-nav:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.26); }
.about-lightbox-close:active, .about-lightbox-nav:active { transform: translateY(-50%) scale(.96); }
.about-lightbox-close:active { transform: scale(.96); }
.about-lightbox-close:focus-visible, .about-lightbox-nav:focus-visible, .about-gallery-view:focus-visible, .about-bento-delete .about-delete-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body.about-lightbox-open { overflow: hidden; }
@media (max-width: 640px) { .about-lightbox { padding: 1rem .75rem; } .about-lightbox-nav { width: 38px; height: 38px; } .about-lightbox-prev { left: .5rem; } .about-lightbox-next { right: .5rem; } .about-lightbox-close { top: .6rem; right: .6rem; } }
@media (prefers-reduced-motion: reduce) { .about-bento-item img { transition: none; } .about-bento-item:hover img { transform: none; } }

.about-photo-modal { position: fixed; inset: 0; z-index: 2300; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.about-photo-modal[hidden] { display: none; }
.about-photo-modal-backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.78); }
.about-photo-modal-panel { position: relative; z-index: 1; max-width: min(900px, 94vw); max-height: 92vh; padding: 1rem; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-floating); }
.about-photo-modal-image { max-width: 100%; max-height: 80vh; object-fit: contain; }
.about-photo-modal-title { margin: .65rem 0 0; font-size: .85rem; color: var(--ink-muted); }
.about-photo-modal-close { position: absolute; top: .45rem; right: .45rem; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-title); font-size: 1.2rem; cursor: pointer; }
body.about-photo-modal-open { overflow: hidden; }
@media (max-width: 460px) { .about-photo-main { aspect-ratio: 1; } }

/* ==========================================================================
   PENCARIAN GLOBAL (Universal Search)
   ========================================================================== */
.search-hero-form { margin-top: 1.8rem; max-width: 46rem; }
.search-input-group {
  display: flex;
  align-items: center;
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  padding: 0.2rem 0.3rem 0.2rem 1.2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input-group:focus-within {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(90, 123, 104, 0.12);
}
.search-icon {
  color: var(--ink-faint);
  pointer-events: none;
  flex-shrink: 0;
  margin-right: 0.6rem;
}
.search-main-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 0.75rem 0.5rem !important;
  font-size: 1.05rem !important;
  font-family: var(--font-body);
  color: var(--ink-title);
  box-shadow: none !important;
}
.search-main-input:focus { outline: none !important; }
.search-clear-btn {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-faint);
  padding: 0 0.8rem;
  text-decoration: none;
  cursor: pointer;
}
.search-clear-btn:hover { color: var(--ink-title); }
.btn-search {
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.4rem;
}

.search-meta-bar {
  margin-bottom: 2.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.search-summary-text {
  font-size: 1.05rem;
  color: var(--ink-body);
  margin-bottom: 1.2rem;
}
.search-query-tag {
  color: var(--sage);
  font-weight: 600;
}
.search-filter-bar { margin-bottom: 0; }

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 52rem;
}
.search-result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.search-result-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}
.search-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}
.search-meta-info {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-left: auto;
}
.search-result-title {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  line-height: 1.35;
}
.search-result-title a {
  color: var(--ink-title);
  text-decoration: none;
  transition: color 0.15s ease;
}
.search-result-title a:hover {
  color: var(--sage);
}
.search-snippet {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
}
.search-highlight {
  background: var(--sand-bg);
  color: #6E4E10;
  padding: 0.08em 0.3em;
  border-radius: 3px;
  font-weight: 600;
  border-bottom: 1px solid rgba(150, 111, 40, 0.3);
}
.search-card-footer {
  display: flex;
  justify-content: flex-end;
}
.search-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage);
}

.search-empty-state {
  max-width: 44rem;
  margin: 1.5rem auto;
  padding: 3.5rem 2rem;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}
.search-empty-icon {
  font-size: 2.2rem;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}
.search-empty-state h3 { margin-top: 0; font-size: 1.3rem; }
.search-suggestions {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line);
}
.hint-label {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.8rem;
}
.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.search-start-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  max-width: 48rem;
  box-shadow: var(--shadow-card);
}
.search-start-box h3 { margin-top: 0; }
.search-start-box .suggestion-chips { justify-content: flex-start; }

/* ==========================================================================
   HERO MAP SECTION - Animasi Zoom Interaktif
   Fitur: Animasi map zoom dari globe ke lokasi Werianggi-Werabur, Werianggi-Werabur
   Created: 2026-09-06
   ========================================================================== */

.hero-map-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  margin-bottom: 4rem;
  overflow: hidden;
}

.map-container {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.map-overlay-toggle {
  display: none;
}

.map-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(234, 228, 217, 0.6);
  box-shadow: var(--shadow-sm);
  max-width: 320px;
  min-height: 88px;
  z-index: 1001;
  display: flex;
  align-items: center;
}

.map-caption .eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.map-caption h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-title);
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.map-caption p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

/* Custom Marker Styling */
.custom-marker {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transform-origin: center center;
}

.custom-marker.marker-visible {
  opacity: 1 !important;
}

.custom-marker svg {
  filter: drop-shadow(0 2px 4px rgba(35, 32, 28, 0.2));
}

.custom-leaflet-marker {
  background: transparent;
  border: none;
  opacity: 1 !important;
  z-index: 600 !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.custom-leaflet-marker.marker-visible {
  opacity: 1 !important;
}

/* Marker Types Specific Styles */
.custom-leaflet-marker.marker-primary {
  z-index: 650 !important;
}

.custom-leaflet-marker.marker-secondary,
.custom-leaflet-marker.marker-poi,
.custom-leaflet-marker.marker-custom {
  z-index: 600 !important;
}

.soel-map-popup .leaflet-popup-content-wrapper {
  max-width: min(260px, calc(100vw - 40px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-floating);
  font-family: var(--font-body);
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.soel-map-popup .leaflet-popup-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: var(--font-body);
}

.leaflet-popup-content .popup-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 14px 16px 16px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.leaflet-popup-content .popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.leaflet-popup-content .popup-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--sage-bg);
  color: var(--sage);
}

.leaflet-popup-content strong {
  color: var(--ink-title);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  font-size: 0.88rem;
  line-height: 1.25;
}

.leaflet-popup-content .popup-region {
  display: block;
  color: var(--ink-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.leaflet-popup-content .popup-desc {
  display: none;
  max-height: 84px;
  margin: 0;
  padding-right: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  font-size: 0.72rem;
  color: var(--ink-body);
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-overflow-scrolling: touch;
}

.leaflet-popup-content .popup-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.leaflet-popup-content .popup-desc-toggle {
  align-self: flex-start;
  margin-top: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-title);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.leaflet-popup-content .popup-desc-toggle:hover {
  background: var(--surface-soft);
  border-color: var(--line-strong);
}

.soel-map-popup.is-expanded .popup-desc {
  display: block;
}

.leaflet-popup-close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0 !important;
  border: none !important;
  background: var(--surface) !important;
  color: var(--ink-muted) !important;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 10;
}

.leaflet-popup-close-button:hover {
  background: var(--surface-soft) !important;
  color: var(--ink-title) !important;
}

.leaflet-popup-anchor-bottom .leaflet-popup-tip {
  border-top-color: var(--surface);
}

.leaflet-popup-anchor-top .leaflet-popup-tip {
  border-bottom-color: var(--surface);
}

.leaflet-popup-anchor-left .leaflet-popup-tip {
  border-right-color: var(--surface);
}

.leaflet-popup-anchor-right .leaflet-popup-tip {
  border-left-color: var(--surface);
}

/* Leaflet Controls Customization */
.leaflet-ctrl-group {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.leaflet-ctrl-group button {
  width: 32px;
  height: 32px;
}

.leaflet-ctrl-group button:hover {
  background-color: var(--surface-soft);
}

.leaflet-ctrl-compass {
  filter: grayscale(0.3);
}

/* Responsive Breakpoints */
@media (max-width: 1023px) {
  .hero-map-section {
    height: 60vh;
    min-height: 450px;
    margin-bottom: 3rem;
  }

  .map-overlay {
    left: 1.5rem;
    right: auto;
    bottom: 1.5rem;
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .hero-map-section {
    height: 55vh;
    min-height: 420px;
    margin-bottom: 2rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .map-mobile-controls {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.625rem;
    z-index: 1002;
  }

  .map-mobile-controls .map-overlay-toggle,
  .map-mobile-controls .stats-toggle-pill {
    appearance: none;
    -webkit-appearance: none;
    position: static;
    flex: 1 1 0;
    width: 50%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink-title);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    touch-action: manipulation;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  .map-overlay {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 5.25rem;
    padding: 0.625rem 0.85rem;
    max-width: none;
    min-height: 88px;
    display: none;
  }

  .map-overlay.is-visible {
    display: block !important;
  }

  .map-overlay.is-collapsed {
    display: none !important;
  }

  .map-mobile-controls .stats-toggle-pill {
    z-index: 1002;
  }

  .map-header-controls {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 3.75rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.625rem;
    z-index: 1001;
  }

  .map-header-controls .map-style-switcher,
  .map-header-controls .map-search-box {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 0;
  }

  .map-header-controls .map-style-switcher {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 3px;
  }

  .map-header-controls .map-style-switcher .style-btn {
    width: 78px;
    min-height: 30px;
    padding: 0.35rem 0.45rem;
    font-size: 0.7rem;
  }

  .map-header-controls .map-search-box {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    bottom: auto;
    align-self: flex-start;
  }

  .map-header-controls .map-search-box .search-input {
    width: 100%;
    height: 30px;
    min-height: 30px;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }

  .map-header-controls .search-results-dropdown {
    max-height: 180px;
  }

  .map-caption {
    padding-right: 0;
  }

  .map-caption h2 {
    font-size: 1.1rem;
  }

  .map-caption p {
    font-size: 0.8rem;
  }

  .map-overlay,
  .map-stats-panel {
    margin-bottom: env(safe-area-inset-bottom, 0px);
  }

  .map-search-box {
    top: auto;
    bottom: 4.25rem;
    left: 1rem;
    transform: none;
    width: calc(100% - 2rem);
  }

  .search-input {
    min-height: 44px;
    padding: 6px 12px;
    font-size: 0.8125rem;
    touch-action: manipulation;
  }

  .map-style-switcher {
    top: 1rem;
    left: 1rem;
    padding: 2px;
  }

  .style-btn {
    min-height: 44px;
    padding: 4px 10px;
    font-size: 0.75rem;
    touch-action: manipulation;
  }

  .share-btn,
  .stats-toggle-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    margin-top: 0.5rem;
    touch-action: manipulation;
  }

  .hero-map-section .map-stats-panel {
    bottom: 5.25rem;
    left: 1rem;
    right: 1rem;
    min-width: 0;
    max-width: none;
    padding: 0.625rem 0.85rem;
    gap: 6px;
    overscroll-behavior: contain;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: none;
    border-radius: var(--radius);
    border: 1px solid rgba(234, 228, 217, 0.6);
    box-shadow: var(--shadow-sm);
  }

  .hero-map-section .map-stats-panel.is-visible {
    display: grid !important;
  }

  .hero-map-section .map-stats-panel.is-collapsed {
    display: none !important;
  }

  .hero-map-section .stat-item {
    min-width: 0;
    overflow: hidden;
    padding: 0.5rem 0.25rem;
  }

  .hero-map-section .stat-number {
    font-size: 1.05rem;
  }

  .hero-map-section .stat-label {
    font-size: 0.55rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .soel-map-popup .leaflet-popup-content-wrapper {
    max-width: min(220px, calc(100vw - 24px));
  }

  .soel-map-popup .leaflet-popup-content {
    width: min(208px, calc(100vw - 28px));
    padding: 0.5rem;
  }
}

@media (max-width: 380px) {
  .map-overlay {
    top: 4rem;
    padding: 0.875rem 1rem;
  }

  .map-caption h2 {
    font-size: 1.1rem;
  }

  .map-stats-panel {
    gap: 6px;
    padding: 0.875rem;
    min-width: 0;
  }

  .stat-number {
    font-size: 1.25rem;
  }
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
  .hero-map-section {
    /* Animation will be skipped via JavaScript */
  }
  
  .custom-marker svg circle animate {
    animation-play-state: paused;
  }
}

/* Loading State */
.map-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: mapSpinner 0.8s linear infinite;
  z-index: 1;
}

@keyframes mapSpinner {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.leaflet-canvas-container.leaflet-interactive {
  cursor: grab;
}

.leaflet-canvas-container.leaflet-interactive:active {
  cursor: grabbing;
}


/* Leaflet-specific overrides */
.custom-leaflet-marker {
  width: 40px;
  height: 40px;
  cursor: pointer;
  opacity: 1 !important;
  background: transparent;
  border: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.custom-leaflet-marker.marker-visible {
  opacity: 1 !important;
}

.custom-leaflet-marker svg {
  filter: drop-shadow(0 2px 4px rgba(35, 32, 28, 0.2));
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  background: var(--surface);
  border: 1px solid var(--line);
}

.leaflet-popup-content {
  margin: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.leaflet-popup-content .popup-content strong {
  color: var(--ink-title);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

.leaflet-popup-content .popup-content span {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.leaflet-popup-close-button {
  color: var(--ink-muted) !important;
  font-size: 1.25rem !important;
  padding: 0.25rem 0.5rem !important;
}

.leaflet-popup-close-button:hover {
  background: var(--surface-soft) !important;
  color: var(--ink-title) !important;
}

.leaflet-popup-tip {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Leaflet controls styling */
.leaflet-control-zoom {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-sm) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.leaflet-control-zoom a {
  background: transparent !important;
  color: var(--ink-title) !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  border-bottom: 1px solid var(--line) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--surface-soft) !important;
}

.leaflet-control-zoom a:last-child {
  border-bottom: none !important;
}

/* Leaflet attribution */
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.7rem !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--line) !important;
}

.leaflet-control-attribution a {
  color: var(--sage) !important;
}

/* Leaflet container cursor */
.leaflet-container {
  cursor: grab;
}

.leaflet-container.leaflet-drag-target {
  cursor: grabbing;
}

/* Reduced motion for Leaflet animations */
@media (prefers-reduced-motion: reduce) {
  .custom-leaflet-marker svg .pulse-ring animate {
    animation-play-state: paused !important;
  }
  
  .leaflet-fade-anim .leaflet-tile,
  .leaflet-fade-anim .leaflet-popup {
    transition: none !important;
  }
}

/* ==========================================================================
   FEATURE 1: MAP STYLE TOGGLE
   Minimalist-UI Principles: #111111 solid buttons, no heavy shadows, crisp radius
   ========================================================================== */

.map-style-switcher {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line, #EAE4D9);
  border-radius: var(--radius, 6px);
  padding: 4px;
  display: flex;
  gap: 4px;
  z-index: 1000;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(35, 32, 28, 0.04));
}

.style-btn {
  background: transparent;
  color: var(--ink-body, #3D3934);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.style-btn:hover:not(.active) {
  background: var(--surface-soft, #F4EFEB);
  color: var(--ink-title, #23201C);
}

.style-btn.active {
  background: var(--ink-title, #23201C);
  color: #FFFFFF;
}

/* ==========================================================================
   FEATURE 2: SEARCH LOCATION
   Minimalist-UI Principles: clean input, ultra-light dropdown, no emoji in code
   ========================================================================== */

.map-search-box {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  max-width: calc(100% - 3rem);
  z-index: 1000;
}

.search-input {
  width: 100%;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line, #EAE4D9);
  border-radius: var(--radius, 6px);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.875rem;
  color: var(--ink-body, #3D3934);
  outline: none;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(35, 32, 28, 0.04));
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  border-color: var(--sage, #5A7B68);
  box-shadow: 0 0 0 2px rgba(90, 123, 104, 0.15);
}

.search-input::placeholder {
  color: var(--ink-muted, #78726A);
}

.search-results-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--line, #EAE4D9);
  border-radius: var(--radius, 6px);
  box-shadow: var(--shadow-card, 0 2px 8px -2px rgba(35, 32, 28, 0.05));
  overflow: hidden;
  max-height: 200px;
  overflow-y: auto;
}

.search-result-item {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-body, #3D3934);
  transition: background-color 0.15s ease;
  border-bottom: 1px solid var(--line, #EAE4D9);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--surface-soft, #F4EFEB);
  color: var(--ink-title, #23201C);
}

.search-no-result {
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--ink-muted, #78726A);
  font-style: italic;
  text-align: center;
}

/* Mobile Responsiveness for Map Controls */
@media (max-width: 768px) {
  .map-style-switcher {
    top: 1rem;
    left: 1rem;
  }
  
  .map-search-box {
    top: 4.5rem;
    left: 1rem;
    transform: none;
    width: calc(100% - 2rem);
  }

  .map-style-switcher .style-btn,
  .stats-toggle-btn,
  .share-btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  .search-input,
  .map-search-box .search-input {
    min-height: 44px;
    touch-action: manipulation;
  }
}

/* ==========================================================================
   FEATURE 3: SHARE MAP VIEW
   Minimalist-UI: Share button in overlay, toast notification
   ========================================================================== */

.share-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-title, #23201C);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-top: 0.75rem;
  opacity: 0.6;
  position: relative;
  z-index: 1002;
}

.share-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.share-btn:focus-visible {
  outline: 2px solid var(--sage, #5A7B68);
  outline-offset: 2px;
  border-radius: 2px;
}

.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink-title, #23201C);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius, 6px);
  font-size: 0.875rem;
  z-index: 2000;
  transition: bottom 0.3s ease;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(0, 0, 0, 0.1));
}

.toast.toast-show {
  bottom: 20px;
}

.toast.toast-error {
  background: #A85A48;
}

/* ==========================================================================
   FEATURE 4: STATS OVERLAY PANEL
   Minimalist-UI: Bento grid 2x2, generous padding, ultra-light borders
   ========================================================================== */

.map-stats-panel {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(234, 228, 217, 0.6);
  border-radius: var(--radius, 6px);
  padding: 1rem 1.5rem;
  z-index: 1000;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(35, 32, 28, 0.04));
  min-width: 0;
  max-width: min(560px, calc(100vw - 4rem));
  min-height: 88px;
  height: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.35rem 0.5rem;
  min-width: 0;
  height: 100%;
  border: 1px solid var(--line, #EAE4D9);
  border-radius: var(--radius, 6px);
  background: var(--surface-soft, #F9F9F8);
  transition: all 0.15s ease;
}

.stat-item:hover {
  border-color: var(--sage, #5A7B68);
  background: var(--surface, #FFFFFF);
}

.stat-number {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink-title, #23201C);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.1rem;
}

.stat-label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--ink-muted, #78726A);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* Stats responsive: 768px handled inside 640px block below (order: 1023 -> 768 -> 640 -> 380) */

/* ==========================================================================
   FEATURE 5 & 6: MULTIPLE MARKERS & GESTURES
   Minimalist-UI: Muted pastel tags, clean typography, responsive popups
   ========================================================================== */

.popup-tag {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 1px 4px;
  border-radius: var(--radius-sm, 4px);
  margin-bottom: 0.2rem;
}

.popup-tag-primary {
  background: #EDF3F0;
  color: #3E5F4C;
}

.popup-tag-secondary {
  background: #FBF4E8;
  color: #855F1B;
}

.popup-tag-poi {
  background: #F8EFEA;
  color: #944A39;
}

.popup-tag-custom {
  background: #EFF3F6;
  color: #3B5364;
}

.popup-region {
  display: block;
  font-size: 0.66rem;
  color: var(--ink-muted, #78726A);
  margin-top: -0.02rem;
  margin-bottom: 0.2rem;
}

.popup-desc {
  display: none;
  font-size: 0.72rem;
  color: var(--ink-body, #3D3934);
  line-height: 1.35;
  margin: 0.2rem 0 0 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.soel-map-popup.is-expanded .popup-desc {
  display: block;
}

.popup-desc-toggle {
  align-self: flex-start;
  margin-top: 0.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.45rem;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-title);
  cursor: pointer;
}

/* Stats Toggle Button */
.stats-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-muted, #78726A);
  font-size: 1rem;
  padding: 4px 8px;
  position: absolute;
  top: 8px;
  right: 8px;
  line-height: 1;
  transition: color 0.15s ease;
}

.stats-toggle-btn:hover {
  color: var(--ink-title, #23201C);
}

/* Stats Toggle Pill when hidden - kept separate (not responsive override) */

/* Stats Toggle Pill when hidden */
.stats-toggle-pill {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--line, #EAE4D9);
  cursor: pointer;
  z-index: 1000;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-title, #23201C);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(35, 32, 28, 0.04));
}

.stats-toggle-pill:hover {
  background: var(--surface, #FFFFFF);
  border-color: var(--sage, #5A7B68);
}

@media (max-width: 900px) {
  .nav-drawer-inner { padding: .85rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
  .drawer-search { margin-bottom: .65rem; }
  .drawer-nav, .drawer-account { gap: .18rem; }
  .drawer-link, .drawer-group-toggle { min-height: 44px; display: flex; align-items: center; padding: .65rem .75rem; }
  .drawer-group-menu { padding-left: .7rem; margin-left: .65rem; }
  .drawer-sub-link { min-height: 40px; display: flex; align-items: center; padding: .5rem .75rem; }
  .drawer-account-name { padding: .35rem .75rem .55rem; font-size: .72rem; }
  .drawer-label { padding: .7rem .75rem .25rem; }
  .drawer-divider { margin: .65rem 0; }
  .drawer-btn-masuk { min-height: 44px; }
}


.decision-intro { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.2rem 0 2.4rem; }
.decision-intro h2 { margin-top: 0; }
.decision-status-note { margin: 1.6rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.decision-flow { margin: 1.8rem 0 2rem; }
.decision-flow__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.decision-flow__step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.2rem 1.25rem 1.35rem; min-height: 9.5rem; display: flex; flex-direction: column; gap: 2.2rem; }
.decision-flow__step strong { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--ink-title); }
.decision-flow__number { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-muted); }
.decision-flow__step--final { background: var(--sage-bg); border-color: rgba(90, 123, 104, 0.35); }
.decision-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.decision-links a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.62rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-title); font-size: 0.9rem; font-weight: 600; }
.decision-links a:hover { border-color: var(--sage); color: var(--sage); }
@media (max-width: 1000px) { .decision-flow__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .decision-flow__step { min-height: 0; gap: 1.4rem; } }
@media (max-width: 560px) { .decision-flow__list { grid-template-columns: 1fr; } .decision-links a { width: 100%; justify-content: space-between; } }

.confirm-dialog[hidden] { display: none; }
.confirm-dialog { position: fixed; inset: 0; z-index: 3200; display: grid; place-items: center; padding: 24px; }
.confirm-dialog__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.62); }
.confirm-dialog__panel { position: relative; width: min(430px, calc(100vw - 48px)); background: #FFFFFF; border: 1px solid #EAEAEA; border-radius: 12px; padding: 28px; }
.confirm-dialog__eyebrow { margin: 0 0 8px; color: #787774; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.confirm-dialog__panel h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.confirm-dialog__panel p:last-of-type { margin: 0 0 24px; color: #2F3437; line-height: 1.6; }
.confirm-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }
.confirm-dialog__actions .btn { min-width: 108px; border-radius: 6px; box-shadow: none; }
body.confirm-dialog-open { overflow: hidden; }
[data-photo-zoom] { cursor: zoom-in; }
.photo-zoom-overlay { position: fixed; inset: 0; z-index: 2200; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(17, 17, 17, 0.72); cursor: zoom-out; }
.photo-zoom-overlay[hidden] { display: none; }
.photo-zoom-image { max-width: min(880px, 92vw); max-height: 88vh; border: 1px solid #EAEAEA; border-radius: 12px; background: #FFFFFF; object-fit: contain; }
body.photo-zoom-open { overflow: hidden; }

@media (min-width: 901px) {
  .hero-map-section.map-full-page { height: calc(100vh - 3.75rem); min-height: 560px; margin-bottom: 0; }
}
@media (max-width: 900px) {
  .hero-map-section.map-full-page { height: calc(100dvh - 3.25rem); min-height: 520px; margin-bottom: 0; }
}

.soel-map-popup .leaflet-popup-content-wrapper { width: min(220px, calc(100vw - 40px)); }
.soel-map-popup .leaflet-popup-content { width: 100%; margin: 0; }
.soel-map-popup .leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content .popup-content { padding: 10px 12px 12px; gap: 0.35rem; }
.leaflet-popup-content strong { font-size: 0.78rem; padding-right: 18px; }
.leaflet-popup-content .popup-region { font-size: 0.68rem; }
.leaflet-popup-content .popup-desc { font-size: 0.7rem; }
.leaflet-popup-content .popup-desc-toggle { padding: 3px 6px; font-size: 0.62rem; }

@media (max-width: 520px) {
  .soel-map-popup .leaflet-popup-content-wrapper { width: min(204px, calc(100vw - 32px)); }
  .leaflet-popup-content .popup-content { padding: 9px 10px 11px; }
}

