:root {
  color-scheme: light;
  --ink: #14253d;
  --muted: #5e6b7d;
  --paper: #ffffff;
  --surface: #ffffff;
  --line: #dce5ee;
  --primary: #245a8d;
  --primary-hover: #1b4773;
  --primary-soft: #eaf2fa;
  --accent: #39d98a;
  --accent-strong: #087a43;
  --accent-soft: #e9fff4;
  --focus: #2f7cc2;
  --danger: #c34747;
  --forest: var(--primary);
  --forest-soft: var(--primary-soft);
  --moss: #55718f;
  --clay: #2f6aa3;
  --seal: var(--accent-strong);
  --gold: var(--accent);
  --blue: var(--focus);
  --shadow: 0 18px 50px rgb(36 90 141 / 10%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fff;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.55;
}

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.loading-mark,
.temple-mark {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  font-family: Georgia, serif;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(57 217 138 / 70%);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 4px 14px rgb(36 90 141 / 16%);
}

.brand strong,
.brand small { display: block; }

.brand strong { font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 11px; }

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.menu-emoticon {
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.visited-summary {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #b8cce0;
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.visited-summary:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.visited-summary:focus-visible { outline: 3px solid rgb(47 124 194 / 38%); outline-offset: 2px; }

.account-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.account-button:hover { border-color: var(--primary-hover); background: var(--primary-hover); transform: translateY(-1px); }
.account-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.account-menu-emoticon {
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  background: #fff;
}

main { min-height: calc(100vh - 180px); }

.install-app-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 16px 18px;
  border: 1px solid #b8cce0;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, var(--primary-soft));
}
.install-app-banner[hidden] { display: none; }
.install-app-banner.is-route-hidden { display: none; }
.install-app-banner > img { width: 64px; height: 64px; object-fit: contain; }
.install-app-banner .eyebrow { margin: 0 0 1px; }
.install-app-banner h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.install-app-banner div > p:not(.eyebrow) { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.install-app-banner .button { min-height: 46px; white-space: nowrap; }
.install-app-help { color: var(--accent-strong) !important; font-weight: 750; }

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.hero {
  margin-bottom: 34px;
  padding: 10px 0 4px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero h1,
.detail-hero h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.hero h1:focus,
.detail-hero h1:focus { outline: none; }

.hero h1 em {
  position: relative;
  color: var(--seal);
  font-style: normal;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: 8px;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 2px;
  opacity: .65;
  transform: rotate(8deg);
}

.hero-lead {
  max-width: 630px;
  margin: 18px 0 0;
  color: #44534c;
  font-size: clamp(16px, 2vw, 19px);
}

.catalog-count {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.catalog-count strong { color: var(--ink); font-size: 17px; }

.data-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.data-card strong { display: block; margin-bottom: 6px; }
.data-card p { margin: 0; color: var(--muted); font-size: 13px; }
.data-card a { color: var(--forest); font-weight: 700; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}

.stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.stat span { display: block; color: var(--muted); font-size: 12px; }
.stat strong { font-size: 25px; letter-spacing: -.04em; }

.catalog-toolbar {
  position: sticky;
  z-index: 10;
  top: 86px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 160px) minmax(130px, 170px) auto;
  gap: 10px;
  margin-bottom: 30px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 12px 35px rgb(32 46 39 / 8%);
  backdrop-filter: blur(14px);
}

.catalog-toolbar > label { min-width: 0; }

.catalog-search {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.tag-axis-filters {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fafc;
}

.tag-axis-filters > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}

.tag-axis-filters > summary::-webkit-details-marker { display: none; }
.tag-axis-filters > summary::after {
  content: '⌄';
  margin-left: auto;
  color: var(--muted);
  font-size: 16px;
}
.tag-axis-filters[open] > summary::after { transform: rotate(180deg); }
.tag-axis-filters > summary strong { margin-right: 7px; }
.tag-axis-filters > summary span { color: var(--muted); font-weight: 600; }

.tag-axis-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.tag-axis-filter {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tag-axis-filter select { color: var(--ink); font-weight: 700; }

.search-field { position: relative; }
.search-field::before {
  content: "⌕";
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  font-size: 22px;
  transform: translateY(-52%);
}

.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d5d9d2;
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
}

.catalog-toolbar input { padding: 0 14px 0 42px; }
.catalog-toolbar select { padding: 0 36px 0 13px; }

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 76px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--primary);
  border-radius: 13px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.search-submit:hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.search-submit:focus-visible { outline: 3px solid rgb(47 124 194 / 42%); outline-offset: 2px; }

.catalog-toolbar input:focus,
.catalog-toolbar select:focus,
.visited-filter:focus-visible,
.visited-control:focus-within,
.temple-card a:focus-visible,
.temple-map-link:focus-visible,
.temple-address button:focus-visible,
.catalog-map-popup-actions button:focus-visible,
.button:focus-visible {
  outline: 3px solid rgb(85 121 135 / 35%);
  outline-offset: 2px;
}

.dialog-close:focus-visible,
.visited-name-list a:focus-visible {
  outline: 3px solid rgb(85 121 135 / 40%);
  outline-offset: 3px;
}

.visited-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--forest);
  cursor: pointer;
}

.visited-filter[aria-pressed="true"] { background: var(--clay); }

.catalog-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -10px 0 24px;
}

.catalog-view-bar > div:first-child { display: grid; gap: 2px; }
.catalog-view-bar strong { font-size: 14px; }
.catalog-view-bar span { color: var(--muted); font-size: 12px; }

.catalog-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr));
  gap: 3px;
  padding: 4px;
  border: 1px solid #d2d9d3;
  border-radius: 14px;
  background: #fff;
}

.catalog-view-switch button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.catalog-view-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--forest);
}

.catalog-view-switch button:focus-visible,
.catalog-map-popup a:focus-visible,
.catalog-map-error-actions button:focus-visible {
  outline: 3px solid rgb(85 121 135 / 35%);
  outline-offset: 2px;
}

.catalog-map-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.catalog-map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.catalog-map-heading .eyebrow { margin-bottom: 4px; }
.catalog-map-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.04em; }
.catalog-map-summary { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.catalog-map-summary strong { color: var(--ink); }

.catalog-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 12px;
  color: #53615a;
  font-size: 12px;
}

.catalog-map-legend > span { display: inline-flex; align-items: center; gap: 7px; }

.catalog-map-legend-marker {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 1px rgb(36 90 141 / 35%);
}

.catalog-map-legend-marker.is-visited {
  background: var(--seal);
  box-shadow: 0 0 0 3px rgb(57 217 138 / 25%), 0 0 0 1px var(--accent-strong);
}

.catalog-map-legend-cluster {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--forest);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgb(36 90 141 / 25%);
}

.catalog-map-frame {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid #ccd7d0;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgb(85 121 135 / 12%), transparent 55%),
    #e6ece8;
}

.catalog-map {
  width: 100%;
  min-height: 440px;
  height: min(68vh, 720px);
}

.catalog-map-status {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  color: var(--forest);
  background: #e8eee9;
  text-align: center;
}

