:root {
  color-scheme: light;
  --ink: #192522;
  --ink-soft: #39443f;
  --paper: #f3f0e8;
  --paper-deep: #e7e2d7;
  --white: #fbfaf6;
  --line: #d8d3c8;
  --muted: #73786f;
  --red: #c15136;
  --red-deep: #9f3d2b;
  --olive: #63745a;
  --gold: #b4873e;
  --serif: "Noto Serif Thai", Georgia, serif;
  --sans: "IBM Plex Sans Thai", "Thonburi", sans-serif;
  --page: min(1480px, calc(100% - 88px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 78% 4%, rgba(179, 135, 62, .10), transparent 23rem),
    linear-gradient(90deg, transparent 0 49.95%, rgba(25, 37, 34, .035) 50%, transparent 50.05%),
    var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}

button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  color: white;
  background: var(--ink);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.masthead {
  height: 68px;
  color: #f8f5ec;
  background: var(--ink);
}
.masthead-inner {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.42);
  color: #e1ad63;
  font: 600 18px var(--serif);
  transform: rotate(-5deg);
}
.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
}
.brand-name span {
  margin-left: 7px;
  color: #abb4a9;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .13em;
}
.about-link {
  color: #d8ddd4;
  font-size: 12px;
  text-decoration: none;
}
.about-link span, .method-link span, .footer a span { color: #e3a961; }
.about-link:hover, .footer a:hover { color: #e3a961; }

.intro {
  position: relative;
  width: var(--page);
  min-height: 315px;
  margin: 0 auto;
  padding: 56px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px 48px;
  align-items: end;
  gap: 52px;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}
.intro::after {
  position: absolute;
  content: "";
  width: 370px;
  height: 370px;
  right: 290px;
  top: -184px;
  border: 1px solid rgba(25,37,34,.10);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(25,37,34,.025), 0 0 0 58px rgba(25,37,34,.022), 0 0 0 94px rgba(25,37,34,.018);
  pointer-events: none;
}
.intro-copy, .intro-note, .intro-index { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 14px;
  color: #d8bb8b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  margin: 0 8px 3px 0;
  background: #d8bb8b;
}
.intro h1 {
  margin: 0;
  color: var(--white);
  font: 600 clamp(40px, 5.1vw, 70px)/1.2 var(--serif);
  letter-spacing: -.035em;
}
.intro h1 em {
  color: #e2a65f;
  font-style: normal;
}
.intro-deck {
  max-width: 570px;
  margin: 16px 0 0;
  color: #c1c8bd;
  font-size: 14px;
  line-height: 1.9;
}
.masthead + main .intro {
  width: 100%;
  padding-left: max(44px, calc((100% - 1480px) / 2));
  padding-right: max(44px, calc((100% - 1480px) / 2));
  color: var(--white);
  background-color: var(--ink);
}
.intro-note {
  align-self: end;
  margin-bottom: 1px;
  padding: 0 0 0 21px;
  border-left: 1px solid rgba(255,255,255,.27);
}
.note-index {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #d9b16f;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
}
.note-index span { color: #aab3a9; }
.intro-note p {
  margin: 17px 0 6px;
  color: #fbfaf6;
  font: 500 16px/1.6 var(--serif);
}
.intro-note .note-small {
  margin: 0;
  color: #adb5aa;
  font-size: 11px;
  line-height: 1.7;
}
.note-rule { display: flex; gap: 4px; margin-top: 22px; }
.note-rule span { width: 30px; height: 3px; background: #c15136; }
.note-rule span:nth-child(2) { background: #b4873e; }
.note-rule span:nth-child(3) { background: #64785e; }
.intro-index {
  align-self: start;
  margin-top: 3px;
  color: rgba(255,255,255,.37);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .12em;
  text-align: right;
}

.stats-band {
  width: var(--page);
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1.15fr;
  border-bottom: 1px solid var(--line);
}
.scope-note {
  grid-column: 1 / -1;
  margin: -5px 0 0;
  color: #7a7d73;
  font-size: 10px;
  line-height: 1.6;
}
.stat-cell, .stat-source {
  position: relative;
  min-height: 100px;
  padding: 19px 24px 15px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-cell + .stat-cell, .stat-source { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-cell strong {
  margin: -2px 0 -3px;
  color: var(--ink);
  font: 600 34px/1.1 var(--serif);
}
.stat-cell span:last-child, .stat-source > span:last-child {
  color: var(--muted);
  font-size: 10px;
}
.stat-label {
  color: var(--muted);
  font-size: 10px;
}
.stat-lead strong { color: var(--red); }
.stat-source {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}
.stat-source > span:last-child { line-height: 1.9; }
.stat-source b { color: var(--ink); font-weight: 600; }
.source-stamp {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  border: 1px solid #b8b1a5;
  border-radius: 50%;
  color: #58665a;
  font-size: 8px;
  font-weight: 600;
  text-align: center;
  transform: rotate(-9deg);
}
.source-brief {
  width: var(--page);
  margin: 22px auto 0;
  padding: 13px 17px;
  display: grid;
  grid-template-columns: minmax(145px, .6fr) minmax(0, 2fr) max-content;
  align-items: center;
  gap: 18px;
  border-left: 3px solid var(--red);
  background: rgba(231, 226, 215, .72);
}
.source-brief-label p { margin: 0 0 3px; font-size: 8px; }
.source-brief-label span { color: var(--muted); font-size: 9px; }
.source-brief-copy h2 { margin: 0 0 3px; font: 600 16px/1.45 var(--serif); }
.source-brief-copy p { margin: 0; color: #555f55; font-size: 10px; line-height: 1.75; }
.source-brief-copy a { text-decoration-color: #a5a99e; text-underline-offset: 2px; }
.source-brief-link { color: var(--ink); font-size: 10px; text-decoration-color: #a5a99e; text-underline-offset: 3px; white-space: nowrap; }
.source-brief-link span { margin-left: 3px; color: var(--red); }
.source-brief-link:hover { color: var(--red-deep); }

.workspace {
  width: var(--page);
  margin: 52px auto 90px;
  display: grid;
  grid-template-columns: minmax(430px, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4.4vw, 72px);
  align-items: start;
}
.directory-heading, .map-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.eyebrow-dark {
  margin-bottom: 6px;
  color: var(--olive);
  letter-spacing: .14em;
}
.eyebrow-dark span { margin-left: 7px; color: #9a8b6e; font-size: 9px; }
.directory-heading h2, .map-topline h2 {
  margin: 0;
  font: 600 27px/1.4 var(--serif);
  letter-spacing: -.02em;
}
.result-count {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.filters { margin-top: 22px; }
.search-box {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #b7b7a9;
  background: rgba(255,255,255,.43);
  transition: border-color .18s ease, background .18s ease;
}
.search-box:focus-within { border-color: var(--red); background: var(--white); }
.search-icon { color: var(--red); font-size: 27px; line-height: 1; transform: rotate(-15deg); }
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}
.search-box input::placeholder { color: #8c9188; }
.search-box kbd {
  min-width: 21px;
  padding: 1px 5px;
  border: 1px solid #ccc7bc;
  border-radius: 2px;
  color: #8b8a80;
  font-size: 10px;
  text-align: center;
}
.filter-row { display: flex; gap: 10px; margin-top: 10px; }
.select-wrap {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 4px 10px 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.27);
}
.select-wrap > span {
  color: #85877e;
  font-size: 9px;
  line-height: 1.15;
}
.select-wrap select {
  width: 100%;
  min-width: 0;
  padding: 1px 16px 0 0;
  border: 0;
  outline: 0;
  appearance: none;
  color: var(--ink);
  background: transparent;
  background-image: linear-gradient(45deg, transparent 50%, #77796f 50%), linear-gradient(135deg, #77796f 50%, transparent 50%);
  background-position: calc(100% - 5px) 8px, 100% 8px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  font-size: 11px;
  cursor: pointer;
}
.filter-row-bottom .select-wide { flex: 1 1 auto; }
.check-filter {
  min-width: 86px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  color: #606960;
  font-size: 11px;
  cursor: pointer;
}
.check-filter input { accent-color: var(--red); }

.list-toolbar {
  margin: 19px 0 9px;
  padding-bottom: 9px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.list-tools { display: flex; align-items: center; gap: 12px; }
.sort-control { display: inline-flex; align-items: center; gap: 5px; color: #7b8076; white-space: nowrap; }
.sort-control select {
  max-width: 160px;
  padding: 2px 15px 2px 4px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}
.sort-control select:focus-visible { outline: 1px solid var(--red); outline-offset: 2px; }
.clear-button {
  padding: 0;
  border: 0;
  color: var(--red-deep);
  background: none;
  font-size: 10px;
  cursor: pointer;
}
.clear-button:hover { text-decoration: underline; }
.project-list { display: grid; gap: 0; }
.project-card {
  position: relative;
  width: 100%;
  min-height: 132px;
  padding: 16px 3px 16px 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 17px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, padding .18s ease;
}
.project-card:hover { padding-left: 7px; background: rgba(255,255,255,.38); }
.project-card.is-active { padding-left: 10px; background: #e8e3d7; box-shadow: inset 3px 0 var(--red); }
.card-photo {
  position: relative;
  width: 120px;
  height: 99px;
  overflow: hidden;
  background: #d9d8c9;
}
.card-photo-context {
  position: absolute;
  left: 4px;
  bottom: 4px;
  max-width: calc(100% - 34px);
  padding: 3px 5px;
  display: grid;
  color: #fffdf7;
  background: rgba(25,37,34,.9);
  font-size: 8px;
  line-height: 1.35;
  text-shadow: none;
}
.card-photo-context span + span { color: #e9dfc8; font-size: 7px; }
.photo-count {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 5px;
  color: #fffdf7;
  background: rgba(25,37,34,.86);
  font-size: 8px;
  line-height: 1.4;
}
.card-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.75) contrast(.98);
  transition: transform .28s ease, filter .28s ease;
}
.project-card:hover .card-photo img { transform: scale(1.045); filter: saturate(.95); }
.card-photo-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(25,37,34,.68);
  background:
    linear-gradient(135deg, transparent 48%, rgba(25,37,34,.09) 49% 50%, transparent 51%),
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(25,37,34,.07) 16px 17px),
    #d9d8c9;
}
.card-photo-empty span { font: 500 23px var(--serif); transform: rotate(-7deg); }
.card-copy { min-width: 0; display: flex; flex-direction: column; align-items: start; }
.card-kicker {
  width: 100%;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: #7f857b;
  font-size: 9px;
}
.card-kicker .project-id { color: #a34c39; font-weight: 600; letter-spacing: .05em; }
.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font: 600 14px/1.55 var(--sans);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-location {
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: #616c60;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-pill {
  margin-top: 8px;
  padding: 2px 7px;
  border: 1px solid #d2cfc2;
  border-radius: 1px;
  color: #59665b;
  background: rgba(255,255,255,.26);
  font-size: 9px;
  line-height: 1.55;
}
.status-pill.unbuilt { border-color: #d4a08e; color: #9f3d2b; background: #f4e5dd; }
.status-pill.unused { border-color: #d5c393; color: #775d25; background: #f1ebd8; }
.status-pill.repair { border-color: #afbdab; color: #50634e; background: #e5ebe1; }
.status-pill.candidate { border-color: #bdc3c0; color: #5b6562; background: #e6e8e5; }
.status-pill.alias { border-color: #cbc7bd; color: #76776f; background: #eceae4; }
.status-pill.resolved { border-color: #a8c8bb; color: #315e4c; background: #e3eee8; }
.no-results, .loading-card {
  min-height: 120px;
  padding: 25px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #72786f;
  background: rgba(255,255,255,.35);
  font-size: 12px;
}
.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(193,81,54,.13);
  animation: breathe 1.3s ease infinite;
}
@keyframes breathe { 50% { box-shadow: 0 0 0 9px rgba(193,81,54,.03); } }
.list-end { min-height: 20px; }
.load-more {
  width: 100%;
  margin: 12px 0 4px;
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  border: 1px solid #b9b6a9;
  color: var(--ink);
  background: rgba(255,255,255,.35);
  font-size: 11px;
  cursor: pointer;
}
.load-more:hover { border-color: var(--red); background: #f7f3e9; }
.load-more span { color: #7d8177; font-size: 10px; }

.map-column { min-width: 0; position: sticky; top: 24px; }
.map-shell { padding: 19px; border: 1px solid var(--line); background: rgba(251,250,246,.72); }
.map-topline { align-items: center; margin-bottom: 14px; }
.map-topline h2 { font-size: 23px; }
.map-reset {
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: #626d62;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}
.map-reset:hover { border-color: var(--ink); color: var(--ink); }
.map-reset span { margin-right: 3px; color: var(--red); font-size: 15px; }
.map-frame {
  position: relative;
  min-height: 430px;
  border: 1px solid #d0d2c8;
  background: #dfe5d8;
}
#map { width: 100%; height: 430px; background: #e2e6db; }
.leaflet-container { font-family: var(--sans); }
.leaflet-control-attribution { font-size: 9px !important; }
.map-loading {
  position: absolute;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  color: #687267;
  background: #e5e8dd;
  font-size: 12px;
}
.map-loading.is-hidden { display: none; }
.map-loading.is-error { padding: 25px; color: #7d493b; text-align: center; }
.map-overlay-label {
  position: absolute;
  z-index: 400;
  bottom: 14px;
  left: 13px;
  padding: 6px 9px;
  color: #59635a;
  background: rgba(251,250,246,.9);
  box-shadow: 0 1px 6px rgba(25,37,34,.10);
  font-size: 10px;
  pointer-events: none;
}
.map-overlay-label b { margin-left: 5px; color: var(--red); font: 600 14px var(--serif); }
.map-legend {
  min-height: 37px;
  padding: 10px 1px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 17px;
  color: #687167;
  font-size: 9px;
}
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; }
.legend-record { border: 2px solid #fbfaf6; background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.legend-area { border: 2px solid #fbfaf6; background: #4d7770; box-shadow: 0 0 0 1px #4d7770; }
.legend-check { border: 2px solid #fbfaf6; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.legend-note { margin-left: auto; color: #8b8b80; font-style: italic; }
.map-marker {
  width: 15px;
  height: 15px;
  display: block;
  border: 3px solid #fffdf7;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 2px 6px rgba(20,30,24,.4);
}
.map-marker.warning { background: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 2px 6px rgba(20,30,24,.4); }
.map-marker.approximate { background: #4d7770; box-shadow: 0 0 0 1px #4d7770, 0 2px 6px rgba(20,30,24,.4); }
.map-marker.grouped {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-width: 2px;
  color: white;
  font: 600 10px var(--sans);
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip { border-radius: 0; background: var(--white); }
.leaflet-popup-content { margin: 12px 15px; font-family: var(--sans); }
.popup-title { max-width: 220px; color: var(--ink); font-weight: 600; font-size: 12px; line-height: 1.5; }
.popup-note { margin-top: 4px; color: #777c72; font-size: 10px; }
.popup-open { display: inline-block; margin-top: 7px; color: #9e462f; font-size: 10px; text-decoration: none; }
.popup-open:hover { text-decoration: underline; }

.detail-card {
  margin-top: 17px;
  border: 1px solid var(--line);
  background: #e8e4d9;
}
.detail-empty { position: relative; min-height: 208px; padding: 24px; overflow: hidden; }
.detail-number {
  position: absolute;
  top: -16px;
  right: 11px;
  color: rgba(25,37,34,.08);
  font: 600 112px/1 var(--serif);
}
.detail-empty h3 { position: relative; margin: 16px 0 4px; font: 600 18px/1.5 var(--serif); }
.detail-empty > p:last-child { position: relative; max-width: 400px; margin: 5px 0 0; color: #6e756b; font-size: 11px; line-height: 1.8; }
.detail-content { padding: 22px 24px 21px; }
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 11px;
  color: #738071;
  font-size: 9px;
}
.detail-content h3 { margin: 10px 0 5px; font: 600 20px/1.5 var(--serif); }
.detail-status { margin: 0 0 14px; color: #72766e; font-size: 10px; line-height: 1.8; }
.detail-copy { margin: 0; color: #39443f; font-size: 11px; line-height: 1.9; }
.detail-facts {
  margin: 17px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #cfc9bb;
  border-bottom: 1px solid #cfc9bb;
}
.fact { min-height: 58px; padding: 10px 9px 9px 0; }
.fact + .fact { padding-left: 12px; border-left: 1px solid #cfc9bb; }
.fact-label { display: block; color: #87877c; font-size: 9px; }
.fact-value { display: block; overflow-wrap: anywhere; color: var(--ink); font-size: 11px; font-weight: 500; }
.detail-gallery { margin: 15px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.detail-image { min-width: 0; margin: 0; background: #d8d9cf; }
.detail-image a { display: block; text-decoration: none; }
.detail-image img { width: 100%; max-height: 280px; display: block; object-fit: cover; }
.detail-image figcaption { padding: 7px 9px; color: #6f746b; background: #f2efe7; font-size: 9px; }
.image-context-label { display: block; margin-bottom: 4px; color: #8a4a1c; }
.detail-actions { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 7px; }
.action-link {
  padding: 7px 10px;
  display: inline-block;
  border: 1px solid #aeb5a6;
  color: #53634f;
  background: rgba(251,250,246,.48);
  font-size: 10px;
  text-decoration: none;
}
.action-link:hover { border-color: var(--red); color: var(--red-deep); }
.action-link.primary { border-color: var(--ink); color: var(--white); background: var(--ink); }
.source-list { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #cfc9bb; }
.source-list summary { color: #626c61; font-size: 10px; cursor: pointer; }
.source-list ul { margin: 9px 0 0; padding: 0; list-style: none; }
.source-list li + li { margin-top: 6px; }
.source-list a { color: #8f4938; font-size: 10px; text-decoration: underline; text-decoration-color: #c9aa9d; text-underline-offset: 2px; }
.source-list a:hover { color: var(--ink); }
.text-action {
  padding: 0;
  border: 0;
  color: #8f4938;
  background: transparent;
  font: inherit;
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: #c9aa9d;
  text-underline-offset: 2px;
  cursor: pointer;
}
.text-action:hover { color: var(--ink); }

.method {
  position: relative;
  width: var(--page);
  margin: 0 auto 64px;
  padding: 28px 0 30px;
  display: grid;
  grid-template-columns: .75fr 1.3fr .55fr;
  gap: 48px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.method-title { position: relative; }
.method-no { position: absolute; top: -33px; left: 0; color: var(--red); font: 600 17px var(--serif); }
.method-title h2 { margin: 10px 0 0; font: 600 27px/1.4 var(--serif); }
.method-copy p { margin: 0 0 12px; color: #555f55; font-size: 11px; line-height: 1.95; }
.method-copy .method-caveat { margin: 4px 0 14px; padding: 11px 13px; border-left: 2px solid var(--red); background: rgba(231, 226, 215, .62); }
.method-caveat p { margin: 0 0 8px; }
.method-caveat .method-caveat-label { margin-top: 10px; color: var(--ink); font-size: 10px; font-weight: 700; }
.method-evidence-list { margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; list-style: none; color: #555f55; font-size: 10px; line-height: 1.75; }
.method-evidence-list li.method-evidence-card { min-width: 0; margin: 0; padding: 9px 10px; border: 1px solid rgba(36, 47, 38, .13); background: rgba(255, 255, 255, .42); }
.evidence-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; margin-bottom: 5px; }
.method-evidence-card .project-reference-link { min-width: 0; line-height: 1.55; }
.evidence-context-image { position: relative; margin: 7px 0; }
.evidence-context-image img { display: block; width: 100%; aspect-ratio: 1.9; object-fit: cover; border: 1px solid rgba(36, 47, 38, .14); background: #e9e7de; }
.evidence-context-image figcaption { margin-top: 3px; color: #697065; font-size: 8px; line-height: 1.5; }
.evidence-context-image figcaption a { color: inherit; }
.evidence-state { flex: 0 1 auto; max-width: 48%; padding: 2px 5px; color: #646a5d; background: #e9e7de; font-size: 8px; line-height: 1.45; text-align: right; overflow-wrap: anywhere; }
.evidence-state.evidence-resolved { color: #315c45; background: #e3ece3; }
.evidence-state.evidence-active { color: #805426; background: #f2e7d2; }
.method-caveat .method-evidence-card p { margin: 0; font-size: 10px; line-height: 1.65; }
.method-evidence-list strong { color: var(--ink); }
.method-evidence-list .project-reference-link { text-decoration-color: rgba(193, 81, 54, .55); text-underline-offset: 2px; }
.method-evidence-list .project-reference-link:hover { color: var(--red-deep); }
.method-caveat .method-caveat-foot { margin-bottom: 0; font-size: 10px; }
.method-caveat strong { color: var(--ink); }
.method-caveat a { text-decoration-color: #a5a99e; text-underline-offset: 2px; }
.method-caveat a:hover { color: var(--red-deep); }
.korat-school-status { margin: 0 0 8px; padding-left: 18px; color: #555f55; font-size: 10px; line-height: 1.75; }
.korat-school-status li + li { margin-top: 5px; }
.method-kalasin-details { margin-top: 8px; padding: 8px 10px; border: 1px solid rgba(36, 47, 38, .13); background: rgba(255, 255, 255, .42); color: #555f55; font-size: 10px; line-height: 1.75; }
.method-review-details { margin-top: 8px; padding: 8px 10px; border: 1px solid rgba(36, 47, 38, .13); background: rgba(255, 255, 255, .42); color: #555f55; font-size: 10px; line-height: 1.75; }
.method-kalasin-details summary, .method-review-details summary { color: var(--ink); font-weight: 700; cursor: pointer; }
.method-kalasin-details summary:focus-visible, .method-review-details summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.kalasin-package-list { margin: 8px 0; padding-left: 18px; }
.kalasin-package-list li + li { margin-top: 5px; }
.method-caveat .kalasin-package-list a { overflow-wrap: anywhere; }
.method-link { display: inline-block; margin-top: 3px; color: var(--ink); font-size: 10px; text-decoration-color: #a5a99e; text-underline-offset: 3px; }
.method-side { align-self: center; padding-left: 18px; border-left: 1px solid var(--line); color: #7d8177; font: 500 13px/1.9 var(--serif); }
.footer {
  min-height: 70px;
  padding: 17px max(44px, calc((100% - 1480px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #bdc4b9;
  background: var(--ink);
  font-size: 9px;
}
.footer-brand { color: #e3ad67; letter-spacing: .12em; font-size: 9px; }
.footer a { color: #f3f0e8; text-decoration: none; white-space: nowrap; }

@media (min-width: 1500px) {
  .masthead + main .intro { padding-left: calc((100% - 1480px) / 2); padding-right: calc((100% - 1480px) / 2); }
}
@media (max-width: 1100px) {
  :root { --page: min(100% - 56px, 1000px); }
  .intro { grid-template-columns: minmax(0, 1fr) 260px 30px; gap: 28px; }
  .masthead + main .intro { padding-left: 28px; padding-right: 28px; }
  .workspace { grid-template-columns: minmax(350px, .92fr) minmax(0, 1.08fr); gap: 24px; }
  .project-card { grid-template-columns: 96px minmax(0, 1fr); gap: 13px; }
  .card-photo { width: 96px; height: 90px; }
  .map-shell { padding: 13px; }
  #map { height: 390px; }
  .map-frame { min-height: 390px; }
  .method { gap: 27px; }
}
@media (max-width: 800px) {
  :root { --page: calc(100% - 36px); }
  .masthead { height: 58px; }
  .masthead-inner { width: var(--page); }
  .intro {
    min-height: 0;
    padding-top: 42px;
    padding-bottom: 30px;
    grid-template-columns: 1fr 210px;
    gap: 20px;
  }
  .masthead + main .intro { padding-left: 18px; padding-right: 18px; }
  .intro::after { right: 155px; top: -202px; }
  .intro h1 { font-size: clamp(40px, 8.2vw, 61px); }
  .intro-deck { max-width: 480px; font-size: 12px; }
  .intro-index { display: none; }
  .intro-note { padding-left: 14px; }
  .intro-note p { font-size: 13px; }
  .stats-band { width: var(--page); grid-template-columns: repeat(3, 1fr); }
  .source-brief { width: var(--page); grid-template-columns: 120px minmax(0, 1fr); gap: 7px 15px; }
  .source-brief-link { grid-column: 2; justify-self: start; }
  .stat-cell { min-height: 90px; padding-right: 10px; }
  .stat-cell + .stat-cell { padding-left: 13px; }
  .stat-source { grid-column: 1 / -1; min-height: 58px; padding: 10px 0; border-top: 1px solid var(--line); border-left: 0; }
  .source-stamp { width: 38px; height: 38px; flex-basis: 38px; }
  .workspace { width: var(--page); margin-top: 35px; grid-template-columns: 1fr; gap: 28px; }
  .directory { order: 2; }
  .map-column { position: static; order: 1; }
  .map-shell { padding: 12px; }
  #map, .map-frame { height: clamp(300px, 67vw, 430px); min-height: 300px; }
  .detail-card { margin-top: 12px; }
  .method { width: var(--page); grid-template-columns: 1fr 1.4fr; gap: 20px; margin-bottom: 42px; }
  .method-side { display: none; }
  .footer { padding: 17px 18px; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .brand-name span { display: none; }
  .about-link { font-size: 10px; }
  .intro { display: block; padding-top: 36px; }
  .intro h1 { font-size: 42px; }
  .intro-note { max-width: 295px; margin: 24px 0 0 2px; padding-left: 13px; }
  .intro-note p { margin-top: 9px; }
  .intro-note .note-small { display: none; }
  .note-rule { margin-top: 12px; }
  .stats-band { grid-template-columns: repeat(3, 1fr); }
  .source-brief { grid-template-columns: 1fr; gap: 8px; padding: 12px 13px; }
  .source-brief-link { grid-column: auto; white-space: normal; }
  .stat-cell { padding: 11px 5px 11px 0; }
  .stat-cell + .stat-cell { padding-left: 8px; }
  .stat-cell strong { font-size: 27px; }
  .stat-cell span:last-child { font-size: 8px; line-height: 1.45; }
  .stat-label { font-size: 8px; }
  .directory-heading h2, .map-topline h2 { font-size: 22px; }
  .result-count { max-width: 110px; white-space: normal; text-align: right; }
  .list-toolbar { align-items: flex-start; }
  .list-tools { gap: 6px; }
  .sort-control { gap: 2px; }
  .sort-control select { max-width: 118px; padding-right: 11px; font-size: 9px; }
  .clear-button { white-space: nowrap; }
  .filter-row { gap: 6px; }
  .select-wrap { padding-left: 7px; padding-right: 7px; }
  .select-wrap select { font-size: 10px; }
  .check-filter { min-width: 70px; padding: 0 5px; gap: 4px; font-size: 10px; }
  .project-card { min-height: 122px; grid-template-columns: 88px minmax(0,1fr); gap: 11px; }
  .card-photo { width: 88px; height: 84px; }
  .card-title { font-size: 12px; }
  .card-kicker { font-size: 8px; }
  .card-location { font-size: 9px; }
  .status-pill { margin-top: 6px; font-size: 8px; }
  .map-legend { gap: 6px 11px; }
  .legend-note { width: 100%; margin-left: 15px; }
  .detail-content { padding: 18px 15px; }
  .detail-content h3 { font-size: 18px; }
  .method { display: block; }
  .method-copy { margin-top: 18px; }
  .method-evidence-list { grid-template-columns: 1fr; }
  .footer { display: grid; grid-template-columns: 1fr auto; }
  .footer > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
