/* Wild Clay Archive — Design System */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;1,14..32,400&display=swap');

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:           #F1EFE9;
  --bg-card:      #ECEAE3;
  --bg-card-hov:  #E5E2DA;
  --ink:          #18160F;
  --ink-2:        #3E3C36;
  --ink-3:        #6A6760;
  --ink-4:        #999590;
  --ink-5:        #B8B5AE;
  --border:       #D0CCC4;
  --border-dk:    #ADAAA3;
  --accent:       #C04020;
  --accent-dim:   #8A2E14;

  /* Status colors */
  --s-active:     #18160F;
  --s-limited:    #5A4520;
  --s-unstable:   #C04020;
  --s-highiron:   #7A2810;
  --s-archived:   #6A6760;
  --s-experiment: #1E3A4A;
  --s-silt:       #4E4A18;
  --s-lowplast:   #363650;

  --nav-h: 56px;
  --page-max: 1280px;
  --narrow-max: 720px;
  --gap: 32px;
  --radius: 2px;

  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --sans: 'Inter', system-ui, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 13px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

body.no-scroll { overflow: hidden; }

a {
  color: inherit;
  text-decoration: none;
}

a:hover { text-decoration: underline; text-decoration-color: var(--ink-4); }

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

button { cursor: pointer; font-family: var(--mono); border: none; background: none; }

ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.meta {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Layout ─────────────────────────────────────────────── */
#app {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.page {
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.page.active {
  opacity: 1;
  transform: translateY(0);
}

.page-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 48px var(--gap) 80px;
}

.page-narrow {
  max-width: var(--narrow-max);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* ─── Navigation ─────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}

.brand-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}

.brand-sub {
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 120ms ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
}

.cart-count.hidden { display: none; }

/* ─── Archive Page ───────────────────────────────────────── */
.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 4px;
}

.archive-statement {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 8px;
  max-width: 480px;
}

.archive-sub {
  max-width: 480px;
}

.archive-stats {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.stat-val {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}

.stat-label { color: var(--ink-4); }

/* ─── Filter Bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-wrap {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.search-input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  border-radius: var(--radius);
  transition: border-color 120ms ease;
}

.search-input::placeholder { color: var(--ink-5); }

.search-input:focus {
  border-color: var(--border-dk);
}

.filter-selects {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-select-wrap { position: relative; }

.filter-select {
  height: 32px;
  padding: 0 24px 0 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  appearance: none;
  outline: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 120ms ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239B9890' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.filter-select:focus, .filter-select:hover {
  border-color: var(--border-dk);
}

.filter-reset {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink-4);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 120ms, color 120ms;
}

.filter-reset:hover {
  border-color: var(--border-dk);
  color: var(--ink-2);
}

.results-meta {
  margin-bottom: 16px;
  color: var(--ink-4);
}

/* ─── Specimen Grid ──────────────────────────────────────── */
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.no-results {
  grid-column: 1/-1;
  padding: 48px;
  text-align: center;
  color: var(--ink-4);
}

/* ─── Specimen Card ──────────────────────────────────────── */
.specimen-card {
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background 120ms ease;
  position: relative;
}

.specimen-card:hover {
  background: var(--bg-card-hov);
}

.specimen-card:hover .card-image {
  transform: scale(1.015);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--border);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
}

.card-swatch-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.card-swatch {
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 1px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 1px;
}

.status-badge-lg {
  position: static;
  display: inline-block;
  font-size: 10px;
  margin-top: 8px;
}

