/* ==========================================================================
   Leonida Field Notes · ARCHIVE SYSTEM ("Fundo Leonida: Sala de Consulta")
   Shared by Estúdio (/) and Galeria (/galeria/). Load BEFORE each app's
   own stylesheet:  <link rel="stylesheet" href="/vendor/archive.css">
   Local-only: every font is vendored in /vendor/fonts (OFL licences there).
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/vendor/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/vendor/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/vendor/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/vendor/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/vendor/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/vendor/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/vendor/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Surfaces: warm graphite, almost colourless so photos carry the colour */
  --bg:          #0E0E0D;   /* sala escura: app canvas */
  --surface:     #141413;   /* rails, sidebar, ficha panels, dialogs */
  --surface-2:   #1A1A18;   /* inputs, hovered rows, selected row */
  --surface-3:   #22221F;   /* pressed / active row */
  --well:        #080808;   /* behind photos: grid cells, editor stage, viewer */

  /* Rules: hierarchy comes from hairlines, never shadows */
  --rule:        #262522;
  --rule-strong: #3A3833;

  /* Ink */
  --ink:   #ECE8DF;         /* primary text; primary button fill */
  --ink-2: #A6A196;         /* secondary text, metadata values */
  --ink-3: #8A857B;         /* mono labels, frame numbers, placeholders */
  --on-ink: #111110;        /* text on ink-filled buttons */
  --paper: #E6E1D5;         /* rare inverted labels (PRANCHA 01) */

  /* The single chromatic voice: conservation vermilion. Keep to ~2% of a screen */
  --accent:      #D2603F;
  --accent-dim:  #D2603F33;
  --accent-soft: #D2603F1F;

  /* Status (dots and 2px bars only, never fills) */
  --ok:     #8FA77E;
  --warn:   #D6A24A;
  --danger: #E0705A;

  --overlay: #080807D9;     /* dialog backdrop */

  /* Type families */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-ui:      "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;

  /* Type scale (px) */
  --fs-label: 10.5px;  /* mono uppercase labels */
  --fs-mono:  12px;    /* mono values */
  --fs-ui:    13px;    /* base UI */
  --fs-read:  14px;    /* reading text */
  --fs-lead:  15px;
  --fs-h4:    20px;    /* serif minimum */
  --fs-h3:    26px;
  --fs-h2:    34px;
  --fs-h1:    40px;    /* nothing larger anywhere */

  --tracking-label: 0.08em;
  --lh-tight: 1.05;
  --lh-ui: 1.5;
  --lh-read: 1.65;

  /* Spacing (8px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 40px; --s-8: 48px;
  --gutter: 32px;                 /* 40px at >=1600 (see media query) */

  /* Fixed chrome heights */
  --h-header: 52px;               /* Galeria header */
  --h-topbar: 56px;               /* Estúdio topbar */
  --h-pagehead: 88px;             /* Estúdio page head (max) */
  --h-strip: 44px;                /* extensão strip / toolbars */
  --h-toolbar: 40px;
  --h-control: 36px;              /* buttons, inputs */
  --h-control-sm: 28px;
  --w-rail: 300px;                /* Galeria finding-aid rail */
  --w-sidebar: 232px;             /* Estúdio index */
  --w-ficha: 360px;               /* viewer caption panel */
  --w-inspector: 400px;           /* editor ficha panel */

  /* Shape */
  --radius: 2px;                  /* images, inputs, buttons. Panels: 0 */
  --hair: 1px solid var(--rule);
  --hair-strong: 1px solid var(--rule-strong);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 120ms;
  --t: 180ms;

  /* Map treatment (apply to .leaflet-tile-pane ONLY, never markers) */
  --map-filter-night: grayscale(.9) contrast(1.05) brightness(.8);
  --map-filter-day:   grayscale(.85) brightness(1.02);
}
@media (min-width: 1600px) { :root { --gutter: 40px; } }

/* ---------- Base helpers (opt-in; apps keep their own resets) ---------- */
.lfn-shell { height: 100vh; overflow: hidden; }
.lfn-scroll { overflow: auto; min-height: 0; scrollbar-width: none; overscroll-behavior: contain; }
.lfn-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.lfn-scroll-x { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.lfn-scroll-x::-webkit-scrollbar { display: none; }

.lfn-serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: var(--lh-tight); }
.lfn-untitled { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--ink-3); }
.lfn-mono { font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 400; color: var(--ink-2);
  font-variant-numeric: tabular-nums slashed-zero; letter-spacing: 0; }
.lfn-label { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; line-height: 1.3;
  text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-3); }
