/* ============================================================
   FAMILY TREE — Records Page Styles
   ============================================================ */

body { padding-top: 60px; background: var(--color-bg); }

/* ── Header ─────────────────────────────────────────────── */
.records-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: var(--color-primary-dark);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-4);
  z-index: var(--z-panel);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.records-logo { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--color-accent); }
.records-header a { color: rgba(255,255,255,.7); font-size: .875rem; text-decoration: none; transition: color .15s; }
.records-header a:hover { color: #fff; }
@media (pointer: coarse) {
  .records-header a { min-height: 44px; display: inline-flex; align-items: center; padding: var(--space-2) var(--space-3); }
}

/* ── Page container ─────────────────────────────────────── */
.records-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.records-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.records-page-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 0;
}
.records-family-filter {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}
.records-filter-label {
  font-size: 0.85rem;
  color: var(--color-text-faint);
  white-space: nowrap;
}
.records-family-select {
  font-size: 0.85rem;
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  cursor: pointer;
}

/* ── Hero summary strip ──────────────────────────────────── */
.records-hero {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.records-hero-stat {
  flex: 1;
  min-width: 110px;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  text-align: center;
}
.records-hero-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}
.records-hero-label {
  font-size: .7rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Sections ────────────────────────────────────────────── */
.records-section { margin-bottom: var(--space-10); }
.records-section-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 600;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--color-border);
}

/* ── Stat grid + cards ───────────────────────────────────── */
.records-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.records-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.records-stat-icon { font-size: 1.4rem; margin-bottom: var(--space-2); line-height: 1; }
.records-stat-value {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}
.records-stat-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.records-stat-person { font-size: .9rem; font-weight: 600; color: var(--color-text); margin-top: var(--space-1); }
.records-stat-meta   { font-size: .78rem; color: var(--color-text-muted); }
.records-stat-empty  { font-size: .82rem; color: var(--color-text-faint); font-style: italic; margin-top: var(--space-1); }

/* ── Chart card ──────────────────────────────────────────── */
.records-chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.records-chart-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.records-chart-container { width: 100%; min-height: 260px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.records-chart-empty {
  text-align: center;
  padding: var(--space-10) 0;
  color: var(--color-text-faint);
  font-style: italic;
  line-height: 1.6;
}
.chart-legend {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  margin-top: var(--space-4);
}
.chart-legend-item { display: flex; align-items: center; gap: var(--space-2); font-size: .8rem; color: var(--color-text-muted); }
.chart-legend-swatch { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.chart-low-confidence-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: .75rem;
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}
.chart-low-confidence-note .chart-legend-swatch { opacity: 0.35; background: #888; }

/* ── Tooltip (D3) ────────────────────────────────────────── */
.chart-tooltip {
  position: fixed;
  pointer-events: none;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: .8rem;
  line-height: 1.5;
  z-index: var(--z-toast);
  box-shadow: var(--shadow-md);
  display: none;
  max-width: 220px;
}

/* ── Gender breakdown ────────────────────────────────────── */
.records-gender-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}
.records-gender-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.records-gender-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.records-gender-label { font-size: .875rem; color: var(--color-text); min-width: 90px; }
.records-gender-bar-track { flex: 1; height: 8px; background: var(--color-border); border-radius: 999px; overflow: hidden; }
.records-gender-bar { height: 100%; border-radius: 999px; }
.records-gender-count { font-size: .875rem; font-weight: 600; color: var(--color-primary); min-width: 28px; text-align: right; }

/* ── Names grid ──────────────────────────────────────────── */
.records-names-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.records-names-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.records-names-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.records-name-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--color-border);
}
.records-name-item:last-child { border-bottom: none; }
.records-name-rank  { font-size: .72rem; color: var(--color-text-faint); min-width: 20px; }
.records-name-name  { flex: 1; font-weight: 600; color: var(--color-text); }
.records-name-count { font-size: .78rem; color: var(--color-text-muted); white-space: nowrap; }

/* ── Place / birthplace bars ─────────────────────────────── */
.records-place-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.records-place-item:last-child { border-bottom: none; }
.records-place-item span:first-child { flex-shrink: 0; min-width: 100px; font-size: .875rem; font-weight: 600; color: var(--color-text); }
.records-place-bar-track {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.records-place-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 999px;
  transition: width .4s ease;
}
.records-place-item span:last-child { flex-shrink: 0; font-size: .78rem; color: var(--color-text-muted); min-width: 24px; text-align: right; }

