/* domsav97 v1: one stylesheet (the CSP allows no inline styles). Phones first; desktop from 900px. */
:root {
  --blue: #0068B7; --blue-d: #004F8C; --ink: #16324F; --chip: #DCEBF7; --gray: #E6E6E6;
  --bg: #F7F8FA; --muted: #4A5A6E; --soft: #EAF1F8; --navlbl: #1F3550; --tab: #5B6B7E; --line: #C9D3DF;
  --ph: #DCE3EC;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: 96px; }
h1, h2, h3 { font-family: Montserrat, Inter, system-ui, sans-serif; font-weight: 600; line-height: 1.2; margin: 0; }
h2 { font-size: 19px; } h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--ink); } a:hover { color: var(--blue-d); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.hide { display: none !important; }
.muted { color: var(--muted); } .small, small { font-size: 13px; } .blue { color: var(--blue); }
.center { text-align: center; } .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ul { text-decoration: underline; font-weight: 600; font-size: 14px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* batik */
/* the real class batik in full colour (img/batik-color.jpg, scripts/make-batik-soft-2.ps1 -Color): photo frames and strips.
   The earlier dotted batik is kept as .batik-1 / img/batik.svg to switch back. */
.batik { background-color: #85898E; background-image: url(/img/batik-color.jpg); background-size: 96px 96px; }
.batik-pita, .batik-sm { background-color: #85898E; background-image: url(/img/batik-color.jpg); background-size: 48px 48px; }
.batik-1 { background-color: var(--blue); background-image: url(/img/batik.svg); background-size: 96px 96px; }
/* soft pattern 2 (batik) is now used everywhere .batik-soft was (person's choice, 26 Nov 2026), shown at 120px.
   soft pattern 1 (cute): the rosettes, kept as .batik-soft-1 / img/batik-soft.svg to switch back. */
.batik-soft { background-color: var(--soft); background-image: url(/img/batik-soft-2.jpg); background-size: 120px 120px; background-position: center; }
.batik-soft-1 { background-color: var(--soft); background-image: url(/img/batik-soft.svg); background-size: 96px 96px; }
/* soft pattern 2 (batik): the real class batik, paled (scripts/make-batik-soft-2.ps1); the header (.top) only.
   360px tile shown at 180px per repeat, so the Domenico Savio crest stays recognisable. */
.batik-soft-2 { background-color: var(--soft); background-image: url(/img/batik-soft-2.jpg); background-size: 180px 180px; background-position: center -54px; } /* the crest row sits in the header */
.pita { height: 8px; }

/* header */
.top { border-radius: 0 0 28px 28px; margin-bottom: 14px; position: relative; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; min-height: 76px; }
.brand { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 22px; letter-spacing: .5px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand .yr { color: var(--blue); }
.topnav { display: none; }
.saya { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 22px; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); text-decoration: none; }
.saya:hover { color: #fff; }
.saya .saya-t { display: none; }
.saya-masuk { padding: 0 14px; } .saya-masuk .saya-t { display: inline; font-size: 14px; }
/* phone: the same brand (logo + DOMSAV '97) on every page; pages with a title put it under the brand row */
.brand { font-size: 20px; }
.top-in { padding: 12px 16px; min-height: 68px; }
.top.with-head .top-in { padding-bottom: 0; min-height: 56px; } /* same brand position as Beranda */
.page-head { padding: 4px 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.page-head h1 { font-size: 30px; }
.page-head .sub { font-weight: 600; font-size: 15px; color: var(--navlbl); }
.page-head .kicker { font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: 1px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; text-decoration: none; min-height: 44px; }
.back .ic { width: 20px; height: 20px; }

/* main */
.main { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.card { background: #fff; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.card.soft { background: var(--soft); }
.row-link { flex-direction: row; align-items: center; gap: 12px; text-decoration: none; min-height: 64px; }
.row-link b { font-size: 15px; } .row-link small { color: var(--muted); }
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sec-h a, .sec-h > span { font-size: 14px; font-weight: 600; white-space: nowrap; }
.empty { padding: 20px; border-radius: 16px; font-weight: 600; color: var(--navlbl); text-align: center; }
.note { padding: 14px 16px; border-radius: 16px; font-weight: 600; color: var(--navlbl); }
.lbl { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-family: Inter, sans-serif; }
.lbl.blue { color: var(--blue); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; background: none; text-align: center; }
.btn-b { background: var(--blue); color: #fff; } .btn-b:hover { color: #fff; background: var(--blue-d); }
.btn-o { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-w { background: #fff; color: var(--blue); } .btn-w2 { background: #fff; color: var(--ink); }
.btn-link { color: var(--blue); padding: 0; min-height: 44px; justify-content: flex-start; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.wide { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; } .btn-row .btn { flex: 1 1 140px; }
.btn-row.sm .btn { min-height: 44px; flex: 0 1 auto; }

/* chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip.select { padding: 0 6px 0 12px; } .chip select { border: 0; background: transparent; font-weight: 600; min-height: 40px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--chip); font-size: 13px; font-weight: 600; }
.tag-o { background: #fff; border: 1px solid var(--line); } .tag-im { background: var(--gray); color: var(--muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* search */
.filters { display: flex; flex-direction: column; gap: 10px; }
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.search input { flex: 1; border: 0; background: transparent; min-height: 44px; font-size: 16px; outline: none; min-width: 0; }
.search .ic { color: var(--muted); flex-shrink: 0; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; } /* our own × instead, the same everywhere */
.search-x { flex: 0 0 auto; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.search-x[hidden] { display: none; }
/* Teman: search and filters stay at the top of the screen (the header scrolls away) */
.tsticky { position: -webkit-sticky; position: sticky; top: 0; z-index: 10; background: var(--bg); margin: -8px -16px; padding: 8px 16px; }
.tsticky.stuck { box-shadow: 0 4px 10px rgba(22, 50, 79, .16); }
.tsticky .search { height: 48px; }
@media (max-width: 899.98px) {
  .tsticky .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } /* one row, swipe sideways */
  .tsticky .chip { flex: 0 0 auto; }
}
html.js .apply { display: none; }

/* home */
.hero-wrap { padding: 12px; border-radius: 32px; }
.hero { padding: 24px 20px; border-radius: 22px; background: var(--blue); color: #fff; display: flex; flex-direction: column; gap: 14px; }
.kicker-w { font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.hero h1 { font-size: 30px; line-height: 1.15; }
.count { display: flex; align-items: baseline; gap: 8px; font-weight: 500; }
.count .num { font-family: Montserrat, sans-serif; font-size: 56px; font-weight: 600; line-height: 1; }
.hero-btns { display: flex; gap: 10px; }
.hbtn { flex: 1; display: flex; padding: 3px; border-radius: 17px; background: rgba(255,255,255,.35); text-decoration: none; }
.hbtn span { flex: 1; display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 14px; font-weight: 600; }
.hbtn-w span { background: #fff; color: var(--blue); } .hbtn-b span { background: var(--blue); color: #fff; }
.home-grid { display: flex; flex-direction: column; gap: 16px; }
.merch-strip { border: 2px solid var(--chip); }
.merch-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; color: var(--blue); flex-shrink: 0; }
.merch-ic .ic { width: 30px; height: 30px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.barrow { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.barrow .bl { width: 64px; flex-shrink: 0; } .barrow .bn-n { width: 28px; text-align: right; color: var(--muted); }
progress { flex: 1; height: 12px; border: 0; border-radius: 6px; background: #E6EBF2; overflow: hidden; -webkit-appearance: none; appearance: none; }
progress::-webkit-progress-bar { background: #E6EBF2; border-radius: 6px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 6px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 6px; }
.kabar-list { display: flex; flex-direction: column; gap: 10px; }
.kabar { flex-direction: row; align-items: center; padding: 12px; border-radius: 16px; text-decoration: none; }
.kabar b { font-size: 15px; } .kabar small { color: var(--muted); }
.av-lg { width: 52px; height: 52px; border-radius: 26px; flex-shrink: 0; object-fit: cover; display: grid; place-items: center; font-weight: 700; color: var(--blue); }
.shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sc { padding: 16px; border-radius: 18px; text-decoration: none; gap: 4px; }
.sc b { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 17px; } .sc small { color: var(--muted); }

/* instagram grid */
.tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ph); display: block; }
.tile img.ig { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 13px; font-weight: 700; color: var(--navlbl); text-decoration: none; }
.ph-fallback.show, .broken .ph-fallback { display: flex; }
.broken img.ig { display: none; }
.badge { position: absolute; right: 6px; top: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 4px; border-radius: 10px; background: rgba(22,50,79,.75); color: #fff; font-size: 13px; font-weight: 600; }
.badge .ic { width: 16px; height: 16px; }
.big-post { padding: 0; overflow: hidden; gap: 0; }
.tile-big { aspect-ratio: 1; border-radius: 0; }
.pad { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.counts { display: flex; gap: 16px; font-weight: 600; font-size: 14px; }
.counts span { display: inline-flex; align-items: center; gap: 4px; } .counts .ic { width: 18px; height: 18px; }
.counts { flex-wrap: wrap; align-items: flex-start; row-gap: 0; }
.counts > a, .komen summary { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: inherit; text-decoration: none; cursor: pointer; }
.komen summary { list-style: none; } .komen summary::-webkit-details-marker { display: none; }
.komen summary { text-decoration: underline; text-underline-offset: 3px; }
.komen[open] { flex-basis: 100%; }
.komen-n, .suka-n { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; } /* comment count as plain text (no stored comments) */
.komen ul { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-weight: 400; }
.komen li { white-space: pre-line; overflow-wrap: anywhere; }
.komen p { font-weight: 400; margin: 6px 0; }
.more { font-size: 14px; font-weight: 600; color: var(--blue-d); }
.blue-card { background: var(--blue); color: #fff; } .blue-card h2 { font-size: 22px; }
.share-box .btn { align-self: flex-start; }

/* feed page: one column, full-width media */
.feed { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 520px; margin: 0 auto; }
.feed-post { padding: 0; overflow: hidden; gap: 0; }
.feed-post .carousel { border-radius: 0; }
.feed-sec { scroll-margin-top: 8px; width: 100%; max-width: 520px; margin: 0 auto; }
.feed-sec > .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 0; } /* one row, swipe sideways */
.feed-sec > .chips .chip { flex: 0 0 auto; }
.js .feed-post.later { display: none; }
.feed-more { height: 1px; } /* the end of the list: more posts load when it comes near */
.feed-post .slide img.ig, .feed-post .slide video { max-height: 60vh; }
.cap-more summary { list-style: none; cursor: pointer; overflow-wrap: anywhere; }
.cap-more summary::-webkit-details-marker { display: none; }
.cap-open, .cap-close { font-weight: 600; color: var(--blue-d); }
.cap-close, .cap-more[open] .cap-short, .cap-more[open] .cap-open { display: none; }
.cap-more[open] .cap-close { display: inline; }
.cap-more .caption { margin-top: 8px; }
/* with JS: "Ringkas" at the bottom of the open caption, the top line hidden */
.cap-more.cap-js[open] summary { display: none; }
.cap-more.cap-js[open] .caption { margin-top: 0; }
.cap-bawah { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-weight: 600; color: var(--blue-d); cursor: pointer; }
.cap-bawah[hidden] { display: none; }

/* post page */
.post { display: flex; flex-direction: column; gap: 12px; }
.carousel { position: relative; border-radius: 20px; overflow: hidden; background: var(--ph); }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.slide img.ig, .slide video { width: 100%; max-height: 80vh; object-fit: contain; display: block; background: #000; }
.zoom { padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; display: block; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.2); }
.dot.on { background: #fff; width: 18px; }
.caption { white-space: pre-line; overflow-wrap: anywhere; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: flex; align-items: center; justify-content: center; touch-action: pinch-zoom; overflow: auto; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close { position: fixed; top: 12px; right: 12px; z-index: 101; }

/* teman */
.hasil { font-size: 14px; }
.tsec + .tsec { margin-top: 24px; }
.tsec-h { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.grid-teman { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tcard { display: block; padding: 5px; border-radius: 22px; text-decoration: none; }
.tin { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 17px; overflow: hidden; }
.school { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; }
.school > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.ini { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 34px; color: var(--blue); }
.now { position: absolute; right: 8px; bottom: -14px; width: 48px; height: 48px; border-radius: 14px; border: 3px solid #fff; object-fit: cover; background: var(--ph); }
.tt { padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.tt b { font-size: 16px; line-height: 1.25; } .tt small { color: var(--muted); }
.tt .tags { margin-top: 6px; }
.tk { display: flex; flex-direction: column; margin-top: 6px; }
.tk .lbl { font-size: 10px; letter-spacing: .5px; color: var(--muted); }
.tk .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.35; color: var(--ink, inherit); }

/* profil */
.dvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dvs.im, .dvs.one { grid-template-columns: minmax(0, 1fr); max-width: 220px; }
.dvs figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dvs figcaption { font-weight: 700; } .dvs figcaption.blue { color: var(--blue-d); }
.frame { display: block; width: 100%; padding: 6px; border-radius: 22px; }
.fin { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; }
.fin img { width: 100%; height: 100%; object-fit: cover; }
.dvs.im .fin img { filter: grayscale(1); }
.pname { display: flex; flex-direction: column; gap: 6px; } .pname h1 { font-size: 28px; }
.quote { font-size: 17px; white-space: pre-line; overflow-wrap: anywhere; }
.pigura { flex-direction: row; gap: 16px; align-items: flex-start; }
.pigura h2 { font-size: 18px; }
.pig-prev { width: 104px; flex-shrink: 0; padding: 6px 6px 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; }
.pig-in { width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.pig-in img { width: 100%; height: 100%; object-fit: cover; } .pig-in .ini { font-size: 26px; }
.pig-l { color: #fff; font-size: 13px; font-weight: 700; padding: 4px 0; }

/* acara */
.rsvp h2 { font-size: 22px; }
.seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.totals { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.info { padding: 16px; gap: 4px; } .info b { font-size: 17px; }
.venue { padding: 0; overflow: hidden; gap: 0; }
.map { min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 700; color: var(--navlbl); }
.map .ic { width: 36px; height: 36px; color: var(--blue); }
.venue .row { flex-direction: row; align-items: center; gap: 12px; }
.rundown { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rundown li { display: flex; gap: 16px; } .rundown b { width: 56px; flex-shrink: 0; }

/* toko */
.merch-wrap { padding: 12px; border-radius: 32px; }
.merch { background: var(--blue); color: #fff; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.merch h2 { font-size: 26px; }
.merch-soon { background: rgba(255,255,255,.16); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.merch-soon b { font-size: 18px; }
.usaha { scroll-margin-top: 16px; } .usaha > .sec-h h2 { font-size: 24px; }
.biz-list { display: grid; gap: 12px; }
.biz { gap: 10px; scroll-margin-top: 16px; }
.biz-top { display: flex; gap: 14px; }
.biz-ph { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex-shrink: 0; display: block; }
.biz p { font-size: 15px; overflow-wrap: anywhere; }
.biz-more summary { cursor: pointer; font-weight: 600; color: var(--blue-d); min-height: 44px; display: flex; align-items: center; }
.biz-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.biz-gal figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.biz-gal img, .biz-gal video { width: 100%; border-radius: 10px; display: block; }
.biz-gal figcaption { font-size: 13px; color: var(--muted); }
.kenalkan { background: var(--soft); }

/* masuk / forms / prose */
.step h2 { display: flex; align-items: center; gap: 12px; font-family: Inter, sans-serif; font-size: 17px; font-weight: 700; }
.stepn { width: 32px; height: 32px; border-radius: 16px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.field input, .field textarea { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 48px; background: #fff; font-weight: 400; font-size: 16px; }
.prose { gap: 10px; } .prose h2 { margin-top: 8px; font-size: 18px; }
.links { display: flex; flex-direction: column; } .links a { min-height: 48px; display: flex; align-items: center; font-weight: 500; }

/* footer + bottom menu */
.foot { max-width: 1200px; margin: 24px auto 0; padding: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.foot a { color: var(--muted); }
.botbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; }
.band { height: 10px; }
.botnav { height: 76px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; padding-bottom: env(safe-area-inset-bottom); }
.bn { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--tab); font-size: 11px; font-weight: 500; min-height: 56px; justify-content: center; }
.bn .bi { display: flex; padding: 3px 14px; }
.bn.on { color: var(--ink); font-size: 13px; font-weight: 700; }
.bn-toko { color: var(--blue); font-weight: 600; justify-content: flex-end; }
.bn-toko .bi { box-sizing: border-box; display: grid; place-items: center; width: 58px; height: 58px; margin-top: -30px; padding: 0; border-radius: 29px; background: var(--blue); color: #fff; border: 4px solid #fff; box-shadow: 0 3px 10px rgba(0,104,183,.45); }
.bn-toko.on { color: var(--blue-d); }

/* desktop */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .botbar { display: none; }
  .top { border-radius: 0; border-bottom: 1px solid #C3CFEE; margin-bottom: 28px; }
  .top-in, .top.with-head .top-in { position: static; max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 72px; }
  .top.with-head .brand, .brand { display: flex; font-size: 24px; }
  .brand .logo-img { height: 40px; }
  .topnav { display: flex; gap: 4px; }
  .tn { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; font-weight: 500; font-size: 15px; color: var(--tab); text-decoration: none; }
  .tn.on { background: var(--chip); font-weight: 700; font-size: 16px; color: var(--ink); }
  .tn-toko { background: var(--blue); color: #fff; font-weight: 700; padding: 0 20px; }
  .tn-toko:hover, .tn-toko.on { background: var(--blue-d); color: #fff; }
  .saya { gap: 10px; padding: 0 16px 0 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: none; font-size: 14px; }
  .saya:hover { color: var(--blue-d); }
  .saya .av { width: 32px; height: 32px; border-radius: 16px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 12px; }
  .saya .saya-t { display: inline; }
  .saya-masuk { padding: 0 18px; }
  .page-head { max-width: 1200px; margin: 0 auto; padding: 4px 24px 18px; }
  .page-head h1 { font-size: 40px; }
  .main { padding: 0 24px; gap: 24px; }
  .tsticky { margin: -8px -24px; padding: 8px 24px; }
  .is-home .main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .is-home .main > .sec, .is-home .main > .shortcuts { grid-column: 1 / -1; }
  .hero-wrap { padding: 14px; border-radius: 40px; }
  .hero { padding: 40px; border-radius: 28px; gap: 18px; }
  .hero h1 { font-size: 48px; } .count .num { font-size: 72px; } .count { font-size: 20px; }
  .hero-btns { flex-wrap: wrap; } .hbtn { flex: 0 0 auto; } .hbtn span { padding: 0 28px; height: 48px; }
  h2 { font-size: 22px; }
  .kabar-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
  .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-teman { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .filters { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .filters .search { flex: 1 1 360px; }
  .hasil { flex-basis: 100%; }
  .post { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
  .tab-teman .main { max-width: 1200px; }
  .dvs { max-width: 560px; }
  .tab-acara .main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-acara .main > .btn-row { grid-column: 1 / -1; }
  .biz-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prose, .tab-none .main { max-width: 760px; }
}

/* Phase 3 */
.narrow { max-width: 560px; }
.link-card { align-items: flex-start; }
.link-card h1 { font-size: 26px; }
.link-photo { width: 160px; padding: 6px; border-radius: 22px; }
.link-photo .ini { font-size: 40px; }
.pick { flex-direction: row; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); text-decoration: none; }
.pick.on { border: 2px solid var(--blue); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; }
.check input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--ink); }
fieldset.field { border: 0; padding: 0; margin: 0; } fieldset.field legend { font-weight: 600; margin-bottom: 4px; }
.seg { gap: 8px; }
.segb { position: relative; display: flex; }
.segb input { position: absolute; opacity: 0; }
.segb span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 6px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; text-align: center; cursor: pointer; }
.segb input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.segb input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.field.inline { flex-direction: row; align-items: center; gap: 12px; }
.field select { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; background: #fff; }
.note.err { background: #FBE9E9; color: #8A1C1C; }
.tag-g { background: #DDEFE0; color: #1E5B2C; }
.danger { color: #9B2C2C; }
.names { margin: 0; padding-left: 18px; columns: 2; } .names li { padding: 4px 0; break-inside: avoid; }
.av { display: inline-grid; place-items: center; }

/* Form errors: red text right under the field, and a short red summary near the button. #B42318 on white = 6.5:1 */
.field-err { margin: -6px 0 0; color: #B42318; font-size: 15px; font-weight: 600; }
.field-err::before { content: "⚠ "; }
.form-err { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FEF3F2; border: 1px solid #F04438; color: #B42318; font-size: 15px; font-weight: 600; }
.field-err[hidden], .form-err[hidden] { display: none; }
[aria-invalid="true"] { border-color: #B42318 !important; outline: 2px solid #B42318; outline-offset: 1px; }
.note.err { background: #FEF3F2; border: 1px solid #F04438; color: #B42318; }
.foto-pilih { width: 120px; } .foto-pilih img { width: 100%; border-radius: 12px; display: block; }
.btn-sm { min-height: 44px; padding: 0 14px; align-self: flex-start; }

/* The hidden attribute always wins (buttons with display:flex used to stay visible) */
[hidden] { display: none !important; }
.link-person { display: flex; align-items: center; gap: 14px; }
.link-person .link-photo { width: 84px; flex-shrink: 0; }
.link-person .fin { aspect-ratio: 4 / 5; }
.link-person .ini { font-size: 26px; }
.link-nama { font-size: 18px; }

/* Success: green box with a check (#067647 on #ECFDF3 = 5.6:1). Unsaved: amber box with ⚠️ (#93370D on #FFFAEB = 7.6:1). */
.form-ok { margin: 0; padding: 12px 14px; border-radius: 12px; background: #ECFDF3; border: 1px solid #17B26A; color: #067647; font-size: 15px; font-weight: 600; }
.form-ok::before { content: "✓ "; font-weight: 800; }
.form-warn { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFFAEB; border: 1px solid #F79009; color: #93370D; font-size: 15px; font-weight: 600; }
.form-warn::before { content: "⚠️ "; }
.form-ok[hidden], .form-warn[hidden] { display: none; }
.form-ok:focus { outline: none; }

/* Kabar Kita on Saya */
.kabar-blok { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--bg); }
.kabar-blok.pending { background: #FFFAEB; border: 1px dashed #F79009; }
.kabar-isi { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.kabar-foto { width: 140px; aspect-ratio: 4 / 5; border-radius: 16px; object-fit: cover; display: grid; place-items: center; font-weight: 700; color: var(--blue); text-align: center; font-size: 14px; flex-shrink: 0; }
.kabar-saya [data-kabar-view] { display: flex; flex-direction: column; gap: 12px; }
.tag-warn { background: #FFFAEB; color: #93370D; border: 1px solid #F79009; }
.file-btn { cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Menu: highlight exactly one thing, the place you are, or nothing.
   Phone: Toko is a big raised outline circle unless you are on Toko (then filled blue).
   The profile button is an outline unless you are on Saya (then filled, thicker ring). */
.bn-toko { color: var(--blue); }
.bn-toko .bi { background: #fff; color: var(--blue); border: 2px solid var(--blue); box-shadow: 0 0 0 4px #fff, 0 3px 10px rgba(0,104,183,.25); }
.bn-toko.on { color: var(--blue-d); font-size: 13px; font-weight: 700; }
.bn-toko.on .bi { background: var(--blue); color: #fff; border: 4px solid #fff; box-shadow: 0 3px 10px rgba(0,104,183,.45); }
.saya:not(.saya-masuk) { background: #fff; color: var(--blue); border: 2px solid var(--blue); box-shadow: none; }
.saya.on { background: var(--blue); color: #fff; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--blue), 0 2px 6px rgba(0,0,0,.2); }
@media (min-width: 900px) {
  /* Desktop: no special Toko; only the current tab (or the Saya button) is a filled pill */
  .tn-toko, .tn-toko:hover { background: none; color: var(--tab); font-weight: 500; padding: 0 16px; }
  .tn-toko.on, .tn-toko.on:hover { background: var(--chip); color: var(--ink); font-weight: 700; font-size: 16px; }
  .saya:not(.saya-masuk) { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
  .saya.on { background: var(--chip); border: 1px solid var(--chip); color: var(--ink); font-weight: 700; box-shadow: none; }
  .saya:not(.saya-masuk) .av { background: var(--blue); color: #fff; }
}

/* Desktop: every top tab is a pill; white when not current, light blue (+ orange underline) when current */
@media (min-width: 900px) {
  .topnav { gap: 8px; }
  .tn, .tn-toko, .tn:hover, .tn-toko:hover { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 0 18px; color: var(--ink); font-weight: 500; font-size: 15px; }
  .tn:hover, .tn-toko:hover { border-color: var(--blue); color: var(--blue-d); }
  .tn.on, .tn-toko.on, .tn.on:hover, .tn-toko.on:hover { background: var(--chip); border-color: var(--blue); color: var(--ink); font-weight: 700; font-size: 16px; }
}
@media (min-width: 900px) {
  /* the current "Saya" pill looks exactly like a current tab pill */
  .saya.on { background: var(--chip); border: 1px solid var(--blue); }
}

/* Visitor "Masuk" button: same states as the tabs and the Saya button (not a special call-to-action) */
.saya.saya-masuk { background: #fff; color: var(--blue); border: 2px solid var(--blue); box-shadow: none; }
.saya.saya-masuk.on { background: var(--blue); color: #fff; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--blue), 0 2px 6px rgba(0,0,0,.2); }
@media (min-width: 900px) {
  .saya.saya-masuk { background: #fff; color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
  .saya.saya-masuk.on { background: var(--chip); color: var(--ink); border: 1px solid var(--blue); font-weight: 700; box-shadow: none; }
}

/* Desktop: the batik strip sits under the header bar (not at the very top of the page) */
@media (min-width: 900px) {
  body > .pita { display: none; }
  .top { border-bottom: 0; }
  .top::after { content: ""; display: block; height: 8px; background-color: #85898E; background-image: url(/img/batik-color.jpg); background-size: 48px 48px; }
}

/* Thin batik frame (5px) around the big blue cards on Beranda and Toko, like the Teman cards */
.hero-wrap, .merch-wrap { padding: 5px; border-radius: 27px; }
@media (min-width: 900px) { .hero-wrap { padding: 5px; border-radius: 33px; } }

/* The batik strip sits under the header bar on every screen size (phone too) */
body > .pita { display: none; }
.top { border-radius: 0; border-bottom: 0; }
.top::after { content: ""; display: block; height: 8px; background-color: #85898E; background-image: url(/img/batik-color.jpg); background-size: 48px 48px; }

/* No blue tap flash on phones; a soft press effect instead */
html { -webkit-tap-highlight-color: transparent; }
a, button, label { -webkit-tap-highlight-color: transparent; }
.bn:active .bi, .tn:active, .saya:active, .btn:active, .chip:active { opacity: .75; }

/* Masuk: waiting for an admin; later steps dimmed */
.step.dim { opacity: .6; }
.wait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 8px 0; }
.wait p { margin: 0; }
.spin { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--blue-soft, #DCEBF7); border-top-color: var(--blue, #0068B7); animation: spin 1s linear infinite; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }
.radio { display: flex; align-items: center; gap: 8px; min-height: 44px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.cf-turnstile { min-height: 65px; }

/* Wek'e Kancamu: open or close every gallery */
.toggle-all { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.tag-contoh { background: #FFFAEB; border: 1px solid #F79009; color: #93370D; }
.fin .zoom { display: block; width: 100%; height: 100%; }
.zoom-fit { display: block; width: auto; cursor: zoom-in; }
.fin .zoom img { cursor: zoom-in; }
.zoom-fit img { cursor: zoom-in; }
.zoom:focus-visible { outline: 3px solid var(--blue, #0068B7); outline-offset: 2px; }

/* class logo in the header (110x96 file; 36px tall on phones, 40px on desktop; keeps its proportions) */
.brand .logo-img { height: 36px; width: auto; flex-shrink: 0; border-radius: 8px; display: block; }
.brand { min-width: 0; }
.brand > span { white-space: nowrap; }

/* Phones: Saya / Masuk is the fifth item of the bottom menu, not a button at the top right */
.bn .av-n { box-sizing: border-box; width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: 9px; font-weight: 700; line-height: 1; }
.bn.on .av-n { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 899.98px) { .top .saya { display: none; } }

/* Masuk: country code next to the WhatsApp number */
.phone-row { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 10px; align-items: end; }
.phone-row .cc-lain, .phone-row .ph { grid-column: 1 / -1; }
.phone-row .cc { grid-column: 1 / -1; }
.phone-row select, .phone-row input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; background: #fff; font-size: 16px; }
.phone-row .cc-lain[hidden] { display: none; }

/* Acara: date, time, dress code and place, centred, at the top of the page */
.kunci { align-items: center; text-align: center; gap: 16px; padding: 20px 16px; width: 100%; max-width: 560px; margin: 0 auto; }
.kunci > div { display: flex; flex-direction: column; gap: 2px; }
.kunci b { font-size: 18px; } .kunci b.besar { font-size: 24px; line-height: 1.25; }
.kunci .dua { flex-direction: row; gap: 12px; align-self: stretch; }
.kunci .dua > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.kunci .peta { display: block; align-self: stretch; } /* square corners: Google's credit sits in them */
.kunci .peta img { display: block; width: 100%; height: auto; }
.kunci .btn { align-self: stretch; justify-content: center; }
.kunci .btn .ic { width: 20px; height: 20px; }
/* People's own words (Kabar Kita news and message) in italic; labels stay upright (29 Nov 2026) */
.kata, .quote { font-style: italic; }
/* Beranda "Kabar teman": play/pause; every 10 s the cards turn over one by one (airline board), the list keeps its height */
.kabar-pp { margin-left: auto; margin-right: 10px; min-height: 36px; padding: 0 12px; font-size: 14px; cursor: pointer; }
.kabar[hidden] { display: none; }
[data-kabar-rot] .kabar-list { perspective: 900px; align-content: start; }
[data-kabar-rot] .kabar { transform-origin: 50% 50%; transition: transform .29s ease-out; backface-visibility: hidden; }
[data-kabar-rot] .kabar.kflip-out { transform: rotateX(90deg); transition-timing-function: ease-in; }
[data-kabar-rot] .kabar.kflip-pre { transform: rotateX(-90deg); transition: none; }
/* Profile photo viewer: the photo in a frame over a dimmed page */
.pv { position: fixed; inset: 0; z-index: 100; background: rgba(10, 25, 40, .72); display: flex; align-items: center; justify-content: center; padding: 20px; touch-action: pinch-zoom; }
.pv[hidden] { display: none; }
.pv-frame { padding: 8px; border-radius: 22px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.pv-frame img { display: block; max-width: min(84vw, 460px); max-height: 74vh; border-radius: 15px; background: #fff; }
.pv-x { position: fixed; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.pv-dots { position: fixed; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 8px; }
.pv-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); }
.pv-dots span.on { background: #fff; }
.pv-dots[hidden], .pv-nav[hidden] { display: none; }
.pv-nav { display: none; position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.pv-prev { left: 20px; } .pv-next { right: 20px; }
@media (min-width: 900px) { .pv-nav { display: block; } }
.pv-x:focus-visible, .pv-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
html.pv-on { overflow: hidden; }
/* Instagram comments pop-up (members): panel over the dimmed page; the list scrolls inside, the page does not */
.kp { position: fixed; inset: 0; z-index: 100; background: rgba(10, 25, 40, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.kp[hidden] { display: none; }
.kp-panel { background: #fff; color: var(--ink); border-radius: 20px; width: 100%; max-width: 520px; max-height: 80vh; max-height: 80dvh; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.35); overflow: hidden; }
.kp-head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.kp-t { flex: 1; min-width: 0; } .kp-t h2 { margin: 0; font-size: 18px; } .kp-cap { margin: 2px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.kp-x.pv-x { position: static; flex: none; background: var(--chip); }
.kp-head { flex: none; }
.kp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 18px 16px; }
.kp-body ul { gap: 10px; }
.komen li.balas { margin-left: 22px; padding-left: 10px; border-left: 2px solid var(--line); font-size: 15px; } /* a reply, under its comment */
/* Saya → Kabar Kita-mu → "Usaha & layanan" (Kenalkan usahamu, 29 Nov 2026) */
fieldset.usaha-f { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 4px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
fieldset.usaha-f legend { font-weight: 700; padding: 0 6px; }
.usaha-f .dua { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 380px) { .usaha-f .dua { grid-template-columns: minmax(0, 1fr); } }
