@font-face {
  font-family: Inter;
  src: url("inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text: #19231f;
  --muted: #57645d;
  --line: #e1e7e3;
  --accent: #185944;
  --accent-dark: #104333;
  --wash: #edf5f0;
  --surface: #fff;
  --subtle: #f7f9f7;
  --shadow: 0 6px 26px #1a302014;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--surface);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button, select, input, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  background: var(--accent);
  color: white;
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(100% - 72px, 1440px); margin-inline: auto; }

.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner {
  display: flex;
  align-items: center;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 690;
  letter-spacing: -0.027em;
}
.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--accent);
  color: white;
}
.brand-mark .icon { width: 1.25rem; height: 1.25rem; stroke-width: 1.55; }
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 550;
}
.text-button:hover { color: var(--accent-dark); }

.intro { padding-block: 2.5rem 1.85rem; }
.intro h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.55vw, 4rem);
  font-weight: 680;
  letter-spacing: -0.072em;
  line-height: 1.08;
  text-wrap: balance;
}
.intro p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.55;
}
.explore { scroll-margin: 0.9rem; margin-bottom: 1.5rem; }
.toolbar { display: flex; gap: 0.85rem; align-items: center; margin-bottom: 1rem; }
.search {
  display: flex;
  align-items: center;
  flex: 0 1 335px;
  height: 44px;
  min-width: 205px;
  gap: 0.55rem;
  padding-inline: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--wash); }
