/* Concrete contractors directory. Tokens, buttons, the segmented control and scrollbars come from
   shell.css; the search box, filter bar and list-beside-map layout follow the permits page so the two
   tools read as one family. Rebuilt 2026-11-18.
   Order: page, search, bar, heading, letters, list, row, record, map, narrow screens. */

.dir-page { --dir-top: calc(var(--bar) + var(--dir-bar-h, 58px)); max-width: 2040px; padding-top: 28px; font-size: 14.5px; }
.dir-page button { font: inherit; cursor: pointer; }

/* ---------- Search ---------- */

.dir-hero { z-index: 6; overflow: visible; min-height: 0; margin-bottom: 14px; padding: 26px 290px 26px 32px; }
.dir-hero .tool-banner-art { bottom: -6px; right: 30px; width: 214px; }
.dir-hero > p { margin-top: 6px; font-size: 15px; }
.dir-search { position: relative; max-width: 760px; margin-top: 18px; }
.cic-page .dir-search input {
  width: 100%;
  height: 54px;
  padding: 0 84px 0 50px;
  border: 0;
  border-radius: 13px;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(12, 26, 21, .12), 0 1px 2px rgba(12, 26, 21, .06), 0 10px 24px -12px rgba(40, 70, 100, .4);
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  transition: box-shadow var(--t-2) var(--ease);
}
.cic-page .dir-search input::placeholder { color: #7A847E; font-weight: 400; }
.cic-page .dir-search input:hover { box-shadow: 0 0 0 1px rgba(12, 26, 21, .2), 0 1px 2px rgba(12, 26, 21, .06), 0 12px 26px -12px rgba(40, 70, 100, .45); }
.cic-page .dir-search input:focus { outline: none; box-shadow: 0 0 0 2px var(--forest), 0 0 0 5px rgba(63, 149, 80, .24), 0 12px 26px -12px rgba(40, 70, 100, .45); }
.dir-search-icon { position: absolute; left: 17px; top: 17px; color: var(--forest); pointer-events: none; }
.dir-search-key {
  position: absolute;
  right: 16px;
  top: 16px;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: #F1F0EC;
  box-shadow: inset 0 0 0 1px rgba(12, 26, 21, .1), inset 0 -1px 0 rgba(12, 26, 21, .1);
  color: var(--ink-2);
  font: 600 12px/1 var(--sans);
  pointer-events: none;
  transition: opacity var(--t-1) var(--ease);
}
.dir-search input:focus ~ .dir-search-key, .dir-search-clear:not([hidden]) ~ .dir-search-key { opacity: 0; }
.dir-search-clear {
  position: absolute;
  right: 12px;
  top: 11px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.dir-search-clear:hover { background: var(--concrete-50); color: var(--ink); }
.dir-search-clear[hidden] { display: none; }

/* ---------- The filter bar ---------- */

.dir-bar {
  position: sticky;
  top: var(--bar);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px 14px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 10px var(--gutter);
  background: rgba(241, 240, 236, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.dir-places { display: flex; flex: 1; gap: 6px; min-width: 0; overflow-x: auto; padding: 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.dir-places::-webkit-scrollbar { display: none; }
.dir-places button, .dir-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--e1);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--t-1) var(--ease), box-shadow var(--t-2) var(--ease), color var(--t-1) var(--ease), transform var(--t-1) var(--ease);
}
.dir-places small, .dir-toggle small { color: var(--ink-2); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dir-places button:hover, .dir-toggle:hover { box-shadow: var(--e2); }
.dir-places button:active, .dir-toggle:active { transform: translateY(1px); }
.dir-places button[aria-pressed=true] { background: var(--forest); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px var(--forest-deep); color: var(--on-forest); }
.dir-places button[aria-pressed=true] small { color: var(--on-forest-2); }
.dir-places button[disabled] { opacity: .45; cursor: default; box-shadow: var(--e1); }
.dir-bar-end { display: flex; flex: none; align-items: center; gap: 8px; }
/* A drawn switch: the knob slides, the track turns forest. */
.dir-toggle i { position: relative; width: 26px; height: 15px; border-radius: 8px; background: #C9CCC6; transition: background-color var(--t-2) var(--ease); }
.dir-toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(12, 26, 21, .3); transition: transform var(--t-2) var(--out); }
.dir-toggle[aria-pressed=true] i { background: var(--forest); }
.dir-toggle[aria-pressed=true] i::after { transform: translateX(11px); }
.dir-toggle[aria-pressed=true] { background: #E2EDE5; box-shadow: 0 0 0 1px rgba(36, 77, 61, .3); color: var(--forest-deep); }
.dir-display { display: none; }

/* ---------- Heading over the list ---------- */

.dir-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 34vw, 720px); gap: 24px; align-items: start; }
.dir-results { min-width: 0; }
.dir-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; min-height: 52px; margin: 8px 0 12px; }
.cic-page .dir-head h2 { font-size: 25px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dir-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.dir-head-actions { display: flex; align-items: center; gap: 14px; }
.dir-clear { padding: 0; border: 0; background: none; color: var(--forest); font-size: 14.5px; font-weight: 700; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--t-1) var(--ease); }
.dir-clear:hover { text-decoration-color: currentColor; }
.dir-clear[hidden] { display: none; }

/* ---------- Letters ---------- */

.dir-letters { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 12px; }
.dir-letters[hidden] { display: none; }
.dir-letters a, .dir-letters span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.dir-letters a { color: var(--forest); transition: background-color var(--t-1) var(--ease); }
.dir-letters a:hover { background: var(--panel); box-shadow: var(--e1); }
.dir-letters span { color: #B4B9B3; font-weight: 500; }

/* ---------- The list ---------- */

.dir-list { display: grid; gap: 18px; }
.dir-group { border-radius: 14px; background: var(--panel); box-shadow: var(--e1); scroll-margin-top: calc(var(--dir-top) + 12px); }
.cic-page .dir-letter { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px 8px; color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.dir-letter small { color: #9AA19C; font-size: 12px; font-weight: 600; letter-spacing: 0; }

/* ---------- One company ---------- */

.dir-row { position: relative; border-top: 1px solid #E9E7E1; scroll-margin-top: calc(var(--dir-top) + 12px); transition: background-color var(--t-1) var(--ease); }
.dir-letter + .dir-row { border-top-color: #E9E7E1; }
.dir-group > .dir-row:first-child { border-top: 0; border-radius: 14px 14px 0 0; }
.dir-group > .dir-row:last-child { border-radius: 0 0 14px 14px; }
.dir-row:hover, .dir-row.is-hot { background: #F7F7F3; }
.dir-row.is-open { background: #F5F8F5; }
.dir-rowhead { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto 22px; align-items: center; gap: 18px; min-height: 88px; padding: 10px 18px 10px 12px; }

/* The logo tile: the company's own mark on white (or on forest when the mark is drawn in white).
   A company without one gets its initials on a quiet tint. */
.dir-logo { position: relative; display: grid; place-items: center; width: 128px; height: 68px; overflow: hidden; border-radius: 10px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(12, 26, 21, .09); }
.dir-logo img { max-width: 108px; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.dir-logo.is-dark { background: #1B2B25; box-shadow: none; }
.dir-logo.is-mono { background: var(--tint, #E8ECE7); box-shadow: none; color: var(--tint-ink, #3C4A43); font-size: 21px; font-weight: 800; letter-spacing: .02em; }
.dir-logo[data-t="1"] { --tint: #E3EBE5; --tint-ink: #2C5443; }
.dir-logo[data-t="2"] { --tint: #E2E8EE; --tint-ink: #34536E; }
.dir-logo[data-t="3"] { --tint: #EFE9DC; --tint-ink: #6E5A2A; }
.dir-logo[data-t="4"] { --tint: #E9E7E2; --tint-ink: #4A4F4B; }

.dir-name { min-width: 0; }
.dir-page .dir-open { display: block; max-width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: 700 17px/1.3 var(--sans); letter-spacing: -.008em; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-open::after { content: ""; position: absolute; inset: 0; }
.dir-open:focus-visible { outline: none; }
.dir-row:has(.dir-open:focus-visible) { box-shadow: inset 0 0 0 2px var(--forest); }
.dir-open mark { background: #FBE7B2; color: inherit; border-radius: 3px; }
.dir-where { display: flex; align-items: center; gap: 7px; margin: 3px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.4; white-space: nowrap; overflow: hidden; }
.dir-where span { overflow: hidden; text-overflow: ellipsis; }
.dir-where b { flex: none; color: #3C4A43; font-weight: 600; }
.dir-where i { flex: none; width: 3px; height: 3px; border-radius: 50%; background: #A9AFA9; }
.dir-tag { flex: none; padding: 1px 7px; border-radius: 6px; background: #EEF2F5; color: #34536E; font-size: 12.5px; font-weight: 600; }

.dir-acts { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; }
.dir-phone { color: var(--ink); font: 500 14.5px/1 var(--mono); text-decoration: none; white-space: nowrap; padding: 9px 4px; border-radius: 7px; }
.dir-phone:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.dir-act { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border-radius: 9px; background: var(--panel); box-shadow: var(--e1); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: box-shadow var(--t-2) var(--ease), transform var(--t-1) var(--ease), color var(--t-1) var(--ease); }
.dir-act svg { color: var(--forest); }
.dir-act:hover { box-shadow: var(--e2); color: var(--forest-deep); }
.dir-act:active { transform: translateY(1px); }
.dir-chev { color: #8E948F; transition: transform var(--t-3) var(--out), color var(--t-1) var(--ease); }
.dir-row:hover .dir-chev { color: var(--forest); }
.dir-row.is-open .dir-chev { transform: rotate(180deg); color: var(--forest); }

/* ---------- The record, folded under its row ---------- */

.dir-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-3) var(--out); }
.dir-row.is-open .dir-fold { grid-template-rows: 1fr; }
.dir-fold > div { min-height: 0; overflow: hidden; }
.dir-record { position: relative; z-index: 1; display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 8px 28px; padding: 8px 20px 24px 12px; opacity: 0; transform: translateY(-4px); transition: opacity var(--t-3) var(--ease), transform var(--t-3) var(--out); }
.dir-row.is-open .dir-record { opacity: 1; transform: none; }
.dir-big { grid-row: span 2; display: grid; place-items: center; width: 264px; height: 150px; border-radius: 12px; background: #FFFFFF; box-shadow: var(--e1); }
.dir-big img { max-width: 216px; max-height: 114px; width: auto; height: auto; object-fit: contain; }
.dir-big.is-dark { background: #1B2B25; }
.dir-big.is-mono { background: var(--tint, #E8ECE7); box-shadow: none; color: var(--tint-ink, #3C4A43); font-size: 44px; font-weight: 800; }
.dir-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 28px; align-content: start; margin: 0; }
.dir-facts > div { min-width: 0; }
.dir-facts dt { margin: 0 0 3px; color: var(--ink-2); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.dir-facts dd { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.dir-facts dd a { color: var(--forest); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(36, 77, 61, .3); text-underline-offset: 3px; transition: text-decoration-color var(--t-1) var(--ease); }
.dir-facts dd a:hover { text-decoration-color: currentColor; }
.dir-facts dd small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13.5px; }
.dir-facts .mono { font-family: var(--mono); font-weight: 500; }
.dir-about { grid-column: 1 / -1; }
.dir-do { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dir-do .btn svg { margin-right: 2px; }

/* ---------- Empty ---------- */

.dir-empty { padding: 44px 24px; border-radius: 14px; background: var(--panel); box-shadow: var(--e1); text-align: center; }
.dir-empty[hidden] { display: none; }
.dir-empty strong { display: block; font-size: 18px; }
.dir-empty p { margin: 6px 0 16px; color: var(--ink-2); font-size: 15px; }
.dir-note { max-width: 760px; margin: 20px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.dir-note a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Map ---------- */

.dir-side { position: sticky; top: calc(var(--dir-top) + 8px); margin-top: 8px; }
.dir-map-card { position: relative; overflow: hidden; border-radius: 14px; background: var(--panel); box-shadow: var(--e1); }
#dir-map { height: calc(100dvh - var(--dir-top) - 76px); min-height: 380px; max-height: 900px; }
#dir-map .maplibregl-ctrl-attrib { font-size: 11.5px; }
#dir-map .maplibregl-ctrl-group { overflow: hidden; border-radius: 9px; box-shadow: var(--e2); }
#dir-map canvas { cursor: default; }
.dir-map-status { min-height: 36px; margin: 0; padding: 9px 14px; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.dir-page .maplibregl-popup-content { padding: 10px 12px; border-radius: 12px; box-shadow: var(--e3); font: 13.5px/1.4 var(--sans); }
.dir-pop { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.dir-pop .dir-logo img { max-width: 60px; max-height: 34px; }
.dir-pop .dir-logo { width: 72px; height: 44px; border-radius: 7px; font-size: 14px; }
.dir-pop strong { display: block; font-size: 14.5px; line-height: 1.25; }
.dir-pop span { color: var(--ink-2); }

/* Phone-only parts: off until the phone block turns them on. */
.dir-call, .dir-chips { display: none; }

/* ---------- Narrower screens ---------- */

@media (max-width: 1180px) {
  .dir-body { grid-template-columns: minmax(0, 1fr); }
  .dir-display { display: inline-flex; }
  .dir-side { position: static; display: none; margin-top: 0; }
  .dir-body.is-map .dir-side { display: block; }
  .dir-body.is-map .dir-letters, .dir-body.is-map .dir-list, .dir-body.is-map .dir-note { display: none; }
  #dir-map { height: min(68dvh, 640px); }
}
/* Phone (2026-11-18). The search form is the dock (shell.css); the places and the two switches move into the
   filter sheet; a row carries its own Call; the map is a full screen behind the floating switch. */
@media (max-width: 860px) {
  .dir-page { --dir-top: calc(var(--bar) + var(--dock-h, 64px)); font-size: 15px; }
  .dir-bar { display: none; }
  .dir-head { align-items: flex-start; min-height: 0; margin: 12px 0 12px; }
  .cic-page .dir-head h2 { font-size: 20px; }
  .dir-head p { font-size: 13.5px; line-height: 1.4; }
  .dir-head-actions .btn { display: none; }
  .dir-clear { min-height: 44px; margin: -10px 0; padding: 0 2px; white-space: nowrap; }
  .dir-letters, .dir-body.is-map .dir-letters { display: none; }

  .dir-chips { display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 12px; padding: 1px var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .dir-chips::-webkit-scrollbar { display: none; }
  .dir-chips[hidden] { display: none; }
  .dir-chip { display: inline-flex; flex: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: #E2EDE5; box-shadow: inset 0 0 0 1px rgba(36, 77, 61, .3); color: var(--forest-deep); font-size: 14.5px; font-weight: 700; white-space: nowrap; transition: background-color var(--t-1) var(--ease); }
  .dir-chip:active { background: #D2E2D7; }

  .dir-list { gap: 14px; }
  .cic-page .dir-letter { padding: 11px 14px 7px; }
  .dir-rowhead { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; min-height: 72px; padding: 10px 10px 10px 12px; }
  .dir-rowhead > .dir-chev { display: none; }
  .dir-logo { width: 56px; height: 44px; border-radius: 9px; font-size: 16px; }
  .dir-logo img { max-width: 46px; max-height: 34px; }
  .dir-page .dir-open { display: -webkit-box; overflow: hidden; white-space: normal; font-size: 16px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .dir-where { margin-top: 2px; font-size: 13.5px; }
  .dir-phone, .dir-act { display: none; }
  .dir-call { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 6px; border-radius: 50%; background: #E2EDE5; box-shadow: inset 0 0 0 1px rgba(36, 77, 61, .2); color: var(--forest-deep); transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease), transform var(--t-1) var(--out); }
  .dir-call svg { width: 18px; height: 18px; }
  .dir-call:active { background: var(--forest); color: var(--on-forest); transform: scale(.96); }

  .dir-record { grid-template-columns: 1fr; gap: 14px; padding: 2px 12px 16px; }
  .dir-big { display: none; }
  .dir-facts { grid-template-columns: 1fr; gap: 12px; }
  .dir-facts dd { font-size: 15.5px; }
  .dir-facts dd a { display: inline-block; padding: 3px 0; }
  .dir-do { grid-column: 1; gap: 8px; margin-top: 2px; }
  .dir-do .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 8px; justify-content: center; font-size: 15px; }
  .dir-do .dir-do-wide { flex: 1 1 100%; }
  .dir-do .btn.is-quiet svg { display: none; }

  /* Map: the card is fixed over the page (shell.css .phone-map); the list stays in the flow under it. */

  .dir-side, .dir-body.is-map .dir-side { display: none; margin: 0; }
  .dir-body.is-map .dir-side:has(.phone-map) { display: block; }
  .dir-body.is-map .dir-list { display: grid; }
  .dir-body.is-map .dir-note { display: block; }
  .phone-map #dir-map { height: 100%; min-height: 0; max-height: none; }
  .phone-map .dir-map-status { position: absolute; left: 10px; top: 10px; z-index: 2; max-width: calc(100% - 20px); min-height: 0; padding: 7px 11px; border-radius: 10px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--e1); color: var(--ink); font-size: 12.5px; line-height: 1.35; }
  .dir-pin-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; align-items: center; gap: 12px; }
  .dir-pin-head strong { display: block; font-size: 16px; line-height: 1.25; }
  .dir-pin-head div > span { color: var(--ink-2); font-size: 13.5px; }
  .dir-pin-do { display: flex; gap: 8px; margin-top: 12px; }
  .dir-pin-do .btn { flex: 1 1 0; min-height: 48px; }

  /* The filter sheet. */
  #dir-sheet .dir-places { flex-wrap: wrap; gap: 8px; overflow: visible; padding: 1px; -webkit-mask-image: none; mask-image: none; }
  #dir-sheet .dir-places button { min-height: 44px; padding: 0 14px; font-size: 15px; }
  #dir-sheet .dir-toggle { display: flex; width: 100%; min-height: 56px; gap: 10px; padding: 0 14px; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font-size: 16px; }
  #dir-sheet .dir-toggle:active { transform: none; }
  #dir-sheet .dir-toggle small { font-size: 14px; }
  #dir-sheet .dir-toggle i { order: 3; flex: none; width: 46px; height: 28px; margin-left: auto; border-radius: 14px; }
  #dir-sheet .dir-toggle i::after { left: 3px; top: 3px; width: 22px; height: 22px; }
  #dir-sheet .dir-toggle[aria-pressed=true] i::after { transform: translateX(18px); }
}
@media (prefers-reduced-motion: reduce) {
  .dir-fold, .dir-record, .dir-chev { transition: none; }
}
@media (max-width: 860px) {
  /* The town and county never get cut for the sake of a tag. */
  .dir-where { flex-wrap: wrap; row-gap: 2px; white-space: normal; overflow: visible; }
  .dir-where span { overflow: visible; }
}
@media (max-width: 860px) {
  /* No plates under the list on a phone: the rows run edge to edge on the page, parted by rules, under plain letter headings. */
  .dir-list { gap: 0; }
  .dir-group { margin: 0 calc(var(--gutter) * -1); border-radius: 0; background: none; box-shadow: none; }
  .cic-page .dir-letter { padding: 20px var(--gutter) 7px; }
  .dir-list > .dir-group:first-child .dir-letter { padding-top: 8px; }
  .dir-row, .dir-letter + .dir-row { border-top-color: #DDDBD4; }
  .dir-group > .dir-row:first-child, .dir-group > .dir-row:last-child { border-radius: 0; }
  .dir-group > .dir-row:last-child { border-bottom: 1px solid #DDDBD4; }
  .dir-rowhead { padding-left: var(--gutter); padding-right: var(--gutter); }
  .dir-record { padding-left: var(--gutter); padding-right: var(--gutter); }
  .dir-row:hover, .dir-row.is-hot { background: none; }
  .dir-row:active { background: #E7E5DF; }
  .dir-row.is-open, .dir-row.is-open:hover { background: var(--panel); }
  .dir-empty { border-radius: 0; background: none; box-shadow: none; }
}
.dir-art { display: none; }
@media (max-width: 860px) {
  /* 2026-11-18: no count or instruction over the list; the logo fills its row; rendered-object icons on the actions. */
  .dir-head { display: none; }
  .dir-chips { margin-top: 10px; }
  .dir-rowhead { grid-template-columns: 88px minmax(0, 1fr) auto; align-items: stretch; gap: 14px; min-height: 76px; padding: 0 8px 0 0; }
  .dir-rowhead > .dir-logo { width: 88px; height: auto; border-radius: 0; box-shadow: none; font-size: 22px; }
  .dir-rowhead > .dir-logo:not(.is-mono):not(.is-dark) { background: #FFFFFF; }
  .dir-rowhead > .dir-logo img { max-width: 72px; max-height: 56px; }
  .dir-rowhead > .dir-name { align-self: center; padding: 12px 0; }
  .dir-rowhead > .dir-acts { align-self: center; gap: 0; }
  .dir-call { width: 46px; height: 48px; margin-left: 0; border-radius: 12px; background: none; box-shadow: none; }
  .dir-call:active { background: #E2E0D9; transform: scale(.94); }
  .dir-art { display: block; flex: none; width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(23, 33, 29, .18)); }
  .dir-do .btn svg, .dir-pin-do .btn svg { display: none; }
  .dir-do .btn .dir-art, .dir-pin-do .btn .dir-art { width: 28px; height: 28px; margin: 0 -1px 0 -4px; }
  .dir-do .btn { gap: 7px; min-height: 52px; }
  .dir-letter { padding-left: var(--gutter); }
}
.dir-h-phone, .dir-h-art { display: none; }
@media (max-width: 860px) {
  /* The phone heading: the tool's short name with its object beside it. No lede. */
  .dir-h-desk, .dir-hero > p { display: none; }
  .dir-h-phone { display: inline; }
  .cic-page .dir-hero > h1 { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-size: 26px; }
  .dir-h-art { display: block; flex: none; width: 84px; height: 56px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(23, 33, 29, .2)); }
}
@media (max-width: 860px) {
  /* The green handset needs a light plate under it, so Call is a white plate like its neighbours. */
  .dir-do .btn:not(.is-quiet), .dir-pin-do .btn:not(.is-quiet) { --btn-bg: var(--panel); --btn-hi: var(--panel); --btn-ink: var(--forest); box-shadow: var(--e1); }
}
@media (max-width: 860px) {
  .dir-call { width: 50px; height: 52px; }
  .dir-call .dir-art { width: 40px; height: 40px; }
  .dir-rowhead > .dir-logo img { max-width: 78px; max-height: 60px; }
}
@media (max-width: 860px) {
  /* In the open record the object says what the line is; the word label stays for screen readers only. */
  .dir-facts { gap: 4px 0; }
  .dir-facts .has-art { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; column-gap: 14px; min-height: 52px; }
  .dir-facts .has-art .dir-art { width: 34px; height: 34px; }
  .dir-facts .has-art dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dir-facts .has-art dd { font-size: 16px; }
  .dir-facts .dir-about { margin-top: 10px; }
}
@media (min-width: 861px) {
  /* 2026-11-18: the desk uses the same rendered-object icons as the phone, in place of the line icons and the fact labels. */
  .dir-art { display: block; flex: none; width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(23, 33, 29, .18)); }
  .dir-act svg, .dir-do .btn svg { display: none; }
  .dir-act { gap: 8px; padding-left: 9px; }
  .dir-phone { display: inline-flex; align-items: center; gap: 8px; }
  .dir-do .btn { gap: 8px; min-height: 40px; }
  .dir-do .btn:not(.is-quiet) { --btn-bg: var(--panel); --btn-hi: var(--panel); --btn-ink: var(--forest); box-shadow: var(--e1); }
  .dir-do .btn:not(.is-quiet):hover { box-shadow: var(--e2); }
  .dir-facts .has-art { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; column-gap: 12px; }
  .dir-facts .has-art .dir-art { width: 32px; height: 32px; }
  .dir-facts .has-art dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 861px) {
  /* The row already shows the logo, so the open record does not repeat it; its lines start under the company name. */
  .dir-big { display: none; }
  .dir-record { grid-template-columns: minmax(0, 1fr); padding-left: 158px; }
  .dir-do { grid-column: 1; }
}
