/* ==========================================================================
   CyprusBites, Public components. Requires public-tokens.css.
   Mobile-first. The one loud element per view is the match ring.
   ========================================================================== */

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

body {
	margin: 0;
	background: var(--bg-page);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: var(--act); text-decoration: none; }
a:hover { color: var(--act-hover); }
img { max-width: 100%; display: block; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--sp-4); }

/* ---- Mobile overflow safety net ----
   Three rules keep any page from panning sideways on a phone, and stop it
   recurring. Follow them for new layout:
   1. The viewport never scrolls horizontally.
   2. Long unbreakable tokens (emails, invite URLs, slugs) wrap instead of
      forcing their box wider than the screen.
   3. Every responsive grid uses minmax(min(Npx, 100%), 1fr), never a bare
      minmax(Npx, 1fr). min() caps the track at the container so a column can
      never be wider than the viewport. Grid/flex children that hold text also
      need min-width: 0 to be allowed to shrink. */
html, body { overflow-x: clip; }
body { overflow-wrap: break-word; }

/* iOS Safari zooms in on focus of any form control under 16px and stays zoomed
   after the form submits, which reads as the page "distorting" after a save.
   Force 16px on phones so it never triggers. !important beats the inline
   font-size some inputs carry; desktop keeps the smaller, denser sizing. */
@media (max-width: 640px) {
	input, select, textarea { font-size: 16px !important; }
}

.site-head {
	background: var(--bg-card);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 40;
}
.site-bar { display: flex; align-items: center; gap: var(--sp-4); height: 64px; }
.brand {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
	color: var(--ink);
	flex: none;
}
.brand em { font-style: normal; color: var(--act); }

/* Primary + utility nav. On desktop the two groups sit inline; below 1024px
   the whole nav collapses into a dropdown behind the menu button. The bar is
   capped at --page-max, so long translated (el/de/ru) labels can exceed the
   row: the primary group shrinks and scrolls rather than pushing the tools
   off the edge (where overflow-x:clip would hide them). */
.site-nav { flex: 1; display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.site-nav__primary { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav__primary::-webkit-scrollbar { display: none; }
.site-nav__utility { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; flex: none; }

.nav-link {
	display: inline-flex; align-items: center; padding: 8px 12px; white-space: nowrap;
	border-radius: var(--r-pill); color: var(--ink-soft);
	font-size: var(--fs-sm); font-weight: 500; line-height: 1;
	transition: background-color 140ms ease, color 140ms ease;
}
.nav-link:hover { background: var(--bg-dip); color: var(--ink); }
.nav-link.is-here { background: var(--act-wash); color: var(--act-hover); font-weight: 600; }

.nav-cta {
	display: inline-flex; align-items: center; padding: 9px 16px; white-space: nowrap;
	border-radius: var(--r-pill); background: var(--act); color: #fff;
	font-size: var(--fs-sm); font-weight: 600; line-height: 1;
	transition: background-color 140ms ease;
}
.nav-cta:hover { background: var(--act-hover); color: #fff; }

/* Always in the bar: search, then the menu button (menu button mobile-only). */
.site-bar__right { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.tool-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: var(--r-pill);
	background: var(--bg-dip); color: var(--ink-soft);
	border: 0; padding: 0; cursor: pointer;
	transition: background-color 140ms ease, color 140ms ease;
}
.tool-btn:hover { background: var(--act-wash); color: var(--act-hover); }
.tool-btn svg { flex: none; }
.site-burger { display: none; }

@media (max-width: 1024px) {
	.site-bar { height: 58px; }
	.site-burger { display: inline-flex; }
	.site-bar__right { margin-left: auto; }

	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--bg-card); border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-card);
		padding: var(--sp-3);
		max-height: calc(100dvh - 58px); overflow-y: auto;
		display: none;
	}
	.site-head.menu-open .site-nav { display: flex; }
	.site-nav__primary { flex-direction: column; align-items: stretch; gap: 2px; }
	.site-nav__utility {
		margin-left: 0; margin-top: var(--sp-3); padding-top: var(--sp-3);
		border-top: 1px solid var(--line); flex-wrap: wrap; gap: var(--sp-3);
	}
	.site-nav .nav-link { padding: 12px 14px; font-size: var(--fs-base); }
	.site-nav .nav-cta { justify-content: center; padding: 12px 16px; }
	/* In the dropdown the language picker is a primary control, give it real
	   touch targets instead of the tiny desktop pills. */
	.site-nav .lang-pick a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; font-size: var(--fs-sm); }
}

.gsearch { position: fixed; inset: 0; z-index: 100; background: rgba(16, 40, 44, 0.42); display: flex; justify-content: center; align-items: flex-start; }
.gsearch[hidden] { display: none; }
.gsearch__panel { width: 100%; max-width: 640px; margin: 8vh var(--sp-4) 0; background: var(--bg-card); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; max-height: 82vh; overflow: hidden; }
.gsearch__bar { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
.gsearch__icon { color: var(--ink-faint); flex: none; }
.gsearch__input { flex: 1; min-width: 0; border: none; outline: none; font: inherit; font-size: var(--fs-md); background: transparent; color: var(--ink); }
.gsearch__close { flex: none; border: none; background: transparent; color: var(--ink-faint); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 6px; }
.gsearch__close:hover { color: var(--ink); }
.gsearch__results { overflow-y: auto; padding: var(--sp-1) 0 var(--sp-3); }
.gsearch__hint, .gsearch__empty { color: var(--ink-faint); font-size: var(--fs-sm); padding: var(--sp-5) var(--sp-4); text-align: center; }
.gsearch-group__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); padding: var(--sp-3) var(--sp-4) var(--sp-1); }
.gsearch-item { display: flex; align-items: center; gap: var(--sp-3); padding: 10px var(--sp-4); color: var(--ink); min-width: 0; }
.gsearch-item:hover, .gsearch-item.is-active { background: var(--bg-dip); }
.gsearch-item__thumb { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--act-wash); flex: none; display: flex; align-items: center; justify-content: center; color: var(--act); overflow: hidden; }
.gsearch-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gsearch-item__text { min-width: 0; flex: 1; }
.gsearch-item__label { font-weight: 600; font-size: var(--fs-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsearch-item__sub { color: var(--ink-faint); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.gsearch-open { overflow: hidden; }
@media (max-width: 560px) {
	.gsearch__panel { max-width: none; margin: 0; height: 100%; max-height: 100%; border-radius: 0; }
}

/* ---- Hero (ink band) ---- */
.hero {
	background: var(--bg-ink);
	color: var(--ink-on-dark);
	padding: var(--sp-14) 0 var(--sp-10);
}
.hero h1 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: var(--fs-hero);
	line-height: 1.04;
	letter-spacing: -0.025em;
	max-width: 15ch;
}
.hero .lead { color: var(--ink-on-dark-soft); font-size: var(--fs-md); margin-top: var(--sp-4); max-width: 46ch; }

/* ---- Mood deck (chips) ---- */
.mood-deck { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.mood-chip {
	display: inline-flex; align-items: center; gap: var(--sp-2);
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: var(--ink-on-dark);
	border-radius: var(--r-pill);
	padding: 9px 16px;
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: 600;
	cursor: pointer;
	transition: background-color 140ms ease, transform 140ms ease;
}
.mood-chip:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); color: var(--ink-on-dark); }
.mood-chip.on-light { background: var(--bg-card); border-color: var(--line-strong); color: var(--ink); }
.mood-chip.on-light:hover { border-color: var(--act); color: var(--act-hover); }
.mood-chip.is-active { background: var(--act); border-color: var(--act); color: #fff; }

/* ---- Sections ---- */
.section { padding: var(--sp-10) 0; }
.section-head { display: flex; align-items: baseline; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); letter-spacing: -0.015em; }
.section-head .more { margin-left: auto; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.section-sub { color: var(--ink-faint); font-size: var(--fs-sm); margin-top: -var(--sp-4); }

/* Category sub-headings inside the profile "what's nearby" block */
.near-head { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); letter-spacing: -0.01em; color: var(--ink); margin: 0 0 var(--sp-4); }
.near-head + .card-grid { margin-bottom: var(--sp-8); }

/* ---- Result cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: var(--sp-4); }
.r-card {
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	display: flex; flex-direction: column;
	transition: transform 140ms ease, box-shadow 140ms ease;
}
.r-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.r-card .photo { height: 168px; background: var(--bg-dip); position: relative; }
.r-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.r-card .photo .flag {
	position: absolute; top: var(--sp-3); left: var(--sp-3);
	background: var(--sun); color: var(--petrol-950);
	font-size: var(--fs-xs); font-weight: 700;
	border-radius: var(--r-pill); padding: 3px 10px;
}
.r-card .body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.r-card .name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.01em; color: var(--ink); }
.r-card .meta { color: var(--ink-faint); font-size: var(--fs-sm); }
.r-card .meta .open { color: var(--good-600); font-weight: 600; }
.r-card .meta .closed { color: var(--ink-faint); }

/* DNA stamps */
.dna { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.stamp {
	background: var(--bg-dip);
	color: var(--ink-soft);
	border-radius: var(--r-sm);
	padding: 2px 8px;
	font-size: var(--fs-xs);
	font-weight: 600;
}
.stamp.hit { background: var(--act-wash); color: var(--act-hover); }
.stamp.gem { background: var(--sun-wash); color: var(--warn-600); }

/* ---- Match ring (the signature) ---- */
/* The arc colour is set inline per venue by RecommendationEngine::matchColor,
   a red-to-amber-to-green ramp that reads the strength of the fit. The token
   here is only the fallback if that inline value is ever missing. */
.match-row { display: flex; gap: var(--sp-3); align-items: flex-start; }
.match-block { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); flex: none; }
.ring { width: 56px; height: 56px; flex: none; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--wash-200); }
.ring .arc { stroke: var(--match); stroke-linecap: round; transition: stroke-dashoffset 500ms ease; }
.ring .pct {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--ink);
}
/* "Your match" with a tap-to-open plain-language explanation of the score. */
.match-info { font-size: var(--fs-xs); color: var(--ink-faint); text-align: center; max-width: 22ch; }
.match-info > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink-soft); }
.match-info > summary::-webkit-details-marker { display: none; }
.match-info__q { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 10px; line-height: 1; color: var(--ink-faint); }
.match-info[open] > summary { color: var(--act); }
.match-info[open] .match-info__q { border-color: var(--act); color: var(--act); }
.match-info p { margin: var(--sp-2) 0 0; line-height: 1.45; }
.reasons { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-sm); color: var(--ink-soft); }
.reasons li { list-style: none; }
.reasons { margin: 0; padding: 0; }
.reasons li::before { content: "- "; color: var(--ink-faint); }

