/* ==========================================================================
   Soni Connect — website
   The app's "Suvarna" design system (theme.ts): Soni = goldsmith, so the
   identity is ink, gold and ivory. Mobile-first: on a phone the site should
   feel like the app; on a laptop it opens up into a proper website.
   ========================================================================== */

:root {
	--bg: #FAF6EF;          /* warm ivory paper */
	--surface: #FFFFFF;
	--ink: #241E15;         /* espresso ink */
	--ink-2: #33291B;
	--ink-soft: #5C5443;    /* body text */
	--bronze: #8A7A5E;      /* meta text, muted icons */
	--gold: #B08A3C;        /* the accent */
	--gold-deep: #8C6A24;
	--gold-soft: #E9C766;   /* featured badge / highlight */
	--gold-tint: #F4ECD9;   /* chips, soft fills */
	--line: #EDE5D3;        /* hairlines */
	--card-line: #F0E9DA;
	--cream: #F6EBD1;       /* text on ink */
	--muted-fill: #E4DAC2;
	--success: #3B8C4A;
	--urgent: #8C2F39;
	--wa: #25D366;
	--wa-deep: #2E7D46;
	--wa-tint: #E3F5E8;

	--r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px;
	--shadow-card: 0 2px 6px rgba(36, 30, 21, .05);
	--shadow-lift: 0 4px 14px rgba(36, 30, 21, .07);
	--shadow-float: 0 8px 20px rgba(36, 30, 21, .18);

	--font: "Poppins", "Baloo Bhai 2", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-gu: "Baloo Bhai 2", "Poppins", system-ui, sans-serif;
	--wrap: 1160px;
	--gutter: 16px;
	--tabbar-h: 64px;
	color-scheme: light;
}

/* ─── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.sc {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
/* Resets use :where() so they never outrank component colours. */
:where(.sc) img { max-width: 100%; display: block; }
:where(.sc) a { color: inherit; text-decoration: none; }
:where(.sc) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.sc) :is(h1, h2, h3, p) { margin: 0; }
:where(.sc) :is(ul, ol) { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:where(.sc) :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ─── Bilingual ─────────────────────────────────────────────────────── */
html[data-lang="en"] .l-gu, html:not([data-lang="en"]) .l-en { display: none; }
.l-gu { font-family: var(--font-gu); }
html:not([data-lang="en"]) .lang-opt--gu, html[data-lang="en"] .lang-opt--en { background: var(--ink); color: var(--cream); }

/* ─── Icons ─────────────────────────────────────────────────────────── */
.ic { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -0.125em; }

/* ─── Layout ────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.page { padding-block: 20px 28px; }
.page--narrow { max-width: 760px; }
.main { min-height: 60vh; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 10px; }

/* ─── Type helpers ──────────────────────────────────────────────────── */
.over {
	font-size: 10.5px; line-height: 1.4; font-weight: 600; letter-spacing: .16em;
	text-transform: uppercase; color: var(--gold);
}
.over .l-gu { letter-spacing: .02em; font-size: 12px; }
.over--light { color: var(--gold-soft); }
.page-head { margin-bottom: 18px; }
.page-title {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	font-size: 22px; line-height: 1.3; font-weight: 600; text-wrap: balance;
}
.page-title-ic { color: var(--gold); font-size: 22px; }
.page-sub { margin-top: 6px; color: var(--ink-soft); font-size: 13.5px; max-width: 60ch; }
.page-head--icon { display: flex; gap: 14px; align-items: center; }
.count { font-size: 12.5px; color: var(--ink-soft); }
.count strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 18px; border-radius: var(--r-md);
	font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap;
	transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn .ic { font-size: 17px; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-2); }
.btn-gold { background: var(--gold-soft); color: var(--ink); box-shadow: 0 2px 8px rgba(176, 138, 60, .25); }
.btn-gold:hover { background: #E2BC52; }
.btn-tint { background: var(--gold-tint); color: var(--ink); }
.btn-line { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--gold); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn-sm .ic { font-size: 15px; }
.btn-lg { min-height: 58px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.btn-lg small { font-weight: 500; opacity: .75; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .6; pointer-events: none; }
.icon-btn {
	display: inline-grid; place-items: center; flex: none;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--gold-tint); color: var(--ink); font-size: 20px;
}
.icon-btn:hover { background: var(--line); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; color: var(--ink-soft); padding: 8px 0; }
.link-btn:hover { color: var(--ink); }
.link-btn--gold { color: var(--gold-deep); font-weight: 600; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--gold-tint); font-size: 12px; font-weight: 600; }

