/* The public site's look ("Retro Americana"): cream, red and teal, slab headings, badges and pinstripes. See DESIGN.md.
   Loaded after BeerCSS on the public layout only (the admin keeps plain BeerCSS). Order: tokens, structure, components, then the decoration.
   Tokens: --paper --paper-2 --card --ink --ink-soft --line --accent --accent-ink --accent-2 --link --display --text
           --radius --radius-lg --hero-bg --hero-ink --hero-soft --head-bg --head-ink --accent-text --red-solid */

body, body.light, body.dark {
  /* BeerCSS colours follow the tokens, so its fields and buttons match without per-component overrides. */
  --primary: var(--accent); --on-primary: var(--accent-ink);
  --primary-container: var(--paper-2); --on-primary-container: var(--ink);
  --secondary: var(--accent-2); --on-secondary: var(--accent-ink);
  --secondary-container: var(--paper-2); --on-secondary-container: var(--ink);
  --background: var(--paper); --on-background: var(--ink);
  --surface: var(--card); --on-surface: var(--ink);
  --surface-variant: var(--paper-2); --on-surface-variant: var(--ink-soft);
  --surface-dim: var(--paper-2); --surface-bright: var(--card);
  --surface-container-lowest: var(--card); --surface-container-low: var(--card);
  --surface-container: var(--card); --surface-container-high: var(--paper-2); --surface-container-highest: var(--paper-2);
  --outline: var(--ink-soft); --outline-variant: var(--line);
  --inverse-surface: var(--ink); --inverse-on-surface: var(--paper); --inverse-primary: var(--accent-2);
  background: var(--paper); color: var(--ink); font-family: var(--text);
  font-size: 1.0625rem; line-height: 1.5; min-block-size: 100vh;
  display: flex; flex-direction: column; padding-bottom: 4.5rem;
}
body main { flex: 1 0 auto; overflow: visible; padding: 0 1rem; }
html { overflow-x: hidden; }   /* the full-width bands (inset: 0 calc(50% - 50vw)) are 100vw wide, which includes the scrollbar: clip what sticks out so the page never scrolls sideways */
.hero > *, .finder, .cards > *, .vendor-grid > * { min-inline-size: 0; }
@media (max-width: 599px) { .brand-name { font-size: 1.1rem !important; } .brand { gap: .4rem; } .site-nav .nav-link { padding-inline: .5rem; } }
@media (max-width: 519px) { .site-header .site-width { flex-wrap: wrap; gap: 0; min-block-size: 0; padding-block: .35rem .1rem; } .site-header .brand { min-block-size: 2.75rem; } .site-header .site-nav { flex: 1 1 100%; justify-content: space-between; gap: 0; } .site-header .site-nav .nav-link { padding-inline: .5rem; } }   /* phones: the name on its own line, the four links under it (Services, Articles, Sign in, theme) */
@media (max-width: 339px) { .site-header .site-nav .nav-link { padding-inline: .3rem; font-size: .95rem; } }
body a { color: var(--link); }
body :focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 2px; }
body h1, body h2, body h3 { font-family: var(--display); }
body :is(.site-header, .hero, .vendor-head, .article-head, .stats, .site-footer) :focus-visible { outline-color: #ffd36b; }   /* navy would be hard to see on red, teal and navy */
body .hero .finder :focus-visible { outline-color: var(--focus, var(--accent)); }
.site-width { max-inline-size: 72rem; margin-inline: auto; inline-size: 100%; }
.site-header .site-width, .site-footer .site-width { padding-inline: 1rem; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: .5rem; top: -4rem; z-index: 50; background: var(--ink); color: var(--paper); padding: .75rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: .5rem; }

/* Header */
.site-header { background: var(--head-bg, var(--paper)); color: var(--head-ink, var(--ink)); border-block-end: var(--head-line, 1px solid var(--line)); position: relative; z-index: 5; }
.site-header .site-width { display: flex; align-items: center; gap: .5rem; min-block-size: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit !important; text-decoration: none; min-block-size: 2.75rem; margin-inline-end: auto; }
.brand-name { font-family: var(--display); font-size: 1.35rem; line-height: 1; letter-spacing: var(--brand-track, 0); }
.brand-mark { inline-size: 1.9rem; block-size: 1.9rem; flex: none; background: var(--accent); }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.nav-link { display: inline-flex; align-items: center; min-block-size: 2.75rem; padding-inline: .75rem; color: inherit !important; text-decoration: none; font-weight: 600; border-radius: var(--radius); }
.nav-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.site-nav .circle { inline-size: 2.75rem; block-size: 2.75rem; color: inherit; }
@media (max-width: 749px) { .hide-small { display: none; } }   /* "List your shop" does not fit beside the other three links below this width */

/* Footer */
.site-footer { border-block-start: 1px solid var(--line); margin-block-start: 3rem; padding-block: 2rem; color: var(--ink-soft); background: var(--foot-bg, transparent); }
.foot-brand { margin: 0; max-inline-size: 36rem; }
.foot-brand .brand-name { color: var(--ink); display: block; margin-block-end: .25rem; }

/* Form: three groups, each a row of Beer fields */
.finder fieldset { border: 0; margin: 0 0 1rem; padding: 0; min-inline-size: 0; }
.finder legend { font-family: var(--display); font-weight: 700; margin-block-end: .6rem; padding: 0; }
.finder legend span { font-weight: 400; color: var(--ink-soft); font-family: var(--text); font-size: .9em; }
.finder .grid { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.finder .grid > * { flex: 1 1 11rem; min-inline-size: 0; margin: 0; padding: 0; }
.finder .field { margin: 0; }
.finder select, .finder input { color: var(--ink); }
.finder .field.border > select, .finder .field.border > input { border-radius: var(--radius); }
.finder .field > select { text-overflow: ellipsis; white-space: nowrap; }
.finder .field > select:disabled { opacity: .6; }
.search-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 0; padding: 0; }
body :is(.button, button:not(.circle):not(.transparent)) { min-block-size: 2.75rem; font-family: var(--display); font-weight: 600; }
body .button.border { border-color: var(--ink-soft); color: var(--ink); }
.finder { background: transparent; }
@media (max-width: 599px) { .finder .grid > * { flex-basis: 100%; } }

/* The "Your search" bar on results pages: a native <details> (so assistive tech hears open/closed and the keyboard works). A one-line summary
   on phones that opens the form; on wide screens the form is simply shown (browsers without ::details-content keep the summary, which still works). */
.refine { margin-block: 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.refine > summary { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem 1rem; min-block-size: 3.25rem; cursor: pointer; list-style: none; }
.refine > summary::-webkit-details-marker { display: none; }
.refine[open] > summary { border-block-end: 1px solid var(--line); }
.refine-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.refine-what { font-weight: 700; flex: 1 1 10rem; font-size: .9rem; line-height: 1.3; }
.refine-change { font-size: .9rem; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.refine .finder { padding: .5rem 1rem 1rem; }
@media (min-width: 840px) {
  @supports selector(::details-content) {
    .refine > summary { display: none; }
    .refine::details-content { content-visibility: visible; display: block; height: auto; opacity: 1; visibility: visible; }
    .refine .finder { padding-block-start: 1rem; }
    .refine .finder fieldset { display: grid; grid-template-columns: 12rem 1fr; gap: .5rem 1rem; align-items: center; }
    .refine .finder legend { float: left; margin: 0; }
    .refine .search-actions { margin-block-start: 0; }
  }
}

/* Home */
.hero { --bleed: var(--hero-bg); color: var(--hero-ink); margin-block-start: 0; padding-block: 2rem 2.5rem; display: grid; gap: 1.5rem; position: relative; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.02; margin: 0 0 .75rem; }
.hero .kicker { margin: 0 0 .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--hero-kicker, var(--hero-soft)); }
.hero .lede { font-size: 1.15rem; max-inline-size: 34rem; color: var(--hero-soft); margin: 0; }
.hero .car-art { display: block; inline-size: min(100%, 22rem); margin-block-start: 1.5rem; color: var(--car-body, var(--accent)); }
.hero .finder { background: var(--card); color: var(--ink); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: 1.5rem; text-align: center; }
.stats p { color: var(--ink-soft); font-size: .95rem; }
.stats p { margin: 0 !important; }   /* Beer adds a top margin to every p after a sibling (a very specific rule); it pushed items 2 and 3 down */
.stats b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.6rem); line-height: 1.1; color: var(--ink); }
.popular h2, .how h2, .categories h2, .results-head h2, .vendor-services h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 2rem 0 1rem; line-height: 1.1; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tile a { display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; min-block-size: 7.5rem; padding: 1rem; text-decoration: none; color: inherit; block-size: 100%; }
.tile-name { font-family: var(--display); font-size: 1.2rem; line-height: 1.15; font-weight: 700; }
.tile-count { font-size: .9rem; opacity: .9; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 1rem 1rem 1rem 4rem; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 1rem; inset-block-start: .9rem; inline-size: 2.4rem; block-size: 2.4rem; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.steps h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (min-width: 840px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.categories nav.wrap { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; min-block-size: 2.75rem; padding-inline: 1rem; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; border-radius: var(--radius); font-weight: 600; }
.chip:hover { border-color: var(--accent); }

/* Results */
.results-head { margin-block: 1rem .5rem; }
.results-head h2 { margin: 0 0 .25rem; }
.results-count { margin: 0; color: var(--ink-soft); }
.results-count b { color: var(--ink); }
.cards { display: grid; gap: 1rem; margin-block: 1rem; }
.vendor-card { background: var(--card); color: var(--ink); min-inline-size: 0; overflow: hidden; }
.vendor-card h3 { margin: 0 0 .25rem; font-size: 1.25rem; line-height: 1.2; overflow-wrap: anywhere; }
.vendor-card h3 a { color: inherit; text-decoration: none; }
.vendor-card h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.vendor-card p { margin: .25rem 0; }
.vendor-card .tagline { color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vendor-card .place, .vendor-card .call { display: flex; gap: .4rem; align-items: flex-start; font-size: .95rem; }
.vendor-card .call { align-items: center; }
.vendor-card .call a { display: inline-flex; align-items: center; min-block-size: 2.75rem; font-weight: 700; }
.vendor-card i, .vendor-page i { font-size: 1.15rem; flex: none; }
.card-media { display: block; position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; max-inline-size: 300px; margin-inline: auto; inline-size: 100%; }   /* the stored picture is 300 px wide at most: never shown larger */
.card-media picture { position: absolute; inset: 0; display: block; }
.card-media img { display: block; }
.card-media .card-picture { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; max-inline-size: none; float: none; margin: 0; border-radius: 0; }
.monogram { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 4.5rem; line-height: 1; color: var(--mono-ink, var(--ink-soft)); }
.car-notice { margin: .5rem 0 1rem; font-weight: 700; }
.unlisted { margin-block: 2rem 1rem; padding-block-start: 1.25rem; border-block-start: 3px dashed var(--ink-soft); }
.unlisted h3 { margin: 0 0 .25rem; font-size: 1.3rem; color: var(--accent-text, var(--accent)); }
.unlisted > p { margin: 0 0 .5rem; color: var(--ink-soft); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-block: 1.5rem; }
.pagination .button { min-inline-size: 2.75rem; }
.empty-state { text-align: center; padding: 2rem 1rem; margin-block: 1rem; border: 2px dashed var(--line); border-radius: var(--radius-lg); background: var(--card); }
.empty-state .car-art { inline-size: min(70%, 14rem); color: var(--ink-soft); margin: 0 auto 1rem; display: block; --car-glass: var(--card); --car-tire: var(--ink); --car-hub: var(--paper-2); }
.empty-state h3 { margin: 0 0 .5rem; font-size: 1.5rem; }

/* Vendor page */
.vendor-head { padding-block: 1.5rem; }
.vendor-head h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; margin: .25rem 0 .5rem; overflow-wrap: anywhere; }
.vendor-head .lede { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1rem; max-inline-size: 42rem; }
.crumb { margin: 0; font-size: .95rem; }
.crumb a { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
.vendor-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 0; }
.big-action { min-block-size: 3.25rem !important; padding-inline: 1.5rem; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-size: 1.05rem; }
.big-action.alt { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); }
.vendor-grid { display: grid; gap: 1rem; }
@media (min-width: 840px) { .vendor-grid { grid-template-columns: 1fr 1fr; } .vendor-grid .wide { grid-column: 1 / -1; } }
.panel { background: var(--card); padding: 1.25rem; min-inline-size: 0; }
.panel h2 { margin: 0 0 .75rem; font-size: 1.4rem; }
.panel address { display: flex; gap: .5rem; font-style: normal; margin-block-end: .75rem; }
.phone-row { margin: .25rem 0; display: flex; gap: .75rem; flex-wrap: wrap; align-items: baseline; }
.phone-row .label { color: var(--ink-soft); min-inline-size: 5rem; }
.phone-row a { display: inline-flex; align-items: center; min-block-size: 2.75rem; font-weight: 700; }
.service-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.vendor-service { background: var(--card); padding: 1rem 1.25rem; min-inline-size: 0; overflow: hidden; }
.vendor-service h3 { margin: 0 0 .25rem; font-size: 1.15rem; line-height: 1.25; }
.vendor-service .fits { margin: 0 0 .5rem; color: var(--ink-soft); font-size: .95rem; }
.vendor-service p { margin: .25rem 0 .5rem; }
.vendor-service .service-picture { display: block; max-inline-size: 100%; block-size: auto; margin-block-start: .75rem; border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) { body * { transition: none !important; animation: none !important; } }

/* Full-width bands inside the centred column: the colour comes from a pseudo-element wider than the page. */
.hero, .stats, .vendor-head, .article-head { position: relative; isolation: isolate; }
.hero::before, .stats::before, .vendor-head::before, .article-head::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background-color: var(--bleed, transparent); background-image: var(--bleed-image, none); border-block-end: var(--bleed-border, 0); }

