/* ========================================================================
   Stone Tool Manufacturing Explorer
   Palette slots follow the validated categorical order (blue, orange, aqua,
   yellow, magenta, green, violet, red). Dark steps are selected for the dark
   surface, not flipped.
   ===================================================================== */

:root {
  color-scheme: light;

  --surface-0: #f4f3f0;
  --surface-1: #fcfcfb;
  --surface-2: #f0efec;
  --border:    #dcdbd5;
  --border-strong: #c3c2b7;

  --text-primary:   #0b0b0b;
  --text-secondary: #52514e;
  --text-muted:     #78776f;

  --accent:      #2a78d6;
  --accent-ink:  #1c5cab;
  --accent-wash: #eaf2fd;

  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #4a3aa7;
  --series-8: #e34948;
  --series-other: #9b9a92;

  /* Technique-industry ramp: ONE violet hue, light->dark, deliberately not the
     map's categorical hues so the two colour systems never read as the same
     scheme. Validated ordinal in both modes; every step works as text. */
  --ind-1:    #3b1f7a;   /* Lomekwian  */
  --ind-2:    #6435bd;   /* Oldowan    */
  --ind-3:    #8a5ce0;   /* Acheulean  */
  --ind-none: #78776f;   /* later / not in these three */

  --grid:  #e6e5e0;
  --axis:  #b9b8b0;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(11,11,11,.06), 0 6px 18px rgba(11,11,11,.05);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-0: #121211;
    --surface-1: #1a1a19;
    --surface-2: #232322;
    --border:    #34342f;
    --border-strong: #4a4a44;

    --text-primary:   #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted:     #93928a;

    --accent:      #3987e5;
    --accent-ink:  #86b6ef;
    --accent-wash: #16243a;

    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
    --series-other: #7e7d76;

    --ind-1:    #d5c4ff;
    --ind-2:    #b49df5;
    --ind-3:    #8d78e0;
    --ind-none: #93928a;
    --ind-1:    #d5c4ff;
  --ind-2:    #b49df5;
  --ind-3:    #8d78e0;
  --ind-none: #93928a;
  --grid: #2c2c2a;
    --axis: #56564f;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-0: #121211;
  --surface-1: #1a1a19;
  --surface-2: #232322;
  --border:    #34342f;
  --border-strong: #4a4a44;

  --text-primary:   #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted:     #93928a;

  --accent:      #3987e5;
  --accent-ink:  #86b6ef;
  --accent-wash: #16243a;

  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;
  --series-8: #e66767;
  --series-other: #7e7d76;

  --grid: #2c2c2a;
  --axis: #56564f;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------------------- header ---------------------------- */
.site-header {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 24px;
}
.header-inner { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.header-text { max-width: 78ch; }
.eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-muted);
}
.site-header h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2.05rem); }
.lede { margin: 0; color: var(--text-secondary); max-width: 70ch; }

.theme-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--text-primary); }
.theme-icon { font-size: 15px; }

/* ---------------------------- layout ---------------------------- */
.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 40px;
  align-items: start;
}

/* ---------------------------- filters ---------------------------- */
.filters {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.filters-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.filters h2 { margin: 0 0 4px; font-size: 1.02rem; }
.btn-reset {
  background: none; border: 0; padding: 0; font: inherit; font-size: 13px;
  color: var(--accent-ink); cursor: pointer; text-decoration: underline;
}
.result-count {
  margin: 8px 0 16px; padding: 9px 12px; font-size: 13px;
  background: var(--accent-wash); border-radius: 8px; color: var(--text-secondary);
}
.result-count strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }

.field { margin-bottom: 16px; }
.field > label,
.field-head > label {
  display: block; margin-bottom: 5px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-secondary);
}
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

