@font-face {
  font-family: Inter;
  src: url('/assets/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #0d1217;
  --surface: #1b232d;
  --ink: #dfe5ec;
  --secondary: #becbda;
  --muted: #9eb0c7;
  --line: #212d3b;
  --green: #80e038;
  --up: #32ca5b;
  --red: #ff3a33;
  --amber: #e9be66;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
svg { flex-shrink: 0; }
.container { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.page-title { overflow-wrap: anywhere; margin: 0; font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -.025em; }
.tone--up { color: var(--up); }
.tone--down { color: var(--red); }
.tone--squeeze { color: var(--amber); }
.tone--neutral { color: var(--muted); }

/* The brand and two primary destinations share one compact header. */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 63px; display: flex; align-items: center; gap: 40px; }
.brand-heading { margin: 0; font: inherit; letter-spacing: inherit; flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; font-size: 23px; font-weight: 750; letter-spacing: -.7px; }
.brand:hover { color: var(--ink); }
.brand-wordmark { display: inline-flex; align-items: baseline; }
.brand-light { font-weight: 600; }
.brand-dot { color: var(--green); }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--paper); background: var(--green); }
.brand-mark svg { width: 27px; height: 27px; }
.header-inner nav { display: flex; align-self: stretch; align-items: stretch; gap: 28px; font-weight: 500; }
.header-inner nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; padding-top: 2px; color: var(--secondary); }
.header-inner nav a:hover, .header-inner nav a[aria-current='page'] { color: var(--green); }
.header-inner nav a[aria-current='page'] { border-bottom-color: var(--green); }