/* BeerCSS styles every <article> as a card; the page wrapper is not one. */
body :is(article.vendor-page, article.article-page) { background: transparent; box-shadow: none; border-radius: 0; padding: 0; margin: 0; }
body :is(.vendor-card, .vendor-service, .empty-state) { box-shadow: none; margin: 0; }
body :is(.article-card, .article-featured), body .article-grid > article { margin: 0; }
body a.button:not(.border):not(.alt) { color: var(--accent-ink); }
.service-grid { align-items: start; }
body .skip-link { color: var(--paper); background: var(--ink); }
.vendor-card h3 a { display: flex; align-items: center; min-block-size: 2.75rem; }
.empty-state a { display: inline-block; padding-block: .6rem; }

/* ---- Retro Americana look ---- */
/* Skin C: Retro Americana. 1950s-60s signage and print: red, cream and teal, badges, slab type, pinstripes. */
@font-face { font-family: "Alfa Slab One"; src: url("/assets/alfa-slab-one-d229cf5a.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/figtree-c7038a49.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

body, body.light {
  --paper: #f6ebd0; --paper-2: #ecdcb2; --card: #fff9e8; --ink: #17262e; --ink-soft: #3f5058; --line: #d4bf8b;
  --accent: #b9302a; --accent-ink: #fff9e8; --accent-2: #1d6a70; --link: #12595f;
  --display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif; --text: "Figtree", system-ui, sans-serif;
  --radius: .6rem; --radius-lg: 1rem; --shadow: 0 0 0 3px #17262e, 6px 6px 0 3px #17262e;
  --head-bg: #b9302a; --head-ink: #fff9e8; --head-line: 0; --accent-text: #b9302a; --red-solid: #b9302a;
  --hero-bg: #1d6a70; --hero-ink: #fff9e8; --hero-soft: #e6f1ee; --hero-kicker: #ffd36b; --car-body: #fff9e8; --focus: #17262e;
  color-scheme: light;
}
body.dark {
  --paper: #0f2127; --paper-2: #17323a; --card: #14292f; --ink: #f6ebd0; --ink-soft: #c3d0cc; --line: #2f5058;
  --accent: #e0554b; --accent-ink: #1a0b09; --accent-2: #3fb0b3; --link: #7fd2d0; --focus: #ffd36b;
  --head-bg: #8f231e; --head-ink: #fff9e8; --accent-text: #ff9a90; --red-solid: #a82a24; --hero-bg: #0c3a40; --shadow: 0 0 0 3px #f6ebd0, 6px 6px 0 3px #f6ebd0;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  body:not(.light) {
    --paper: #0f2127; --paper-2: #17323a; --card: #14292f; --ink: #f6ebd0; --ink-soft: #c3d0cc; --line: #2f5058;
    --accent: #e0554b; --accent-ink: #1a0b09; --accent-2: #3fb0b3; --link: #7fd2d0; --focus: #ffd36b;
    --head-bg: #8f231e; --head-ink: #fff9e8; --accent-text: #ff9a90; --red-solid: #a82a24; --hero-bg: #0c3a40; --shadow: 0 0 0 3px #f6ebd0, 6px 6px 0 3px #f6ebd0;
    color-scheme: dark;
  }
}

h1, h2, h3, .tile-name { font-weight: 400; letter-spacing: .01em; }
.site-header { background-image: repeating-linear-gradient(180deg, transparent 0 calc(100% - 7px), #fff9e8 calc(100% - 7px) calc(100% - 5px), transparent calc(100% - 5px) calc(100% - 3px), #1d6a70 calc(100% - 3px)); }
.brand-name { font-size: 1.45rem; text-shadow: 2px 2px 0 rgb(0 0 0 / .25); }
.brand-name b { font-weight: 400; color: #ffe28f; }
.brand-mark { border-radius: 50%; background: radial-gradient(circle, #b9302a 0 24%, #fff9e8 25% 40%, #1d6a70 41% 62%, #fff9e8 63% 70%, #17262e 71%); inline-size: 2.2rem; block-size: 2.2rem; }
.nav-link { font-weight: 700; }
.nav-link:hover { background: rgb(255 255 255 / .15); text-decoration: none; }
.button, button:not(.circle) { border-radius: 2rem; border: 3px solid #17262e; box-shadow: 3px 3px 0 #17262e; font-family: var(--text); font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.site-nav .circle { box-shadow: none; border: 0; }
.button.border { background: var(--card); box-shadow: 3px 3px 0 #17262e; }

/* Hero: sunburst */
.hero { padding-block: 2.5rem 3rem; --bleed-image: repeating-conic-gradient(from 0deg at 75% 120%, rgb(255 249 232 / .09) 0 7deg, transparent 7deg 14deg); --bleed-border: 8px solid #17262e; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); line-height: 1.04; text-shadow: 3px 3px 0 #17262e; }
.hero .kicker { display: inline-block; background: #ffd36b; color: #17262e; padding: .35rem 1.1rem; border: 3px solid #17262e; border-radius: 2rem; transform: rotate(-2deg); letter-spacing: .1em; box-shadow: 3px 3px 0 #17262e; }
.hero .lede { font-size: 1.2rem; }
.hero .car-art { --car-glass: #bfe6e4; --car-tire: #17262e; --car-hub: #ffd36b; filter: drop-shadow(4px 4px 0 #17262e); color: #b9302a; }
.hero .finder { border: 4px solid #17262e; border-radius: 1.4rem; box-shadow: var(--shadow); position: relative; margin-block-start: .75rem; }
.hero .finder::before { content: ""; position: absolute; inset: 6px; border: 2px dashed var(--accent); border-radius: 1rem; pointer-events: none; }
.finder legend { font-family: var(--display); color: var(--accent-text); font-size: 1.15rem; font-weight: 400; }
.finder .field.border > select { border-width: 2px; border-color: var(--ink); background: var(--paper); border-radius: .8rem; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; } }

.stats { --bleed: var(--red-solid); color: #fff9e8; margin-block: 0 .5rem; padding-block: 1rem; align-items: start; }
.stats::before { border-block: 3px solid #17262e; }   /* the dark lines run edge to edge with the red band, not just across the content width */
.stats p, .stats b { color: #fff9e8; }
.stats b { font-weight: 400; color: #ffd36b; text-shadow: 2px 2px 0 rgb(0 0 0 / .3); }
.popular h2, .how h2, .categories h2, .vendor-services h2, .results-head h2 { color: var(--accent-text); text-shadow: 2px 2px 0 var(--paper-2); }
.popular h2::after, .how h2::after, .categories h2::after { content: ""; display: block; block-size: 9px; margin-block-start: .4rem; max-inline-size: 18rem; background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 24px, var(--accent-2) 24px 42px, transparent 42px 48px); border-radius: 5px; }
/* Badge tiles */
.tiles { gap: 1rem; }
.tile a { aspect-ratio: 1; border-radius: 50%; align-items: center; justify-content: center; text-align: center; padding: 1rem 1.1rem; border: 4px solid #17262e; box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 8px currentColor, 4px 4px 0 #17262e; background: var(--red-solid); color: #fff9e8; transition: transform .15s; min-block-size: 0; overflow: hidden; min-inline-size: 0; }
.tile-1 a { background: #1d6a70; color: #fff9e8; }
.tile-2 a { background: #ffd36b; color: #17262e; }
.tile-3 a { background: #17262e; color: #fff9e8; }
.tile a:hover { transform: rotate(-3deg) scale(1.03); }
.tile-name { font-size: clamp(.8rem, 3.7vw, 1.05rem); line-height: 1.12; overflow-wrap: anywhere; hyphens: auto; }
.tile-count { font-weight: 700; font-size: .85rem; }
.tile a { gap: .15rem; }
/* Ticket-stub steps */
.steps li { background: var(--card); border: 3px solid #17262e; border-radius: .8rem; box-shadow: 4px 4px 0 #17262e; }
.steps li::before { background: var(--accent-2); color: #fff9e8; border-radius: 50%; border: 3px solid #17262e; font-weight: 400; }
.chip { border: 2px solid #17262e; border-radius: 2rem; font-weight: 700; }
.chip:hover { background: #ffd36b; border-color: #17262e; color: #17262e !important; }

/* Results */
.refine { border: 3px solid #17262e; border-radius: 1.2rem; box-shadow: 4px 4px 0 #17262e; }
.refine-label, .refine-what { font-family: var(--display); font-weight: 400; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.vendor-card { border: 3px solid #17262e; border-radius: 1.1rem; box-shadow: 5px 5px 0 #17262e; padding: 1.1rem; position: relative; display: flex; flex-direction: column; gap: .75rem; }
.vendor-card::before { content: ""; position: absolute; inset: 0 0 auto 0; block-size: 14px; background: repeating-linear-gradient(90deg, var(--accent) 0 28px, var(--card) 28px 34px, var(--accent-2) 34px 62px, var(--card) 62px 68px); border-block-end: 3px solid #17262e; }
.vendor-card .card-media { margin-block-start: .9rem; border: 3px solid #17262e; border-radius: .7rem; aspect-ratio: 3 / 2; box-shadow: 0 0 0 4px var(--card), 0 0 0 7px var(--accent); }
.monogram { font-size: 5rem; color: var(--accent-text); background: radial-gradient(circle at 50% 50%, var(--card) 0 40%, var(--paper-2) 41%); font-family: var(--display); }
.card-body { margin-block-start: .4rem; }
.vendor-card h3 { font-size: 1.3rem; line-height: 1.15; }
.vendor-card .call a { color: var(--link); }
.vendor-card:hover { transform: rotate(-.6deg); }
.empty-state { border: 3px solid #17262e; border-radius: 1.4rem; box-shadow: 5px 5px 0 #17262e; }
.empty-state .car-art { color: var(--accent); }

/* Vendor page */
.vendor-head { --bleed: var(--hero-bg); color: var(--hero-ink); --bleed-image: repeating-conic-gradient(from 0deg at 85% 130%, rgb(255 249 232 / .09) 0 7deg, transparent 7deg 14deg); --bleed-border: 8px solid #17262e; padding-block: 1.5rem 2rem; margin-block-end: 1.5rem; }
.vendor-head h1 { text-shadow: 3px 3px 0 #17262e; font-size: clamp(2.1rem, 7vw, 3.8rem); }
.vendor-head .lede, .vendor-head .crumb a { color: #e6f1ee; }
.big-action.alt { background: #fff9e8; color: #17262e !important; }
.panel, .vendor-service { border: 3px solid #17262e; border-radius: 1rem; box-shadow: 4px 4px 0 #17262e; }
.panel h2 { color: var(--accent-text); }
.vendor-service h3 { color: var(--ink); }
.vendor-service .service-picture { border: 3px solid #17262e; border-radius: .6rem; box-shadow: 3px 3px 0 var(--accent); }
.site-footer { background: #17262e; color: #d8cfb8; border-block-start: 8px solid var(--accent); }
.site-footer .foot-brand .brand-name { color: #fff9e8; }

/* Ads (docs/ads.md): two framed strips rendered into the page, quiet label, one row of fixed height (the image row 120 px + a two-line caption) and images that carry their size, so nothing shifts.
   The images are at most 104 px high (set by AdPack, never upscaled), plus a 2 px frame; the row has 6 px of padding so a focused ad's outline is not clipped. */
.ads-slot { display: block; margin-block: 1.5rem; padding: .4rem 1rem 1rem; background: var(--card); border: 3px solid var(--ink); border-radius: 1.1rem; box-shadow: 4px 4px 0 var(--ink); }
.ads-slot::before { content: "Advertisements"; display: block; font: 700 .75rem/1.4rem var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); block-size: 1.4rem; margin-block-end: .25rem; }
.ads-row { list-style: none; margin: 0; padding: 6px; box-sizing: border-box; display: flex; gap: .75rem; align-items: flex-start; block-size: calc(120px + 2.6rem); overflow-x: auto; scroll-snap-type: x proximity; }
.ads-row li { flex: none; scroll-snap-align: center; padding-block-start: 0; }
.ads-row li:first-child { margin-inline-start: auto; }   /* centred when it fits, scrolls from the first ad when it does not */
.ads-row li:last-child { margin-inline-end: auto; }
.ads-row a { display: block; border-radius: .5rem; text-decoration: none; }
.ad-pic { display: flex; align-items: center; justify-content: center; block-size: 108px; }   /* every picture sits in the same box, so the captions line up */
.ads-row img { display: block; box-sizing: content-box; max-inline-size: none; border: 2px solid var(--ink); border-radius: .5rem; background: var(--paper-2); }
/* The text-only ad (the image links have expired): the same link as a quiet tile, as tall as the image row, so the strip does not change height. */
.ads-row .ad-text { display: flex; align-items: center; inline-size: 11rem; block-size: calc(108px + .3rem + 2.5rem); box-sizing: border-box; padding: .6rem .75rem; border: 2px dashed var(--ink-soft); border-radius: .5rem; background: var(--paper-2); color: var(--ink); font-size: .85rem; line-height: 1.3; }
.ads-row .ad-text:hover { border-color: var(--accent); }
.ad-text-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
/* The caption under each image (the ad title, also the link text): two lines at most, as wide as the image, quiet. */
.ad-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; inline-size: 0; min-inline-size: 100%; margin-block-start: .3rem; font-size: .75rem; line-height: 1.25; color: var(--ink-soft); }
@media (max-width: 599px) { .ads-slot { padding-inline: .75rem; } }

/* ---- Articles (docs/articles.md, docs/design.md): the same sign-painter world, made for reading ---- */
body ::selection { background: #ffd36b; color: #17262e; }
.articles-head { padding-block: 1.75rem .5rem; }
.articles-head h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.02; margin: 0 0 .5rem; text-shadow: 3px 3px 0 var(--paper-2); }
.articles-head h1::after { content: ""; display: block; block-size: 9px; margin-block-start: .6rem; max-inline-size: 14rem; background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 24px, var(--accent-2) 24px 42px, transparent 42px 48px); border-radius: 5px; }
.articles-head .lede { max-inline-size: 38rem; color: var(--ink-soft); font-size: 1.2rem; margin: .75rem 0 0; }
.articles-head .crumb { margin: 0; }
.article-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.25rem 1.5rem; }
.chip[aria-current="page"] { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }
.article-meta { margin: 0 0 .5rem; font-size: .85rem; line-height: 1.35; color: var(--ink-soft); display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; }
.article-meta .meta-when { white-space: nowrap; }
.article-meta a { color: var(--link); font-weight: 700; text-decoration: none; }
.article-meta a:hover { text-decoration: underline; text-underline-offset: .2em; }
.article-meta .dot, .byline .dot { opacity: .7; margin-inline: .25rem; }
.badge-tag { display: inline-block; padding: .1rem .6rem; background: #ffd36b; color: #17262e; border: 2px solid #17262e; border-radius: 2rem; font-weight: 800; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.article-dek { margin: .35rem 0 0; color: var(--ink-soft); }
.article-card-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-conic-gradient(from 0deg at 50% 120%, rgb(255 249 232 / .12) 0 7deg, transparent 7deg 14deg), var(--accent-2); }
.article-card-fallback span { display: grid; place-items: center; inline-size: 5.5rem; block-size: 5.5rem; border-radius: 50%; background: var(--card); color: var(--accent-text); font: 400 3rem/1 var(--display); border: 3px solid #17262e; }

/* The featured article: a poster */
.article-featured { display: grid; margin-block: 1.5rem 2rem; background: var(--card); color: var(--ink); border: 3px solid #17262e; border-radius: 1.1rem; box-shadow: 6px 6px 0 #17262e; overflow: hidden; }
.article-featured-media { display: block; position: relative; aspect-ratio: 3 / 2; background: var(--paper-2); }
.article-featured-media picture, .article-featured-media img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.article-featured-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.article-featured h2 { margin: .15rem 0 .25rem; font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.08; }
.article-featured h2 a { color: inherit; text-decoration: none; }
.article-featured h2 a:hover { color: var(--accent-text); }
.article-featured .article-dek { font-size: 1.1rem; margin-block: .25rem 1rem; }
@media (min-width: 840px) { .article-featured { grid-template-columns: 1.15fr 1fr; } .article-featured-media { aspect-ratio: auto; min-block-size: 22rem; } .article-featured-body { padding: 2rem; justify-content: center; } }

/* The grid of cards */
.article-grid { display: grid; gap: 1.5rem; margin-block: 1rem 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.article-card { display: flex; flex-direction: column; background: var(--card); color: var(--ink); border: 3px solid #17262e; border-radius: 1.1rem; box-shadow: 5px 5px 0 #17262e; overflow: hidden; min-inline-size: 0; transition: transform .15s; }
.article-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--accent); }
.article-card-media { display: block; position: relative; aspect-ratio: 3 / 2; background: var(--paper-2); border-block-end: 3px solid #17262e; overflow: hidden; }
.article-card-media picture, .article-card-media img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.article-card-body { padding: .9rem 1.1rem 1.2rem; flex: 1; }
.article-card h3 { margin: 0; font-size: 1.35rem; line-height: 1.15; overflow-wrap: anywhere; }
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; text-underline-offset: .18em; }
.article-card .article-dek { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* An article page */
.article-head { --bleed: var(--hero-bg); color: var(--hero-ink); --bleed-image: repeating-conic-gradient(from 0deg at 88% 130%, rgb(255 249 232 / .09) 0 7deg, transparent 7deg 14deg); --bleed-border: 8px solid #17262e; padding-block: 1.25rem 2.25rem; margin-block-end: 1.5rem; }
.article-head .crumb { margin: 0 0 .25rem; }
.article-head .crumb a, .article-head .crumb { color: #e6f1ee; }
.article-head h1 { font-size: clamp(2.1rem, 6.5vw, 3.9rem); line-height: 1.04; margin: .25rem 0 .75rem; max-inline-size: 22ch; text-shadow: 3px 3px 0 #17262e; overflow-wrap: anywhere; text-wrap: balance; }
.article-head .lede { font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.4; margin: 0 0 1rem; max-inline-size: 40rem; color: #e6f1ee; }
.article-head .byline { margin: 0; color: #e6f1ee; font-size: .95rem; }
.article-cover { margin: 1.5rem auto 2rem; max-inline-size: 60rem; border: 3px solid #17262e; border-radius: 1.1rem; box-shadow: 6px 6px 0 #17262e; overflow: hidden; background: var(--paper-2); }
.article-cover img { display: block; inline-size: 100%; block-size: auto; }
.preview-banner { margin: 1rem 0; padding: .75rem 1rem; background: #ffd36b; color: #17262e; border: 3px solid #17262e; border-radius: .8rem; }
.preview-banner a { color: #17262e; font-weight: 800; }

/* The text: about 65 characters a line, a generous size, headings in slab, pictures framed */
.article-body { max-inline-size: 41rem; margin-inline: auto; font-size: 1.1875rem; line-height: 1.7; padding-block-end: 1rem; overflow-wrap: break-word; }
.article-body > :first-child { margin-block-start: 0; }
.article-body p { margin-block: 1.1em; }
.article-body h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.15; margin-block: 2.2em .6em; text-wrap: balance; }
.article-body h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.2; margin-block: 1.9em .5em; text-wrap: balance; }
.article-body h4 { font-size: 1.15rem; line-height: 1.3; margin-block: 1.6em .4em; font-family: var(--text); font-weight: 800; letter-spacing: .02em; }
.article-body a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.article-body a:hover { background: var(--paper-2); }
.article-body strong, .article-body b { font-weight: 800; }
.article-body mark { background: #ffd36b; color: #17262e; padding-inline: .15em; border-radius: .2em; }
.article-body ul, .article-body ol { margin-block: 1.1em; padding: 0; list-style: none; }
.article-body li { position: relative; padding-inline-start: 2rem; margin-block: .5em; }
.article-body ul > li::before { content: ""; position: absolute; inset-inline-start: .4rem; inset-block-start: .6em; inline-size: .55rem; block-size: .55rem; background: var(--accent); transform: rotate(45deg); }
.article-body ol { counter-reset: item; }
.article-body ol > li { counter-increment: item; }
.article-body ol > li::before { content: counter(item); position: absolute; inset-inline-start: 0; inset-block-start: .1em; display: grid; place-items: center; inline-size: 1.5rem; block-size: 1.5rem; border-radius: 50%; background: var(--accent-2); color: #fff9e8; font: 400 .85rem/1 var(--display); }
.article-body blockquote { position: relative; margin: 2.2rem 0; padding: 1.4rem 1.5rem 1.4rem 4rem; background: var(--paper-2); border: 3px solid #17262e; border-radius: 1.1rem; font: 400 clamp(1.2rem, 3vw, 1.5rem)/1.4 var(--display); }
.article-body blockquote::before { content: "\201C"; position: absolute; inset-inline-start: 1rem; inset-block-start: .1rem; font: 400 4.5rem/1 var(--display); color: var(--accent-text); }
.article-body blockquote p { margin: 0; }
.article-body blockquote p + p { margin-block-start: .75em; }
.article-body blockquote cite, .article-body blockquote footer { display: block; margin-block-start: .6em; font: 600 .9rem/1.4 var(--text); font-style: normal; color: var(--ink-soft); }
.article-body code { font: .9em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper-2); border: 1px solid var(--line); border-radius: .3rem; padding: .1em .35em; }
.article-body pre { margin-block: 1.6rem; padding: 1.1rem 1.25rem; background: #17262e; color: #fff9e8; border: 3px solid #17262e; border-radius: .8rem; overflow-x: auto; font: .9rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
.article-body pre code { background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.article-body hr { border: 0; block-size: 9px; margin-block: 2.5rem; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--accent) 0 28px, transparent 28px 34px, var(--accent-2) 34px 62px, transparent 62px 68px); }
.article-body figure.article-figure { margin: 2rem 0; }
.article-figure picture, .article-figure img { display: block; inline-size: 100%; block-size: auto; }
.article-figure img, .article-figure picture { border-radius: .9rem; }
.article-figure picture, .article-figure > img { border: 3px solid #17262e; box-shadow: 5px 5px 0 #17262e; overflow: hidden; background: var(--paper-2); }
.article-figure figcaption { margin-block-start: .75rem; font-size: .9rem; line-height: 1.45; color: var(--ink-soft); text-align: center; }
.article-more { margin-block: 3rem 1rem; }
.article-more h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 .5rem; color: var(--accent-text); }
.article-page + .ads-slot { margin-block-start: 2rem; }

/* Article search */
.article-search { display: flex; gap: .5rem; margin: 1rem 0 0; max-inline-size: 32rem; }
.article-search input[type=search] { flex: 1; min-inline-size: 0; margin: 0; font: inherit; font-size: 1rem; padding: .6rem .8rem; color: var(--ink); background: var(--card); border: 3px solid var(--ink); border-radius: .6rem; box-shadow: 3px 3px 0 var(--ink); }
.article-search button { margin: 0; flex: none; }
.search-count { margin: 1.25rem 0 .75rem; color: var(--ink-soft); }
.search-hits { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.25rem; max-inline-size: 41rem; }
.search-hits li { padding: 0 0 1.25rem; border-block-end: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.search-hits h2 { margin: 0 0 .35rem; font-size: 1.35rem; text-wrap: balance; }
.search-hits mark { background: #f6c945; color: #1a2430; padding: 0 .15em; border-radius: .2em; }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .35em; }   /* the current section */