.lfn-num { font-variant-numeric: tabular-nums; }
.lfn-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- Accession number (nº de tombo) ---------- */
.lfn-accession { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-3); font-variant-numeric: tabular-nums slashed-zero; white-space: nowrap; }
.lfn-accession--lg { font-size: 13px; color: var(--ink); }
.lfn-accession--md { font-size: 12px; color: var(--ink-2); }

/* ---------- Status marks (marcas de situação) ----------
   <span class="lfn-marks"><i class="lfn-mark lfn-mark--fav"></i><i class="lfn-mark lfn-mark--geo"></i></span> */
.lfn-marks { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.lfn-mark { display: inline-block; width: 6px; height: 6px; flex: none; }
.lfn-mark--fav { background: var(--accent); }                               /* favorita: filled vermilion square */
.lfn-mark--raw { border: 1px solid var(--ink-3); }                          /* sem curadoria: hollow square */
.lfn-mark--geo { width: 6px; height: 6px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--ink-2); }                                                 /* georreferenciada: pin */
.lfn-mark--noloc { border-radius: 50%; background: var(--warn); }           /* sem local */

/* ---------- Completeness micro-bar (5 core fields) ----------
   <span class="lfn-complete" aria-label="3 de 5 campos"><i class="on"></i>×3<i></i>×2</span> */
.lfn-complete { display: inline-flex; gap: 2px; vertical-align: middle; }
.lfn-complete i { width: 6px; height: 2px; background: var(--rule-strong); }
.lfn-complete i.on { background: var(--ink-2); }

/* ---------- Section head: LABEL ———————— 13 ---------- */
.lfn-rule { display: flex; align-items: center; gap: var(--s-3); min-height: 24px; }
.lfn-rule::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--rule); }
.lfn-rule > :first-child { order: 0; }
.lfn-rule > .lfn-rule-count, .lfn-rule > :last-child:not(:first-child) { order: 2; }
.lfn-rule, .lfn-rule > * { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-3); }
.lfn-hr { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- Ficha catalográfica (key/value record) ----------
   <dl class="lfn-meta"><div><dt>Local</dt><dd>Vice Beach</dd></div>…</dl>
   Empty values: <dd class="is-empty">—</dd> (never hide a field) */
.lfn-meta { display: grid; margin: 0; }
.lfn-meta > div { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-3); align-items: baseline;
  padding: 7px 0; border-bottom: var(--hair); }
.lfn-meta > div:first-child { border-top: var(--hair); }
.lfn-meta dt { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--ink-3); }
.lfn-meta dd { margin: 0; font-size: var(--fs-ui); color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.lfn-meta dd.is-mono, .lfn-meta dd .lfn-mono { font-family: var(--font-mono); font-size: var(--fs-mono);
  font-variant-numeric: tabular-nums slashed-zero; }
.lfn-meta dd.is-empty { color: var(--ink-3); }
.lfn-meta dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.lfn-meta dd a:hover { border-bottom-color: var(--accent); }
.lfn-meta--compact > div { grid-template-columns: 88px 1fr; padding: 5px 0; }

/* ---------- Extensão strip (collection extent) ----------
   <div class="lfn-extent"><div><b>13</b><span>Itens</span></div>…</div> */
.lfn-extent { display: flex; align-items: stretch; height: var(--h-strip); border-top: var(--hair); border-bottom: var(--hair); }
.lfn-extent > div { display: flex; align-items: baseline; gap: var(--s-2); padding: 0 var(--s-5); align-self: center;
  border-left: var(--hair); line-height: var(--h-strip); }
.lfn-extent > div:first-child { border-left: 0; padding-left: 0; }
.lfn-extent b { font-family: var(--font-ui); font-size: var(--fs-lead); font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; }
.lfn-extent span { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--ink-3); }

/* ---------- Buttons ---------- */
.lfn-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--h-control); padding: 0 var(--s-4); border: var(--hair-strong); border-radius: var(--radius);
  background: transparent; color: var(--ink); font: 500 var(--fs-ui)/1 var(--font-ui); white-space: nowrap;
  cursor: pointer; text-decoration: none; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.lfn-btn:hover { border-color: var(--ink-3); background: var(--surface-2); }
.lfn-btn--primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.lfn-btn--primary:hover { background: #fff; border-color: #fff; }
.lfn-btn--ghost { border-color: transparent; color: var(--ink-2); }
.lfn-btn--ghost:hover { color: var(--ink); background: var(--surface-2); border-color: transparent; }
.lfn-btn--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.lfn-btn--danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: var(--danger); }
.lfn-btn--sm { height: var(--h-control-sm); padding: 0 var(--s-3); font-size: 12px; }
.lfn-btn--block { width: 100%; }
.lfn-btn--icon { width: 40px; height: 40px; padding: 0; }
.lfn-btn:disabled, .lfn-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
/* mono text link: "VER NO MAPA →", "OUTRA IDEIA", "← SÉRIES" */
.lfn-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--ink-2); text-decoration: none; }
.lfn-link:hover { color: var(--ink); }

