:root {
  --bg:        #0a0c0a;
  --bg2:       #0f120f;
  --surface:   #141a14;
  --surface2:  #1a221a;
  --border:    #222e22;
  --border2:   #2a382a;
  --green:     #6abf69;
  --green-dim: rgba(106,191,105,0.10);
  --green-glow:rgba(106,191,105,0.18);
  --gold:      #c9a84c;
  --gold-dim:  rgba(201,168,76,0.10);
  --red:       #e05555;
  --red-dim:   rgba(224,85,85,0.10);
  --blue:      #5b9bd5;
  --blue-dim:  rgba(91,155,213,0.10);
  --text:      #e8ede8;
  --text-2:    #8fa08f;
  --text-3:    #7a8c7a;
  --syne: 'Outfit', sans-serif;
  --dm:   'Outfit', sans-serif;
  --mono: 'DM Mono', monospace;
  --radius: 10px;
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--dm); min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--dm); }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,12,10,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px; display: flex; align-items: center; padding: 0 2rem; gap: 2rem;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Bebas Neue', var(--syne); font-size: 1.6rem; font-weight: 400; letter-spacing: 0.05em; color: var(--text); flex-shrink: 0; }
.logo-icon { width: 32px; height: 32px; border-radius: 0; background: none; box-shadow: none; display: block; object-fit: contain; flex-shrink: 0; }
.logo span { color: var(--green); }
.logo-tld { font-size: 0.7rem; color: var(--text-2); font-family: var(--mono); border: 1px solid var(--border); padding: 2px 7px; border-radius: 100px; letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; flex: 1; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--text-2); padding: 6px 12px; border-radius: var(--radius-sm); transition: all 0.15s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--green); background: var(--green-dim); }
.btn-primary { background: var(--green); border: none; color: #0a0c0a; font-size: 0.82rem; font-weight: 700; padding: 8px 18px; border-radius: var(--radius-sm); transition: all 0.15s; }
.btn-primary:hover { background: #7dd67c; transform: translateY(-1px); box-shadow: 0 4px 20px var(--green-glow); }

/* HERO */
.tracker-hero {
  padding: 4rem 2rem 2.5rem; text-align: center; max-width: 700px; margin: 0 auto; position: relative;
}
.tracker-hero::before {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  /* Constrained to the viewport so this decorative glow cannot
     cause horizontal overflow; it previously relied on
     body{overflow-x:hidden} to clip it. */
  width: min(600px, 100vw); height: 400px;
  background: radial-gradient(ellipse at center, rgba(106,191,105,0.06) 0%, rgba(201,168,76,0.03) 40%, transparent 70%);
  pointer-events: none;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-dim); border: 1px solid rgba(106,191,105,0.25);
  border-radius: 100px; padding: 5px 14px;
  font-size: 0.72rem; font-weight: 500; color: var(--green);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-pill::before { content: ''; width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(106,191,105,0.4)} 50%{opacity:0.6;box-shadow:0 0 0 5px rgba(106,191,105,0)} }
.tracker-hero h1 { font-family: var(--syne); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1rem; }
.tracker-hero h1 span { color: var(--green); }
.tracker-hero p { font-size: 0.95rem; color: var(--text-2); font-weight: 300; line-height: 1.6; max-width: 500px; margin: 0 auto; }

/* STAT CARDS ROW */
.stats-row {
  max-width: 1100px; margin: 2rem auto; padding: 0 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-color, var(--green));
}
.stat-card.eform-ind { --accent-color: var(--green); }
.stat-card.eform-trust { --accent-color: var(--gold); }
.stat-card.paper { --accent-color: var(--red); }
.stat-card.form1 { --accent-color: var(--blue); }