.status-active    { background: #E8E4DC; color: var(--s-active); border: 1px solid #C8C4BC; }
.status-limited   { background: #F0E8D4; color: var(--s-limited); border: 1px solid #D8C89A; }
.status-unstable  { background: #F5E0D8; color: var(--s-unstable); border: 1px solid #DCA898; }
.status-high-iron { background: #F0DDD4; color: var(--s-highiron); border: 1px solid #D4A090; }
.status-archived  { background: #E8E8E8; color: var(--s-archived); border: 1px solid #C0C0C0; }
.status-experimental { background: #D8E4EC; color: var(--s-experiment); border: 1px solid #9ABCCC; }
.status-silt-heavy   { background: #ECEAD4; color: var(--s-silt); border: 1px solid #C8C4A0; }
.status-low-plasticity { background: #E0E0EC; color: var(--s-lowplast); border: 1px solid #B0B0CC; }

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.card-accession { color: var(--ink-4); font-size: 10px; letter-spacing: 0.06em; }

.card-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card-region { color: var(--ink-4); font-size: 10px; margin-top: 2px; }

.card-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.card-data {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.data-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.data-label {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-5);
  text-transform: uppercase;
}

.data-val {
  font-size: 11px;
  color: var(--ink-2);
}

.card-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.card-price {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.card-stock { color: var(--ink-5); font-size: 10px; }

.out-of-stock .card-price { color: var(--ink-5); }
.out-of-stock .card-image { filter: grayscale(40%); }

/* ─── Specimen Detail Page ───────────────────────────────── */
.breadcrumb {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a { color: var(--ink-4); }
.breadcrumb a:hover { color: var(--ink); text-decoration: none; }
.bc-sep { color: var(--ink-5); }

.specimen-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Images */
.image-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.img-tab {
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-4);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 120ms, border-color 120ms;
  font-family: var(--mono);
}

.img-tab:hover { color: var(--ink-2); }
.img-tab.active { color: var(--ink); border-bottom-color: var(--ink); }

.specimen-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--border);
  position: relative;
}

.specimen-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 120ms ease;
}

.img-caption {
  padding: 8px 0;
  color: var(--ink-5);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.specimen-swatch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.swatch-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch-block {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 1px;
}

.swatch-arrow { color: var(--ink-5); }

/* Specimen Data */
.specimen-header { margin-bottom: 16px; }

.specimen-accession {
  color: var(--ink-4);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.specimen-name {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.specimen-region {
  color: var(--ink-4);
  font-size: 11px;
  margin-top: 4px;
}

.specimen-desc {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
  margin: 16px 0;
}

.warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #F5E0D8;
  border: 1px solid #DCA898;
  border-left: 3px solid var(--accent);
  color: var(--s-unstable);
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.warning-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }

/* Data table */
.data-table {
  margin: 16px 0;
  border-top: 1px solid var(--border);
}

.dt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.dt-label {
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.dt-val {
  font-size: 12px;
  color: var(--ink-2);
  text-align: right;
}

/* Field observation */
.field-observation {
  margin: 20px 0;
  padding: 14px 16px;
  background: var(--bg-card);
  border-left: 2px solid var(--border-dk);
}

.fo-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
  margin-bottom: 8px;
}

.fo-text {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 10px 0;
}

.fo-series-link {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-4);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 120ms;
}
.fo-series-link:hover { color: var(--ink); }

.suggested-uses {
  margin: 16px 0;
}

.su-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
  margin-bottom: 6px;
}

.su-text {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* Purchase zone */
.purchase-zone { margin-top: 24px; }

.purchase-exhausted {
  padding: 16px 0;
  color: var(--ink-4);
}

.purchase-stock {
  color: var(--ink-3);
  margin-bottom: 12px;
}

.purchase-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.purchase-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  padding: 4px 8px;
}

.qty-btn {
  width: 22px;
  height: 22px;
  font-size: 16px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 100ms;
  line-height: 1;
}

.qty-btn:hover { color: var(--ink); }

.qty-val {
  font-size: 13px;
  color: var(--ink);
  min-width: 20px;
  text-align: center;
}

.btn-add-to-cart {
  flex: 1;
  height: 40px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 120ms, color 120ms;
}

.btn-add-to-cart:hover {
  background: var(--ink-2);
}

.btn-add-to-cart.btn-added {
  background: var(--ink-3);
  color: var(--bg);
}

.purchase-note {
  color: var(--ink-5);
  font-size: 10px;
  line-height: 1.6;
}

/* Sample contents */
.sample-contents {
  margin-bottom: 20px;
}
.sc-label {
  color: var(--ink-4);
  margin-bottom: 10px;
}
.sc-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sc-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 9px 12px;
  background: var(--surface);
  align-items: baseline;
}
.sc-item + .sc-item {
  border-top: 1px solid var(--border);
}
.sc-key {
  color: var(--ink-4);
  font-size: 10px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.sc-val {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Expandable sections */
.expandable-sections { margin-top: 48px; }

.expandable { }

.exp-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: left;
}

.exp-icon {
  font-size: 18px;
  color: var(--ink-4);
  font-weight: 300;
  line-height: 1;
  transition: transform 200ms ease;
}

.exp-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 240ms ease;
}

.exp-body.open {
  max-height: 800px;
}

.exp-content {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
  padding: 0 0 20px;
}

/* Related field notes */
.related-notes { margin-top: 8px; }

.related-notes-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.related-note-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 120ms;
}

.related-note-item:hover { padding-left: 8px; }

.rn-meta { color: var(--ink-5); margin-bottom: 4px; }

.rn-title {
  font-size: 13px;
  color: var(--ink-2);
}

/* ─── Field Notes ────────────────────────────────────────── */
.section-header { margin-bottom: 4px; }

.section-title {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-sub { }

.field-notes-list { }

.field-note {
  padding: 32px 0 0;
}

.fn-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.fn-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fn-id, .fn-date, .fn-location, .fn-sep { color: var(--ink-5); font-size: 10px; letter-spacing: 0.04em; }

.fn-type-badge {
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 1px;
}

.type-collection    { background: #E4EDE4; color: #2A5A2A; border: 1px solid #A8CCA8; }
.type-processing    { background: #E4E4F0; color: #2A2A5A; border: 1px solid #A8A8CC; }
.type-firing        { background: #F0E8DC; color: #5A3A10; border: 1px solid #CCA870; }
.type-failure       { background: #F0DCD8; color: #5A1A10; border: 1px solid #CCA898; }
.type-reference     { background: #E4F0F0; color: #1A5A5A; border: 1px solid #A8CCCC; }

.fn-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.fn-related {
  margin-bottom: 12px;
}

.fn-related a {
  color: var(--ink-3);
  text-decoration: underline;
  text-decoration-color: var(--border);
}

.fn-related a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.fn-body p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 12px;
}

.fn-data-table {
  margin: 16px 0;
  border-top: 1px solid var(--border);
  max-width: 480px;
}

.fn-dt-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.fn-dt-label { font-size: 10px; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.04em; }
.fn-dt-val { font-size: 12px; color: var(--ink-2); }

.fn-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0 32px;
}

.fn-tag {
  padding: 2px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1px;
  font-size: 10px;
  color: var(--ink-5);
}

/* ─── Methods / About ────────────────────────────────────── */
.methods-content { }

.method-section { margin-bottom: 8px; }

.method-heading {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.method-section p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 12px;
}

.method-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 16px;
}

.method-list li {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  padding: 4px 0 4px 16px;
  position: relative;
}

.method-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-5);
}

.status-guide {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

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

.sg-desc {
  font-size: 12px;
  color: var(--ink-3);
}

.about-content p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-content h2 {
  margin-top: 4px;
}

/* ─── Cart Drawer ────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,16,10,0.25);
  z-index: 200;
  backdrop-filter: blur(1px);
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-family: var(--mono);
}

.cart-close {
  font-size: 14px;
  color: var(--ink-4);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms;
}

.cart-close:hover { color: var(--ink); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-empty {
  padding: 32px 0;
  text-align: center;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-swatch {
  width: 28px;
  height: 28px;
  border-radius: 1px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.cart-item-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-price {
  font-size: 13px;
  color: var(--ink-2);
  min-width: 44px;
  text-align: right;
}

.cart-remove {
  font-size: 11px;
  color: var(--ink-5);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms;
  flex-shrink: 0;
}

.cart-remove:hover { color: var(--accent); }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.cart-total-amount {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.cart-note {
  color: var(--ink-5);
  font-size: 10px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.btn-checkout {
  width: 100%;
  height: 42px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 180ms ease, background 180ms ease;
}

.btn-checkout:hover:not(:disabled) {
  opacity: 0.8;
}

.btn-checkout:disabled {
  background: var(--ink-3);
  cursor: not-allowed;
  opacity: 0.7;
}

/* ─── Utility ────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .specimen-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --gap: 20px; }

  .archive-header { flex-direction: column; gap: 16px; }
  .archive-stats { align-self: flex-start; }
  .stat-item { align-items: flex-start; }

  .specimen-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .specimen-name { font-size: 22px; }
}

/* ─── Mobile: 768px ──────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 52px; }

  /* Nav: tighten up, hide sub-label */
  .brand-sub { display: none; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 10px; }

  /* Page padding */
  .page-inner { padding: 32px 16px 64px; }

  /* Archive header */
  .archive-statement { font-size: 15px; }
  .stat-val { font-size: 22px; }

  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .search-wrap { max-width: none; min-width: 0; }
  .filter-selects { flex-direction: row; flex-wrap: wrap; }
  .filter-select-wrap { flex: 1; min-width: 120px; }
  .filter-select { width: 100%; }

  /* Specimen page: image area */
  .specimen-images { position: static; }
  .specimen-img-wrap { max-height: 320px; }
  .specimen-img-wrap img { height: 320px; object-fit: cover; }

  /* Specimen data */
  .purchase-row { flex-direction: column; gap: 12px; align-items: stretch; }
  .btn-add-cart { width: 100%; justify-content: center; }

  /* Expandable sections */
  .exp-trigger { padding: 16px 0; }

  /* Gallery */
  .supp-layout-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .supp-side { flex-direction: row; gap: 16px; }
  .supp-side .supp-img { width: calc(50% - 8px); height: 200px; }
  .supp-layout-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .supp-gallery { gap: 64px; }
  .supp-img--full { max-width: 100%; }

  /* Cart drawer */
  .cart-drawer { width: 100vw; right: -100vw; }

  /* Field notes */
  .fn-grid { grid-template-columns: 1fr; }

  /* Weekly ledger */
  .wk-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .wk-meta { align-items: flex-start; }

  /* Edit mode form */
  .ef-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ef-toolbar-btns { flex-wrap: wrap; }
  .ef-grid { grid-template-columns: repeat(2, 1fr); }
  .ef-row { flex-direction: column; }
}

/* ─── Mobile: 480px ──────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --gap: 16px; }

  /* Nav: only show brand + batch */
  .nav-links a:not(#cart-trigger):not(#nav-archive) { display: none; }
  .nav-links { gap: 16px; }

  /* Archive grid */
  .specimen-grid { grid-template-columns: 1fr; }

  /* Specimen page */
  .image-tabs { flex-wrap: wrap; gap: 4px; }
  .img-tab { font-size: 9px; padding: 5px 10px; }
  .specimen-name { font-size: 20px; }
  .specimen-accession { font-size: 10px; }

  /* Data table */
  .data-table { font-size: 12px; }
  .dt-label { min-width: 110px; font-size: 9px; }

  /* Purchase block */
  .qty-controls { gap: 6px; }
  .qty-btn { width: 28px; height: 28px; }
  .qty-num { width: 28px; font-size: 13px; }

  /* Edit form */
  .ef-grid { grid-template-columns: 1fr; }
  .ef-export-out { height: 200px; font-size: 10px; }

  /* Breadcrumb */
  .breadcrumb { font-size: 10px; }
}

/* ─── Current Accession Strip ────────────────────────────── */
.current-accession-strip {
  padding: 11px 0;
}

.ca-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.ca-bar-left {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}

.ca-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ca-label {
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-5);
}

.ca-id {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.05em;
}

.ca-sep {
  color: var(--ink-5);
  font-size: 10px;
}

.ca-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.ca-specimens {
  display: flex;
  gap: 5px;
  align-items: center;
}

.ca-specimen-link {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--ink-4);
  padding: 1px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1px;
  text-decoration: none;
  transition: color 120ms, border-color 120ms;
}

.ca-specimen-link:hover {
  color: var(--ink);
  border-color: var(--border-dk);
}

.ca-note {
  font-size: 11px;
  color: var(--ink-5);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.ca-date {
  font-size: 10px;
  color: var(--ink-5);
}

.ca-signal {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 1px;
}

.ca-ledger-link {
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--ink-4);
  text-decoration: none;
  transition: color 120ms;
}

.ca-ledger-link:hover { color: var(--ink); }

/* ─── Signal Badges (shared: strip + ledger) ─────────────── */
.signal-recorded {
  background: #E5EDE5;
  color: #2A502A;
  border: 1px solid #AACAAA;
}

.signal-documented {
  background: #E5EDE5;
  color: #2A502A;
  border: 1px solid #AACAAA;
}

.signal-watching {
  background: #F0EAD8;
  color: #574010;
  border: 1px solid #C8C070;
}

.signal-inprogress {
  background: #E5E8F0;
  color: #253060;
  border: 1px solid #A8AECC;
}

.signal-pending {
  background: var(--bg-card);
  color: var(--ink-4);
  border: 1px solid var(--border);
}

.expandable:last-child {
  border-bottom: 1px solid var(--border);
}

/* ─── Editorial Gallery ───────────────────────────────────── */
.supp-editorial {
  padding: 80px 0 60px;
}

/* Header */
.ed-header {
  margin-bottom: 40px;
}
.ed-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-5);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ed-sub {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-5);
}

/* Grids */
.ed-grids {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ed-grid {
  display: grid;
  gap: 8px;
}

.ed-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.ed-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ed-cell {
  width: 100%;
  overflow: hidden;
}

.ed-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1px;
}

/* Prev / Next navigation */
.ed-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 0 0;
  gap: 24px;
}
.ed-nav-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  flex: 1;
}
.ed-nav-prev { align-items: flex-start; }
.ed-nav-next { align-items: flex-end; }
.ed-nav-dir {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.ed-nav-name {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
  transition: opacity 150ms;
}
.ed-nav-link:hover .ed-nav-name { opacity: 0.45; }

/* keep legacy classes from erroring */
.supp-gallery { display: flex; flex-direction: column; gap: 80px; }
.supp-group { width: 100%; }
.supp-img { display: block; width: 100%; object-fit: cover; border-radius: 2px; }
.supp-img--full { max-width: 560px; }



/* ─── Field Notes Related ─────────────────────────────────── */
.weekly-ledger {
  margin-bottom: 8px;
}

.wk-entry {}

.wk-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  cursor: pointer;
  gap: 12px;
  transition: padding-left 100ms ease;
  user-select: none;
  outline: none;
}