.search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  outline: none;
}
.search input:focus-visible { outline: none; }
.search input::placeholder { color: #5e6b63; }
.quick-filters {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.4rem;
  padding-block: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding-inline: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: white;
  color: #3d4d44;
  font-size: 0.81rem;
  font-weight: 560;
  white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip[aria-pressed="false"]:hover { background: var(--wash); border-color: #cddfd4; }
.chip:focus-visible { outline-offset: 1px; }
.toolbar-actions { display: flex; align-items: center; gap: 0.65rem; flex: 0 0 auto; }
.filters { position: relative; }
.control-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 0.68rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 570;
  cursor: pointer;
  list-style: none;
}
.control-button::-webkit-details-marker { display: none; }
.control-button:hover, .filters[open] .control-button { background: var(--subtle); }
.count-badge {
  display: grid;
  min-width: 1.06rem;
  height: 1.06rem;
  place-items: center;
  padding-inline: 0.15rem;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
}
.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--subtle);
}
.view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding-inline: 0.55rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 570;
}
.view-switch button[aria-pressed="true"] {
  border-color: var(--line);
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 1px 2px #20342a10;
}
.view-switch .icon { width: 1rem; height: 1rem; }
.filter-card {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  width: min(290px, 91vw);
  gap: 0.5rem;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
}
.filter-card label { font-size: 0.84rem; font-weight: 600; }
.filter-card select, .sort-label select {
  width: 100%;
  padding: 0.52rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--text);
  font-size: 0.82rem;
}
.filter-card select { margin-bottom: 0.48rem; }
.check-row { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.check-row input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--accent); }
.filter-note { margin: 0 0 0 1.5rem; color: var(--muted); font-size: 0.76rem; line-height: 1.45; }
.filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.55rem; }
.filter-actions .text-button { font-size: 0.82rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.56rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--subtle); }
.button-primary { border-color: var(--accent); background: var(--accent); color: white; }
.button-primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.67fr) minmax(310px, 1fr);
  gap: 1rem;
  align-items: stretch;
  --panel-height: clamp(470px, calc(100svh - 300px), 750px);
}
.map-panel, .directory {
  min-width: 0;
  height: var(--panel-height);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.map-panel { position: relative; background: #f2f5f0; isolation: isolate; }
.map { position: absolute; inset: 0; }
.atto-pin {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #bd313e;
}
.atto-pin .icon {
  width: 29px;
  height: 29px;
  fill: currentColor;
  stroke: #fff;
  stroke-width: 1.65;
  filter: drop-shadow(0 1px 2px #39201f38);
}
.atto-pin:hover { color: #a22230; }
.atto-pin.is-selected { background: #bd313e26; }
.atto-pin.is-selected .icon { width: 34px; height: 34px; }
.map-status {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.7rem 0.95rem;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}
.map-controls {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.45rem;
  right: 0.8rem;
  bottom: 2.75rem;
}
.map-control, .map-zoom {
  background: white;
  border: 1px solid #d9e2db;
  color: #273f34;
  box-shadow: 0 2px 8px #1a302016;
}
.map-control {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border-radius: 8px;
}
.map-control:hover { background: var(--wash); }
.map-zoom { display: grid; border-radius: 8px; overflow: hidden; }
.map-zoom .map-control { width: 34px; height: 34px; border: 0; border-radius: 0; box-shadow: none; }
.map-zoom .map-control + .map-control { border-top: 1px solid var(--line); }
.map-zoom .map-control:focus-visible { outline-offset: -3px; }
.map-attribution {
  position: absolute;
  z-index: 2;
  right: 0.8rem;
  bottom: 0.65rem;
}
.map-credit-toggle {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--accent-dark);
  cursor: pointer;
  list-style: none;
}
.map-credit-toggle::-webkit-details-marker, .venue-hours summary::-webkit-details-marker { display: none; }
.map-credit-toggle .icon { width: 0.95rem; height: 0.95rem; }
.map-credit-links {
  position: absolute;
  right: calc(100% + 0.35rem);
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.27rem;
  min-height: 26px;
  padding-inline: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #34413a;
  font-size: 0.67rem;
  white-space: nowrap;
}
.map-attribution a { text-decoration: none; }
.map-attribution a:hover, .map-attribution a:focus-visible { text-decoration: underline; }
.maplibregl-popup-content {
  padding: 0.44rem 0.6rem;
  border-radius: 6px;
  color: var(--accent-dark);
  font: 650 0.77rem Inter, sans-serif;
}

.directory { background: white; }
.results, .detail { height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ccd9d0 transparent; }
.directory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.15rem 0.88rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  z-index: 1;
  top: 0;
  background: white;
}
.directory-header h2 { margin: 0; font-size: 1.2rem; font-weight: 680; letter-spacing: -0.04em; }
.directory-header p { margin: 0.24rem 0 0; color: var(--muted); font-size: 0.78rem; }
.sort-label { flex: 0 0 auto; }
.sort-label select { max-width: 8.5rem; font-size: 0.75rem; }
.cards { padding: 0 1.15rem; }
.cafe-card + .cafe-card { border-top: 1px solid var(--line); }
.cafe-card {
  display: grid;
  grid-template-columns: 1fr;
}
.card-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  padding: 0.95rem 0.1rem 0.92rem;
  border: 0;
  border-radius: 4px;
  background: white;
  color: var(--text);
  text-align: left;
}
.card-button.has-photo { grid-template-columns: 4.65rem minmax(0, 1fr) auto; }
.card-button:focus-visible { outline-offset: 1px; }
.card-button:hover .card-title { color: var(--accent); }
.card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  border-radius: 7px;
  background: var(--subtle);
}
.card-text { display: grid; min-width: 0; gap: 0.27rem; }
.card-meta {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 550;
  line-height: 1.32;
}
.card-title {
  font-size: 0.99rem;
  font-weight: 690;
  letter-spacing: -0.029em;
  line-height: 1.28;
}
.card-arrow { align-self: center; color: var(--accent); }
.card-arrow .icon { width: 1rem; height: 1rem; transition: transform 120ms ease; }
.card-button:hover .card-arrow .icon { transform: translateX(3px); }
.card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #384a40;
  font-size: 0.82rem;
  line-height: 1.45;
}
.card-button:not([data-status="open"]) .card-title { color: #54645b; }
.empty { padding: 1.45rem 0.1rem; }
.empty h3 { font-size: 1rem; margin: 0 0 0.35rem; }
.empty p { color: var(--muted); font-size: 0.86rem; margin: 0 0 0.7rem; line-height: 1.45; }
.empty .text-button { color: var(--accent); font-size: 0.83rem; text-decoration: underline; }

.detail { padding: 0 1.25rem 1.25rem; }
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.9rem 0 1.1rem;
  padding: 0.3rem 0.1rem;
  border: 0;
  background: white;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 620;
}
.detail-back .icon { width: 1rem; height: 1rem; }
.detail h2 { margin: 0.33rem 0 0.52rem; font-size: clamp(1.6rem, 2.7vw, 2.12rem); letter-spacing: -0.061em; line-height: 1.08; font-weight: 690; }
.venue-meta { color: var(--accent); font-size: 0.76rem; font-weight: 650; }
.detail-address { display: flex; align-items: center; gap: 0.38rem; margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.42; }
.detail-address .icon { width: 0.97rem; height: 0.97rem; }
.venue-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.33rem;
  margin-top: 0.48rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}
