/* Filed - shared styles. One serif for headings (record-book feel), the system sans for data. */
:root {
  --page: #f6f7f9;
  --surface: #ffffff;
  --ink: #16213a;
  --muted: #5b6478;
  --line: #dce0e8;
  --line-soft: #eceef3;
  --link: #2b54c6;
  --link-soft: #e8eefb;
  --buy: #23764a;
  --buy-soft: #e5f2ea;
  --sell: #a8323e;
  --sell-soft: #f8e7e9;
  --warn: #8a5d0c;
  --warn-soft: #fff3d9;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.9em; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.top { background: var(--ink); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 32px; min-height: 56px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.indep { font-size: 0.72rem; line-height: 1.25; color: #c9d3ea; max-width: 15em; margin-left: -18px; }   /* "Independent site" note next to the logo */
@media (max-width: 720px) { .indep { margin-left: 0; max-width: none; } }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #c9d3ea; text-decoration: none; padding: 8px 12px; border-radius: 4px; font-size: 0.95rem; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.14); }

/* page heading */
.head { padding: 36px 0 20px; }
.head p { color: var(--muted); max-width: 72ch; margin-top: 8px; font-size: 1.05rem; }

/* notices */
.notice { border-left: 4px solid var(--line); background: var(--surface); padding: 12px 16px; margin: 0 0 20px; font-size: 0.9rem; color: var(--muted); max-width: 90ch; }
.notice.warn { border-left-color: #d9a43a; background: var(--warn-soft); color: #5c4310; }
.notice strong { color: var(--ink); }

/* filter bar */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; position: sticky; top: 0; z-index: 5; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label, .field > .label { font-size: 0.8rem; color: var(--muted); }
.field.grow { flex: 1 1 260px; }
input[type="search"], input[type="date"], input[type="text"], select {
  font: inherit; font-size: 0.95rem; color: var(--ink); background: #fff; border: 1px solid #c3c9d6; border-radius: 4px; padding: 7px 10px; min-height: 38px;
}
input[type="search"] { width: 100%; }
input:focus, select:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 3px var(--link-soft); }
.seg { display: inline-flex; border: 1px solid #c3c9d6; border-radius: 4px; overflow: hidden; }
.seg button { font: inherit; font-size: 0.9rem; border: 0; background: #fff; color: var(--ink); padding: 7px 12px; min-height: 36px; cursor: pointer; }
.seg button + button { border-left: 1px solid #c3c9d6; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.check { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; min-height: 38px; }
.dates { display: flex; gap: 6px; align-items: center; }

/* result bar */
.resultbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 8px; }
.resultbar .count { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.resultbar .spacer { flex: 1; }
.btn { font: inherit; font-size: 0.9rem; border: 1px solid #c3c9d6; background: #fff; color: var(--ink); border-radius: 4px; padding: 7px 12px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn.primary { background: var(--link); border-color: var(--link); color: #fff; }
.btn.primary:hover { background: #2347ab; }
.linkbtn { font: inherit; font-size: 0.9rem; border: 0; background: none; color: var(--link); cursor: pointer; padding: 4px; text-decoration: underline; }

/* tables */
.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th { text-align: left; font-weight: 600; font-size: 0.8rem; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; position: sticky; top: 0; }
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--ink); }
table.data th[aria-sort="ascending"]::after { content: " \25B2"; font-size: 0.7em; }
table.data th[aria-sort="descending"]::after { content: " \25BC"; font-size: 0.7em; }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data .n { text-align: right; white-space: nowrap; }
table.data tbody tr.row { cursor: pointer; }
table.data tbody tr.row:hover td { background: #f7f9fd; }
table.data tbody tr.open td { background: #f2f5fc; }
table.data tr.detail td { background: #f2f5fc; padding: 4px 12px 16px 12px; cursor: default; }
.nowrap { white-space: nowrap; }
.who { font-weight: 600; }
.who-sub { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.tk { font-weight: 700; letter-spacing: 0.02em; }
a.tk { text-decoration: none; }
a.tk:hover { text-decoration: underline; }
.asset { max-width: 34ch; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 0.875rem; margin: 6px 0 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

/* transaction tags */
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; white-space: nowrap; }
.tag.B { color: var(--buy); background: var(--buy-soft); }
.tag.S, .tag.P { color: var(--sell); background: var(--sell-soft); }
.tag.E, .tag.none { color: var(--muted); background: var(--line-soft); }
.tag.warn { color: var(--warn); background: var(--warn-soft); font-weight: 600; }
.tag.D { color: #6a3fb0; background: #efe8fa; }
.tag.G { color: var(--muted); background: var(--line-soft); }

/* pager */
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin: 12px 0 40px; font-size: 0.9rem; }

/* empty / loading */
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.loading { padding: 40px 16px; text-align: center; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 40px; font-size: 0.85rem; color: var(--muted); }
.foot .wrap { display: grid; gap: 8px; }
.foot p { margin: 0; max-width: 100ch; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 1.7rem; }
  .filters { position: static; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 720px) { .top .wrap { gap: 0 12px; padding-top: 6px; padding-bottom: 6px; } .nav a { padding: 6px 8px; } }
/* ---------------------------------------------------------------- header search (every page) */
.hsearch { position: relative; margin-left: auto; flex: 1 1 170px; max-width: 280px; min-width: 170px; }
.top .wrap { gap: 20px; }
.nav a { padding: 8px 10px; font-size: 0.92rem; }
.hsearch input[type="search"] { width: 100%; min-height: 36px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.1); color: #fff; border-radius: 4px; }
.hsearch input[type="search"]::placeholder { color: #aeb9d3; }
.hsearch input[type="search"]:focus { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.hsearch input[type="search"]:focus::placeholder { color: var(--muted); }
.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(22, 33, 58, 0.16); min-width: 280px; }
.suggest li { display: grid; grid-template-columns: 4.5em 1fr auto; gap: 8px; align-items: baseline; padding: 7px 12px; cursor: pointer; font-size: 0.9rem; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--link-soft); }
.suggest .tk { font-weight: 700; }
.suggest .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .ex { color: var(--muted); font-size: 0.8rem; }
.suggest li.none { display: block; color: var(--muted); cursor: default; }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------------------------------------------------------------- company page */
.co-landing { padding: 48px 0 24px; max-width: 760px; }
.co-landing h1 { font-size: 2.4rem; }
.co-landing p { color: var(--muted); font-size: 1.1rem; margin-top: 10px; }
.bigsearch { position: relative; margin: 24px 0 12px; }
.bigsearch input[type="search"] { font-size: 1.15rem; min-height: 54px; padding: 10px 16px; border-radius: 6px; }
.bigsearch .suggest { top: calc(100% + 6px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 0.9rem; color: var(--ink); }
.chips a:hover { border-color: var(--ink); }
.chips .tk { margin-right: 6px; }

.co-head { padding: 28px 0 8px; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: end; }
.co-head h1 { font-size: 2.2rem; }
.co-head .sub { color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 0.95rem; }
.co-head .badge { font-weight: 700; color: var(--ink); background: var(--line-soft); border-radius: 3px; padding: 1px 8px; letter-spacing: 0.02em; }
.co-price { text-align: right; }
.co-price .p { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.co-price .d { color: var(--muted); font-size: 0.85rem; }
.co-nav { position: sticky; top: 0; z-index: 4; background: var(--page); border-bottom: 1px solid var(--line); margin: 12px 0 8px; }
.co-nav .in { display: flex; gap: 2px; overflow-x: auto; padding: 6px 0; }
.co-nav a { white-space: nowrap; padding: 6px 12px; border-radius: 4px; text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.co-nav a:hover { color: var(--ink); background: var(--line-soft); }
.co-nav a.on { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; margin: 18px 0; scroll-margin-top: 60px; }
.sec > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 12px; }
.sec > header h2 { font-size: 1.35rem; }
.sec > header .more { margin-left: auto; font-size: 0.9rem; }
.sec .lede { color: var(--muted); max-width: 80ch; margin: 0 0 12px; }
.sec .lede strong { color: var(--ink); }
.sec .src { color: var(--muted); font-size: 0.8rem; margin: 12px 0 0; }
.sec .tablewrap { border-radius: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 14px; }
.stat { border: 1px solid var(--line-soft); border-radius: 6px; padding: 10px 12px; background: #fbfcfd; }
.stat .k { font-size: 0.8rem; color: var(--muted); }
.stat .v { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.stat .v small { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.stat.good .v { color: var(--buy); } .stat.bad .v { color: var(--sell); } .stat.mid .v { color: var(--warn); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.two > *, .minis > *, .co-head > * { min-width: 0; }   /* grid children may shrink below their content, so wide tables scroll inside .tablewrap */
.two h3 { margin-bottom: 8px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--sans); fill: var(--muted); }
.chart .grid { stroke: var(--line-soft); }
.chart .axis { stroke: var(--line); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.chart .area { fill: var(--link-soft); }
.chart .bar { fill: #9fb1d9; } .chart .bar.neg { fill: #e3a7ae; }
.chart .dot { stroke: #fff; stroke-width: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8rem; color: var(--muted); margin: 6px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 14px; }
.mini h3 { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.fn { color: var(--warn); font-size: 0.75rem; vertical-align: super; margin-left: 1px; }
.pill { display: inline-block; font-size: 0.75rem; padding: 1px 7px; border-radius: 999px; background: var(--line-soft); color: var(--muted); white-space: nowrap; }
.pill.good { background: var(--buy-soft); color: var(--buy); } .pill.bad { background: var(--sell-soft); color: var(--sell); }
.co-empty { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) {
  .two, .minis { grid-template-columns: minmax(0, 1fr); }
  .co-head { grid-template-columns: minmax(0, 1fr); }
  .co-price { text-align: left; }
}

.collapsible.collapsed tr.x { display: none; }
.showall-row { margin: 10px 0 0; text-align: center; }
@media (max-width: 1100px) { .hsearch { flex: 1 1 100%; max-width: none; margin: 0 0 10px; } }
@media (max-width: 720px) { .nav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; } .nav a { white-space: nowrap; } }
.plain-list { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.plain-list li { padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.plain-list li:last-child { border-bottom: 0; }

/* scorecard page: its in-page section links, aligned with the rest of the site */
body nav.topbar { justify-content: flex-start; gap: 4px 20px; max-width: var(--wrap); margin: 0 auto; padding: 10px 24px; background: transparent; border: 0; }

/* ---------------------------------------------------------------- three sections: main nav + section bar */
.nav a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, 0.14); }
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; min-height: 46px; }
.subnav-title { font-family: var(--serif); font-weight: 600; font-size: 1rem; margin-right: 14px; padding-left: 10px; border-left: 4px solid var(--accent, var(--ink)); }
.subnav.sec-congress { --accent: #a8323e; } .subnav.sec-market { --accent: #2b54c6; } .subnav.sec-value { --accent: #23764a; }
.subnav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 4px; font-size: 0.92rem; }
.subnav a:hover { color: var(--ink); background: var(--line-soft); }
.subnav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent, var(--ink)); border-radius: 0; }
.subnav-note { margin-left: auto; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 720px) { .subnav .wrap { flex-wrap: nowrap; overflow-x: auto; } .subnav a, .subnav-title { white-space: nowrap; } .subnav-note { display: none; } }
.foot .links a.support { font-weight: 600; }
/* company page: financial statements and TradingView (research\company_financials) */
.fs-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.fs-pick { margin: 0 0 8px; } .fs-pick select { font: inherit; font-size: 0.9rem; max-width: 100%; }
table.fs th[scope="row"], table.fs thead th:first-child { position: sticky; left: 0; background: var(--surface, #fff); box-shadow: 1px 0 0 var(--line); z-index: 1; }
table.fs thead th:first-child { z-index: 2; background: #fafbfc; }
table.fs th[scope="row"] { color: var(--ink); font-weight: 400; font-size: 0.88rem; white-space: normal; min-width: 14em; }
table.fs td a { color: inherit; text-decoration: none; } table.fs td a:hover { text-decoration: underline; color: var(--link); }
table.fs tr.ratio th, table.fs tr.ratio td { font-style: italic; color: var(--muted); }
table.fs tr.hd th { font-weight: 600; }
table.fs td.dv a { color: var(--muted); }
.tv-box { min-height: 60px; }

/* ---------------------------------------------------------------- research\v1_fixlist_d (2026-11-26) */
/* search suggestions: the name that matched (former or everyday name, CIK) and the kind of result (D1, D2) */
.suggest .via { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.suggest .ex { white-space: nowrap; }
.suggest li.inv { grid-template-columns: minmax(0, 1fr) auto; }
.suggest li.inv .tk { display: none; }
/* phones (D4): a compact header - logo and search on one line, the independence note in one small line, the menu below
   scrolling sideways - about 100 px instead of about 200 px; and nothing on the listed pages wider than the screen */
@media (max-width: 720px) {
  .top .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand search" "indep indep" "nav nav"; align-items: center; gap: 2px 12px; min-height: 0; padding-top: 6px; padding-bottom: 2px; }
  .top .brand { grid-area: brand; font-size: 1.15rem; }
  .top .indep { grid-area: indep; margin: 0; max-width: none; font-size: 0.68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top .nav { grid-area: nav; margin: 0 -8px; }
  .top .nav a { padding: 5px 8px; font-size: 0.88rem; }
  .top .hsearch { grid-area: search; margin: 0; max-width: none; min-width: 0; flex: none; }
  .top .hsearch input[type="search"] { min-height: 32px; padding: 4px 10px; }
  .top .hsearch .suggest { left: auto; right: 0; width: calc(100vw - 32px); min-width: 0; }
  .suggest li { grid-template-columns: 3.8em minmax(0, 1fr); row-gap: 0; }
  .suggest li .ex { grid-column: 2; font-size: 0.75rem; }
  .suggest li.inv { grid-template-columns: minmax(0, 1fr); }
  .suggest li.inv .ex { grid-column: 1; }
  main select { max-width: 100%; }
  main label { max-width: 100%; }
  .field { min-width: 0; max-width: 100%; }
  .field select { width: 100%; }
  .nw-tools label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  .prose code { overflow-wrap: anywhere; word-break: break-word; }
  .prose pre code { overflow-wrap: normal; word-break: normal; }
  .seg { display: flex; flex-wrap: wrap; max-width: 100%; }
}
/* developer guide (D10): code blocks can be scrolled with the keyboard */
.prose pre:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* folded section (company page: SEC price history), 2026-11-25 */
details.fold { margin: 8px 0 0; }
details.fold > summary { cursor: pointer; color: var(--link); font-size: 0.9rem; padding: 4px 0; }

/* research\v1_polish_1126 (2026-11-26): the "Independent site" note at medium widths. Wider than a phone it sat 2 px from
   the logo (margin-left -18px against the 20px gap), top-aligned in two cramped lines. Now: 8 px from the logo and centred
   on wide screens; from 721 to 1100 px (where the search box already has its own row) the note goes in one line under
   the logo, the menu beside them. Phones (720 px and less, fixlist_d compact header) are not changed. */
@media (min-width: 721px) { .top .indep { margin-left: -12px; align-self: center; } }
@media (min-width: 721px) and (max-width: 1100px) {
  .top .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand nav" "indep nav" "search search"; align-items: center; gap: 0 24px; padding-top: 8px; }
  .top .brand { grid-area: brand; align-self: end; justify-self: start; line-height: 1.15; }
  .top .indep { grid-area: indep; align-self: start; justify-self: start; margin: 1px 0 0; max-width: none; white-space: nowrap; }
  .top .nav { grid-area: nav; }
  .top .hsearch { grid-area: search; margin: 8px 0 10px; max-width: none; min-width: 0; }
}
/* review 2026-11-27 */
.suggest li.more { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 8px; }
.suggest li.more { display: block; color: var(--link); }
.head.compact > p { display: none; }
/* seven menu entries: on laptop widths the search box stays on the menu's row */
/* tablet widths: the seven entries stay on one row beside the name */
@media (min-width: 721px) and (max-width: 1239px) {
  .top .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand search" "indep search" "nav nav"; align-items: center; gap: 0 24px; padding-top: 8px; padding-bottom: 4px; min-height: 0; }
  .top .brand { grid-area: brand; align-self: end; justify-self: start; line-height: 1.15; }
  .top .indep { grid-area: indep; margin-left: 0; align-self: start; max-width: none; }
  .top .nav { grid-area: nav; gap: 0; margin: 4px -6px 0; flex-wrap: nowrap; }
  .top .nav a { padding: 8px 6px; font-size: 0.9rem; white-space: nowrap; }
  .top .hsearch { grid-area: search; margin: 0; max-width: 420px; min-width: 0; width: 100%; justify-self: end; flex: none; }
}
@media (min-width: 1240px) { .top .wrap { gap: 14px; } .top .nav { gap: 2px; } .top .nav a { padding: 8px 6px; font-size: 0.9rem; } .top .hsearch { flex: 1 1 120px; min-width: 120px; } }
/* phone: the menu scrolls sideways; a fade on the right edge shows there is more */
@media (max-width: 720px) { .top .nav { padding-right: 28px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); } }
