/* Task 074b: the frame `notebook` of the satellites — an analyst's notebook: the side menu (currencies, dates,
   topics) that folds into a button on a phone (a checkbox and its label, no script), a geometric grotesque, monochrome
   with one accent, a 30-day line with the corridor at the head of every note, tables instead of paragraphs. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, label:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--bg); padding: 6px 10px; z-index: 5; }

.nb { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 26px 22px; position: sticky; top: 0; height: 100vh;
        overflow-y: auto; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none;
         font: 600 19px/1.2 var(--head); }
.brand .mark { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
               border: 2px solid var(--fg); font-weight: 700; }
.nb-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nb-button { display: none; border: 1px solid var(--fg); padding: 6px 12px; font: 500 15px/1 var(--body);
             cursor: pointer; }
.nb-toggle:focus-visible ~ .side-head .nb-button { outline: 2px solid var(--accent); outline-offset: 2px; }
.side-nav h2 { margin: 26px 0 8px; font: 600 12px/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase;
               color: var(--muted); }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li { padding: 3px 0; }
.side-nav a { color: var(--fg); text-decoration: none; }
.side-nav a:hover, .side-nav a[aria-current] { color: var(--accent); }
.side-nav a[aria-current] { font-weight: 600; }
.side-nav .code { display: inline-block; min-width: 3.2em; font-weight: 600; }

.nb-main { padding: 30px clamp(16px, 4vw, 52px) 48px; max-width: 900px; min-width: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(26px, 4.5vw, 38px); margin: 0 0 12px; letter-spacing: -.01em; }
h2 { font-size: 22px; margin: 34px 0 10px; }
h3 { font-size: 14px; margin: 30px 0 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
article em { color: var(--muted); font-style: normal; font-size: 15px; }
.chart { margin: 18px 0 8px; border-top: 2px solid var(--fg); padding-top: 12px; }
.chart figcaption { font-size: 14px; color: var(--muted); }
.chart .key { display: inline-block; width: 18px; height: 10px; margin: 0 4px 0 10px; vertical-align: middle;
              background: var(--accent); opacity: .25; }
.spark { display: block; }
.spark-big { width: 100%; height: auto; }
.spark .line { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-small .line { stroke-width: 1.5; }
.spark .corridor { fill: var(--accent); fill-opacity: .1; }
.spark .ahead { fill: var(--accent); fill-opacity: .25; }
.spark .ahead-mid { stroke: var(--accent); stroke-dasharray: 4 3; }
.spark .dot { fill: var(--accent); }
.spark .lbl { fill: var(--muted); font: 13px var(--body); }
.spark .lbl.now { fill: var(--accent); font-weight: 600; }
.scroll { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font: 600 12px/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
td.n, th.n { text-align: right; white-space: nowrap; }
.facts td:first-child { color: var(--muted); }
.board td a { font-weight: 600; text-decoration: none; }
.board .spark-small { width: 120px; height: 32px; }
.tag { display: inline-block; font-size: 13px; padding: 1px 8px; border: 1px solid var(--line); color: var(--muted); }
.tag.weaker, .tag.firmer { border-color: var(--accent); color: var(--accent); }
.meta { color: var(--muted); font-size: 14px; }
.list { list-style: none; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
footer { padding: 18px clamp(16px, 4vw, 52px) 32px; color: var(--muted); font-size: 14px; border-top: 1px solid
         var(--line); grid-column: 2; }
@media (max-width: 820px) {
  .nb { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .nb-button { display: inline-block; }
  .side-nav { display: none; }
  .nb-toggle:checked ~ .side-nav { display: block; }
  footer { grid-column: 1; }
  .board .hide-s { display: none; }
}