/* ---------- Chips (rare; prefer tabs/facets) ---------- */
.lfn-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--s-2);
  border: var(--hair-strong); border-radius: var(--radius); background: transparent; color: var(--ink-2);
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--tracking-label); cursor: pointer; white-space: nowrap; }
.lfn-chip:hover { color: var(--ink); border-color: var(--ink-3); }
.lfn-chip.is-active, .lfn-chip[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Stamp (carimbo, clean): SELECIONADA / SÉRIE 02 ---------- */
.lfn-stamp { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 1px solid var(--ink-3);
  border-radius: var(--radius); font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--ink-2); white-space: nowrap; }
.lfn-stamp--accent { border-color: var(--accent); color: var(--accent); }
/* Inverted plate label on images: PRANCHA 01 */
.lfn-plate { display: inline-block; padding: 3px 6px; border-radius: var(--radius); background: var(--paper); color: var(--on-ink);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; }

/* ---------- Index tabs (filters / nav) ----------
   <nav class="lfn-tabs"><button class="lfn-tab is-active">Todas <span class="lfn-tab-count">13</span></button></nav> */
.lfn-tabs { display: flex; align-items: stretch; gap: var(--s-5); border-bottom: var(--hair); }
.lfn-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: var(--h-toolbar); padding: 0;
  border: 0; background: none; color: var(--ink-2); font: 500 var(--fs-ui)/1 var(--font-ui); cursor: pointer; text-decoration: none; }
.lfn-tab:hover { color: var(--ink); }
.lfn-tab.is-active, .lfn-tab.active, .lfn-tab[aria-selected="true"], .lfn-tab[aria-current="page"] { color: var(--ink); }
.lfn-tab.is-active::after, .lfn-tab.active::after, .lfn-tab[aria-selected="true"]::after, .lfn-tab[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.lfn-tab-count { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Facets (finding-aid "refinar por") ----------
   <div class="lfn-facet"><div class="lfn-label">Série</div><button class="lfn-facet-row is-active"><span>Noite</span><span class="lfn-facet-count">8</span></button></div> */
.lfn-facet { display: grid; gap: 1px; }
.lfn-facet > .lfn-label { padding: 0 0 var(--s-2); }
.lfn-facet-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); height: 28px;
  padding: 0 var(--s-2); margin: 0 calc(var(--s-2) * -1); border: 0; border-radius: var(--radius); background: none;
  color: var(--ink-2); font: 400 var(--fs-ui)/1 var(--font-ui); text-align: left; cursor: pointer; }
.lfn-facet-row:hover { background: var(--surface-2); color: var(--ink); }
.lfn-facet-row.is-active, .lfn-facet-row.active { color: var(--accent); background: var(--accent-soft); }
.lfn-facet-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lfn-facet-row.is-active .lfn-facet-count, .lfn-facet-row.active .lfn-facet-count { color: var(--accent); }

/* ---------- Segmented control (Noite/Dia, Folha/Lista) ---------- */
.lfn-seg { display: inline-flex; border: var(--hair-strong); border-radius: var(--radius); overflow: hidden; }
.lfn-seg > button { height: var(--h-control-sm); padding: 0 var(--s-3); border: 0; border-left: var(--hair-strong);
  background: transparent; color: var(--ink-2); cursor: pointer; font-family: var(--font-mono); font-size: var(--fs-label);
  font-weight: 500; text-transform: uppercase; letter-spacing: var(--tracking-label); }
.lfn-seg > button:first-child { border-left: 0; }
.lfn-seg > button:hover { color: var(--ink); }
.lfn-seg > button.is-active, .lfn-seg > button.active, .lfn-seg > button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* ---------- Form fields ---------- */
.lfn-field { display: grid; gap: 6px; min-width: 0; }
.lfn-field > label, .lfn-field > .lfn-field-label { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-3); }
.lfn-input { width: 100%; height: var(--h-control); padding: 0 10px; border: var(--hair-strong); border-radius: var(--radius);
  background: var(--surface-2); color: var(--ink); font: 400 var(--fs-ui)/1.4 var(--font-ui); outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast); }
