/* The showroom page, the hub of local pages and each area page (app/local.php). They borrow the homepage's showroom
   band, the shop's cards, chips and trail, and add only the layout below. Loaded after main.css and shop.css. */

.local__main { padding-bottom: 0; }
.local__crumbs { padding-top: clamp(20px, 2.6vw, 34px); }
.local__crumbs .crumbs { margin-bottom: 16px; }
.local__top { padding-block: clamp(26px, 3.5vw, 48px) clamp(34px, 4.5vw, 60px); }
.local__top h1 { margin-top: 14px; max-width: 18ch; font-size: clamp(38px, 6vw, 84px); text-wrap: balance; }
.local__lead { max-width: 62ch; margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: #22324f; text-wrap: pretty; }
.local__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; }
.btn--navy { --bg: var(--navy); color: var(--white); }
.btn--navy:hover { --bg: var(--blue); }

/* Sections on the paper background, and bands that run the full width in the pale blue */
.local__section { padding-block: clamp(40px, 5.5vw, 76px); }
.local__top + .local__section { padding-top: 0; }
.local__section h2, .local__band h2, .online h2 { font-size: clamp(28px, 3.6vw, 48px); margin-bottom: clamp(14px, 1.6vw, 20px); text-wrap: balance; }
.local__band { padding-block: clamp(40px, 5.5vw, 76px); background: var(--sky); }
.local__text { max-width: 66ch; font-size: 17px; line-height: 1.6; color: #22324f; text-wrap: pretty; }
.local__text + .local__text { margin-top: 12px; }
.local__note { max-width: 66ch; margin-bottom: 22px; color: #33445f; text-wrap: pretty; }
.local__small { max-width: 66ch; margin-top: 18px; font-size: 14.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.local__small a, .guide__item a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.local__split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
.local .related { margin-top: 0; }

/* The showroom's details as a card: the same facts as the homepage band, on white */
.visit { display: grid; align-content: start; margin: 0; background: var(--white); border-top: 6px solid var(--navy); }
.visit div { display: grid; grid-template-columns: minmax(118px, 4fr) 7fr; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.visit div:last-child { border-bottom: 0; }
.visit dt { color: var(--muted); }
.visit dd { margin: 0; font-weight: 600; }
.visit a { color: var(--blue); text-underline-offset: 3px; }

/* The showroom page reuses the homepage's navy band, with the page's own heading in it */
.showroom--page .showroom__intro h1 { font-size: clamp(34px, 3.9vw, 58px); }
.showroom--page .showroom__grid { padding-block: clamp(34px, 4.6vw, 64px) clamp(40px, 5.4vw, 76px); }

/* Ways into the shop: each category with its subcategories */
.shoplinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 26px clamp(24px, 4vw, 56px); }
.shoplinks__group h3 { margin-bottom: 12px; font: italic 850 clamp(24px, 2.6vw, 34px)/1.05 var(--display); color: var(--navy); }
.shoplinks__group h3 a { text-decoration: none; }
.shoplinks__group h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.shoplinks__group h3 small { margin-left: 6px; font: 600 14px/1 var(--body); color: var(--muted); }
.shoplinks__group p { display: flex; flex-wrap: wrap; gap: 8px; }
.shoplinks__group .chip, .arealinks .chip { text-decoration: none; --bg: var(--white); }
.shoplinks__group .chip:hover, .arealinks .chip:hover { --bg: #d3e4fa; }

/* Links to the area pages */
.arealinks { display: flex; flex-wrap: wrap; gap: 8px; }
.local__section .arealinks .chip { --bg: var(--sky); }
.arealinks .arealinks__all, .local__section .arealinks .arealinks__all { --bg: var(--navy); color: var(--white); }
.arealinks .arealinks__all:hover, .local__section .arealinks .arealinks__all:hover { --bg: var(--blue); }

/* The hub's list of areas */
.areagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.areacard { position: relative; display: grid; align-content: start; gap: 6px; padding: 20px 22px 22px; background: var(--white); border: 1px solid var(--card-line); transition: translate 0.2s ease, border-color 0.2s ease; }
.areacard:hover { translate: 0 -3px; border-color: var(--blue); }
.areacard h2 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.01em; }
.areacard h2 a { text-decoration: none; }
.areacard h2 a::after { content: ""; position: absolute; inset: 0; } /* the whole card is the link */
.areacard__miles { font-size: 14px; font-weight: 700; color: var(--blue); }
.areacard p:last-child { font-size: 15.5px; line-height: 1.5; color: #33445f; text-wrap: pretty; }

/* Ordering online: the other half of the invitation, on navy */
.online { padding-block: clamp(40px, 5.5vw, 72px); background: var(--navy); color: var(--white); }
.online__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px clamp(28px, 5vw, 76px); align-items: center; }
.online p { max-width: 62ch; color: #dbe6f7; text-wrap: pretty; }
.online__actions { display: grid; justify-items: start; gap: 12px; }
.online__call { color: var(--white); font-weight: 700; text-underline-offset: 4px; }
.online__call:hover { color: var(--sun); }

@media (max-width: 860px) {
  .local__split, .online__grid { grid-template-columns: minmax(0, 1fr); }
  .local__top h1 { max-width: none; }
}
@media (max-width: 699px) {
  .local__actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .visit div { grid-template-columns: clamp(118px, 36vw, 142px) 1fr; padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .areacard { transition: none; }
  .areacard:hover { translate: none; }
}