/* Controls lead directly into the feed, without an additional panel. */
.market-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 12px; }
.market-heading { min-width: 0; }
.pair-context { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.market-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.checked-at { margin: 0; color: var(--muted); font-size: 12px; line-height: 18px; }
.checked-at time { margin-left: 5px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.refresh { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--secondary); font-size: 13px; font-weight: 500; }
.refresh svg { width: 16px; height: 16px; }
.refresh:hover { color: var(--ink); border-color: var(--muted); }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.filters a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 5px; color: var(--secondary); font-size: 13px; font-weight: 500; line-height: 20px; overflow-wrap: anywhere; }
.filters a:hover { background: var(--surface); color: var(--ink); }
.filters a[aria-current='page'] { color: var(--green); background: #182a20; border-color: #28432d; }
.feed-order { margin: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }

/* Date groups and fine rules organize the data; rows are not controls. */
.table-wrap { width: 100%; }
.alerts-table { border-collapse: collapse; table-layout: fixed; width: 100%; }
.alerts-table thead th { padding: 9px 16px; border-block: 1px solid var(--line); color: var(--muted); text-align: left; font-size: 12px; line-height: 17px; font-weight: 500; }
.alerts-table thead th:first-child { width: 28%; padding-left: 0; }
.alerts-table thead th:nth-child(2) { width: 32%; }
.alerts-table thead th:nth-child(3) { width: 24%; text-align: right; }
.alerts-table thead th:last-child { width: 16%; padding-right: 0; text-align: right; }
.alerts-table.coin-table thead th:first-child { width: 48%; }
.alerts-table.coin-table thead th:nth-child(2) { width: 32%; text-align: right; }
.alerts-table.coin-table thead th:last-child { width: 20%; }
.date-row th { padding: 5px 0; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; font-size: 12px; line-height: 17px; font-weight: 500; }
.date-row th span { margin-left: 8px; font-weight: 400; }
.alert-row td { padding: 8px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.alert-row td:first-child { padding-left: 0; }
.alert-row td:last-child { padding-right: 0; }
.coin-link { display: inline-flex; flex-direction: column; max-width: 100%; padding-block: 2px; vertical-align: middle; overflow-wrap: anywhere; }
.coin-symbol { font-size: 14px; line-height: 21px; font-weight: 600; }
.coin-quote { margin-left: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.coin-name { color: var(--muted); font-size: 12px; line-height: 18px; }
.alert-label { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; gap: 8px; vertical-align: middle; }
.alert-mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; }
.alert-icon { display: block; width: 20px; height: 20px; }
.alert-name { min-width: 0; color: var(--ink); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.info-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; margin-left: -4px; color: var(--muted); vertical-align: middle; }
.info-link svg { display: block; width: 15px; height: 15px; }
.info-link:hover { color: var(--green); }
.price-cell, .time-cell { text-align: right; }
.price, .time-cell time { font-size: 14px; line-height: 21px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.time-cell time { color: var(--secondary); }
.mobile-label { display: none; }
.snapshot-summary { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 20px; }
.summary-values { color: var(--secondary); }
.snapshot-summary .summary-values span { font-variant-numeric: tabular-nums; }
.notice { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #554628; border-radius: 6px; background: #2b2821; color: #f0d399; font-size: 13px; line-height: 21px; }
.notice time { font-variant-numeric: tabular-nums; }
.empty-state { padding: 40px 20px; border-block: 1px solid var(--line); text-align: center; }
.empty-state h2 { margin: 0 0 8px; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }
.empty-state p { max-width: 440px; margin: 0 auto; color: var(--muted); }
.empty-state a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--green); }
.feed-explainer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; margin: 24px 0 30px; color: var(--muted); font-size: 13px; line-height: 22px; }
.feed-explainer p { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--green); font-size: 13px; font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Supporting content follows the feed without changing the compact market view. */
.market-education { padding-bottom: 12px; }
.market-education-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.market-education-section h2 { margin: 0; max-width: 330px; font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.market-education-copy { max-width: 760px; min-width: 0; color: var(--secondary); font-size: 14px; line-height: 25px; overflow-wrap: anywhere; }
.market-education-copy p { margin: 0 0 12px; }
.market-education-copy p:last-child { margin-bottom: 0; }
.market-education-copy a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* The reference is an editorial list of definitions and schematic patterns. */
.guide-header { padding: 28px 0 20px; }
.guide-intro { max-width: 720px; margin: 9px 0 0; color: var(--secondary); font-size: 15px; line-height: 24px; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 8px 0; border-block: 1px solid var(--line); }
.guide-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--secondary); font-size: 13px; font-weight: 500; }
.guide-nav a:hover { color: var(--green); }
.diagram-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 20px; }
.reference-type { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 48px; padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.reference-copy { max-width: 790px; min-width: 0; }
.reference-title { display: flex; align-items: center; gap: 10px; }
.reference-title h2 { margin: 0; color: var(--ink); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }
.reference-title > svg { width: 20px; height: 20px; }
.definition { margin: 10px 0 0; color: var(--secondary); font-size: 15px; line-height: 24px; }
.interpretation { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 22px; }
.reference-diagram { width: 100%; min-width: 0; margin: 0; }
.alert-diagram { display: block; width: 100%; height: auto; }
.reference-diagram figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 18px; text-align: right; }
.guide-details, .guide-reading { padding: 28px 0; scroll-margin-top: 24px; }
.guide-details h2, .guide-reading h2 { margin: 0 0 18px; font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; }
.details-list { margin: 0; }
.details-list > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.details-list > div:first-child { border-top: 1px solid var(--line); }
.details-list dt { font-weight: 500; }
.details-list dd { margin: 0; color: var(--secondary); line-height: 23px; }
.guide-reading { padding-top: 0; }
.guide-reading p { max-width: 900px; margin: 10px 0; color: var(--secondary); font-size: 14px; line-height: 24px; }
.guide-reading h3 { margin: 22px 0 8px; font-size: 16px; line-height: 24px; font-weight: 600; }
.guide-reading a, .details-list a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; scroll-margin-top: 24px; }

