/* ============================================================
   Palmetto Harvest Planner — styles.css
   Design tokens: primary #F56600 · ink #1c1c1c · bg #fff/#f7f7f5 · tint #FFF3E8
   Professional ag decision-tool aesthetic (Clemson Extension / CU-CAT).
   ============================================================ */

:root {
  /* Brand */
  --primary: #F56600;
  --primary-600: #d95a00;
  --primary-700: #b84c00;   /* AA on white with white text (5.16:1) */
  --primary-tint: #FFF3E8;
  --primary-tint-2: #ffe6d1;

  /* Ink — ink-3 darkened to pass WCAG AA on white & soft (5.0:1) */
  --ink: #1c1c1c;
  --ink-2: #4a4a4a;
  --ink-3: #6f6f6f;
  --ink-4: #8a8a8a;          /* decorative / non-essential only */

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --line: #e8e6e1;
  --line-2: #f0eeea;

  /* Status — text colors pass AA on their tinted backgrounds */
  --green: #176a3c;  --green-bg: #e7f6ee;
  --amber: #9a6a00;  --amber-bg: #fdf3d8;
  --red: #b3261e;    --red-bg: #fdecec;
  --blue: #2f6fed;   --blue-bg: #eef4ff;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(28,28,28,.06), 0 1px 3px rgba(28,28,28,.04);
  --shadow-md: 0 4px 14px rgba(28,28,28,.08), 0 2px 6px rgba(28,28,28,.05);
  --shadow-lg: 0 12px 40px rgba(28,28,28,.16);
  --radius: 14px;
  --radius-sm: 9px;

  /* Rhythm */
  --header-h: 66px;
  --statbar-h: 58px;
  --footer-h: 34px;
  --focus-ring: 0 0 0 3px rgba(245,102,0,.32);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
/* The `hidden` attribute must always win over author display rules
   (e.g. .error-box { display:flex }) or hidden overlays render on top. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
}
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--primary-tint-2); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 3000;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 8px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
select:focus-visible, .range:focus-visible, .date-input:focus-visible {
  outline: none; box-shadow: var(--focus-ring);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Header ---------- */
.app-header {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 20px;
  background: linear-gradient(180deg, #fff, #fbfaf8);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 1200;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  filter: drop-shadow(0 4px 10px rgba(245,102,0,.35));
}
.brand-mark svg { border-radius: 10px; }
.brand-text h1 {
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.05;
}
.brand-text .tagline {
  font-size: 12px; color: var(--ink-3); font-weight: 500; margin-top: 2px;
  letter-spacing: .01em;
}
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 13px; font-size: 13px; font-weight: 600;
  background: transparent; color: var(--ink);
  transition: background .16s ease, border-color .16s ease, transform .08s ease, box-shadow .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: 0 0 auto; }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink-2); }
.btn-ghost:hover { background: var(--primary-tint); border-color: var(--primary-tint-2); color: var(--primary-700); }
.btn-primary { background: var(--primary-700); color: #fff; box-shadow: 0 3px 10px rgba(184,76,0,.30); }
.btn-primary:hover { background: #a84300; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Stats bar ---------- */
.stat-bar {
  height: var(--statbar-h);
  display: flex; align-items: stretch; gap: 0;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; overflow-y: hidden;
  position: relative; z-index: 1100;
  scrollbar-width: thin;
}
.stat {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 22px 0 0; margin-right: 22px;
  border-right: 1px solid var(--line-2);
  min-width: max-content;
}
.stat:last-child { border-right: none; margin-right: 0; }
.stat-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-3); margin-bottom: 4px;
}
.stat-value {
  font-family: var(--mono); font-size: 19px; font-weight: 700;
  color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-crop .stat-value { font-family: var(--font); font-weight: 700; color: var(--primary-700); }
.stat-range .stat-value { font-family: var(--mono); font-size: 14px; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr 340px;
  height: calc(100vh - var(--header-h) - var(--statbar-h) - var(--footer-h));
  min-height: 0;
}
.panel {
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
}
.panel-controls { border-right: 1px solid var(--line); }
.panel-inspector { border-left: 1px solid var(--line); }

.panel-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
}
.panel-section:last-child { border-bottom: none; }
.panel-foot { display: flex; flex-direction: column; gap: 10px; }