.venue-rating .icon { width: 0.94rem; height: 0.94rem; fill: #946100; stroke: none; }
.venue-rating strong { color: var(--text); font-weight: 650; }
.venue-rating-source { margin-left: 0.22rem; text-decoration: underline; text-underline-offset: 3px; }
.venue-rating:hover .venue-rating-source { color: var(--accent); }
.venue-hours {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}
.venue-hours summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.5rem;
  min-height: 40px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.81rem;
  font-weight: 600;
}
.venue-hours summary .icon { width: 0.94rem; height: 0.94rem; color: var(--accent); }
.venue-hours[open] summary .icon:last-child { transform: rotate(180deg); }
.hours-today { color: var(--muted); text-align: right; font-size: 0.77rem; font-weight: 500; }
.hours-content { padding: 0.5rem 0.6rem 0.65rem; border-top: 1px solid var(--line); }
.hours-week { display: grid; gap: 0.17rem; margin: 0 0 0.42rem; }
.hours-week div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  align-items: start;
  gap: 0.45rem;
  padding: 0.3rem 0.35rem;
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.hours-week dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours-current { background: var(--wash); color: var(--accent-dark); font-weight: 600; }
.hours-note { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.hours-source { color: var(--accent); font-size: 0.76rem; }
.detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0.95rem 0 1.05rem; }
.detail-actions .button { min-height: 44px; padding-inline: 0.5rem; }
.detail-actions .button:only-child { grid-column: 1 / -1; }
.detail-actions .icon { width: 1rem; height: 1rem; }
.venue-photo { margin: 0.95rem 0 0.95rem; }
.venue-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1.95;
  object-fit: cover;
  border-radius: 10px;
  background: var(--subtle);
}
.venue-photo figcaption { margin-top: 0.4rem; color: var(--muted); font-size: 0.68rem; line-height: 1.4; text-align: right; }
.venue-photo figcaption a:hover { color: var(--accent); }
.detail-section { margin-bottom: 1.05rem; }
.detail-section h3 { margin: 0 0 0.4rem; font-size: 0.89rem; font-weight: 700; }
.detail-section p { margin: 0; color: #3a4a41; font-size: 0.9rem; line-height: 1.57; }
.coffee-section .coffee-origin { margin-top: 0.35rem; }
.coffee-origin strong { margin-right: 0.2rem; color: var(--text); font-size: 0.82rem; }
.roaster-link { color: var(--accent); }
.roaster-link:hover { color: var(--accent-dark); }
.venue-accessibility { margin-top: 0.75rem; }
.venue-accessibility h4 { margin: 0 0 0.38rem; font-size: 0.79rem; font-weight: 650; }
.venue-accessibility ul { display: flex; flex-wrap: wrap; gap: 0.32rem; margin: 0; padding: 0; list-style: none; }
.venue-accessibility li {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--subtle);
  color: #43544a;
  font-size: 0.73rem;
  line-height: 1.38;
}
.status-note { margin: 0.85rem 0; padding: 0.65rem 0.8rem; background: #f4f5f2; border: 1px solid var(--line); border-radius: 8px; color: #48574f; font-size: 0.83rem; line-height: 1.45; }
.facts { display: grid; gap: 0.4rem; padding: 0; margin: 0.75rem 0 0; }
.facts div { display: grid; grid-template-columns: 5.1rem minmax(0, 1fr); gap: 0.45rem; font-size: 0.8rem; line-height: 1.4; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 560; }
.method-tags { display: flex; gap: 0.32rem; flex-wrap: wrap; }
.method-tags span { padding: 0.2rem 0.44rem; border: 1px solid var(--line); border-radius: 50px; color: #43544a; background: white; font-size: 0.73rem; }
.source-details { margin-top: 0.9rem; padding-top: 0.73rem; border-top: 1px solid var(--line); }
.source-details summary { width: fit-content; color: var(--accent); font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.source-details ul { margin: 0.65rem 0 0; padding-inline-start: 1.18rem; }
.source-details li { margin-bottom: 0.45rem; color: #44564b; font-size: 0.8rem; }
.same-address button { color: var(--accent); background: none; padding: 0; border: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; text-align: left; font-size: 0.83rem; }
.same-address button + button { margin-top: 0.45rem; }
.same-address { display: grid; justify-items: start; }

.workspace[data-layout="list"] { grid-template-columns: 1fr; }
.workspace[data-layout="list"] .map-panel { display: none; }
.workspace[data-layout="list"] .directory { height: auto; min-height: 330px; }
.workspace[data-layout="list"] .directory-header { position: static; }
.workspace[data-layout="list"] .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.6rem;
}
.workspace[data-layout="list"] .cafe-card { border: 0; border-bottom: 1px solid var(--line); }
.workspace[data-layout="list"] .detail { max-width: 640px; }
.workspace[data-layout="list"] .card-description { -webkit-line-clamp: 3; }

@media (max-width: 1120px) {
  .shell { width: min(100% - 48px, 1440px); }
  .toolbar { gap: 0.6rem; }
  .toolbar-actions { gap: 0.45rem; }
  .search { flex-basis: 280px; }
  .chip { padding-inline: 0.59rem; }
}

@media (max-width: 880px) {
  .shell { width: calc(100% - 36px); }
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
  .search { grid-column: 1; min-width: 0; }
  .toolbar-actions { grid-row: 1; grid-column: 2; }
  .quick-filters { grid-row: 2; grid-column: 1 / -1; }
  .workspace { grid-template-columns: minmax(0, 1.2fr) minmax(276px, 1fr); gap: 0.75rem; }
  .workspace[data-layout="list"] .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-button.has-photo { grid-template-columns: 3.8rem minmax(0, 1fr) auto; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { min-height: 57px; }
  .brand { font-size: 0.87rem; gap: 0.52rem; }
  .brand-mark { width: 1.9rem; height: 1.9rem; border-radius: 0.53rem; }
  .brand-mark .icon { width: 1.1rem; height: 1.1rem; }
  .intro { padding-block: 1.5rem 1.05rem; }
  .intro h1 { max-width: 23rem; font-size: clamp(2rem, 8.3vw, 3.1rem); text-wrap: wrap; }
  .intro p { margin-top: 0.5rem; font-size: 0.91rem; }
  .toolbar { margin-bottom: 0.65rem; }
  .search { height: 42px; gap: 0.36rem; padding-inline: 0.55rem; }
  .search input { font-size: 1rem; }
  .search input::placeholder { font-size: 0.8rem; }
  .control-button { min-height: 42px; padding-inline: 0.48rem; gap: 0.28rem; height: 100%; }
  .control-button .icon { width: 1rem; height: 1rem; }
  .control-button span:not(.count-badge) { font-size: 0.76rem; }
  .view-switch button { min-height: 34px; padding-inline: 0.41rem; }
  .view-switch button span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .filter-card { position: fixed; top: auto; margin-top: 0.5rem; right: 0.85rem; }
  .quick-filters { margin-right: -14px; padding-right: 14px; gap: 0.35rem; }
  .chip { font-size: 0.76rem; min-height: 35px; padding-inline: 0.6rem; }
  .workspace { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
  .map-panel { height: clamp(320px, calc(100svh - 345px), 435px); border-radius: 12px; }
  .directory { min-height: 230px; height: auto; border-radius: 12px; scroll-margin: 0.55rem; }
  .results, .detail { overflow: visible; }
  .directory-header { position: static; padding-inline: 0.95rem; }
  .cards { padding-inline: 0.95rem; }
  .detail { padding-inline: 0.95rem; }
  .workspace[data-layout="list"] .cards { grid-template-columns: 1fr; }
}

@media (min-width: 375px) and (max-width: 620px) {
  .view-switch button span { position: static; width: auto; height: auto; clip-path: none; overflow: visible; }
  .view-switch button { gap: 0.23rem; font-size: 0.73rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