.wk-row:hover,
.wk-row:focus-visible { padding-left: 5px; }

.wk-left {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.wk-id {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-5);
  flex-shrink: 0;
}

.wk-dash { color: var(--ink-5); font-size: 11px; }

.wk-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wk-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.wk-date {
  font-size: 10px;
  color: var(--ink-5);
  white-space: nowrap;
}

.wk-signal {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 1px;
}

.wk-icon {
  font-size: 14px;
  color: var(--ink-5);
  width: 14px;
  text-align: center;
  font-family: var(--mono);
  font-weight: 300;
  transition: color 120ms;
}

.wk-row:hover .wk-icon { color: var(--ink-3); }

/* Expandable detail */
.wk-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
}

.wk-detail.open {
  max-height: 480px;
}

.wkd-inner {
  border-top: 1px solid var(--border);
  padding-bottom: 16px;
}

.wkd-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.wkd-label {
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-5);
  width: 120px;
  flex-shrink: 0;
}

.wkd-val {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.65;
}

.wkd-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.wkd-specimen-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 2px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1px;
  text-decoration: none;
  transition: color 120ms, border-color 120ms;
}

.wkd-specimen-link:hover {
  color: var(--ink);
  border-color: var(--border-dk);
}

.wkd-notes-text {
  display: block !important;
  font-style: italic;
  color: var(--ink-3);
}