/* ---- Surprise-me pick banner (shown on the landing profile) ---- */
.surprise-note {
	display: flex; align-items: center; gap: var(--sp-3);
	background: var(--sun-wash); border: 1px solid var(--sun);
	border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-4);
	margin-bottom: var(--sp-5);
}
.surprise-note__ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-card); color: var(--warn-600); }
.surprise-note__body { flex: 1; min-width: 0; }
.surprise-note__body b { font-family: var(--font-display); }
.surprise-note__body p { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.surprise-note__why { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-2); }
.surprise-note > .btn { flex: none; }
@media (max-width: 560px) {
	.surprise-note { flex-wrap: wrap; }
	.surprise-note > .btn { width: 100%; }
}

/* ---- Live "busy now" chip (grounded in the venue's recent visit pattern) ---- */
.busy-now { display: inline-flex; align-items: center; gap: 7px; margin-top: var(--sp-3); padding: 5px 12px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; }
.busy-now__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; animation: busyPulse 2.4s ease-in-out infinite; }
.busy-now--busy { background: var(--sun-wash); color: var(--warn-600); }
.busy-now--busy .busy-now__dot { background: var(--sun); }
.busy-now--steady { background: var(--wash-100); color: var(--ink-soft); }
.busy-now--steady .busy-now__dot { background: var(--ink-faint); }
.busy-now--quiet { background: var(--act-wash); color: var(--act-hover); }
.busy-now--quiet .busy-now__dot { background: var(--act); }
@keyframes busyPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .busy-now__dot { animation: none; } }

/* ---- Local-vs-Tourist Favourite Index meter (grounded in the visitor mix) ---- */
.crowd-index__headline { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-md); margin: 0 0 var(--sp-3); }
.crowd-index--local { color: var(--act-hover); }
.crowd-index--tourist { color: var(--warn-600); }
.crowd-index--even { color: var(--ink-soft); }
.crowd-bar { height: 12px; border-radius: var(--r-pill); background: var(--sun-wash); overflow: hidden; }
.crowd-bar__fill { display: block; height: 100%; background: var(--act); border-radius: var(--r-pill); transition: width 500ms ease; }
.crowd-bar__ends { display: flex; justify-content: space-between; margin-top: var(--sp-2); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); }
.crowd-index__note { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); color: var(--ink-faint); }

/* ---- Buttons ---- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
	font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm);
	border-radius: var(--r-pill); border: 1px solid transparent;
	padding: 10px 20px; cursor: pointer; line-height: 1;
	transition: background-color 140ms ease, border-color 140ms ease;
}
.btn-act { background: var(--act); color: #fff; }
.btn-act:hover { background: var(--act-hover); color: #fff; }
.btn-line { background: var(--bg-card); border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--act); color: var(--act-hover); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--bg-dip); color: var(--ink); }
.btn-lg { padding: 13px 26px; font-size: var(--fs-base); }

/* ---- Desktop notifications opt-in (owner settings) ---- */
.push-box {
	margin-top: var(--sp-5);
	padding: var(--sp-4);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-lg);
	background: var(--bg-dip);
}
.push-head { display: flex; gap: var(--sp-3); align-items: flex-start; }
.push-ico {
	flex: none; width: 38px; height: 38px; border-radius: var(--r-md);
	display: flex; align-items: center; justify-content: center;
	background: var(--act-wash); color: var(--act); font-size: 20px;
}
.push-copy { min-width: 0; }
.push-title { display: block; font-size: var(--fs-base); }
.push-desc { margin: 4px 0 0; color: var(--ink-faint); font-size: var(--fs-sm); line-height: 1.45; }
.push-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.push-toggle { flex: none; }
.push-status { font-size: var(--fs-sm); color: var(--ink-faint); }
.push-status[data-tone="on"] { color: var(--act-hover); font-weight: 600; }
.push-status[data-tone="warn"] { color: var(--warn-600); }

/* ---- Autosave status (owner inline single-field edits) ---- */
.autosave-status { font-size: var(--fs-xs); font-weight: 600; }
.autosave-status:empty { display: none; }
.autosave-status[data-tone="muted"] { color: var(--ink-faint); font-weight: 500; }
.autosave-status[data-tone="ok"] { color: var(--act-hover); }
.autosave-status[data-tone="warn"] { color: var(--warn-600); }

/* ---- Portal nav (owner + member self-service bar; on every portal page) ---- */
.portal-nav {
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-card);
	padding: var(--sp-3);
	margin-bottom: var(--sp-6);
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}
.portal-nav__scan {
	display: flex; align-items: center; gap: var(--sp-3);
	background: var(--act); color: #fff;
	border-radius: var(--r-md);
	padding: var(--sp-3) var(--sp-4);
	min-height: 56px;
	transition: background-color 140ms ease;
}
.portal-nav__scan:hover { background: var(--act-hover); color: #fff; }
.portal-nav__scan .ico { font-size: 1.7rem; line-height: 1; }
.portal-nav__scan b { font-size: var(--fs-base); font-weight: 700; }
.portal-nav__scan .sub { display: block; font-size: var(--fs-xs); font-weight: 500; opacity: 0.85; margin-top: 1px; }
.portal-nav__tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.portal-tab {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px; padding: 0 14px;
	border-radius: var(--r-pill);
	background: var(--bg-dip); color: var(--ink);
	font-weight: 600; font-size: var(--fs-sm);
	border: 1px solid transparent;
	transition: background-color 140ms ease, color 140ms ease;
}
.portal-tab .ico { font-size: 1rem; line-height: 1; }
.portal-tab:hover { background: var(--act-wash); color: var(--act-hover); }
.portal-tab.is-here { background: var(--act); color: #fff; }
.portal-tab.is-here:hover { background: var(--act-hover); color: #fff; }
.portal-tab--exit { margin-left: auto; background: transparent; color: var(--ink-faint); }
.portal-tab--exit:hover { background: #FBE8E6; color: var(--bad-600); }
@media (max-width: 560px) {
	.portal-tab { flex: 1 1 auto; justify-content: center; }
	.portal-tab--exit { flex-basis: 100%; margin-left: 0; }
}

/* ---- Filters bar (directory) ---- */
.filter-rail {
	display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center;
	padding: var(--sp-4) 0;
}
.filter-rail select, .filter-rail input[type="search"] {
	font: inherit; font-size: var(--fs-sm);
	border: 1px solid var(--line-strong); border-radius: var(--r-pill);
	background: var(--bg-card); color: var(--ink);
	padding: 8px 14px;
}
.filter-rail select:focus, .filter-rail input:focus { outline: none; border-color: var(--act); box-shadow: var(--ring); }

/* ---- Profile page ---- */
.profile-hero { background: var(--bg-card); border-bottom: 1px solid var(--line); padding: var(--sp-8) 0; }
.profile-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: -0.02em; }
.profile-hero .sub { color: var(--ink-faint); margin-top: var(--sp-2); }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: var(--sp-2); margin-top: var(--sp-5); }
.photo-strip img { border-radius: var(--r-md); height: 130px; width: 100%; object-fit: cover; }
.profile-cols { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-6); align-items: start; }
.profile-cols > * { min-width: 0; }
@media (max-width: 800px) { .profile-cols { grid-template-columns: 1fr; } }
.panel { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); }
.panel + .panel { margin-top: var(--sp-4); }
.panel h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.panel > h2:first-child { margin-top: 0; }

/* ==========================================================================
   Portal UI kit, the shared vocabulary for the owner + member portals.
   One card, one page header, one stat tile, one choice-set, so every portal
   page reads as the same product. Compose these instead of inline styles.
   ========================================================================== */