.stat-form-type { font-family: var(--mono); font-size: 0.62rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.stat-days { font-family: var(--syne); font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-days.green { color: var(--green); }
.stat-days.gold { color: var(--gold); }
.stat-days.red { color: var(--red); }
.stat-days.blue { color: var(--blue); }
.stat-label { font-size: 0.72rem; color: var(--text-2); }
.stat-trend {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--mono); font-size: 0.65rem; margin-top: 6px;
  padding: 2px 8px; border-radius: 100px;
}
.stat-trend.up { background: var(--red-dim); color: var(--red); }
.stat-trend.down { background: var(--green-dim); color: var(--green); }
.stat-trend.stable { background: var(--surface2); color: var(--text-2); }
.stat-samples { font-family: var(--mono); font-size: 0.6rem; color: var(--text-3); margin-top: 4px; }

/* MAIN LAYOUT */
.tracker-layout {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem 4rem;
  display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start;
}

/* CHART SECTION */
.chart-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem;
}
.chart-header {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.chart-title { font-family: var(--syne); font-size: 0.92rem; font-weight: 700; color: var(--text); }
.chart-sub { font-size: 0.72rem; color: var(--text-2); margin-top: 2px; }

.chart-tabs { display: flex; gap: 0.4rem; }
.chart-tab {
  background: none; border: 1px solid var(--border); color: var(--text-2);
  font-family: var(--mono); font-size: 0.65rem; padding: 5px 12px;
  border-radius: 100px; cursor: pointer; transition: all 0.12s;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.chart-tab:hover { border-color: var(--border2); color: var(--text); }
.chart-tab.active { background: var(--green-dim); border-color: rgba(106,191,105,0.4); color: var(--green); }

.chart-body { padding: 1.25rem; }
.chart-canvas-wrap { position: relative; height: 220px; width: 100%; }
canvas { width: 100% !important; height: 100% !important; }

/* RECENT APPROVALS TABLE */
.approvals-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.approvals-header {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between;
}
.approvals-title { font-family: var(--syne); font-size: 0.88rem; font-weight: 700; }
.approvals-count { font-family: var(--mono); font-size: 0.68rem; color: var(--text-2); }

.approvals-table { width: 100%; border-collapse: collapse; }
.approvals-table th {
  background: var(--bg2); font-family: var(--mono); font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2);
  padding: 0.5rem 1rem; text-align: left; border-bottom: 1px solid var(--border);
}
.approvals-table td {
  padding: 0.65rem 1rem; border-bottom: 1px solid rgba(34,46,34,0.5);
  font-size: 0.78rem; color: var(--text-2); font-family: var(--mono);
}
.approvals-table tr:last-child td { border-bottom: none; }
.approvals-table tr:hover td { background: var(--surface2); }
.type-badge {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.type-badge.efi { background: var(--green-dim); color: var(--green); border: 1px solid rgba(106,191,105,0.25); }
.type-badge.eft { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(201,168,76,0.25); }
.type-badge.pf4 { background: var(--red-dim); color: var(--red); border: 1px solid rgba(224,85,85,0.25); }
.type-badge.f1 { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(91,155,213,0.25); }
.wait-days-cell { color: var(--text); font-weight: 600; }
.state-cell { color: var(--text-2); }

/* SIDEBAR */
.tracker-sidebar { display: flex; flex-direction: column; gap: 1rem; }

.sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.sidebar-head {
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--border);
  font-family: var(--syne); font-size: 0.82rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.sidebar-head .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }

/* SUBMISSION FORM */
.form-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-family: var(--mono); font-size: 0.65rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.1em; }
.form-label span { color: var(--red); }
.form-select, .form-input {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  font-family: var(--dm); font-size: 0.85rem; padding: 9px 12px;
  border-radius: var(--radius-sm); outline: none; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none; -webkit-appearance: none;
}
.form-select:focus, .form-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(106,191,105,0.12); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ''; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--text-2); pointer-events: none;
}
.form-hint { font-size: 0.65rem; color: var(--text-2); font-family: var(--mono); line-height: 1.4; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.submit-btn {
  background: var(--green); border: none; color: #0a0c0a;
  font-family: var(--syne); font-size: 0.92rem; font-weight: 800;
  padding: 12px; border-radius: var(--radius-sm); width: 100%;
  cursor: pointer; transition: all 0.15s; letter-spacing: 0.01em;
}
.submit-btn:hover { background: #7dd67c; transform: translateY(-1px); box-shadow: 0 4px 20px var(--green-glow); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.privacy-note {
  font-family: var(--mono); font-size: 0.6rem; color: var(--text-3);
  text-align: center; line-height: 1.5; padding: 0 0.25rem;
}

/* Success state */
.submit-success {
  display: none; padding: 1.5rem; text-align: center;
}
.success-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-dim); border: 1px solid rgba(106,191,105,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin: 0 auto 0.75rem;
}
.success-title { font-family: var(--syne); font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.success-sub { font-size: 0.75rem; color: var(--text-2); line-height: 1.5; }

/* Tips card */

/* NFA info card */
.nfa-steps { padding: 0.5rem 0; }
.nfa-step {
  display: flex; gap: 1rem; padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.nfa-step:last-child { border-bottom: none; }
.nfa-num {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-dim); border: 1px solid rgba(106,191,105,0.3);
  color: var(--green); font-family: var(--mono); font-size: 0.62rem;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.nfa-text { font-size: 0.75rem; color: var(--text-2); line-height: 1.5; }
.nfa-text strong { color: var(--text); display: block; margin-bottom: 1px; }
/* Guidance folded in from the old "Speed Up Your Approval" card — reads as
   secondary detail under the step it applies to. */
.nfa-tip {
  display: block;
  margin-top: 5px;
  padding-left: 8px;
  border-left: 2px solid var(--border2);
  font-size: 0.72rem;
  color: var(--text-2);
  line-height: 1.55;
}
.nfa-tip + .nfa-tip { margin-top: 4px; }
.nfa-tip a { color: var(--green); }

/* Legend */
.legend { display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0.75rem 1.25rem; border-top: 1px solid var(--border); }
.legend-item { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.65rem; color: var(--text-2); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 2rem; text-align: center; font-family: var(--mono); font-size: 0.65rem; color: var(--text-3); }
footer a { color: var(--text-2); }
footer a:hover { color: var(--green); }
.footer-links { display: flex; gap: 2rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .tracker-layout { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  nav .nav-links { display: none; }
}
@media (max-width: 500px) {
  .stats-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Converted from inline style="" attributes for CSP style-src */
.legend-dot-green { background: var(--green); }
.legend-dot-gold { background: var(--gold); }
.legend-dot-red { background: var(--red); }
.legend-dot-blue { background: var(--blue); }
.td-loading { text-align: center; padding: 2rem; color: var(--text-2); font-family: var(--mono); font-size: 0.72rem; }
.form-body-note { font-size: 0.75rem; color: var(--text-2); line-height: 1.5; padding: 0.25rem 0; }
.text-muted { color: var(--text-3); }
.cta-card { background: linear-gradient(135deg,var(--surface) 0%,rgba(106,191,105,0.06) 100%); border: 1px solid rgba(106,191,105,0.2); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.cta-card-title { font-family: var(--syne); font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.cta-card-sub { font-size: 0.75rem; color: var(--text-2); margin-bottom: 1rem; line-height: 1.5; }
.cta-card-btn { background: var(--green); border: none; color: #0a0c0a; font-family: var(--syne); font-size: 0.82rem; font-weight: 700; padding: 10px 20px; border-radius: var(--radius-sm); width: 100%; cursor: pointer; transition: all 0.12s; }


/* ============================================================
   ACCESSIBILITY (WCAG 2.1 AA)
   ============================================================ */

/* 2.4.7 Focus Visible — the palette previously styled :focus on form
   inputs only, leaving buttons, links and the role="button" elements with
   no visible keyboard indicator at all. */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 3px;
}

/* 2.4.1 Bypass Blocks — lets keyboard/screen-reader users skip the nav. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--green);
  color: #0a0c0a;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 6px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* role="button" elements should look interactive */
[role="button"] { cursor: pointer; }

/* 2.3.3 / prefers-reduced-motion — honour the OS setting. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   MOBILE NAV
   The nav links were display:none below the breakpoint with no
   replacement, and .nav-right overflowed narrow viewports (clipped by
   body{overflow-x:hidden}, so the buttons were unreachable rather than
   merely off-screen).
   ============================================================ */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: sticky;
  top: 64px;
  z-index: 199;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}
.mobile-nav.open { max-height: 70vh; overflow-y: auto; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;          /* comfortable touch target */
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.mobile-nav-link:hover { background: var(--surface2); }
.mobile-nav-link.active { color: var(--green); background: var(--green-dim); }
.mobile-nav-action { color: var(--green); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  /* The desktop action buttons are represented inside the panel instead. */
  nav .nav-right { display: none; }
  nav { padding: 0 1rem; gap: 0.75rem; }
}


/* ============================================================
   SMALL PHONES (<=480px)
   The smallest breakpoint on most pages was 600-800px, so on a 375-430px
   handset two-column grids stayed two-column and content was cramped.
   ============================================================ */
@media (max-width: 480px) {
  nav { padding: 0 0.75rem; gap: 0.5rem; }
  .logo { font-size: 1.15rem; }
  .logo-tld { display: none; }
}

/* Comfortable touch targets on touch devices (WCAG 2.5.5 / 2.5.8).
   Buttons were ~30px tall from padding alone. Scoped to coarse pointers
   so the desktop layout is untouched. */
@media (pointer: coarse) {
  button, .btn-ghost, .btn-primary, .cat-tab, .filter-chip, .quick-chip,
  .feed-tab, .chart-tab, .save-btn, .danger-btn, .submit-btn, .placement-btn {
    min-height: 44px;
  }
  input, select, textarea, .form-input, .form-select, .field-select {
    min-height: 44px;
    font-size: 16px;   /* iOS zooms the page for anything under 16px */
  }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; padding-left: 1rem; padding-right: 1rem; }
  .tracker-layout { padding-left: 1rem; padding-right: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .approvals-table { font-size: 0.72rem; }
  .legend { gap: 0.5rem; }
}


/* Long unbreakable strings (product URLs, feed URLs, emails) must not push
   the layout wider than the viewport. Previously body{overflow-x:hidden}
   would have quietly clipped them; that mask has been removed now that the
   decorative glows are viewport-constrained. */
body { overflow-wrap: break-word; }
td, .card-product, .card-retailer, .search-item-detail,
.retailer-detail-meta, .deal-desc, .session-device { overflow-wrap: anywhere; }
table { max-width: 100%; }
img, canvas, svg { max-width: 100%; height: auto; }


/* ============================================================
   FOOTER
   Appended last so it overrides whatever this sheet defined earlier --
   every page used to carry its own footer, and they had drifted into
   five different layouts with four different disclaimers.
============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  text-align: left;
  font-family: var(--dm, var(--syne));
  font-size: 1rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-logo-size { font-size: 1.15rem; }
.footer-brand-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 220px;
}
.footer-col-title {
  font-family: var(--syne);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin: 0; padding: 0; }
.footer-links-list a { font-size: 0.78rem; color: var(--text-2); transition: color 0.12s; }
.footer-links-list a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-copy { font-size: 0.72rem; color: var(--text-3); font-family: var(--mono); flex-shrink: 0; }
.footer-disclaimer { font-size: 0.68rem; color: var(--text-3); max-width: 500px; line-height: 1.5; text-align: left; }
.footer-disclaimer strong { color: var(--text-2); }
.footer-disclaimer a { color: var(--text-2); text-decoration: underline; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  footer { padding: 2rem 1rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}


/* ============================================================
   CHART EMPTY STATE + SOURCE
============================================================ */
.chart-canvas-wrap { position: relative; }

/* `hidden` must win here. A display value on this selector would override
   the attribute and leave the message showing over a drawn chart. */
.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.6;
}
.chart-empty[hidden] { display: none; }

/* Where the published figures came from. A number nobody can trace back
   is one we should not be showing. */
.chart-source {
  font-size: 0.68rem;
  color: var(--text-3);
  margin-top: 0.6rem;
  line-height: 1.5;
}
.chart-source a { color: var(--text-2); text-decoration: underline; }
.chart-source a:hover { color: var(--green); }


/* The non-affiliation notice. Sits in the hero, above every figure on the
   page, so it cannot be scrolled past on the way to a number. */
.unofficial-note {
  max-width: 620px;
  margin: 1.1rem auto 0;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  text-align: left;
}
.unofficial-note strong { color: var(--gold); }