.wkd-ext-link {
  color: var(--ink-3);
  text-decoration: underline;
  text-decoration-color: var(--border);
}

/* ─── Entry Generator ─────────────────────────────────────── */
.wk-generator-section {
  padding: 20px 0 8px;
}

.wk-gen-trigger {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 120ms;
}

.wk-gen-trigger:hover { color: var(--ink-3); }

.wk-generator {
  margin-top: 18px;
  padding: 20px 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.wk-gen-header {
  font-size: 10px;
  color: var(--ink-5);
  line-height: 1.65;
  margin-bottom: 16px;
}

.wk-gen-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.wk-gen-field { display: flex; flex-direction: column; gap: 5px; }
.wk-gen-field--wide { grid-column: 1 / -1; }

.wk-gen-label {
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-5);
}

.wk-gen-input {
  height: 32px;
  padding: 0 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  transition: border-color 120ms;
}

.wk-gen-input:focus { border-color: var(--border-dk); }

.wk-gen-select { cursor: pointer; }

.wk-gen-actions { margin-bottom: 12px; }

.wk-gen-btn {
  height: 32px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms;
}

.wk-gen-btn:hover { background: var(--ink-2); }

.wk-gen-output {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-x: auto;
}

.wk-gen-copy {
  margin-top: 8px;
  height: 28px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  background: none;
  cursor: pointer;
  transition: color 120ms, border-color 120ms;
}