/* The one card. .panel is its titled sibling; both share this look. */
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-card); min-width: 0; }
.card--act { border-left: 3px solid var(--act); }
.card--sun { border-left: 3px solid var(--sun); }
.card--match { border-left: 3px solid var(--match); }
.card--good { border-left: 3px solid var(--good-600); }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.01em; }
.card__title:not(:last-child) { margin-bottom: var(--sp-3); }

/* Page header band, every portal page opens with one: eyebrow, title, lead,
   and an optional action pinned to the right. Replaces the ad-hoc
   section-head + inline h1 + section-sub trio. */
.portal-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-6); }
.portal-head__main { flex: 1 1 260px; min-width: 0; }
.portal-head__eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-faint); }
.portal-head h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); letter-spacing: -0.02em; line-height: 1.1; margin-top: 3px; }
.portal-head__lead { color: var(--ink-soft); font-size: var(--fs-sm); margin-top: var(--sp-1); }
.portal-head__lead a { font-weight: 600; }
.portal-head__action { flex: none; }

/* Stat tiles, the dashboard "at a glance" row. Auto-fits, never overflows. */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-6); }
.stat { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: 1.85rem; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); }
.stat__num small { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-faint); }
.stat__label { font-size: var(--fs-sm); color: var(--ink-faint); }
.stat__foot { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 2px; }
.stat--act .stat__num { color: var(--act); }
.stat--sun .stat__num { color: var(--warn-600); }
.stat--match .stat__num { color: var(--match); }

/* Vertical rhythm helper, replaces repeated inline margin-bottom. */
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--sp-4); }
.stack--tight > * + * { margin-top: var(--sp-3); }

/* Copyable field (invite link, code). Input shrinks; a trailing hint fits. */
.field-copy { display: flex; width: 100%; min-width: 0; margin-top: var(--sp-2); }
.field-copy input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: var(--fs-sm); color: var(--ink); background: var(--bg-page); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 8px 12px; }

/* Segmented radio choice (pickup availability mode, and future either/or). */
.choice-set { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3); margin: 0 0 var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-1); }
.choice-set legend { font-size: var(--fs-sm); font-weight: 700; padding: 0 var(--sp-1); }
.choice { display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-2); border-radius: var(--r-sm); cursor: pointer; min-width: 0; }
.choice:hover { background: var(--bg-dip); }
.choice input { margin-top: 3px; flex: none; accent-color: var(--act); }
.choice b { display: block; font-weight: 700; }
.choice small { display: block; color: var(--ink-faint); font-size: var(--fs-sm); margin-top: 1px; }

.sig { display: flex; gap: var(--sp-2); align-items: baseline; padding: var(--sp-1) 0; font-size: var(--fs-sm); }
.sig .yes { color: var(--good-600); font-weight: 700; }
.sig .no { color: var(--bad-600); font-weight: 700; }
.hours-line { display: flex; justify-content: space-between; font-size: var(--fs-sm); padding: 3px 0; color: var(--ink-soft); }
.hours-line.today { color: var(--ink); font-weight: 600; }
.badge-open { color: var(--good-600); font-weight: 700; }
.badge-closed { color: var(--ink-faint); font-weight: 600; }
.offer-note {
	background: var(--sun-wash); border-radius: var(--r-md);
	padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); margin-bottom: var(--sp-2);
}
.offer-note b { color: var(--warn-600); }

/* ---- Concierge steps ---- */
.steps { max-width: 860px; margin: 0 auto; }
.step-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-card); }
.step-q { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); letter-spacing: -0.015em; margin-bottom: var(--sp-4); }
.step-dots { display: flex; gap: var(--sp-1); justify-content: center; margin: var(--sp-4) 0; }
.step-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--wash-300); }
.step-dots span.done { background: var(--act); }
.chip-set { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---- Compare ---- */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.vs-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); align-items: baseline; }
.vs-row dt { color: var(--ink-faint); }
.vs-row dd, .vs-row dt { min-width: 0; margin: 0; }   /* let a long email/name wrap, never widen the row */
@media (max-width: 640px) { .vs-row { grid-template-columns: 90px 1fr 1fr; } }

/* ---- Footer ---- */
.site-foot { background: var(--bg-ink); color: var(--ink-on-dark-soft); margin-top: var(--sp-14); padding: var(--sp-10) 0; font-size: var(--fs-sm); }
.site-foot a { color: var(--ink-on-dark-soft); }
.site-foot a:hover { color: var(--ink-on-dark); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-8); }
/* Narrow screens keep two columns when there's room: the brand + newsletter
   block spans the full width, Districts and Explore sit side by side. */
@media (max-width: 700px) {
	.foot-cols { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-8); }
	.foot-cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 360px) { .foot-cols { grid-template-columns: 1fr; } }
.foot-cols h3 { color: var(--ink-on-dark); font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--sp-3); }
.foot-cols li { list-style: none; padding: 2px 0; }
.foot-cols ul { margin: 0; padding: 0; }
.news-form { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); max-width: 340px; }
.news-form input {
	flex: 1; font: inherit; font-size: var(--fs-sm);
	background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
	border-radius: var(--r-pill); padding: 9px 14px; color: var(--ink-on-dark);
}
.news-form input::placeholder { color: var(--ink-on-dark-soft); }

/* ---- Utility ---- */
.empty-note { text-align: center; color: var(--ink-faint); padding: var(--sp-10) var(--sp-4); }
.pager { display: flex; gap: var(--sp-2); justify-content: center; padding: var(--sp-6) 0; }
.pager a, .pager span {
	min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft);
}
.pager .now { background: var(--bg-card); border: 1px solid var(--line-strong); color: var(--ink); }
.star { color: var(--sun); }
.gem-dot { color: var(--warn-600); }

/* [hidden] must always win over explicit display values */
[hidden] { display: none !important; }

/* ---- Forms (account, planner, groups) ---- */
.form-stack { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 460px; }
.form-stack label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: var(--sp-1); }
.form-stack input, .form-stack select, .form-stack textarea {
	width: 100%; font: inherit; font-size: var(--fs-base);
	border: 1px solid var(--line-strong); border-radius: var(--r-md);
	background: var(--bg-card); color: var(--ink); padding: 11px 14px;
}
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus { outline: none; border-color: var(--act); box-shadow: var(--ring); }
.form-error { background: #FBE9E7; color: var(--bad-600); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); }

/* ---- Passport ---- */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: var(--sp-4); }
.badge-card { text-align: center; }
.badge-card .emoji { font-size: 2rem; filter: grayscale(1); opacity: 0.45; }
.badge-card.earned .emoji { filter: none; opacity: 1; }
.badge-bar { height: 6px; background: var(--bg-dip); border-radius: var(--r-pill); overflow: hidden; margin-top: var(--sp-2); }
.badge-bar span { display: block; height: 100%; background: var(--sun); border-radius: inherit; }
.badge-card.earned .badge-bar span { background: var(--act); }

/* ---- Planner timeline ---- */
.day-block { margin-bottom: var(--sp-6); }
.day-title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.slot-row { display: grid; grid-template-columns: 110px 1fr; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.slot-row:last-child { border-bottom: none; }
.slot-label { font-size: var(--fs-sm); font-weight: 700; color: var(--act-hover); text-transform: uppercase; letter-spacing: 0.04em; padding-top: 3px; }

/* ---- Profile action bar & reviews ---- */
.act-bar { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }
.act-bar .btn.is-on { background: var(--match-wash); border-color: var(--match); color: var(--match); }
.js-fav .cb-ico { vertical-align: -2px; }
.js-fav.is-on .cb-ico { fill: currentColor; }
.memory-note { background: var(--act-wash); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); margin-top: var(--sp-4); }
.review-item { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.review-item:last-child { border-bottom: none; }
.review-item .who { font-weight: 700; }
.stars { color: var(--sun); letter-spacing: 1px; }

/* ---- Toasts & dialogs (replace browser defaults) ---- */
.cb-toast-region { position: fixed; bottom: var(--sp-6); left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: var(--sp-2); align-items: center; }
.cb-toast {
	background: var(--bg-ink); color: var(--ink-on-dark);
	border-radius: var(--r-pill); padding: 10px 20px;
	font-size: var(--fs-sm); font-weight: 600;
	box-shadow: var(--shadow-pop); max-width: min(92vw, 480px); text-align: center;
}
.cb-overlay {
	position: fixed; inset: 0; background: rgba(16, 40, 44, 0.45);
	z-index: 95; display: grid; place-items: center; padding: var(--sp-4);
}
.cb-dialog {
	background: var(--bg-card); border-radius: var(--r-lg);
	box-shadow: var(--shadow-pop); width: 100%; max-width: 400px;
	padding: var(--sp-6); text-align: center;
}
.cb-dialog h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.cb-dialog .big { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); letter-spacing: 0.02em; margin: var(--sp-3) 0; color: var(--ink); user-select: all; }
.cb-dialog p { font-size: var(--fs-sm); color: var(--ink-soft); }
.cb-dialog .row { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   Editorial: blog & guide articles (v1.8)
   -------------------------------------------------------------------------- */
.article-body { line-height: 1.75; color: var(--ink); }
.article-body h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); margin: var(--sp-7) 0 var(--sp-3); }
.article-body h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); margin: var(--sp-5) 0 var(--sp-2); }
.article-body p { margin-bottom: var(--sp-4); }
.article-body ul, .article-body ol { margin: 0 0 var(--sp-4) var(--sp-5); }
.article-body li { margin-bottom: var(--sp-2); }
.article-body a { color: var(--act); text-decoration-color: color-mix(in srgb, var(--act) 40%, transparent); }
.article-body strong { color: var(--ink); }
.article-body blockquote { border-left: 3px solid var(--sun); padding-left: var(--sp-4); color: var(--ink-soft); margin: var(--sp-5) 0; }