select, input[type="search"] {
  width: 100%; font: inherit; font-size: 13px;
  color: var(--text-primary); background: var(--surface-1);
  border: 1px solid var(--border); border-radius: 7px; padding: 6px 8px;
}
select:focus-visible, input:focus-visible, button:focus-visible, .tab:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
select[multiple] { padding: 4px; }
select[multiple] option { padding: 3px 6px; border-radius: 4px; }
select[multiple] option:checked {
  background: var(--accent) linear-gradient(var(--accent), var(--accent));
  color: #fff;
}

.hint { margin: 5px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.linkish {
  background: none; border: 0; padding: 0; font: inherit; font-size: 12px;
  color: var(--accent-ink); cursor: pointer; text-decoration: underline;
}

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.seg-btn {
  background: var(--surface-1); border: 0; padding: 2px 10px; cursor: pointer;
  font: inherit; font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .05em;
}
.seg-btn.is-on { background: var(--accent); color: #fff; }

.age-readout { font-size: 13px; color: var(--text-primary); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--accent); margin: 2px 0; }

/* ---------------------------- panel / tabs ---------------------------- */
.panel {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.tabs {
  display: flex; gap: 2px; padding: 8px 10px 0;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; border-radius: 7px 7px 0 0;
}
.tab:hover { color: var(--text-primary); background: var(--surface-2); }
.tab.is-on { color: var(--accent-ink); border-bottom-color: var(--accent); font-weight: 600; }

.view { padding: 18px 20px 22px; }
.view[hidden] { display: none; }

.view-controls {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.ctl { display: flex; flex-direction: column; gap: 4px; }
.ctl label {
  font-size: 11px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-muted);
}
.ctl select { min-width: 180px; }
.ctl.is-off { display: none; }

.btn-ghost, .btn-primary {
  font: inherit; font-size: 13px; border-radius: 7px; padding: 7px 13px;
  cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.3;
}
.btn-ghost {
  background: var(--surface-1); border: 1px solid var(--border); color: var(--text-secondary);
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text-primary); }
.btn-primary { background: var(--accent); border: 1px solid var(--accent); color: #fff; font-weight: 500; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }

/* ---------------------------- chart ---------------------------- */
.chart-figure { margin: 0; }
.chart-figure figcaption { font-size: 1.05rem; font-weight: 600; margin-bottom: 2px; }
.chart-sub { margin: 0 0 14px; font-size: 13px; color: var(--text-secondary); }
.chart-box { position: relative; height: 620px; }
.chart-note { margin: 12px 0 0; font-size: 12.5px; color: var(--text-muted); max-width: 85ch; }
.empty {
  display: flex; align-items: center; justify-content: center; height: 100%;
  color: var(--text-muted); font-size: 14px; text-align: center; padding: 20px;
}

/* ---------------------------- map ---------------------------- */
#map {
  height: 620px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); z-index: 0;
}
.map-foot { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: flex-start; margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-secondary); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i {
  width: 11px; height: 11px; border-radius: 50%; display: inline-block;
  box-shadow: 0 0 0 2px var(--surface-1);
}
.leaflet-popup-content-wrapper {
  background: var(--surface-1); color: var(--text-primary);
  border-radius: 8px; box-shadow: var(--shadow);
}
.leaflet-popup-tip { background: var(--surface-1); }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--sans); font-size: 13px; line-height: 1.45; }
.leaflet-container { font-family: var(--sans); background: var(--surface-2); }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); }
.pop h3 { margin: 0 0 2px; font-size: 14px; }
.pop .pop-sub { margin: 0 0 8px; color: var(--text-muted); font-size: 12px; }
.pop dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.pop dt { color: var(--text-muted); font-size: 12px; }
.pop dd { margin: 0; font-size: 12.5px; }
.pop .pop-tech { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; }
.pop .pop-tech b { display: block; margin-bottom: 3px; color: var(--text-secondary); }