.wk-gen-copy:hover {
  color: var(--ink);
  border-color: var(--border-dk);
}

/* ─── Responsive weekly ───────────────────────────────────── */
@media (max-width: 640px) {
  .wk-date { display: none; }
  .ca-note { display: none; }
  .wk-gen-fields { grid-template-columns: 1fr; }
  .wk-gen-field--wide { grid-column: auto; }
  .ca-bar { flex-direction: column; gap: 6px; }
}

/* ─── Current Accession — Today's Rhythm Row ─────────────── */
.ca-rhythm {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0 2px;
  flex-wrap: wrap;
}

.ca-rhythm-label {
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-5);
  flex-shrink: 0;
}

.ca-rhythm-step {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}

.ca-rhythm-dot {
  color: var(--ink-5);
  flex-shrink: 0;
}

.ca-rhythm-instr {
  font-size: 11px;
  color: var(--ink-4);
  line-height: 1.5;
}

.ca-sub {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 3px 0 2px;
}

/* ─── Weekly Field Rhythm section (ledger page) ──────────── */
.field-rhythm-section {
  padding: 16px 0 4px;
}

.fr-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.fr-label {
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-5);
  flex-shrink: 0;
}

.fr-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.fr-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0 8px 4px;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: border-color 120ms;
}

.fr-row--today {
  border-left-color: var(--ink-4);
  padding-left: 10px;
}