/* FAQ blocks on landing pages */
.faq-block details { border-bottom: 1px solid var(--line); padding: var(--sp-3) 0; }
.faq-block summary { font-weight: 700; cursor: pointer; }
.faq-block p { margin-top: var(--sp-2); color: var(--ink-soft); line-height: 1.65; }

/* --------------------------------------------------------------------------
   cb-lightbox (v1.8.3), fixed-frame photo viewer
   -------------------------------------------------------------------------- */
.photo-zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-md); }
.photo-zoom:focus-visible { outline: none; box-shadow: var(--ring); }
.photo-zoom img { display: block; }

.cb-lightbox {
	position: fixed; inset: 0; z-index: 250;
	display: none; align-items: center; justify-content: center; gap: var(--sp-3);
	background: color-mix(in srgb, var(--ink) 90%, transparent);
	padding: var(--sp-4);
}
.cb-lightbox.is-open { display: flex; }

/* The fixed frame: identical stage for every photo, image letterboxed inside */
.lb-stage {
	width: min(92vw, 1040px); height: min(80vh, 700px);
	display: flex; flex-direction: column; margin: 0;
}
.lb-stage img {
	flex: 1; min-height: 0; width: 100%; object-fit: contain;
	border-radius: var(--r-md);
	transition: opacity 0.15s ease;
}
.cb-lightbox.is-loading .lb-stage img { opacity: 0.3; }
.lb-stage figcaption {
	display: flex; justify-content: space-between; gap: var(--sp-3);
	padding-top: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-on-dark);
	min-height: 1.6em;
}
.lb-caption { opacity: 0.85; }
.lb-count { opacity: 0.6; font-variant-numeric: tabular-nums; }

.cb-lightbox button {
	border: 0; background: color-mix(in srgb, #ffffff 12%, transparent);
	color: var(--ink-on-dark); cursor: pointer; border-radius: var(--r-pill);
	width: 44px; height: 44px; font-size: 26px; line-height: 1; flex: 0 0 auto;
	display: flex; align-items: center; justify-content: center;
}
.cb-lightbox button:hover { background: color-mix(in srgb, #ffffff 22%, transparent); }
.cb-lightbox button:focus-visible { outline: none; box-shadow: var(--ring); }
.lb-close { position: absolute; top: var(--sp-4); right: var(--sp-4); }

@media (max-width: 700px) {
	.cb-lightbox { padding: var(--sp-2); gap: var(--sp-1); }
	.lb-stage { width: 96vw; height: 72vh; }
	.lb-prev, .lb-next { position: absolute; bottom: var(--sp-4); z-index: 1; }
	.lb-prev { left: var(--sp-4); }
	.lb-next { right: var(--sp-4); }
}

@media (prefers-reduced-motion: reduce) {
	.lb-stage img { transition: none; }
}

/* ---- Language switcher (v2.5) ---- */
.lang-pick { display: inline-flex; gap: 2px; }
.lang-pick a { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-faint); padding: 3px 6px; border-radius: var(--r-sm); }
.lang-pick a.is-here { background: var(--act-wash); color: var(--act-hover); }

/* ---- Live name search (directory) ---- */
.name-seek { position: relative; margin-bottom: var(--sp-3); max-width: 420px; }
.name-seek input { width: 100%; font: inherit; font-size: var(--fs-sm); border: 1px solid var(--line-strong); border-radius: var(--r-full); padding: 10px 18px; background: var(--bg-card); }
.name-seek-drop { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop, 0 8px 24px rgba(0,0,0,0.12)); z-index: 40; overflow: hidden; }
.name-seek-drop a { display: block; padding: 10px 16px; font-size: var(--fs-sm); color: var(--ink); }
.name-seek-drop a:hover { background: var(--act-wash); }

/* ---- Description body: ONE typographic rule for every restaurant
   description, whatever its source. ---- */
.desc-body { max-width: 62ch; color: var(--ink-soft); }
.desc-body p { margin: 0 0 var(--sp-3); line-height: 1.65; }
.desc-body p:last-child { margin-bottom: 0; }
.desc-body strong { color: var(--ink); font-weight: 600; }
.desc-body ul, .desc-body ol { margin: 0 0 var(--sp-3); padding-left: 1.2em; line-height: 1.65; }
.desc-body li { margin-bottom: 4px; }

/* ==========================================================================
   Discovery, "Island Index"
   Explore hub (hero band + featured category + tiles), the elevated directory
   header + filter bar, and the map layer toggle. Uses the existing tokens only.
   ========================================================================== */

/* Explore hero band */
.island-hero { position: relative; overflow: hidden; background: var(--bg-ink); color: var(--ink-on-dark); border-radius: var(--r-xl); padding: clamp(var(--sp-8), 5vw, var(--sp-14)) clamp(var(--sp-6), 5vw, var(--sp-14)); }
.island-hero .eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sun); margin: 0 0 var(--sp-4); }
.island-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.03em; margin: 0; max-width: 14ch; }
.island-hero > p { color: var(--ink-on-dark-soft); font-size: var(--fs-md); max-width: 44ch; margin: var(--sp-5) 0 0; }
.island-hero .tally { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-6); }
.island-hero .tally span { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-on-dark); background: rgba(242, 247, 246, 0.08); border: 1px solid rgba(242, 247, 246, 0.14); padding: 6px 12px; border-radius: var(--r-pill); }
.island-hero .tally b { color: var(--sun); font-family: var(--font-display); font-weight: 800; }
.island-hero .sun { position: absolute; top: -70px; right: -40px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, var(--citrus-500), #E08A1E); opacity: 0.16; pointer-events: none; }
.island-hero .waves { position: absolute; right: 24px; bottom: 20px; width: 180px; opacity: 0.22; color: var(--teal-100); pointer-events: none; }
@media (max-width: 640px) { .island-hero .waves { display: none; } }

/* Featured category band */
.xp-featured { position: relative; overflow: hidden; margin-top: var(--sp-5); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-6); background: linear-gradient(120deg, var(--sun-wash), #FFFFFF 70%); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(var(--sp-6), 4vw, var(--sp-10)); color: var(--ink); transition: transform 160ms ease, box-shadow 160ms ease; }
.xp-featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.xp-featured .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 7vw, 4.4rem); line-height: 0.9; letter-spacing: -0.03em; }
.xp-featured .lead-name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); margin: var(--sp-1) 0 0; }
.xp-featured .blurb { color: var(--ink-soft); font-size: var(--fs-md); margin: var(--sp-3) 0 var(--sp-5); max-width: 38ch; }
.xp-featured .chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.xp-featured .chips span { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); background: var(--bg-card); border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: var(--r-pill); }
.xp-featured .side { display: flex; align-items: center; justify-content: center; }
.xp-featured .emblem { width: 132px; height: 132px; border-radius: var(--r-xl); background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; color: var(--act); }
.xp-featured .emblem svg { width: 60px; height: 60px; }
@media (max-width: 720px) { .xp-featured { grid-template-columns: 1fr; } .xp-featured .side { display: none; } }

/* Section eyebrow with rule */
.section-eyebrow { display: flex; align-items: center; gap: var(--sp-4); margin: var(--sp-10) 0 var(--sp-5); }
.section-eyebrow h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); letter-spacing: -0.02em; margin: 0; white-space: nowrap; }
.section-eyebrow .rule { height: 1px; background: var(--line-strong); flex: 1; }

/* Category tiles */
.xp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: var(--sp-4); }
.xp-tile { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); color: var(--ink); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.xp-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: var(--line-strong); }
.xp-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--r-md); background: var(--sun-wash); color: var(--warn-600); margin-bottom: var(--sp-1); }
.xp-tile:nth-child(even) .xp-ico { background: var(--act-wash); color: var(--act); }
.xp-ico svg { width: 24px; height: 24px; }
.xp-count { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.xp-count small { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-left: 6px; }
.xp-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--ink); }
.xp-blurb { color: var(--ink-soft); font-size: var(--fs-sm); }
.xp-go { margin-top: var(--sp-2); font-size: var(--fs-sm); font-weight: 700; color: var(--act); }
.xp-go .arw { display: inline-block; transition: transform 160ms ease; }
.xp-tile:hover .xp-go .arw { transform: translateX(4px); }
.xp-tile.soon { background: var(--wash-0); }
.xp-tile.soon .xp-ico { background: var(--bg-dip); color: var(--ink-faint); }
.xp-tile.soon .xp-name { color: var(--ink-soft); }
.xp-soon-pill { align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); background: var(--bg-dip); border-radius: var(--r-pill); padding: 4px 10px; }

