:root {
  color-scheme: light;
  --color-text: #202124;
  --color-muted: #5f6368;
  --color-border: #d7dce1;
  --color-surface: #ffffff;
  --color-background: #f5f7f8;
  --color-primary: #0b6b5b;
  --color-primary-strong: #08483e;
  --color-primary-soft: #edf4f2;
  --color-on-primary: #ffffff;
  --color-accent: #d6aa2f;
  --color-accent-soft: #fff5cf;
  --color-on-accent: #2e260d;
  --color-header: #08483e;
  --color-header-text: #ffffff;
  --color-header-link: #ffffff;
  --color-status-background: #edf4f2;
  --color-status-text: #08483e;
  --color-highlight: #ffe58a;
  --color-focus: #9c7200;
  --shadow-subtle: rgb(32 33 36 / 10%);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--color-primary-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-primary-strong);
  font-weight: 750;
  transform: translateY(-160%);
}

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

.site-header,
.archive-status,
.site-footer,
.site-main {
  padding-right: clamp(16px, 4vw, 48px);
  padding-left: clamp(16px, 4vw, 48px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding-top: 18px;
  padding-bottom: 18px;
  background: var(--color-header);
  border-top: 6px solid var(--color-accent);
  box-shadow: 0 2px 8px var(--shadow-subtle);
}

.site-brand {
  display: grid;
  gap: 1px;
  color: var(--color-header-text);
  text-decoration: none;
}

.site-brand-kicker {
  color: var(--color-header-link);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-title {
  color: inherit;
  font-size: 1.35rem;
  font-weight: 750;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-header nav a {
  padding: 6px 0 4px;
  border-bottom: 3px solid transparent;
  color: var(--color-header-link);
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

.theme-picker {
  position: relative;
  flex: 0 0 auto;
}

.theme-picker summary {
  display: grid;
  place-items: center;
  width: 46px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--color-header-text) 45%, transparent);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.theme-picker summary::-webkit-details-marker {
  display: none;
}

.theme-picker summary:hover {
  border-color: var(--color-header-text);
}

.theme-lozenge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 30px;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgb(0 0 0 / 18%);
  border-radius: 999px;
}

.theme-swatch-primary {
  background: var(--theme-swatch-primary);
}

.theme-swatch-accent {
  background: var(--theme-swatch-accent);
}

.theme-picker-current {
  --theme-swatch-primary: var(--color-primary);
  --theme-swatch-accent: var(--color-accent);
}

.theme-options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 9px);
  right: 0;
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: min(340px, calc(100vw - 32px));
  padding: 8px;
  visibility: hidden;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: 0 5px 18px var(--shadow-subtle);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
}

.theme-picker[open] .theme-options {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.theme-option {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 28px;
  padding: 4px 3px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
}

.theme-option:hover {
  background: var(--color-primary-soft);
}

.theme-option[aria-pressed="true"] {
  border-color: var(--color-primary);
}

.theme-option::after {
  position: absolute;
  z-index: 11;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 190px;
  padding: 5px 8px;
  pointer-events: none;
  border-radius: 4px;
  background: var(--color-text);
  color: var(--color-surface);
  content: none;
  font-size: 0.75rem;
  font-weight: 650;
  transform: translateX(-50%);
}

.theme-option:hover::after,
.theme-option:focus-visible::after {
  content: attr(data-label);
}

.theme-option:first-child::after {
  left: 0;
  transform: none;
}

.theme-option:last-child::after {
  right: 0;
  left: auto;
  transform: none;
}

.theme-option--lahs,
.theme-picker[data-active-theme="lahs"] .theme-picker-current {
  --theme-swatch-primary: #17563a;
  --theme-swatch-accent: #d6aa2f;
}

.theme-option--aspen,
.theme-picker[data-active-theme="aspen"] .theme-picker-current {
  --theme-swatch-primary: #027f03;
  --theme-swatch-accent: #d3a91f;
}

.theme-option--barranca,
.theme-picker[data-active-theme="barranca"] .theme-picker-current {
  --theme-swatch-primary: #b51d2a;
  --theme-swatch-accent: #292929;
}

.theme-option--chamisa,
.theme-picker[data-active-theme="chamisa"] .theme-picker-current {
  --theme-swatch-primary: #8a5728;
  --theme-swatch-accent: #c89724;
}

.theme-option--lams,
.theme-picker[data-active-theme="lams"] .theme-picker-current {
  --theme-swatch-primary: #162b56;
  --theme-swatch-accent: #7a8496;
}

.theme-option--mountain,
.theme-picker[data-active-theme="mountain"] .theme-picker-current {
  --theme-swatch-primary: #c30606;
  --theme-swatch-accent: #292929;
}

.theme-option--pinon,
.theme-picker[data-active-theme="pinon"] .theme-picker-current {
  --theme-swatch-primary: #017b7f;
  --theme-swatch-accent: #292929;
}

.archive-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-status-background);
  color: var(--color-status-text);
  font-size: 0.9rem;
}