.fr-day {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-5);
  width: 28px;
  flex-shrink: 0;
}

.fr-row--today .fr-day {
  color: var(--ink-3);
}

.fr-action {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-4);
  width: 148px;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.fr-row--today .fr-action {
  color: var(--ink);
}

.fr-instruction {
  font-size: 11px;
  color: var(--ink-5);
  line-height: 1.55;
}

.fr-row--today .fr-instruction {
  color: var(--ink-3);
}

/* ─── Responsive: rhythm ──────────────────────────────────── */
  .ca-rhythm { flex-direction: column; gap: 3px; }
  .ca-rhythm-dot { display: none; }
  .fr-action { width: 120px; }
}

/* ─── Edit Mode UI ────────────────────────────────────────── */

.edit-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--ink);
  color: var(--bg);
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.edit-indicator button {
  background: none;
  border: none;
  color: var(--ink-5);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  transition: color 120ms;
}

.edit-indicator button:hover {
  color: var(--bg);
}

.ef {
  max-width: 680px;
  padding-bottom: 60px;
}

.ef-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.ef-toolbar-id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.ef-toolbar-btns {
  display: flex;
  gap: 8px;
}

.ef-btn {
  height: 28px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 120ms;
}

.ef-btn:hover {
  border-color: var(--border-dk);
  color: var(--ink);
}

