/* Portal Masjid At-Taqwa Mantuang.
   Palet asli: hijau tua, hijau masjid, emas. Arah tata letak: papan jadwal masjid, datar, bergaris, tanpa kartu rounded.
   Urutan: token, dasar, komponen umum, lalu bagian halaman sesuai urutan di situs. */

/* ---------- Token ---------- */
:root {
  color-scheme: light;
  --paper: #F4F8F5; --paper2: #EAF2EE; --ink: #10241E; --muted: #4B6158; --hair: #D5E1DA; --rule: #0A3B30;
  --brand: #0E6B4F; --brand-ink: #FFFFFF; --deep: #0A3B30; --deep-ink: #EAF6F0; --deep-muted: #A9CDBF;
  --gold: #B8841B; --gold-ink: #241800; --gold-hi: #E2B54B;
  --board: #05261D; --led: #E2B54B; --led-green: #8EE3BF; --bezel: #B8841B;
  --c-teras: #1B6FB5; --c-net: #0B8497; --c-lapau: #2A8F45; --c-balin: #C96510; --c-bapaneh: #7447AB;
  --f-head: "Fira Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-body: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-led: var(--f-body);
  --gutter: clamp(1rem, 4.4vw, 2.7rem);
  --space: clamp(2.2rem, 4.5vw, 3.6rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0B1713; --paper2: #12231D; --ink: #E7F2EC; --muted: #9DB8AC; --hair: #25423A; --rule: #2E5A4B;
    --brand: #3DBE8B; --brand-ink: #06231A; --deep: #06241D; --deep-muted: #8FB8A8;
    --gold: #E2B54B; --board: #031610; --bezel: #E2B54B;
    --c-teras: #5BA8E8; --c-net: #43C0D3; --c-lapau: #5CC878; --c-balin: #F29A4A; --c-bapaneh: #B08CE6;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0B1713; --paper2: #12231D; --ink: #E7F2EC; --muted: #9DB8AC; --hair: #25423A; --rule: #2E5A4B;
  --brand: #3DBE8B; --brand-ink: #06231A; --deep: #06241D; --deep-muted: #8FB8A8;
  --gold: #E2B54B; --board: #031610; --bezel: #E2B54B;
  --c-teras: #5BA8E8; --c-net: #43C0D3; --c-lapau: #5CC878; --c-balin: #F29A4A; --c-bapaneh: #B08CE6;
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; font-size: 87.5%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1rem/1.6 var(--f-body); overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); font-weight: 700; letter-spacing: 0; line-height: 1.25; text-wrap: balance; }
h4 { font-family: var(--f-body); font-weight: 700; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.top :focus-visible, .hero :focus-visible, .board :focus-visible, .foot :focus-visible, .gift :focus-visible, .lapau :focus-visible { outline-color: var(--gold-hi); }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--gold-hi); color: var(--gold-ink); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { left: 0; }

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 46rem; }
section { padding-block: var(--space); border-top: 1px solid var(--rule); }
.muted { color: var(--muted); }
.empty { padding: 1rem 1.1rem; border: 2px dashed var(--hair); color: var(--muted); }

/* Angka di papan jadwal: huruf biasa, lebar angka sama */
.led { font-weight: 700; color: var(--led); font-variant-numeric: tabular-nums; }
.led-green { color: var(--led-green); }

/* Motif pucuk rebung: segitiga emas dengan inti hijau, bahasa kain songket. */
.motif {
  height: 8px; background-color: var(--deep); background-repeat: repeat-x; background-position: left bottom;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='8'><path d='M0 8L8 0l8 8z' fill='%23E2B54B'/><path d='M5 8l3-4 3 4z' fill='%230E6B4F'/></svg>");
}

