/* Tema Dusun Ngadilegi Utara - port dari versi HTML statis */

    :root {
      color-scheme: light dark;
      --bg: #f4f7ef;
      --surface: #ffffff;
      --surface-soft: #eaf1e5;
      --surface-deep: #dce8d5;
      --ink: #173025;
      --muted: #52665a;
      --line: #cbd9c5;
      --green: #236b45;
      --green-strong: #145235;
      --green-soft: #d8eadc;
      --ochre: #bc7636;
      --ochre-soft: #f2dfc8;
      --shadow: 0 18px 50px rgba(37, 73, 51, .11);
      --header: rgba(244, 247, 239, .92);
      --focus: #1b7f4e;
      --max: 1180px;
    }
    html[data-theme="dark"] {
      --bg: #101a15;
      --surface: #18271f;
      --surface-soft: #1d3025;
      --surface-deep: #253a2d;
      --ink: #edf5ee;
      --muted: #aec0b2;
      --line: #35503d;
      --green: #78c694;
      --green-strong: #a8dfb9;
      --green-soft: #233e2c;
      --ochre: #e1a96b;
      --ochre-soft: #493522;
      --shadow: 0 18px 50px rgba(0, 0, 0, .22);
      --header: rgba(16, 26, 21, .92);
      --focus: #98d8ad;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 92px; }
    body {
      margin: 0;
      min-width: 320px;
      background: var(--bg);
      color: var(--ink);
      font-family: "DM Sans", sans-serif;
      line-height: 1.65;
      transition: background-color .25s ease, color .25s ease;
    }
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background-image: radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--green) 10%, transparent) 0 1px, transparent 1.5px), radial-gradient(circle at 80% 60%, color-mix(in srgb, var(--ochre) 9%, transparent) 0 1px, transparent 1.5px);
      background-size: 26px 26px, 34px 34px;
      opacity: .5;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; }
    button, input, textarea { font: inherit; }
    button { color: inherit; }
    :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
    .skip { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 10px 14px; background: var(--surface); border-radius: 8px; }
    .skip:focus { top: 12px; }
    .container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: var(--header);
      border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
      backdrop-filter: blur(14px);
    }
    .header-inner { min-height: 78px; display: flex; align-items: center; gap: 24px; }
    .brand { flex: 0 0 auto; width: 255px; text-decoration: none; }
    .brand img { width: 100%; height: auto; }
    .logo-dark { display: none; }
    html[data-theme="dark"] .logo-light { display: none; }
    html[data-theme="dark"] .logo-dark { display: block; }
    .site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
    .site-nav a { text-decoration: none; font-size: .9rem; font-weight: 600; padding: 9px 10px; border-radius: 8px; color: var(--muted); }
    .site-nav a:hover, .site-nav a.is-active { color: var(--green-strong); background: var(--surface-soft); }
    .header-actions { display: flex; align-items: center; gap: 8px; }
    .icon-btn {
      width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer;
    }
    .icon-btn:hover { background: var(--surface-soft); }
    .icon-btn svg { width: 20px; height: 20px; }
    .moon { display: none; }
    html[data-theme="dark"] .sun { display: none; }
    html[data-theme="dark"] .moon { display: block; }
    .menu-btn { display: none; }
    main { overflow: clip; }
    .hero { min-height: 620px; display: grid; align-items: center; padding: 88px 0 96px; position: relative; }
    .hero { background-image: linear-gradient(180deg, rgba(13, 32, 22, .68), rgba(13, 32, 22, .50)), url('../img/sawah-hero.jpg'); background-size: cover; background-position: center; }
    .hero .eyebrow, .hero h1 { color: #f2f7f1; }
    .hero .hero-lead { color: #d9e6db; }
    .hero-grid { display: grid; grid-template-columns: minmax(0, 880px); align-items: center; }
    .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--green-strong); font-weight: 700; font-size: .88rem; }
    .eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--ochre); }
    h1, h2, h3 { font-family: "Newsreader", serif; line-height: 1.08; margin: 0; }
    h1 { font-size: clamp(3rem, 7vw, 6rem); max-width: 800px; letter-spacing: -.045em; }
    h2 { font-size: clamp(2.15rem, 4.5vw, 4rem); letter-spacing: -.03em; }
    h3 { font-size: 1.55rem; }
    .hero-lead { margin: 25px 0 30px; max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
    .actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; cursor: pointer; }
    .btn-primary { background: var(--green-strong); color: #fff; border-color: transparent; }
    html[data-theme="dark"] .btn-primary { color: #102118; background: var(--green-strong); }
    .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--green) 14%, transparent); }
    .section { padding: 98px 0; }
    .section.alt { background: var(--surface-soft); border-block: 1px solid var(--line); }
    .section-head { display: grid; grid-template-columns: minmax(0, .75fr) minmax(320px, .55fr); justify-content: space-between; align-items: end; gap: 48px; margin-bottom: 46px; }
    .section-head p { margin: 0; color: var(--muted); }
    .about-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: start; }
    .story-panel { background-color: var(--green-strong); background-image: linear-gradient(color-mix(in srgb, var(--green-strong) 90%, transparent), color-mix(in srgb, var(--green-strong) 90%, transparent)), url('../img/kegiatan-tentang.jpg'); background-size: cover; background-position: center; color: #fff; padding: clamp(28px, 5vw, 54px); border-radius: 4px 34px 4px 34px; position: relative; overflow: hidden; min-height: 360px; }
    html[data-theme="dark"] .story-panel { color: #102118; }
    .story-panel::after { content: ""; position: absolute; width: 220px; height: 220px; border: 36px solid color-mix(in srgb, #fff 12%, transparent); border-radius: 50%; right: -80px; bottom: -90px; }
    .story-panel h3 { font-size: clamp(2rem, 4vw, 3.3rem); max-width: 540px; }
    .story-panel p { opacity: .88; max-width: 600px; }
    .story-panel a { position: relative; z-index: 1; display: inline-flex; margin-top: 18px; font-weight: 700; }
    .pillars { display: grid; gap: 14px; }
    .pillar { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
    .pillar:first-child { padding-top: 0; }
    .pillar-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-deep); color: var(--green-strong); }
    .pillar-icon svg { width: 24px; height: 24px; }
    .pillar h3 { font-family: "DM Sans", sans-serif; font-size: 1.05rem; margin-bottom: 5px; }
    .pillar p { margin: 0; color: var(--muted); font-size: .94rem; }
    .structure { margin-top: 54px; border-top: 1px solid var(--line); padding-top: 34px; }
    .structure h3 { margin-bottom: 20px; }
    .roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .role { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
    .role strong { display: block; font-size: .92rem; }
    .role span { color: var(--muted); font-size: .84rem; }
    .article-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 18px; }
    .article { background: var(--surface); border: 1px solid var(--line); padding: 26px; border-radius: 18px 4px 18px 4px; min-height: 320px; display: flex; flex-direction: column; }
    .article.featured { background: var(--green-strong); color: #fff; }
    html[data-theme="dark"] .article.featured { color: #102118; }
    .article .category { align-self: flex-start; padding: 5px 9px; background: var(--ochre-soft); color: color-mix(in srgb, var(--ochre) 75%, var(--ink)); font-size: .76rem; font-weight: 700; border-radius: 6px; }
    .article.featured .category { background: color-mix(in srgb, #fff 16%, transparent); color: inherit; }
    .article h3 { margin: 22px 0 10px; font-size: clamp(1.6rem, 3vw, 2.25rem); }
    .article p { color: var(--muted); margin: 0; }
    .article.featured p { color: inherit; opacity: .82; }
    .article details { margin-top: auto; padding-top: 24px; }
    .article summary { cursor: pointer; font-weight: 700; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
    .article summary::-webkit-details-marker { display: none; }
    .article summary::after { content: "+"; font-size: 1.25rem; }
    .article details[open] summary::after { content: "−"; }
    .article details p { margin-top: 14px; font-size: .94rem; }
    .gallery-shell { display: grid; grid-template-columns: 300px 1fr; gap: 30px; }
    .filter-list { display: grid; align-content: start; gap: 8px; }
    .filter-btn { text-align: left; border: 0; border-bottom: 1px solid var(--line); padding: 15px 4px; background: transparent; cursor: pointer; font-weight: 700; color: var(--muted); }
    .filter-btn[aria-pressed="true"] { color: var(--green-strong); padding-left: 16px; border-bottom-color: var(--green); }
    .galslider { position: relative; }
    .galslider-viewport { overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); touch-action: pan-y; }
    .galslider-track { display: block; position: relative; }
    .gslide { display: none; margin: 0; animation: gfade .45s ease; }
    .gslide.active { display: block; }
    @keyframes gfade { from { opacity: 0; } to { opacity: 1; } }
    .gslide[hidden] { display: none !important; }
    .gslide img { display: block; width: 100%; height: auto; background: #101510; }
    .gslide figcaption { padding: 14px 18px 18px; }
    .gslide figcaption strong { display: block; font-size: .95rem; line-height: 1.45; white-space: normal; overflow: visible; word-wrap: break-word; }
    .gslide figcaption span { font-size: .78rem; color: var(--muted); }
    .galslider-prev, .galslider-next { position: absolute; top: 38%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); cursor: pointer; display: grid; place-items: center; z-index: 2; }
    .galslider-prev svg, .galslider-next svg { width: 20px; height: 20px; }
    .galslider-prev { left: 12px; }
    .galslider-next { right: 12px; }
    .galslider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
    .gdot { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .3s; }
    .gdot.active { width: 26px; background: var(--green-strong); }
    .gcount { font-size: .85rem; font-weight: 700; color: var(--muted); }
    .gallery-more { margin-top: 22px; text-align: center; }
    .gallery-more a { font-weight: 700; color: var(--green-strong); text-underline-offset: 3px; }
    .pgaleri-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
    .pgaleri-grid { columns: 3; column-gap: 18px; }
    .pgaleri-item { margin: 0 0 18px; break-inside: avoid; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
    .pgaleri-item[hidden] { display: none; }
    .pgaleri-item img { width: 100%; display: block; }
    .pgaleri-item figcaption { padding: 12px 14px 14px; }
    .pgaleri-item figcaption strong { display: block; font-size: .9rem; line-height: 1.45; }
    .pgaleri-item figcaption span { font-size: .78rem; color: var(--muted); }
    @media (max-width: 1020px) { .pgaleri-grid { columns: 2; } }
    @media (max-width: 560px) { .pgaleri-grid { columns: 2; column-gap: 12px; } .pgaleri-item { margin-bottom: 12px; } }
    .gdl { color: var(--green-strong); font-weight: 700; white-space: nowrap; }
    .gallery-empty { min-height: 360px; border: 1px dashed var(--line); background: var(--surface); border-radius: 24px 4px 24px 4px; display: grid; place-items: center; text-align: center; padding: 40px; position: relative; overflow: hidden; }
    .gallery-empty::before { content: ""; width: 260px; height: 260px; position: absolute; border: 1px solid var(--line); border-radius: 50%; opacity: .6; }
    .empty-content { position: relative; z-index: 1; max-width: 500px; }
    .empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: var(--green-soft); color: var(--green-strong); }
    .empty-icon svg { width: 30px; height: 30px; }
    .empty-content p { color: var(--muted); }
    .updates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
    .updates-block { background: var(--surface); border: 1px solid var(--line); padding: 30px; border-radius: 4px 22px 4px 22px; }
    .updates-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
    .updates-title span { font-size: .78rem; color: var(--muted); padding: 5px 9px; background: var(--surface-soft); border-radius: 6px; }
    .blank-state { padding: 40px 0 24px; border-top: 1px solid var(--line); }
    .blank-state p { margin: 8px 0 0; color: var(--muted); }
    .contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
    .location-card { padding: 32px; background: var(--green-strong); color: #fff; border-radius: 24px 4px 24px 4px; }
    html[data-theme="dark"] .location-card { color: #102118; }
    .location-card p { opacity: .83; }
    .location-card .btn { margin-top: 12px; background: #fff; color: #173025; border-color: transparent; }
    .social-list { margin-top: 20px; border-top: 1px solid color-mix(in srgb, #fff 25%, transparent); padding-top: 20px; }
    .social-list a { color: inherit; text-underline-offset: 3px; }
    .social-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
    .social-row span:last-child { opacity: .75; font-size: .85rem; }
    .contact-form { display: grid; gap: 16px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    label { display: grid; gap: 7px; font-weight: 700; font-size: .9rem; }
    input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); color: var(--ink); }
    textarea { min-height: 142px; resize: vertical; }
    .form-help { margin: 0; color: var(--muted); font-size: .84rem; }
    .form-status { min-height: 24px; margin: 0; color: var(--green-strong); font-weight: 700; }
    footer { padding: 50px 0 30px; background: #0f2d1f; color: #dce9df; }
    .footer-grid { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 24px; }
    .footer-badge { width: 84px; aspect-ratio: 1; object-fit: contain; }
    .footer-copy strong { display: block; font-family: "Newsreader", serif; font-size: 1.35rem; }
    .footer-copy p { margin: 4px 0 0; color: #aebfb3; font-size: .9rem; }
    .back-top { color: #dce9df; text-decoration: none; font-weight: 700; }
    .footer-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #94aa9a; font-size: .8rem; }
    @media (prefers-color-scheme: dark) {
      html:not([data-theme]) { color-scheme: dark; }
    }
    @media (max-width: 1020px) {
      .site-nav { position: fixed; inset: 78px 0 auto 0; display: none; padding: 16px 20px 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
      .site-nav.open { display: grid; }
      .site-nav a { padding: 11px 10px; }
      .header-actions { margin-left: auto; }
      .menu-btn { display: grid; }
      .article-grid { grid-template-columns: 1fr 1fr; }
      .article.featured { grid-column: 1 / -1; }
      .roles { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 760px) {
      .container { width: min(calc(100% - 28px), var(--max)); }
      .header-inner { min-height: 70px; gap: 10px; }
      .brand { width: min(210px, calc(100vw - 130px)); }
      .site-nav { top: 70px; }
      .hero { padding: 50px 0 72px; min-height: auto; }
      .hero-grid { grid-template-columns: 1fr; }
      .section { padding: 72px 0; }
      .section-head, .about-layout, .gallery-shell, .updates-grid, .contact-grid { grid-template-columns: 1fr; }
      .section-head { gap: 18px; margin-bottom: 34px; }
      .article-grid { grid-template-columns: 1fr; }
      .article.featured { grid-column: auto; }
      .roles { grid-template-columns: 1fr 1fr; }
      .filter-list { grid-template-columns: repeat(2, 1fr); }
      .filter-btn { text-align: center; padding: 10px 4px; }
      .filter-btn[aria-pressed="true"] { padding-left: 4px; border-bottom-width: 2px; }
      .form-row { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 70px 1fr; }
      .footer-badge { width: 68px; }
      .back-top { grid-column: 1 / -1; }
    }
    @media (max-width: 430px) {
      h1 { font-size: 2.8rem; }
      .roles { grid-template-columns: 1fr; }
      .filter-list { grid-template-columns: 1fr 1fr; }
      .article, .updates-block, .location-card { padding: 22px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
    }
  