.ef-btn--save {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.ef-btn--save:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: var(--bg);
}

.ef-btn--danger {
  color: #a04040;
}

.ef-btn--view {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  border-color: transparent;
}

.ef-btn--view:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.ef-section {
  margin-bottom: 40px;
}

.ef-section-label {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-4);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.ef-section-hint {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-5);
  font-family: var(--sans);
}

.ef-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.ef-row > * { flex: 1; }

.ef-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ef-field--lg { flex: 2; }
.ef-field--sm { flex: 0.7; }

.ef-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0 16px;
}

.ef-label {
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.ef-label-hint {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-5);
}

.ef-input,
.ef-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  transition: border-color 120ms;
}

.ef-input {
  height: 32px;
  padding: 0 10px;
}

.ef-textarea {
  padding: 10px;
  resize: vertical;
  line-height: 1.5;
}

.ef-input:focus,
.ef-textarea:focus {
  outline: none;
  border-color: var(--border-dk);
}

.ef-select {
  appearance: none;
  cursor: pointer;
  border-radius: 0;
}

/* Image blocks */
.ef-img-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.ef-img-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.ef-img-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ef-img-remove {
  background: none;
  border: none;
  color: #a04040;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0;
}

.ef-img-remove:hover { text-decoration: underline; }

.ef-img-preview {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 12px;
}

.ef-img-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ef-img-fields .ef-field { margin-bottom: 10px; }

.ef-img-path-row {
  display: flex;
  gap: 8px;
}

.ef-btn--file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 0;
}

/* Export */
.ef-section--export {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px dashed var(--border);
}

.ef-export-note {
  font-size: 12px;
  color: var(--ink-4);
  line-height: 1.5;
  margin-bottom: 16px;
}

.ef-export-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ef-export-out {
  width: 100%;
  height: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

/* ─── Fieldwork Page ─────────────────────────────────────── */
.fw-outer { max-width: var(--page-max); }

/* Header */
.fw-header { padding-bottom: 8px; }
.fw-eyebrow { margin-bottom: 10px; }
.fw-title {
  font-family: var(--sans);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 14px;
}
.fw-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 640px;
}

/* Two Paths */
.fw-paths {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0 40px;
  align-items: start;
}
.fw-path-divider {
  background: var(--border);
  width: 1px;
  align-self: stretch;
}
.fw-path-card { padding: 4px 0; }
.fw-path-label {
  margin-bottom: 10px;
  color: var(--ink-4);
}
.fw-path-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 12px;
}
.fw-path-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.75;
  margin-bottom: 20px;
}
.fw-path-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.fw-detail-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: baseline;
}
.fw-detail-label { flex-shrink: 0; color: var(--ink-5); }
.fw-detail-val {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
}
.fw-path-tag-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.fw-path-price {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.fw-price-est {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 12px;
}
.fw-path-subtitle {
  color: var(--ink-4);
  margin-bottom: 12px;
  margin-top: -6px;
}
.fw-path-disclaimer {
  color: var(--ink-4);
  margin-bottom: 16px;
  font-size: 10px;
  line-height: 1.6;
}
.fw-header-cta-line {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.6;
}
.fw-form-disclaimer {
  color: var(--ink-4);
  font-size: 10px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.fw-path-cta { display: flex; }

.fw-btn-primary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 140ms, color 140ms;
  text-decoration: none;
}
.fw-btn-primary:hover {
  background: var(--ink-2);
  color: var(--bg);
  text-decoration: none;
}
.fw-btn-secondary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-dk);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 140ms, color 140ms;
  text-decoration: none;
}
.fw-btn-secondary:hover {
  border-color: var(--ink);
  text-decoration: none;
}