/* ─── Top app banner (like a store "smart banner") ──────────────────── */
.appbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.appbar-off .appbar { display: none; }
.appbar-inner { display: flex; align-items: center; gap: 10px; padding-block: 8px; }
.appbar-x { color: var(--bronze); font-size: 18px; display: grid; place-items: center; width: 24px; height: 32px; }
.appbar-logo {
	width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--cream);
	display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none;
}
.appbar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.appbar-text strong { font-size: 13px; font-weight: 600; }
.appbar-text > span { font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Header (the app's brand header) ───────────────────────────────── */
.hdr {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 246, 239, .94);
	backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.hdr-inner { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand-mark {
	display: inline-grid; place-items: center; flex: none;
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--ink); color: var(--cream);
	font-weight: 600; font-size: 13px; letter-spacing: .02em; font-family: "Poppins", sans-serif;
}
.brand-mark--lg { width: 52px; height: 52px; font-size: 18px; }
.brand-mark--xl { width: 96px; height: 96px; font-size: 32px; box-shadow: var(--shadow-float); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.brand-name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) {
	.hdr-actions:has(.city-chip) .lang-toggle { display: none; }
}
.brand-name .l-gu { font-size: 17px; }
.brand-tag { font-size: 10px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-nav { display: none; }
.hdr-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-get, .hdr-search { display: none; }
.hdr-back { margin-right: 2px; }

.city-chip {
	display: inline-flex; align-items: center; gap: 4px; max-width: 132px;
	padding: 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
	font-size: 12px; font-weight: 500;
}
.city-chip .ic { color: var(--gold); font-size: 14px; }
.city-chip .city-chip-caret { color: var(--bronze); font-size: 12px; }
.city-chip-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-chip.is-set { border-color: var(--gold); background: #FFFBF2; }

.lang-toggle { display: inline-flex; border-radius: 999px; background: var(--gold-tint); padding: 3px; font-size: 11.5px; font-weight: 600; }
.lang-opt { padding: 4px 8px; border-radius: 999px; line-height: 1.2; }
.lang-opt--gu { font-family: var(--font-gu); font-size: 13px; line-height: 1; padding-top: 5px; }

/* ─── Section head system (gold overline + title + see all) ─────────── */
.section { margin-top: 30px; }
.section--browse { margin-top: 24px; }
.shead { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.shead-text { flex: 1; min-width: 0; }
.shead-title { font-size: 18px; line-height: 1.35; font-weight: 600; margin-top: 2px; }
.shead-see { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); padding-bottom: 3px; white-space: nowrap; }
.shead-see:hover { color: var(--gold-deep); }

/* ─── Home top: banner + app pitch ──────────────────────────────────── */
.home-top { display: grid; gap: 16px; padding-top: 14px; }
.banner { position: relative; min-width: 0; }
.banner-track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	border-radius: var(--r-lg); background: var(--gold-tint);
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16 / 9; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dot { width: 6px; height: 6px; border-radius: 3px; background: var(--muted-fill); transition: width .25s ease, background-color .25s ease; }
.dot.is-active { width: 20px; background: var(--ink); }
.hero-app { display: none; }

/* ─── Rails (horizontal carousels) ──────────────────────────────────── */
.rail {
	display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
	padding-block: 6px 10px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.wrap-rail { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.rail > .ec { flex: 0 0 42vw; max-width: 210px; scroll-snap-align: start; }

/* ─── Event card (EventCard.tsx) ────────────────────────────────────── */
.ec {
	position: relative; display: flex; background: var(--surface);
	border: 1px solid var(--card-line); border-radius: var(--r-md); overflow: hidden;
	box-shadow: var(--shadow-card); transition: transform .15s ease, box-shadow .15s ease;
}
.ec:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.ec.is-expired { opacity: .55; }
.ec--poster { flex-direction: column; }
.ec-media, .ec-thumb { position: relative; background: var(--gold-tint); overflow: hidden; }
.ec-media { aspect-ratio: 3 / 4; }
.ec-media img, .ec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ec-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #C9B896; font-size: 34px; }
.ec-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; min-height: 132px; }
.ec-title {
	font-weight: 500; font-size: 13.5px; line-height: 1.4; color: var(--ink);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ec-status { font-size: 10.5px; line-height: 1.4; font-weight: 600; color: var(--urgent); }
.ec-status:empty { display: none; }
.ec-status.is-today { color: var(--success); }
.ec-meta { display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.ec-row { display: flex; align-items: center; gap: 5px; font-size: 11.5px; line-height: 1.4; color: var(--ink-soft); min-width: 0; }
.ec-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-row-top { align-items: flex-start; }
.ec-row-top > span { white-space: normal; }
.ec-row .ic { color: var(--bronze); font-size: 12px; }
.ec-row-top .ic { margin-top: 2px; }
.ec--list { min-height: 132px; }
.ec-thumb { flex: 0 0 32%; max-width: 150px; }
.ec-thumb img { position: absolute; inset: 0; }
.ec-info { flex: 1; min-width: 0; padding: 12px; display: flex; flex-direction: column; }
.ec-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; min-height: 18px; }
.ec-top:empty { display: none; }
.ec--list .ec-title { font-size: 14px; margin-bottom: 2px; }
.ec--list .ec-meta { margin-top: 4px; gap: 5px; }
.ec--list .ec-status { font-size: 11px; flex: none; }
.chip {
	display: inline-flex; align-items: center; gap: 4px; max-width: 160px;
	background: var(--gold-tint); color: var(--ink); border-radius: 8px;
	padding: 2px 8px; font-size: 10.5px; font-weight: 500; line-height: 1.5;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip--link { font-size: 12px; padding: 5px 12px; border-radius: 999px; max-width: none; }
.chip--link:hover { background: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--center { justify-content: center; margin-top: 14px; }
.badge-feat {
	position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px;
	background: var(--gold-soft); color: var(--ink); border-radius: 9px; padding: 3px 8px;
	font-size: 10px; font-weight: 600; box-shadow: 0 2px 4px rgba(36, 30, 21, .25);
}
.badge-feat .ic { font-size: 10px; }
.badge-ended {
	display: none; position: absolute; top: 8px; right: 8px;
	background: rgba(0, 0, 0, .55); color: #fff; border-radius: 9px; padding: 3px 8px; font-size: 10px; font-weight: 500;
}
.ec.is-expired .badge-ended { display: inline-block; }
.ec--list .badge-ended { left: 8px; right: auto; }
.ec--list.is-featured .badge-feat { font-size: 9px; padding: 2px 6px; }

.list-grid { display: grid; gap: 12px; }
.js-paged .is-more { display: none; }
.js-paged.is-open .is-more { display: flex; }
.more-link { display: block; text-align: center; margin-top: 12px; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.more-link:hover { color: var(--gold-deep); }
.section .btn-tint.btn-block { margin-top: 12px; }

/* Social / Religious tabs */
.type-tabs { display: flex; gap: 10px; padding-bottom: 14px; }
.type-tab {
	flex: 1; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
	font-size: 13px; font-weight: 500; color: #5C523E;
}
.type-tab .ic { font-size: 16px; }
.type-tab.is-active { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); font-weight: 600; }

/* Round browse grid (categories / organisations) */
.round-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 78px; gap: 18px 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.round-grid::-webkit-scrollbar { display: none; }
.round-grid--2 { grid-template-rows: auto auto; }
.round { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.round-img {
	width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--gold-tint);
	display: grid; place-items: center; transition: transform .15s ease;
}
.round:hover .round-img { transform: scale(1.05); }
.round-img img { width: 100%; height: 100%; object-fit: cover; }
.round--bare .round-img img { width: 62%; height: 62%; object-fit: contain; }
.round-img--lg { width: 64px; height: 64px; flex: none; }
.round-initial { font-weight: 600; font-size: 20px; color: var(--gold); }
.round-img:has(.round-initial) { background: var(--cream); border: 1.5px solid var(--line); }
.round-label {
	font-size: 10.5px; line-height: 1.3; font-weight: 500;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Promo + CTA cards */
.promo {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	margin-top: 26px; padding: 14px 16px; border-radius: var(--r-lg);
	background: linear-gradient(135deg, #FFFDF8, #FBF3E1); border: 1px solid #EFDFB8;
}
.promo-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; font-size: 20px; flex: none; }
.promo-text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.promo-text strong { font-size: 14px; font-weight: 600; }
.promo-text > span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.cta-card {
	margin-top: 30px; background: var(--surface); border-radius: var(--r-lg); padding: 20px;
	box-shadow: var(--shadow-lift); display: grid; gap: 14px;
}
.cta-title { font-size: 18px; line-height: 1.4; font-weight: 600; margin-top: 4px; text-wrap: balance; }
.cta-body { font-size: 13px; color: var(--ink-soft); margin-top: 6px; max-width: 58ch; }
.nudge { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 16px; }
.empty-ic { font-size: 42px; color: var(--muted-fill); }
.empty-t { font-weight: 500; font-size: 14.5px; color: var(--ink-soft); }
.empty-s { font-size: 12.5px; color: var(--bronze); }
.empty--page { padding: 70px 16px; }
.empty--page .empty-t { font-size: 20px; color: var(--ink); font-weight: 600; }
.empty--page .btn { margin-top: 12px; }

.card { background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: 20px; margin-top: 16px; }
.hint { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--bronze); }
.hint .ic { margin-top: 2px; color: var(--gold); }

/* ─── Events list toolbar + filters ─────────────────────────────────── */
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.toolbar .count { margin-left: auto; }
.tool-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500;
}
.tool-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.tool-count { min-width: 17px; height: 17px; border-radius: 9px; background: var(--cream); color: var(--ink); font-size: 10px; font-weight: 600; display: inline-grid; place-items: center; padding: 0 4px; }
.sort { position: relative; }
.sort-menu {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 220px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
	box-shadow: 0 8px 24px rgba(36, 30, 21, .12); padding: 6px;
}
.sort-opt { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.sort-opt:hover { background: var(--bg); }
.sort-opt.is-active { background: var(--gold-tint); font-weight: 600; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.fchip {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500;
}
.fchip.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.fchip .ic { font-size: 13px; }

/* ─── Sheets, drawer, modal, lightbox, toast ────────────────────────── */
.sheet, .modal, .drawer { position: fixed; inset: 0; z-index: 200; }
.sheet-backdrop, .modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(36, 30, 21, .45); animation: fade .2s ease; }
.sheet-panel {
	position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto;
	background: var(--bg); border-radius: 22px 22px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
	animation: up .25s cubic-bezier(.2, .8, .2, 1);
}
.sheet-grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--muted-fill); margin: 0 auto 14px; }
.sheet-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.sheet-label { font-size: 13px; font-weight: 600; margin: 16px 0 10px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 22px; }
.sheet-actions .btn { flex: 1; }
.sheet-panel--app { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sheet-panel--app .sheet-title { margin: 6px 0 0; }
.sheet-body { color: var(--ink-soft); font-size: 13.5px; max-width: 36ch; margin-bottom: 8px; }
.city-list { display: grid; gap: 6px; }
.city-opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.city-opt .ic { color: var(--gold); font-size: 17px; }
.city-opt span { flex: 1; }
.city-check { visibility: hidden; }
.city-opt.is-active { border-color: var(--ink); }
.city-opt.is-active .city-check { visibility: visible; color: var(--ink); }

.drawer-panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); overflow-y: auto;
	background: var(--bg); padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
	display: flex; flex-direction: column; animation: slide .25s cubic-bezier(.2, .8, .2, 1);
	box-shadow: -8px 0 30px rgba(36, 30, 21, .2);
}
.drawer-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-head .brand-text { flex: 1; }
.drawer-nav { display: flex; flex-direction: column; padding: 10px 0; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 6px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 14px; }
.drawer-nav a > .ic:first-child { font-size: 20px; color: var(--ink); }
.drawer-nav a span:not(.pill-app) { flex: 1; }
.drawer-chev { color: var(--bronze); }
.pill-app { font-size: 9.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--ink); color: var(--gold-soft); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.pill-app .l-gu { text-transform: none; letter-spacing: 0; font-size: 11px; }
.drawer-label { font-size: 12px; font-weight: 600; color: var(--bronze); margin: 14px 0 8px; }
.seg { display: flex; background: var(--gold-tint); border-radius: 12px; padding: 4px; gap: 4px; }
.seg-btn { flex: 1; padding: 9px 10px; border-radius: 9px; font-weight: 500; font-size: 13px; }
.seg-btn.is-active { background: var(--ink); color: var(--cream); }
.drawer-app { margin-top: 18px; background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: 18px; }
.drawer-app-ic { font-size: 26px; color: var(--gold-soft); }
.drawer-app-t { font-weight: 600; font-size: 16px; margin-top: 6px; }
.drawer-app-b { font-size: 12.5px; opacity: .8; margin: 4px 0 14px; }
.drawer-foot { margin-top: auto; padding-top: 18px; text-align: center; font-size: 11px; color: var(--bronze); }

.modal { display: grid; place-items: end center; }
.modal-card {
	position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
	background: var(--bg); border-radius: 24px 24px 0 0; padding: 26px 22px calc(18px + env(safe-area-inset-bottom));
	text-align: center; animation: up .25s cubic-bezier(.2, .8, .2, 1);
}
.modal-x { position: absolute; top: 14px; right: 14px; }
.gate-badge { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--ink); margin-bottom: 12px; box-shadow: var(--shadow-float); }
.gate-badge .brand-mark { width: 44px; height: 44px; background: transparent; color: var(--gold-soft); font-size: 18px; }
.gate-title { font-size: 21px; font-weight: 600; margin: 4px 0 6px; }
.gate-msg { display: none; color: var(--ink-soft); font-size: 13.5px; margin: 0 auto 14px; max-width: 34ch; }
.modal[data-reason="call"] .gate-msg[data-reason="call"],
.modal[data-reason="map"] .gate-msg[data-reason="map"],
.modal[data-reason="attend"] .gate-msg[data-reason="attend"],
.modal[data-reason="pdf"] .gate-msg[data-reason="pdf"],
.modal[data-reason="generic"] .gate-msg[data-reason="generic"] { display: block; }
.modal[data-hard] .js-gate-web { display: none; }
.ticks { list-style: none; display: grid; gap: 8px; text-align: left; margin: 0 auto 18px; max-width: 300px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.ticks .ic { color: var(--success); font-size: 18px; }
.ticks--sm li { font-size: 12.5px; }
.hero-app .ticks { margin-left: 0; }
.gate-qr { display: none; }
.gate-ios { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--bronze); margin-top: 10px; }
.modal .js-gate-web { margin-top: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15, 12, 8, .94); display: grid; place-items: center; animation: fade .2s ease; }
.lightbox-img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox .icon-btn { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; }
.lightbox-x { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 12px; }

.toast {
	position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 400;
	background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow-float);
}

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }

/* ─── Mobile tab bar (the app's floating bar) ───────────────────────── */
.tabbar { display: none; }
.has-tabbar .tabbar {
	display: block; position: fixed; left: 16px; right: 16px; z-index: 60;
	bottom: calc(12px + env(safe-area-inset-bottom));
}
.tabbar-inner {
	display: flex; height: var(--tabbar-h); border-radius: 32px; background: var(--ink);
	box-shadow: 0 4px 16px rgba(36, 30, 21, .22); max-width: 520px; margin: 0 auto;
}
.tab {
	flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	color: var(--cream); opacity: .75; font-size: 9.5px; line-height: 1.2; font-weight: 400;
}
.tab .ic { font-size: 22px; }
.tab .l-gu { font-size: 10.5px; }
.tab.is-active { color: var(--gold); opacity: 1; font-weight: 500; }
.has-tabbar .ftr { padding-bottom: calc(var(--tabbar-h) + 36px + env(safe-area-inset-bottom)); }

/* ─── Event detail (EventDetailScreen.tsx) ──────────────────────────── */
.detail { padding-top: 14px; }
.detail-grid { display: grid; gap: 18px; }
.poster {
	position: relative; display: block; width: 100%; border-radius: var(--r-lg); overflow: hidden;
	background: var(--gold-tint); box-shadow: var(--shadow-lift); aspect-ratio: 3 / 4;
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster--empty { display: grid; place-items: center; color: #C9B896; font-size: 48px; }
.poster-zoom { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; font-size: 14px; }
.poster .badge-feat { top: 12px; left: 12px; font-size: 11px; padding: 4px 10px; }
.detail-app-card { display: none; }
.detail-title { font-size: 22px; line-height: 1.35; font-weight: 600; margin-top: 12px; text-wrap: balance; }
.detail-status { display: inline-block; margin-top: 6px; font-size: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fact {
	display: inline-flex; align-items: flex-start; gap: 8px; padding: 9px 12px;
	background: var(--surface); border: 1px solid var(--card-line); border-radius: 12px; font-size: 13px; font-weight: 500;
}
.fact .ic { color: var(--bronze); font-size: 16px; margin-top: 1px; }
.fact--wide { flex-basis: 100%; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-actions .btn { flex: 1 1 auto; }
.detail-actions .btn-ink, .detail-actions .js-share { display: none; }
.is-android-only { display: none !important; }
.is-android .is-android-only { display: inline-flex !important; }
.dsec { padding: 20px 0 4px; margin-top: 18px; border-top: 1px solid var(--line); }
.dsec-t { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.dsec-t .ic { color: var(--gold); }
.desc { font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.readmore.is-clamped:not(.is-open) .desc { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rm-less, .is-open + .js-readmore .rm-more { display: none; }
.is-open + .js-readmore .rm-less { display: inline; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--card-line); }
.file-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.file-row small { color: var(--bronze); font-size: 12px; }
.file-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-tint); color: var(--gold-deep); display: grid; place-items: center; font-size: 20px; }
.file-chev { color: var(--bronze); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-item { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--gold-tint); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.map { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--gold-tint); border: 1px solid var(--card-line); }
.map iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; }
.map-btn {
	display: inline-flex; align-items: center; gap: 6px; margin: 12px;
	background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 600; padding: 9px 14px; border-radius: 999px;
}
.map iframe + .map-btn { position: absolute; right: 0; bottom: 0; box-shadow: var(--shadow-float); }
.org-row, .dir-row {
	display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px;
	background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--r-md);
	transition: border-color .15s ease;
}
.org-row:hover, .dir-row:hover { border-color: var(--gold); }
.org-row-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.org-row-body strong { font-weight: 500; font-size: 14.5px; }
.org-row-body small { color: var(--bronze); font-size: 12px; }
.org-row-chev, .dir-chev { color: var(--bronze); flex: none; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--gold-tint); flex: none; }
.avatar--initial { display: grid; place-items: center; background: var(--cream); border: 1.5px solid var(--line); color: var(--gold); font-weight: 600; font-size: 18px; }
.avatar--xl { width: 68px; height: 68px; font-size: 26px; }

/* Contact rows (event contacts + organisation people) */
.contact {
	display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px;
	background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--r-md);
}
.contact-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.contact-label { font-size: 10.5px; font-weight: 600; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .08em; }
.contact-label:has(.l-gu), .contact-label { line-height: 1.5; }
.contact-name { font-weight: 500; font-size: 14.5px; }
.contact-num { font-size: 12.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; text-align: left; }
.contact-tap { color: var(--gold-deep); font-size: 11px; font-weight: 600; margin-left: 4px; }
.is-revealed .contact-tap { display: none; }
.contact-actions { display: flex; gap: 8px; flex: none; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; }
.round-btn--call { background: var(--ink); color: var(--bg); font-size: 17px; }
.round-btn--wa { background: var(--wa-tint); color: var(--wa-deep); }
.section--similar { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.rail--flush { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }

.actionbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(250, 246, 239, .96); border-top: 1px solid var(--line);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.actionbar .btn-ink { flex: 1; }
.actionbar .btn-wa { width: 52px; padding: 0; font-size: 22px; }
.sc-v-event .ftr { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

/* ─── Calendar ──────────────────────────────────────────────────────── */
.cal-layout { display: grid; gap: 18px; }
.cal-card { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--card-line); padding: 14px; box-shadow: var(--shadow-card); align-self: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-month { font-weight: 600; font-size: 17px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-dow span { font-size: 11.5px; font-weight: 600; color: var(--bronze); padding: 6px 0; }
.cal-grid { gap: 4px 0; }
.cal-day-btn {
	position: relative; justify-self: center; width: 42px; height: 42px; border-radius: 12px;
	display: grid; place-items: center; font-size: 14px; font-variant-numeric: tabular-nums;
}
.cal-day-btn:hover { background: var(--bg); }
.cal-day-btn.is-out { visibility: hidden; }
.cal-day-btn.is-today { border: 1.5px solid var(--gold); font-weight: 600; color: var(--gold-deep); }
.cal-day-btn.is-sel { background: var(--ink); color: var(--cream); font-weight: 600; border-color: var(--ink); }
.cal-day-btn.is-past { color: #B9AE95; }
.cal-n {
	position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
	background: var(--gold); color: #fff; font-size: 9.5px; font-weight: 600; display: grid; place-items: center;
}
.cal-day-btn.is-sel .cal-n { background: var(--gold-soft); color: var(--ink); }
.cal-day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-day-count { font-weight: 600; font-size: 17px; }
.cal-type { margin-bottom: 16px; }
.cal-type-t { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; margin-bottom: 10px; color: var(--ink-soft); }
.cal-type-t .ic { color: var(--gold); }

/* ─── Directory ─────────────────────────────────────────────────────── */
.searchbar {
	display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--r-md); padding: 6px 6px 6px 14px; margin-bottom: 16px;
}
.searchbar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 60, .15); }
.searchbar > .ic { color: var(--bronze); font-size: 18px; }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; padding: 8px 0; color: var(--ink); }
.searchbar--flat { padding-right: 14px; margin-bottom: 10px; }
.dir-tools { margin-bottom: 14px; }
.dir-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dir-filters .seg { flex: 1 1 260px; }
.seg--sm .seg-btn { padding: 7px 8px; font-size: 12.5px; }
.select { position: relative; display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; flex: 1 1 180px; }
.select .ic:first-child { color: var(--gold); }
.select .ic:last-child { color: var(--bronze); pointer-events: none; }
.select select { flex: 1; appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 500; padding: 10px 0; color: var(--ink); outline: 0; }
.dir-list { display: grid; gap: 0 12px; }
.dir-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dir-body strong { font-weight: 500; font-size: 14.5px; line-height: 1.35; }
.dir-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--bronze); }
.dir-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.dir-ev { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--gold-deep); background: var(--gold-tint); border-radius: 999px; padding: 3px 9px; flex: none; }