.catalog-map-status[hidden] { display: none; }
.catalog-map-status .loading-mark { width: 52px; height: 52px; border-radius: 20px 14px; font-size: 23px; }
.catalog-map-status.is-error span { max-width: 520px; color: var(--muted); font-size: 13px; }
.catalog-map-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.catalog-map-note { margin: 12px 2px 0; color: var(--muted); font-size: 12px; }

.catalog-map-popup { min-width: 210px; color: var(--ink); }
.catalog-map-popup-heading { display: block; margin: 0 0 9px; font-size: 12px; }
.catalog-map-popup-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.catalog-map-popup-list li { display: grid; gap: 2px; padding-top: 9px; border-top: 1px solid #e0e4de; }
.catalog-map-popup-list li:first-child { padding-top: 0; border-top: 0; }
.catalog-map-popup-list li > strong { font-size: 14px; }
.catalog-map-popup-list li > span { color: var(--muted); font-size: 11px; }
.catalog-map-popup-list li > span.is-visited { color: var(--seal); font-weight: 750; }
.catalog-map-popup-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.catalog-map-popup-list a { width: fit-content; color: var(--forest); font-size: 12px; font-weight: 800; }

.temple-address button,
.catalog-map-popup-actions button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #cbd6cf;
  border-radius: 9px;
  color: var(--forest);
  background: #f7faf8;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.temple-address button:hover,
.catalog-map-popup-actions button:hover { border-color: #8da99a; background: #edf5f0; }

.clipboard-copy-helper {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.catalog-map-section .maplibregl-popup-content {
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgb(24 40 32 / 18%);
}

.catalog-map-section .maplibregl-popup-close-button {
  width: 30px;
  height: 30px;
  color: var(--muted);
  font-size: 20px;
}

.catalog-map-section .maplibregl-ctrl-attrib {
  max-width: min(78vw, 520px);
  color: #37443e;
  font-size: 10px;
  line-height: 1.35;
  white-space: normal;
}

.catalog-map-section .maplibregl-ctrl-attrib a { color: var(--primary); }

.group-section + .group-section { margin-top: 40px; }

.featured-catalog { margin-top: 4px; }
.featured-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent-strong);
  border-radius: 18px;
  background: var(--primary-soft);
}
.featured-heading:focus { outline: none; }
.featured-heading .eyebrow { margin-bottom: 4px; }
.featured-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.04em; }
.featured-heading p { margin: 6px 0 0; color: #41536a; font-size: 14px; }
.featured-heading > span { flex: 0 0 230px; color: var(--muted); font-size: 12px; text-align: right; }
.featured-heading > span strong { color: var(--primary); font-size: 16px; }

.featured-courses { margin-top: 34px; }
.featured-courses > header { margin-bottom: 14px; }
.featured-courses h2 { margin: 3px 0 6px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.04em; }
.featured-courses > header > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.course-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: 10px 22px 22px 22px;
  background: #fff;
}
.course-card h3 { margin: 0 0 8px; font-size: 17px; }
.course-card > p { min-height: 66px; margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.course-card ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.course-card li a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #b9d0e5;
  border-radius: 999px;
  color: var(--primary-hover);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.course-more { margin-top: 16px; }
.course-more summary {
  width: fit-content;
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid #b9d0e5;
  border-radius: 12px;
  color: var(--primary-hover);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.course-more[open] summary { margin-bottom: 14px; }

.content-field-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.field-note-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent-strong);
  border-radius: 12px 24px 24px 12px;
  background: #fff;
}
.field-note-card h2 { margin: 4px 0 10px; font-size: clamp(21px, 3vw, 28px); letter-spacing: -.04em; }
.field-note-card > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.field-note-card ul { margin: 16px 0; padding-left: 20px; color: #34465d; font-size: 13px; line-height: 1.8; }
.field-note-card > a { color: var(--primary); font-size: 12px; font-weight: 900; }
.onboarding-note { border-left-color: var(--primary); background: var(--primary-soft); }
.onboarding-note ol { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.onboarding-note li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.onboarding-note li > span { color: var(--accent-strong); font-size: 18px; font-weight: 950; }
.onboarding-note li div { display: grid; gap: 3px; }
.onboarding-note li strong { font-size: 13px; }
.onboarding-note li small { color: var(--muted); font-size: 12px; line-height: 1.5; }

.group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8dbd3;
}

.group-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.group-heading span { color: var(--muted); font-size: 13px; }

.temple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.temple-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 15px;
  min-height: 188px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 7px 22px rgb(36 90 141 / 6%);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.temple-card:hover {
  border-color: #aac3dd;
  box-shadow: 0 14px 30px rgb(36 90 141 / 12%);
  transform: translateY(-2px);
}

.temple-thumbnail {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px 10px 19px 10px;
  background: var(--accent-soft);
}

.temple-thumbnail img,
.detail-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-badge {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 999px;
  color: #fff;
  background: rgb(20 37 61 / 78%);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  backdrop-filter: blur(8px);
}

.is-fallback .photo-badge {
  border-color: var(--accent-strong);
  color: var(--ink);
  background: var(--accent);
}

.temple-copy { min-width: 0; }
.temple-copy a { text-decoration: none; }
.temple-copy h3 {
  overflow: hidden;
  margin: 1px 0 5px;
  font-size: 17px;
  line-height: 1.32;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-line { margin: 0; color: var(--clay); font-size: 12px; font-weight: 750; }
.temple-map-link {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  padding: 0;
  border: 0;
  color: var(--clay);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.temple-map-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.temple-map-link small { flex: 0 0 auto; color: var(--forest); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.temple-map-link:hover small { color: var(--seal); }
.description {
  display: -webkit-box;
  min-height: 42px;
  margin: 9px 0 13px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.temple-tags,
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.temple-tags { margin: -5px 0 10px; }
.temple-tags span,
.detail-tags span {
  padding: 3px 8px;
  border: 1px solid #92d8b4;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 850;
}

.temporal-tag-note {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-left: 3px solid var(--accent-strong);
  border-radius: 6px 10px 10px 6px;
  color: #41536a;
  background: var(--primary-soft);
  font-size: 11px;
  line-height: 1.55;
}

.temporal-tag-note a { color: var(--primary); font-weight: 850; }
.detail-tags + .temporal-tag-note { margin-top: 10px; }

.temple-address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  padding-top: 8px;
  border-top: 1px solid #e8e8e1;
}
.temple-address > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visited-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: #4a5751;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.visited-control input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--forest);
}

.visited-control small { color: var(--muted); font-size: 10px; font-weight: 500; }

.load-more,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--forest);
  border-radius: 14px;
  color: var(--forest);
  background: transparent;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.load-more { width: 100%; margin-top: 24px; }
.button.primary { color: #fff; background: var(--forest); }

.empty-state,
.error-state,
.loading-state {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 50px 24px;
  text-align: center;
}

.empty-state { min-height: 260px; }
.empty-state h2, .error-state h1, .loading-state h1 { margin: 14px 0 6px; letter-spacing: -.04em; }
.empty-state p, .error-state p, .loading-state p { margin: 0; color: var(--muted); }
.loading-mark { width: 62px; height: 62px; border-radius: 24px 16px; font-size: 28px; animation: breathe 1.8s infinite ease-in-out; }

.state-emoticon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgb(36 90 141 / 13%));
}

.loading-emoticon,
.map-loading-emoticon { animation: breathe 1.8s infinite ease-in-out; }
.map-loading-emoticon { width: 74px; height: 74px; }
.visited-empty-emoticon { margin-bottom: 8px; }

.button-emoticon {
  display: block;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

@keyframes breathe { 50% { opacity: .58; transform: translateY(-4px); } }

.detail-page { max-width: 980px; }

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr);
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-photo {
  position: relative;
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  background: var(--accent-soft);
}

.detail-photo figcaption {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  border-radius: 10px;
  color: #fff;
  background: rgb(20 37 61 / 82%);
  font-size: 10px;
  backdrop-filter: blur(10px);
}

.detail-photo figcaption a { color: #fff; font-weight: 800; text-underline-offset: 2px; }
.detail-photo.is-fallback figcaption { color: var(--ink); background: rgb(233 255 244 / 92%); }
.detail-photo > .photo-badge { top: 14px; right: 14px; bottom: auto; }
.detail-hero-body { display: grid; align-content: space-between; gap: 28px; padding: 34px; }
.detail-hero .eyebrow { color: var(--primary); }
.detail-hero h1 { font-size: clamp(38px, 6vw, 62px); }
.detail-description { max-width: 650px; margin: 18px 0 0; color: var(--muted); }

.detail-visit {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid #bfd3e6;
  border-radius: 22px;
  background: var(--primary-soft);
}

.detail-visit .visited-control { color: var(--ink); font-size: 15px; }
.detail-visit .visited-control small { display: block; color: var(--muted); }

.detail-highlights {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent-strong);
  border-radius: 12px 24px 24px 12px;
  background: #fff;
}
.detail-highlights-heading h2 { margin: 3px 0 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.04em; }
.detail-highlight-summary { max-width: 760px; margin: 14px 0 0; color: #41536a; line-height: 1.75; }
.detail-highlights dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.detail-highlights dl div { padding: 14px; border-radius: 14px; background: var(--primary-soft); }
.detail-highlights dt { color: var(--primary); font-size: 11px; font-weight: 900; }
.detail-highlights dd { margin: 5px 0 0; font-size: 13px; line-height: 1.65; }
.detail-highlights .detail-tags { margin-top: 16px; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.detail-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.detail-card h2 { margin: 0 0 14px; font-size: 16px; }
.detail-grid .detail-card:only-child { grid-column: 1 / -1; }
.detail-list { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 10px 14px; margin: 0; }
.detail-list dt { color: var(--muted); font-size: 13px; }
.detail-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.detail-record-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.detail-source-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.detail-source-card summary { padding: 16px 18px; color: var(--primary); font-size: 13px; font-weight: 850; cursor: pointer; }
.detail-source-card > div { padding: 0 18px 18px; }
.detail-source-card p { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 7px; }
.detail-source-card a { color: var(--primary); font-size: 12px; font-weight: 800; }
.detail-source-card small { color: var(--muted); }

.private-review-card { grid-column: 1 / -1; }
.private-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.private-review-heading h2 { margin-bottom: 3px; }
.private-review-heading p, .private-review-card > p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.review-emoticon { flex: 0 0 auto; width: 54px; height: 54px; object-fit: contain; }
.private-review-form { display: grid; gap: 10px; }
.private-review-form > label { font-size: 13px; font-weight: 750; }
.private-review-form textarea {
  width: 100%;
  min-height: 132px;
  padding: 14px 15px;
  resize: vertical;
  border: 1px solid #b9c9d8;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}
.private-review-form textarea:focus-visible { outline: 3px solid rgb(47 124 194 / 34%); outline-offset: 2px; border-color: var(--focus); }
.private-review-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 14px; color: var(--muted); font-size: 11px; }
.private-observations { margin: 8px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--primary-soft); }
.private-observations legend { padding: 0 6px; color: var(--primary); font-size: 13px; font-weight: 900; }
.private-observations legend small { color: var(--muted); font-weight: 750; }
.private-observations > p { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.private-observations > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.private-observations label { display: grid; gap: 5px; color: #34465d; font-size: 12px; font-weight: 800; }
.private-observations select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid #b8c9d9; border-radius: 10px; color: var(--ink); background: #fff; font: inherit; }
.private-observations select:focus-visible { outline: 3px solid rgb(47 124 194 / 34%); outline-offset: 2px; border-color: var(--focus); }
.private-review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; }
.review-sync-note { padding: 10px 12px; border-radius: 12px; color: #6b4d19; background: #fff7df; font-size: 12px; }

.source-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 8px 16px 16px 8px;
  color: #59635e;
  background: #eeeae0;
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p { margin: 0; }
.site-footer a,
.auth-legal-links a { color: var(--primary); font-weight: 750; text-underline-offset: 3px; }
.site-footer a:focus-visible,
.auth-legal-links a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.visited-dialog {
  width: min(920px, calc(100% - 32px));
  max-width: none;
  max-height: min(88vh, 820px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px rgb(13 28 21 / 28%);
}

.visited-dialog::backdrop {
  background: rgb(15 29 23 / 55%);
  backdrop-filter: blur(4px);
}

.visited-dialog-shell { max-height: min(88vh, 820px); overflow-y: auto; }

.visited-dialog-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  background: rgb(245 243 236 / 94%);
  backdrop-filter: blur(14px);
}

.visited-dialog-header .eyebrow { margin-bottom: 3px; }
.visited-dialog-header h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.04em; }

.dialog-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

#visited-dashboard { padding: 22px 26px 30px; }

.visited-dashboard-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 16px;
  padding: 5px;
  border-radius: 16px;
  background: var(--primary-soft);
}
.visited-dashboard-tabs button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
.visited-dashboard-tabs button span { margin-left: 5px; color: var(--accent-strong); font-size: 12px; }
.visited-dashboard-tabs button[aria-selected="true"] { color: var(--primary); background: #fff; box-shadow: 0 4px 14px rgb(36 90 141 / 10%); }
.visited-dashboard-tabs button:focus-visible { outline: 3px solid rgb(47 124 194 / 36%); outline-offset: 2px; }

.visited-overview {
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(240px, .92fr);
  gap: 14px;
}

.visited-map-card,
.visited-region-card,
.visited-name-list {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.visited-map-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(170px, 1.2fr);
  align-items: center;
  min-height: 330px;
  padding: 20px 18px 14px 22px;
  overflow: hidden;
}

.visited-map-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgb(57 217 138 / 22%);
  border-radius: 50%;
}

.visited-total { position: relative; z-index: 1; align-self: start; padding-top: 16px; }
.visited-total strong { display: block; color: var(--seal); font-family: Georgia, serif; font-size: clamp(52px, 9vw, 82px); line-height: .9; letter-spacing: -.06em; }
.visited-total span { display: block; margin-top: 12px; font-weight: 750; }

.visited-map { position: relative; z-index: 1; width: 100%; max-height: 290px; }
.visited-map-land, .visited-map-island { fill: #dce5df; stroke: #9fb3a7; stroke-width: 1.5; }
.visited-map-river { fill: none; stroke: rgb(85 121 135 / 36%); stroke-width: 2; stroke-linecap: round; }
.visited-map-marker { fill: var(--seal); stroke: #fffdf6; stroke-width: 3; filter: drop-shadow(0 3px 4px rgb(75 32 27 / 28%)); }
.visited-map-card > p { position: absolute; z-index: 2; bottom: 13px; left: 22px; margin: 0; color: var(--muted); font-size: 11px; }

.visited-region-card { padding: 24px; }
.visited-region-card h3 { margin: 0 0 18px; font-size: 17px; letter-spacing: -.02em; }
.visited-region-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.visited-region-counts > div {
  position: relative;
  min-height: 76px;
  padding: 13px 14px;
  overflow: hidden;
  border-radius: 15px;
  background: color-mix(in srgb, var(--region-color) 10%, white);
}
.visited-region-counts > div::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--region-color); }
.visited-region-counts span { display: block; color: var(--muted); font-size: 12px; }
.visited-region-counts strong { display: block; margin-top: 3px; font-size: 25px; letter-spacing: -.04em; }

.visited-name-list { margin-top: 14px; padding: 22px 24px 24px; }
.visited-list-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.visited-list-heading h3 { margin: 0; font-size: 18px; }
.visited-list-heading > span { color: var(--muted); font-size: 13px; }
.visited-name-group + .visited-name-group { margin-top: 20px; }
.visited-name-group h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; }
.visited-name-group h4 i { width: 8px; height: 8px; border-radius: 50%; background: var(--region-color); }
.visited-name-group h4 span { color: var(--muted); font-weight: 500; }
.visited-name-group > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.visited-name-group a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 10px;
  padding: 11px 12px;
  border: 1px solid #e3e4dd;
  border-radius: 13px;
  text-decoration: none;
}
.visited-name-group a:hover { border-color: #aab9af; background: #f7faf8; }
.visited-name-group a strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.visited-name-group a small { grid-column: 1; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.visited-name-group a > span { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--clay); font-size: 20px; }

.visited-empty { display: grid; place-items: center; min-height: 420px; padding: 50px 20px; text-align: center; }
.stamp-mark { display: grid; place-items: center; width: 70px; height: 70px; border: 3px double var(--seal); border-radius: 10px; color: var(--seal); font-family: Georgia, serif; font-size: 34px; transform: rotate(-4deg); }
.visited-empty h3 { margin: 20px 0 5px; font-size: 22px; letter-spacing: -.035em; }
.visited-empty p { max-width: 390px; margin: 0 0 22px; color: var(--muted); }

.review-collection { min-height: 390px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.review-search { display: grid; gap: 6px; margin-bottom: 18px; }
.review-search > label { font-size: 12px; font-weight: 800; }
.review-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.review-search input { min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid #b9c9d8; border-radius: 13px; color: var(--ink); background: #fff; }
.review-search input:focus-visible { outline: 3px solid rgb(47 124 194 / 34%); outline-offset: 2px; border-color: var(--focus); }
.review-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.review-item { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.review-item > div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.review-item a { display: block; margin-top: 7px; text-decoration: none; }
.review-item a:hover strong { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.review-item a strong, .review-item a small { display: block; }
.review-item a small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.review-item > p { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.observation-summary { display: flex !important; flex-wrap: wrap; justify-content: flex-start !important; gap: 6px !important; margin-top: 12px; }
.observation-summary span { padding: 5px 8px; border: 1px solid #b9d0e5; border-radius: 999px; color: var(--primary-hover); background: var(--primary-soft); font-size: 11px; font-weight: 800; }
.review-no-results { display: grid; place-items: center; min-height: 220px; text-align: center; }
.review-no-results p { margin: 0; font-weight: 800; }
.review-no-results small { margin-top: 4px; color: var(--muted); }
.review-empty { min-height: 350px; }

.visited-privacy-note {
  margin: 0;
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.account-page {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 72px;
}
.account-page[hidden] { display: none !important; }
.account-page-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}
.account-page-back:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 4px; }
.account-page-back:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.account-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 26px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px 14px 26px 14px;
  background: #fff;
}
.account-page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent) 0 18%, var(--primary) 18% 100%);
  content: '';
}
.account-page-hero img { display: block; width: 112px; height: 112px; object-fit: contain; }
.account-page-hero h1 { margin: 2px 0 8px; font-size: clamp(32px, 6vw, 54px); line-height: 1; letter-spacing: -.055em; }
.account-page-hero p:last-child { max-width: 640px; margin: 0; color: var(--muted); line-height: 1.7; }
.account-page .auth-signed-in {
  grid-template-columns: minmax(240px, .68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: 18px 22px;
}
.account-page .account-pass { grid-column: 1; grid-row: 1; min-height: 180px; align-content: end; }
.account-page .auth-signed-in > p { grid-column: 1; grid-row: 2; padding: 0 4px; line-height: 1.7; }
.account-page .member-profile { grid-column: 2; grid-row: 1 / span 4; padding: 24px; }
.account-page .pending-signup-form { grid-column: 1 / -1; }
.account-page .auth-signed-in-status { grid-column: 1; }
.account-page .account-session-actions { grid-column: 1; }
.account-page .account-delete-confirmation { grid-column: 1 / -1; }
.account-page-guard {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 30px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent-strong);
  border-radius: 18px;
  background: #fff;
}
.account-page-guard[hidden] { display: none !important; }
.account-page-guard h2, .account-page-guard p { margin: 0; }
.account-page-guard p { color: var(--muted); line-height: 1.7; }

.member-admin-link {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  text-decoration: none;
}
.member-admin-link:hover { color: #fff; border-color: var(--primary-hover); background: var(--primary-hover); }
.member-admin-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.member-admin-link small { color: #dbeafa; }
.member-admin-link[hidden] { display: none !important; }

.admin-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 72px;
}
.admin-page[hidden] { display: none !important; }
.admin-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 26px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px 14px 26px 14px;
  background: #fff;
}
.admin-page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0 82%, var(--accent) 82% 100%);
  content: '';
}
.admin-page-hero img { width: 112px; height: 112px; object-fit: contain; }
.admin-page-hero h1 { margin: 2px 0 8px; font-size: clamp(32px, 6vw, 54px); line-height: 1; letter-spacing: -.055em; }
.admin-page-hero p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
.admin-access-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 30px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: 18px;
  background: #fff;
}
.admin-access-state[hidden], .admin-dashboard[hidden],
.admin-member-table-wrap[hidden], .admin-empty[hidden] { display: none !important; }
.admin-access-state h2, .admin-access-state p { margin: 0; }
.admin-access-state p { color: var(--muted); line-height: 1.7; }
.admin-dashboard { display: grid; gap: 20px; }
.admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-summary article {
  display: grid;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px 10px 18px 10px;
  background: #fff;
}
.admin-summary span { color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-summary strong { color: var(--primary); font-size: 30px; line-height: 1; }
.admin-search {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.admin-search > label { font-weight: 900; }
.admin-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.admin-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #b8c9d9;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.admin-search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.admin-directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.admin-directory-heading h2, .admin-directory-heading p { margin: 0; }
.admin-directory-heading p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.admin-member-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.admin-member-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.admin-member-table th, .admin-member-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-member-table th { color: var(--muted); background: var(--primary-soft); font-size: 12px; }
.admin-member-table tr:last-child td { border-bottom: 0; }
.admin-member-table td:first-child { display: grid; gap: 3px; min-width: 210px; }
.admin-member-table td small { color: var(--muted); overflow-wrap: anywhere; }
.admin-member-table td.is-active { color: var(--accent-strong); font-weight: 900; }
.admin-member-table td.is-suspended,
.admin-member-table td.is-deletion_pending,
.admin-member-table td.is-deleted { color: var(--danger); font-weight: 900; }
.admin-empty { padding: 42px 22px; border: 1px dashed #b8c9d9; border-radius: 18px; text-align: center; background: #fff; }
.admin-empty p { margin: 6px 0 0; color: var(--muted); }
.admin-privacy-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.account-dialog {
  width: min(540px, calc(100% - 32px));
  max-width: none;
  max-height: min(92vh, 840px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px rgb(13 28 21 / 28%);
}

.account-dialog::backdrop {
  background: rgb(15 29 23 / 55%);
  backdrop-filter: blur(4px);
}

.account-dialog [hidden] { display: none !important; }
.account-dialog-shell { max-height: min(92vh, 840px); overflow-y: auto; }

.account-dialog-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 17px;
  border-bottom: 1px solid var(--line);
  background: rgb(245 243 236 / 96%);
  backdrop-filter: blur(14px);
}

.account-dialog-header .eyebrow { margin-bottom: 3px; }
.account-dialog-header h2 { margin: 0; font-size: clamp(23px, 5vw, 31px); line-height: 1.18; letter-spacing: -.045em; }
.account-dialog-body { padding: 20px 24px 24px; }

.account-reassurance {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 8px 15px 15px 8px;
  color: #4f5d56;
  background: var(--primary-soft);
  font-size: 13px;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 15px;
  background: var(--forest-soft);
}

.account-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  color: #50635a;
  background: transparent;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.account-tabs button[aria-selected="true"] {
  color: var(--forest);
  background: var(--surface);
  box-shadow: 0 3px 10px rgb(36 90 141 / 10%);
}

.account-tab-panel { padding: 13px 3px 2px; }
.account-tab-panel > p { margin: 0; color: var(--muted); font-size: 13px; }

.signup-requirements {
  display: grid;
  gap: 5px;
  margin: 13px 0 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.signup-requirements legend { padding: 0 5px; color: var(--forest); font-size: 12px; font-weight: 800; }
.signup-requirement { min-height: 44px; border-radius: 10px; }
.signup-requirements > label, .signup-legal-requirement > label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 7px; border-radius: 10px; cursor: pointer; }
.signup-requirements label:hover { background: #f0f4f1; }
.signup-requirements label:has(input:disabled) { color: #7b827e; cursor: not-allowed; }
.signup-requirements input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--forest); }
.signup-requirements span { font-size: 13px; }
.signup-requirements > .signup-display-name {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  gap: 6px;
  padding: 7px;
  cursor: text;
}
.signup-display-name > span { color: var(--ink); font-weight: 800; }
.signup-display-name input,
.pending-signup-display-name input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.signup-display-name small,
.pending-signup-display-name small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.5; }
.signup-legal-requirement { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.signup-legal-requirement > label { grid-column: 1 / -1; }
.signup-legal-requirement a, .signup-legal-requirement small { grid-column: 1 / -1; min-width: 0; margin: -2px 7px 5px 37px; overflow-wrap: anywhere; font-size: 11px; }
.signup-legal-requirement a { align-items: center; min-height: 44px; color: var(--forest); font-weight: 760; text-underline-offset: 3px; }
.signup-legal-requirement a:not([hidden]) { display: inline-flex; }
.signup-legal-requirement small { color: var(--muted); }
.signup-gate-note { margin-top: 9px !important; font-size: 12px !important; }

.auth-email-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.auth-email-signup-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.auth-email-signup-form h3 { margin: 0; font-size: 13px; }
.auth-field { display: grid; gap: 6px; min-width: 0; }
.auth-field > span { color: var(--ink); font-size: 13px; font-weight: 800; }
.auth-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.auth-field small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.auth-field small[data-state="valid"] { color: var(--accent-strong); font-weight: 700; }
.auth-field small[data-state="invalid"] { color: var(--danger); font-weight: 700; }
.auth-email-submit { width: 100%; min-height: 50px; }
.auth-method-divider {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 11px;
}
.auth-method-divider::before,
.auth-method-divider::after { height: 1px; background: var(--line); content: ""; }

.auth-provider-actions { display: grid; gap: 9px; margin-top: 0; }
.auth-provider-actions h3 { margin: 0 0 2px; font-size: 13px; letter-spacing: -.01em; }
.auth-provider-button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  min-height: 52px;
  padding: 7px 12px;
  border: 1px solid #d8dbd5;
  border-radius: 15px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 740;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-provider-button::after { content: "›"; justify-self: end; color: rgb(22 36 31 / 48%); font-size: 20px; }
.auth-provider-button:not(:disabled):hover { border-color: #9db8d3; box-shadow: 0 8px 22px rgb(36 90 141 / 10%); transform: translateY(-1px); }
.auth-provider-button:disabled { color: #7b827e; background: #edece7; cursor: not-allowed; opacity: .7; }
.auth-provider-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; overflow: hidden; }
.auth-provider-logo { display: block; width: 20px; height: 20px; }
.auth-provider-logo-google { width: 19px; height: 19px; }
.auth-provider-google .auth-provider-mark { border: 1px solid #dfe3e7; background: #fff; }
.auth-provider-kakao:not(:disabled) { border-color: #ead92b; background: #fee500; }
.auth-provider-kakao .auth-provider-mark { color: #3c1e1e; background: #fee500; }
.auth-provider-naver:not(:disabled) { border-color: #03aa59; color: #fff; background: #03c75a; }
.auth-provider-naver:not(:disabled)::after { color: rgb(255 255 255 / 75%); }
.auth-provider-naver .auth-provider-mark { color: #fff; border-radius: 5px; background: #03c75a; }

.auth-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.auth-status-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgb(191 142 56 / 13%); }
.auth-status[data-state="ready"] .auth-status-mark { background: var(--accent-strong); box-shadow: 0 0 0 4px rgb(57 217 138 / 20%); }
.auth-status[data-state="error"] .auth-status-mark { background: var(--danger); box-shadow: 0 0 0 4px rgb(195 71 71 / 14%); }
.auth-status strong { display: block; font-size: 12px; }
.auth-status p { margin: 1px 0 0; color: var(--muted); font-size: 11px; }
.auth-status-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px; }
.auth-status-actions button {
  min-height: 44px;
  padding: 5px 9px;
  border: 1px solid #bdc9c1;
  border-radius: 10px;
  color: var(--forest);
  background: #fff;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}

.auth-signed-in { display: grid; gap: 16px; }
.auth-signed-in > p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-signed-in .auth-signed-in-status { padding: 10px 12px; border-radius: 12px; color: #41536a; background: var(--primary-soft); }
.auth-signed-in .button { justify-self: start; }
.member-profile {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px 20px 20px 8px;
  background: #fff;
}
.member-profile-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.member-profile-heading h3 { margin: 1px 0 0; font-size: 20px; letter-spacing: -.035em; }
.member-profile-kicker { margin: 0; color: var(--accent-strong); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.member-profile-edit {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  color: var(--primary);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.member-profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 14px; }
.member-profile-facts > div { min-width: 0; padding: 12px 14px; }
.member-profile-facts > div + div { border-left: 1px solid var(--line); }
.member-profile-facts dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.member-profile-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: 14px; font-weight: 850; }
.member-profile-form { display: grid; gap: 7px; padding: 14px; border-radius: 14px; background: var(--primary-soft); }
.member-profile-form label { color: var(--ink); font-size: 12px; font-weight: 800; }
.member-profile-form input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #b9cde0; border-radius: 10px; color: var(--ink); background: #fff; font-size: 16px; }
.member-profile-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.member-profile-form small { color: var(--muted); font-size: 11px; }
.member-profile-form > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.member-content-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--accent-soft);
  text-align: left;
  cursor: pointer;
}
.member-content-link span { min-width: 0; }
.member-content-link strong, .member-content-link small { display: block; }
.member-content-link strong { font-size: 13px; }
.member-content-link small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.member-content-link > span:last-child { flex: 0 0 auto; color: var(--accent-strong); font-size: 12px; font-weight: 800; }
.member-content-link b { font-size: 18px; }
.member-content-link i { margin-left: 6px; font-style: normal; }
.pending-signup-form {
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--primary-soft);
}
.pending-signup-form[hidden] { display: none; }
.pending-signup-form h3,
.pending-signup-form p { margin: 0; }
.pending-signup-form h3 { font-size: 16px; }
.pending-signup-form p { color: var(--muted); font-size: 12px; }
.pending-signup-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
}
.pending-signup-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); }
.pending-signup-form .pending-signup-display-name {
  display: grid;
  align-items: stretch;
  gap: 6px;
  font-weight: 800;
}
.pending-signup-form a { color: var(--primary-hover); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.account-session-actions,
.account-delete-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-delete-button { color: var(--danger); border-color: rgb(195 71 71 / 45%); }
.account-delete-confirmation {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgb(195 71 71 / 35%);
  border-radius: 16px;
  background: #fff8f8;
}
.account-delete-confirmation[hidden] { display: none; }
.account-delete-confirmation h3,
.account-delete-confirmation p { margin: 0; }
.account-delete-confirmation h3 { color: #802c2c; font-size: 15px; }
.account-delete-confirmation p { color: #6d5050; font-size: 12px; line-height: 1.65; }
.account-delete-acknowledgement {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.account-delete-acknowledgement input { width: 20px; height: 20px; accent-color: var(--danger); }
.account-delete-confirm { color: #fff; border-color: var(--danger); background: var(--danger); }
.account-delete-confirm:disabled { opacity: .48; cursor: not-allowed; }
.account-pass {
  position: relative;
  min-height: 156px;
  padding: 24px;
  overflow: hidden;
  border-radius: 22px 22px 22px 8px;
  color: #fff;
  background: linear-gradient(135deg, #1e4034, var(--forest) 62%, #3f6657);
  box-shadow: var(--shadow);
}

.account-pass::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -19px;
  width: 92px;
  height: 92px;
  border: 2px solid rgb(57 217 138 / 52%);
  border-radius: 50%;
  background: #fff url("assets/emoticons/ui/baby-monk-04-love-heart-128.png") center / contain no-repeat;
  opacity: .34;
  transform: rotate(-7deg);
}

.account-pass span, .account-pass strong, .account-pass small { position: relative; z-index: 1; display: block; }
.account-pass span { color: #c9d9d1; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.account-pass strong { max-width: calc(100% - 90px); margin-top: 12px; overflow-wrap: anywhere; font-size: 23px; letter-spacing: -.035em; }
.account-pass small { margin-top: 4px; color: #c9d9d1; font-size: 12px; }
.account-privacy-note { margin: 20px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.auth-legal-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; font-size: 12px; }

.account-dialog button:focus-visible,
.auth-field input:focus-visible,
.signup-requirements input:focus-visible,
.signup-legal-requirement a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.visible { opacity: 1; transform: translateY(0); }

/* White canvas, deep-blue actions, and spring-green wayfinding. */
.hero h1 em { color: var(--primary); }
.hero h1 em::after { border-color: var(--accent-strong); background: var(--accent); }
.hero-lead { color: #41536a; }

.catalog-toolbar,
.catalog-view-switch,
.catalog-map-section,
.stat,
.data-card,
.signup-requirements,
.auth-status {
  border-color: var(--line);
  background: rgb(255 255 255 / 96%);
}

.catalog-toolbar { box-shadow: 0 12px 35px rgb(36 90 141 / 9%); }
.catalog-toolbar input,
.catalog-toolbar select { border-color: #cbd9e7; background: #fff; }

.catalog-toolbar input:focus,
.catalog-toolbar select:focus,
.visited-filter:focus-visible,
.visited-control:focus-within,
.temple-card a:focus-visible,
.temple-map-link:focus-visible,
.temple-address button:focus-visible,
.catalog-map-popup-actions button:focus-visible,
.button:focus-visible,
.catalog-view-switch button:focus-visible,
.catalog-map-popup a:focus-visible,
.catalog-map-error-actions button:focus-visible,
.dialog-close:focus-visible,
.visited-name-list a:focus-visible,
.account-dialog button:focus-visible,
.auth-field input:focus-visible,
.signup-requirements input:focus-visible,
.signup-legal-requirement a:focus-visible {
  outline: 3px solid rgb(47 124 194 / 42%);
  outline-offset: 2px;
}

.visited-filter,
.catalog-view-switch button[aria-pressed="true"],
.button.primary {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.visited-filter:hover,
.catalog-view-switch button[aria-pressed="true"]:hover,
.button.primary:hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.visited-filter[aria-pressed="true"] { background: var(--primary-hover); }

.load-more,
.button,
.temple-address button,
.catalog-map-popup-actions button,
.auth-status-actions button,
.dialog-close {
  border-color: #b8cce0;
  color: var(--primary);
  background: #fff;
}

.load-more:hover,
.button:hover,
.temple-address button:hover,
.catalog-map-popup-actions button:hover,
.auth-status-actions button:hover,
.dialog-close:hover { border-color: var(--primary); background: var(--primary-soft); }

.catalog-map-legend-marker { border-color: #fff; background: var(--primary); box-shadow: 0 0 0 1px rgb(36 90 141 / 35%); }
.catalog-map-legend-marker.is-visited { background: var(--accent-strong); box-shadow: 0 0 0 3px rgb(57 217 138 / 25%), 0 0 0 1px var(--accent-strong); }
.catalog-map-legend-cluster { border-color: #fff; background: var(--primary); box-shadow: 0 0 0 1px rgb(36 90 141 / 25%); }
.catalog-map-frame { border-color: #c7d8e8; background: var(--primary-soft); }
.catalog-map-status { color: var(--primary); background: var(--primary-soft); }
.catalog-map-popup-list li { border-color: var(--line); }
.catalog-map-popup-list li > span.is-visited { color: var(--accent-strong); }
.catalog-map-section .maplibregl-ctrl-attrib a { color: var(--primary); }

.temple-map-link { color: var(--primary); }
.temple-map-link small { color: var(--primary); }
.temple-map-link:hover small { color: var(--primary-hover); }
.temple-address { border-color: var(--line); }
.visited-control input,
.signup-requirements input { accent-color: var(--accent-strong); }

.source-note,
.account-reassurance {
  border-left-color: var(--accent-strong);
  color: #41536a;
  background: var(--primary-soft);
}

.visited-dialog,
.account-dialog,
.visited-dialog-header,
.account-dialog-header { background: #fff; }
.visited-dialog-header,
.account-dialog-header { border-bottom-color: var(--line); }
.visited-dialog::backdrop,
.account-dialog::backdrop { background: rgb(20 37 61 / 46%); }
.visited-map-card::after { border-color: rgb(57 217 138 / 22%); }
.visited-total strong,
.stamp-mark { color: var(--accent-strong); }
.stamp-mark { border-color: var(--accent-strong); background: var(--accent-soft); }
.visited-map-land,
.visited-map-island { fill: #e8f1fa; stroke: #9eb9d3; }
.visited-map-river { stroke: rgb(47 124 194 / 42%); }
.visited-map-marker { fill: var(--accent-strong); stroke: #fff; filter: drop-shadow(0 3px 4px rgb(8 122 67 / 25%)); }
.visited-name-group a { border-color: var(--line); }
.visited-name-group a:hover { border-color: #aac3dd; background: var(--primary-soft); }

.auth-status-mark { background: var(--primary); box-shadow: 0 0 0 4px rgb(36 90 141 / 14%); }
.auth-status[data-state="ready"] .auth-status-mark { background: var(--accent-strong); box-shadow: 0 0 0 4px rgb(57 217 138 / 20%); }
.auth-status[data-state="error"] .auth-status-mark { background: var(--danger); box-shadow: 0 0 0 4px rgb(195 71 71 / 14%); }
.auth-signed-in .auth-signed-in-status { color: #41536a; background: var(--primary-soft); }
.account-pass { background: linear-gradient(135deg, var(--primary-hover), var(--primary) 62%, #3473ad); }
.account-pass span,
.account-pass small { color: #dbeafa; }
.account-pass::after { border-color: rgb(57 217 138 / 56%); }
.toast { background: var(--primary-hover); }

@media (max-width: 900px) {
  .temple-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-grid { grid-template-columns: 1fr; }
  .content-field-notes { grid-template-columns: 1fr; }
  .course-card > p { min-height: 0; }
  .detail-hero { grid-template-columns: 1fr; min-height: 0; }
  .detail-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .visited-overview { grid-template-columns: 1fr; }
  .account-page .auth-signed-in { grid-template-columns: 1fr; }
  .account-page .account-pass,
  .account-page .auth-signed-in > p,
  .account-page .member-profile,
  .account-page .auth-signed-in-status,
  .account-page .account-session-actions,
  .account-page .account-delete-confirmation { grid-column: 1; grid-row: auto; }
  .account-page .account-pass { min-height: 150px; }
}

@media (max-width: 650px) {
  .site-header { gap: 10px; min-height: 66px; padding: 10px 16px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-copy { min-width: 0; }
  .brand strong { overflow: hidden; text-overflow: ellipsis; }
  .brand small { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .header-actions { gap: 6px; }
  .visited-summary { min-height: 44px; padding: 7px 9px; }
  .account-button { min-height: 44px; padding-right: 10px; }
  .install-app-banner { grid-template-columns: auto minmax(0, 1fr); width: calc(100% - 28px); margin-top: 14px; padding: 14px; }
  .install-app-banner > img { width: 52px; height: 52px; }
  .install-app-banner .button { grid-column: 1 / -1; width: 100%; }
  .page { width: min(100% - 28px, 1180px); padding-top: 28px; }
  .hero { margin-bottom: 22px; }
  .hero h1 { font-size: 39px; }
  .catalog-toolbar { position: static; grid-template-columns: 1fr 1fr; }
  .catalog-search { grid-column: 1 / -1; }
  .tag-axis-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visited-filter { grid-column: 1 / -1; padding: 0 9px; font-size: 13px; }
  .catalog-view-bar { align-items: stretch; margin-bottom: 18px; }
  .catalog-view-bar > div:first-child span { display: none; }
  .catalog-view-switch { flex: 0 0 auto; }
  .catalog-view-switch button { min-height: 42px; padding: 0 13px; }
  .featured-heading { display: grid; gap: 10px; padding: 16px; }
  .featured-heading > span { text-align: left; }
  .catalog-map-section { padding: 14px; border-radius: 20px; }
  .catalog-map-heading { align-items: stretch; }
  .catalog-map-heading .button { min-height: 42px; padding: 0 13px; font-size: 12px; }
  .catalog-map { min-height: 420px; height: 60svh; }
  .catalog-map-frame { min-height: 420px; border-radius: 16px; }
  .catalog-map-legend { gap: 8px 13px; }
  .temple-grid { grid-template-columns: 1fr; }
  .temple-card { grid-template-columns: 68px minmax(0, 1fr); min-height: 166px; }
  .temple-thumbnail { width: 68px; height: 68px; }
  .temple-map-link,
  .temple-address button,
  .catalog-map-popup-actions button { min-height: 44px; }
  .detail-hero { padding: 0; border-radius: 24px; }
  .detail-hero-body { gap: 22px; padding: 24px 22px; }
  .detail-photo figcaption { right: 10px; bottom: 10px; left: 10px; max-width: calc(100% - 20px); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-highlights { padding: 20px 18px; }
  .detail-highlights dl { grid-template-columns: 1fr; }
  .site-footer { display: grid; width: calc(100% - 28px); }
  .visited-dialog { width: calc(100% - 16px); max-height: 94vh; border-radius: 22px; }
  .visited-dialog-shell { max-height: 94vh; }
  .visited-dialog-header { padding: 18px 18px 14px; }
  #visited-dashboard { padding: 14px 14px 22px; }
  .visited-privacy-note { padding: 0 18px 20px; }
  .visited-map-card { grid-template-columns: 120px minmax(150px, 1fr); min-height: 300px; padding-left: 17px; }
  .visited-map-card > p { left: 17px; }
  .visited-region-card, .visited-name-list { padding: 18px; }
  .visited-name-group > div { grid-template-columns: 1fr; }
  .review-collection { padding: 16px; }
  .review-results { grid-template-columns: 1fr; }
  .private-observations > div { grid-template-columns: 1fr; }
  .private-review-heading { align-items: flex-start; }
  .account-dialog { width: calc(100% - 16px); max-height: 94vh; border-radius: 22px; }
  .account-dialog-shell { max-height: 94vh; }
  .account-dialog-header { padding: 18px 18px 14px; }
  .account-dialog-body { padding: 16px 16px 20px; }
  .account-page { width: calc(100% - 28px); padding: 18px 0 48px; }
  .account-page-hero { grid-template-columns: 72px minmax(0, 1fr); gap: 15px; padding: 20px 18px; border-radius: 22px 12px 22px 12px; }
  .account-page-hero img { width: 72px; height: 72px; }
  .account-page-hero h1 { font-size: 38px; }
  .account-page-hero p:last-child { font-size: 13px; }
  .account-page .member-profile { padding: 18px; }
  .account-page-guard { padding: 22px 18px; }
  .admin-page { width: calc(100% - 28px); padding: 18px 0 48px; }
  .admin-page-hero { grid-template-columns: 72px minmax(0, 1fr); gap: 15px; padding: 20px 18px; border-radius: 22px 12px 22px 12px; }
  .admin-page-hero img { width: 72px; height: 72px; }
  .admin-page-hero h1 { font-size: 38px; }
  .admin-page-hero p:last-child { font-size: 13px; }
  .admin-summary { grid-template-columns: 1fr; }
  .admin-search > div { grid-template-columns: 1fr; }
  .admin-directory-heading { align-items: stretch; flex-direction: column; }
  .admin-directory-heading .button { align-self: start; }
  .admin-member-table-wrap { overflow: visible; border: 0; background: transparent; }
  .admin-member-table { min-width: 0; }
  .admin-member-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .admin-member-table tbody { display: grid; gap: 12px; }
  .admin-member-table tr { display: grid; padding: 14px; border: 1px solid var(--line); border-radius: 16px 9px 16px 9px; background: #fff; }
  .admin-member-table td, .admin-member-table td:first-child { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; min-width: 0; padding: 9px 4px; border-bottom: 1px solid var(--line); }
  .admin-member-table td:last-child { border-bottom: 0; }
  .admin-member-table td::before { color: var(--muted); font-size: 11px; font-weight: 900; content: attr(data-label); }
  .admin-member-table td:first-child strong, .admin-member-table td:first-child small { grid-column: 2; }
  .member-profile-facts { grid-template-columns: 1fr; }
  .member-profile-facts > div + div { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-height: 650px) {
  .catalog-toolbar { position: static; }
}

@media (max-width: 400px) {
  .visited-summary-label, #account-button-label { display: none; }
  .account-button { padding-right: 7px; }
  .catalog-view-bar { display: grid; }
  .catalog-view-switch { width: 100%; }
  .catalog-search { grid-template-columns: minmax(0, 1fr) 86px; }
  .tag-axis-filter-grid { grid-template-columns: 1fr; }
  .search-submit { min-width: 86px; padding: 0 8px; }
  .review-search > div { grid-template-columns: 1fr; }
  .catalog-map-heading { display: grid; }
  .catalog-map-heading .button { justify-self: start; }
  .visited-map-card {
    grid-template-columns: 1fr;
    min-height: 460px;
    padding: 20px 18px 16px;
  }
  .visited-total { padding-top: 0; }
  .visited-map { justify-self: center; max-width: 220px; max-height: 270px; }
  .visited-map-card > p { position: static; margin-top: 2px; }
  .auth-status { grid-template-columns: auto minmax(0, 1fr); }
  .auth-status-actions { grid-column: 1 / -1; justify-content: start; padding-left: 19px; }
}

@media (max-width: 360px) {
  .brand-copy { display: none; }
}

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

/* Temora brand lockup: a quiet field of night blue with one warm point of light. */
.site-header .brand strong span {
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .82em;
  font-weight: 500;
  letter-spacing: .02em;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  align-items: center;
  gap: 28px;
  min-height: 260px;
  margin-bottom: 34px;
  padding: 34px 40px 36px;
  overflow: hidden;
  border: 1px solid #1b5068;
  border-radius: 28px 12px 28px 12px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 34%, rgb(243 202 145 / 23%) 0 7%, transparent 29%),
    linear-gradient(130deg, #102b40 0%, #1b4962 63%, #6d4c47 150%);
  box-shadow: 0 22px 48px rgb(16 43 64 / 18%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 44%, rgb(255 239 202 / 8%) 62%, transparent 78%);
  content: "";
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow { color: #f0c98c; }
.hero h1 {
  max-width: none;
  color: #fff;
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -.065em;
}

.hero h1 span { white-space: nowrap; }
.hero h1 em {
  color: #f7d6a8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .45em;
  font-weight: 500;
  letter-spacing: .03em;
  white-space: nowrap;
}

.hero h1 em::after {
  right: -13px;
  bottom: 1px;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #f2c27b;
  opacity: .9;
  transform: none;
}

.hero-tagline {
  max-width: 32ch;
  margin: 12px 0 0;
  color: #ffebce;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.2vw, 27px);
  letter-spacing: -.025em;
  line-height: 1.35;
  text-wrap: balance;
  white-space: nowrap;
}

.hero-purpose {
  margin: 13px 0 0;
  color: rgb(255 239 202 / 82%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}

.hero-purpose span { padding: 0 5px; color: #f2c27b; }

.hero .hero-lead {
  max-width: 600px;
  margin-top: 14px;
  color: rgb(255 255 255 / 78%);
  font-size: clamp(15px, 1.8vw, 17px);
}

.hero .catalog-count {
  color: rgb(255 255 255 / 66%);
}

.hero .catalog-count strong { color: #fff; }

.hero-light-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: center;
  width: 148px;
  height: 148px;
  border: 1px solid rgb(255 239 202 / 52%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 40%, #fff5d7 0 5%, #efc681 6% 13%, rgb(225 165 90 / 52%) 14% 29%, transparent 30%),
    radial-gradient(circle, rgb(255 242 205 / 12%) 0 49%, transparent 50%);
  box-shadow: 0 0 0 12px rgb(255 224 170 / 7%), 0 0 50px rgb(249 204 128 / 19%);
}

.hero-light-mark-core {
  margin-top: -12px;
  color: #fff7e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.hero-light-mark-caption {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  color: rgb(255 239 202 / 75%);
  font-size: 8px;
  letter-spacing: .14em;
  text-align: center;
}

@media (max-width: 650px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 270px;
    margin-bottom: 22px;
    padding: 28px 24px 30px;
    border-radius: 24px 10px 24px 10px;
  }

  .hero-light-mark {
    position: absolute;
    top: -38px;
    right: -35px;
    width: 156px;
    height: 156px;
    opacity: .62;
  }

  .hero h1 { font-size: 45px; }
  .hero-tagline { max-width: 21ch; font-size: 20px; white-space: normal; }
  .hero-purpose { margin-top: 11px; font-size: 11px; }
  .hero .hero-lead { max-width: 28ch; font-size: 15px; }
}

@media (max-width: 400px) {
  .hero { padding-right: 20px; padding-left: 20px; }
  .hero h1 { font-size: 40px; }
  .hero h1 em { font-size: .42em; }
  .hero-tagline { font-size: 18px; }
  .hero-purpose { letter-spacing: .02em; }
}