/* Tracker Header */
.fw-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.fw-section-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.fw-section-sub { color: var(--ink-4); }

.fw-tracker-stats {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}
.fw-tstat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.fw-tstat-val {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}
.fw-tstat-label { color: var(--ink-4); }

/* Filter pills */
.fw-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.fw-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--ink-3);
  background: transparent;
  cursor: pointer;
  transition: border-color 120ms, color 120ms, background 120ms;
}
.fw-pill:hover { border-color: var(--border-dk); color: var(--ink); }
.fw-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* State Grid */
.fw-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.fw-no-results {
  grid-column: 1/-1;
  padding: 48px;
  text-align: center;
  color: var(--ink-4);
}

/* State Card */
.fw-state-card {
  background: var(--bg-card);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 120ms;
}
.fw-state-card:hover { background: var(--bg-card-hov); }
.fw-sc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}
.fw-sc-abbr {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-3);
  letter-spacing: -0.02em;
  line-height: 1;
}
.fw-sc-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.fw-state-regions {
  font-size: 10px;
  color: var(--ink-4);
  line-height: 1.4;
  min-height: 28px;
}
.fw-regions-empty { color: var(--ink-5); font-style: italic; }
.fw-sc-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0 8px;
}
.fw-sc-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 10px;
}
.fw-count-num {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}
.fw-count-label { color: var(--ink-4); }
.fw-btn-attend {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms, color 120ms;
  width: 100%;
}
.fw-btn-attend:hover { border-color: var(--border-dk); color: var(--ink); }

/* Status badges — fieldwork */
.fw-status-badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.fw-s-open      { background: #ECEAE3; color: var(--ink-4);  border: 1px solid var(--border); }
.fw-s-scouting  { background: #E4EAF0; color: #2A4A60;       border: 1px solid #BACCD8; }
.fw-s-scheduled { background: #E4EDE4; color: #1E4220;       border: 1px solid #A8C8A8; }
.fw-s-done      { background: #E0E0E0; color: #282828;       border: 1px solid #B8B8B8; }

/* Modal */
.fw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24,22,15,0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.fw-modal-overlay.hidden { display: none; }
.fw-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}
.fw-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 14px;
  color: var(--ink-4);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 120ms;
  padding: 4px 6px;
}
.fw-modal-close:hover { color: var(--ink); }
.fw-modal-label { margin-bottom: 8px; }
.fw-modal-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}
.fw-modal-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Form */
.fw-form { display: flex; flex-direction: column; gap: 16px; }
.fw-form-row { display: flex; flex-direction: column; gap: 5px; }
.fw-label { color: var(--ink-4); }
.fw-optional { color: var(--ink-5); font-style: italic; text-transform: none; letter-spacing: 0; }
.fw-input {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  outline: none;
  transition: border-color 120ms;
  width: 100%;
}
.fw-input:focus { border-color: var(--border-dk); }
.fw-input::placeholder { color: var(--ink-5); }
.fw-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239B9890' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.fw-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.fw-form-footer { padding-top: 4px; }
.fw-btn-submit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 140ms;
}
.fw-btn-submit:hover { background: var(--ink-2); }

/* Confirmation */
.fw-confirm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 0;
}
.fw-confirm-icon {
  font-size: 28px;
  color: var(--ink-4);
  line-height: 1;
  margin-bottom: 4px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .fw-paths {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }
  .fw-path-divider {
    width: 100%;
    height: 1px;
    align-self: auto;
  }
}
@media (max-width: 640px) {
  .fw-state-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .fw-tracker-header { flex-direction: column; gap: 16px; }
  .fw-tracker-stats { align-self: flex-start; }
  .fw-tstat { align-items: flex-start; }
}
@media (max-width: 480px) {
  .fw-modal { padding: 24px 20px; }
  .fw-state-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
