/* Directory pages, one layout system from phone to desktop (desk, 2026-11-22).
   Search lives in the site header, filters sit at the top of the results,
   the map and the list split the screen 50/50 and the map fits above the
   fold. On the phone the map fills the screen under a sticky title bar and a
   floating List or Map switch. Loads before discovery.css, so every rule
   is prefixed with html to win on specificity. */

/* Search in the header, behind a magnifier until it is wanted */
html .directory-page .rsd-header-in { flex-wrap: wrap; }
html .directory-page .rsd-header-in > .discovery-search { order: 4; }
@media (max-width: 860px) {
  html .directory-page .rsd-header-in > .discovery-search { display: none; }
  html .directory-page .rsd-header.search-open .rsd-header-in > .discovery-search { display: block; }
}
html .directory-page .rsd-header-in > .rsd-nav { order: 3; }
html .directory-page .rsd-header-in > .rsd-search-toggle { order: 4; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid transparent; border-radius: 999px; background: transparent; color: #000; cursor: pointer; transition: border-color .16s, background .16s, color .16s, transform .16s cubic-bezier(.2,.8,.2,1); }
html .directory-page .rsd-header-in > .rsd-search-toggle:hover { border-color: #000; transform: translateY(-1px); }
html .directory-page .rsd-header.search-open .rsd-search-toggle { background: #000; color: #fff; border-color: #000; }
html .directory-page .rsd-search-toggle-x { display: none; font: 700 22px/1 'Montserrat', sans-serif; }
html .directory-page .rsd-header.search-open .rsd-search-toggle svg { display: none; }
html .directory-page .rsd-header.search-open .rsd-search-toggle-x { display: block; }
html .directory-page .rsd-header-in > .rsd-menu-toggle { order: 5; }
@media (min-width: 861px) {
  /* The nav slides out as the field slides in, on one curve, nothing blinks */
  html .directory-page .rsd-header-in > .rsd-nav { max-width: 760px; overflow: hidden; white-space: nowrap; flex-wrap: nowrap; transition: max-width .34s cubic-bezier(.2,.8,.2,1), opacity .22s ease, transform .34s cubic-bezier(.2,.8,.2,1); }
  html .directory-page .rsd-header.search-open .rsd-nav { max-width: 0; opacity: 0; transform: translateX(10px); pointer-events: none; }
  /* The field sits between the nav and the magnifier, so its right edge is pinned to the glass and it grows leftward */
  html .directory-page .rsd-header-in > .discovery-search { display: block; flex: 0 1 0px; max-width: 0; opacity: 0; overflow: visible; margin-left: 0; pointer-events: none; transform-origin: right center; transition: flex-basis .34s cubic-bezier(.2,.8,.2,1), max-width .34s cubic-bezier(.2,.8,.2,1), opacity .18s ease .06s; }
  html .directory-page .rsd-header-in > .discovery-search .search-field-row { transform-origin: right center; }
  html .directory-page .rsd-header.search-open .rsd-header-in > .discovery-search { flex: 1 1 360px; max-width: 620px; opacity: 1; pointer-events: auto; }
  html .directory-page .rsd-header-in > .discovery-search .search-field-row { min-width: 0; }
}
html .directory-page .discovery-search > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html .directory-page .rsd-header-in .search-field-row { padding: 3px; }
html .directory-page .rsd-header-in .search-field-row input, html .directory-page #exSearch { height: 38px; font-size: 15px; max-width: none; }
html .directory-page .rsd-header-in .search-field-row button { font-size: 17px; padding: 6px 14px; }

@media (max-width: 1300px) and (min-width: 861px) {
  html .directory-page .rsd-nav a { font-size: 15px; padding: .35rem .5rem; }
  html .directory-page .rsd-header-in { gap: .6rem; }
}

/* Title block, now inside the results column */
html .directory-page .ex-list > .ex-top { padding: 4px 0 10px; max-width: none; }
html .directory-page .ex-top-row { display: none; }
html .directory-page .ex-breadcrumbs { font-size: 13px; margin: 0 0 4px; }
html .directory-page .ex-top .ex-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
html .directory-page #exTitle { font-size: clamp(24px, 2.4vw, 32px) !important; line-height: 1.05; margin: 0; }
html .directory-page #exBlurb { margin: 0; font-size: 14px; color: #555; max-width: none; }
html .directory-page #exCounties { display: none !important; }
html .directory-page #exFilterNote { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #666; }
html .directory-page #exFilterNote:empty { display: none; }
html .directory-page #exName::-webkit-search-cancel-button, html .directory-page #exName::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
html .directory-page #exName:focus, html .directory-page #exName:focus-visible { outline: none !important; box-shadow: none; }
html .directory-page #exFilterToggle, html .directory-page #exShowAll { display: none !important; }

/* Filters at the top of the results */
html .directory-page .ex-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 6px; }
html .directory-page .ex-filters > label.ex-pill-field { flex: 0 0 auto; }
html .directory-page .ex-filters > label.ex-pill-text { flex: 1 1 180px; }
html .directory-page .ex-filters > #exReset { flex: 0 0 auto; margin-left: auto; }
html .directory-page .ex-filter-summary { margin: 0 0 2px; font-size: 13px; line-height: 1.5; color: #666; }
html .directory-page .ex-filter-summary.is-empty { display: none; }
html .directory-page .ex-fs-label { font: 700 11px 'BenchNine', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #999; margin-right: 2px; }
html .directory-page .ex-fs-item.is-set { color: #000; font-weight: 600; }
html .directory-page .ex-fs-item.is-set .ex-fs-label { color: #8B0000; }
html .directory-page .ex-fs-sep { margin: 0 8px; color: #bbb; }
html .directory-page .ex-filters > * { min-width: 0; }
html .directory-page .ex-filters > label { font: 600 11px/1 'Montserrat', sans-serif; letter-spacing: .08em; text-transform: uppercase; display: block; }
html .directory-page .ex-field[hidden] { display: none !important; }
html .directory-page #exCounty, html .directory-page #exName, html .directory-page #exTown { margin-top: 6px; width: 100%; max-width: none; min-width: 0; height: 44px; }
html .directory-page #exReset { min-height: 44px; height: 44px; padding: 0 14px; font-size: 14px; }

/* 50/50: the list scrolls, the map stays and fits above the fold */
html .directory-page .ex-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
html .directory-page .ex-list { flex: none; max-width: none; width: auto; min-width: 0; }
html .directory-page .ex-layout { padding-top: 10px; }
html .directory-page .ex-mapcol { position: sticky; top: calc(var(--ex-head, 84px) + 10px); height: calc(100vh - var(--ex-head, 84px) - 20px); min-height: 420px; max-height: none; }
html .directory-page #exMap { height: 100%; }

@media (max-width: 1000px) {
  html .directory-page .ex-filters { grid-template-columns: 1fr 1fr; }
  html .directory-page .ex-filters > #exReset { grid-column: 2; justify-self: end; }
}

/* The phone: an app, not a page */
@media (max-width: 860px) {
  html .directory-page .rsd-header-in > .discovery-search { flex: 0 0 100%; max-width: none; order: 6; margin-top: 4px; }
  html .directory-page .rsd-header-in > .rsd-search-toggle { margin-left: auto; }
  html .directory-page .ex-list > .ex-top { position: sticky; top: var(--ex-head, 100px); z-index: 1000; background: var(--cream, #fffaec); padding: 8px 12px; margin: 0 -12px 8px; border-bottom: 2px solid #000; }
  html .directory-page .ex-breadcrumbs { font-size: 12px; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html .directory-page #exTitle { font-size: 19px !important; }
  html .directory-page #exBlurb { font-size: 12.5px; }
  html .directory-page .ex-layout { display: block; padding: 0; }
  html .directory-page .ex-list { padding: 0 12px 90px; }
  html .directory-page .ex-filters { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 0 10px; padding-bottom: 2px; }
  html .directory-page .ex-filters::-webkit-scrollbar { display: none; }
  html .directory-page .ex-top:not(.filters-open) .ex-field, html .directory-page .ex-top:not(.filters-open) #exReset { display: flex !important; }
  html .directory-page .ex-filters > label.ex-field { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 12px; border: 2px solid #000; border-radius: 999px; background: #fff; font: 700 13px 'BenchNine', sans-serif; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
  html .directory-page .ex-filters > label.ex-field .rsd-select, html .directory-page .ex-filters > label.ex-field .rsd-input { height: 32px; margin: 0; border: 0; background: transparent; padding: 0 4px; font: 500 14px 'Montserrat', sans-serif; width: auto; max-width: 150px; min-width: 0; }
  html .directory-page #exReset { flex: 0 0 auto; min-height: 38px; height: 38px; padding: 0 12px; border-radius: 999px; font-size: 14px; }
  html .directory-page .ex-mapcol { position: static; width: 100%; height: calc(100dvh - var(--ex-head, 100px) - var(--ex-bar, 90px)); min-height: 360px; }
  html .directory-page #exMap { border: 0; border-radius: 0; }
  html .directory-page.ex-mobile-list .ex-mapcol { display: block !important; position: fixed !important; left: -10000px; top: 0; width: calc(100vw - 40px) !important; visibility: hidden; pointer-events: none; }
  /* Map view: the map owns the screen, the filter chips float over it */
  html .directory-page.ex-mobile-map { overflow: hidden; }
  html .directory-page.ex-mobile-map #exBlurb { display: none; }
  html .directory-page.ex-mobile-map .ex-mapcol { position: fixed; left: 0; right: 0; bottom: 0; top: var(--ex-map-top, 190px); height: calc(100dvh - var(--ex-map-top, 190px)) !important; min-height: 0; z-index: 900; }
  html .directory-page.ex-mobile-map .ex-list { display: block !important; padding: 0; }
  html .directory-page.ex-mobile-map .ex-list > :not(.ex-filters):not(.ex-top) { display: none !important; }
  html .directory-page.ex-mobile-map .ex-list > .ex-top { position: static; margin: 0; }
  html .directory-page.ex-mobile-map .ex-filters { position: fixed; left: 0; right: 0; top: var(--ex-map-top, 190px); z-index: 950; margin: 0; padding: 10px 12px; }
  html .directory-page.ex-mobile-map .ex-filters > label.ex-field, html .directory-page.ex-mobile-map #exReset { box-shadow: 0 3px 10px rgba(0,0,0,.2); }
  html .directory-page .ex-view-switch { display: flex; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1200; margin: 0; gap: 0; background: #000; border: 2px solid #000; border-radius: 999px; padding: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
  html .directory-page .ex-view-switch button { min-height: 40px; height: 40px; flex: 0 0 auto; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: 700 17px 'BenchNine', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
  html .directory-page .ex-view-switch button[aria-pressed="true"] { background: #f4bb2f; color: #000; }
}

/* Pills and menus (the native selects stay in the page, visually hidden) */
html .directory-page .ex-filters { align-items: center; }
html .directory-page .ex-filters > label.ex-pill-field { position: relative; display: block; font: inherit; letter-spacing: 0; text-transform: none; }
html .directory-page .ex-pill-field > .ex-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
html .directory-page .ex-pill { display: inline-flex; align-items: center; gap: 8px; width: auto; height: 44px; padding: 0 12px 0 16px; border: 2px solid #000; border-radius: 999px; background: #fff; color: #000; font: 500 14px 'Montserrat', sans-serif; cursor: pointer; text-align: left; transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s cubic-bezier(.2,.8,.2,1), background .16s, color .16s; }
html .directory-page .ex-pill:hover, html .directory-page .ex-pill-field.is-open .ex-pill { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 #000; }
html .directory-page .ex-pill:active { transform: translate(0, 0); box-shadow: 1px 1px 0 #000; }
html .directory-page .ex-pill-label { font: 700 17px 'BenchNine', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #000; flex: 0 0 auto; }
html .directory-page .ex-pill-value { display: none; }
html .directory-page .ex-pill-caret { width: 12px; height: 12px; flex: 0 0 auto; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
html .directory-page .ex-pill-field.is-open .ex-pill-caret { transform: rotate(180deg); }
html .directory-page .ex-pill.is-set, html .directory-page .ex-pill-field.is-set .ex-pill { background: #000; color: #fff; }
html .directory-page .ex-pill.is-set .ex-pill-label, html .directory-page .ex-pill-field.is-set .ex-pill-label { color: #f4bb2f; }
html .directory-page .ex-pill-input { width: 100%; }
html .directory-page .ex-pill-input { cursor: text; padding-left: 12px; }
html .directory-page .ex-pill-input:focus-within { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 #000; }
html .directory-page .ex-pill-icon { width: 16px; height: 16px; flex: 0 0 auto; }
html .directory-page .ex-pill-input #exName { flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; border: 0; background: transparent; padding: 0; font: 500 14px 'Montserrat', sans-serif; color: inherit; outline: none; }
html .directory-page .ex-pill-input #exName::placeholder { color: #777; }
html .directory-page .ex-pill-x { flex: 0 0 auto; width: 26px; height: 26px; border: 0; border-radius: 999px; background: #000; color: #fff; font: 700 16px/1 'Montserrat', sans-serif; cursor: pointer; }
html .directory-page .ex-pill-field.is-set .ex-pill-x { background: #f4bb2f; color: #000; }
html .directory-page #exReset { border-radius: 999px; border: 2px solid #000; background: transparent; transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s, background .16s, color .16s; }
html .directory-page #exReset:hover { background: #000; color: #fff; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 #000; }
html .directory-page .ex-menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 1300; min-width: 100%; width: max-content; max-width: min(360px, 90vw); max-height: 360px; overflow-y: auto; background: #fff; border: 2px solid #000; border-radius: 12px; box-shadow: 5px 5px 0 #000; padding: 6px; transform-origin: top left; }
html .directory-page .ex-menu-head { font: 700 12px 'BenchNine', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #777; padding: 8px 12px 6px; }
html .directory-page .ex-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: #000; font: 500 14px 'Montserrat', sans-serif; text-align: left; cursor: pointer; transition: background .12s, color .12s, transform .12s; }
html .directory-page .ex-menu-item:hover, html .directory-page .ex-menu-item:focus-visible { background: #000; color: #fff; outline: none; transform: translateX(2px); }
html .directory-page .ex-menu-item[aria-selected="true"] { background: #f4bb2f; color: #000; }
html .directory-page .ex-menu-item[aria-selected="true"]:hover { background: #000; color: #fff; }
html .directory-page .ex-menu-count { font: 700 13px 'BenchNine', sans-serif; letter-spacing: .05em; color: #777; }
html .directory-page .ex-menu-item:hover .ex-menu-count, html .directory-page .ex-menu-item:focus-visible .ex-menu-count { color: #f4bb2f; }
html .directory-page .ex-menu-item[aria-selected="true"] .ex-menu-count { color: #000; }
@media (prefers-reduced-motion: no-preference) {
  html .directory-page .ex-menu-item { animation: exMenuIn .22s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 18ms); }
  @keyframes exMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  html .directory-page .ex-card { transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s cubic-bezier(.2,.8,.2,1); }
  html .directory-page .ex-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #000; }
}
@media (max-width: 860px) {
  html .directory-page .ex-filters > label.ex-pill-field { flex: 0 0 auto; height: auto; padding: 0; border: 0; background: transparent; }
  html .directory-page .ex-filters > label.ex-pill-text { flex: 0 0 auto; }
  html .directory-page .ex-filters > #exReset { margin-left: 0; }
  html .directory-page .ex-filter-summary { margin: 0 0 10px; font-size: 12px; }
  html .directory-page.ex-mobile-map .ex-filter-summary { display: none; }
  html .directory-page .ex-pill { height: 38px; padding: 0 10px 0 12px; width: auto; max-width: 240px; }
  html .directory-page .ex-pill-input #exName { height: 32px; width: 120px; }
  html .directory-page .ex-menu { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-width: none; width: auto; max-height: 70dvh; border-radius: 18px 18px 0 0; border-bottom: 0; box-shadow: 0 -8px 30px rgba(0,0,0,.25); padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px)); transform-origin: bottom center; }
  html .directory-page .ex-menu::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; background: #000; margin: 2px auto 8px; opacity: .25; }
  html .directory-page .ex-menu-item { padding: 13px 12px; font-size: 15px; }
  html .directory-page .ex-sheet-back { position: fixed; inset: 0; z-index: 1250; background: rgba(0,0,0,.35); }
  html .directory-page.ex-sheet-open { overflow: hidden; }
}

/* Clear filters lives with the summary line, as text, only when something is set */
html .directory-page .ex-filters > #exReset { display: none !important; }
html .directory-page #exReset.ex-reset-inline { display: inline-flex !important; align-items: center; height: auto; min-height: 0; padding: 0; margin: 0 0 0 10px; border: 0; border-radius: 0; background: transparent; color: #8B0000; font: 700 12px 'BenchNine', sans-serif; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; transform: none; cursor: pointer; }
html .directory-page #exReset.ex-reset-inline:hover { color: #000; background: transparent; box-shadow: none; transform: none; }
html .directory-page #exReset.ex-reset-inline[hidden] { display: none !important; }

/* Map popups match the cards and menus */
html .directory-page .leaflet-popup-content-wrapper { border: 2px solid #000; border-radius: 12px; box-shadow: 5px 5px 0 #000; background: #fff; padding: 0; }
html .directory-page .leaflet-popup-content { margin: 0; }
html .directory-page .leaflet-popup-tip { background: #000; }
html .directory-page .leaflet-popup-close-button { top: 8px; right: 10px; font-size: 20px; color: #000; }
html .directory-page .leaflet-popup { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  html .directory-page .leaflet-popup-content-wrapper { animation: exPopIn .2s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom center; }
  @keyframes exPopIn { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
}

/* Store cards */
html .directory-page .ex-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px 18px 16px 16px; border: 2px solid #000; border-radius: 14px; background: #fff; cursor: pointer; }
html .directory-page .ex-card:focus-visible { outline: 3px solid #8B0000; outline-offset: 3px; }
html .directory-page .ex-card-art { width: 56px; height: 56px; }
html .directory-page .ex-card-disc, html .directory-page .ex-card-logo { width: 56px; height: 56px; display: block; border-radius: 50%; }
html .directory-page .ex-card-logo { object-fit: cover; border: 2px solid #000; }
@media (prefers-reduced-motion: no-preference) {
  html .directory-page .ex-card-disc { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  html .directory-page .ex-card:hover .ex-card-disc, html .directory-page .ex-card.hot .ex-card-disc { transform: rotate(40deg); }
}
html .directory-page .ex-card-body { min-width: 0; }
html .directory-page .ex-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
html .directory-page .ex-card-county { font: 700 12px 'BenchNine', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #888; }
html .directory-page .ex-card-miles { font: 700 12px 'BenchNine', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #111; margin-left: auto; }
html .directory-page .ex-card-name { margin: 6px 0 4px; font-size: 23px; line-height: 1.05; }
html .directory-page .ex-card .rsd-addr { font-size: 13px; letter-spacing: .02em; color: #444; margin: 0; }
html .directory-page .ex-card-line { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #222; }
html .directory-page .ex-card-today { margin: 8px 0 0; font-size: 13px; color: #222; }
html .directory-page .ex-card-today > span { font: 700 12px 'BenchNine', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8B0000; margin-right: 4px; }
html .directory-page .ex-card-genres { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
html .directory-page .ex-card-genres > span { font: 700 12px 'BenchNine', sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border: 1px solid #000; border-radius: 999px; }
html .directory-page .ex-card-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; line-height: 1; }
html .directory-page .ex-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border: 2px solid #000; border-radius: 999px; background: #fff; color: #000; font: 600 12.5px 'Montserrat', sans-serif; text-decoration: none; transition: background .14s, color .14s, transform .14s cubic-bezier(.2,.8,.2,1); }
html .directory-page .ex-chip:hover { background: #000; color: #fff; transform: translateY(-1px); }
html .directory-page .ex-card.hot { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #8B0000; border-color: #8B0000; }
html .directory-page .ex-card .ex-map-open, html .directory-page .ex-card-actions { display: none; }

/* Popups in the same voice */
html .directory-page .rsd-popup { padding: 14px 16px 14px; min-width: 240px; }
html .directory-page .rsd-popup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
html .directory-page .rsd-popup-head .ex-card-disc, html .directory-page .rsd-popup-head .ex-card-logo { width: 40px; height: 40px; }
html .directory-page .rsd-popup-badges { margin: 0; }
html .directory-page .rsd-popup-name { margin-bottom: 4px; }
html .directory-page .rsd-popup-address { text-transform: none; letter-spacing: .02em; font-weight: 500; color: #444; }
html .directory-page .rsd-popup .ex-card-links { margin-top: 10px; }
html .directory-page .rsd-popup .ex-chip { height: 28px; font-size: 12px; }
@media (max-width: 860px) {
  html .directory-page .ex-card { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 14px; }
  html .directory-page .ex-card-art, html .directory-page .ex-card-disc, html .directory-page .ex-card-logo { width: 48px; height: 48px; }
  html .directory-page .ex-card-name { font-size: 21px; }
}

/* Card hover eases in, never snaps */
@media (prefers-reduced-motion: no-preference) {
  html .directory-page .ex-card { transition: transform .26s cubic-bezier(.2,.8,.2,1), box-shadow .26s cubic-bezier(.2,.8,.2,1), border-color .26s ease; will-change: transform; }
  html .directory-page .ex-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #000; }
  html .directory-page .ex-card.hot { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #8B0000; border-color: #8B0000; }
  html .directory-page .ex-pin > svg { transition: transform .26s cubic-bezier(.2,.8,.2,1), filter .26s ease; }
  html .directory-page .ex-cluster { transition: transform .26s cubic-bezier(.2,.8,.2,1), box-shadow .26s ease; }
}

/* Magnifier sits right beside the nav; the open field shows focus with the pill shadow, not the ring */
@media (min-width: 861px) {
  html .directory-page .rsd-header-in > .rsd-nav { margin-left: auto; }
  html .directory-page .rsd-header-in > .rsd-search-toggle { margin-left: 2px; }
}
html .directory-page .rsd-header-in #exSearch:focus, html .directory-page .rsd-header-in #exSearch:focus-visible { outline: none !important; box-shadow: none; }
html .directory-page .rsd-header-in .search-field-row { transition: box-shadow .2s cubic-bezier(.2,.8,.2,1), transform .2s cubic-bezier(.2,.8,.2,1); }
html .directory-page .rsd-header-in .search-field-row:focus-within { box-shadow: 4px 4px 0 #000; transform: translate(-1px, -1px); }

/* The section below the directory runs on the same rails as the directory */
html .directory-page .dm-after { max-width: 1680px; padding-inline: clamp(24px, 4vw, 64px); margin-top: 2.2rem; box-sizing: inherit; }
@media (max-width: 860px) { html .directory-page .dm-after { padding-inline: 12px; } }
html .directory-page .dm-after { border-top: 0; }
html .directory-page .dm-after::before { content: ''; display: block; border-top: 3px solid #000; margin-bottom: 3.2rem; }

/* While the field grows or shrinks, nothing inside it may poke out past its edge */
@media (min-width: 861px) {
  html .directory-page .rsd-header-in > .discovery-search .search-field-row { overflow: hidden; }
  html .directory-page .rsd-header-in > .discovery-search .search-field-row > * { flex-shrink: 1; min-width: 0; }
  html .directory-page .rsd-header-in > .discovery-search .search-field-row button { flex-shrink: 0; }
  html .directory-page .rsd-header:not(.search-open) .rsd-header-in > .discovery-search { visibility: hidden; transition: flex-basis .34s cubic-bezier(.2,.8,.2,1), max-width .34s cubic-bezier(.2,.8,.2,1), opacity .18s ease, visibility 0s linear .34s; }
}

/* Same split as the directory: the rail under the list, the write-up under the map */
@media (min-width: 861px) {
  html .directory-page .dm-grid { grid-template-columns: minmax(260px, 28%) minmax(0, 1fr); gap: 48px; }
  html .directory-page .dm-rail .dm-cities { columns: 1; }
  html .directory-page .dm-prose p { max-width: 78ch; }
  html .directory-page .dm-prose p, html .directory-page .dm-faq div { max-width: none; }
}

/* The rack: a shop unfolds under its own name */
html .directory-page .ex-multi-item { position: relative; transition: background .18s cubic-bezier(.2,.8,.2,1), color .18s; }
html .directory-page .ex-multi-item.is-open { background: #000; }
html .directory-page .ex-multi-item.is-open .ex-multi-name, html .directory-page .ex-multi-item.is-open .ex-multi-addr { color: #fff; }
html .directory-page .ex-multi-item.is-open .ex-multi-town { background: #fff; color: #000; }
html .directory-page .ex-multi-detail { padding: 10px 18px 14px; border-bottom: 1px solid #ddd; background: #fffaec; }
html .directory-page .ex-multi-detail .ex-card-links { margin-top: 0; }
html .directory-page .ex-multi-detail .ex-chip { height: 28px; font-size: 12px; }
html .directory-page .ex-multi-list { max-height: 340px; }

/* Phone: the title scrolls away, the filters stick, and the strip is tight */
@media (max-width: 860px) {
  html .directory-page .ex-list > .ex-top { position: static; border-bottom: 0; padding: 8px 12px 2px; margin: 0 -12px 0; background: transparent; }
  html .directory-page #exTitle { font-size: 21px !important; }
  html .directory-page .ex-filters { position: sticky; top: var(--ex-head, 100px); z-index: 1000; margin: 0 -12px 8px; padding: 8px 12px 8px; gap: 6px; background: var(--cream, #fffaec); border-bottom: 2px solid #000; }
  html .directory-page .ex-pill { height: 34px; padding: 0 9px 0 12px; gap: 5px; }
  html .directory-page .ex-pill-label { font-size: 15px; }
  html .directory-page .ex-pill-caret { width: 10px; height: 10px; }
  html .directory-page .ex-pill-input { padding-left: 10px; }
  html .directory-page .ex-pill-input #exName { height: 30px; width: 112px; font-size: 13px; }
  html .directory-page .ex-pill-icon { width: 14px; height: 14px; }
  html .directory-page .ex-pill-x { width: 22px; height: 22px; font-size: 14px; }
  html .directory-page .ex-filter-summary { margin: 0 0 6px; }
  html .directory-page #exFilterNote { margin: 0 0 8px; font-size: 12px; }
  html .directory-page .ex-list { padding-top: 0; }
  /* Map view: the strip floats over the map just under the header */
  html .directory-page.ex-mobile-map .ex-list > .ex-top { display: block !important; height: 0; padding: 0; margin: 0; overflow: visible; }
  html .directory-page.ex-mobile-map .ex-list > .ex-top > :not(.ex-copy) { display: none !important; }
  html .directory-page.ex-mobile-map .ex-list > .ex-top .ex-copy { margin: 0; }
  html .directory-page.ex-mobile-map .ex-list > .ex-top .ex-copy > :not(.ex-view-switch) { display: none !important; }
  html .directory-page.ex-mobile-map .ex-mapcol { top: var(--ex-head, 100px); height: calc(100dvh - var(--ex-head, 100px)) !important; }
  html .directory-page.ex-mobile-map .ex-filters { position: fixed; top: var(--ex-head, 100px); left: 0; right: 0; margin: 0; padding: 10px 12px; background: transparent; border-bottom: 0; }
}
@media (max-width: 860px) {
  /* Map view: the back and See Stores Here buttons sit below the floating filter strip */
  html .directory-page.ex-mobile-map .ex-map-actions { margin-top: 56px; }
}
@media (max-width: 860px) {
  /* The strip fills the card width: County, Town, then the name field takes the rest */
  html .directory-page .ex-filters { overflow: visible; flex-wrap: nowrap; }
  html .directory-page .ex-filters > label.ex-pill-field { flex: 0 0 auto; }
  html .directory-page .ex-filters > label.ex-pill-text { flex: 1 1 auto; min-width: 0; }
  html .directory-page .ex-pill-input { width: 100%; min-width: 0; }
  html .directory-page .ex-pill-input #exName { width: 100%; flex: 1 1 auto; min-width: 0; }
  html .directory-page .ex-filters > #exReset { display: none !important; }
  html .directory-page .ex-filter-summary #exReset.ex-reset-inline { display: inline-flex !important; }
}

/* The disc monogram: a readable letter on desktop, nothing on the phone */
html .directory-page .ex-card-disc text { paint-order: stroke; }
@media (max-width: 860px) {
  html .directory-page .ex-card { grid-template-columns: minmax(0, 1fr); }
  html .directory-page .ex-card-art { display: none; }
  html .directory-page .rsd-popup-head .ex-card-disc { display: none; }
}

/* The two map chips travel together */
html .directory-page .ex-chip-pair { display: inline-flex; gap: 6px; flex: 0 0 auto; }

/* Phone header order: brand, magnifier, menu button; then the open menu; then the search along its bottom */
@media (max-width: 860px) {
  html .directory-page .rsd-header-in > .rsd-logo { order: 1; }
  html .directory-page .rsd-header-in > .rsd-search-toggle { order: 2; margin-left: auto; }
  html .directory-page .rsd-header-in > .rsd-menu-toggle { order: 3; }
  html .directory-page .rsd-header-in > .rsd-nav { order: 4; }
  html .directory-page .rsd-header-in > .discovery-search { order: 5; flex: 0 0 100%; max-width: none; margin: 4px 0 6px; }
  html .directory-page .rsd-header-in:has(.rsd-nav.is-open) > .discovery-search { display: block; }
  html .directory-page .rsd-header-in:has(.rsd-nav.is-open) > .rsd-search-toggle { visibility: hidden; }
  html .directory-page .rsd-header-in > .rsd-nav.is-open { padding-bottom: 2px; border-top: 2px solid #000; margin-top: 6px; }
}
@media (max-width: 860px) {
  html .directory-page .rsd-header-in > .rsd-search-toggle { display: none !important; }
  html .directory-page .rsd-header-in > .rsd-menu-toggle { margin-left: auto; }
}

/* Phone menu: an overlay panel, not a push */
@media (max-width: 860px) {
  html .directory-page .rsd-header { position: sticky; }
  html .directory-page .rsd-header-in > .rsd-nav { display: flex !important; position: absolute; left: 0; right: 0; top: 100%; z-index: 1150; flex-direction: column; gap: 2px; margin: 0; padding: 10px 12px 12px; background: var(--cream, #fffaec); border-bottom: 2px solid #000; box-shadow: 0 14px 30px rgba(0,0,0,.18); visibility: hidden; opacity: 0; transform: translateY(-10px); clip-path: inset(0 0 100% 0); pointer-events: none; transition: opacity .22s ease, transform .3s cubic-bezier(.2,.8,.2,1), clip-path .3s cubic-bezier(.2,.8,.2,1), visibility 0s linear .3s; }
  html .directory-page .rsd-header-in > .rsd-nav.is-open { visibility: visible; opacity: 1; transform: none; clip-path: inset(0 0 0 0); pointer-events: auto; transition: opacity .18s ease, transform .3s cubic-bezier(.2,.8,.2,1), clip-path .3s cubic-bezier(.2,.8,.2,1), visibility 0s; border-top: 0; margin-top: 0; }
  html .directory-page .rsd-nav .discovery-search.in-menu { display: block; margin: 10px 0 2px; padding-top: 12px; border-top: 2px solid #000; }
  html .directory-page .rsd-header-in > .discovery-search { display: none; }
  html .directory-page .rsd-menu-back { position: fixed; inset: 0; z-index: 1090; background: rgba(0,0,0,.35); animation: rsdBackIn .25s ease both; }
  @keyframes rsdBackIn { from { opacity: 0; } to { opacity: 1; } }
  html .directory-page.rsd-menu-open { overflow: hidden; }
}
@media (max-width: 860px) {
  html .directory-page .ex-view-switch { transition: opacity .2s ease, transform .2s ease; }
  html .directory-page.rsd-menu-open .ex-view-switch { opacity: 0; pointer-events: none; transform: translate(-50%, 8px); }
}
@media (max-width: 860px) {
  html .directory-page .rsd-header-in > .rsd-nav { padding-bottom: 16px; }
  html .directory-page .rsd-nav .discovery-search.in-menu { margin: 12px 0 0; padding-top: 16px; }
  html .directory-page .rsd-nav .discovery-search.in-menu .search-feedback:empty, html .directory-page .rsd-nav .discovery-search.in-menu .search-choices[hidden] { display: none; }
}
@media (max-width: 860px) {
  html .directory-page .rsd-header-in > .rsd-nav.is-open { padding-bottom: 18px; }
}
@media (max-width: 860px) {
  /* Between phone and desktop the header still needs its menu button */
  html .directory-page .rsd-header-in > .rsd-menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
}