textarea.lfn-input { height: auto; min-height: 88px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.lfn-input::placeholder { color: var(--ink-3); }
.lfn-input:focus { border-color: var(--ink); box-shadow: 0 0 0 2px var(--accent-dim); }
.lfn-input--line { height: 32px; padding: 0 2px; border: 0; border-bottom: var(--hair-strong); border-radius: 0; background: transparent; }
.lfn-input--line:focus { box-shadow: none; border-bottom-color: var(--ink); }
.lfn-input--mono, .lfn-input--line::placeholder { font-family: var(--font-mono); font-size: var(--fs-mono); }

/* ---------- Status dot ---------- */
.lfn-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); flex: none; }
.lfn-dot--ok { background: var(--ok); } .lfn-dot--warn { background: var(--warn); } .lfn-dot--danger { background: var(--danger); }

/* ---------- Frame ruler (régua) ----------
   <div class="lfn-ruler"><div class="lfn-ruler-ticks"><i></i><i class="on"></i>…</div><span class="lfn-ruler-count">07 / 13</span></div> */
.lfn-ruler { display: flex; align-items: flex-end; gap: var(--s-3); height: 20px; }
.lfn-ruler-ticks { flex: 1; display: flex; align-items: flex-end; justify-content: space-between; height: 9px;
  border-bottom: 1px solid var(--rule-strong); }
.lfn-ruler-ticks i { width: 1px; height: 3px; background: var(--rule-strong); }
.lfn-ruler-ticks i.on { height: 8px; width: 2px; background: var(--accent); }
.lfn-ruler-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- Technical strip (tarja técnica) ---------- */
.lfn-tarja { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: 32px; padding: 0 var(--s-4);
  border-top: var(--hair); font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lfn-tarja > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- Breadcrumb (archival path) ---------- */
.lfn-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-family: var(--font-mono); font-size: var(--fs-label);
  font-weight: 500; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-3); white-space: nowrap; }
.lfn-crumbs > * + *::before { content: "/"; margin-right: 6px; color: var(--rule-strong); }
.lfn-crumbs > :last-child { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }

/* ---------- Photo well / tile caption strip ---------- */
.lfn-well { background: var(--well); }
.lfn-frame-cap { display: flex; align-items: center; gap: 6px; height: 20px; font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase;
  letter-spacing: 0.04em; transition: color var(--t-fast); }

/* ---------- Empty state ---------- */
.lfn-empty { display: grid; place-items: center; align-content: center; gap: var(--s-3); height: 100%; min-height: 240px; text-align: center; }
.lfn-empty-title { font-family: var(--font-display); font-style: italic; font-size: var(--fs-h3); color: var(--ink-2); }
.lfn-empty p { margin: 0; max-width: 44ch; font-size: var(--fs-ui); color: var(--ink-3); }

/* ---------- Toast ---------- */
.lfn-toast { display: flex; align-items: center; gap: var(--s-3); padding: 10px var(--s-4); background: var(--surface);
  border: var(--hair-strong); border-left: 2px solid var(--accent); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink); }
.lfn-toast--error { border-left-color: var(--danger); }
.lfn-toast--ok { border-left-color: var(--ok); }

/* ---------- Leaflet: cartographic index sheet ---------- */
.lfn-map .leaflet-container, .lfn-map.leaflet-container { background: var(--well); font-family: var(--font-ui); }
.lfn-map .leaflet-tile-pane, .lfn-map.leaflet-container .leaflet-tile-pane { filter: var(--map-filter-night); }
.lfn-map--day .leaflet-tile-pane, .lfn-map--day.leaflet-container .leaflet-tile-pane { filter: var(--map-filter-day); }
.lfn-map .leaflet-control-zoom, .lfn-map.leaflet-container .leaflet-control-zoom { border: 0 !important; box-shadow: none !important; }
.lfn-map .leaflet-control-zoom a { width: 32px !important; height: 32px !important; line-height: 30px !important;
  background: var(--surface) !important; color: var(--ink) !important; border: var(--hair-strong) !important; border-radius: 0 !important; }
.lfn-map .leaflet-control-zoom a + a { border-top: 0 !important; }
.lfn-map .leaflet-control-attribution { background: #0E0E0DCC !important; color: var(--ink-3) !important;
  font-family: var(--font-mono); font-size: 10px; }
.lfn-map .leaflet-control-attribution a { color: var(--ink-2) !important; }
/* simple vermilion point marker for pick maps: L.divIcon({className:'lfn-pin', iconSize:[14,14]}) */
.lfn-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink);
  box-shadow: 0 0 0 6px var(--accent-dim); }

/* ---------- Focus (keyboard only) ---------- */
.lfn-focus:focus-visible, .lfn-btn:focus-visible, .lfn-tab:focus-visible, .lfn-chip:focus-visible,
.lfn-facet-row:focus-visible, .lfn-seg > button:focus-visible, .lfn-link:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { :root { --t-fast: 0ms; --t: 0ms; } }