/* Directory header */
.dir-head { margin-bottom: var(--sp-6); }
.dir-head .kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--act); }
.dir-head h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-hero); letter-spacing: -0.03em; line-height: 1; margin: var(--sp-2) 0 0; }
.dir-head .rule { width: 64px; height: 4px; border-radius: 4px; background: var(--sun); margin-top: var(--sp-4); }
.dir-head .count-line { color: var(--ink-soft); font-size: var(--fs-md); margin: var(--sp-4) 0 0; }
.dir-head .count-line b { color: var(--ink); font-family: var(--font-display); font-weight: 800; }

/* Elevated filter bar (wraps the existing search + filter form) */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); box-shadow: var(--shadow-card); }
.filterbar .name-seek { margin: 0; flex: 1 1 220px; min-width: 180px; max-width: none; }
.filterbar .name-seek input { border-radius: var(--r-pill); background: var(--wash-0); padding: 9px 16px; }
.filterbar .filter-rail { padding: 0; gap: var(--sp-2); }
.filterbar .filter-rail select, .filterbar .filter-rail .mood-chip { background: var(--wash-0); }
.filterbar .filter-rail [data-near] { margin-left: auto; }

/* Map layer toggle (Restaurants / Attractions / Both) */
.map-types { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: var(--sp-4); background: var(--bg-dip); border: 1px solid var(--line); border-radius: var(--r-pill); }
.map-type { font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); background: transparent; border: 0; padding: 7px 16px; border-radius: var(--r-pill); cursor: pointer; transition: background-color 140ms ease, color 140ms ease; }
.map-type:hover { color: var(--ink); }
.map-type.is-active { background: var(--bg-card); color: var(--act); box-shadow: var(--shadow-card); }

/* Inline line-icons (Icons::svg), inherit surrounding size & colour */
.cb-ico { width: 1em; height: 1em; vertical-align: -0.14em; flex: none; }
.portal-nav .ico { display: inline-flex; align-items: center; justify-content: center; }
.portal-tab .ico { font-size: 1.15rem; }

/* ==========================================================================
   Bites Club rewards ("Island Index"), petrol hero + Bites coin + treat cards
   ========================================================================== */
.club-hero { position: relative; overflow: hidden; background: var(--bg-ink); color: var(--ink-on-dark); border-radius: var(--r-xl); padding: clamp(var(--sp-8), 5vw, var(--sp-14)); display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-8); align-items: center; }
.club-hero .eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sun); margin: 0 0 var(--sp-4); }
.club-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-hero); line-height: 0.95; letter-spacing: -0.03em; margin: 0; }
.club-hero .club-lead { color: var(--ink-on-dark-soft); font-size: var(--fs-md); max-width: 46ch; margin: var(--sp-5) 0 0; }
.club-hero .sun { position: absolute; top: -90px; right: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle at 50% 55%, var(--citrus-500), #E08A1E); opacity: 0.14; pointer-events: none; }
.club-balance { position: relative; justify-self: center; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FBC55A, var(--citrus-500)); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--petrol-950); box-shadow: 0 18px 40px -12px rgba(240, 167, 44, 0.55); border: 6px solid rgba(255, 255, 255, 0.14); }
.club-balance .num { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -0.03em; }
.club-balance .lbl { font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.club-balance .cap { font-size: var(--fs-xs); font-weight: 600; color: rgba(16, 40, 44, 0.7); margin-top: 2px; }
.club-join { display: flex; flex-direction: column; gap: var(--sp-3); justify-self: center; text-align: center; }
.club-join .lead { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); color: var(--ink-on-dark); }
.club-join .btn { justify-content: center; }
@media (max-width: 760px) { .club-hero { grid-template-columns: 1fr; gap: var(--sp-6); } .club-balance { width: 170px; height: 170px; } .club-balance .num { font-size: 2.8rem; } }

.club-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-5); }
.club-step { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); }
.club-step .n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sun-wash); color: var(--warn-600); font-family: var(--font-display); font-weight: 800; font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.club-step h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); margin: 0 0 var(--sp-1); }
.club-step p { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0; }
.club-step .earn { color: var(--act); font-weight: 700; }
@media (max-width: 640px) { .club-steps { grid-template-columns: 1fr; } }

.bz-head { display: flex; align-items: center; gap: var(--sp-4); margin: var(--sp-10) 0 var(--sp-5); }
.bz-head h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); letter-spacing: -0.02em; margin: 0; }
.near-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--act); background: var(--act-wash); border: 0; border-radius: var(--r-pill); padding: 9px 16px; cursor: pointer; }
.near-btn .cb-ico { width: 15px; height: 15px; }

.bz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--sp-4); }
.bz-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); transition: transform 160ms ease, box-shadow 160ms ease; }
.bz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.bz-top { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.bz-coin { flex: none; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FBC55A, var(--citrus-500)); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--petrol-950); box-shadow: 0 4px 12px -3px rgba(240, 167, 44, 0.5); }
.bz-coin b { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1; }
.bz-coin span { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.bz-welcome { align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--warn-600); background: var(--sun-wash); border-radius: var(--r-pill); padding: 3px 10px; }
.bz-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
.bz-venue { color: var(--ink-faint); font-size: var(--fs-sm); margin-top: 2px; }
.bz-venue a { color: var(--act); font-weight: 600; }
.bz-desc { color: var(--ink-soft); font-size: var(--fs-sm); margin: var(--sp-3) 0 0; }
.bz-cta { margin-top: auto; padding-top: var(--sp-4); }
.bz-cta .btn { width: 100%; justify-content: center; }
.bz-cta .js-redeem:disabled { background: var(--bg-dip); color: var(--ink-faint); cursor: default; }
.togo-bar { height: 6px; border-radius: 999px; background: var(--bg-dip); overflow: hidden; margin-bottom: 8px; }
.togo-bar span { display: block; height: 100%; background: var(--sun); border-radius: 999px; }
.club-note { max-width: 72ch; color: var(--ink-faint); font-size: var(--fs-sm); margin-top: var(--sp-10); line-height: 1.6; }

/* Elevated reasons: teal check bullets instead of the em dash */
.reasons li { position: relative; padding-left: 20px; }
.reasons li::before { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--act-wash); }
.reasons li::after { content: ""; position: absolute; left: 4px; top: 8px; width: 4px; height: 2px; border-left: 2px solid var(--act); border-bottom: 2px solid var(--act); transform: rotate(-45deg); }

/* ==========================================================================
   Offers, coupon / ticket cards (petrol hero + perforated deal tickets)
   ========================================================================== */
.off-hero { position: relative; overflow: hidden; background: var(--bg-ink); color: var(--ink-on-dark); border-radius: var(--r-xl); padding: clamp(var(--sp-8), 5vw, var(--sp-14)); }
.off-hero .eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sun); margin: 0 0 var(--sp-4); }
.off-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.03em; margin: 0; max-width: 15ch; }
.off-hero > p { color: var(--ink-on-dark-soft); font-size: var(--fs-md); max-width: 46ch; margin: var(--sp-5) 0 0; }
.off-hero .tally { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-6); }
.off-hero .tally span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-on-dark); background: rgba(242, 247, 246, 0.08); border: 1px solid rgba(242, 247, 246, 0.14); padding: 6px 12px; border-radius: var(--r-pill); }
.off-hero .tally b { color: var(--sun); font-family: var(--font-display); font-weight: 800; }
.off-hero .sun { position: absolute; top: -80px; right: -50px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle at 50% 55%, var(--citrus-500), #E08A1E); opacity: 0.14; pointer-events: none; }

.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: var(--sp-5); margin-top: var(--sp-6); }
.ticket { display: grid; grid-template-columns: 150px 1fr; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); transition: transform 160ms ease, box-shadow 160ms ease; }
.ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.ticket .pic { position: relative; border-radius: var(--r-lg) 0 0 var(--r-lg); min-height: 190px; }
.ticket .pic .type { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--warn-600); background: var(--sun-wash); border-radius: var(--r-pill); padding: 4px 10px; box-shadow: 0 1px 2px rgba(16, 40, 44, 0.15); }
.ticket .body { position: relative; padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-6); border-left: 2px dashed var(--line-strong); display: flex; flex-direction: column; }
.ticket .body::before, .ticket .body::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-page); border: 1px solid var(--line); }
.ticket .body::before { top: -11px; }
.ticket .body::after { bottom: -11px; }
.ticket .deal { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
.ticket .deal .val { color: var(--warn-600); }
.ticket .desc { color: var(--ink-soft); font-size: var(--fs-sm); margin: var(--sp-2) 0 0; }
.ticket .venue { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--ink-faint); }
.ticket .venue a { color: var(--act); font-weight: 600; }
.ticket .foot { margin-top: auto; padding-top: var(--sp-4); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.ticket .ends { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); }
.ticket .ends.soon { color: var(--bad-600); }
.ticket .ends .cb-ico { width: 13px; height: 13px; }
.ticket .view { font-size: var(--fs-sm); font-weight: 700; color: var(--act); white-space: nowrap; }
@media (max-width: 520px) {
	.ticket-grid { grid-template-columns: 1fr; }
	.ticket { grid-template-columns: 1fr; }
	.ticket .pic { border-radius: var(--r-lg) var(--r-lg) 0 0; min-height: 130px; }
	.ticket .body { border-left: 0; border-top: 2px dashed var(--line-strong); }
	.ticket .body::before { top: -11px; left: -11px; }
	.ticket .body::after { top: -11px; left: auto; right: -11px; bottom: auto; }
}