/* ── Milestones timeline ────────────────────────────────── */
.records-timeline {
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  border-left: 3px solid var(--color-border);
}
.records-timeline-item {
  position: relative;
  padding: var(--space-2) 0 var(--space-4) var(--space-4);
}
.records-timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-6) - 6px);
  top: var(--space-2);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-border);
}
.records-timeline-year {
  font-family: var(--font-serif);
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.records-timeline-text {
  font-size: .85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ── Name search ─────────────────────────────────────────── */
.records-search-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.records-search-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.records-search-result {
  margin-top: var(--space-3);
  font-size: .875rem;
  color: var(--color-text-muted);
  min-height: 1.5em;
}

/* ── Drill-down: interactive card cues ────────────────────── */
.records-stat-card[data-drill],
.records-place-item[data-drill],
.records-name-item[data-drill],
.records-gender-row[data-drill],
.records-hero-stat[data-drill],
.records-timeline-item[data-drill] {
  cursor: pointer;
  transition: box-shadow .15s, transform .15s, background-color .15s;
}
.records-stat-card[data-drill]::after {
  content: '\203A'; /* › */
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 1.1rem;
  color: var(--color-text-faint);
  line-height: 1;
}
.records-stat-card[data-drill] { position: relative; }
@media (hover: hover) {
  .records-stat-card[data-drill]:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  .records-place-item[data-drill]:hover,
  .records-name-item[data-drill]:hover,
  .records-gender-row[data-drill]:hover,
  .records-hero-stat[data-drill]:hover {
    background-color: rgba(42, 90, 140, .04);
  }
}
.records-stat-card[data-drill]:active,
.records-place-item[data-drill]:active,
.records-name-item[data-drill]:active,
.records-gender-row[data-drill]:active,
.records-hero-stat[data-drill]:active,
.records-timeline-item[data-drill]:active {
  background-color: rgba(42, 90, 140, .08);
}

/* Chart interactive hint */
.chart-tap-hint {
  text-align: center;
  font-size: .72rem;
  color: var(--color-text-faint);
  margin-top: var(--space-2);
  font-style: italic;
}

/* First-visit pulse hint */
.drill-hint-pulse {
  animation: drillPulse 1.5s ease-in-out infinite;
}
@keyframes drillPulse {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50%      { box-shadow: 0 0 0 4px rgba(42, 90, 140, .25), var(--shadow-sm); }
}
.drill-hint-tip {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary-dark);
  color: #fff;
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

/* ── Drill-down panel ────────────────────────────────────── */
.drill-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.drill-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}
.drill-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 75vh;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.drill-panel.visible {
  transform: translateY(0);
}

/* Drag handle (mobile) */
.drill-drag-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
  cursor: grab;
  flex-shrink: 0;
}
.drill-drag-pill {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
}

/* Header */
.drill-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 0 var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.drill-header-text { flex: 1; min-width: 0; }
.drill-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
}
.drill-subtitle {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin: 2px 0 0;
}
.drill-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.drill-close:hover { color: var(--color-text); }

/* Content area */
.drill-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4) var(--space-5) var(--space-6);
  transition: opacity .15s ease;
}
.drill-content-fade { opacity: 0; }

.drill-empty {
  text-align: center;
  padding: var(--space-8) 0;
  color: var(--color-text-faint);
  font-style: italic;
}

/* ── Drill-down table ────────────────────────────────────── */
.drill-table-header {
  display: none; /* show on desktop */
}
.drill-table-row {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.drill-table-row:last-child { border-bottom: none; }
.drill-row-link { cursor: pointer; }
.drill-row-link:hover { background: rgba(42, 90, 140, .04); }
.drill-table-td {
  font-size: .85rem;
  color: var(--color-text);
  padding: 1px 0;
}
/* Mobile: show data-label before each cell */
.drill-table-td::before {
  content: attr(data-label);
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-faint);
  margin-bottom: 1px;
}
.drill-table-td:first-child {
  font-weight: 600;
  color: var(--color-primary);
}

/* Filter bar */
.drill-filter-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.drill-filter-btn {
  padding: var(--space-1) var(--space-3);
  font-size: .78rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all .15s;
}
.drill-filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.drill-filter-btn:hover:not(.active) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Show more button */
.drill-show-more {
  display: block;
  width: 100%;
  padding: var(--space-3);
  margin-top: var(--space-3);
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: background .15s;
}
.drill-show-more:hover { background: rgba(42, 90, 140, .04); }

/* ── Drill-down chain (lineage) ──────────────────────────── */
.drill-chain {
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-primary);
}
.drill-chain-item {
  position: relative;
  padding: var(--space-2) 0 var(--space-4) var(--space-4);
}
.drill-chain-last { padding-bottom: 0; }
.drill-chain-dot {
  position: absolute;
  left: calc(-1 * var(--space-5) - 6px);
  top: var(--space-2);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-primary);
}
.drill-chain-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-text);
}
.drill-chain-sub {
  font-size: .78rem;
  color: var(--color-text-muted);
  margin-top: 1px;
}

