/* ============================================================
   Amsterdam Hotel Market Radar — Nuitée Cloud restyle
   Tokens locked to /colors_and_type.css from the design system.
   ============================================================ */

/* ---- Tokens (locked to design system) ---- */
:root {
  --brand-teal:        #00464F;
  --brand-teal-dark:   #025964;
  --brand-teal-tint:   rgba(0,70,79,0.08);
  --brand-teal-ring:   rgba(0,70,79,0.30);
  --brand-amber:       #E07A2F;
  --brand-amber-dark:  #C56424;
  --brand-amber-tint:  #FEF8F2;

  --bg:           #F8F8F8;
  --surface:      #FFFFFF;
  --surface-2:    #F2F2F2;
  --dark-band:    #080B12;
  --divider:      #DDDDDD;
  --border-soft:  #EEEEEE;

  --text:               #000000;
  --text-2:             #6D6C7F;
  --text-muted:         #858585;
  --text-on-dark:       rgba(255,255,255,0.85);
  --text-on-dark-muted: rgba(255,255,255,0.6);

  --success:      #2E8B76;
  --success-tint: #E6F4F0;
  --warning:      #E5A552;
  --warning-tint: #FFF8E1;
  --warning-text: #B58A2F;
  --error:        #D4524A;
  --error-tint:   #FCEAE8;
  --info:         #3E6FB8;
  --info-tint:    #E8F0F8;

  --font-headline: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-xl:  12px;
  --radius-2xl: 16px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px  rgba(13,12,11,0.04);
  --shadow-sm: 0 2px 8px  rgba(13,12,11,0.04);
  --shadow-md: 0 4px 16px rgba(13,12,11,0.06);
  --shadow-lg: 0 8px 32px rgba(13,12,11,0.08);
  --shadow-focus: 0 0 0 3px var(--brand-teal-ring);

  --motion-fast:   120ms;
  --motion-medium: 200ms;
  --motion-slow:   320ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
}
a { color: var(--brand-teal); text-decoration: none; transition: color var(--motion-fast) var(--ease); }
a:hover { color: var(--brand-teal-dark); text-decoration: underline; text-underline-offset: 2px; }
em { font-style: italic; color: inherit; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  color: var(--brand-teal);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

h1, h2, h3, h4 { font-family: var(--font-headline); color: var(--text); margin: 0; letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: 36px; line-height: 1.15; letter-spacing: -1px; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.3px; }
h4 { font-weight: 600; font-size: 16px; line-height: 1.35; }

::selection { background: var(--brand-teal); color: #fff; }

/* ============================================================
   Layout containers
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; }
.container--narrow { max-width: 900px; }

.section { padding: 80px 0; border-top: 1px solid var(--border-soft); }
.section h2 + .section-lede { margin-top: 16px; }
.section-lede {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 40px;
}
.section-lede strong { color: var(--brand-teal); font-weight: 600; }
.section-lede em { color: var(--text-2); }

/* ============================================================
   Top nav
   ============================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topnav-logo {
  display: inline-flex;
  align-items: center;
  height: 28px;
}
.topnav-logo img { height: 26px; width: auto; display: block; }
.topnav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.topnav-link:hover { color: var(--brand-teal); text-decoration: none; }
.topnav-link span { display: inline-block; margin-left: 4px; transition: transform var(--motion-fast) var(--ease); }
.topnav-link:hover span { transform: translateX(2px); }

/* ============================================================
   Page header
   ============================================================ */
.page-header {
  padding: 56px 0 48px;
  background: var(--bg);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--brand-teal-tint);
  color: var(--brand-teal);
  font: 500 12px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.page-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin: 0 0 16px;
}
.page-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0 0 28px;
}
.page-sub strong { color: var(--text); font-weight: 600; }

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font: 500 12px/1.4 var(--font-body);
  color: var(--text-2);
  white-space: nowrap;
}
.meta-pill-val {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.meta-pill-warn {
  background: var(--warning-tint);
  border-color: rgba(229,165,82,0.4);
  color: var(--warning-text);
  font-weight: 600;
}

/* ============================================================
   Section 1 — Executive diagnostic
   ============================================================ */
.section-exec { border-top: 1px solid var(--divider); padding-top: 64px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .kpi-grid { grid-template-columns: 1fr; } }

.kpi-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: transparent;
}
.kpi-card--warn::before    { width: 4px; background: var(--warning); }
.kpi-card--info::before    { width: 4px; background: var(--info); }
.kpi-card--success::before { width: 4px; background: var(--success); }

