/* ==========================================================================
   Karang Taruna Kabupaten Bone Bolango — stylesheet
   Palet: navy (organisasi) + kuning lambang + merah aksen
   ========================================================================== */

:root {
  --navy-900: #061a33;
  --navy-800: #0b2447;
  --navy-700: #12325f;
  --navy-600: #1b4373;
  --navy-100: #e7eefa;
  --yellow: #ffc529;
  --yellow-600: #eab000;
  --yellow-100: #fff5d6;
  --red: #c8102e;
  --red-100: #fde8eb;
  --green: #0f8a5f;
  --green-100: #e3f7ee;
  --ink: #0f1b2d;
  --muted: #5b6b85;
  --line: #e1e8f2;
  --bg: #f6f8fc;
  --bg-alt: #ffffff;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(11, 36, 71, 0.06);
  --shadow: 0 14px 34px rgba(11, 36, 71, 0.09);
  --shadow-lg: 0 26px 60px rgba(6, 26, 51, 0.16);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.22; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.06rem; font-weight: 700; }
p { margin: 0 0 14px; color: var(--muted); }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-size: 0.86rem; }
.mt { margin-top: 26px; }
.empty { padding: 26px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.icon { width: 18px; height: 18px; flex: 0 0 auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy-900); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------- Header --------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 0.98rem; letter-spacing: 0.08em; color: var(--navy-800); }
.brand-text small { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav-link {
  position: relative; padding: 9px 14px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 600; color: var(--navy-700);
}
.nav-link:hover { background: var(--navy-100); color: var(--navy-800); }
.nav-link.is-active { color: var(--navy-900); }
.nav-link.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px;
  border-radius: 3px; background: var(--yellow);
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-user { display: flex; align-items: center; gap: 8px; }
.header-user-name { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--navy-800); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--navy-800); border-radius: 2px; }