/* ── Drill-down timeline ─────────────────────────────────── */
.drill-timeline {
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-border);
}
.drill-timeline-item {
  position: relative;
  padding: var(--space-2) 0 var(--space-4) var(--space-4);
  display: flex;
  gap: var(--space-3);
}
.drill-timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-5) - 6px);
  top: var(--space-3);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-border);
  flex-shrink: 0;
}
.drill-timeline-body { flex: 1; }
.drill-timeline-year {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: .85rem;
  color: var(--color-primary);
}
.drill-timeline-text {
  font-size: .85rem;
  color: var(--color-text);
}
.drill-timeline-sub {
  font-size: .78rem;
  color: var(--color-text-muted);
  margin-top: 1px;
}

/* ── Desktop: side panel ─────────────────────────────────── */
@media (min-width: 768px) {
  .drill-panel {
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    width: 420px;
    max-height: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    transform: translateX(100%);
  }
  .drill-panel.visible {
    transform: translateX(0);
  }
  .drill-drag-handle { display: none; }

  /* Table layout on desktop */
  .drill-table-header {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--space-1);
  }
  .drill-table-th {
    flex: 1;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-faint);
  }
  .drill-table-row {
    display: flex;
    gap: var(--space-2);
    align-items: baseline;
    padding: var(--space-2) 0;
  }
  .drill-table-td {
    flex: 1;
    padding: 0;
  }
  .drill-table-td::before { display: none; } /* hide mobile labels */
}

/* ── Loading state ────────────────────────────────────────── */
.records-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--color-text-faint);
}
.records-loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: recordsSpin .8s linear infinite;
  margin-bottom: var(--space-4);
}
@keyframes recordsSpin {
  to { transform: rotate(360deg); }
}

/* ── Keyboard focus ring on drill-down cards ────────────── */
.records-stat-card[data-drill]:focus-visible,
.records-hero-stat[data-drill]:focus-visible,
.records-place-item[data-drill]:focus-visible,
.records-name-item[data-drill]:focus-visible,
.records-gender-row[data-drill]:focus-visible,
.records-timeline-item[data-drill]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ── Back to top FAB ──────────────────────────────────────── */
.back-to-top-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
.back-to-top-fab.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top-fab:hover {
  transform: translateY(-2px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .records-stat-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .records-names-grid { grid-template-columns: 1fr; }
  .records-hero { gap: var(--space-3); }
  .records-hero-stat { min-width: 100px; }
}
@media (max-width: 480px) {
  .records-container { padding: var(--space-5) var(--space-3); }
  .records-stat-grid { grid-template-columns: 1fr 1fr; }
  .records-search-card input[type="text"] { max-width: 100%; }
  .records-place-item span:first-child { min-width: 70px; font-size: .8rem; }
}
@media (max-width: 640px) {
  .records-header { padding: 0 var(--space-3); gap: var(--space-2); flex-wrap: wrap; min-height: 60px; height: auto; }
  .records-logo [data-family-name] { display: none; }
}

/* ── PDF export button ─────────────────────────────────── */
#records-pdf-btn { white-space: nowrap; }
#records-pdf-btn:disabled { opacity: 0.6; cursor: wait; }

/* ── So What? panels ─────────────────────────────────── */
.sw-wrap { margin-top: var(--space-3); }

.sw-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: #fdf5ea; border: 1px solid #e8d8c0; border-radius: 8px;
  cursor: pointer; font-size: .8rem; color: #8a6040; user-select: none;
}
.sw-trigger:hover { background: #faecd8; }
.sw-trigger-label { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.sw-chevron { font-size: .7rem; transition: transform .2s; }
.sw-trigger[aria-expanded="true"] .sw-chevron { transform: rotate(180deg); }

.sw-panel { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.sw-panel.sw-open { max-height: 1200px; }
.sw-panel-inner {
  background: #fdf5ea; border: 1px solid #e8d8c0; border-top: none;
  border-radius: 0 0 8px 8px; padding: 14px 16px;
  font-size: .82rem; color: #3a2a1a; line-height: 1.55;
}
.sw-panel-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #a08060; margin-bottom: 12px;
}
.sw-insight { display: flex; gap: 10px; margin-bottom: 13px; }
.sw-stripe { width: 3px; border-radius: 2px; flex-shrink: 0; align-self: stretch; }
.sw-stripe-significant    { background: #28a745; }
.sw-stripe-not-significant { background: #e6a817; }
.sw-stripe-insufficient   { background: #adb5bd; }
.sw-q { font-weight: 600; color: #5a3e28; margin-bottom: 2px; }
.sw-a { color: #3a2a1a; }
.sw-sig { font-size: .68rem; font-weight: 600; margin-top: 3px; }
.sw-sig-significant    { color: #1a7a30; }
.sw-sig-not-significant { color: #9a6a00; }
.sw-sig-insufficient   { color: #6c757d; }
.sw-plain {
  margin-top: 4px; font-size: .75rem; color: #6b5240; font-style: italic;
}
.sw-footer {
  border-top: 1px solid #e8d8c0; margin-top: 10px; padding-top: 10px;
  font-size: .72rem; color: #8a6040;
}