/* ---------------------------- table ---------------------------- */
.table-scroll { overflow-x: auto; max-height: 640px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--surface-2); text-align: left; padding: 9px 12px;
  border-bottom: 1px solid var(--border-strong); white-space: nowrap;
  cursor: pointer; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-secondary);
}
thead th:hover { color: var(--text-primary); }
thead th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
thead th[aria-sort]::after { content: " \25B4"; }
thead th[aria-sort="descending"]::after { content: " \25BE"; }
tbody td { padding: 8px 12px; border-bottom: 1px solid var(--grid); vertical-align: top; }
tbody tr:hover { background: var(--surface-2); }
td .td-sub { display: block; color: var(--text-muted); font-size: 11.5px; margin-top: 1px; }
.tag {
  display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
  margin-left: 5px; vertical-align: 1px;
}

/* ---------------------------- about ---------------------------- */
.about { max-width: 100ch; }
.about h2 { font-size: 1.05rem; margin: 0 0 8px; }
.about section { margin-bottom: 30px; }
.about p { color: var(--text-secondary); }
.muted { color: var(--text-muted); }

.cite-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 30px;
}
.cite-formatted {
  font-size: 15px; line-height: 1.6; color: var(--text-primary);
  margin: 0 0 14px; max-width: 80ch;
}
.cite-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-status { font-size: 12.5px; color: var(--series-6); margin: 8px 0 0; min-height: 1.2em; }
.cite-meta {
  display: grid; grid-template-columns: max-content 1fr; gap: 5px 18px;
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13.5px;
}
.cite-meta dt { color: var(--text-muted); font-weight: 600; }
.cite-meta dd { margin: 0; color: var(--text-secondary); }

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 28px; }
.facts { margin: 8px 0 0; padding-left: 18px; color: var(--text-secondary); }
.facts li { margin-bottom: 7px; }