.kpi-label {
  display: block;
  font: 500 12px/1.3 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.kpi-label em { font-style: normal; font-weight: 600; color: var(--warning-text); }
.kpi-label-aside { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; margin-top: 2px; }
.kpi-card--warn .kpi-label    { color: var(--warning-text); }
.kpi-card--info .kpi-label    { color: var(--info); }
.kpi-card--success .kpi-label { color: var(--success); }

.kpi-value {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--text);
  margin-bottom: 8px;
}
.kpi-value.mono { font-family: var(--font-mono); font-size: 28px; letter-spacing: -0.5px; }
.kpi-card--success .kpi-value { color: var(--success); }

.kpi-sub {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Diagnostic split (always single column — tables + charts need full width to read) */
.diag-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.diag-panel { min-width: 0; }
.panel-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}
.panel-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.panel-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
}
.panel-bullets li strong { color: var(--text); font-weight: 600; }
.panel-bullets li em { color: var(--text-2); }

.diag-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.diag-panel--wide { margin-top: 0; }
.diag-panel--warn { border-left: 4px solid var(--warning); }
.diag-panel--accent { border-left: 4px solid var(--brand-teal); margin-top: 24px; }
.diag-panel h3 { margin-bottom: 12px; }
.panel-lede {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 20px;
  max-width: 100%;
}
.panel-lede strong { color: var(--text); font-weight: 600; }
.panel-lede em { color: var(--text-2); }

.chart-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
#combo-delta-chart { width: 100%; height: 380px; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  max-height: 480px;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}
.table-wrap--noscroll {
  max-height: none;
  overflow-y: visible;
}
.data-table--compact thead th { padding: 10px 12px; font-size: 11px; }
.data-table--compact tbody td { padding: 10px 12px; font-size: 13px; }

/* Notes section (merged methodology + caveats + anti-scrape) */
.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .notes-grid { grid-template-columns: 1fr; } }
.notes-block {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.notes-block h3 { margin-bottom: 16px; }
.notes-block--temporal {
  margin-top: 24px;
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #FFFFFF;
}
.notes-block--temporal h3 { color: #FFFFFF; }
.notes-block--temporal p { color: rgba(255,255,255,0.92); font-size: 15px; line-height: 1.6; }
.notes-block--temporal strong { color: #FFFFFF; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
}
.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--text-2);
  font: 500 12px/1.2 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  white-space: nowrap;
  z-index: 1;
}
.data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--text);
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background var(--motion-fast) var(--ease); }
.data-table tbody tr:hover { background: var(--bg); }
.data-table th.num, .data-table td.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}
.data-table td small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; font-family: var(--font-body); font-weight: 400; }
.data-table td small.note-warn { color: var(--warning-text); }
.data-table td small.note-room { color: var(--text-muted); }
.data-table td strong { font-weight: 600; }

/* Delta pills inside tables */
.delta-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font: 500 12px/1.4 var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.delta-cheaper { background: var(--success-tint); color: var(--success); }
.delta-pricier { background: var(--warning-tint); color: var(--warning-text); }
.delta-extreme { background: var(--error-tint); color: var(--error); }
.delta-flat    { background: var(--surface-2);   color: var(--text-2); }