/* ─── Organisation profile ──────────────────────────────────────────── */
.org-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.org-name { font-size: 21px; line-height: 1.35; font-weight: 600; text-wrap: balance; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--bronze); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.utabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 18px; position: sticky; top: 60px; background: var(--bg); z-index: 20; }
.utab { flex: 1; padding: 12px 6px; font-weight: 500; font-size: 14px; color: var(--bronze); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.utab.is-active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.utab-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gold-tint); font-size: 10.5px; font-weight: 600; padding: 0 5px; margin-left: 2px; }
.prose { font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.prose > * + * { margin-top: .8em; }
.prose h1, .prose h2, .prose h3 { color: var(--ink); line-height: 1.4; font-weight: 600; }
.prose h1 { font-size: 20px; } .prose h2 { font-size: 17px; } .prose h3 { font-size: 15px; }
.prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose strong { color: var(--ink); }
.info-list { display: grid; gap: 10px; margin: 18px 0; }
.info { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--card-line); }
.info > .ic { color: var(--gold); font-size: 18px; margin-top: 2px; }
.info small { display: block; font-size: 11px; color: var(--bronze); font-weight: 500; }
.info span { font-size: 14px; }
.people-sec + .people-sec { margin-top: 18px; }
.past { margin-top: 22px; }
.past summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }
.past summary::-webkit-details-marker { display: none; }
.past[open] summary .ic { transform: rotate(180deg); }