/* ---- Structured menu board (public profile) ---- */
.menu-board { background: var(--paper, #fff); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-8); }
.menu-board-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); padding-bottom: var(--sp-4); border-bottom: 2px solid var(--sun); }
.menu-board-head h2 { font-family: var(--font-display, inherit); color: var(--ink); font-size: var(--fs-xl); margin: 0; }
.menu-board-note { color: var(--ink-faint); font-size: var(--fs-sm); }
.menu-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-14); }
.menu-sec { break-inside: avoid; }
.menu-sec-title { color: var(--act); font-size: var(--fs-lg); margin: 0 0 var(--sp-3); letter-spacing: 0.01em; }
.menu-item { padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item-line { display: flex; align-items: baseline; }
.menu-item-name { color: var(--ink); font-weight: 600; }
.menu-item-lead { flex: 1 1 auto; margin: 0 var(--sp-2); transform: translateY(-3px); border-bottom: 1px dotted var(--line-strong); }
.menu-item-price { flex: 0 0 auto; color: var(--sun); font-weight: 700; font-variant-numeric: tabular-nums; }
.menu-item-desc { color: var(--ink-soft); font-size: var(--fs-sm); margin: 2px 0 0; max-width: 52ch; }
@media (max-width: 720px) {
	.menu-board { padding: var(--sp-5); }
	.menu-sections { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* ---- Phantom Menu (owner: what people wanted from you) ---- */
.phantom-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.phantom-ico { flex: 0 0 auto; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-md); background: var(--sun-wash); color: var(--sun); }
.phantom-ico svg { width: 22px; height: 22px; }
.phantom-headline { display: flex; align-items: baseline; gap: var(--sp-3); padding: var(--sp-4) 0; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); margin-bottom: var(--sp-4); }
.phantom-num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--sun); }
.phantom-num-label { font-size: var(--fs-sm); color: var(--ink-soft); max-width: 44ch; }
.phantom-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.phantom-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.phantom-count { flex: 0 0 auto; min-width: 2ch; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); color: var(--act); }
.phantom-copy { flex: 1; }
.phantom-gap { font-weight: 700; color: var(--ink); }
.phantom-sub { font-size: var(--fs-sm); color: var(--ink-faint); }
.phantom-lock { text-align: center; padding: var(--sp-5) var(--sp-4); background: var(--sun-wash); border-radius: var(--r-md); }
.phantom-lock p { margin-bottom: var(--sp-3); color: var(--ink-soft); max-width: 52ch; margin-left: auto; margin-right: auto; }

/* Revenue autopilot, opportunity cards */
.opp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.opp-type { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--sun-wash); color: var(--warn-600); }
.opp-type.advisory { background: var(--act-wash); color: var(--act-hover); }
.opp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-3) 0; }
.opp-est { background: var(--bg-dip); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); margin: var(--sp-3) 0; }
.opp-pnl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.opp-net { background: var(--good-100); color: var(--good-600); border-radius: var(--r-md); padding: 8px 12px; font-weight: 700; font-size: var(--fs-sm); }
.opp-dial { display: flex; gap: 6px; margin-bottom: var(--sp-2); }
.opp-dial .seg { flex: 1; text-align: center; padding: 8px; border-radius: var(--r-md); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); background: var(--bg-card); }
.opp-dial .seg.on { background: var(--ink); color: var(--ink-on-dark); border-color: var(--ink); }
.opp-dial .seg.soon { opacity: 0.5; }

/* ==========================================================================
   Homepage closing bands: get-the-app + the food-lover / owner join split
   ========================================================================== */
.app-band { background: var(--bg-ink); color: var(--ink-on-dark); padding: var(--sp-14) 0; }
.app-band__inner { display: flex; align-items: center; gap: var(--sp-10); }
.app-band__phone { flex: none; }
.app-band__copy { min-width: 0; }
.app-band__eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-xs); font-weight: 700; color: var(--sun); margin-bottom: var(--sp-2); }
.app-band__copy h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); line-height: 1.1; color: #fff; }
.app-band__copy p { color: var(--ink-on-dark-soft); font-size: var(--fs-md); line-height: 1.55; margin-top: var(--sp-3); max-width: 42ch; }
.app-band__soon { font-size: var(--fs-sm); color: var(--ink-on-dark-soft); margin-top: var(--sp-3); }

/* CSS phone mockup, a faithful mini of the app home */
.phone { width: 232px; height: 470px; border-radius: 34px; background: #05171A; padding: 10px; box-shadow: var(--shadow-pop); position: relative; }
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 74px; height: 18px; border-radius: var(--r-pill); background: #05171A; z-index: 2; }
.phone__screen { height: 100%; border-radius: 25px; background: var(--wash-50); padding: 30px var(--sp-4) var(--sp-4); overflow: hidden; }
.phone__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.02em; }
.phone__brand em { font-style: normal; color: var(--act); }
.phone__greet { color: var(--ink-soft); font-size: var(--fs-sm); margin-top: var(--sp-2); line-height: 1.4; }
.phone__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-4); }
.phone__chip { font-size: 11px; font-weight: 600; color: var(--ink-soft); background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 10px; }
.phone__chip.is-on { background: var(--act-wash); color: var(--act-hover); border-color: transparent; }
.phone__card { display: flex; align-items: center; gap: var(--sp-3); background: var(--bg-card); border-radius: var(--r-md); box-shadow: var(--shadow-card); padding: var(--sp-3); margin-top: var(--sp-4); }
.phone__ring { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.phone__ring b { position: absolute; font-size: 13px; font-weight: 800; color: var(--act-hover); }
.phone__card-text { display: flex; flex-direction: column; min-width: 0; }
.phone__card-text b { font-size: var(--fs-sm); color: var(--ink); }
.phone__card-text i { font-style: normal; font-size: 11px; color: var(--ink-faint); margin-top: 2px; }

/* Store badges, dark pill buttons with an app icon + two-line label */
.store-badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.store-badge { display: inline-flex; align-items: center; gap: var(--sp-2); background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-md); padding: 9px 16px; transition: transform 140ms ease, border-color 140ms ease; }
a.store-badge:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.4); color: #fff; }
span.store-badge { cursor: default; opacity: 0.92; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: var(--fs-xs); letter-spacing: 0.02em; opacity: 0.85; }
.store-badge b { font-size: var(--fs-base); font-weight: 600; }

/* Join split, food lovers vs owners */
.join-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.join-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.join-card__ico { width: 44px; height: 44px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; background: var(--act-wash); color: var(--act-hover); }
.join-card__ico--owner { background: var(--sun-wash); color: var(--warn-600); }
.join-card h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); margin-top: var(--sp-3); }
.join-list { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.join-list li { position: relative; padding-left: 24px; color: var(--ink-soft); font-size: var(--fs-base); }
.join-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: var(--r-pill); background: var(--act-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230A5A55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4.5 6.5 11 3 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.join-card .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 760px) {
	.app-band { padding: var(--sp-10) 0; }
	.app-band__inner { flex-direction: column; gap: var(--sp-8); text-align: center; }
	.app-band__copy p { margin-left: auto; margin-right: auto; }
	.store-badges { justify-content: center; }
	.join-grid { grid-template-columns: 1fr; }
	.join-card .btn { align-self: stretch; text-align: center; }
}

/* ============================================================
   The Pass, front-of-house tablet (owner service board)
   ============================================================ */
body:has(.svc-page) .site-head { display: none; }

.svc-page { min-height: 100vh; background: var(--bg-dip); }

/* App bar */
.svc-top {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
	padding: var(--sp-3) var(--sp-5);
	background: var(--bg-ink); color: var(--ink-on-dark);
	box-shadow: var(--shadow-card);
}
.svc-top__id { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.svc-top__eyebrow { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); font-weight: 700; }
.svc-top__venue { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-top__actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.svc-top__link { color: var(--ink-on-dark-soft, #B9CCC9); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; padding: 10px 12px; border-radius: var(--r-pill); }
.svc-top__link:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* The signature: the scan hero */
.svc-scan-btn {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 56px; padding: 0 var(--sp-5);
	background: var(--sun); color: var(--ink);
	border: none; border-radius: var(--r-pill);
	font-family: var(--font-body); font-weight: 800; font-size: var(--fs-md);
	cursor: pointer; box-shadow: 0 6px 18px rgba(240,167,44,0.35);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.svc-scan-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(240,167,44,0.45); }
.svc-scan-btn:active { transform: translateY(0); }

/* Board */
.svc-wrap { max-width: 1180px; margin: 0 auto; padding: var(--sp-5); }
.svc-glance {
	display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
	margin-bottom: var(--sp-5); padding: var(--sp-3) var(--sp-4);
	background: var(--act-wash); border-radius: var(--r-md);
	color: var(--act-hover); font-weight: 600; font-size: var(--fs-md);
}
.svc-glance__n { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); color: var(--act); }
.svc-glance__dot { color: var(--ink-faint); }

.svc-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: start; }
.svc-lane { min-width: 0; }
.svc-lane__head {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--ink);
	margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 2px solid var(--line);
}
.svc-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: var(--r-pill); font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 800; }
.svc-count--sun { background: var(--sun); color: var(--ink); }