/* Tata letak bagian: judul di atas; isi bebas menyusun diri per bagian */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .9rem 2rem; margin-bottom: clamp(1.3rem, 3vw, 2rem); }
.sec-head h2 { flex: 0 1 auto; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.2; overflow-wrap: anywhere; }
.sec-head .days { min-width: 0; max-width: 100%; }
.more { display: inline-block; font-weight: 700; color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 38px; padding: .35rem 1rem;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--gold); }
.btn-gold { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.btn-brand { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-line { background: transparent; }
.btn-sm { min-height: 36px; padding: .3rem .85rem; font-size: .9rem; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--deep); color: var(--deep-ink); padding-top: env(safe-area-inset-top, 0px); }
.top .row { display: flex; align-items: center; gap: .75rem; min-height: 64px; padding-block: .4rem; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; flex: 1; text-decoration: none; }
.brand svg, .brand img { flex: none; }
.brand img { object-fit: contain; }
.brand b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 1.1rem; line-height: 1.25; overflow-wrap: anywhere; }
.nb { white-space: nowrap; }
.menu { display: flex; align-items: center; gap: .1rem; }
.menu a { display: flex; align-items: center; min-height: 44px; padding: .5rem .7rem; color: inherit; text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; opacity: .8; }
.menu a:hover, .menu a[aria-current] { opacity: 1; border-bottom-color: var(--gold-hi); }
.tools { display: flex; gap: .2rem; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 44px; min-height: 44px; padding: 0 .5rem; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.tool:hover { background: rgba(255, 255, 255, .12); }
.menu-btn { display: none; }
@media (min-width: 64rem) {
  .brand { flex: 0 0 auto; padding-right: 1.6rem; margin-right: .9rem; border-right: 1px solid rgba(255, 255, 255, .22); }
  .brand b { white-space: nowrap; }
  .menu { margin-right: auto; }
}
@media (min-width: 64rem) and (max-width: 80rem) {
  .brand { padding-right: 1.1rem; margin-right: .4rem; }
  .menu a { padding-inline: .42rem; font-size: .88rem; }
}
@media (max-width: 63.99rem) {
  .top .row { flex-wrap: wrap; }
  .js .menu-btn { display: inline-flex; }
  .menu { order: 3; flex: 1 0 100%; flex-wrap: wrap; }
  .js .menu { display: none; flex-direction: column; align-items: stretch; padding-bottom: .5rem; }
  .js .top.open .menu { display: flex; }
}
@media (max-width: 26rem) { .brand b { font-size: .95rem; } .tool { padding-inline: .35rem; } }

/* ---------- Hero dan papan jadwal ---------- */
.hero { padding-block: 0; border-top: 0; background: var(--deep); color: var(--deep-ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; padding-block: clamp(2rem, 5vw, 3rem) clamp(2.8rem, 6vw, 4.2rem); }
@media (min-width: 56.25rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-block: 3.5rem 4.6rem; gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.region { font-weight: 700; color: var(--gold-hi); }
.hero h1 { margin-top: .5rem; font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 2.6rem); line-height: 1.15; letter-spacing: 0; }
.today { max-width: 34rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .22); }
.today h3 { font-size: 1.1rem; color: var(--gold-hi); }
.today ul { margin-top: .5rem; }
.today li { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.today li b { font-family: var(--f-head); font-size: 1rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.today .more { margin-top: .8rem; color: var(--deep-ink); }
.hero .lead { margin-top: 1.3rem; max-width: 40ch; font-size: 1.1rem; color: var(--deep-muted); }
.cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.hero .btn-gold { background: var(--gold-hi); border-color: var(--gold-hi); }
.hero .btn-line { border-color: var(--deep-muted); color: var(--deep-ink); }

.board { min-width: 0; padding: clamp(1rem, 2.6vw, 1.5rem); background: var(--board); color: var(--deep-ink); border: 3px solid var(--bezel); box-shadow: 10px 10px 0 rgba(0, 0, 0, .3); }
.hero .board { border-color: var(--gold-hi); }
.board-top h2 { font-size: 1.2rem; }
.board-top p { margin-top: .2rem; font-size: .95rem; color: var(--deep-muted); }
.board-top .hijri:not(:empty)::before { content: " · "; }
.board-next { display: grid; gap: .5rem; margin-top: 1.1rem; padding: .95rem 0; border-block: 2px dashed rgba(255, 255, 255, .18); }
.board-next .lbl { display: block; font-size: .88rem; color: var(--deep-muted); }
.bn-name b { display: block; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.7rem); line-height: 1.2; }
.bn-name .led { margin-left: .4rem; font-size: 1em; }
.bn-name .day { margin-left: .2rem; font-family: var(--f-body); font-size: .95rem; font-weight: 600; color: var(--deep-muted); }
.bn-left { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.bn-left .led { font-size: clamp(1.25rem, 2.3vw, 1.5rem); line-height: 1.1; }
.board-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.8rem; margin-top: .3rem; }
.t { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .7rem .6rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.t .n { font-size: 1.08rem; font-weight: 700; color: var(--deep-ink); }
.t b { font-size: 1.2rem; line-height: 1.1; }
.t.on { background: var(--gold-hi); }
.t.on .n, .t.on b { color: var(--gold-ink); }
.t.past .n { color: var(--deep-muted); }
.t.past b { color: color-mix(in srgb, var(--led) 55%, transparent); }
.board .note { margin-top: .9rem; font-size: .88rem; color: var(--deep-muted); }
@media (max-width: 28rem) { .board-rows { grid-template-columns: minmax(0, 1fr); } .board { box-shadow: 6px 6px 0 rgba(0, 0, 0, .3); } }

/* ---------- Kegiatan ---------- */
.days { display: flex; flex-wrap: wrap; gap: .4rem; }
.days button { display: grid; justify-items: center; min-width: 4.5rem; padding: .4rem .5rem .45rem; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.days .dn { font-size: .85rem; font-weight: 700; }
.days .dd { font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; line-height: 1.05; }
.days small { font-size: .72rem; color: var(--muted); }
.days button:hover { background: var(--paper2); }
.days button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.days button[aria-selected="true"] small { color: var(--gold-ink); font-weight: 700; }
.days button[data-today] small { font-weight: 700; color: var(--brand); }
.days button[data-today][aria-selected="true"] small { color: var(--gold-ink); }
@media (max-width: 34rem) { .days { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; } .days button { flex: none; } }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 34px; padding: .2rem .7rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; }
.chip i { width: .65rem; height: .65rem; background: var(--k, var(--ink)); }
.chip { text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip[aria-pressed="true"] i { background: currentColor; }
.chip small { font-size: .82rem; font-weight: 600; opacity: .75; }
.chips + .albums { margin-top: 1.6rem; }
.chips + .empty { margin-top: 1.4rem; }

.agenda { margin-top: 1.8rem; }
.day-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.day-head h3 { font-size: 1.35rem; line-height: 1.25; }
.day-head p { color: var(--muted); }
.ev { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 13rem; gap: .3rem 1.6rem; padding: 1.05rem 0; border-bottom: 1px solid var(--hair); overflow-wrap: anywhere; }
.ev .tm b { display: block; font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ev .tm small { display: block; margin-top: .15rem; font-size: .88rem; color: var(--muted); }
.ev h4 { font-size: 1.05rem; }
.ev .ev-main p { margin-top: .25rem; color: var(--muted); }
.ev-meta { display: grid; gap: .15rem; align-content: start; font-size: .92rem; }
.tag { font-weight: 700; }
.tag::before { content: ""; display: inline-block; width: .65rem; height: .65rem; margin-right: .5rem; background: var(--k, var(--brand)); }
.place { color: var(--muted); padding-left: 1.15rem; }
.agenda-note { margin-top: 1.4rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 52rem) { .ev { grid-template-columns: 6.4rem minmax(0, 1fr); } .ev-meta { grid-column: 2; } }
@media (max-width: 30rem) { .ev { grid-template-columns: 5rem minmax(0, 1fr); gap: .3rem 1rem; } .ev .tm b { font-size: 1rem; } }

/* ---------- Layanan ---------- */
.svc-list { border-top: 2px solid var(--ink); }
.svc { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .8rem 2.4rem; padding: 1.5rem 0 1.5rem 1.2rem; border-bottom: 1px solid var(--hair); border-left: 8px solid var(--k); }
.svc h3 { font-size: 1.3rem; line-height: 1.25; }
.svc-name h3 + p { margin-top: .4rem; }
.svc-name p { margin-top: .3rem; color: var(--muted); }
.svc ul { display: grid; gap: .4rem; }
.svc li { position: relative; padding-left: 1.2rem; }
.svc li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; background: var(--k); }
.svc-note { margin-top: .9rem; padding-top: .7rem; border-top: 1px dashed var(--hair); color: var(--muted); }
.svc-note b { color: var(--ink); }
.svc-img { margin-bottom: .8rem; max-width: 24rem; }
@media (max-width: 44rem) { .svc { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Lapau Nagari: papan nama lapak, pita hijau tua bertulisan emas ---------- */
.lapau { padding-top: 0; background: var(--deep); color: var(--deep-ink); border-top: 0; border-bottom: 2px solid var(--gold-hi); }
.lapau .motif { margin-bottom: var(--space); }
.lapau-sign { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem 3rem; padding-bottom: clamp(1.6rem, 4vw, 2.6rem); border-bottom: 2px solid rgba(255, 255, 255, .25); }
@media (min-width: 56rem) { .lapau-sign { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; } }
.lapau-sign h2 { color: var(--gold-hi); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: 0; }
.lapau-intro p { max-width: 30ch; margin-bottom: 1.1rem; font-size: 1.1rem; font-weight: 500; line-height: 1.4; }
.lapau .btn { border-color: var(--gold-hi); }
.lapau .btn-gold { background: var(--gold-hi); color: var(--gold-ink); }
.types h3, .how h3 { margin-bottom: .5rem; font-size: 1.25rem; }
.types { margin-top: clamp(1.4rem, 3vw, 2rem); }
.how h3 { margin-bottom: .9rem; }
.types-hint { margin-bottom: .9rem; color: var(--deep-muted); }
.how { margin-top: clamp(2rem, 5vw, 3rem); padding-top: clamp(1.4rem, 3vw, 2rem); border-top: 2px solid rgba(255, 255, 255, .25); }
.biz { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); }
.bz { display: block; height: 100%; padding: .75rem .9rem .85rem; color: inherit; text-decoration: none; border: 2px solid rgba(255, 255, 255, .28); transition: border-color .15s, background .15s; }
.bz b { display: block; font-size: 1.1rem; }
.bz span { display: block; margin-top: .1rem; font-size: .9rem; color: var(--deep-muted); }
.bz em { display: block; margin-top: .4rem; font-style: normal; font-size: .85rem; font-weight: 700; color: var(--gold-hi); }
.bz:hover, .bz:focus-visible { border-color: var(--gold-hi); background: rgba(255, 255, 255, .07); }
.steps { display: grid; gap: 1.2rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.step { position: relative; display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.step i { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; background: var(--gold-hi); color: var(--gold-ink); font: 700 1.15rem var(--f-head); }
.step h4 { font-size: 1.15rem; }
.step p { margin-top: .15rem; color: var(--deep-muted); }
.products { display: grid; gap: 1rem; margin-top: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 14.5rem)); }
.product a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border: 2px solid var(--ink); background: var(--paper); transition: transform .15s, box-shadow .15s; }
.product .plain { display: flex; flex-direction: column; height: 100%; border: 2px solid var(--ink); background: var(--paper); }
.product a:hover, .product a:focus-visible { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--gold); }
.product img, .noimg { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.noimg { display: grid; place-items: center; background: var(--paper2); color: var(--brand); font: 700 2.4rem var(--f-head); }
.p-body { display: flex; flex: 1; flex-direction: column; gap: .2rem; padding: .65rem .75rem .8rem; }
.p-body small { font-weight: 700; color: var(--brand); font-size: .8rem; }
.p-body strong { font-size: 1.05rem; line-height: 1.3; }
.price { font-size: 1rem; font-weight: 800; color: var(--brand); }
.desc { font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.by { font-size: .84rem; font-weight: 600; }
.go { display: flex; align-items: center; justify-content: center; gap: .5rem; height: 40px; margin: .2rem .75rem .75rem; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: .92rem; line-height: 1; }
.go svg { flex: none; display: block; width: 18px; height: 18px; }
.go span { display: block; padding-top: 1px; }
.product a:hover .go, .product a:focus-visible .go { background: var(--gold); color: var(--gold-ink); }

/* Di layar kecil kartu mengisi lebar penuh, dua kolom. */
@media (max-width: 40rem) {
  .albums, .products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: .8rem; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Program ---------- */
.road { border-top: 2px solid var(--ink); }
.ph { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: .3rem 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--hair); }
.ph .y { font-family: var(--f-head); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--brand); }
.ph h3 { font-family: var(--f-body); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.ph p { margin-top: .25rem; max-width: 48ch; color: var(--muted); }
.ph.now { padding-inline: 1.1rem; margin-inline: -1.1rem; background: var(--deep); color: var(--deep-ink); border-bottom-color: var(--deep); }
.ph.now .y { color: var(--gold-hi); }
.ph.now p { color: var(--deep-muted); }
@media (min-width: 56rem) {
  .road { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 1.6rem; border-top: 0; }
  .ph { grid-template-columns: minmax(0, 1fr); align-content: start; gap: .25rem; padding: 1.1rem 0 .5rem; border-top: 3px solid var(--brand); border-bottom: 0; }
  .ph.now { margin-inline: 0; padding-inline: .9rem; border-top-color: var(--gold-hi); }
  .ph h3 { margin-top: .3rem; }
}
.badge { display: inline-block; margin-left: .5rem; padding: .05rem .55rem; background: var(--gold-hi); color: var(--gold-ink); font-size: .82rem; font-weight: 700; vertical-align: .1em; }

.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem 3rem; margin-top: 2.4rem; }
@media (min-width: 49rem) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checks h3 { padding-bottom: .5rem; border-bottom: 2px solid var(--ink); font-size: 1.2rem; }
.checks ul { margin-top: .4rem; }
.checks li { position: relative; padding: .6rem 0 .6rem 1.4rem; border-bottom: 1px solid var(--hair); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.1em; width: .6rem; height: .6rem; background: var(--gold); }

.opd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 3rem; border-top: 2px solid var(--ink); }
@media (min-width: 44rem) { .opd { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.o { padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.o b { display: block; font-size: 1.1rem; }
.o span { display: block; margin-top: .15rem; color: var(--muted); }

/* Cara program dinilai: tangga, tiap anak tangga lebih tinggi dari sebelumnya. */
.stair { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.lv { padding: 1rem 1.1rem 1.2rem; background: var(--paper2); border-top: 3px solid var(--brand); }
.lv .no { display: block; font-family: var(--f-led); font-weight: 700; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.lv h3 { margin-top: .5rem; font-family: var(--f-body); font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.lv p { margin-top: .3rem; color: var(--muted); }
.lv:last-child { background: var(--deep); color: var(--deep-ink); border-top-color: var(--gold-hi); }
.lv:last-child .no { color: var(--gold-hi); }
.lv:last-child p { color: var(--deep-muted); }
@media (min-width: 56rem) {
  .stair { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: .5rem; }
  .lv { min-height: calc(9.5rem + var(--i) * 2.7rem); }
}

.dataset { margin-top: 2.8rem; }
.dataset h3 { padding-bottom: .5rem; border-bottom: 2px solid var(--ink); font-size: 1.2rem; }
.ds-meter { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 2rem; margin: 1rem 0 .6rem; padding: .9rem 1.1rem; background: var(--board); color: var(--deep-ink); border: 3px solid var(--bezel); }
.ds-count b { display: inline-block; margin-right: .5rem; font-size: 1.5rem; line-height: 1; }
.segs { display: flex; flex: 1 1 14rem; gap: 4px; }
.segs i { flex: 1; height: 1.5rem; background: rgba(255, 255, 255, .12); }
.segs i.on { background: var(--led); }
.ds-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 3rem; }
@media (min-width: 44rem) { .ds-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ds { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--hair); }
.ds i { width: 1rem; height: 1rem; border: 2px solid var(--muted); }
.ds span { font-weight: 700; line-height: 1.3; }
.ds em { font-style: normal; font-size: .92rem; color: var(--muted); }
.ds.ok i { background: var(--brand); border-color: var(--brand); }
.ds.ok em { color: var(--brand); font-weight: 700; }

.reports { margin-top: .4rem; }
.report { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.report small { display: block; color: var(--muted); }
.report p { margin-top: .25rem; color: var(--muted); }

/* ---------- Kontak ---------- */
.kon { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; align-items: start; }
@media (min-width: 52rem) { .kon { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.contact { border-top: 2px solid var(--ink); }
.contact > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--hair); }
.contact dt { color: var(--muted); }
.contact dd { font-weight: 600; overflow-wrap: anywhere; }
.contact a { color: var(--brand); }
.acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.gift { padding: clamp(1.1rem, 2.6vw, 1.6rem); background: var(--board); color: var(--deep-ink); border: 3px solid var(--bezel); box-shadow: 8px 8px 0 rgba(0, 0, 0, .25); }
.gift h3 { font-size: 1.3rem; }
.gift > p { margin-top: .6rem; color: var(--deep-muted); }
.gift .btn-gold { background: var(--gold-hi); border-color: var(--gold-hi); }
.donate { margin-top: 1.1rem; padding-top: 1rem; border-top: 2px dashed rgba(255, 255, 255, .18); }
.donate small { display: block; color: var(--deep-muted); }
.donate b { display: block; margin-top: .3rem; font-size: 1.1rem; line-height: 1.2; overflow-wrap: anywhere; }
.donate span { display: block; margin-top: .3rem; }
.acct { padding: .9rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .18); }
.acct:first-child { padding-top: 0; }
.acct:last-child { padding-bottom: 0; border-bottom: 0; }
.acct small { margin: 0; }
.acct .num { margin-top: .15rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.qris { display: grid; justify-items: center; gap: .6rem; margin: .6rem 0 .8rem; padding: 1rem; background: #fff; color: #1b2b25; }
.qris a { display: block; width: min(100%, 16rem); }
.qris img { display: block; width: 100%; height: auto; max-height: 22rem; object-fit: contain; }
.qris figcaption { font-size: .86rem; line-height: 1.4; text-align: center; color: #33433d; }
@media (max-width: 30rem) { .contact > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; } }

/* ---------- Halaman dalam ---------- */
.page-head { padding-block: clamp(1.4rem, 3vw, 2.2rem) .6rem; border-top: 0; }
.page-head h1 { margin-top: .35rem; font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; }
.page-head .meta { margin-top: .5rem; color: var(--muted); }
.crumb { font-size: .95rem; color: var(--muted); }
.page-body { padding-block: .6rem var(--space); }
.article-img { width: 100%; max-height: 28rem; object-fit: cover; margin-bottom: 1.5rem; }
.prose { font-size: 1.05rem; line-height: 1.7; }
.prose > * + * { margin-top: 1rem; }
.prose h2, .prose h3 { margin-top: 1.4rem; }
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose a { color: var(--brand); }
.back { margin-top: 2rem; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin-top: 1.5rem; }

/* ---------- Galeri ---------- */
.albums { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 16rem)); }
.album a { display: block; color: inherit; text-decoration: none; border-top: 3px solid var(--brand); }
.album img, .album .noimg { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.album .noimg { background: var(--paper2); color: var(--brand); }
.a-body { display: grid; gap: .15rem; padding: .55rem 0; }
.a-body small { font-weight: 700; color: var(--brand); font-size: .8rem; }
.a-body strong { font-size: 1rem; line-height: 1.3; }
.a-meta { font-size: .82rem; color: var(--muted); }
.album a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }
.central-list .album a { padding-bottom: .4rem; }
.album-desc, .lede { max-width: 60ch; margin-top: .8rem; color: var(--muted); }
.page-head .meta a { color: var(--brand); font-weight: 700; }
.shots { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 10.5rem)); }
.shot { display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper2); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.shot:hover img { transform: scale(1.04); }
.lb { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; padding: 0; border: 0; background: transparent; color: #fff; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(0, 0, 0, .88); }
.lb img { max-width: min(92vw, 1400px); max-height: 84vh; object-fit: contain; }
.lb button { position: absolute; width: 3rem; height: 3rem; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .22); }
.lb-x { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font-weight: 700; }

/* ---------- Kaki dan toast ---------- */
.foot { background: var(--deep); color: var(--deep-ink); padding-block: 0 calc(2.4rem + env(safe-area-inset-bottom, 0px)); border-top: 0; }
.foot::before { content: ""; display: block; height: 12px; margin-bottom: 2.4rem; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='12'><path d='M0 12L12 0l12 12z' fill='%23E2B54B'/><path d='M7 12l5-6 5 6z' fill='%230E6B4F'/></svg>"); background-repeat: repeat-x; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem 3rem; }
.foot-id b { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.foot-id p { margin-top: .2rem; color: var(--deep-muted); }
.socials { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: .9rem; }
.socials a { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; font-weight: 600; text-decoration: none; }
.socials a:hover span { text-decoration: underline; }
.socials svg { width: 1.15rem; height: 1.15rem; flex: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-size: .95rem; font-weight: 600; }
.foot-note { max-width: 60ch; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .92rem; color: var(--deep-muted); }
@media (min-width: 52rem) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .foot-note { grid-column: 1 / -1; }
}
.toast { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 70; padding: .6rem 1.1rem; background: var(--deep); color: var(--gold-hi); border: 2px solid var(--gold-hi); font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast, .btn, .product a, .shot img, .bz { transition: none; }
  .btn:hover, .product a:hover, .product a:focus-visible, .shot:hover img { transform: none; }
}
