:root {
  --ink: #1f1e1b;
  --muted: #6b6862;
  --paper: #faf9f5;
  --paper-soft: #f0eee6;
  --paper-warm: #e8e2d2;
  --line: #dbd7c8;
  --accent: #c15f3c;
  --accent-dark: #9f4d32;
  --sage: #5e7665;
  --blue: #264d71;
  --gold: #b88734;
  --white: #ffffff;
  --shadow: 0 16px 42px rgba(31, 30, 27, 0.12);
  --content-width: 1540px;
  --modal-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(250, 249, 245, 0.94);
  border-bottom: 1px solid rgba(31, 30, 27, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.is-active {
  color: var(--ink);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #252525;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 19, 0.52);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 90px 0 64px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 0.98;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: inline;
}

.hero h1 span + span::before {
  content: " ";
}

.hero-copy {
  max-width: 820px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  overflow-wrap: anywhere;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-metrics span {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics strong {
  color: var(--white);
}

.section-inner {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
}

.app-panel {
  display: none;
}

.app-panel.is-active {
  display: block;
}

.intro-band,
.route-band {
  background: var(--paper);
}

.workbench-band,
.patterns-band,
.sources-band {
  background: var(--paper-soft);
}

.intro-band,
.workbench-band,
.patterns-band,
.route-band,
.sources-band {
  padding: 72px 0;
  scroll-margin-top: 96px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1fr);
  gap: 44px;
  align-items: start;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 700;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  overflow-wrap: anywhere;
}

h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

p {
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p {
  margin-bottom: 0;
}

.workbench-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.table-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
}

.table-meta span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--white);
}

.table-meta strong {
  color: var(--ink);
}

.view-switch-row {
  display: flex;
  justify-content: flex-start;
  margin: -6px 0 18px;
}

.view-tabs {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.view-tab {
  border: 0;
  border-right: 1px solid var(--line);
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.view-tab:last-child {
  border-right: 0;
}

.view-tab:hover,
.view-tab.is-active {
  background: var(--accent);
  color: var(--white);
}

.filter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(31, 30, 27, 0.06);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.search-box {
  display: grid;
  gap: 6px;
}

.search-box span,
.filter-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.search-box input:focus {
  outline: 2px solid rgba(193, 95, 60, 0.24);
  border-color: var(--accent);
}

.reset-button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.reset-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.search-history {
  display: grid;
  gap: 9px;
  margin: -2px 0 16px;
}

.search-history-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.search-history-label {
  min-width: 74px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.history-chip {
  border: 1px solid rgba(31, 30, 27, 0.14);
  border-radius: 6px;
  padding: 5px 9px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.history-chip:hover,
.history-chip:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.history-chip.is-featured {
  border-color: rgba(193, 95, 60, 0.26);
  color: var(--accent-dark);
}

.history-clear {
  color: var(--muted);
}

.filter-groups {
  display: grid;
  gap: 12px;
}

.filter-group {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: start;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.chip-button:hover,
.chip-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.chip-button.is-low-count {
  opacity: 0.72;
}

.chip-toggle {
  border-style: dashed;
  background: rgba(31, 30, 27, 0.03);
  color: var(--accent-dark);
}

.chip-count {
  margin-left: 5px;
  color: inherit;
  opacity: 0.68;
  font-size: 10px;
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}

.results-bar span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.view-panel {
  display: none;
}

.view-panel.is-active {
  display: block;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 18px;
}

.site-card {
  display: grid;
  grid-template-rows: 228px 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(31, 30, 27, 0.08);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 180ms ease;
}

.site-card:hover {
  transform: translateY(-2px);
  border-color: rgba(193, 95, 60, 0.5);
  box-shadow: var(--shadow);
}

.site-image-wrap {
  position: relative;
  overflow: hidden;
  background: #d7dccf;
}

.site-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.site-card:hover img {
  transform: scale(1.035);
}

.site-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 5px;
  padding: 6px 8px;
  background: rgba(31, 30, 27, 0.78);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.site-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.site-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.site-meta span {
  display: block;
}

.site-body p {
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 5px;
  padding: 3px 7px;
  background: rgba(193, 95, 60, 0.1);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

.mini-tag.is-verified {
  background: rgba(38, 88, 122, 0.12);
  color: var(--blue);
}

.mini-tag.is-inferred {
  background: rgba(147, 117, 84, 0.14);
  color: #6f5538;
}

.site-links,
.table-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

.site-links a,
.table-links a,
.source-item a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.site-links a:hover,
.table-links a:hover,
.source-item a:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(31, 30, 27, 0.06);
}

.site-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
  font-size: 13px;
}

.site-table th,
.site-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.site-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper-warm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.site-table tbody tr:hover {
  background: rgba(193, 95, 60, 0.06);
}

.site-table td:nth-child(1) {
  min-width: 210px;
  font-weight: 900;
}

.site-table td:nth-child(2) {
  min-width: 220px;
  color: var(--muted);
}

.site-table td:nth-child(3) {
  min-width: 150px;
}

.site-table td:nth-child(4) {
  min-width: 280px;
}

.site-table td:nth-child(8) {
  min-width: 260px;
  color: var(--muted);
}

.table-subtle,
.table-story,
.muted-copy,
.market-caveat {
  color: var(--muted);
}

.table-subtle {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

.table-story {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.empty-state {
  padding: 46px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  background: var(--paper);
  color: var(--muted);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: stretch;
}

.map-canvas {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 30, 27, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 30, 27, 0.08) 1px, transparent 1px),
    #e9efe3;
  background-size: 44px 44px;
  box-shadow: var(--shadow);
}

.map-canvas::before {
  content: "";
  position: absolute;
  inset: 34px 40px 40px;
  border: 2px solid rgba(94, 118, 101, 0.55);
  border-radius: 48% 42% 56% 44%;
  transform: rotate(-8deg);
  background: rgba(255, 250, 240, 0.6);
}

.map-label {
  position: absolute;
  color: rgba(31, 30, 27, 0.48);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.map-label.north {
  top: 20px;
  left: 24px;
}

.map-label.south {
  right: 24px;
  bottom: 20px;
}

.map-pin {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(31, 30, 27, 0.28);
  cursor: pointer;
}

.map-pin[data-family="craftsman"] {
  background: var(--sage);
}

.map-pin[data-family="modern"] {
  background: var(--blue);
}

.map-pin[data-family="garden"] {
  background: #7a6d2d;
}

.map-pin.is-active {
  outline: 4px solid rgba(184, 135, 52, 0.42);
}

.pin-card {
  position: absolute;
  z-index: 4;
  left: 18px;
  bottom: 18px;
  width: min(360px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(31, 30, 27, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.95);
  box-shadow: var(--shadow);
}

.pin-card p {
  margin: 6px 0 0;
}

.map-index {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--paper);
}

.style-summary {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.summary-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.summary-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
}

.summary-dot.craftsman {
  background: var(--sage);
}

.summary-dot.modern {
  background: var(--blue);
}

.summary-dot.garden {
  background: #7a6d2d;
}

.summary-row strong {
  display: block;
  margin-bottom: 2px;
}

.summary-row span {
  color: var(--muted);
  font-size: 13px;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pattern-grid article {
  padding: 22px;
  border-left: 4px solid var(--accent);
  background: var(--paper);
}

.pattern-number {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--gold);
  font-weight: 900;
}

.route-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 44px;
  align-items: start;
}

.route-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: route;
}

.route-list li {
  counter-increment: route;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.route-list li::before {
  content: counter(route);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.route-list strong {
  display: block;
}

.route-list span {
  color: var(--muted);
  font-size: 14px;
}

.sources-grid {
  columns: 2;
  column-gap: 28px;
}

.source-item {
  break-inside: avoid;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.source-item strong {
  display: block;
  margin-bottom: 4px;
}

.source-item a {
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 28px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1.04;
  }

  .hero-copy {
    font-size: 16px;
  }

  .intro-grid,
  .map-layout,
  .route-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 30px;
  }

  .workbench-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .filter-group {
    grid-template-columns: 1fr;
  }

  .pattern-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sources-grid {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 18px;
  }

  .section-inner,
  .hero-content {
    width: min(100% - 32px, var(--content-width));
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-copy {
    word-break: break-word;
  }

  .hero h1 span {
    display: block;
  }

  .hero h1 span + span::before {
    content: "";
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-metrics span {
    width: fit-content;
    max-width: 100%;
  }

  .intro-band,
  .workbench-band,
  .patterns-band,
  .route-band,
  .sources-band {
    padding: 54px 0;
  }

  .view-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .view-tab {
    flex: 1;
  }

  .map-canvas {
    min-height: 420px;
  }

  .site-card {
    grid-template-rows: 210px 1fr;
  }

  .pattern-grid {
    grid-template-columns: 1fr;
  }
}

.site-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 20px;
}

.site-card.image-card {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 30, 27, 0.12);
  border-radius: 8px;
  background: var(--white);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.site-card.image-card .site-image-wrap {
  display: block;
  width: 100%;
  height: 100%;
}

.site-card.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card-label {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 4px;
  padding: 72px 20px 20px;
  background: linear-gradient(180deg, rgba(31, 30, 27, 0), rgba(31, 30, 27, 0.78));
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.image-card-label strong {
  font-size: 20px;
  line-height: 1.2;
}

.image-card-label span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.3;
}

.site-card.image-card:hover .image-card-label,
.site-card.image-card:focus-visible .image-card-label {
  opacity: 1;
  transform: translateY(0);
}

.site-card.image-card:focus-visible {
  outline: 3px solid rgba(38, 88, 122, 0.42);
  outline-offset: 3px;
}

.site-table tr[data-id] {
  cursor: pointer;
}

.site-table tr[data-id]:hover td,
.site-table tr[data-id]:focus td {
  background: rgba(193, 95, 60, 0.07);
}

.map-pin[data-family="victorian"] {
  background: #8a4f72;
}

.map-pin[data-family="revival"] {
  background: #7c693f;
}

.summary-dot.victorian {
  background: #8a4f72;
}

.summary-dot.revival {
  background: #7c693f;
}

.pin-detail-button {
  margin-top: 12px;
  border: 1px solid rgba(31, 30, 27, 0.16);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
}

.site-modal.is-open {
  display: grid;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 30, 27, 0.66);
  backdrop-filter: blur(5px);
}

.site-modal-card {
  position: relative;
  z-index: 1;
  width: min(var(--modal-width), calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.site-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(31, 30, 27, 0.14);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.92);
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.site-modal-body {
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.site-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.site-modal-media {
  position: relative;
  min-height: 620px;
  margin: 0;
  background: #d7dccf;
}

.site-modal-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.site-modal-media figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 5px;
  padding: 6px 8px;
  background: rgba(31, 30, 27, 0.72);
  font-size: 12px;
}

.site-modal-media a,
.site-modal-actions a {
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.site-modal-detail {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 34px;
}

.site-modal-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-modal-detail h2 {
  margin: 0;
  max-width: 92%;
  font-size: 34px;
  line-height: 1.05;
}

.site-modal-address {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-list dd {
  margin: 0;
}

.modal-section {
  display: grid;
  gap: 6px;
}

.modal-section h3 {
  margin: 0;
  font-size: 15px;
}

.modal-section p {
  margin: 0;
  color: var(--muted);
}

.site-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-modal-actions a {
  border-radius: 6px;
  padding: 9px 11px;
  background: var(--ink);
  font-size: 12px;
}

.site-modal-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.site-modal-nav span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.site-modal-nav div {
  display: flex;
  gap: 8px;
}

.site-modal-nav button {
  border: 1px solid rgba(31, 30, 27, 0.16);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

body {
  background: var(--paper);
}

.workbench-band {
  min-height: calc(100vh - 57px);
  padding: 28px 0 44px;
  background: var(--paper);
}

.patterns-band,
.route-band,
.sources-band {
  min-height: calc(100vh - 57px);
  padding: 44px 0;
}

.filter-panel {
  background: var(--white);
  box-shadow: none;
}

.table-wrap {
  box-shadow: none;
}

.site-table th {
  white-space: nowrap;
}

.pattern-grid h2 {
  font-family: inherit;
  font-size: 19px;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .site-modal {
    padding: 12px;
  }

  .site-modal-card,
  .site-modal-body {
    max-height: calc(100vh - 24px);
  }

  .site-modal-layout {
    grid-template-columns: 1fr;
  }

  .site-modal-media {
    min-height: 320px;
  }

  .site-modal-detail {
    padding: 24px;
  }

  .site-modal-detail h2 {
    max-width: calc(100% - 44px);
    font-size: 28px;
  }

}

@media (max-width: 560px) {
  .site-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-card.image-card {
    grid-template-rows: none;
    aspect-ratio: 4 / 3;
  }

  .image-card-label {
    display: grid;
    padding: 54px 16px 16px;
    opacity: 1;
    transform: none;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-modal-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .site-modal-nav div,
  .site-modal-nav button {
    width: 100%;
  }
}