.svc-empty { color: var(--ink-faint); font-size: var(--fs-sm); padding: var(--sp-4) 0; }

/* Cards */
.svc-card {
	background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
	box-shadow: var(--shadow-card); padding: var(--sp-4);
	margin-bottom: var(--sp-3); border-left: 4px solid transparent;
}
.svc-card--wait { border-left-color: var(--sun); }
.svc-card--ready { border-left-color: var(--act); }
.svc-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.svc-card__name { font-size: var(--fs-md); }
.svc-card__meta { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 2px; }
.svc-card__body { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: var(--sp-2); line-height: 1.5; }
.svc-card__body a { color: var(--act); font-weight: 600; }
.svc-card__msg { margin-top: 6px; color: var(--ink); }
.svc-card__handover { margin-top: var(--sp-3); font-size: var(--fs-sm); font-weight: 700; color: var(--act-hover); }
.svc-wishes { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }

/* Big touch actions */
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.svc-actions__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.svc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 var(--sp-4);
	border-radius: var(--r-md); border: 1.5px solid transparent;
	font-family: var(--font-body); font-weight: 700; font-size: var(--fs-md);
	cursor: pointer; background: var(--bg-card); color: var(--ink);
	transition: transform 0.1s ease, filter 0.1s ease; user-select: none;
}
.svc-btn:active { transform: scale(0.97); }
.svc-btn[disabled] { opacity: 0.5; pointer-events: none; }
.svc-btn--go { background: var(--act); border-color: var(--act); color: #fff; }
.svc-btn--go:hover { background: var(--act-hover); }
.svc-btn--band { background: var(--sun-wash); border-color: var(--sun); color: var(--ink); }
.svc-btn--band:hover { filter: brightness(0.97); }
.svc-btn--soft { border-color: var(--line-strong); color: var(--ink-soft); }
.svc-btn--danger { border-color: var(--line-strong); color: var(--bad-600); background: var(--bg-card); }
.svc-btn--danger:hover { background: var(--bad-100, #FBE9E7); }

/* Propose / decline expanders */
.svc-more { position: relative; }
.svc-more > summary { list-style: none; }
.svc-more > summary::-webkit-details-marker { display: none; }
.svc-more__body { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.svc-input { min-height: 48px; padding: 0 12px; font: inherit; font-size: 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-card); color: var(--ink); }
.svc-input--wide { flex: 1; min-width: 200px; }

/* Scan overlay */
.svc-scan { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: var(--sp-4); background: rgba(16,40,44,0.72); backdrop-filter: blur(3px); }
.svc-scan[hidden] { display: none; }
.svc-scan__panel { position: relative; width: 100%; max-width: 460px; background: var(--bg-card); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); padding: var(--sp-6); }
.svc-scan__close { position: absolute; top: 10px; right: 14px; border: none; background: none; font-size: 30px; line-height: 1; color: var(--ink-faint); cursor: pointer; }
.svc-scan__title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); }
.svc-scan__hint { color: var(--ink-soft); font-size: var(--fs-sm); margin-top: 6px; }
.svc-scan__stage { position: relative; margin: var(--sp-4) 0; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-ink); }
.svc-scan__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-scan__reticle { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,0.85); border-radius: var(--r-md); box-shadow: 0 0 0 100vmax rgba(16,40,44,0.25); }
.svc-scan__manual { display: flex; gap: var(--sp-2); }
.svc-scan__input { flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; font: inherit; font-size: 1.4rem; font-weight: 700; letter-spacing: 0.12em; text-align: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); text-transform: uppercase; }

.svc-result { margin-top: var(--sp-4); padding: var(--sp-4); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 4px; }
.svc-result[hidden] { display: none; }
.svc-result b { font-family: var(--font-display); font-size: var(--fs-lg); }
.svc-result span { font-size: var(--fs-sm); }
.svc-result--reward, .svc-result--pickup, .svc-result--arrival { background: var(--act-wash); color: var(--act-hover); }
.svc-result--student { background: var(--sun-wash); color: #8A5A12; }
.svc-result--ok { background: var(--act-wash); color: var(--act-hover); }
.svc-result--miss { background: var(--bad-100, #FBE9E7); color: var(--bad-600); }

/* Toast */
.svc-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 80; padding: 12px 20px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-weight: 600; font-size: var(--fs-sm); box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.svc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
	.svc-lanes { grid-template-columns: 1fr; }
	.svc-top { padding: var(--sp-3) var(--sp-4); }
	.svc-scan-btn span { display: none; }
	.svc-scan-btn { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.svc-btn, .svc-scan-btn, .svc-toast { transition: none; }
}

/* ---- Together, live (friends deciding, real-time voting) ---- */
.tg-members { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-2); }
.tg-members:empty { display: none; }

.tg-live-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.tg-picks { display: flex; flex-direction: column; gap: var(--sp-2); }

.tg-pick {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: var(--sp-3) var(--sp-4);
	transition: border-color .15s ease, background .15s ease;
}
.tg-pick.is-voted { border-color: var(--act); background: var(--act-wash); }
.tg-pick-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tg-pick-name {
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tg-pick-name:hover { color: var(--act); }
.tg-pick-place { font-size: var(--fs-sm); color: var(--ink-faint); }
.tg-pick-side { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.tg-tally { font-size: var(--fs-sm); color: var(--ink-soft); white-space: nowrap; }
.tg-tally b { font-size: var(--fs-base); color: var(--act-hover); font-weight: 800; }

.tg-vote {
	appearance: none;
	border: 1px solid var(--act);
	background: transparent;
	color: var(--act);
	font: inherit;
	font-weight: 700;
	font-size: var(--fs-sm);
	border-radius: var(--r-pill);
	padding: 8px 16px;
	min-height: 40px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.tg-vote:hover { background: var(--act-wash); }
.tg-vote.is-voted { background: var(--act); color: #fff; }
.tg-vote:disabled { opacity: .6; cursor: default; }

.tg-lock { width: 100%; justify-content: center; margin-top: var(--sp-4); }
.tg-lock-note { font-size: var(--fs-sm); color: var(--ink-faint); text-align: center; margin-top: var(--sp-2); }

/* ---- Consensus banner (the answer nobody hates) ---- */
.tg-consensus {
	display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2);
	background: var(--act-wash); border: 1px solid var(--act);
	border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-4);
}
.tg-consensus--weak, .tg-consensus--none { background: var(--sun-wash); border-color: var(--sun); }
.tg-consensus-label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--act-hover); }
.tg-consensus--weak .tg-consensus-label, .tg-consensus--none .tg-consensus-label { color: var(--warn-600); }
.tg-consensus-name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); color: var(--ink); text-decoration: none; }
.tg-consensus-name:hover { color: var(--act); }
.tg-consensus-why { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.tg-consensus .btn { margin-top: var(--sp-1); }

/* ---- Decide-by deadline (create picker + live countdown) ---- */
.deadline-pick { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-1); }
.deadline-chip { display: inline-flex; align-items: center; cursor: pointer; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: var(--fs-sm); background: var(--bg-card); }
.deadline-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.deadline-chip:has(input:checked) { background: var(--act-wash); border-color: var(--act); color: var(--act-hover); font-weight: 600; }
.deadline-chip input:focus-visible + span { outline: 2px solid var(--act); outline-offset: 3px; border-radius: 2px; }
.tg-deadline { font-size: var(--fs-sm); font-weight: 600; color: var(--act-hover); margin: 0 0 var(--sp-3); }