/* ─── About ─────────────────────────────────────────────────────────── */
.about-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 0 8px; }
.about-name { font-size: 26px; font-weight: 600; margin-top: 16px; }
.about-gu { font-family: var(--font-gu); font-size: 20px; color: var(--bronze); font-weight: 600; }
.about-tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.about-tag .l-gu { letter-spacing: .02em; font-size: 13px; }
.about-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--bronze); }
.card--app { background: var(--ink); color: var(--cream); border: 0; }
.card--app .cta-body { color: rgba(246, 235, 209, .78); }
.card--app .store { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: var(--cream); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store {
	display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; min-height: 52px;
	border-radius: 14px; background: var(--ink); color: var(--cream); border: 1px solid var(--ink);
}
.store .ic { font-size: 26px; }
.store--android .ic { color: #3DDC84; }
.store span { display: flex; flex-direction: column; line-height: 1.25; }
.store small { font-size: 10.5px; opacity: .75; }
.store strong { font-size: 14px; font-weight: 600; }
.store.is-soon { background: transparent; color: var(--bronze); border: 1px dashed #D9CCAE; cursor: default; }
.store.is-soon .ic { color: var(--bronze); }

/* ─── Locked (My events) ────────────────────────────────────────────── */
.locked { position: relative; border-radius: var(--r-xl); overflow: hidden; }
.locked-preview { display: grid; gap: 12px; filter: blur(3px) grayscale(.2); opacity: .55; pointer-events: none; padding: 4px; }
.locked-over {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	padding: 24px; background: linear-gradient(180deg, rgba(250, 246, 239, .55), rgba(250, 246, 239, .96) 45%);
}
.locked-over .btn { max-width: 320px; margin-top: 16px; }
.locked-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; font-size: 26px; margin-bottom: 10px; }

/* ─── Get the app page ──────────────────────────────────────────────── */
.app-hero { background: radial-gradient(120% 90% at 85% 10%, #3A2F1F 0%, var(--ink) 55%); color: var(--cream); overflow: hidden; }
.app-hero-inner { display: grid; gap: 34px; padding-block: 34px 44px; align-items: center; }
.app-hero-t { font-size: 30px; line-height: 1.25; font-weight: 600; margin-top: 8px; text-wrap: balance; color: #FFF8E8; }
.app-hero-t .l-gu { font-size: 32px; line-height: 1.3; }
.app-hero-b { margin-top: 12px; font-size: 15px; color: rgba(246, 235, 209, .8); max-width: 46ch; }
.app-cta { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.app-cta-note, .app-ios { font-size: 12px; color: rgba(246, 235, 209, .7); }
.app-cta-note .ic, .app-ios .ic { margin-right: 6px; vertical-align: -2px; }
.app-cta-note .ic { color: #7FD08D; }
.app-ios a { color: var(--gold-soft); text-decoration: underline; }
.app-qr { display: none; }
.qr { background: #fff; padding: 10px; border-radius: 14px; width: 152px; height: 152px; }
.qr img, .qr canvas { width: 132px !important; height: 132px !important; }
.phone {
	position: relative; justify-self: center; width: 270px; aspect-ratio: 9 / 18.5; border-radius: 40px;
	background: #0E0B07; padding: 11px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 2px #3a3122;
	transform: rotate(-3deg);
}
.phone-screen { height: 100%; border-radius: 30px; background: var(--bg); overflow: hidden; position: relative; color: var(--ink); padding: 26px 12px 0; }
.ph-hdr { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.ph-name { font-family: var(--font-gu); font-weight: 600; font-size: 14px; line-height: 1.2; }
.ph-tag { font-family: var(--font-gu); font-size: 7.5px; color: var(--ink-soft); max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-city { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-gu); font-size: 8.5px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 6px; }
.ph-city .ic { color: var(--gold); }
.ph-over { font-family: var(--font-gu); color: var(--gold); font-size: 8.5px; font-weight: 600; }
.ph-title { font-family: var(--font-gu); font-weight: 600; font-size: 12px; margin-bottom: 6px; }
.ph-rail { display: flex; gap: 7px; overflow: hidden; }
.ph-card { flex: 0 0 92px; background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--card-line); }
.ph-img { aspect-ratio: 3 / 4; background: var(--gold-tint); }
.ph-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-card p { font-size: 8px; font-weight: 500; line-height: 1.3; padding: 4px 5px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-card small { display: block; font-family: var(--font-gu); font-size: 7px; color: var(--ink-soft); padding: 0 5px 5px; }
.ph-tabs { display: flex; gap: 5px; margin-top: 10px; }
.ph-tabs span { flex: 1; text-align: center; font-family: var(--font-gu); font-size: 8.5px; padding: 5px; border-radius: 7px; border: 1px solid var(--line); background: #fff; }
.ph-tabs .is-on { background: var(--ink-2); color: var(--bg); border-color: var(--ink-2); }
.ph-list { display: grid; gap: 6px; margin-top: 8px; }
.ph-list i { display: block; height: 46px; border-radius: 8px; background: #fff; border: 1px solid var(--card-line); }
.ph-tabbar { position: absolute; left: 10px; right: 10px; bottom: 12px; height: 38px; border-radius: 19px; background: var(--ink); display: flex; justify-content: space-around; align-items: center; color: var(--cream); font-size: 14px; }
.ph-tabbar .ic:first-child { color: var(--gold); }
.phone-notif {
	position: absolute; top: 58px; left: -34px; right: 20px; display: flex; gap: 8px; align-items: center;
	background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 14px; padding: 9px 11px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	transform: rotate(3deg); animation: notif 5s ease-in-out infinite;
}
.phone-notif .brand-mark { width: 28px; height: 28px; font-size: 10px; border-radius: 8px; }
.phone-notif div { display: flex; flex-direction: column; min-width: 0; font-family: var(--font-gu); line-height: 1.25; }
.phone-notif strong { font-size: 10px; }
.phone-notif span { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
@keyframes notif { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-6px); } }
.feats { display: grid; gap: 12px; }
.feat { background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: 18px; }
.feat-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--gold-tint); color: var(--gold-deep); font-size: 21px; margin-bottom: 10px; }
.feat h3 { font-size: 15px; font-weight: 600; }
.feat p { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin-bottom: 16px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); font-weight: 600; font-size: 12.5px; display: grid; place-items: center; }
.steps-card .btn { margin-top: 16px; }
.sc-v-app .ftr-app { display: none; }

/* ─── Footer ────────────────────────────────────────────────────────── */
.ftr { background: var(--ink); color: var(--cream); margin-top: 40px; padding-top: 34px; }
.ftr-inner { display: grid; gap: 26px; padding-bottom: 26px; }
.ftr-brand .brand-mark { background: var(--gold-soft); color: var(--ink); }
.ftr-name { font-weight: 600; font-size: 17px; margin-top: 10px; color: var(--gold-soft); }
.ftr-line { font-size: 12.5px; opacity: .7; }
.ftr-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: 13px; }
.ftr-links a { opacity: .85; }
.ftr-links a:hover { opacity: 1; color: var(--gold-soft); }
.ftr-app-t { font-weight: 600; font-size: 16px; margin-top: 4px; }
.ftr .store { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.ftr .store.is-soon { color: rgba(246, 235, 209, .6); border-color: rgba(246, 235, 209, .25); }
.ftr .store.is-soon .ic { color: rgba(246, 235, 209, .6); }
.ftr-copy { border-top: 1px solid rgba(246, 235, 209, .12); text-align: center; font-size: 11.5px; opacity: .6; padding: 16px var(--gutter); }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (min-width: 640px) {
	.list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.list-grid--one { grid-template-columns: 1fr; }
	.dir-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery { grid-template-columns: repeat(3, 1fr); }
	.feats { grid-template-columns: repeat(2, 1fr); }
	.modal { place-items: center; }
	.modal-card { border-radius: 24px; padding-bottom: 22px; }
	.sheet { display: grid; place-items: center; }
	.sheet-panel { position: relative; width: min(520px, 92vw); border-radius: 22px; padding-bottom: 22px; animation-name: fade; }
	.sheet-grab { display: none; }
	.cta-card { grid-template-columns: 1fr auto; align-items: center; padding: 26px 28px; }
	.cta-btn { width: auto; }
	.page-title { font-size: 26px; }
	.detail-title { font-size: 26px; }
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 900px) {
	:root { --gutter: 24px; }
	body.sc { font-size: 15px; }
	.appbar, .has-tabbar .tabbar, .actionbar { display: none; }
	.has-tabbar .ftr, .sc-v-event .ftr { padding-bottom: 0; }
	.toast { bottom: 32px; }

	.hdr-inner { min-height: 72px; gap: 20px; }
	.brand { flex: none; }
	.brand-mark { width: 42px; height: 42px; font-size: 15px; }
	.brand-name { font-size: 18px; }
	.hdr-nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
	.hdr-nav a { padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
	.hdr-nav a:hover { color: var(--ink); background: var(--gold-tint); }
	.hdr-nav a.is-active { color: var(--ink); background: var(--gold-tint); font-weight: 600; }
	.hdr-get, .hdr-search { display: inline-flex; }
	.hdr-back { display: none; }
	.city-chip { max-width: 170px; }

	.page { padding-block: 34px 44px; }
	.page-title { font-size: 30px; }
	.shead-title { font-size: 22px; }
	.section { margin-top: 44px; }

	.home-top { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); padding-top: 28px; align-items: stretch; }
	.home-top:not(:has(.banner)) { grid-template-columns: 1fr; }
	.hero-app {
		display: flex; flex-direction: column; justify-content: center;
		background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--r-lg);
		padding: 26px; box-shadow: var(--shadow-lift);
	}
	.hero-app-t { font-size: 22px; line-height: 1.35; font-weight: 600; margin: 6px 0 8px; text-wrap: balance; }
	.hero-app-b { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }

	.rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; }
	.rail > .ec { max-width: none; }
	.rail--flush { margin-inline: 0; padding-inline: 0; }
	.round-grid { display: flex; flex-wrap: wrap; gap: 22px 18px; overflow: visible; }
	.round { width: 92px; }
	.round-img { width: 72px; height: 72px; }
	.round-label { font-size: 12px; }
	.list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.list-grid--one { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.page--narrow .list-grid--one { grid-template-columns: 1fr; }
	.type-tabs { max-width: 520px; }
	.promo { padding: 18px 22px; }

	.detail { padding-top: 32px; }
	.detail-grid { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 40px; align-items: start; }
	.detail-media { position: sticky; top: 96px; }
	.detail-app-card {
		display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px;
		background: var(--ink); color: var(--cream); border-radius: var(--r-lg);
	}
	.detail-app-card .brand-mark { background: var(--gold-soft); color: var(--ink); }
	.detail-app-card > div { flex: 1; }
	.detail-app-t { font-weight: 600; font-size: 14px; }
	.detail-app-b { font-size: 11.5px; opacity: .75; }
	.detail-title { font-size: 32px; margin-top: 14px; }
	.detail-actions .btn-ink, .detail-actions .js-share { display: inline-flex; }
	.detail-actions .btn { flex: 0 0 auto; }
	.gallery { grid-template-columns: repeat(4, 1fr); }
	.section--similar .rail { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

	.cal-layout { grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: start; }
	.cal-card { position: sticky; top: 96px; padding: 18px; }
	.cal-day-btn { width: 46px; height: 46px; }
	.cal-day .list-grid--one { grid-template-columns: 1fr; }

	.dir-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; }
	.dir-tools .searchbar { margin: 0; }
	.dir-filters { margin: 0; }
	.dir-tools .count { grid-column: 1 / -1; }
	.dir-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.utabs { top: 72px; }

	.modal-card { padding: 30px 30px 24px; max-width: 460px; }
	.gate-qr { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; margin: 0 auto 14px; max-width: 320px; }
	.gate-qr .qr { width: 108px; height: 108px; padding: 6px; flex: none; }
	.gate-qr .qr img, .gate-qr .qr canvas { width: 96px !important; height: 96px !important; }
	.gate-qr p { font-size: 12.5px; color: var(--ink-soft); }

	.app-hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding-block: 64px 72px; }
	.app-hero-t { font-size: 44px; }
	.app-hero-t .l-gu { font-size: 44px; }
	.app-qr { display: flex; align-items: center; gap: 16px; margin-top: 26px; color: rgba(246, 235, 209, .75); font-size: 13px; max-width: 360px; }
	.phone { width: 300px; }
	.feats { grid-template-columns: repeat(4, 1fr); }

	.ftr-inner { grid-template-columns: 1.1fr 1.2fr 1.3fr; gap: 40px; padding-bottom: 36px; }
}

/* Laptop-narrow: keep everything on one line. */
@media (min-width: 900px) and (max-width: 1199px) {
	.hdr-inner { gap: 12px; }
	.brand-tag, .hdr-get-label { display: none; }
	.hdr-get { width: 38px; padding: 0; border-radius: 50%; }
	.hdr-nav a { padding: 8px 9px; font-size: 13px; }
	.city-chip { max-width: 130px; }
}
@media (min-width: 1200px) {
	.hdr-nav a { padding: 8px 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