/* --------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer;
  background: #fff; color: var(--navy-800); transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; box-shadow: 0 10px 22px rgba(11, 36, 71, 0.22); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 26px rgba(11, 36, 71, 0.3); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-outline-light { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy-700); }
.btn-ghost:hover { background: var(--navy-100); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { color: #fff; }
.btn-wa { background: var(--green-100); color: #0a6a49; border-color: #c9ecdd; }
.btn-sm { padding: 8px 14px; font-size: 0.84rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* --------------------------- Hero --------------------------- */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 90% at 12% 0%, rgba(27, 67, 115, 0.95), transparent 60%),
    radial-gradient(50% 80% at 88% 12%, rgba(255, 197, 41, 0.22), transparent 65%),
    radial-gradient(40% 60% at 70% 100%, rgba(200, 16, 46, 0.22), transparent 70%),
    linear-gradient(160deg, #071d3a, #0b2447 55%, #12325f);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center; padding: 84px 24px 96px;
}
.hero-copy h1 { color: #fff; margin: 14px 0 18px; }
.hero-copy h1 span { color: var(--yellow); }
.hero-lead { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; max-width: 46ch; margin-bottom: 26px; }
.hero-lead strong { color: #fff; font-weight: 700; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; background: rgba(255, 197, 41, 0.14); color: var(--yellow);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.eyebrow-dark { background: var(--yellow-100); color: #8a6200; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-facts { display: flex; gap: 38px; flex-wrap: wrap; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-facts span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); }

.hero-emblem { display: flex; justify-content: center; margin-bottom: 22px; }
.hero-emblem img {
  width: 148px; height: 148px; object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
}
/* Foto kepengurusan di panel beranda — menggantikan lambang bila diunggah
   lewat Admin → Pengaturan → Foto Kepengurusan di Beranda. */
.hero-foto { margin: 0 0 20px; }
.hero-foto img {
  display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center top;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}
.hero-foto figcaption {
  margin-top: 10px; text-align: center;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* --------------------- Panel kepengurusan (satu gaya) --------------------- */
/* Dipakai seragam: hero beranda, section Kepengurusan, Profil Organisasi,
   dan kartu Direktori kontak. Komponen: views/panel-pengurus.js */
.panel-pengurus {
  position: relative;
  overflow: hidden;
  padding: 28px 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(75% 60% at 100% 0%, rgba(255, 197, 41, 0.16), transparent 62%),
    radial-gradient(60% 70% at 90% 100%, rgba(200, 16, 46, 0.16), transparent 70%),
    linear-gradient(158deg, #12325f, #0b2447 58%, #061a33);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.panel-pengurus.pp-hero { padding: 22px 26px 24px; backdrop-filter: blur(14px); }
.panel-pengurus.pp-hero .hero-emblem img { width: 132px; height: 132px; }
.pp-label {
  display: block; padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}
.pp-list { list-style: none; margin: 0; padding: 0; }
.pp-item {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.pp-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.pp-avatar, .panel-pengurus .avatar.pp-avatar {
  width: 46px; height: 46px; font-size: 0.86rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.32), 0 10px 22px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.18); color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}
.pp-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pp-name {
  font-size: 0.97rem; font-weight: 800; line-height: 1.25; letter-spacing: 0.01em;
  text-transform: uppercase; color: #fff;
}
.pp-role { font-size: 0.82rem; color: rgba(255, 255, 255, 0.64); }
.pp-meta-inline { font-size: 0.78rem; color: rgba(255, 255, 255, 0.48); }
.pp-link {
  display: inline-block; margin-top: 18px;
  font-size: 0.92rem; font-weight: 800; color: var(--yellow);
}
.pp-link:hover { color: #fff; }
.pp-empty { margin: 16px 0 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }

/* Tata letak panel di section (beranda & Profil Organisasi) */
.hero-panel-side { min-width: 0; }
.pengurus-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pengurus-band-copy h2 { margin: 10px 0 10px; }
.pengurus-band-copy p { color: var(--muted); margin: 0 0 22px; max-width: 46ch; }
@media (max-width: 1040px) { .pengurus-band { grid-template-columns: 1fr; gap: 28px; } }

/* Varian kartu Direktori kontak */
.panel-kontak { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.pp-person { display: flex; align-items: center; gap: 14px; }
.panel-kontak .pp-label { display: none; }
.pp-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.pp-chip-muted { font-size: 0.78rem; color: rgba(255, 255, 255, 0.62); }
.pp-mail { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); word-break: break-all; text-decoration: underline dotted; text-underline-offset: 3px; }
.pp-mail:hover { color: var(--yellow); }

/* --------------------------- Sections --------------------------- */
.section { padding: 76px 0; }
.section-tight { padding: 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 10px 0 6px; }
.section-head p { margin: 0; max-width: 62ch; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-kec { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }

/* --------------------------- Stat cards --------------------------- */
.stat-strip {
  position: relative; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; margin-top: -56px;
}
.stat-card {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--navy-100); color: var(--navy-700); flex: 0 0 auto;
}
.stat-card strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy-800); line-height: 1.1; }
.stat-card span:not(.stat-icon) { font-size: 0.8rem; color: var(--muted); }

/* --------------------------- Sambutan --------------------------- */
.sambutan-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.sambutan-person {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-lg); padding: 30px; color: #fff; text-align: center;
  box-shadow: var(--shadow);
}
.sambutan-person h3 { color: #fff; margin: 18px 0 4px; font-size: 1.05rem; }
.sambutan-person .person-role { color: var(--yellow); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; }
.sambutan-person .avatar { margin: 0 auto; background: rgba(255, 255, 255, 0.16); color: #fff; }
.sambutan-text h2 { margin: 10px 0 16px; }
.sambutan-text p { font-size: 1rem; color: #3c4a61; }

/* --------------------------- Person / contact cards --------------------------- */
.person-card, .contact-card {
  display: flex; gap: 16px; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.person-card:hover, .contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.person-body h3, .contact-body h3 { margin: 4px 0 2px; font-size: 1rem; }
.person-role { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--red); }
.person-meta { font-size: 0.84rem; color: var(--muted); margin: 2px 0 10px; }
.contact-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.chip-ink {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--navy-100); color: var(--navy-700); font-size: 0.78rem; font-weight: 700;
}
.chip-muted { display: inline-block; font-size: 0.78rem; color: var(--muted); background: #f1f4f9; padding: 5px 11px; border-radius: 999px; }
.chip-wa { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--green); }
.chip-tiny { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* --------------------------- Kecamatan card --------------------------- */
.kec-card {
  display: flex; flex-direction: column; gap: 14px; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.kec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9d7ee; color: var(--ink); }
.kec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.kec-name { font-weight: 800; font-size: 0.98rem; letter-spacing: 0.02em; color: var(--navy-800); }
.kec-count { font-size: 0.76rem; color: var(--muted); white-space: nowrap; }
.kec-foot { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--muted); }
.kec-foot .arrow { color: var(--navy-600); font-weight: 800; }

/* --------------------------- Progress --------------------------- */
.progress { height: 8px; border-radius: 999px; background: #e9eef7; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--navy-700), var(--yellow-600)); }

/* --------------------------- News --------------------------- */
.news-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.news-thumb {
  height: 148px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600) 60%, #2c5f9e);
  background-size: cover; background-position: center;
}
.news-thumb .icon { width: 38px; height: 38px; }
.news-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.news-body time { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--red); font-weight: 700; }
.news-body h3 { font-size: 1.02rem; margin: 0; }
.news-body p { margin: 0; font-size: 0.88rem; }
.read-more { font-size: 0.84rem; font-weight: 700; color: var(--navy-700); margin-top: 4px; }

/* --------------------------- CTA band --------------------------- */
.cta-band { background: linear-gradient(120deg, var(--yellow), #ffd966); color: var(--navy-900); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 48px 24px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 6px; color: var(--navy-900); font-size: 1.5rem; }
.cta-inner p { margin: 0; color: #6a4f00; }

/* --------------------------- Page head --------------------------- */
.page-head {
  background:
    radial-gradient(50% 100% at 90% 0%, rgba(255, 197, 41, 0.2), transparent 60%),
    linear-gradient(140deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 54px 0 50px;
}
.page-head h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 12px 0 8px; }
.page-head p { color: rgba(255, 255, 255, 0.72); margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: var(--yellow); }

/* --------------------------- Tables --------------------------- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm); }
.table-scroll { max-height: 560px; overflow-y: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  text-align: left; padding: 14px 18px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); background: #f8fafd; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table td { padding: 14px 18px; border-bottom: 1px solid #f0f4fa; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fafcff; }
.data-table .num { text-align: center; width: 56px; color: var(--muted); }
.data-table .ta-right { text-align: right; }
.cell-person { display: flex; align-items: center; gap: 10px; }
.inline-form { display: inline-block; margin-left: 6px; }

/* --------------------------- Badges & avatars --------------------------- */
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
.badge-success { background: var(--green-100); color: #0a6a49; }
.badge-warning { background: var(--yellow-100); color: #8a6200; }
.badge-danger { background: var(--red-100); color: #a20d25; }
.badge-muted { background: #eef2f8; color: var(--muted); }

.avatar {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.02em; flex: 0 0 auto;
  background: var(--navy-100); color: var(--navy-700);
}
.avatar-sm { width: 32px; height: 32px; font-size: 0.74rem; }
.avatar-md { width: 44px; height: 44px; font-size: 0.86rem; }
.avatar-lg { width: 62px; height: 62px; font-size: 1.05rem; }
.avatar-xl { width: 108px; height: 108px; font-size: 1.8rem; }
.avatar.tone-1 { background: #e7eefa; color: #12325f; }
.avatar.tone-2 { background: #fff2cf; color: #8a6200; }
.avatar.tone-3 { background: #fde8eb; color: #a20d25; }
.avatar.tone-4 { background: #e3f7ee; color: #0a6a49; }

/* --------------------------- Forms --------------------------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .field-full, .form-grid .form-actions { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--navy-800); }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.93rem; color: var(--ink);
  padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid #d5dfee; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease; width: 100%;
}
.field textarea { resize: vertical; min-height: 74px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(27, 67, 115, 0.12);
}
.field input:disabled, .field select:disabled { background: #f4f7fb; color: var(--muted); }
.field .check { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; font-weight: 600; }
.field .check input { width: auto; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.form-foot { font-size: 0.86rem; color: var(--muted); text-align: center; margin: 4px 0 0; }

.filter-bar {
  display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap;
  padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.filter-bar .field { min-width: 190px; flex: 1 1 190px; }
.filter-bar-compact { margin: 0; border: none; box-shadow: none; padding: 18px 22px; border-bottom: 1px solid var(--line); border-radius: 0; }

/* --------------------------- Alerts --------------------------- */
.alert {
  margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; font-size: 0.9rem; font-weight: 600;
  border: 1px solid transparent;
}
.alert-success { background: var(--green-100); color: #0a6a49; border-color: #c2ead8; }
.alert-error { background: var(--red-100); color: #a20d25; border-color: #f6c9d0; }
.alert-info { background: var(--navy-100); color: var(--navy-700); border-color: #cfdcf2; }
.admin-content .alert:first-child { margin-top: 0; margin-bottom: 4px; }

/* --------------------------- Pagination --------------------------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-size: 0.86rem; font-weight: 700; color: var(--navy-700);
}
.page-btn:hover { background: var(--navy-100); }
.page-btn.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.page-dots { align-self: center; color: var(--muted); padding: 0 4px; }

/* --------------------------- Empty state --------------------------- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 16px; color: var(--muted); text-align: center; }
.empty-state .icon { width: 30px; height: 30px; color: #b9c6da; }
.empty-state p { margin: 0; }

/* --------------------------- Auth --------------------------- */
.auth-section {
  min-height: calc(100vh - 260px); display: grid; place-items: center; padding: 56px 24px;
  background:
    radial-gradient(45% 60% at 15% 10%, rgba(255, 197, 41, 0.18), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
}
.auth-card {
  width: 100%; max-width: 540px; background: #fff; border-radius: var(--radius-lg);
  padding: 38px; box-shadow: var(--shadow-lg);
}
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-logo { width: 68px; height: 68px; margin: 0 auto 14px; }
.auth-head h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-head p { margin: 0; font-size: 0.9rem; }
.auth-card .btn-block { margin-top: 6px; }

/* --------------------------- Profile --------------------------- */
.profile-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 1.15rem; margin-bottom: 18px; }
.detail-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }
.detail-list > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.detail-list dt { font-size: 0.82rem; color: var(--muted); }
.detail-list dd { margin: 0; font-size: 0.9rem; font-weight: 600; text-align: right; }
.status-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #f8fafd; border: 1px solid var(--line); margin-bottom: 20px; font-size: 0.88rem; }

/* --------------------------- Article --------------------------- */
.article-head { background: linear-gradient(140deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 46px 0 42px; }
.article.head h1 { color: #fff; }
.article-wrap { max-width: 800px; }
.article-head h1 { color: #fff; margin: 12px 0 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.article-meta { display: flex; gap: 22px; font-size: 0.84rem; color: rgba(255, 255, 255, 0.7); flex-wrap: wrap; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-body { padding: 44px 24px 72px; }
.article-body p { font-size: 1rem; color: #35435a; }
.article-lead { font-size: 1.1rem; color: var(--navy-800); font-weight: 600; }
.article-img { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }

/* --------------------------- Footer --------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.72); padding: 60px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 42px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; }
.footer-brand .brand-logo { width: 46px; height: 46px; }
.footer-brand strong { letter-spacing: 0.08em; font-size: 0.95rem; }
.footer-brand span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.footer-desc { color: rgba(255, 255, 255, 0.62); font-size: 0.9rem; max-width: 40ch; }
.site-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-links a { color: rgba(255, 255, 255, 0.72); }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.5);
}

/* --------------------------- Admin --------------------------- */
.admin-body { background: #f2f5fa; }
.admin-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 262px; flex: 0 0 262px; background: var(--navy-900); color: rgba(255, 255, 255, 0.75);
  display: flex; flex-direction: column; padding: 24px 18px; position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; color: #fff; }
.sidebar-brand .brand-logo { width: 40px; height: 40px; }
.sidebar-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.sidebar-brand strong { font-size: 0.92rem; }
.sidebar-brand small { font-size: 0.74rem; color: rgba(255, 255, 255, 0.55); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 11px;
  font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.72); background: none; border: none;
  font-family: inherit; cursor: pointer; width: 100%; text-align: left;
}
.side-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side-link.is-active { background: var(--yellow); color: var(--navy-900); font-weight: 800; }
.side-link-button { padding: 11px 14px; }
.sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-direction: column; gap: 4px; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex; align-items: center; gap: 18px; padding: 20px 30px;
  background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.admin-topbar h1 { font-size: 1.3rem; margin: 0; }
.admin-subtitle { margin: 2px 0 0; font-size: 0.82rem; color: var(--muted); }
.admin-topbar .btn { margin-left: auto; }
.admin-nav-toggle { display: none; }
.admin-content { padding: 28px 30px 60px; display: flex; flex-direction: column; gap: 24px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.kpi-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.kpi-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy-100); color: var(--navy-700); margin-bottom: 6px; }
.kpi-card strong { font-size: 1.6rem; font-weight: 800; color: var(--navy-800); line-height: 1.1; }
.kpi-card span:last-child { font-size: 0.82rem; color: var(--muted); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 1.05rem; margin: 0; }
.panel-note { margin: 0; padding: 14px 22px; font-size: 0.82rem; color: var(--muted); background: #f8fafd; border-top: 1px solid var(--line); }
.panel-sub { padding: 24px 22px 6px; border-top: 1px solid var(--line); margin-top: 8px; }
.panel-sub h3 { font-size: 0.98rem; margin-bottom: 4px; }
.panel > .form, .panel > .detail-list, .panel > h3 { margin: 22px; }
.panel > .form-grid { padding: 22px; }
.danger-zone {
  margin: 0 22px 22px; padding: 18px; border: 1px dashed #f0c2ca; border-radius: 12px; background: #fffafb;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.danger-zone p { margin: 0; font-size: 0.84rem; color: var(--muted); }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px 80px; }
  .panel-pengurus.pp-hero { max-width: 460px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sambutan-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Menu utama disembunyikan lebih awal (≤1040px) supaya tombol kanan tidak
   melewati tepi layar pada desktop sempit. */
@media (max-width: 1040px) {
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
    box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .header-actions { gap: 8px; }
  .header-user-name span { display: none; }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-100%);
    transition: transform 0.22s ease; height: 100vh; box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open { transform: translateX(0); }
  .admin-nav-toggle { display: flex; }
  .admin-topbar { padding: 16px 18px; flex-wrap: wrap; }
  .admin-content { padding: 20px 16px 48px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .header-inner { gap: 10px; }
  .brand-text { display: none; }
  .brand-logo { width: 42px; height: 42px; }
  .header-user .btn-ghost { padding: 8px 10px; }
  .section { padding: 52px 0; }
  .grid-3, .kpi-grid, .stat-strip, .grid-kec { grid-template-columns: 1fr; }
  .field-row, .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 48px 18px 64px; }
  .hero-facts { gap: 24px; }
  .brand-text small { display: none; }
  .header-actions .btn-primary { display: none; }
  .cta-inner { padding: 36px 18px; }
  .auth-card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .sambutan-grid { gap: 28px; }
  .article-head { padding: 36px 0; }
  .stat-strip { margin-top: -40px; }
  .page-head { padding: 40px 0 38px; }
}

/* --------------------------- Keuangan --------------------------- */
.money-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 22px;
}
.money-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.money-card span { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.money-card strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; color: var(--navy-800); }
.money-card.money-in { background: var(--green-100); border-color: #c2ead8; }
.money-card.money-in strong { color: #0a6a49; }
.money-card.money-out { background: var(--red-100); border-color: #f6c9d0; }
.money-card.money-out strong { color: #a20d25; }
.money-card.money-count { background: var(--navy-100); border-color: #cfdcf2; }

.money { font-weight: 700; white-space: nowrap; }
.money-in { color: #0a6a49; }
.money-out { color: #a20d25; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; }
.is-highlight { background: #f8fafd; font-weight: 700; }
.panel-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-subtitle { margin: 2px 0 0; font-size: 0.82rem; }
.panel-inline-head .filter-bar { margin: 0; border: none; box-shadow: none; border-radius: 0; border-top: 1px solid var(--line); }

/* --------------------------- Halaman cetak --------------------------- */
.print-body { background: #eef1f7; }
.print-toolbar {
  display: flex; gap: 12px; justify-content: flex-end; align-items: center;
  max-width: 900px; margin: 20px auto 0; padding: 0 16px;
}
.print-sheet {
  background: #fff; max-width: 900px; margin: 16px auto 60px; padding: 40px 44px;
  box-shadow: 0 12px 34px rgba(6, 26, 51, 0.12); border-radius: 6px;
}
.print-head {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  border-bottom: 3px double var(--navy-800); padding-bottom: 14px; margin-bottom: 22px;
}
.print-logo { width: 66px; height: 66px; object-fit: contain; }
.print-head-text strong { display: block; font-size: 1.02rem; color: var(--navy-800); text-transform: uppercase; letter-spacing: 0.02em; }
.print-head-text span { font-size: 0.82rem; color: var(--muted); }
.print-title { font-size: 1.2rem; text-align: center; margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.print-sub { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 0 0 18px; }
.print-subtitle { font-size: 0.92rem; margin: 22px 0 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.print-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.print-table th, .print-table td { border: 1px solid #cbd5e6; padding: 7px 9px; text-align: left; vertical-align: top; }
.print-table thead th { background: #eef2f9; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.print-table .num { text-align: right; white-space: nowrap; }
.print-table .no { width: 34px; text-align: center; }
.print-table tfoot th { background: #f7f9fc; }
.print-table tfoot th.num { text-align: right; }
.print-empty { text-align: center; color: var(--muted); padding: 16px; }
.print-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }
.print-sign { display: flex; justify-content: space-between; gap: 40px; margin-top: 46px; font-size: 0.85rem; text-align: center; }
.print-sign > div { flex: 1; }
.print-sign span { display: block; color: var(--muted); }
.print-sign strong { display: block; color: var(--ink); margin-top: 2px; }
.print-sign-space { height: 62px; }
.print-sign-name { border-top: 1px solid #64748b; padding-top: 6px; font-weight: 700; color: var(--ink); }

@media (max-width: 900px) {
  .money-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 18px; }
}
@media (max-width: 640px) {
  .money-cards { grid-template-columns: 1fr; }
  .print-sheet { padding: 22px 16px; margin: 10px 10px 40px; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  .print-body { background: #fff; }
  .print-toolbar { display: none !important; }
  .print-sheet { box-shadow: none; margin: 0; padding: 0; max-width: none; border-radius: 0; }
  .print-table thead { display: table-header-group; }
  .print-table tr { page-break-inside: avoid; }
  .print-sign { page-break-inside: avoid; }
}

/* --------------------------- Portal publik: nav "Lainnya" --------------------------- */
.nav-more { position: relative; }
.nav-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after {
  content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
}
.nav-more.is-active > summary { color: var(--navy-900); background: var(--navy-100); }
.nav-more-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column;
}
.nav-more-link {
  padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: var(--navy-700);
  white-space: nowrap;
}
.nav-more-link:hover { background: var(--navy-100); color: var(--navy-900); }
.nav-more-link.is-active { background: var(--yellow-100); color: #8a6200; }

/* --------------------------- Profil --------------------------- */
.profile-intro { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.profile-badge {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-lg); padding: 30px; color: #fff; text-align: center;
  box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.profile-emblem { width: 120px; height: 120px; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.3)); }
.profile-badge strong { letter-spacing: 0.08em; font-size: 0.95rem; }
.profile-badge span { font-size: 0.78rem; color: var(--yellow); font-weight: 700; }
.profile-badge small { font-size: 0.78rem; color: rgba(255,255,255,.65); margin-top: 6px; }
.profile-lead h2 { margin: 10px 0 12px; }
.profile-lead p { font-size: 1rem; }
.profile-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.profile-facts div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.profile-facts strong { display: block; font-size: 1.35rem; color: var(--navy-800); font-weight: 800; }
.profile-facts span { font-size: 0.76rem; color: var(--muted); }

.prose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.prose-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.prose-card h2 { margin: 12px 0 14px; }
.prose-card p { color: #3c4a61; margin-bottom: 12px; }
.prose-card p:last-child { margin-bottom: 0; }
.prose-label { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-700); margin: 16px 0 6px; }
.prose-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; padding-left: 0; }
.prose-list li { position: relative; padding-left: 20px; font-size: 0.92rem; color: #3c4a61; }
.prose-list li::before {
  content: ''; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--yellow-600);
}
.prose-intro { margin-bottom: 24px; }

/* --------------------------- Program --------------------------- */
.program-list { list-style: none; margin: 0; padding: 0; }
.program-item { padding: 22px; border-bottom: 1px solid #f0f4fa; }
.program-item:last-child { border-bottom: none; }
.program-item h3 { margin: 8px 0 6px; font-size: 1.02rem; }
.program-item p { margin: 0 0 10px; font-size: 0.92rem; }
.program-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--navy-100); color: var(--navy-700);
}
.tag-muted { background: #eef2f8; color: var(--muted); }
.program-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.program-meta span { display: inline-flex; align-items: center; gap: 6px; }
.program-card { gap: 10px; }
.program-desc { font-size: 0.86rem; margin: 0 !important; }
.program-highlight { display: flex; flex-direction: column; gap: 14px; }
.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.home-split .section-head { margin-bottom: 20px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------- Agenda --------------------------- */
.agenda-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.agenda-item { display: flex; gap: 18px; padding: 18px 22px; border-bottom: 1px solid #f0f4fa; }
.agenda-item:last-child { border-bottom: none; }
.agenda-list-compact .agenda-item { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.agenda-date {
  flex: 0 0 132px; display: flex; flex-direction: column; gap: 2px;
  font-size: 0.8rem; color: var(--muted);
}
.agenda-date strong { color: var(--navy-800); font-size: 0.86rem; }
.agenda-main h3 { margin: 0 0 4px; font-size: 0.98rem; }
.agenda-main p { margin: 0 0 4px; font-size: 0.88rem; }

/* --------------------------- Atribut --------------------------- */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.atribut-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.atribut-preview { background: #f7f9fd; border-bottom: 1px solid var(--line); padding: 14px; }
.atribut-preview img { width: 100%; height: auto; border-radius: 10px; display: block; }
.atribut-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.atribut-body h3 { margin: 6px 0 0; font-size: 1.02rem; }
.atribut-body p { margin: 0; font-size: 0.9rem; color: #3c4a61; }
.atribut-warna { font-size: 0.82rem !important; color: var(--muted) !important; }
.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; margin-bottom: 32px;
  background: var(--yellow-100); border: 1px solid #f0dfa8; border-radius: var(--radius);
  color: #6a4f00;
}
.notice p { margin: 0; color: #6a4f00; font-size: 0.9rem; }
.notice .icon { color: #8a6200; flex: 0 0 auto; margin-top: 2px; }
.notice-soft { background: var(--navy-100); border-color: #cfdcf2; color: var(--navy-700); margin-top: 24px; }
.notice-soft p { color: var(--navy-700); }
.notice-soft .icon { color: var(--navy-700); }
.footnote { font-size: 0.84rem; color: var(--muted); margin-top: 20px; }

/* --------------------------- Dokumen --------------------------- */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-item {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid #f0f4fa;
}
.doc-item:last-child { border-bottom: none; }
.doc-code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; font-weight: 700;
  background: var(--navy-100); color: var(--navy-700); border-radius: 8px; padding: 6px 8px; text-align: center;
}
.doc-main h3 { margin: 0 0 4px; font-size: 0.98rem; }
.doc-main p { margin: 0; font-size: 0.88rem; }

/* --------------------------- Kontak --------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.contact-grid .card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-grid .card h2 { margin-bottom: 4px; }
.contact-grid .card .detail-list { width: 100%; }
.contact-grid .card .btn { align-self: flex-start; }

/* --------------------------- Responsif --------------------------- */
@media (max-width: 1040px) {
  .profile-intro { grid-template-columns: 1fr; gap: 30px; }
  .profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-split { grid-template-columns: 1fr; gap: 40px; }
  .grid-2, .prose-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-more { width: 100%; }
  .nav-more-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 12px; min-width: 0; }
  .nav-more > summary::after { display: none; }
}
@media (max-width: 640px) {
  .doc-item { grid-template-columns: 1fr; gap: 10px; }
  .agenda-item { flex-direction: column; gap: 8px; }
  .agenda-date { flex-direction: row; gap: 8px; align-items: baseline; }
  .profile-facts { grid-template-columns: 1fr 1fr; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
}

/* --------------------------- Persuratan (PO-06) --------------------------- */
.hint { margin: 4px 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.static-value {
  margin: 0; padding: 11px 14px; border-radius: 10px; background: #f4f7fc;
  border: 1px solid var(--line); font-weight: 600; color: var(--navy-800); font-size: 0.92rem;
}
.panel-body { padding: 20px 22px; }
.nomor-surat { font-weight: 700; color: var(--navy-800); }
.nomor-preview {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  background: #f4f7fc; border: 1px dashed #b9c9e0; border-radius: 12px; padding: 14px 16px;
}
.nomor-preview-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 700;
}
.nomor-preview-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; font-weight: 700; color: var(--navy-800); }
.nomor-preview-note { font-size: 0.78rem; color: var(--muted); }
.nomor-legend { display: flex; flex-direction: column; gap: 10px; }
.nomor-contoh { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.1rem; font-weight: 700; color: var(--navy-800); letter-spacing: 0.02em; }
.nomor-urai { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 0.9rem; color: var(--ink); }

/* Lembar surat (A4) — dipakai halaman cetak */
.letter-page {
  background: #fff; color: #000;
  width: 210mm; min-height: 297mm; max-width: 100%;
  margin: 16px auto 40px; padding: 18mm 20mm;
  box-shadow: 0 12px 34px rgba(6, 26, 51, 0.14); border-radius: 4px;
  font-family: "Times New Roman", Times, serif; font-size: 12pt; line-height: 1.5;
}
.letter-page .kop { display: flex; align-items: center; gap: 14px; }
.letter-page .kop-logo { width: 74px; height: 74px; object-fit: contain; flex: 0 0 auto; }
.letter-page .kop-teks { flex: 1 1 auto; min-width: 0; }
.letter-page .kop-baris {
  display: block; font-family: Arial, Helvetica, sans-serif; font-size: 16.5pt;
  font-weight: 700; line-height: 1.12; color: #000; text-transform: uppercase;
}
.letter-page .kop-kanan { display: flex; align-items: flex-start; gap: 12px; flex: 0 0 auto; }
.letter-page .kop-pemda { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; }
.letter-page .kop-blok { display: flex; }
.letter-page .kop-blok span { display: block; width: 22px; height: 24px; }
.letter-page .blok-biru { background: #163e64; }
.letter-page .blok-kuning { background: #ffc000; }
.letter-page .kop-garis { border-bottom: 2px solid #163e64; margin-top: 8px; }
.letter-page .kepala-surat { margin-top: 16px; }
.letter-page .kepala-tabel { border-collapse: collapse; font-size: 12pt; }
.letter-page .kepala-tabel td { padding: 0 0 2px; vertical-align: top; }
.letter-page .kepala-tabel .k-label { width: 82px; font-family: Arial, Helvetica, sans-serif; font-size: 11pt; }
.letter-page .kepala-tabel .k-pisah { width: 10px; }
.letter-page .kepada { margin-top: 14px; }
.letter-page .kepada p { margin: 0 0 2px; }
.letter-page .kepada-nama { font-weight: 700; }
.letter-page .isi-surat { margin-top: 20px; text-align: justify; }
.letter-page .isi-surat p { margin: 0 0 10px; }
.letter-page .ttd-wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-top: 30px; page-break-inside: avoid; }
.letter-page .tembusan { flex: 1 1 auto; font-size: 10pt; }
.letter-page .tembusan-label { margin: 0 0 4px; font-weight: 700; text-decoration: underline; }
.letter-page .tembusan ol { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.letter-page .ttd { flex: 0 0 auto; width: 46%; min-width: 240px; max-width: 330px; text-align: center; font-size: 12pt; }
.letter-page .ttd p { margin: 0; }
.letter-page .ttd-tempat { margin-bottom: 8px !important; }
.letter-page .ttd-organisasi, .letter-page .ttd-jabatan { font-weight: 700; text-transform: uppercase; font-size: 11.5pt; }
.letter-page .ttd-ruang { height: 64px; }
.letter-page .ttd-nama { font-weight: 700; text-decoration: underline; text-transform: uppercase; }
.letter-page-lampiran .lampiran-kepala { margin: 0; text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.letter-page-lampiran .lampiran-sub { margin: 4px 0 0; text-align: center; font-size: 11pt; }
.letter-page-lampiran .lampiran-daftar { margin-top: 18px; padding-left: 22px; display: grid; gap: 6px; }

@media (max-width: 900px) {
  .letter-page { width: 100%; min-height: 0; padding: 24px 18px; font-size: 11pt; }
  .letter-page .kop { gap: 10px; flex-wrap: wrap; }
  .letter-page .kop-baris { font-size: 13pt; }
  .letter-page .kop-logo { width: 58px; height: 58px; }
  .letter-page .kop-pemda { width: 46px; height: 46px; }
  .letter-page .ttd-wrap { flex-direction: column; align-items: stretch; gap: 20px; }
  .letter-page .ttd { min-width: 0; width: 100%; max-width: none; }
}

@media print {
  .letter-page {
    width: auto; min-height: 0; max-width: none; margin: 0; padding: 6mm;
    box-shadow: none; border-radius: 0; page-break-after: always;
  }
  .letter-page:last-child { page-break-after: auto; }
  .letter-page .kop-baris { font-size: 16.5pt; }
  .letter-page .isi-surat p, .letter-page .ttd-wrap { page-break-inside: avoid; }
}

/* ==========================================================================
   Kartu anggota, profil anggota, dan halaman pendaftaran selesai
   ========================================================================== */

/* --------------------------- Kartu anggota (portrait) --------------------------- */
.kartu-anggota {
  position: relative; overflow: hidden;
  width: 100%; max-width: 340px; margin: 0 auto;
  aspect-ratio: 340 / 540;
  display: flex; flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 70% at 108% -8%, rgba(27, 67, 115, 0.95), transparent 62%),
    linear-gradient(162deg, #061a33 0%, #0b2447 54%, #12325f 100%);
  color: #fff;
  box-shadow: 0 22px 44px rgba(6, 26, 51, 0.26);
}
.kartu-anggota::before {
  content: ''; position: absolute; right: -60px; top: -70px; width: 190px; height: 190px;
  border-radius: 50%; background: rgba(255, 197, 41, 0.12); pointer-events: none;
}
.kartu-kepala {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.kartu-logo { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.kartu-kepala-teks strong {
  display: block; font-size: 11.5px; letter-spacing: 0.14em; color: #fff; line-height: 1.2;
}
.kartu-kepala-teks span {
  display: block; font-size: 9px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.72); line-height: 1.35;
}
.kartu-badan {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 5px; padding: 14px 16px 10px;
}
.kartu-foto {
  width: 96px; height: 120px; border-radius: 12px; overflow: hidden; flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.55);
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.kartu-foto-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kartu-foto .avatar {
  width: 100%; height: 100%; border-radius: 0; background: transparent;
  color: #fff; font-size: 1.7rem;
}
.kartu-nama {
  margin: 4px 0 0; font-size: 14.5px; font-weight: 800; line-height: 1.15;
  text-transform: uppercase; letter-spacing: 0.02em; color: #fff;
}
.kartu-nomor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px; letter-spacing: 0.06em; color: #ffe08a;
  background: rgba(255, 197, 41, 0.16); border: 1px solid rgba(255, 197, 41, 0.45);
  padding: 3px 9px; border-radius: 999px;
}
.kartu-wilayah { margin: 0; font-size: 10.5px; line-height: 1.35; color: rgba(255, 255, 255, 0.78); }
.kartu-status {
  margin-top: 3px; padding: 4px 10px; border-radius: 999px;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid transparent;
}
.kartu-status-aktif { color: #7ff0c0; background: rgba(15, 138, 95, 0.28); border-color: rgba(127, 240, 192, 0.5); }
.kartu-status-pending { color: #ffe08a; background: rgba(234, 176, 0, 0.22); border-color: rgba(255, 197, 41, 0.5); }
.kartu-status-ditolak,
.kartu-status-nonaktif { color: #ffc2cb; background: rgba(200, 16, 46, 0.22); border-color: rgba(255, 194, 203, 0.45); }
.kartu-kaki {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 16px; background: rgba(255, 255, 255, 0.07);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.kartu-kaki::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-600));
}
.kartu-qr {
  flex: 0 0 auto; width: 58px; height: 58px; padding: 4px; border-radius: 9px; background: #fff;
  display: grid; place-items: center;
}
.kartu-qr .qr-qr { width: 50px; height: 50px; display: block; }
.kartu-kaki-teks strong {
  display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: #fff;
}
.kartu-kaki-teks span { display: block; font-size: 8.5px; line-height: 1.35; color: rgba(255, 255, 255, 0.72); }

/* --------------------------- Profil anggota --------------------------- */
.profil-anggota { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.profil-kartu { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.profil-kartu-aksi { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.profil-kartu .footnote { margin-top: 0; text-align: center; }

.foto-form {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line);
}
.foto-form-preview { flex: 0 0 auto; }
.foto-preview {
  display: block; width: 84px; height: 104px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line); background: #f3f6fb;
}
.foto-preview-empty { display: grid; place-items: center; background: var(--navy-100); }
.foto-preview-empty .avatar { width: 58px; height: 58px; font-size: 1.15rem; }
.foto-form-info { min-width: 0; }
.foto-form-info h3 { margin: 0 0 4px; font-size: 0.98rem; }
.foto-form-info p.muted { margin: 0 0 10px; font-size: 0.82rem; }
.foto-form-info .btn { margin-right: 8px; }
.foto-status { margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }
.foto-status.is-error { color: var(--red); }
.foto-status.is-ok { color: var(--green); }

/* --------------------------- Pendaftaran selesai --------------------------- */
.daftar-selesai { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.daftar-selesai-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.daftar-selesai-ikon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green);
}
.daftar-selesai-ikon .icon { width: 24px; height: 24px; }
.wa-box {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin: 20px 0 12px; padding: 16px; border-radius: 14px;
  background: linear-gradient(135deg, #e8f9f0, #f4fbf7); border: 1px solid #bfe9d3;
}
.wa-box-ikon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  background: #25d366; color: #fff; display: grid; place-items: center;
}
.wa-box-ikon .icon { width: 22px; height: 22px; }
.wa-box-teks { flex: 1 1 200px; min-width: 0; }
.wa-box-teks h3 { margin: 0 0 2px; font-size: 1rem; }
.wa-box-status { margin: 0; font-size: 0.85rem; color: #146c46; }
.wa-pratinjau summary { cursor: pointer; font-size: 0.85rem; font-weight: 700; color: var(--navy-700); }
.wa-pratinjau pre {
  white-space: pre-wrap; word-break: break-word; font-family: inherit; color: var(--ink);
  font-size: 0.85rem; background: #f8fafd; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; margin: 10px 0 0;
}
.card-soft { background: #f8fafd; }

/* --------------------------- Verifikasi kartu --------------------------- */
.verifikasi-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }

/* --------------------------- Cetak kartu --------------------------- */
.kartu-print-sheet { text-align: center; }
.kartu-print-head .print-title { margin-bottom: 4px; }
.kartu-print-body { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.kartu-print-info { max-width: 420px; text-align: left; }
.kartu-print-info p { font-size: 0.82rem; margin-bottom: 8px; }
.kartu-print-info .print-note { margin-top: 4px; }

@media (max-width: 900px) {
  .profil-anggota,
  .verifikasi-grid,
  .daftar-selesai { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .foto-form { flex-direction: column; }
  .kartu-anggota { max-width: 100%; }
}

@media print {
  .kartu-print-sheet { max-width: none; margin: 0; padding: 0; box-shadow: none; border-radius: 0; }
  .kartu-print-body { gap: 12mm; }
  .kartu-anggota {
    width: 88mm; max-width: none; box-shadow: none;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* Header publik pada layar desktop sempit (901–1200px): rapatkan menu
   supaya tombol di kanan tidak melewati tepi layar. */
@media (max-width: 1200px) {
  .header-inner { gap: 12px; }
  .nav { margin-left: 4px; gap: 0; }
  .nav-link { padding: 9px 10px; font-size: 0.88rem; }
  .header-actions { gap: 8px; }
}

/* --------------------------- Foto pengurus --------------------------- */
.avatar-img {
  object-fit: cover; object-position: center 18%;
  background: #eef2f9; border: 1px solid var(--line);
}
.sambutan-person .sambutan-foto {
  margin: 0 auto 14px; width: 100%; max-width: 250px; aspect-ratio: 3 / 4;
  border-radius: 18px; overflow: hidden; background: #eef2f9;
  box-shadow: 0 18px 38px rgba(11, 36, 71, 0.22);
}
.sambutan-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }
.foto-hapus { margin-top: 10px; }

@media (max-width: 640px) {
  .sambutan-person .sambutan-foto { max-width: 210px; }
}

/* ------------------ Login WhatsApp, NIK, sekretariat ------------------ */
.field-hint { font-size: 0.78rem; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.contact-mail {
  display: inline-block; font-size: 0.84rem; color: var(--ink);
  word-break: break-all; text-decoration: underline dotted; text-underline-offset: 3px;
}
.maps-embed {
  width: 100%; margin-top: 6px; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; background: #eef2f9;
}
.maps-embed iframe { display: block; width: 100%; height: 240px; border: 0; }
.sekretariat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.sekretariat-card h3 { font-size: 1rem; margin: 0; }
.sekretariat-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.sekretariat-card a { font-size: 0.86rem; }
.sekretariat-desa {
  margin: 4px 0 0; padding: 12px 0 0; list-style: none;
  border-top: 1px dashed var(--line); width: 100%;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.84rem; color: var(--muted);
}
.sekretariat-desa strong { color: var(--ink); }
@media (max-width: 640px) {
  .maps-embed iframe { height: 200px; }
}

/* --------- Peta lokasi agenda & kegiatan di halaman publik --------- */
.maps-embed.agenda-map { margin-top: 12px; max-width: 520px; }
.maps-embed.agenda-map iframe { height: 190px; }
.maps-embed.kegiatan-map { margin-top: 14px; }
.maps-embed.maps-compact { max-width: 520px; }
.maps-embed.maps-compact iframe { height: 200px; }
.agenda-map-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 0.84rem; font-weight: 600; color: var(--navy-700);
  text-decoration: underline dotted; text-underline-offset: 3px;
}
.agenda-map-link .icon { width: 15px; height: 15px; }
.kegiatan-map-link {
  display: inline-flex; align-items: center; gap: 6px; margin: -2px 0 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--navy-700);
  text-decoration: underline dotted; text-underline-offset: 3px;
}
.kegiatan-map-link .icon { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .maps-embed.agenda-map iframe { height: 170px; }
}

/* ------------------ Login per jenjang, hak akses, ganti logo ------------------ */
[hidden] { display: none !important; }
.auth-card-wide { max-width: 620px; }
.notice-box {
  border: 1px solid var(--line); background: #f8fafd; border-radius: 14px;
  padding: 14px 16px; font-size: 0.86rem; color: var(--muted); margin-bottom: 18px;
}
.admin-scope { color: var(--muted); }
.data-table .ta-center { text-align: center; }
.hak-akses-table td:first-child { min-width: 260px; }
.hak-akses-table td .muted { font-size: 0.78rem; }
.panel-form-actions { padding: 18px 22px; margin: 0; border-top: 1px solid var(--line); background: #f8fafd; }

.switch { display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  position: relative; width: 46px; height: 26px; border-radius: 999px;
  background: #cfd8e6; transition: background 0.18s ease; display: block;
}
.switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(6, 26, 51, 0.28);
  transition: transform 0.18s ease;
}
.switch input:checked + .switch-track { background: var(--navy-700); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--yellow); outline-offset: 2px; }

.logo-uploader {
  display: flex; gap: 20px; align-items: flex-start; padding: 18px;
  border: 1px dashed var(--line); border-radius: 14px; background: #f8fafd;
}
.logo-uploader-preview {
  flex: 0 0 auto; width: 118px; height: 118px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); display: grid;
  place-items: center; position: relative; overflow: hidden; padding: 10px;
}
.logo-uploader-preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logo-uploader-tag {
  position: absolute; bottom: 0; left: 0; right: 0; font-size: 0.66rem;
  text-align: center; padding: 3px 4px; background: rgba(11, 36, 71, 0.82); color: #fff;
  letter-spacing: 0.02em;
}
.logo-uploader-info { min-width: 0; flex: 1 1 auto; }
.logo-uploader-info h3 { font-size: 0.98rem; margin: 0 0 4px; }
.logo-uploader-info p.muted { margin: 0 0 12px; font-size: 0.82rem; }
.logo-uploader-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.logo-uploader .foto-status { margin: 10px 0 0; }
@media (max-width: 560px) {
  .logo-uploader { flex-direction: column; align-items: stretch; }
  .logo-uploader-preview { width: 100%; max-width: 170px; height: 130px; }
}

/* ------------------- Struktur kepengurusan (halaman publik) ------------------- */
/* Hanya pengurus yang sudah diisi; gaya daftar kartu, bukan dokumen SK. */
.struktur-ringkas-wrap { display: flex; flex-direction: column; gap: 22px; max-width: 860px; margin: 0 auto; }
.struktur-note { margin: 0; font-size: 0.86rem; color: var(--muted); }
.pengurus-ringkas .panel-head h2 { font-size: 1rem; }
.pr-kode { color: var(--navy-600); font-weight: 800; }
.pr-list { list-style: none; margin: 0; padding: 0; }
.pr-item { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); }
.pr-item:first-child { border-top: 0; }
.pr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-nama { font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
.pr-jabatan { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 560px) {
  .pr-item { padding: 12px 16px; gap: 12px; }
  .pr-nama { font-size: 0.9rem; }
}

/* ---------------------- Struktur kepengurusan (dokumen) ---------------------- */
.page-head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.struktur-doc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 44px 48px; max-width: 960px; margin: 0 auto;
  font-family: 'Times New Roman', Georgia, serif; color: var(--ink);
}
.struktur-kop {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 3px double var(--navy-800); margin-bottom: 30px;
}
.struktur-logo { width: 84px; height: 84px; object-fit: contain; flex: 0 0 auto; }
.struktur-kop-teks { flex: 1 1 240px; min-width: 0; text-align: center; }
.struktur-eyebrow {
  margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.22em; color: var(--muted); font-weight: 700;
}
.struktur-kop h1 { font-size: clamp(1.05rem, 2.4vw, 1.42rem); margin: 6px 0 3px; line-height: 1.28; }
.struktur-prov { margin: 0; font-size: 0.95rem; letter-spacing: 0.06em; }
.struktur-masa { margin: 8px 0 0; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.04em; }

.struktur-grup { margin-top: 30px; }
.struktur-grup-judul {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.98rem; letter-spacing: 0.03em;
  margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--navy-800);
}
.struktur-grup-kode, .struktur-nomor { font-weight: 800; }
.struktur-entri { margin: 0 0 18px; }
.struktur-sub { font-size: 0.96rem; margin: 0 0 8px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; }
.struktur-list { list-style: none; margin: 0; padding: 0; counter-reset: struktur; }
.struktur-list > li { position: relative; margin: 0 0 6px; padding-left: 24px; }
.struktur-list > li::before {
  content: counter(struktur) "."; counter-increment: struktur;
  position: absolute; left: 0; font-weight: 700;
}
.struktur-baris { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin: 0; }
.struktur-baris .struktur-lbl { flex: 1 1 auto; min-width: 0; }
.struktur-sep { flex: 0 0 auto; }
.struktur-nama { font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
.struktur-kosong { color: #9aa8bd; letter-spacing: 0.06em; }
.struktur-nama-tunggal {
  margin: 2px 0 6px; padding-left: 24px; font-weight: 700; text-transform: uppercase;
}
.struktur-baris-ol { align-items: flex-start; }
.struktur-anggota { margin: 0; padding-left: 18px; }
.struktur-anggota li { margin: 0 0 4px; }
.struktur-bidang { margin: 0 0 20px; }
.struktur-bidang .struktur-baris { padding-left: 24px; }

.struktur-ttd { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.ttd-judul {
  text-align: center; font-weight: 700; margin: 0 0 26px; letter-spacing: 0.04em;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem;
}
.ttd-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ttd-kolom { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.ttd-jabatan {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.08em; font-weight: 700; color: var(--muted);
}
.ttd-nama { font-weight: 700; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }

.struktur-print .struktur-doc { border: none; box-shadow: none; padding: 0; max-width: none; }

@media (max-width: 720px) {
  .struktur-doc { padding: 26px 18px; }
  .struktur-logo { width: 62px; height: 62px; }
  .struktur-baris .struktur-lbl { flex: 1 1 100%; }
  .struktur-list > li, .struktur-bidang .struktur-baris { padding-left: 18px; }
}
@media print {
  .struktur-doc { font-size: 11.4pt; }
  .struktur-kop h1 { font-size: 15pt; }
  .struktur-grup { break-inside: auto; }
  .struktur-entri, .struktur-bidang, .struktur-ttd, .struktur-kop { break-inside: avoid; }
  .struktur-nama { letter-spacing: 0; }
}

/* ------------------- Struktur kepengurusan (form admin) ------------------- */
.struktur-masa {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: #f8fafd;
}
.struktur-masa label { font-size: 0.84rem; font-weight: 700; color: var(--navy-800); }
.struktur-masa input {
  font: inherit; font-size: 0.9rem; padding: 9px 12px; max-width: 180px;
  border: 1px solid #d5dfee; border-radius: var(--radius-sm); background: #fff;
}
.struktur-masa .field-hint { flex: 1 1 260px; margin: 0; }
.struktur-grup-form { padding: 22px; border-top: 1px solid var(--line); }
.struktur-grup-form:first-of-type { border-top: none; }
.struktur-entri-form { margin: 0 0 18px; }
.struktur-entri-judul {
  font-size: 0.86rem; margin: 0 0 10px; color: var(--navy-700);
  letter-spacing: 0.02em; text-transform: none;
}
.struktur-row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 128px 40px;
  gap: 10px; align-items: center; margin: 0 0 8px;
}
.struktur-row-label { font-size: 0.83rem; color: var(--muted); line-height: 1.35; }
.struktur-row input {
  font: inherit; font-size: 0.88rem; color: var(--ink); width: 100%; min-width: 0;
  padding: 9px 12px; border: 1px solid #d5dfee; border-radius: var(--radius-sm); background: #fff;
}
.struktur-row input:focus { border-color: var(--navy-600); outline: none; box-shadow: 0 0 0 3px rgba(27, 67, 115, 0.12); }
.struktur-row-wa { font-size: 0.82rem !important; }
.struktur-row-info { display: block; margin-top: 3px; font-size: 0.72rem; font-weight: 600; line-height: 1.3; }
.struktur-row-info .badge { font-size: 0.66rem; padding: 2px 8px; }
.struktur-row-info.is-ok { color: #0a6a49; }
.struktur-row-info.is-warn { color: #a20d25; }
.panel-note-warn { color: #8a6200; }
.panel-note-warn a { color: inherit; }
.struktur-aksi { display: inline-flex; align-items: center; justify-content: center; width: 40px; }
@media (max-width: 860px) {
  .struktur-row { grid-template-columns: 1fr 1fr; }
  .struktur-row-label { grid-column: 1 / -1; font-weight: 700; color: var(--ink); }
  .struktur-row .struktur-aksi { grid-column: 1 / -1; width: auto; justify-content: flex-start; }
}

/* ------------------- Login terpisah & pemulihan sandi ------------------- */
.auth-badge {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 12px;
  padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy-800);
  background: rgba(255, 192, 0, 0.22); border: 1px solid rgba(255, 192, 0, 0.5);
}
.auth-switch {
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.84rem; color: var(--muted);
}
.auth-card .alert { margin: 0 0 18px; }
.settings-block {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #f8fafd;
}
.settings-block h3 { font-size: 1rem; margin: 0 0 6px; }
.form-grid .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 14px 0; }
.email-tes { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 14px; border-top: 1px dashed #d5dfee; }
.email-tes .field { margin: 0; min-width: 240px; flex: 1 1 240px; }
.email-tes .field-hint { flex-basis: 100%; margin: 0; }
.email-tes-status-ok { color: #1f7a4d; }
.email-tes-status-error { color: #b3261e; }
.reset-panel { margin-top: 22px; }
.reset-link { margin: 18px 22px; padding: 16px 18px; border-radius: 12px; background: #f4f8ff; border: 1px solid #d6e4f7; }
.reset-link label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.reset-link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reset-link-row input {
  flex: 1 1 260px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem; padding: 10px 12px; border: 1px solid #c9d8ee; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.reset-actions { padding: 0 22px 22px; }
/* Panel tautan pendaftaran anggota (Data Anggota) */
.daftar-link-panel { margin-bottom: 22px; }
.daftar-link-body { display: grid; grid-template-columns: 1fr 210px; gap: 24px; align-items: center; padding: 6px 22px 22px; }
.daftar-link-info label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.daftar-link-info .field-hint { margin-top: 10px; }
.daftar-link-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.daftar-link-qr svg { width: 168px; height: 168px; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid #dbe4f2; }
.daftar-link-qr span { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .daftar-link-body { grid-template-columns: 1fr; } .daftar-link-qr { order: -1; } }

/* Baris isian NIK pada form pengurus */
.nik-wa-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.nik-wa-row input { flex: 1 1 220px; min-width: 0; }
.nik-wa-atau { font-size: 0.8rem; }

@media (max-width: 720px) {
  .form-grid .field-grid { grid-template-columns: 1fr; }
  .reset-link { margin: 16px; }
  .reset-actions { padding: 0 16px 16px; }
}

/* ---------------------- Kegiatan & tiket peserta (QR) ---------------------- */
.kegiatan-tools {
  display: grid; gap: 18px; margin-bottom: 34px;
}
.cari-tiket {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.cari-tiket .field { flex: 1 1 260px; min-width: 0; margin: 0; }
.cari-tiket .btn { flex: 0 0 auto; }
.notice-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.notice-ok { border-color: #bfe6d3; background: #effaf4; color: #0a6a49; }

.kegiatan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.kegiatan-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.kegiatan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kegiatan-tanggal { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.kegiatan-card h3 { font-size: 1.02rem; margin: 0; line-height: 1.35; }
.kegiatan-lokasi { font-size: 0.84rem; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.kegiatan-desc { font-size: 0.87rem; color: var(--muted); margin: 0; line-height: 1.55; }
.kegiatan-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.kegiatan-foot .muted { font-size: 0.8rem; }

.kegiatan-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.kegiatan-isi { font-size: 0.92rem; line-height: 1.7; color: var(--ink); margin: 4px 0 14px; }
.anggota-banner {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  background: var(--navy-100); border-radius: var(--radius-sm); padding: 14px 16px;
}
.anggota-banner strong { display: block; font-size: 0.9rem; }
.anggota-banner span { font-size: 0.82rem; color: var(--muted); }
.agenda-daftar { display: inline-block; margin-top: 8px; font-size: 0.84rem; font-weight: 700; color: var(--navy-700); }
.agenda-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }

/* Tiket */
.tiket-wrap { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.tiket-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.tiket-card.is-hadir { border-color: #b9e5d0; }
.tiket-head {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px;
  background: var(--navy-800); color: #fff;
}
.tiket-head strong { display: block; font-size: 0.82rem; letter-spacing: 0.16em; }
.tiket-head span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.72); }
.tiket-logo { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.tiket-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; padding: 24px 22px; align-items: start; }
.tiket-qr {
  background: #fff; border: 1px dashed #cbd5e6; border-radius: 14px; padding: 10px;
  flex: 0 0 auto;
}
.tiket-qr .qr-qr { display: block; width: 168px; height: 168px; }
.tiket-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tiket-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.tiket-nomor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1rem; letter-spacing: 0.04em; color: var(--navy-800); }
.tiket-nama { font-size: 1.12rem; text-transform: uppercase; letter-spacing: 0.01em; }
.tiket-kegiatan { font-size: 0.92rem; font-weight: 600; }
.tiket-jadwal { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 0.85rem; color: var(--muted); }
.tiket-jadwal li { display: flex; align-items: center; gap: 7px; }
.tiket-status { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.tiket-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 22px; border-top: 1px solid var(--line); background: #f8fafd; font-size: 0.8rem; color: var(--muted);
}
.tiket-print { max-width: 620px; }
.tiket-cetak { box-shadow: none; }

/* Pindai (admin) */
.scan-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.scan-camera { display: flex; flex-direction: column; gap: 12px; }
.scan-camera video {
  width: 100%; aspect-ratio: 4 / 3; background: #0b1220; border-radius: var(--radius);
  object-fit: cover;
}
.scan-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 34px 20px; border: 1px dashed #cbd5e6; border-radius: var(--radius);
  background: #f8fafd; color: var(--muted); min-height: 240px;
}
.scan-placeholder p { margin: 0; font-size: 0.88rem; max-width: 320px; }
.scan-side { display: flex; flex-direction: column; gap: 16px; }
.scan-result {
  border-radius: var(--radius-sm); padding: 16px 18px; border: 1px solid var(--line);
  background: #f8fafd; display: flex; flex-direction: column; gap: 4px; min-height: 84px;
  font-size: 0.88rem; color: var(--muted);
}
.scan-result strong { font-size: 0.95rem; color: var(--ink); }
.scan-result .scan-nama { font-weight: 700; color: var(--ink); text-transform: uppercase; }
.scan-result.is-ok { border-color: #b9e5d0; background: #effaf4; }
.scan-result.is-ok strong { color: #0a6a49; }
.scan-result.is-info { border-color: #c9d8f5; background: #eff4ff; }
.scan-result.is-error { border-color: #f3c6ce; background: #fdf0f2; }
.scan-result.is-error strong { color: #a20d25; }
.scan-stats { display: flex; gap: 14px; }
.scan-stats > div {
  flex: 1 1 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; text-align: center;
}
.scan-stats strong { display: block; font-size: 1.4rem; color: var(--navy-800); }
.scan-stats span { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.scan-riwayat { list-style: none; margin: 0; padding: 0 22px 22px; }
.scan-riwayat-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.scan-riwayat-item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scan-riwayat-item .muted { font-size: 0.78rem; }

@media (max-width: 1000px) {
  .kegiatan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kegiatan-detail, .scan-body { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .kegiatan-grid { grid-template-columns: 1fr; }
  .tiket-body { grid-template-columns: 1fr; }
  .tiket-qr { justify-self: center; }
  .tiket-qr .qr-qr { width: 148px; height: 148px; }
}
@media print {
  .tiket-print .tiket-card { break-inside: avoid; border: 1px solid #cbd5e6; }
  .tiket-print .tiket-head { background: #0b2447 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* -------------------- Tombol bagikan (Berita & Agenda) -------------------- */
.share-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: #fff; font: inherit;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; cursor: pointer;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); filter: brightness(1.06); color: #fff; }
.share-bar-sm .share-btn { width: 30px; height: 30px; font-size: 0.66rem; }
.share-wa { background: #25d366; border-color: #25d366; }
.share-tg { background: #229ed9; border-color: #229ed9; }
.share-fb { background: #1877f2; border-color: #1877f2; }
.share-x { background: #0f1b2d; border-color: #0f1b2d; }
.share-copy { background: #fff; border-color: var(--line); color: var(--navy-700); }
.share-copy:hover { color: var(--navy-700); }
.share-copy .icon { width: 16px; height: 16px; }
.share-copy.is-copied { background: var(--green); border-color: var(--green); color: #fff; }
.share-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: 0 22px 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(135deg, #f8fafd, #fdfefe);
}
.share-panel h3 { font-size: 0.95rem; margin: 0 0 4px; color: var(--navy-800); }
.share-panel p { margin: 0 0 6px; font-size: 0.82rem; }
.share-url {
  display: inline-block; font-size: 0.78rem; color: var(--navy-700); background: #fff;
  border: 1px dashed var(--line); border-radius: 8px; padding: 5px 9px;
  word-break: break-all; max-width: 100%;
}
/* Tombol "Bagikan + foto" (gambar asli ikut dikirim lewat Web Share API). */
.share-foto-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--navy-700); background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  color: #fff; font: inherit; font-size: 0.76rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.share-foto-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); filter: brightness(1.08); }
.share-foto-btn .icon { width: 15px; height: 15px; }
.share-bar-sm .share-foto-btn { height: 30px; padding: 0 11px; font-size: 0.7rem; }
.share-foto-btn.is-sent { background: var(--green); border-color: var(--green); }

/* Bagikan di halaman publik /berita */
.news-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.news-item .news-card { flex: 1 1 auto; }
.news-share {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 4px; flex-wrap: wrap;
}
.news-share-label {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted);
}
.news-share-label .icon { width: 14px; height: 14px; }
.share-bar-sm { gap: 6px; }

.article-share {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; margin: 30px 0 24px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(135deg, #f8fafd, #fdfefe);
}
.article-share-head { min-width: 0; flex: 1 1 280px; }
.article-share-head h3 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 4px;
  font-size: 0.98rem; color: var(--navy-800);
}
.article-share-head h3 .icon { width: 17px; height: 17px; color: var(--navy-600); }
.article-share-head p { margin: 0 0 8px; font-size: 0.84rem; }
@media (max-width: 560px) {
  .article-share { padding: 16px; }
  .article-share .share-bar { width: 100%; }
}

/* Unggah gambar (foto berita & poster agenda, dashboard) */
.unggah-gambar {
  display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafd;
}
.unggah-gambar-preview {
  width: 168px; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; flex: 0 0 auto;
}
.unggah-gambar-body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.unggah-gambar-body strong { font-size: 0.95rem; color: var(--navy-800); }
.unggah-gambar-body input[type='file'] { max-width: 100%; font: inherit; font-size: 0.84rem; }
.unggah-gambar-aksi { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.unggah-gambar-aksi .field-hint.is-ok { color: var(--green); }
.unggah-gambar-aksi .field-hint.is-error { color: var(--red); }
@media (max-width: 560px) {
  .unggah-gambar { padding: 16px; }
  .unggah-gambar-preview { width: 100%; }
}

/* Kotak kirim WhatsApp (pesan bisa diedit sebelum dikirim) */
.wa-kirim {
  display: flex; flex-direction: column; gap: 8px; margin-top: 18px;
  padding: 18px 20px; border: 1px solid #cfe9d9; border-radius: 14px;
  background: linear-gradient(135deg, #f2fbf6, #fbfefc);
}
.wa-kirim-head { display: flex; align-items: flex-start; gap: 12px; }
.wa-kirim-ikon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #25d366; color: #fff; flex: 0 0 auto;
}
.wa-kirim-ikon .icon { width: 18px; height: 18px; }
.wa-kirim-head h3 { margin: 0 0 3px; font-size: 0.98rem; color: var(--navy-800); }
.wa-kirim-ket { margin: 0; font-size: 0.84rem; color: var(--muted); }
.wa-kirim-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wa-kirim-teks {
  width: 100%; max-width: 100%; min-width: 0; font: inherit; font-size: 0.86rem; line-height: 1.6;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); resize: vertical;
}
.wa-kirim-aksi { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wa-kirim-aksi .field-hint { font-size: 0.8rem; }
@media (max-width: 560px) {
  .wa-kirim { padding: 16px; }
  .wa-kirim-aksi .btn { width: 100%; justify-content: center; }
}

/* Poster kegiatan (Agenda publik, daftar & detail Kegiatan, tiket) */
.agenda-poster {
  flex: 0 0 96px; width: 96px; border-radius: 10px; overflow: hidden; background: var(--navy-100);
  align-self: flex-start; line-height: 0;
}
.agenda-poster img { width: 100%; height: 96px; object-fit: cover; display: block; }
.kegiatan-poster {
  display: block; border-radius: 12px; overflow: hidden; background: var(--navy-100); line-height: 0;
  margin: -6px -6px 0;
}
.kegiatan-poster img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.kegiatan-poster-besar {
  display: block; width: 100%; max-height: 420px; object-fit: cover;
  border-radius: 12px; margin: 0 0 16px; background: var(--navy-100);
}
.tiket-poster { background: var(--navy-100); line-height: 0; }
.tiket-poster img { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.tiket-poster-cetak img { max-height: 70mm; }
.kegiatan-share { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) {
  .agenda-poster { flex: 0 0 auto; width: 100%; }
  .agenda-poster img { height: 140px; }
}

/* -------------------- Hak akses per pengurus kabupaten -------------------- */
.hak-akses-kab {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: #f8fafd;
  display: grid; gap: 8px;
}
.hak-akses-kab h3 { font-size: 0.95rem; margin: 0; color: var(--navy-800); }
.hak-akses-kab .field-hint { margin: 0; }
.hak-akses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; margin-top: 6px; }
.field .check.hak-akses-item {
  align-items: flex-start; gap: 10px; font-weight: 500;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.hak-akses-item input { margin-top: 3px; flex: 0 0 auto; width: auto; }
.hak-akses-item span { font-size: 0.82rem; line-height: 1.4; }
.hak-akses-item strong { font-weight: 700; color: var(--ink); }