.tg-winner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--sp-2);
	background: var(--act);
	color: var(--ink-on-dark);
	border-radius: var(--r-lg);
	padding: var(--sp-6) var(--sp-5);
}
.tg-winner-label { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-on-dark-soft); }
.tg-winner-name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); color: #fff; text-decoration: none; }
.tg-winner-name:hover { text-decoration: underline; }
.tg-winner-place { font-size: var(--fs-sm); color: var(--ink-on-dark-soft); }
.tg-winner .btn { margin-top: var(--sp-3); background: #fff; color: var(--act); }
.tg-winner .btn:hover { background: var(--sun-wash); color: var(--act-hover); }

/* ---- Cookie consent banner (privacy-first, decline is equal weight) ---- */
.consent {
	position: fixed;
	left: 50%;
	bottom: var(--sp-4);
	z-index: 200;
	width: min(680px, calc(100% - var(--sp-4) * 2));
	transform: translate(-50%, calc(100% + var(--sp-5)));
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
	background: var(--ink);
	color: var(--ink-on-dark);
	border-radius: var(--r-lg);
	box-shadow: 0 12px 40px rgba(16, 40, 44, 0.28);
}
.consent.is-in { transform: translate(-50%, 0); opacity: 1; }
.consent.is-gone { transform: translate(-50%, calc(100% + var(--sp-5))); opacity: 0; }
.consent-inner {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	padding: var(--sp-4) var(--sp-5);
	flex-wrap: wrap;
}
.consent-text { flex: 1 1 auto; min-width: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-on-dark-soft); margin: 0; }
.consent-text a { color: var(--ink-on-dark); text-decoration: underline; }
.consent-actions { display: flex; gap: var(--sp-2); flex: none; }
/* Decline is a solid button of equal weight to Accept, not a faint outline,
   so the choice reads as even (no nudge toward accepting). */
.consent-actions .btn-line { background: rgba(242, 247, 246, 0.16); color: var(--ink-on-dark); border-color: transparent; }
.consent-actions .btn-line:hover { background: rgba(242, 247, 246, 0.26); }
@media (max-width: 520px) {
	.consent { bottom: var(--sp-3); width: calc(100% - var(--sp-3) * 2); }
	.consent-inner { flex-direction: column; align-items: stretch; gap: var(--sp-3); padding: var(--sp-4); }
	.consent-actions { width: 100%; }
	.consent-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 520px) {
	.consent { bottom: var(--sp-3); width: calc(100% - var(--sp-3) * 2); }
}
@media (prefers-reduced-motion: reduce) {
	.consent { transition: opacity .2s ease; }
	.consent.is-in { transform: translate(-50%, 0); }
}

/* ---- App-download promo strip (above the header, dismissible; only when the
   app is actually on a store) ---- */
.app-promo { background: var(--bg-ink); color: var(--ink-on-dark); }
.app-promo__inner { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); }
.app-promo__mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--sun); color: var(--petrol-950); }
.app-promo__text { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-sm); color: var(--ink-on-dark); }
.app-promo__badges { display: flex; gap: var(--sp-2); flex: none; }
.app-promo__badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(242, 247, 246, 0.14); color: var(--ink-on-dark); font-size: var(--fs-xs); font-weight: 600; }
.app-promo__badge:hover { background: rgba(242, 247, 246, 0.24); }
.app-promo__close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: transparent; border: 0; color: var(--ink-on-dark-soft); cursor: pointer; }
.app-promo__close:hover { color: var(--ink-on-dark); background: rgba(242, 247, 246, 0.14); }
@media (max-width: 720px) {
	.app-promo__inner { flex-wrap: wrap; align-items: flex-start; padding-bottom: var(--sp-3); }
	.app-promo__badges { order: 3; width: 100%; }
	.app-promo__badge { flex: 1; justify-content: center; }
}

/* ---- Session-expired page (branded CSRF timeout, not raw JSON) ---- */
.expired { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--sp-5); background: var(--bg-page); }
.expired-card { max-width: 460px; width: 100%; text-align: center; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-8) var(--sp-6); }
.expired-logo { display: block; margin: 0 auto var(--sp-4); }
.expired-card h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); color: var(--ink); margin-bottom: var(--sp-3); }
.expired-card p { color: var(--ink-soft); line-height: 1.6; margin-bottom: var(--sp-5); }
.expired-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ---- Intelligence Center: the owner briefing hero (#114) ---- */
.ic-brief {
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: var(--sp-6);
	margin-bottom: var(--sp-5);
	box-shadow: 0 1px 0 rgba(16, 40, 44, 0.03);
}
.ic-brief__eyebrow {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--act);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: var(--sp-3);
}
.ic-brief__date { margin-left: auto; color: var(--ink-faint); font-weight: 600; letter-spacing: normal; text-transform: none; }
.ic-brief__narration {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-lg);
	line-height: 1.5;
	color: var(--ink);
	margin: 0 0 var(--sp-2);
}
.ic-brief__grounded { font-size: var(--fs-sm); color: var(--ink-faint); margin: 0 0 var(--sp-5); }

.ic-moves { display: flex; flex-direction: column; gap: var(--sp-2); }
.ic-move {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-left: 3px solid var(--line-strong);
	border-radius: var(--r-md);
	padding: var(--sp-4);
}
.ic-move--opportunity { border-left-color: var(--act); }
.ic-move--miss { border-left-color: var(--sun); }
.ic-move--competitor { border-left-color: #CE3D6E; }
.ic-move--health { border-left-color: #217447; }
.ic-move--trend { border-left-color: var(--act-hover); }

.ic-move__rank {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--act-wash);
	color: var(--act-hover);
	font-size: var(--fs-sm);
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}
.ic-move__main { min-width: 0; flex: 1; }
.ic-move__title { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ic-move__venue { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); background: var(--bg-dip); border-radius: var(--r-sm); padding: 1px 7px; }
.ic-move__body { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 2px; line-height: 1.5; }
.ic-move__meta { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-2); }
.ic-metric { font-size: var(--fs-sm); color: var(--ink-soft); }
.ic-metric b { color: var(--act-hover); font-weight: 800; font-size: var(--fs-base); }
.ic-conf { font-size: var(--fs-xs); font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); }
.ic-conf--high { background: var(--act-wash); color: var(--act-hover); }
.ic-conf--medium { background: var(--sun-wash); color: var(--warn-600); }
.ic-conf--low { background: var(--bg-dip); color: var(--ink-faint); }
.ic-move__evidence { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: 6px; line-height: 1.5; }
.ic-move__action { flex: none; align-self: center; white-space: nowrap; }

.ic-receipt {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: var(--sp-4);
	padding: var(--sp-3) var(--sp-4);
	background: var(--act-wash);
	color: var(--act-hover);
	border-radius: var(--r-md);
	font-size: var(--fs-sm);
}
.ic-receipt b { font-weight: 800; }
@media (max-width: 640px) {
	.ic-move { flex-wrap: wrap; }
	.ic-move__action { align-self: stretch; width: 100%; justify-content: center; margin-top: var(--sp-2); }
}

/* Export-as-evidence link on the dashboard hero */
.ic-brief__export {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--act);
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	font-size: var(--fs-xs);
	white-space: nowrap;
}
.ic-brief__export:hover { color: var(--act-hover); text-decoration: underline; }

/* Cravings near you (owner dashboard, from Craving Radar) */
.crave-place { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); background: var(--bg-dip); border-radius: var(--r-sm); padding: 1px 8px; }
.crave-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.crave-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); }
.crave-row__label { font-weight: 600; color: var(--ink); min-width: 0; }
.crave-row__count { flex: none; font-size: var(--fs-sm); color: var(--ink-soft); white-space: nowrap; }
.crave-row__count b { color: var(--sun); font-weight: 800; }

/* Evidence export: a print-to-PDF briefing document */
.ic-doc {
	max-width: 760px;
	margin: 0 auto;
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: var(--sp-8);
	box-shadow: 0 1px 0 rgba(16, 40, 44, 0.03);
}
.ic-doc__actions { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; max-width: 760px; margin: 0 auto var(--sp-4); }
.ic-doc__mast {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--sp-4);
	flex-wrap: wrap;
	padding-bottom: var(--sp-5);
	margin-bottom: var(--sp-5);
	border-bottom: 2px solid var(--ink);
}
.ic-doc__brand { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); color: var(--ink); }
.ic-doc__brand em { color: var(--act); font-style: normal; }
.ic-doc__kicker { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--act); margin-top: 4px; }
.ic-doc__meta { text-align: right; font-size: var(--fs-xs); color: var(--ink-faint); line-height: 1.7; }
.ic-doc__meta b { color: var(--ink-soft); font-weight: 700; }
.ic-doc__title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); line-height: 1.3; color: var(--ink); margin: 0 0 var(--sp-2); }
.ic-doc__narration { font-size: var(--fs-base); line-height: 1.6; color: var(--ink-soft); margin: 0 0 var(--sp-5); }
.ic-doc__section-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin: var(--sp-5) 0 var(--sp-3); }
.ic-move__rec { font-size: var(--fs-xs); font-weight: 700; color: var(--act-hover); margin-top: 6px; }
.ic-doc__foot { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-faint); line-height: 1.6; }

/* Scoped to the evidence page only (it is the sole page carrying .ic-doc), so
   the invoice and statement print views keep their own layout. On browsers
   without :has() the whole rule is dropped, which just prints the briefing with
   its normal chrome rather than affecting any other page. */
@media print {
	body:has(.ic-doc) .site-head,
	body:has(.ic-doc) .site-foot,
	body:has(.ic-doc) .consent-banner,
	body:has(.ic-doc) .ic-doc__actions { display: none !important; }
	body:has(.ic-doc) { background: #fff; }
	body:has(.ic-doc) .section { padding: 0 !important; }
	body:has(.ic-doc) .wrap { max-width: none; padding: 0; }
	body:has(.ic-doc) .ic-doc { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
	body:has(.ic-doc) .ic-move { break-inside: avoid; }
}