.field-label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-2); margin-bottom: 9px;
}
.hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.hint code { font-family: var(--mono); font-size: 11px; background: var(--bg-soft); padding: 1px 5px; border-radius: 5px; color: var(--ink-2); }

/* ---------- Selects ---------- */
.select {
  width: 100%; appearance: none; -webkit-appearance: none;
  min-height: 40px;
  padding: 10px 34px 10px 12px; font-size: 14px; font-weight: 600;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f6f6f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.select:hover { border-color: var(--primary-tint-2); }
.select:focus { border-color: var(--primary); }

.crop-meta {
  margin-top: 9px; font-size: 12px; color: var(--ink-2);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.crop-meta b { font-family: var(--mono); font-weight: 700; color: var(--ink); }

/* ---------- Range sliders (>=44px touch target via padding) ---------- */
.range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; border-radius: 999px;
  background: transparent; outline: none; margin: 0;
  cursor: pointer;
  /* track drawn on the pseudo-element for webkit; firefox uses -moz-range-track */
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px; background: var(--line);
}
.range::-moz-range-track {
  height: 6px; border-radius: 999px; background: var(--line);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%; margin-top: -7px;
  background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 1px 4px rgba(245,102,0,.4);
  transition: transform .1s ease;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 1px 4px rgba(245,102,0,.4); cursor: pointer;
}
.range-accent::-webkit-slider-thumb { border-color: var(--blue); box-shadow: 0 1px 4px rgba(47,111,237,.4); }
.range-accent::-moz-range-thumb { border-color: var(--blue); }
.range-labels { display: flex; justify-content: space-between; margin-top: -6px; margin-bottom: 6px; }
.range-value { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--primary-700); }
.compare-body .range-value { color: var(--blue); }

.date-input {
  width: 100%; min-height: 40px; padding: 8px 10px; font-size: 13px; font-family: var(--mono);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink-2); background: #fff; margin-top: 4px;
}
.date-input:focus { border-color: var(--primary); }