/* Confidence cell */
.conf {
  display: inline-block;
  font: 500 13px/1.4 var(--font-mono);
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.conf--low  { background: var(--error-tint);   color: var(--error); }
.conf--mid  { background: var(--warning-tint); color: var(--warning-text); }
.conf--high { background: var(--success-tint); color: var(--success); }
.conf--na   { background: var(--surface-2); color: var(--text-muted); font-family: var(--font-body); font-style: italic; font-size: 12px; }

/* ============================================================
   Section 2 — Map
   ============================================================ */
.section-map { background: var(--bg); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font: 500 12px/1 var(--font-body);
  color: var(--text-2);
  white-space: nowrap;
}
.legend-chip--both  { background: var(--brand-teal-tint); border-color: rgba(0,70,79,0.15); color: var(--brand-teal); }
.legend-chip--error { background: var(--error-tint);      border-color: rgba(212,82,74,0.20); color: var(--error); }
.legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.dot-both    { background: #00464F; }
.dot-la      { background: #2E8B76; }
.dot-hb      { background: #E5A552; }
.dot-neither { background: #D4524A; }
.dot-low     { background: #858585; }

.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.filter-field--grow { flex: 1 1 200px; }
.filter-field--range { min-width: 200px; }
.filter-label {
  font: 500 12px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.filter-range-val { color: var(--text); font-size: 12px; }
.filter-input {
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--divider);
  background: var(--surface);
  font: 400 14px/1.4 var(--font-body);
  color: var(--text);
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.filter-input:hover { border-color: #C8C8C8; }
.filter-input:focus { outline: none; border-color: var(--brand-teal); box-shadow: var(--shadow-focus); }
.filter-field--range input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--divider);
  border-radius: 2px;
  outline: none;
  width: 100%;
}
.filter-field--range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--brand-teal);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.filter-field--range input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--brand-teal);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.filter-field--range input[type=range]:focus { box-shadow: var(--shadow-focus); }

.btn-reset {
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--divider);
  color: var(--text);
  font: 500 14px/1 var(--font-body);
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
  height: 38px;
}
.btn-reset:hover { background: var(--surface-2); border-color: #C8C8C8; }
.btn-reset:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* Map container */
#map-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0;
  gap: 0;
  height: 600px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: grid-template-columns var(--motion-medium) var(--ease);
}
#map-wrap.drawer-open { grid-template-columns: 1fr 420px; }
#map { width: 100%; height: 100%; background: var(--bg); }

#drawer {
  background: var(--surface);
  border-left: 1px solid var(--border-soft);
  overflow-y: auto;
  padding: 28px 24px 32px;
  position: relative;
  box-shadow: -8px 0 24px rgba(13,12,11,0.04);
}
#drawer.closed { display: none; }
#drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--motion-fast) var(--ease);
}
#drawer-close:hover { background: var(--surface-2); color: var(--text); }
#drawer-close:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

@media (max-width: 900px) {
  #map-wrap { grid-template-columns: 1fr; height: 500px; }
  #map-wrap.drawer-open { grid-template-columns: 1fr; grid-template-rows: 250px 1fr; height: auto; }
}

/* Drawer body content */
.drawer-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0 36px 6px 0;
  color: var(--text);
  line-height: 1.2;
}
.drawer-sub {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 16px;
}
.drawer-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font: 500 11px/1.3 var(--font-body);
  background: var(--surface-2);
  color: var(--text-2);
}
.badge.b-la   { background: var(--brand-teal-tint); color: var(--brand-teal); }
.badge.b-hb   { background: var(--warning-tint);    color: var(--warning-text); }
.badge.b-ov   { background: var(--success-tint);    color: var(--success); }
.badge.b-osm  { background: var(--info-tint);       color: var(--info); }
.badge.b-live { background: var(--success); color: #fff; padding: 2px 6px; font-size: 10px; margin-left: 4px; }
.badge.b-moat { background: var(--error-tint); color: var(--error); }

.drawer-section { margin-bottom: 20px; }
.drawer-section h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.drawer-section table { width: 100%; font-size: 13px; border-collapse: collapse; }
.drawer-section table td { padding: 5px 0; border: 0; vertical-align: top; }
.drawer-section table td:first-child { color: var(--text-2); width: 48%; padding-right: 12px; }
.drawer-section table td:last-child { color: var(--text); font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; word-break: break-word; }

/* ============================================================
   Leaflet customization
   ============================================================ */
.leaflet-control-attribution {
  background: rgba(255,255,255,0.9) !important;
  color: var(--text-2) !important;
  font: 400 11px/1.4 var(--font-body) !important;
}
.leaflet-control-attribution a { color: var(--brand-teal) !important; }

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}
.leaflet-popup-content {
  margin: 16px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.leaflet-popup-content strong { font-family: var(--font-headline); font-weight: 700; font-size: 14px; }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-close-button { color: var(--text-muted) !important; }

/* Marker pins */
.marker-pin {
  display: block;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.marker-both    { background: #00464F; }
.marker-la      { background: #2E8B76; }
.marker-hb      { background: #E5A552; }
.marker-neither { background: #D4524A; }
.marker-low     { background: #858585; opacity: 0.85; width: 10px; height: 10px; }

/* Cluster icon */
.marker-cluster {
  background: transparent !important;
}
.marker-cluster .marker-cluster-inner {
  background: var(--brand-teal);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0,70,79,0.30);
  border: 2px solid rgba(255,255,255,0.85);
}
.marker-cluster div { background: transparent; }

/* Override default cluster colored backgrounds */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
  transition: transform var(--motion-slow) var(--ease), opacity var(--motion-slow) var(--ease);
}

/* ============================================================
   Section 3 — Methodology
   ============================================================ */
.method-list {
  list-style: none;
  counter-reset: method-counter;
  padding: 0;
  margin: 0;
  max-width: 900px;
}
.method-list li {
  counter-increment: method-counter;
  position: relative;
  padding: 24px 0 24px 56px;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}
.method-list li:last-child { border-bottom: none; }
.method-list li::before {
  content: counter(method-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--brand-teal);
  line-height: 1;
}
.method-list li strong { color: var(--text); font-weight: 600; }
.method-list li em { color: var(--text-muted); }

/* ============================================================
   Section 4 — Critique
   ============================================================ */
.critique-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 1000px) { .critique-split { grid-template-columns: 1fr; } }

.critique-list, .backlog-list { margin: 0; padding-left: 22px; }
.critique-list li, .backlog-list li {
  padding: 8px 0;
  font: 400 14px/1.65 var(--font-body);
  color: var(--text-2);
}
.critique-list li::marker { color: var(--brand-teal); }
.critique-list li strong, .backlog-list li strong { color: var(--text); font-weight: 600; }
.critique-list li em, .backlog-list li em { color: var(--text-muted); font-style: italic; }
.critique-list li code, .backlog-list li code { white-space: nowrap; }

.backlog-list {
  counter-reset: backlog-counter;
  list-style: none;
  padding-left: 0;
}
.backlog-list li {
  counter-increment: backlog-counter;
  position: relative;
  padding: 10px 0 10px 36px;
}
.backlog-list li::before {
  content: counter(backlog-counter);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-teal);
  line-height: 1.4;
}

.critique-closing {
  border-left: 4px solid var(--brand-teal);
  padding: 4px 0 4px 20px;
  margin: 28px 0 0;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 760px;
}
.critique-closing em { font-weight: 500; color: var(--text); }

/* ============================================================
   Section 5 — Caveats
   ============================================================ */
.caveats-block { margin-bottom: 48px; }
.caveats-block:last-child { margin-bottom: 0; }
.caveats-block h3 { margin: 0 0 16px; }
.h3-aside { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--text-muted); letter-spacing: 0; }

.caveats-list {
  margin: 0;
  padding-left: 22px;
  list-style: disc;
}
.caveats-list li {
  padding: 8px 0;
  font: 400 14px/1.65 var(--font-body);
  color: var(--text-2);
}
.caveats-list li::marker { color: var(--text-muted); }
.caveats-list li strong { color: var(--text); font-weight: 600; }
.caveats-list a { color: var(--brand-teal); }
.caveats-list a:hover { color: var(--brand-teal-dark); }
.ext-arrow { display: inline-block; margin-left: 2px; color: var(--text-muted); transition: transform var(--motion-fast) var(--ease); }
.caveats-list a:hover .ext-arrow { transform: translate(2px, -2px); color: var(--brand-teal); }

/* ============================================================
   Footer
   ============================================================ */
.page-footer {
  background: var(--dark-band);
  color: var(--text-on-dark);
  padding: 56px 0 24px;
  margin-top: 0;
}
.page-footer-body { max-width: 800px; }
.page-footer p {
  font: 400 14px/1.6 var(--font-body);
  color: var(--text-on-dark);
  margin: 0 0 14px;
}
.page-footer p.small {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}
.page-footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-footer a:hover { color: #fff; }
.page-footer code {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
}
#footer-snapshot { color: var(--text-on-dark); }

.page-footer-strip {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-wordmark {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.5px;
  color: #fff;
}
.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   Responsive cleanup
   ============================================================ */
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .topnav-inner { padding: 0 20px; }
  h2 { font-size: 28px; letter-spacing: -0.6px; }
  .page-title { font-size: 36px; letter-spacing: -1.2px; }
  .diag-panel { padding: 20px; }
  .kpi-card { padding: 20px; }
  .kpi-value { font-size: 30px; }
  .kpi-value.mono { font-size: 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
