/* ============ Shared ============ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.55; }
body.loading .hero, body.loading .page, body.loading .foot { visibility: hidden; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

body {
  --hero-img: none;
  --hero-overlay: linear-gradient(transparent, transparent);
}

.install-hint { display: flex; align-items: center; gap: 0.75rem; justify-content: space-between; max-width: 46rem; margin: 1.5rem auto 0; background: var(--surface); color: var(--ink); border: 1.5px solid var(--brand); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.9rem; }
@media (max-width: 47rem) { .install-hint { margin-left: 1rem; margin-right: 1rem; } }
.install-hint button { border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.thanks { margin: 0; background: var(--brand); color: var(--on-brand); text-align: center; padding: 0.9rem 1rem; font-weight: 700; }
.preview-banner { margin: 0; background: #1A1A1A; color: #fff; text-align: center; padding: 0.55rem 1rem; font: 600 0.9rem system-ui, sans-serif; position: sticky; top: 0; z-index: 60; }

.hero { position: relative; overflow: hidden; background-color: var(--bg); background-image: var(--hero-overlay), var(--hero-img), var(--hero-fallback); background-size: cover; background-position: center; }
.hero-photo { display: none; }
.hero h1 { font-family: var(--font-display); margin: 0; overflow-wrap: anywhere; }
/* Name off the photo: still read by search engines and screen readers, just not drawn. */
.name-hidden .hero h1, .name-hidden .hero p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.name-hidden.tpl-street .hero-text { background: none; box-shadow: none; border: 0; transform: none; padding: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-actions:empty { display: none; }
.hero-actions a { text-decoration: none; display: inline-block; font-weight: 700; }

.page { display: flex; flex-direction: column; max-width: 46rem; margin: 0 auto; padding: 0 1rem 2rem; }
.location { order: 6; }

.location h2, .about h2, .items h2 { font-family: var(--font-display); }
.location p { margin: 0.15rem 0 0; color: var(--muted); }
.location .spot { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.location .spot:first-child { border-top: 0; padding-top: 0.3rem; }
.location .spot strong { display: block; }
.week { margin-top: 0.5rem; }
.week summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 0.9rem; }
.week-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; color: var(--muted); font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.week-row:last-child { border-bottom: 0; }
.week-row.today { color: var(--ink); font-weight: 700; }
.location .loc-hours { font-weight: 700; color: var(--brand); margin: 0; }
.location .loc-hours:empty, .location p:empty { display: none; }
.picker { order: 2; background: var(--surface); border: 1.5px solid var(--brand); border-radius: var(--radius); padding: 0.75rem 0.9rem; margin-top: 1rem; }
.picker label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.picker select { width: 100%; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.55rem 0.6rem; font: inherit; }
.picker p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }
.picker p:empty { display: none; }
.picker .picker-hours { color: var(--brand); font-weight: 600; }
.picker .picker-links { display: flex; gap: 1.1rem; margin-top: 0.3rem; }
.picker .picker-links a { color: var(--brand); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.ico { width: 1.05em; height: 1.05em; fill: currentColor; flex-shrink: 0; }
.location .spot a { display: inline-flex; align-items: center; gap: 0.3rem; }
.cats { order: 3; }
.items { order: 4; }
.about { order: 5; }
.tpl-street .location { order: 1; }
.location a { font-weight: 700; color: var(--brand); margin-right: 1rem; }
.paused { margin-top: 0.6rem !important; padding: 0.6rem 0.8rem; background: var(--bg); color: var(--ink) !important; font-weight: 600; border-radius: var(--radius); }

.cats { position: sticky; top: 0; z-index: 5; background: var(--bg); margin: 1.25rem -1rem 0; border-bottom: 1px solid var(--line); }
.cats ul { list-style: none; padding: 0.6rem 1rem; margin: 0; display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.cats a { display: block; white-space: nowrap; text-decoration: none; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; background: var(--surface); }
.cats:has(ul:empty) { display: none; }

.items section { padding-top: 1.5rem; }
.items .specials h2 { color: var(--accent); }
.was { text-decoration: line-through; color: var(--muted); font-weight: 400; margin-right: 0.3rem; }
.items .specials > div { border: 2px solid var(--accent); border-radius: var(--radius); padding: 0.7rem; }
.items h2 { margin: 0 0 0.6rem; font-weight: 600; }
.empty { padding: 2rem 0; text-align: center; color: var(--muted); }
.tile { display: grid; place-items: center; background: var(--tile-bg); color: var(--tile-ink); font-family: var(--font-display); font-weight: 600; }
.tile.photo { background-size: cover; background-position: center; }
.sheet-photo { height: 11rem; background-size: cover; background-position: center; border-radius: 20px 20px 0 0; }

/* order-mode rows */
.row { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem; margin-bottom: 0.6rem; cursor: pointer; display: grid; grid-template-columns: 4rem 1fr; gap: 0.85rem; align-items: center; }
.row:disabled { cursor: default; opacity: 0.6; }
.row .tile { width: 4rem; height: 4rem; border-radius: calc(var(--radius) * 0.7); font-size: 1.5rem; }
.row .top { display: flex; align-items: baseline; gap: 0.6rem; }
.row .name { font-weight: 700; font-size: 1.05rem; }
.row .dots { flex: 1; }
.row .price { font-weight: 700; white-space: nowrap; }
.row .desc { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.1rem; }
.soldout { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* shop-mode grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 44rem) { .grid { grid-template-columns: repeat(3, 1fr); } }
.prod { display: flex; flex-direction: column; }
.prod .tile { aspect-ratio: 1; font-size: 2.4rem; border-radius: var(--radius); }
.prod strong { margin-top: 0.5rem; }
.prod .meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.prod .add { border: 0; background: var(--accent); color: #fff; font-weight: 700; padding: 0.35rem 0.8rem; border-radius: var(--radius); cursor: pointer; }
.prod .add:disabled { opacity: 0.5; cursor: default; }

/* book-mode services */
.svc { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.svc strong { display: block; font-size: 1.05rem; }
.svc .detail { color: var(--muted); font-size: 0.9rem; }
.svc .right { text-align: right; white-space: nowrap; }
.svc .amt { display: block; font-weight: 700; }
.svc .book { display: inline-block; margin-top: 0.3rem; border: 1.5px solid var(--brand); color: var(--brand); border-radius: 999px; padding: 0.25rem 0.85rem; font-weight: 700; font-size: 0.85rem; text-decoration: none; }

.about { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.about h2 { margin: 0 0 0.5rem; font-weight: 600; color: var(--accent); }
.about p { margin: 0 0 0.8rem; max-width: 36rem; }
.foot { color: var(--muted); font-size: 0.9rem; text-align: center; padding: 1.5rem 1rem 7rem; }
.foot p { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; margin: 0; }
.foot strong { color: var(--ink); }
.foot a { color: var(--brand); font-weight: 600; }
.foot .social { gap: 1.25rem; margin-bottom: 0.6rem; }
.foot .social:empty { display: none; }
.ico-social { width: 1.6rem; height: 1.6rem; fill: var(--brand); display: block; }
.svc .extras { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }

.topbar { display: none; }

/* cart + sheets */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 35%); }
.btn { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; max-width: 40rem; margin: 0 auto; border: 0; cursor: pointer; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 1.05rem; padding: 0.95rem 1.2rem; border-radius: var(--radius); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.count { background: var(--accent); color: #fff; border-radius: 999px; min-width: 1.6rem; padding: 0 0.45rem; text-align: center; }
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); color: var(--ink); width: 100%; max-width: 40rem; max-height: 90vh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; animation: rise 0.22s ease-out; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-head { padding: 1rem 1.1rem 0.5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.sheet-head h2 { margin: 0; font-size: 1.35rem; }
.sheet-head p { margin: 0.2rem 0 0; color: var(--muted); }
.close { border: 0; background: var(--bg); width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; flex-shrink: 0; }
.sheet-body { overflow-y: auto; padding: 0 1.1rem 1rem; }
.sheet-foot { padding: 0.75rem 1.1rem calc(0.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
fieldset { border: 0; padding: 0; margin: 1rem 0 0; }
legend { font-weight: 700; font-size: 1.05rem; }
.rule { font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-left: 0.4rem; }
.rule.req { color: var(--accent); font-weight: 600; }
.opt { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt-out { cursor: not-allowed; opacity: 0.65; }
.opt-out .label { text-decoration: line-through; text-decoration-color: var(--muted); }
.out-tag { text-decoration: none; display: inline-block; color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
fieldset.panel { background: var(--bg); border-radius: var(--radius); padding: 0 0.85rem 0.6rem; margin-top: 1.25rem; }
fieldset.panel legend { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.95rem; }
fieldset.panel .opt:last-child { border-bottom: 0; }
.opt input { width: 1.25rem; height: 1.25rem; accent-color: var(--brand); margin: 0; }
.opt .label { flex: 1; }
.opt .add { color: var(--muted); font-size: 0.9rem; }
.how-many { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0 0.2rem; font-weight: 700; font-size: 1.05rem; }
.opt.mix { cursor: default; }
.opt.mix .label { flex: 1; }
.qty.small button { width: 2rem; height: 2rem; font-size: 1rem; }
.qty.small output { min-width: 1.2rem; }
.qty { display: flex; align-items: center; gap: 0.75rem; }
.qty button { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 1.2rem; cursor: pointer; }
.qty output { min-width: 1.5rem; text-align: center; font-weight: 700; }
.foot-row { display: flex; gap: 0.75rem; align-items: center; }
.foot-row .btn { flex: 1; }
.line { padding: 0.85rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; }
.line h3 { margin: 0; font-size: 1rem; }
.line .mods { color: var(--muted); font-size: 0.9rem; margin: 0; }
.line .qty { grid-column: 1 / -1; }
.line .qty button { width: 2rem; height: 2rem; font-size: 1rem; }
.who { display: block; margin-bottom: 0.6rem; }
.who span { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.95rem; }
.who .opt-note { display: inline; font-weight: 400; color: var(--muted); }
.who input, .who textarea { width: 100%; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.7rem; font: inherit; resize: vertical; }
.batch-note { color: var(--muted); font-size: 0.85rem; }
.item-note { margin-top: 1rem; }
.line .note { font-style: italic; }
.totals { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; padding-top: 1rem; }
.fine { color: var(--muted); font-size: 0.85rem; margin: 0.25rem 0 0; }
.notice { margin: 0.75rem 0 0; padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--bg); font-size: 0.9rem; }

/* ============ 1. Street (food truck) ============ */
.tpl-street {
  --bg: #EEF3E2; --surface: #FFFFFF; --ink: #1F2A1F; --muted: #56634F; --line: #CFDABF; --on-brand: #FFFFFF;
  --tile-bg: #F2E3B8; --tile-ink: #7B3F2A; --radius: 14px;
  --font-display: "Bungee", Impact, "Arial Black", sans-serif; --font-body: "Figtree", system-ui, sans-serif;
  --hero-fallback: radial-gradient(circle at 25% 70%, #F2A900 0 6%, transparent 7%), linear-gradient(160deg, #3A5A40 0%, #7B3F2A 55%, #2B1E16 100%);
  --hero-overlay: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.5));
}
.tpl-street .hero { min-height: 21rem; display: grid; place-items: center; text-align: center; padding: 3rem 1rem 4rem; color: #fff; }
.tpl-street .hero-text { max-width: 30rem; text-shadow: 0 2px 12px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.8); }
.tpl-street .hero h1 { font-weight: 400; font-size: clamp(2.2rem, 11vw, 4rem); line-height: 0.95; }
.tpl-street .hero p { margin: 0.5rem 0 0; font-weight: 600; }
.tpl-street .hero-actions { display: none; }
.tpl-street .location { order: 1; background: var(--surface); border: 2px solid var(--brand); border-radius: 16px; padding: 1rem 1.1rem; margin-top: -2rem; position: relative; }
.tpl-street .location h2 { font-family: var(--font-body); font-size: 1.15rem; margin: 0.2rem 0 0; }
.tpl-street .items h2 { font-weight: 400; color: var(--brand); font-size: 1.35rem; }
.tpl-street .about h2 { font-weight: 400; }
.tpl-street .row .dots { display: none; }
.tpl-street .row .top { justify-content: space-between; }

/* ============ 2. Mesa (restaurant) ============ */
.tpl-mesa {
  --bg: #1E231B; --surface: #262C22; --ink: #ECE4D2; --muted: #B7AE98; --line: #3A4234; --on-brand: #1E231B;
  --tile-bg: #333A2D; --tile-ink: #C9A45C; --radius: 10px;
  --font-display: "Cormorant Garamond", Georgia, serif; --font-body: "Mulish", system-ui, sans-serif;
  --hero-fallback: radial-gradient(ellipse at 50% 30%, rgba(255,196,120,0.55), transparent 45%), radial-gradient(circle at 20% 60%, rgba(140,58,70,0.6), transparent 35%), linear-gradient(180deg, #4A3A28 0%, #2A2418 60%, #1E231B 100%);
  --hero-overlay: linear-gradient(rgba(0,0,0,0.25) 0%, rgba(30,35,27,0.35) 45%, #1E231B 100%);
}
.tpl-mesa .hero { min-height: 78vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 2rem 1.25rem 3.5rem; }
.tpl-mesa .hero h1 { font-weight: 500; font-size: clamp(3rem, 15vw, 6.5rem); line-height: 0.9; }
.tpl-mesa .hero p { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--muted); margin: 0.75rem 0 1.5rem; }
.tpl-mesa .hero-actions { justify-content: center; }
.tpl-mesa .hero-actions a { border: 1px solid var(--brand); color: var(--brand); padding: 0.75rem 1.6rem; border-radius: 999px; font-weight: 600; }
.tpl-mesa .hero-actions a.secondary { border-color: transparent; color: var(--ink); }
.tpl-mesa .items h2 { font-size: 2.1rem; text-align: center; color: var(--brand); margin-top: 1rem; }
.tpl-mesa .cats a { background: transparent; }
.tpl-mesa .row { background: transparent; border: 0; padding: 0.4rem 0; grid-template-columns: 1fr; }
.tpl-mesa .row .tile { display: none; }
.tpl-mesa .row .name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.tpl-mesa .row .dots { border-bottom: 1px dotted var(--muted); transform: translateY(-0.3rem); }
.tpl-mesa .row .price { color: var(--brand); }
.tpl-mesa .about { text-align: center; border-top-color: var(--line); }
.tpl-mesa .about h2 { font-size: 2rem; color: var(--brand); }
.tpl-mesa .about p { margin-left: auto; margin-right: auto; }
.tpl-mesa .location { background: var(--surface); text-align: center; padding: 2rem 1.25rem; margin: 2rem -1rem 0; }
.tpl-mesa .location h2 { font-size: 2rem; font-weight: 600; color: var(--brand); margin: 0.2rem 0; }
.tpl-mesa .location .loc-hours { color: var(--ink); font-weight: 600; }

/* ============ 3. Market (retail) ============ */
.tpl-market {
  --bg: #FFFFFF; --surface: #FFFFFF; --ink: #14323A; --muted: #56727A; --line: #14323A; --on-brand: #FFFFFF;
  --tile-bg: #DCEBE6; --tile-ink: #14323A; --radius: 0px;
  --font-display: "Syne", system-ui, sans-serif; --font-body: "Manrope", system-ui, sans-serif;
  --hero-fallback: radial-gradient(circle at 75% 35%, #F6C9A8 0 14%, transparent 15%), radial-gradient(circle at 30% 55%, #9CC7B9 0 20%, transparent 21%), linear-gradient(135deg, #DCEBE6, #6E9C93);
  --hero-overlay: linear-gradient(0deg, rgba(20,50,58,0.75), transparent 60%);
}
.tpl-market .topbar { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.25rem; border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 8; background: var(--bg); }
.tpl-market .topbar strong { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.tpl-market .topbar-bag { border: 2px solid var(--ink); background: transparent; padding: 0.35rem 0.8rem; font-weight: 700; cursor: pointer; }
.tpl-market .hero { min-height: 26rem; display: flex; align-items: flex-end; padding: 1.5rem 1.25rem; color: #fff; }
.tpl-market .hero h1 { font-weight: 800; font-size: clamp(2.6rem, 13vw, 6rem); line-height: 0.92; max-width: 12ch; }
.tpl-market .hero p { margin: 0.6rem 0 1rem; font-weight: 600; max-width: 30rem; }
.tpl-market .hero-actions a { background: #fff; color: var(--ink); padding: 0.6rem 1.1rem; }
.tpl-market .hero-actions a.secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.tpl-market .page { max-width: 64rem; }
.tpl-market .cats { top: 3.6rem; }
.tpl-market .cats a { border-radius: 0; border-width: 2px; }
.tpl-market .items h2 { font-weight: 800; font-size: 1.6rem; }
.tpl-market .location { border: 2px solid var(--ink); padding: 1.25rem; margin-top: 2.5rem; }
.tpl-market .location h2 { margin: 0.2rem 0; font-weight: 800; }
.tpl-market .location .loc-hours { color: var(--ink); }
.tpl-market .about h2 { font-weight: 800; color: var(--ink); }
.tpl-market .about { border-top-width: 2px; }

/* ============ 4. Studio (salon) ============ */
.tpl-studio {
  --bg: #F1ECF7; --surface: #FFFFFF; --ink: #2E1A3B; --muted: #6B5A77; --line: rgba(75,42,94,0.18); --on-brand: #FFFFFF;
  --tile-bg: #E3D8EE; --tile-ink: #4B2A5E; --radius: 20px;
  --font-display: "Fraunces", Georgia, serif; --font-body: "Manrope", system-ui, sans-serif;
  --hero-fallback: radial-gradient(circle at 60% 30%, #F7D9C4 0 18%, transparent 19%), radial-gradient(ellipse at 55% 75%, #5B3A2A 0 32%, transparent 33%), linear-gradient(160deg, #CDB8DE, #8FA98C);
}
.tpl-studio .hero { background-image: none; display: grid; gap: 1.5rem; padding: 2rem 1.25rem 1rem; max-width: 60rem; margin: 0 auto; align-items: center; }
@media (min-width: 44rem) { .tpl-studio .hero { grid-template-columns: 1.1fr 1fr; padding-top: 3.5rem; } .tpl-studio .hero-photo { order: 2; } }
.tpl-studio .hero-photo { display: block; aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; max-width: 22rem; width: 100%; justify-self: center; background-image: var(--hero-img), var(--hero-fallback); background-size: cover; background-position: center; }
.tpl-studio .hero h1 { font-weight: 400; font-size: clamp(2.5rem, 11vw, 4.4rem); line-height: 1; color: var(--brand); }
.tpl-studio .hero p { color: var(--muted); font-size: 1.1rem; margin: 0.9rem 0 1.4rem; max-width: 26rem; }
.tpl-studio .hero-actions a.primary { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 0.85rem 1.6rem; }
.tpl-studio .hero-actions a.secondary { color: var(--brand); padding: 0.85rem 0.4rem; }
.tpl-studio .items h2 { font-size: 1.8rem; color: var(--brand); }
.tpl-studio .location { background: var(--surface); border-radius: 24px; padding: 1.4rem; margin-top: 2rem; }
.tpl-studio .location h2 { margin: 0.2rem 0; font-size: 1.4rem; font-weight: 600; color: var(--brand); }
.tpl-studio .about h2 { color: var(--brand); }

/* ============ 5. Ledger (professional) ============ */
.tpl-ledger {
  --bg: #F3F6FA; --surface: #FFFFFF; --ink: #14233B; --muted: #54627A; --line: #D5DDE8; --on-brand: #FFFFFF;
  --tile-bg: #E3EAF4; --tile-ink: #17325C; --radius: 6px;
  --font-display: "Source Serif 4", Georgia, serif; --font-body: "Source Sans 3", system-ui, sans-serif;
  --hero-fallback: radial-gradient(circle at 80% 40%, #E8D5B0 0 12%, transparent 13%), linear-gradient(135deg, #5B6E8C, #2A3E5E);
  --hero-overlay: linear-gradient(90deg, rgba(20,35,59,0.95) 0%, rgba(20,35,59,0.82) 55%, rgba(20,35,59,0.3) 100%);
}
.tpl-ledger .hero { color: #fff; padding: 3.5rem 1.25rem 3rem; }
.tpl-ledger .hero-text { max-width: 60rem; margin: 0 auto; }
.tpl-ledger .hero h1 { font-weight: 600; font-size: clamp(2.1rem, 9vw, 3.6rem); line-height: 1.08; max-width: 16ch; }
.tpl-ledger .hero p { font-size: 1.15rem; margin: 1rem 0 1.5rem; max-width: 32rem; opacity: 0.92; }
.tpl-ledger .hero-actions a.primary { background: var(--accent); color: #14233B; padding: 0.85rem 1.3rem; border-radius: 6px; }
.tpl-ledger .hero-actions a.secondary { color: #fff; border: 1.5px solid rgba(255,255,255,0.7); padding: 0.85rem 1.3rem; border-radius: 6px; font-weight: 600; }
.tpl-ledger .page { max-width: 60rem; }
.tpl-ledger .items h2 { font-size: 1.8rem; }
.tpl-ledger .items section > div { display: grid; gap: 1rem; }
@media (min-width: 44rem) { .tpl-ledger .items section > div { grid-template-columns: repeat(3, 1fr); } }
.tpl-ledger .svc { background: var(--surface); border-top: 4px solid var(--brand); border-bottom: 0; padding: 1.2rem; flex-direction: column; align-items: stretch; }
.tpl-ledger .svc .right { text-align: left; display: flex; justify-content: space-between; align-items: center; }
.tpl-ledger .svc .amt { color: var(--brand); }
.tpl-ledger .svc .book { border-radius: 6px; margin-top: 0; }
.tpl-ledger .location { background: var(--surface); padding: 1.4rem; margin-top: 2.5rem; }
.tpl-ledger .location h2 { margin: 0.2rem 0; font-size: 1.4rem; font-weight: 600; }
.tpl-ledger .about h2 { color: var(--ink); }
