/* Garage directory and digital business cards. Builds on app.css tokens. */

.pub-main { position: relative; max-width: 640px; margin: 0 auto; padding: 8px 16px 40px; }
.pub-nav { display: flex; gap: 4px; margin-left: auto; }
.pub-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 550; }
.pub-nav a:hover { background: rgba(14, 16, 20, .05); color: var(--ink); }
.pub-nav a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 420px) { .pub-nav a:last-child { display: none; } }

/* ---------- The card ---------- */
.gc { background: var(--surface); border-radius: 16px; overflow: hidden; margin-top: 18px;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(17, 19, 24, .04), 0 30px 70px -40px rgba(17, 19, 24, .35); }


.gc-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 550; background: var(--canvas); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.gc-chip--ai { background: #EFEDFF; color: #4A3DC4; box-shadow: none; }

.gc-open { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--canvas); color: var(--ink-2); }
.gc-open__dot { width: 8px; height: 8px; border-radius: 50%; background: #9AA0A8; }
.gc-open--yes { background: var(--success-bg); color: var(--success); }
.gc-open--yes .gc-open__dot { background: #18A47E; box-shadow: 0 0 0 3px rgba(24, 164, 126, .18); }
.gc-open--sm { padding: 2px 9px; font-size: 12.5px; }

.gc-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; padding: 16px 18px 4px; }
.gc-action { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; background: var(--canvas); transition: background .15s var(--ease), transform .15s var(--ease); }
.gc-action:hover { background: var(--sunken); }
.gc-action:active { transform: scale(.97); }
.gc-action__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.gc-action__icon--wa { color: #0F7A55; }

.gc-cta { padding: 14px 18px 6px; display: grid; gap: 8px; }
.gc-cta .btn { justify-content: center; gap: 8px; }
.gc-note { margin: 2px 2px 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.gc-sec { margin: 0 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.gc-sec h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #C2410C; margin: 0 0 10px; font-weight: 650; }
.gc-about { margin: 0; color: var(--ink-2); }
.gc-small { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.gc-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gc-tags li { padding: 5px 11px; border-radius: 8px; background: var(--canvas); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }

.gc-sec--flush { margin: 0; padding-left: 18px; padding-right: 0; border-top: 0; }
.gc-sec--flush h2 { border-top: 1px solid var(--line); padding-top: 18px; margin-right: 18px; }
.gc-photos { list-style: none; margin: 0; padding: 0 18px 4px 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gc-photos::-webkit-scrollbar { display: none; }
.gc-photos:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gc-photos li { flex: 0 0 72%; scroll-snap-align: start; }
.gc-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; background: var(--sunken); }

.gc-hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.gc-hours th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 6px 0; }
.gc-hours td { text-align: right; padding: 6px 0; font-variant-numeric: tabular-nums; }
.gc-hours .is-today th, .gc-hours .is-today td { font-weight: 650; color: var(--ink); }
.gc-hours .is-today th::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin: 0 8px 2px 0; }

.gc-addr { margin: 0 0 10px; }
.gc-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gc-social a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; background: var(--canvas); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 550; }
.gc-social a:hover { background: var(--sunken); }

.gc-share__row { display: flex; gap: 16px; align-items: center; }
.gc-qr { width: 132px; height: 132px; border-radius: 12px; background: #fff; padding: 6px; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.gc-share__btns { display: grid; gap: 8px; flex: 1; }
.gc-legal { margin: 0; padding: 16px 22px 20px; font-size: 12.5px; color: var(--muted); background: var(--canvas); border-top: 1px solid var(--line); }

.gc-promo { margin: 18px 0 0; padding: 16px 18px; border-radius: 12px; background: #EFEDFF; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.gc-promo p { margin: 0; flex: 1 1 260px; font-size: 14.5px; color: #2D2770; }

/* ---------- Directory ---------- */
.dir-hero { padding: 12px 0 4px; }
.dir-hero h1 { font-size: clamp(26px, 7vw, 38px); letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 6px; }
.dir-hero .lead { margin: 0 0 16px; }
.dir-search__box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px -20px rgba(17, 19, 24, .35); color: var(--muted); }
.dir-search__box:focus-within { box-shadow: inset 0 0 0 2px var(--focus), 0 12px 30px -20px rgba(17, 19, 24, .35); }
.dir-search__box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 8px 0; box-shadow: none; }
.dir-search__box .btn { flex: none; }
.dir-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.dir-seg { display: inline-flex; border: 0; margin: 0; padding: 3px; border-radius: 11px; background: var(--sunken); gap: 2px; }
.dir-seg label { position: relative; }
.dir-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dir-seg span { display: block; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.dir-seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17, 19, 24, .1); }
.dir-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.dir-select { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 10px; border: 0; background: var(--sunken); color: var(--ink); }

.dir-meta { margin: 18px 2px 10px; font-size: 14px; color: var(--ink-2); }
.dir-meta span { color: var(--muted); }
.dir-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.logo-tile { flex: none; width: 80px; height: 80px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; font-weight: 700; font-size: 26px; color: #5243D1; background: linear-gradient(135deg, #EFEDFF, #FFF1DE); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* ---------- Garage's editor ---------- */
.cardplan { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; margin: 16px 0 6px; background: #EFEDFF; }
.cardplan--pro { background: var(--success-bg); }
.cardplan > div { flex: 1 1 300px; }
.cardplan__k { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; color: #4A3DC4; }
.cardplan--pro .cardplan__k { color: var(--success); }
.cardplan__v { margin: 0; }
.cardplan__price { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.locked { border: 0; margin: 0; padding: 0; min-width: 0; }
.locked:disabled { opacity: .55; }
.hours-grid { display: grid; gap: 6px; }
.hours-row { display: grid; grid-template-columns: 96px 1fr auto 1fr auto; gap: 8px; align-items: center; }
.hours-row select { min-width: 0; width: 100%; font: inherit; font-size: 15px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--control); background: #fff; color: var(--ink); }
.hours-row select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.hours-row__day { font-weight: 550; }
.choice--inline { margin: 0; white-space: nowrap; }
@media (max-width: 520px) { .hours-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 6px; } .hours-row__day { grid-column: 1 / -1; margin-top: 6px; } }
.media-row { display: flex; gap: 16px; align-items: flex-start; }
.photo-grid { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.photo-grid .choice { margin-top: 4px; font-size: 13px; }
.nfc-box { display: flex; gap: 18px; align-items: flex-start; }
.nfc-box p { margin: 0 0 8px; }
@media (max-width: 520px) { .nfc-box { flex-direction: column; } }
.nfc-order { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.nfc-order label { font-weight: 600; }
.nfc-order .hint { flex-basis: 100%; }

@media (prefers-reduced-motion: reduce) { .gc-action, .bc { transition: none; } }

/* ---------- Card checklist (garage's editor) ---------- */
.progress-card { margin: 14px 0 8px; padding: 16px 18px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.progress-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.progress-card h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; margin: 12px 0; }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFB21A, #FF7A00); }
.progress-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; font-size: 14px; color: var(--ink-2); }
.progress-list li { display: flex; align-items: center; gap: 8px; }
.progress-list li.is-done { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(14, 16, 20, .25); }
.progress-list__tick { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--control); }
.is-done .progress-list__tick { background: var(--success); color: #fff; box-shadow: none; }
.progress-card .hint { display: block; margin-top: 10px; }

/* ---------- Printable QR poster (A4) ---------- */
.poster-page { background: var(--canvas); }
.poster-page::before { display: none; }
.poster-tools { max-width: 210mm; margin: 20px auto 12px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.poster-tools p { margin: 0; color: var(--ink-2); }
.poster { width: 210mm; min-height: 297mm; margin: 0 auto 40px; padding: 22mm 18mm 14mm; background: #fff; box-shadow: 0 20px 60px -30px rgba(17, 19, 24, .4);
  display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden; }
.poster::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 70mm;
  background: radial-gradient(90mm 60mm at 15% 0%, #FFD9A8, transparent 70%), radial-gradient(90mm 60mm at 90% 0%, #DCD5FF, transparent 70%); }
.poster > * { position: relative; }
.poster__logo { width: 34mm; height: 34mm; border-radius: 9mm; overflow: hidden; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1.4mm #fff, 0 0 0 1.7mm var(--line); }
.poster__logo img { width: 100%; height: 100%; object-fit: contain; }
.poster__logo span { width: 100%; height: 100%; display: grid; place-items: center; font-size: 15mm; font-weight: 700; color: #5243D1; background: linear-gradient(135deg, #EFEDFF, #FFF1DE); }
.poster h1 { font-size: 15mm; line-height: 1.05; letter-spacing: -.03em; margin: 8mm 0 2mm; max-width: 170mm; }
.poster__kind { margin: 0; font-size: 6mm; color: var(--muted); }
.poster__ask { margin: 12mm 0 6mm; font-size: 11mm; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.poster__qr { width: 92mm; height: 92mm; padding: 4mm; border-radius: 6mm; box-shadow: inset 0 0 0 .6mm var(--line); }
.poster__steps { margin: 7mm 0 2mm; font-size: 5.5mm; color: var(--ink-2); }
.poster__link { margin: 0; font-family: var(--mono); font-size: 5mm; color: var(--muted); }
.poster__brand { margin: auto 0 0; padding-top: 8mm; font-size: 4mm; color: var(--muted); }
@page sheet { size: A4; margin: 0; }
.poster, .print-sheet { page: sheet; }
@media print {
  .poster-page { background: #fff; }
  .poster-tools { display: none; }
  .poster { margin: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media screen and (max-width: 820px) { .poster { zoom: .46; } }
.dir-toggle { position: relative; display: inline-flex; }
.dir-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dir-toggle span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; background: var(--sunken); font-size: 14px; font-weight: 550; color: var(--ink-2); }
.dir-toggle span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9AA0A8; }
.dir-toggle input:checked + span { background: var(--success-bg); color: var(--success); }
.dir-toggle input:checked + span::before { background: #18A47E; box-shadow: 0 0 0 3px rgba(24, 164, 126, .18); }
.dir-toggle input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.hours-row .choice--inline { padding: 8px 10px; gap: 6px; font-size: 14px; }
@media (max-width: 520px) { .hours-row select { padding: 9px 4px 9px 8px; font-size: 14.5px; } }

/* Ask box on the card: the AI-first way in. */
.gc-ask { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #FFF6E8, #F3F0FF); box-shadow: inset 0 0 0 1px rgba(91, 79, 214, .14); }
.gc-ask__label { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; }
.gc-ask__ai { font: 600 11px/1 var(--mono); letter-spacing: .06em; color: #4A3DC4; background: #fff; padding: 4px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(91, 79, 214, .25); }
.gc-ask textarea { width: 100%; resize: none; font: inherit; font-size: 16px; line-height: 1.45; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--control); background: #fff; color: var(--ink); min-height: 66px; }
.gc-ask textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }

/* Town pages */
.dir-crumb { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.dir-crumb a { color: var(--ink-2); }
.dir-towns { margin: 26px 0 0; }
.dir-towns h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #C2410C; margin: 0 0 10px; font-weight: 650; }
.dir-towns ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dir-towns a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 550; }
.dir-towns a:hover { box-shadow: inset 0 0 0 1px rgba(14, 16, 20, .2); }
.dir-towns a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
.dir-towns a span { font: 500 12px/1 var(--mono); color: var(--muted); }
.dir-towns a[aria-current="page"] span { color: rgba(255, 255, 255, .7); }

/* ---------- Business card (listing + top of the card page) ---------- */
.bc { --bc-bg: #FFFDF8; --bc-ink: var(--ink); --bc-sub: var(--ink-2); --bc-accent: #FFB21A; --bc-accent-2: #E06A00; --bc-line: rgba(14, 16, 20, .1); --bc-logo: #fff;
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; box-sizing: border-box;
  aspect-ratio: 1.75 / 1; padding: 18px 18px 16px; border-radius: 12px; color: var(--bc-ink); text-decoration: none; background: var(--bc-bg);
  box-shadow: inset 0 0 0 1px rgba(14, 16, 20, .07), 0 1px 1px rgba(17, 19, 24, .05), 0 2px 4px -2px rgba(17, 19, 24, .08), 0 16px 32px -22px rgba(17, 19, 24, .45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
[data-tone="amber"] { --bc-bg: #FFF1D6; --bc-accent: #FFB21A; --bc-accent-2: #E06A00; --bc-sub: #5A4630; }
[data-tone="violet"] { --bc-bg: #EFEDFF; --bc-accent: #8B7CFF; --bc-accent-2: #5243D1; --bc-sub: #3F3A6B; }
[data-tone="teal"] { --bc-bg: #E2F3EC; --bc-accent: #3CC39A; --bc-accent-2: #0F6E58; --bc-sub: #2F4F45; }
[data-tone="sky"] { --bc-bg: #E7EFFB; --bc-accent: #6E9CE6; --bc-accent-2: #2556A8; --bc-sub: #34465F; }
[data-tone="coral"] { --bc-bg: #FDE9E2; --bc-accent: #F58A62; --bc-accent-2: #C2410C; --bc-sub: #5A3B31; }
[data-tone="night"] { --bc-bg: #16181D; --bc-ink: #FFFFFF; --bc-sub: rgba(255, 255, 255, .74); --bc-accent: #FFB21A; --bc-accent-2: #FF7A00; --bc-line: rgba(255, 255, 255, .14); --bc-logo: #23262D; }
a.bc:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(14, 16, 20, .1), 0 2px 4px -2px rgba(17, 19, 24, .1), 0 26px 44px -24px rgba(17, 19, 24, .55); }
a.bc:active { transform: translateY(0) scale(.995); }
a.bc:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.bc > * { position: relative; z-index: 1; flex-shrink: 0; }
.bc > .bc__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.bc__orb { position: absolute; top: -44px; right: -44px; width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle at 30% 70%, var(--bc-accent), var(--bc-accent-2)); }
.bc__orb::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1.5px solid var(--bc-accent-2); opacity: .25; }
.bc__top { display: flex; gap: 12px; align-items: center; padding-right: 44px; }
.bc__logo { flex: none; width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; background: var(--bc-logo);
  font-weight: 750; font-size: 17px; letter-spacing: -.02em; color: var(--bc-accent-2); box-shadow: inset 0 0 0 1px var(--bc-line), 0 4px 10px -6px rgba(17, 19, 24, .4); }
.bc[data-tone="night"] .bc__logo { color: var(--bc-accent); }
.bc__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bc__who { display: grid; gap: 3px; min-width: 0; }
.bc__name { margin: 0; font-size: 17px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--bc-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc__kind { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--bc-sub); }
.bc__tag { margin: 0; font-size: 14px; line-height: 1.4; color: var(--bc-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--bc-line); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.bc__lines { display: grid; gap: 3px; min-width: 0; }
.bc__line { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 550; color: var(--bc-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc__line svg { flex: none; color: var(--bc-accent-2); }
.bc[data-tone="night"] .bc__line svg { color: var(--bc-accent); }
.bc__jobs { font-size: 12.5px; color: var(--bc-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc__open { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: rgba(255, 255, 255, .75); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc[data-tone="night"] .bc__open { background: rgba(255, 255, 255, .08); color: var(--bc-sub); }
.bc__open.is-open { background: var(--success-bg); color: var(--success); box-shadow: none; }
.bc__dot { width: 7px; height: 7px; border-radius: 50%; background: #9AA0A8; }
.bc__open.is-open .bc__dot { background: #18A47E; box-shadow: 0 0 0 3px rgba(24, 164, 126, .2); }

/* The big one at the top of a card page */
.gc-hero { padding: 14px 0 0; }
.bc--lg { max-width: 560px; margin: 0 auto; padding: 24px 24px 20px; gap: 12px; border-radius: 16px; }
.bc--lg .bc__orb { width: 150px; height: 150px; top: -62px; right: -62px; }
.bc--lg .bc__top { padding-right: 64px; gap: 14px; }
.bc--lg .bc__logo { width: 64px; height: 64px; border-radius: 15px; font-size: 24px; }
.bc--lg .bc__name { font-size: clamp(22px, 5.6vw, 28px); line-height: 1.12; letter-spacing: -.03em; -webkit-line-clamp: 3; }
.bc--lg .bc__kind { font-size: 12px; }
.bc--lg .bc__tag { font-size: 15.5px; -webkit-line-clamp: 3; }
.bc--lg .bc__line { font-size: 14.5px; }
.bc--lg .bc__open { font-size: 12.5px; padding: 4px 10px; }
@media (max-width: 420px) { .bc--lg .bc__foot { flex-direction: column; align-items: flex-start; } .bc--lg .bc__top { padding-right: 52px; } }

/* Directory: a grid of cards, like a card wallet */
.pub-main:has(.dir) { max-width: 1000px; }
.dir-hero, .dir > .alert, .dir-meta { max-width: 640px; }
.dir-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.dir-list > li { display: grid; min-width: 0; }
.dir-list > li > .bc { align-self: stretch; }

/* Editor: choose your card colour, with a live preview */
.bc-preview { margin: 6px 0 16px; max-width: 420px; }
.bc-swatches { display: flex; flex-wrap: wrap; gap: 12px; border: 0; margin: 0 0 6px; padding: 0; }
.bc-swatches legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.bc-swatch { position: relative; display: grid; justify-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.bc-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bc-swatch .bc { aspect-ratio: auto; width: 44px; height: 44px; padding: 0; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(14, 16, 20, .14); }
.bc-swatch .bc__orb { width: 30px; height: 30px; top: -10px; right: -10px; }
.bc-swatch .bc__orb::after { display: none; }
.bc-swatch input:checked + .bc { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--amber-2); }
.bc-swatch input:focus-visible + .bc { outline: 2px solid var(--focus); outline-offset: 5px; }
@media (max-width: 520px) { .bc-swatches { gap: 7px; } .bc-swatch { font-size: 11.5px; } .bc-swatch .bc { width: 36px; height: 36px; } }

/* ---------- Card back (QR) and flip on the card page ---------- */
.bc--back { flex-direction: row; align-items: center; gap: 18px; }
.bc__qr { flex: none; width: 38%; max-width: 150px; aspect-ratio: 1; padding: 6px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc__back-text { display: grid; gap: 6px; min-width: 0; flex: 1 1 auto; }
.bc__back-text p { margin: 0; }
.bc__back-ask { font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; color: var(--bc-ink); }
.bc__back-link { font: 600 13.5px/1.3 var(--mono); color: var(--bc-ink); overflow-wrap: normal; word-break: normal; }
.bc__back-brand { font-size: 12px; color: var(--bc-sub); }
.bc--lg.bc--back { padding: 24px; }
.bc--lg .bc__back-ask { font-size: clamp(17px, 4.6vw, 22px); }

.bc-flip { max-width: 560px; margin: 0 auto; perspective: 1400px; }
.bc-flip__inner { position: relative; display: grid; }
.bc-flip__face { grid-area: 1 / 1; min-width: 0; display: grid; }
.bc-flip__face > .bc { align-self: stretch; }
.bc-flip.is-ready .bc-flip__inner { transform-style: preserve-3d; transition: transform .6s var(--ease); }
.bc-flip.is-ready .bc-flip__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bc-flip.is-ready .bc-flip__face--back { transform: rotateY(180deg); }
.bc-flip.is-turned .bc-flip__inner { transform: rotateY(180deg); }
.bc-flip__btn { display: flex; align-items: center; gap: 7px; margin: 10px auto 0; padding: 7px 13px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.bc-flip__btn:hover { background: rgba(14, 16, 20, .05); color: var(--ink); }
.bc-flip__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bc-flip.is-ready .bc-flip__inner { transition: none; } }

/* ---------- Printable sheet: 10 cards (85 x 55 mm) per A4 page ---------- */
.print-sheet { width: 210mm; height: 297mm; margin: 0 auto 30px; padding: 11mm 20mm; box-sizing: border-box; background: #fff; box-shadow: 0 20px 60px -30px rgba(17, 19, 24, .4);
  display: grid; grid-template-columns: repeat(2, 85mm); grid-auto-rows: 55mm; justify-content: center; align-content: start; break-after: page; }
.bc--print { aspect-ratio: auto; width: 85mm; height: 55mm; padding: 4.6mm 4.6mm 4mm; gap: 2mm; border-radius: 0; box-shadow: 0 0 0 .2mm #C9CCD1; transition: none;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bc--print .bc__orb { width: 30mm; height: 30mm; top: -12mm; right: -12mm; }
.bc--print .bc__orb::after { inset: -3.5mm; }
.bc--print .bc__top { gap: 3mm; padding-right: 13mm; }
.bc--print .bc__logo { width: 11mm; height: 11mm; border-radius: 2.6mm; font-size: 4.2mm; box-shadow: inset 0 0 0 .25mm var(--bc-line); }
.bc--print .bc__name { font-size: 4.3mm; }
.bc--print .bc__kind { font-size: 2.3mm; }
.bc--print .bc__tag { font-size: 2.9mm; -webkit-line-clamp: 2; }
.bc--print .bc__foot { padding-top: 1.8mm; border-top-width: .25mm; }
.bc--print .bc__lines { gap: .5mm; }
.bc--print .bc__line { font-size: 2.8mm; gap: 1.4mm; }
.bc--print .bc__line svg { width: 2.8mm; height: 2.8mm; }
.bc--print .bc__jobs { font-size: 2.5mm; }
.bc--print.bc--back { gap: 4mm; padding: 5mm; }
.bc--print .bc__qr { width: 34mm; max-width: none; padding: 1.2mm; border-radius: 1.6mm; box-shadow: none; }
.bc--print .bc__back-text { gap: 1.4mm; }
.bc--print .bc__back-ask { font-size: 3.9mm; }
.bc--print .bc__back-link { font-size: 2.25mm; white-space: nowrap; overflow-wrap: normal; }
.bc--print .bc__back-brand { font-size: 2.3mm; }
@media print {
  .print-sheet { margin: 0; box-shadow: none; }
}
@media screen and (max-width: 820px) { .print-sheet { zoom: .46; } }

/* ---------- Beauty pass: card art, card page layout, details ---------- */
/* Richer card art: wheel-like rings, paper grain, a top-edge highlight and a sheen on hover. */
.bc { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(14, 16, 20, .07), 0 1px 1px rgba(17, 19, 24, .05), 0 2px 4px -2px rgba(17, 19, 24, .08), 0 18px 36px -24px rgba(17, 19, 24, .5); }
[data-tone="night"].bc { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 1px rgba(17, 19, 24, .1), 0 2px 4px -2px rgba(17, 19, 24, .2), 0 18px 36px -22px rgba(17, 19, 24, .7); }
.bc__art::before { content: ""; position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 100% 0, transparent 0 13px, color-mix(in srgb, var(--bc-accent-2) 16%, transparent) 13px 14px);
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 0 22%, transparent 55%); mask-image: radial-gradient(circle at 100% 0, #000 0 22%, transparent 55%); }
.bc__art::after { content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-tone="night"] .bc__art::after { mix-blend-mode: screen; opacity: .05; }
.bc__orb { z-index: 1; background: radial-gradient(circle at 30% 72%, color-mix(in srgb, var(--bc-accent) 70%, #fff), var(--bc-accent) 38%, var(--bc-accent-2)); box-shadow: inset 6px -6px 14px rgba(255, 255, 255, .25); }
.bc__orb::after { inset: -10px; opacity: .3; }
a.bc::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 48%, transparent 60%); background-size: 250% 100%; background-position: 130% 0; transition: background-position .7s var(--ease); }
a.bc:hover::after { background-position: -30% 0; }
.bc__kind { display: block; }
.bc__kind::before { content: ""; display: inline-block; vertical-align: middle; margin: -2px 7px 0 0; width: 5px; height: 5px; border-radius: 50%; background: var(--bc-accent-2); }
[data-tone="night"] .bc__kind::before { background: var(--bc-accent); }
.bc--print .bc__kind::before { width: 1.1mm; height: 1.1mm; }
.bc--print .bc__art::after, .bc-swatch .bc__art::before, .bc-swatch .bc__art::after { display: none; }
@media (prefers-reduced-motion: reduce) { a.bc::after { transition: none; } }

/* Card page: a soft glow in the card's colour, and two columns on wide screens. */
.gc-hero { position: relative; isolation: isolate; }
.gc-hero::before { content: ""; position: absolute; z-index: -1; inset: -40px -60px -30px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bc-accent, #FFB21A) 26%, transparent), transparent); }
.gc-contact { padding-bottom: 14px; }
.gc-contact .gc-cta { padding-bottom: 4px; }
.gc-details { margin-top: 14px; }
.gc-details > .gc-sec:first-child { border-top: 0; margin-top: 0; }
.gc-details > .gc-sec--flush:first-child h2 { border-top: 0; }
.gc-tags li { display: inline-flex; align-items: center; gap: 7px; }
.gc-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bc-accent-2, var(--amber-2)); flex: none; }
.gc-hours tr.is-today th, .gc-hours tr.is-today td { background: #FFF6E6; }
.gc-hours tr.is-today th { border-radius: 8px 0 0 8px; padding-left: 10px; }
.gc-hours tr.is-today td { border-radius: 0 8px 8px 0; padding-right: 10px; }
.gc-hours tr.is-today th::before { margin-left: 0; }
@media (min-width: 940px) {
  .pub-main:has(.gc-page) { max-width: 1080px; }
  .gc-page { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .gc-page .bc--lg, .gc-page .bc-flip { max-width: none; }
  .gc-details { margin-top: 14px; }
}
@media (min-width: 940px) and (min-height: 820px) { .gc-lead { position: sticky; top: 16px; } }

/* Directory: a fanned stack of cards beside the heading on wide screens. */
.dir { position: relative; }
.dir-art { display: none; }
@media (min-width: 940px) {
  .dir-art { display: block; position: absolute; top: 18px; right: 10px; width: 300px; height: 230px; pointer-events: none; }
  .dir-art__card { position: absolute; top: 30px; right: 20px; width: 240px; aspect-ratio: 1.75 / 1; padding: 0; transform-origin: 70% 120%; }
  .dir-art__card:nth-child(1) { transform: rotate(-14deg) translate(-36px, 8px); }
  .dir-art__card:nth-child(2) { transform: rotate(-6deg) translate(-14px, 2px); }
  .dir-art__card:nth-child(3) { transform: rotate(3deg); }
  .dir-art__logo { position: absolute; left: 18px; top: 20px; width: 34px; height: 34px; border-radius: 9px; background: #23262D; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
  .dir-art__line { position: absolute; left: 18px; bottom: 34px; width: 120px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .5); }
  .dir-art__line--short { bottom: 20px; width: 72px; background: rgba(255, 255, 255, .25); }
}
@media (max-width: 1199px) { .pub-main { overflow-x: clip; } }

/* ---------- Beauty pass 2 ---------- */
/* Section headings with a small tinted icon. */
.gc-sec h2 { display: flex; align-items: center; gap: 9px; }
.gc-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none;
  color: var(--bc-accent-2, #C2410C); background: color-mix(in srgb, var(--bc-accent, #FFB21A) 16%, #fff); }
[data-tone="night"] .gc-ico { color: #B45309; background: #FFF1D6; }

/* Contact buttons pick up the card colour. */
.gc-action__icon { color: var(--bc-accent-2, var(--ink)); }
[data-tone="night"] .gc-action__icon { color: var(--ink); }
.gc-action__icon--wa { color: #0F7A55; }
.gc-action:hover .gc-action__icon { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc-accent-2, #0E1014) 35%, transparent); }

/* A drawn map tile that opens the real map. */
.gc-map { display: block; margin-top: 12px; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s var(--ease); }
.gc-map:hover { box-shadow: inset 0 0 0 1px rgba(14, 16, 20, .2), 0 12px 26px -18px rgba(17, 19, 24, .45); }
.gc-map:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gc-map__art { position: relative; display: block; height: 128px;
  background:
    radial-gradient(70px 48px at 18% 78%, #CFE8D2 60%, transparent 62%),
    radial-gradient(56px 40px at 86% 20%, #CFE8D2 60%, transparent 62%),
    linear-gradient(90deg, transparent calc(38% - 5px), #fff calc(38% - 5px) calc(38% + 5px), transparent calc(38% + 5px)),
    linear-gradient(0deg, transparent calc(56% - 6px), #fff calc(56% - 6px) calc(56% + 6px), transparent calc(56% + 6px)),
    linear-gradient(28deg, transparent calc(50% - 3px), rgba(255, 255, 255, .9) calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .55) 46px 48px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, .55) 34px 36px),
    #ECE8DF; }
.gc-map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -78%); color: var(--bc-accent-2, #E06A00); filter: drop-shadow(0 4px 6px rgba(17, 19, 24, .3)); }
[data-tone="night"] .gc-map__pin { color: #16181D; }
.gc-map__pin::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 14px; height: 5px; margin-left: -7px; border-radius: 50%; background: rgba(17, 19, 24, .22); }
.gc-map__label { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; font-weight: 600; font-size: 15px; background: #fff; border-top: 1px solid var(--line); }

/* Quick picks under the ask box. */
.gc-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-pick { border: 0; font: inherit; font-size: 13px; font-weight: 550; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--ink-2); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(91, 79, 214, .18); transition: background .15s var(--ease), color .15s var(--ease); }
.gc-pick:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(91, 79, 214, .4); }
.gc-pick:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* Directory cards rise in as they scroll into view. */
.dir-list > li.will-rise { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.dir-list > li.will-rise.is-in { opacity: 1; transform: none; }

/* ---------- Garage's editor: polish ---------- */
.ed-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 14px 0 4px; }
.ed-stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ed-stat__n { font-size: 24px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ed-stat__k { font-size: 12.5px; color: var(--muted); }

.ed-side .bc-preview { max-width: none; }
.ed-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; cursor: pointer; background: #fff;
  border: 1.5px dashed var(--control); transition: border-color .15s var(--ease), background .15s var(--ease); }
.ed-drop:hover { border-color: var(--amber-2); background: #FFFBF4; }
.ed-drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.ed-drop__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #FFF1D6; color: #9C5000; }
.ed-drop__text { display: grid; gap: 2px; min-width: 0; }
.ed-drop__text .hint { margin: 0; }
.ed-drop__file { font-size: 13px; font-weight: 600; color: var(--success); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-drop__file:empty { display: none; }
.ed-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.locked:disabled .ed-drop { cursor: not-allowed; }

.ed-save { position: sticky; bottom: 10px; z-index: 5; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px -18px rgba(17, 19, 24, .45); }
.ed-save__state { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.ed-save__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #18A47E; }
.is-dirty .ed-save__state { color: var(--warning); font-weight: 600; }
.is-dirty .ed-save__state::before { background: var(--amber-2); box-shadow: 0 0 0 3px rgba(255, 122, 0, .18); }

.nfc-order { padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.nfc-order select { font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--control); background: #fff; }

@media (min-width: 1040px) {
  .wrap:has(.ed-form) { max-width: 1120px; }
  .ed-form { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
  .ed-main { grid-column: 1; grid-row: 1; min-width: 0; }
  .ed-side { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }
}
.ed-save .btn { white-space: nowrap; flex: none; }

/* "Use my location" */
.dir-geo { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 0; min-height: 0; }
.dir-geo__btn { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 7px 12px 7px 10px; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.dir-geo__btn svg { color: var(--amber-ink); }
.dir-geo__btn:hover { box-shadow: inset 0 0 0 1px rgba(14, 16, 20, .25); }
.dir-geo__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dir-geo__btn:disabled { opacity: .6; cursor: progress; }
.dir-geo__msg { font-size: 13.5px; color: var(--ink-2); }
.dir-geo__msg:empty { display: none; }

/* Share kit (garage's editor) */
.share-kit { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.share-kit .hint { margin: 0; }
.share-kit__link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--canvas); }
.share-kit__link .mono { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.share-kit__link .btn { flex: none; }
.share-kit__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 10px; border-radius: 10px; font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--ink); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.share-btn:hover { background: var(--sunken); }
.share-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.share-btn--wa { background: #E7F6EE; color: #0B5E3E; box-shadow: none; }
.share-btn--wa:hover { background: #D5EFE1; }
.share-btn--fb { background: #E8EFFB; color: #1E4C99; box-shadow: none; }
.share-btn--fb:hover { background: #D8E4F8; }
.share-kit__web { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.share-kit__k { margin: 0 0 8px; font-weight: 650; }
.share-kit__web img { display: block; margin-bottom: 8px; }
.share-kit__code { width: 100%; font: 12.5px/1.5 var(--mono); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--control); background: var(--canvas); color: var(--ink-2); resize: none; }
.share-kit__web .btn { justify-self: start; }
@media (max-width: 460px) { .share-kit__btns { grid-template-columns: 1fr; } }

/* Directory: nothing found */
.dir-empty { max-width: 560px; margin: 10px 0 0; padding: 26px 22px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.dir-empty__art { position: relative; width: 150px; height: 92px; margin: 0 auto 14px; }
.dir-empty__art .bc { position: absolute; width: 120px; aspect-ratio: 1.75 / 1; padding: 0; border-radius: 10px; }
.dir-empty__art .bc:nth-child(1) { left: 0; top: 14px; transform: rotate(-9deg); }
.dir-empty__art .bc:nth-child(2) { right: 0; top: 4px; transform: rotate(6deg); }
.dir-empty__art .bc__orb { width: 46px; height: 46px; top: -18px; right: -18px; }
.dir-empty h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.dir-empty p { margin: 0 auto 14px; max-width: 30em; color: var(--ink-2); }
.dir-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.dir-empty .hint { margin: 0; }
.share-kit { grid-template-columns: minmax(0, 1fr); } .share-kit > *, .share-kit__web > * { min-width: 0; }
@media (max-width: 1199px) { .dir-art { display: none; } }
@media (min-width: 1200px) { .dir-art { right: -36px; top: 6px; } }

/* ---------- Review fixes (keep at the end: they must win) ---------- */
/* Printed cards: grey cut lines, not a drop shadow; nothing spills into the next card. */
.bc.bc--print { box-shadow: 0 0 0 .2mm #C9CCD1; overflow: hidden; }
.bc--print .bc__tag { -webkit-line-clamp: 1; }
.print-sheet { height: 296mm; overflow: hidden; break-after: auto; }
.print-sheet:not(:last-child) { break-after: page; }
/* Long emails, websites and towns end in "…" instead of being cut mid-letter. */
.bc__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Initials on cream and amber cards: darker for contrast. */
.bc[data-tone="cream"] .bc__logo, .bc[data-tone="amber"] .bc__logo, .bc:not([data-tone]) .bc__logo { color: #9C5000; }
/* Reduced motion, for everything that moves. */
@media (prefers-reduced-motion: reduce) {
  .bc, a.bc::after, .gc-map, .gc-pick, .ed-drop, .bc-flip.is-ready .bc-flip__inner, .dir-list > li.will-rise { transition: none; }
  a.bc:hover { transform: none; }
}
.dir-meta__cap { display: block; margin-top: 4px; color: var(--ink-2); }

/* How to pay (garage's editor) */
.pay-box { margin: 12px 0 6px; padding: 16px 18px; border-radius: 14px; background: #FFF6E6; box-shadow: inset 0 0 0 1px rgba(224, 106, 0, .25); }
.pay-box h2 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.pay-box p { margin: 0 0 8px; }
.pay-box .hint { margin: 0; }
.pay-box__ref { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 600; }
.pay-box__ref .mono { padding: 3px 8px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- National directory: AI search, listings, claims, NFC, towns ---------- */
.dir-search__label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 650; font-size: 15px; }
.dir-ai { margin: 16px 0 4px; max-width: 640px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, #FFF6E8, #F3F0FF); box-shadow: inset 0 0 0 1px rgba(91, 79, 214, .16); display: grid; gap: 10px; }
.dir-ai p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.dir-ai .btn { justify-self: start; }
.dir-ai__k { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink) !important; }
.dir-ai__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dir-ai__chips li { padding: 5px 11px; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(91, 79, 214, .2); }
.dir-ai__chips li.is-warn { color: var(--warning); box-shadow: inset 0 0 0 1px rgba(154, 74, 6, .3); }
.dir-ai__safety { padding: 10px 12px; border-radius: 10px; background: var(--danger-bg); color: var(--danger) !important; }
.dir-ai__note { padding-left: 10px; border-left: 3px solid var(--amber); }
.bc__src { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: rgba(255, 255, 255, .75); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
[data-tone="night"] .bc__src { background: rgba(255, 255, 255, .08); color: var(--bc-sub); }
.gc-owner__btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.gc-owner__btns .btn { gap: 8px; }
.dir-towns__all { font-weight: 650 !important; background: var(--ink) !important; color: #fff !important; box-shadow: none !important; }
.dir-credit { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); max-width: 640px; }

.claim { max-width: 600px; }
.claim h1 { font-size: clamp(26px, 6vw, 34px); letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 8px; }
.claim-steps { margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
.claim-form { display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.claim-form .field { margin: 0; }
.claim-form .hint { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nfc-demo { position: relative; max-width: 340px; margin: 18px 0; }
.nfc-demo__waves { position: absolute; right: -14px; top: 50%; width: 40px; height: 40px; transform: translateY(-50%); }
.nfc-demo__waves span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amber-2); opacity: 0; animation: nfc-wave 2.4s var(--ease) infinite; }
.nfc-demo__waves span:nth-child(2) { animation-delay: .8s; }
.nfc-demo__waves span:nth-child(3) { animation-delay: 1.6s; }
@keyframes nfc-wave { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nfc-demo__waves span { animation: none; opacity: .5; } }
.nfc-points { margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
.nfc-next { padding: 18px; border-radius: 16px; background: #FFF6E6; box-shadow: inset 0 0 0 1px rgba(224, 106, 0, .25); }
.nfc-next h2 { margin: 0 0 6px; font-size: 18px; }
.nfc-next p { margin: 0 0 12px; }
.nfc-next .hint { margin: 10px 0 0; }
.towns-page h1 { font-size: clamp(26px, 6vw, 36px); letter-spacing: -.03em; margin: 10px 0 6px; }
.towns-az { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 6px; }
.towns-az a { min-width: 32px; padding: 6px 8px; text-align: center; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.towns-group { margin: 22px 0 0; scroll-margin-top: 16px; }
.towns-group h2 { font-size: 18px; margin: 0 0 8px; }
.towns-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; }
.towns-group a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.towns-group a span { font: 500 12.5px/1.6 var(--mono); color: var(--muted); }
.towns-group a:hover { color: var(--amber-ink); }

/* Directory front page */
.dir-popular { margin: 22px 0 8px; }
.dir-popular h2, .dir-section-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #C2410C; margin: 0 0 10px; font-weight: 650; }
.dir-section-h { margin-top: 26px; }
.dir-popular ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.dir-popular a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.dir-popular a:hover { box-shadow: inset 0 0 0 1px rgba(14, 16, 20, .2), 0 12px 26px -18px rgba(17, 19, 24, .45); transform: translateY(-1px); }
.dir-popular a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dir-popular strong { font-size: 16px; letter-spacing: -.01em; }
.dir-popular span { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .dir-popular a { transition: none; } .dir-popular a:hover { transform: none; } }

/* Nearby businesses on a card */
.gc-nearby { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gc-nearby a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--canvas); color: var(--ink); text-decoration: none; }
.gc-nearby a:hover { background: var(--sunken); }
.gc-nearby a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gc-nearby__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-nearby__meta { flex: none; font-size: 13px; color: var(--muted); }
.claim-seen { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--success-bg); color: var(--success); font-weight: 600; }

/* ---------- Directory results: one clear row per business ---------- */
.dir-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; }
.li { --bc-accent: #FFB21A; --bc-accent-2: #C2410C; --bc-bg: #FFF4E5;
  position: relative; display: grid; gap: 10px; padding: 14px 14px 12px 16px; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(17, 19, 24, .04); transition: box-shadow .15s var(--ease); height: 100%; box-sizing: border-box; }
.li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bc-accent-2); opacity: .55; }
.li[data-tone="night"] { --bc-bg: #16181D; --bc-accent-2: #16181D; }
.li:hover { box-shadow: inset 0 0 0 1px rgba(14, 16, 20, .18), 0 14px 30px -22px rgba(17, 19, 24, .45); }
.li--joined { box-shadow: inset 0 0 0 1.5px rgba(15, 110, 88, .35), 0 1px 2px rgba(17, 19, 24, .04); }
.li__main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; color: inherit; text-decoration: none; }
.li__main:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.li__logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; font-weight: 750; font-size: 16px; letter-spacing: -.02em;
  background: var(--bc-bg); color: var(--bc-accent-2); }
.li[data-tone="night"] .li__logo { color: #FFB21A; }
.li[data-tone="cream"] .li__logo, .li:not([data-tone]) .li__logo { background: #FFF4E5; color: #9C5000; }
.li__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.li__body { display: grid; gap: 3px; min-width: 0; }
.li__name { margin: 0; font-size: 16.5px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; color: var(--ink); overflow-wrap: anywhere; }
.li__main:hover .li__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.li__what { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.li__tag { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li__where { display: flex; align-items: flex-start; gap: 5px; font-size: 13.5px; color: var(--muted); }
.li__where svg { flex: none; margin-top: 2px; }
.li__dist { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; line-height: 1.2; }
.li__dist strong { display: block; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.li__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding-left: 58px; }
.li__joined { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--success-bg); color: var(--success); }
.li__open { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--canvas); color: var(--ink-2); }
.li__open span { width: 7px; height: 7px; border-radius: 50%; background: #9AA0A8; }
.li__open.is-open { background: var(--success-bg); color: var(--success); }
.li__open.is-open span { background: #18A47E; }
.li__actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.li__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 650;
  text-decoration: none; color: var(--ink); background: var(--canvas); white-space: nowrap; overflow: hidden; }
.li__btn:hover { background: var(--sunken); }
.li__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.li__btn--primary { background: var(--amber); color: #0E1014; }
.li__btn--primary:hover { background: #F5A300; }
.li__btn--quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.li__phone { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.li__phone svg { flex: none; color: var(--muted); }
@media (max-width: 380px) { .li__btn { font-size: 13px; padding: 8px 6px; } .li__badges { padding-left: 0; } }
@media (prefers-reduced-motion: reduce) { .li { transition: none; } }

/* Results pages and folding filters */
.dir-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.dir-pager span { font-size: 14px; color: var(--muted); }
.dir-filters-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 14px; border: 0; border-radius: 10px; background: var(--sunken); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.dir-filters-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dir-filters-toggle__n { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; text-align: center; }
.dir-filters.is-folded { display: none; }

/* Town facts: quick filters and postcode areas */
.dir-facts { margin: 16px 0 4px; max-width: 640px; }
.dir-facts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dir-facts a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.dir-facts a:hover { box-shadow: inset 0 0 0 1px rgba(14, 16, 20, .25); }
.dir-facts a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dir-facts a span { font: 500 12px/1 var(--mono); color: var(--muted); }
.dir-facts__quick a { background: #FFF4E5; box-shadow: inset 0 0 0 1px rgba(224, 106, 0, .25); }
.dir-facts__k { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; }
.dir-facts__areas a { font-family: var(--mono); font-weight: 600; font-size: 13px; }

/* ---------- Listing page: a proper business profile ---------- */
.pub-main:has(.lp) { max-width: 1080px; }
.lp { --bc-accent: #FFB21A; --bc-accent-2: #C2410C; --bc-bg: #FFF4E5; }
.lp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 12px; font-size: 13.5px; color: var(--muted); }
.lp-crumbs a { color: var(--ink-2); }
.lp-crumbs [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.lp-head { position: relative; padding: 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -30px rgba(17, 19, 24, .4); overflow: hidden; }
.lp-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--bc-accent), var(--bc-accent-2)); }
.lp-id { display: flex; gap: 16px; align-items: center; }
.lp-logo { flex: none; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; font-size: 26px; font-weight: 750; letter-spacing: -.02em; background: var(--bc-bg); color: var(--bc-accent-2); box-shadow: inset 0 0 0 1px rgba(14, 16, 20, .06); }
.lp[data-tone="night"] .lp-logo { background: #16181D; color: #FFB21A; }
.lp[data-tone="cream"] .lp-logo, .lp[data-tone="amber"] .lp-logo { color: #9C5000; }
.lp-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.lp-id__text { min-width: 0; display: grid; gap: 4px; }
.lp-id h1 { margin: 0; font-size: clamp(23px, 5.6vw, 32px); line-height: 1.12; letter-spacing: -.03em; overflow-wrap: anywhere; }
.lp-kind { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.lp-badges { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--canvas); color: var(--ink-2); }
.lp-badge--joined { background: var(--success-bg); color: var(--success); }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: #9AA0A8; }
.lp-badge--open { background: var(--success-bg); color: var(--success); }
.lp-badge--open .lp-dot { background: #18A47E; box-shadow: 0 0 0 3px rgba(24, 164, 126, .2); }
.lp-tagline { margin: 14px 0 0; font-size: 16px; color: var(--ink-2); }
.lp-lines { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.lp-lines li { display: flex; align-items: flex-start; gap: 8px; }
.lp-lines svg { flex: none; margin-top: 3px; color: var(--bc-accent-2); }
.lp[data-tone="night"] .lp-lines svg { color: #C2410C; }
.lp-lines a { color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.lp-lines a:hover { text-decoration: underline; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 650;
  color: var(--ink); background: var(--canvas); text-decoration: none; cursor: pointer; white-space: nowrap; }
.lp-btn:hover { background: var(--sunken); }
.lp-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lp-btn--primary { background: var(--amber); color: #0E1014; }
.lp-btn--primary:hover { background: #F5A300; }
.lp-btn__extra { font-weight: 500; }
.lp-status:empty { display: none; }
.lp-status { margin: 10px 0 0; }
@media (max-width: 560px) {
  .lp-head { padding: 16px; }
  .lp-logo { width: 56px; height: 56px; font-size: 21px; border-radius: 14px; }
  .lp-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .lp-actions .lp-btn--primary { grid-column: 1 / -1; }
}
.lp-grid { display: grid; gap: 16px; margin-top: 16px; }
.lp-main, .lp-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.lp-panel { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.lp-ask { padding: 16px; display: grid; gap: 8px; }
.lp-ask .gc-note { margin: 0; }
.lp-main .gc-details { margin: 0; }
.lp-main .gc-details > .gc-sec:first-child { border-top: 0; }
.lp-facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.lp-facts dl > div { padding: 10px 12px; border-radius: 12px; background: var(--canvas); }
.lp-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.lp-facts dd { margin: 3px 0 0; font-weight: 600; color: var(--ink); }
.lp-side .gc-owner { padding: 4px 18px 18px; }
.lp-side .gc-owner h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #C2410C; margin: 16px 0 10px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.lp-side .gc-share { padding: 4px 18px 18px; display: grid; justify-items: start; }
.lp-side .gc-share h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #C2410C; margin: 16px 0 10px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.lp-cardwrap .bc { max-width: none; }
.lp-legal { margin: 0; padding: 14px 16px; border-radius: 14px; border: 0; }
@media (min-width: 940px) {
  .lp-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .lp-side { position: sticky; top: 16px; }
  .lp-btn__extra { display: inline; }
}
@media (max-width: 939px) { .lp-btn__extra { display: none; } }

/* Your garages (saved + recently viewed, on this device) */
.dir-mine { margin: 22px 0 6px; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.dir-mine__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dir-mine__head .dir-section-h { margin: 0; }
.dir-mine__clear { border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px; }
.dir-mine__cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 10px; }
.dir-mine__k { margin: 0 0 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.dir-mine__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dir-mine__list a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; background: var(--canvas); color: var(--ink); text-decoration: none; }
.dir-mine__list a:hover { background: var(--sunken); }
.dir-mine__list a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dir-mine__list strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-mine__list span { font-size: 13px; color: var(--muted); }
.dir-mine .hint { margin: 10px 0 0; }
.lp-btn[aria-pressed="true"] { background: #FDE8E1; color: #B3362C; }
.lp-btn[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- App feel on phones ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
body.pub { -webkit-tap-highlight-color: transparent; }
body.pub a, body.pub button, body.pub input, body.pub select, body.pub textarea { touch-action: manipulation; }
.btn:active, .lp-btn:active, .li__btn:active, .lp-dock__btn:active, .tabbar a:active, .dir-popular a:active, .gc-nearby a:active { transform: scale(.97); transition: transform .08s; }

/* Back button: only when opened from the home screen */
.top__back { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 4px 0 -8px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.top__back:not([hidden]) { display: inline-flex; }
.top__back:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Tab bar: phones only */
.tabbar { display: none; }
@media (max-width: 899px) {
  body.pub { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .pub .top { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top); background: rgba(250, 249, 246, .88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 -1px 0 var(--line); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0 4px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 600; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"] svg { color: #E06A00; }
  .tabbar a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
  .tabbar__ai { display: grid; place-items: center; width: 28px; height: 22px; border-radius: 7px; font: 700 11px/1 var(--mono); color: #4A3DC4; background: #EFEDFF; box-shadow: inset 0 0 0 1px rgba(91, 79, 214, .25); }
  .pub .foot { padding-bottom: 12px; }
  .pub-nav a:last-child { display: none; }
}
html.is-app .pub .foot { display: none; }

/* Card page dock: Call / Get a quote / Directions, above the tab bar */
.lp-dock { display: none; }
@media (max-width: 899px) {
  .lp-dock { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 45;
    padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 0 0 1px var(--line), 0 16px 40px -16px rgba(17, 19, 24, .45);
    transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .2s var(--ease); }
  .lp-dock.is-shown { transform: none; opacity: 1; pointer-events: auto; }
  .lp-dock__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--canvas); text-decoration: none; }
  .lp-dock__btn.is-primary { background: var(--amber); color: #0E1014; }
}
@media (prefers-reduced-motion: reduce) { .lp-dock { transition: none; } }

/* Filters: a bottom sheet on phones */
.dir-sheet__bar { display: none; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(14, 16, 20, .38); }
.sheet-backdrop[hidden] { display: none; }
.dir-filters.is-sheet { display: none; }
.dir-filters.is-sheet.is-open { display: grid; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; margin: 0; padding: 22px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -20px 50px -20px rgba(17, 19, 24, .4); animation: sheet-up .25s var(--ease); max-height: 85vh; overflow: auto; }
.dir-filters.is-sheet.is-open::before { content: ""; justify-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--sunken); margin: -10px 0 4px; }
.dir-filters.is-sheet.is-open .dir-seg { display: grid; grid-template-columns: repeat(4, 1fr); }
.dir-filters.is-sheet.is-open .dir-select, .dir-filters.is-sheet.is-open .dir-toggle span { width: 100%; min-height: 46px; font-size: 16px; }
.dir-filters.is-sheet.is-open .dir-sheet__bar { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 6px; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .dir-filters.is-sheet.is-open { animation: none; } }
html.has-sheet { overflow: hidden; }

/* App pages: saved, offline */
.app-page { max-width: 640px; }
.app-title { font-size: clamp(26px, 7vw, 34px); letter-spacing: -.03em; margin: 10px 0 6px; }
.dir-mine--page { margin-top: 14px; }
.app-empty { display: grid; justify-items: start; gap: 10px; padding: 6px 0; }
.app-empty p { margin: 0; color: var(--ink-2); }
.app-empty[hidden] { display: none; }
.app-offline { text-align: center; padding-top: 30px; }
.app-offline .lead { margin-left: auto; margin-right: auto; }
.app-offline__icon { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 20px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }

/* Loading bar at the top while the next page loads */
.nav-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 95; height: 3px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); opacity: 0; background: linear-gradient(90deg, #FFB21A, #E06A00); }
.nav-progress.is-loading { opacity: 1; animation: nav-load 8s cubic-bezier(.08, .7, .2, 1) forwards; }
@keyframes nav-load { from { transform: scaleX(.06); } to { transform: scaleX(.94); } }
@media (prefers-reduced-motion: reduce) { .nav-progress.is-loading { animation: none; transform: scaleX(.6); } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100vw - 24px);
  padding: 12px 14px 12px 16px; border-radius: 14px; background: #16181D; color: #fff; font-size: 14.5px; font-weight: 550; line-height: 1.35;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); transform: translate(-50%, 16px); opacity: 0; transition: transform .22s var(--ease), opacity .18s var(--ease); }
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
.toast[hidden] { display: none; }
.toast button { flex: none; border: 0; background: none; color: #FFC24A; font: inherit; font-weight: 700; padding: 6px 4px; margin: -6px 0; cursor: pointer; }
.toast button:focus-visible { outline: 2px solid #FFC24A; outline-offset: 2px; border-radius: 6px; }
@media (max-width: 899px) {
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
  html.has-dock .toast { bottom: calc(146px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Saved count on the tab */
.tabbar a { position: relative; }
.tabbar__count { position: absolute; top: 1px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #C2410C; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.tabbar__count[hidden] { display: none; }

/* Remove from the saved list */
.dir-mine__list li { display: flex; align-items: stretch; gap: 6px; }
.dir-mine__list li > a { flex: 1; min-width: 0; }
.dir-mine__rm { flex: none; width: 44px; border: 0; border-radius: 10px; background: var(--canvas); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.dir-mine__rm:hover { background: var(--sunken); color: var(--ink); }
.dir-mine__rm:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Install the app */
.app-install { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 46; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 16px 40px -16px rgba(17, 19, 24, .45); animation: sheet-up .3s var(--ease); }
.app-install[hidden] { display: none; }
.app-install img { width: 44px; height: 44px; border-radius: 11px; display: block; }
.app-install p { margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.app-install strong { display: block; font-size: 15px; color: var(--ink); }
.app-install__actions { display: flex; gap: 6px; align-items: center; }
.app-install__go { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: #FFB21A; color: #1A0F00; font: 700 14.5px var(--sans); cursor: pointer; }
.app-install__go[hidden] { display: none; }
.app-install__close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--canvas); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.app-install__go:focus-visible, .app-install__close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .app-install { animation: none; } }

/* Pull to refresh */
.ptr { position: fixed; top: calc(env(safe-area-inset-top) + 58px); left: 50%; z-index: 39; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%; background: #fff; color: var(--ink-2);
  display: grid; place-items: center; opacity: 0; pointer-events: none; box-shadow: 0 0 0 1px var(--line), 0 6px 16px -6px rgba(17, 19, 24, .35); }
.ptr.is-ready { color: #C2410C; }
.ptr.is-spinning svg { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* ---------- Directory search as a chat composer (like Claude) */
.dir-ask__box { display: grid; gap: 6px; padding: 14px 10px 10px 18px; border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(17, 19, 24, .04), 0 18px 40px -26px rgba(17, 19, 24, .4); transition: box-shadow .15s; }
.dir-ask__box:focus-within { box-shadow: inset 0 0 0 2px #FFB21A, 0 18px 40px -22px rgba(234, 88, 12, .45); }
.dir-ask__box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 18px; line-height: 1.45; color: var(--ink); padding: 4px 8px 4px 0; box-shadow: none; }
.dir-ask__box input::placeholder { color: #8A8F98; }
.dir-ask__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dir-ask__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.dir-ask__tool { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: 0; padding: 6px 12px 6px 10px; border: 0; border-radius: 10px; background: var(--canvas, #F7F5F1); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.dir-ask__tool[hidden] { display: none; }
.dir-ask__tool svg { color: var(--amber-ink, #9A4A00); }
.dir-ask__tool:focus-visible, .dir-ask__send:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dir-ask__tool:disabled { opacity: .6; cursor: progress; }
@media (hover: hover) { .dir-ask__tool:hover { background: var(--sunken); } }
.dir-ask__ai { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dir-ask__send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #FFB21A; color: #1A0F00; cursor: pointer; }
.dir-ask.is-empty .dir-ask__send { background: var(--sunken); color: #8A8F98; }
.dir-ask__send:active { transform: scale(.94); }
.dir-ask .dir-geo__msg { margin: 8px 2px 0; }
.dir-ask__suggest { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dir-ask__suggest[hidden], .dir-chat[hidden] { display: none; }
.dir-ask__suggest a { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 13px; border-radius: 10px; background: #fff; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 550; box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) { .dir-ask__suggest a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(234, 88, 12, .45); background: #FFF6E8; } }
.dir-ask__suggest a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 699px) {
  .dir-ask__ai-text { display: none; }
  .dir-ask .dir-filters-toggle { margin-top: 0; }
}

/* The AI's reply, as a chat exchange */
.dir-chat { display: grid; gap: 10px; margin: 18px 0 6px; max-width: 640px; }
.dir-chat__me { display: flex; justify-content: flex-end; }
.dir-chat__me p { margin: 0; max-width: 85%; padding: 10px 15px; border-radius: 16px 16px 6px 16px; background: linear-gradient(135deg, #2A2D35, #101217); color: #fff; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.dir-chat__bot { display: flex; align-items: flex-end; gap: 8px; }
.dir-chat__avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #FFC85A, #FF9A0F); color: #1A0F00; }
.dir-chat__bubble.dir-ai { flex: 1; min-width: 0; margin: 0; border-radius: 16px 16px 16px 6px; }
.dir-chat__typing { display: inline-flex; gap: 4px; padding: 14px 16px; border-radius: 16px 16px 16px 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.dir-chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: #FF9A0F; animation: dir-dots 1.2s infinite ease-in-out; }
.dir-chat__typing i:nth-child(2) { animation-delay: .15s; }
.dir-chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dir-dots { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
.dir-chat--pending { animation: dir-chat-in .2s var(--ease) both; }
@keyframes dir-chat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dir-chat__typing i, .dir-chat--pending { animation: none; } }

/* ---------- Desktop gets the app parts too */
.pub-nav__count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 4px; padding: 0 5px; border-radius: 10px; background: #C2410C; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px; }
.pub-nav__count[hidden] { display: none; }
@media (max-width: 899px) {
  .pub-nav__app { display: none; }
}
@media (min-width: 900px) {
  /* Header stays put while you scroll, like the phone app */
  .pub .top { position: sticky; top: 0; z-index: 40; background: rgba(250, 249, 246, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
  .pub-nav { gap: 4px; }
  /* Sticky side columns sit below the sticky header */
  .pub .lp-side, .pub .ed-side, .pub .gc-lead { top: 88px; }

  /* Call / Directions float at the bottom of a garage's page once the header buttons scroll away */
  .lp-dock { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 8px; position: fixed; left: 50%; bottom: 22px; z-index: 45; width: max-content; max-width: calc(100vw - 40px);
    padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 0 0 1px var(--line), 0 18px 44px -18px rgba(17, 19, 24, .45);
    transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .2s var(--ease); }
  .lp-dock.is-shown { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
  .lp-dock__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--canvas); text-decoration: none; }
  .lp-dock__btn.is-primary { background: var(--amber); color: #0E1014; }
  @media (hover: hover) { .lp-dock__btn:hover { filter: brightness(.97); } }
  html.has-dock .toast { bottom: 96px; }

  /* Install card: bottom right, only when the browser offers to install */
  .app-install { left: auto; right: 22px; bottom: 22px; width: 380px; }

}

/* ---------- Directory landing: trust strip, promo card, folded filters ---------- */
.dir-trust { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-2); }
.dir-trust li { display: inline-flex; align-items: center; gap: 7px; }
.dir-trust li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%2318A47E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.dir-trust strong { font-variant-numeric: tabular-nums; }
.dir-popular__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dir-popular__head a { font-size: 14px; font-weight: 600; color: var(--ink-2); text-underline-offset: 3px; }
.dir-promo { margin: 26px 0 0; padding: 20px 22px; border-radius: 16px; background: linear-gradient(135deg, #EFEDFF, #F7F5FF); box-shadow: inset 0 0 0 1px rgba(76, 64, 200, .12); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dir-promo__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #4C40C8; box-shadow: 0 6px 16px -10px rgba(45, 39, 112, .5); }
.dir-promo__text { flex: 1 1 300px; min-width: 0; }
.dir-promo h2 { margin: 0 0 2px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: #2D2770; }
.dir-promo p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #3D3780; }
.dir-promo__btn { flex: none; min-height: 46px; }
@media (max-width: 599px) { .dir-promo__btn { width: 100%; } }
.dir-filters.is-folded:not(.is-sheet) { display: none; }
.dir-filters.is-desk-open { padding: 10px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.dir-filters .dir-toggle { flex: none; white-space: nowrap; }
.dir-filters.is-desk-open .dir-sheet__bar { display: flex; gap: 8px; margin-left: auto; }
.dir-filters.is-desk-open .dir-sheet__bar .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 599px) { .dir-popular ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .dir-popular a { padding: 12px 14px; } .dir-popular strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* ---------- Search results: compact top so results come first ---------- */
.dir--results .dir-hero { padding-top: 4px; }
.dir--results .dir-hero h1 { font-size: clamp(20px, 5.2vw, 26px); margin: 4px 0 12px; }
@media (min-width: 900px) {
  .dir--results .dir-hero, .dir--results .dir-meta, .dir--results .dir-chat { max-width: 900px; }
  .dir--results .dir-filters { flex-wrap: nowrap; }
}