.codebook { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
.cb-group { grid-column: 1 / -1; margin: 10px 0 -4px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.cb-item { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--surface-1); }
.cb-item h4 { margin: 0 0 3px; font-size: 13.5px; }
.cb-item h4 span { color: var(--text-muted); font-weight: 400; font-family: var(--mono); font-size: 11.5px; margin-right: 5px; }
.cb-item p { margin: 0; font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }
.cb-item .cb-n { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; display: block; }

/* ---------------------------- modal ---------------------------- */
dialog {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  background: var(--surface-1); color: var(--text-primary);
  max-width: min(920px, 92vw); max-height: 85vh; box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(11,11,11,.45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.modal-head h2 { margin: 0; font-size: 1.05rem; }

/* ---------------------------- footer ---------------------------- */
.site-footer {
  border-top: 1px solid var(--border); background: var(--surface-1);
  padding: 20px 0 30px; font-size: 12.5px; color: var(--text-secondary);
}
.site-footer p { margin: 0 0 5px; }

/* ---------------------------- responsive ---------------------------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .chart-box, #map { height: 500px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  .view { padding: 14px 12px 18px; }
  .chart-box, #map { height: 430px; }
  .cite-meta { grid-template-columns: 1fr; gap: 2px; }
  .cite-meta dd { margin-bottom: 8px; }
}

@media print {
  .filters, .tabs, .view-controls, .theme-toggle, .site-footer { display: none; }
}

.pop .pop-foot {
  margin: 8px 0 0; padding-top: 7px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-muted); line-height: 1.35;
}

/* ---------------------- technology reference photos ---------------------- */
.tech-figures {
  display: flex; flex-wrap: wrap; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.tech-figures[hidden] { display: none; }
.tech-fig {
  flex: 1 1 210px; max-width: 300px; margin: 0;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.tech-fig .tf-img {
  /* contain, not cover: never crop an artefact photograph */
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
  background: #111; border-bottom: 1px solid var(--border);
}
.tech-fig .tf-none {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 4 / 3; padding: 14px; border-bottom: 1px solid var(--border);
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 8px,
              var(--surface-1) 8px, var(--surface-1) 16px);
  font-size: 12px; color: var(--text-muted); line-height: 1.4;
}
.tech-fig figcaption { padding: 9px 11px 10px; }
.tech-fig .tf-name {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 3px;
}
.tech-fig .tf-n {
  font-weight: 400; color: var(--text-muted); font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.tech-fig .tf-cap { margin: 0; font-size: 11.5px; color: var(--text-secondary); line-height: 1.4; }
.tech-fig .tf-credit { margin: 5px 0 0; font-size: 10.5px; color: var(--text-muted); line-height: 1.35; }
.tech-fig .tf-credit a { color: var(--text-muted); text-decoration: underline; }
.tech-fig .tf-credit a:hover { color: var(--accent-ink); }

.pop-thumb {
  display: block; width: 100%; max-width: 150px; border-radius: 5px;
  margin: 8px 0 0; border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .tech-figures { padding: 12px; gap: 10px; }
  .tech-fig { flex-basis: 140px; }
}

/* ------------------- map: shape-encoded markers ------------------- */
.shape-marker { background: none; border: 0; }
.shape-marker svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }

.legend { flex-direction: column; align-items: flex-start; gap: 7px; }
.legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; }
.legend-lead {
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); margin-right: 2px;
}
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row svg { flex: none; }

/* ---------------------------- disclaimer ---------------------------- */
.disclaimer {
  margin: 16px 0 0; padding: 12px 16px;
  max-width: 78ch;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--series-4);
  border-radius: 8px;
}
.disclaimer p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.disclaimer strong { color: var(--text-primary); }
.disclaimer .disclaimer-cite {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
  font-size: 12.5px;
}

.hint-course {
  margin-top: 7px; padding: 7px 9px;
  background: var(--accent-wash); border-radius: 6px;
  color: var(--text-secondary);
}

/* ------------------- ANTH 5A discussion questions ------------------- */
.q-intro { margin-bottom: 22px; }
.q-intro h2 { margin: 0; }

.q-list { margin: 0; padding-left: 26px; max-width: 84ch; }
.q-list li { margin-bottom: 22px; color: var(--text-secondary); line-height: 1.6; padding-left: 4px; }
.q-list li::marker { color: var(--accent); font-weight: 700; }
.q-list strong { color: var(--text-primary); }
.q-list-major > li { font-size: 15px; }

/* the carated disclosure holding the Read Me quote */
.q-details {
  margin: 12px 0 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}
.q-details > summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 9px 13px;
  font-size: 13px; font-weight: 600; color: var(--accent-ink);
  display: flex; align-items: center; gap: 8px;
}
.q-details > summary::-webkit-details-marker { display: none; }
.q-details > summary::before {
  content: ""; flex: none;
  width: 0; height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform .15s ease;
}
.q-details[open] > summary::before { transform: rotate(90deg); }
.q-details > summary:hover { color: var(--accent); }
.q-details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.q-quote {
  padding: 2px 15px 13px;
  border-top: 1px solid var(--border);
  background: var(--surface-1);
}
.q-quote p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); }
.q-quote ul { margin: 10px 0 0; padding-left: 20px; }
.q-quote li {
  margin-bottom: 4px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.5;
}
.q-quote li::marker { color: var(--text-muted); }

.q-quote-more { margin: 12px 0 0 !important; font-size: 12.5px; }
.q-quote-more a { font-weight: 600; }

.q-instruction {
  margin: 10px 0 0; padding: 10px 14px; max-width: 84ch;
  background: var(--accent-wash); border-radius: 8px;
  font-size: 14px; color: var(--text-primary); font-weight: 500;
}

.q-task {
  margin: 12px 0 0; padding: 9px 13px;
  background: var(--accent-wash); border-radius: 7px;
  font-size: 14px; font-weight: 600; color: var(--text-primary);
}

.cite-lead {
  margin: 0 0 14px; padding: 10px 14px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--text-primary);
}

/* --------- technique list: coloured by earliest industry --------- */
.tech-key {
  display: flex; flex-wrap: wrap; gap: 3px 10px;
  margin-top: 6px; font-size: 11px; color: var(--text-muted);
}
.tech-key span { display: inline-flex; align-items: center; gap: 4px; }
.tech-key i {
  width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: none;
}