.archive-status a {
  color: inherit;
  font-weight: 700;
}

.site-main {
  max-width: 1120px;
  min-height: 60vh;
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 52px;
}

.intro,
.page-heading {
  padding: 28px 0;
}

.intro {
  padding-left: 20px;
  border-left: 5px solid var(--color-accent);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 24ch;
  margin-bottom: 10px;
  font-size: 2.15rem;
  line-height: 1.15;
}

h2 {
  line-height: 1.25;
}

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

.stat-card,
.panel,
.row-card,
.result-list li,
.page {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--shadow-subtle);
}

.stat-card {
  display: block;
  min-width: 0;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.stat-card:focus,
.stat-card:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.stat-value {
  display: block;
  color: var(--color-primary-strong);
  font-size: 1.6rem;
  font-weight: 750;
}

.stat-label {
  display: block;
  color: var(--color-muted);
}

.panel,
.row-card,
.result-list li,
.page {
  padding: 18px;
}

.panel h2 {
  margin-bottom: 16px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(145px, auto) minmax(150px, auto) minmax(90px, auto) auto;
  gap: 12px;
  align-items: end;
}

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field label {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select,
button,
.button {
  min-height: 42px;
  border-radius: 6px;
  font: inherit;
}

input,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  background: var(--color-surface);
  color: var(--color-text);
}

button,
.button {
  border: 0;
  padding: 9px 16px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: var(--color-primary-strong);
}

.results,
.meeting-list,
.resource-list,
.pages {
  margin-top: 28px;
}

.result-list,
.resource-pills {
  padding: 0;
  list-style: none;
}

.result-list {
  display: grid;
  gap: 12px;
}

.meeting-list,
.resource-list {
  display: grid;
  gap: 14px;
}

.meeting-list h2,
.meeting-list h3 {
  margin-bottom: 10px;
}

.resource-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.resource-pills li {
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

mark {
  border-radius: 3px;
  padding: 0 2px;
  background: var(--color-highlight);
  color: inherit;
}

.breadcrumbs,
.notice,
.site-footer {
  color: var(--color-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 8px;
  color: var(--color-muted);
  content: "/";
}

.prose + .prose {
  margin-top: 16px;
}

.prose p {
  max-width: 72ch;
}

.provenance {
  display: grid;
  gap: 10px;
  margin: 0;
}

.provenance div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
}

.provenance dt {
  color: var(--color-muted);
}

.provenance dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.page {
  margin-top: 12px;
}

.page header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

pre {
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 0.95rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.site-footer {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.9rem;
}

.site-footer p {
  max-width: 1120px;
  margin-right: auto;
  margin-bottom: 8px;
  margin-left: auto;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .theme-lozenge {
    border: 2px solid ButtonText;
  }

  .theme-option[aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: 1px;
  }

  mark {
    border: 1px solid MarkText;
  }
}

@media (max-width: 860px) {
  .search-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .field-query {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-header,
  .search-form,
  .page header {
    display: grid;
  }

  .site-header {
    min-height: 0;
  }

  .site-header nav {
    gap: 6px 16px;
  }

  .site-actions {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .theme-options {
    flex-wrap: wrap;
  }

  .theme-picker summary {
    height: 44px;
  }

  .theme-option {
    width: 40px;
    min-height: 40px;
  }

  .site-main {
    padding-top: 8px;
  }

  .intro {
    padding-top: 22px;
    padding-left: 14px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .stats,
  .search-form,
  .provenance div {
    grid-template-columns: 1fr;
  }

  .field-query {
    grid-column: auto;
  }
}