/* ---------- Segmented control ---------- */
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--bg-soft); padding: 4px; border-radius: var(--radius-sm);
}
.seg-btn {
  border: none; background: transparent; min-height: 40px; padding: 9px 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  border-radius: 7px; transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active { background: #fff; color: var(--primary-700); box-shadow: var(--shadow-sm); }

/* ---------- Legend ---------- */
.legend { display: flex; flex-direction: column; gap: 5px; }
.legend-title {
  font-size: 11px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px;
  letter-spacing: .02em;
}
.legend-row { display: flex; align-items: center; gap: 9px; }
.legend-swatch {
  width: 22px; height: 14px; border-radius: 4px; flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,.10);
}
.legend-range {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.legend-grad {
  height: 12px; border-radius: 999px; margin: 4px 0 2px;
  border: 1px solid rgba(0,0,0,.06);
}
.legend-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ---------- Compare ---------- */
.compare-toggle {
  display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); cursor: pointer; user-select: none;
}
.compare-toggle input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.compare-body { margin-top: 12px; }

/* ---------- Map ---------- */
.map-wrap { position: relative; min-width: 0; background: #dfe7ee; }
.map { position: absolute; inset: 0; background: #dfe7ee; }
.map-overlay { position: absolute; right: 14px; top: 14px; z-index: 900; display: flex; flex-direction: column; gap: 8px; }
.map-fab {
  width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: background .15s ease, color .15s ease, transform .1s ease;
}
.map-fab:hover { background: var(--primary-tint); color: var(--primary-700); }
.map-fab:active { transform: scale(.94); }

/* Floating map legend — sits over the map (bottom-left) so the value scale is
   always in view with the choropleth, not buried in the scrollable panel. */
.map-legend {
  position: absolute; left: 14px; bottom: 26px; z-index: 800;
  background: rgba(255,255,255,.95); backdrop-filter: blur(5px);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 10px 13px; max-width: 216px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.map-legend:hover { box-shadow: var(--shadow-lg); }
.map-legend:has(.legend:empty) { display: none; }
.map-legend .legend { gap: 6px; }
.map-legend .legend-title {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-2); margin-bottom: 6px;
}
.map-legend .legend-row { gap: 8px; }
.map-legend .legend-swatch { width: 20px; height: 13px; }
.map-legend .legend-range { font-size: 11.5px; }
.map-wrap.dark .map-legend {
  background: rgba(15,22,28,.88); border-color: rgba(255,255,255,.18);
}
.map-wrap.dark .map-legend .legend-title { color: #e8e8e8; }
.map-wrap.dark .map-legend .legend-range { color: #cfcfcf; }

.leaflet-container { font-family: var(--font); }
.leaflet-tile-pane { transition: filter .3s ease; }
.map-wrap.dark .leaflet-tile-pane { filter: brightness(.55) invert(1) contrast(.92) hue-rotate(185deg) saturate(.72) brightness(.92); }
.map-wrap.dark .leaflet-container { background: #0b1116; }
.map-wrap.dark .leaflet-control-attribution { background: rgba(255,255,255,.85); color: #333; }

/* County hover / selected — target the real Leaflet interactive paths.
   app.js sets stroke via setStyle() (inline), which wins over these for the
   selected county; these give the resting + hover states and the transition. */
.leaflet-overlay-pane path {
  transition: fill .2s ease, stroke .18s ease, stroke-width .18s ease;
  cursor: pointer;
}
.leaflet-overlay-pane path:hover {
  stroke: #1c1c1c; stroke-width: 2.4;
}
/* Subtle state outline (drawn by app.js from data/sc_state_outline.json) */
.sc-state-outline {
  fill: none; stroke: #1c1c1c; stroke-width: 1.6;
  stroke-linejoin: round; pointer-events: none;
}
.map-wrap.dark .sc-state-outline { stroke: rgba(255,255,255,.7); }

/* Leaflet tooltip (county hover) */
.leaflet-popup-content-wrapper, .leaflet-tooltip {
  border-radius: 10px; box-shadow: var(--shadow-md);
}
.leaflet-tooltip { border: 1px solid var(--line); }
.county-tip { font-family: var(--font); padding: 2px 1px; }
.county-tip .ct-name { font-weight: 700; font-size: 13px; color: var(--ink); }
.county-tip .ct-val { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-top: 3px; font-variant-numeric: tabular-nums; }
.county-tip .ct-val b { color: var(--primary-700); }
.county-tip .ct-date { font-family: var(--font); font-size: 11px; color: var(--ink-3); margin-top: 3px; }

/* ---------- Loading / error / noscript ---------- */
.loading {
  position: absolute; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(247,247,245,.92); backdrop-filter: blur(2px);
  transition: opacity .4s ease; font-size: 14px; color: var(--ink-2); font-weight: 500;
  text-align: center; padding: 20px;
}
.loading.is-hidden { opacity: 0; pointer-events: none; }
.loading-sub { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--primary-tint-2); border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-box {
  position: absolute; inset: 0; z-index: 1001;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #fff; padding: 30px; text-align: center;
}
.error-box h2 { font-size: 18px; color: var(--ink); }
.error-box p { font-size: 13px; color: var(--ink-2); max-width: 440px; line-height: 1.6; }
.error-box code { font-family: var(--mono); background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; }
.noscript-box {
  position: fixed; inset: 0; z-index: 4000; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 30px; text-align: center;
}
.noscript-box h2 { font-size: 20px; }
.noscript-box p { font-size: 14px; color: var(--ink-2); max-width: 420px; }

/* ---------- Inspector ---------- */
.inspector-head {
  display: flex; justify-content: flex-end; gap: 6px;
  padding: 10px 12px 0; position: sticky; top: 0; background: #fff; z-index: 5;
}
.inspector-close, .inspector-pin {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-3); display: grid; place-items: center;
  transition: background .15s ease, color .15s ease;
}
.inspector-close:hover { background: var(--bg-soft); color: var(--ink); }
.inspector-pin.is-pinned { background: var(--primary-tint); border-color: var(--primary-tint-2); color: var(--primary-700); }
.inspector-body { padding: 6px 18px 22px; }

.insp-county { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.insp-fips { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.insp-big {
  display: flex; align-items: baseline; gap: 8px;
  padding: 16px 0 6px; margin: 12px 0;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.insp-big .num { font-family: var(--mono); font-size: 40px; font-weight: 700; color: var(--primary-700); line-height: 1; font-variant-numeric: tabular-nums; }
.insp-big .unit { font-size: 13px; font-weight: 600; color: var(--ink-3); }

.insp-pct-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; gap: 10px; }
.insp-pct { font-family: var(--mono); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.on { background: var(--green-bg); color: var(--green); }
.chip.ahead { background: var(--primary-tint); color: var(--primary-700); }
.chip.behind { background: var(--red-bg); color: var(--red); }

.insp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.insp-cell { background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 12px; }
.insp-cell .k { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 5px; }
.insp-cell .v { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.insp-cell .v.pos { color: var(--green); }
.insp-cell .v.neg { color: var(--red); }

.insp-block-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); margin: 18px 0 8px; }
.insp-chart { width: 100%; display: block; }
.insp-chart-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }
.insp-note { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.insp-note b { color: var(--ink); }

/* ---------- Footer ---------- */
.app-footer {
  height: var(--footer-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px;
  background: #fff; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3);
  position: relative; z-index: 1100;
}
.app-footer .footer-dot { color: var(--line); }
.app-footer .footer-note { color: var(--ink-4); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 270px 1fr; }
  .panel-inspector {
    position: fixed; top: calc(var(--header-h) + var(--statbar-h)); right: 0;
    bottom: var(--footer-h); width: 340px; max-width: 88vw; z-index: 1500;
    box-shadow: var(--shadow-lg); transform: translateX(105%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
  }
  .panel-inspector.is-open { transform: translateX(0); }
}
@media (max-width: 720px) {
  .app-header { padding: 0 14px; }
  .brand-text h1 { font-size: 16px; }
  .brand-text .tagline { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .btn span { display: none; }
  .btn { padding: 9px 10px; }
  .layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .panel-controls {
    max-height: 42vh; border-right: none; border-bottom: 1px solid var(--line);
  }
  .stat-bar { gap: 0; }
  .stat { padding-right: 14px; margin-right: 14px; }
  .stat-value { font-size: 16px; }
  .panel-inspector { width: 100%; max-width: 100vw; }
  .app-footer { font-size: 10.5px; padding: 0 14px; }
}
@media (max-width: 480px) {
  .stat-bar { padding: 0 12px; }
  .stat { padding-right: 12px; margin-right: 12px; }
  .stat-value { font-size: 15px; }
  .stat-label { font-size: 10px; }
}

/* ============================================================
   Print report
   ============================================================ */
.print-report { display: none; }
@media print {
  @page { margin: 14mm; }
  html, body { height: auto; overflow: visible; }
  body { overflow: visible; background: #fff; }
  /* Preserve brand colors (orange rules, zebra rows) in the PDF */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .app-header, .stat-bar, .layout, .app-footer, .skip-link,
  .leaflet-control-container, .map-overlay, .map-legend { display: none !important; }
  .print-report { display: block; padding: 0; color: #111; }
  .print-report h1 { font-size: 24px; margin-bottom: 4px; }
  .print-sub { font-size: 12px; color: #555; margin-bottom: 14px; }
  .print-map {
    width: 100%; max-width: 620px; margin: 0 auto 18px;
    border: 1px solid #ccc; border-radius: 8px; overflow: hidden;
    min-height: 340px; display: flex; align-items: center; justify-content: center;
    background: #f7f7f5;
  }
  .print-map img { width: 100%; height: auto; display: block; }
  .print-report h2 { font-size: 15px; margin: 16px 0 8px; border-bottom: 2px solid var(--primary); padding-bottom: 4px; }
  .print-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .print-table th, .print-table td { border: 1px solid #ddd; padding: 6px 9px; text-align: left; }
  .print-table th { background: #f7f7f5; font-weight: 700; }
  .print-table td.num { font-family: var(--mono); text-align: right; }
  .print-method { font-size: 11.5px; color: #444; line-height: 1.6; }
  .print-foot { font-size: 10px; color: #888; margin-top: 16px; border-top: 1px solid #eee; padding-top: 8px; }
}