.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding-block: 18px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 20px; }
.site-footer p { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand { color: var(--secondary); font-weight: 600; }
.footer-divider { margin-inline: 9px; color: var(--muted); }
.not-found { padding: 72px 0 100px; }
.not-found h1 { margin: 0; font-size: 28px; line-height: 36px; font-weight: 600; }
.not-found p { max-width: 550px; margin: 14px 0; color: var(--muted); }
.not-found a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 20px; border-radius: 4px; background: var(--green); color: var(--paper); font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .header-inner { gap: 32px; }
  .market-actions { gap: 12px; }
  .checked-at time { display: block; margin-left: 0; }
  .alerts-table thead th:first-child { width: 26%; }
  .alerts-table thead th:nth-child(2) { width: 35%; }
  .alerts-table thead th:nth-child(3) { width: 24%; }
  .alerts-table thead th:last-child { width: 15%; }
  .alerts-table thead th, .alert-row td { padding-inline: 10px; }
  .reference-type { grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; }
  .market-education-section { gap: 28px; }
}

@media (max-width: 650px) {
  .container { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: 0 16px; padding-block: 6px; }
  .brand { font-size: 22px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .header-inner nav { gap: 18px; margin-left: auto; font-size: 13px; }
  .header-inner nav a { min-height: 44px; }
  .page-title { font-size: 24px; line-height: 32px; }
  .market-head { align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; padding: 20px 0 10px; }
  .market-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .checked-at { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; }
  .checked-at time { display: inline; margin: 0; }
  .filter-row { gap: 8px 12px; padding-bottom: 10px; flex-wrap: wrap; }
  .filters { gap: 4px; }
  .filters a { padding-inline: 12px; }
  .feed-order { margin-left: auto; }
  .alerts-table, .alert-date-group { display: block; width: 100%; }
  .alerts-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .date-row { display: block; }
  .date-row th { display: block; width: 100%; padding: 7px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 18px; }
  .alert-date-group + .alert-date-group .date-row th { border-top: 0; }
  .alert-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 9px 12px; padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
  .alert-row td { display: block; min-width: 0; padding: 0; border: 0; }
  .coin-link { min-height: 44px; justify-content: center; padding: 0; }
  .alert-cell { text-align: right; }
  .alert-label { gap: 5px; justify-content: flex-end; }
  .alert-mark, .alert-icon { width: 18px; height: 18px; }
  .alert-name { font-size: 13px; line-height: 19px; text-align: left; }
  .info-link { margin-left: -4px; margin-right: -10px; }
  .price-cell { text-align: left; }
  .price, .time-cell time { font-size: 14px; line-height: 21px; }
  .mobile-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; line-height: 18px; }
  .coin-table .alert-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .coin-table .alert-cell { grid-column: 1 / -1; text-align: left; }
  .coin-table .alert-label { justify-content: flex-start; }
  .snapshot-summary { gap: 2px 6px; margin-top: 10px; }
  .feed-explainer { display: block; margin: 20px 0 24px; }
  .feed-explainer .text-link { margin-top: 3px; }
  .market-education { padding-bottom: 4px; }
  .market-education-section { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .market-education-section h2 { max-width: none; font-size: 20px; line-height: 28px; }
  .market-education-copy { line-height: 24px; }
  .notice { margin-bottom: 12px; }
  .empty-state { padding: 30px 16px; }
  .empty-state h2 { font-size: 18px; line-height: 26px; }
  .guide-header { padding: 22px 0 18px; }
  .guide-intro { font-size: 14px; line-height: 23px; }
  .guide-nav { gap: 0 18px; }
  .diagram-note { margin-top: 16px; }
  .reference-type { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 0; }
  .reference-title h2 { font-size: 20px; line-height: 28px; }
  .definition { font-size: 14px; line-height: 23px; }
  .reference-diagram { max-width: 280px; justify-self: end; }
  .guide-details, .guide-reading { padding-block: 24px; }
  .guide-details h2, .guide-reading h2 { font-size: 20px; line-height: 28px; margin-bottom: 14px; }
  .details-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 13px 0; }
  .guide-reading { padding-top: 0; }
  .site-footer { padding-block: 16px 18px; gap: 3px 18px; }
  .not-found { padding: 48px 0 72px; }
}

@media (max-width: 359px) {
  .header-inner nav { margin-left: 0; }
  .header-inner { padding-top: 10px; }
  .brand { min-height: 38px; }
  .feed-order { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
