/* Exchange Atlas. Rules in STYLE.md: ink on white, square corners, rules instead of cards, Georgia + system sans. */
:root {
  --paper: #ffffff; --tint: #f6f4f1; --ink: #1a1918; --ink-2: #5f5b57; --rule: #dcd8d3; --rule-strong: #1a1918;
  --brand: #0b4f8c; --brand-dark: #083a68;
  --open: #0a7a3b; --pre: #1d5fbf; --break: #a86400; --closed: #7a7570;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1240px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--brand-dark); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1 { font: 400 40px/1.15 var(--serif); letter-spacing: -.01em; margin: 6px 0 12px; }
h2 { font: 700 20px/1.3 var(--sans); margin: 34px 0 12px; padding-top: 10px; border-top: 3px solid var(--rule-strong); }
h3 { font: 700 16px/1.35 var(--sans); margin: 22px 0 8px; }
@media (max-width: 700px) { h1 { font-size: 30px; } }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 6px; background: var(--paper); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.label, .eyebrow, .kind { font: 700 12px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 0; }
.eyebrow { color: var(--brand); }
.dateline { font-size: 13px; color: var(--ink-2); margin: 0 0 18px; }
.lead { font: 400 20px/1.45 var(--serif); color: #3b3835; max-width: 62ch; margin-bottom: 14px; }

/* utility bar, masthead, nav */
.utility { background: var(--ink); color: #d9d5d0; font-size: 13px; }
.utility .wrap { display: flex; gap: 18px; align-items: center; min-height: 32px; overflow: hidden; white-space: nowrap; }
.utility a { color: #fff; }
.utility .spacer { margin-left: auto; }
.masthead .wrap { display: flex; align-items: baseline; gap: 16px; padding-top: 16px; padding-bottom: 10px; flex-wrap: wrap; }
.wordmark { font: 700 30px/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.wordmark:hover { text-decoration: none; color: var(--ink); }
.tagline { font-size: 14px; color: var(--ink-2); }
.navbar { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule-strong); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; padding: 11px 14px 9px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:first-child { padding-left: 0; }
.nav a:hover { text-decoration: none; border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand); }

/* status strip */
.ticker { border-bottom: 1px solid var(--rule); background: var(--tint); font-size: 13px; }
.ticker .wrap { display: flex; overflow-x: auto; scrollbar-width: none; white-space: nowrap; min-height: 33px; }
.ticker .wrap::-webkit-scrollbar { display: none; }
.tick { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 0; margin-right: 14px; border-right: 1px solid var(--rule); color: var(--ink); font-variant-numeric: tabular-nums; }
.tick:hover { text-decoration: none; }
.tick b { font-weight: 700; }
.tick span { color: var(--ink-2); }

/* status dot */
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; color: var(--closed); }
.dot, .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--closed); flex: none; display: inline-block; }
.state-open .status, .state-open.status { color: var(--open); }
.state-pre .status, .state-pre.status { color: var(--pre); }
.state-break .status, .state-break.status { color: var(--break); }
.state-open .status::before, .state-open.status::before, .state-open .dot { background: var(--open); }
.state-pre .status::before, .state-pre.status::before, .state-pre .dot { background: var(--pre); }
.state-break .status::before, .state-break.status::before, .state-break .dot { background: var(--break); }

/* page layout */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 18px 16px 48px; }
@media (min-width: 1080px) { .page.has-side { grid-template-columns: minmax(0, 1fr) 300px; } }
.side { display: flex; flex-direction: column; gap: 4px; }
.side h2 { font-size: 16px; margin-top: 0; }
.side section + section h2 { margin-top: 22px; }
@media (min-width: 1080px) { .side-sticky { position: sticky; top: 64px; margin-top: 18px; } }
.breadcrumb { font-size: 13px; color: var(--ink-2); margin: 4px 0 6px; }
.breadcrumb a { color: var(--ink-2); }
.columns { display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.links { list-style: none; padding: 0; margin: 0 0 1em; columns: 2 220px; column-gap: 32px; }
.links li { padding: 6px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.more { font-weight: 600; font-size: 15px; }
.quicklinks { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; margin: 6px 0 4px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
tbody th { font-weight: 600; }
td.num, th.num { text-align: right; padding-right: 0; }
tbody tr:hover td, tbody tr:hover th { background: #faf9f7; }
.cell-sub { display: block; font-size: 13px; font-weight: 400; color: var(--ink-2); }
button.sort { all: unset; cursor: pointer; }
button.sort::after { content: " ↕"; color: #b5b0aa; }
th[aria-sort="ascending"] button.sort::after { content: " ↑"; color: var(--ink); }
th[aria-sort="descending"] button.sort::after { content: " ↓"; color: var(--ink); }
.facts th[scope="row"] { width: 32%; color: var(--ink-2); font-weight: 600; }
.compare-table th[scope="row"] { width: 22%; }
.board-table td, .board-table th { padding-top: 7px; padding-bottom: 7px; }
.board-table .next { color: var(--ink-2); }
.side .board-table { font-size: 14px; }
.side .board-table td, .side .board-table th { padding-right: 8px; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* tabs, filters, form */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.filters button { font: 600 14px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid #4e4c4a; border-radius: 1px; padding: 6px 12px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.compare-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 14px 0 16px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }
.compare-form label { display: grid; gap: 4px; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
select { font: 15px var(--sans); padding: 8px 10px; border: 1px solid #4e4c4a; border-radius: 1px; background: var(--paper); color: var(--ink); min-width: 200px; text-transform: none; letter-spacing: 0; }
.button { display: inline-block; font: 700 15px var(--sans); background: var(--brand); color: #fff; border: 0; border-radius: 1px; padding: 10px 20px; cursor: pointer; }
.button:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }

/* lists of headlines */
.update-list, .post-list, .week-list { list-style: none; padding: 0; margin: 0; }
.update-list li, .post-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.update-list li:first-child, .post-list li:first-child { padding-top: 4px; }
.update-list h3, .post-list h3 { font: 700 19px/1.3 var(--serif); margin: 4px 0 6px; }
.update-list h3 a, .post-list h3 a { color: var(--ink); }
.update-list p, .post-list p { margin: 0 0 6px; color: #3b3835; }
.meta { font-size: 13px; color: var(--ink-2); }
.kind { color: var(--brand); margin-right: 8px; }
.week-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.week-list time { font-weight: 700; font-variant-numeric: tabular-nums; }
.side .week-list li { display: block; font-size: 14px; padding: 8px 0; }
.side .week-list li .meta { display: block; }
.side-updates a { color: var(--ink); font: 700 15px/1.35 var(--serif); }
.month { margin-bottom: 8px; }
.tags { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 4px 0; }
.tags li { font-size: 15px; }
.tags li:not(:last-child)::after { content: "·"; color: var(--ink-2); margin: 0 10px; }

/* exchange page */
.status-card { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; margin: 4px 0 8px; }
.status-card p { margin: 4px 0 0; }
.status-main { font-weight: 700; font-size: 17px; }
.pair { display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* timeline */
.timeline-grid { --label: 88px; position: relative; display: grid; grid-template-columns: var(--label) minmax(0, 1fr); row-gap: 5px; align-items: center; font-variant-numeric: tabular-nums; }
.timeline-scale { position: relative; height: 18px; font-size: 12px; color: var(--ink-2); }
.timeline-scale span { position: absolute; transform: translateX(-50%); }
.timeline-scale span:first-child { transform: none; }
.timeline-scale span:last-child { transform: translateX(-100%); }
.timeline-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.timeline-track { position: relative; height: 18px; background: var(--tint); background-image: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--rule) calc(25% - 1px) 25%); }
.timeline-bar { position: absolute; top: 3px; bottom: 3px; background: var(--brand); }
.timeline-none { position: absolute; left: 6px; top: 0; font-size: 12px; color: var(--ink-2); }
.timeline-now { position: absolute; top: 18px; bottom: 0; width: 2px; background: #c8102e; }

/* guides */
.prose { max-width: 680px; }
.prose > p:not([class]), .prose > ul li, .prose > ol li, .prose blockquote p { font: 19px/1.6 var(--serif); color: #262422; }
.toc li { font: 15px/1.5 var(--sans); }
.prose h2 { font-size: 22px; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1em 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--ink); }
.prose code { font-size: .9em; background: var(--tint); padding: 1px 4px; }
.prose .table-wrap { margin: 1em 0 1.4em; }
.prose table { font-size: 15px; }
.byline { font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 18px; }
.toc { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 0 0 18px; font-size: 15px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2 240px; }
.note { font-size: 14px; color: var(--ink-2); border-left: 3px solid var(--rule); padding: 4px 0 4px 12px; margin: 12px 0; }

/* ads */
.ad { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; margin: 14px auto; text-align: center; }
.ad iframe { border: 0; display: block; max-width: 100%; }
.ad-label { font: 700 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #9a958f; margin-bottom: 4px; }
.ad-empty { border: 1px dashed var(--rule); color: var(--ink-2); font-size: 13px; min-height: 90px; }
.ad[data-slot="side"].ad-empty { min-height: 600px; }
.ad[data-slot="content"].ad-empty, .ad[data-slot="side_top"].ad-empty { min-height: 250px; }
.side > .ad[data-slot="side_top"] { margin: 0 0 18px; }
.update-list li.ad-item, .post-list li.ad-item { padding: 4px 0; }
.ad-anchor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rule-strong); padding: 4px 44px; }
.ad-anchor .ad { margin: 0 auto; }
.ad-anchor .ad-empty { min-height: 50px; }
.ad-close { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 1px solid #4e4c4a; border-radius: 1px; background: var(--paper); color: var(--ink); font: 700 18px/1 var(--sans); cursor: pointer; }
body.has-anchor { padding-bottom: 104px; }
@media (max-width: 760px) { body.has-anchor { padding-bottom: 66px; } .ad-anchor { padding: 4px 40px 4px 8px; } }

/* footer */
.site-footer { background: var(--ink); color: #c9c4be; font-size: 14px; padding: 30px 0 34px; }
.site-footer .wordmark { color: #fff; font-size: 24px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 18px; }
.site-footer h2 { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: #fff; border: 0; padding: 0; margin: 0 0 8px; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.site-footer a { color: #e8e4df; }
.site-footer .disclaimer { margin-top: 24px; padding-top: 14px; border-top: 1px solid #3a3734; font-size: 13px; color: #a8a29b; }
