/* Readability and holdings design 1.11-local. Keep LOCAL_DESIGN.md in sync with changes. */
:root {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 112.5%;
  line-height: 1.6;
  color: #172b3a;
  background: #f5f7fa;
  --ink: #172b3a;
  --navy: #172b3a;
  --secondary-text: #263e50;
  --muted: #263e50;
  --teal: #174f80;
  --link: #174f80;
  --button: #244b6b;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --highlight: #eaf1f8;
  --line: #bac8d3;
  --control-border: #647b8e;
  --focus: #8a4b08;
  --positive: #145c38;
  --negative: #942828;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); }
a { color: var(--link); text-underline-offset: .18em; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 20px;
  background: var(--button);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .button:hover { background: #193b58; }
button:disabled { opacity: 1; background: #e3e9ef; color: #344b5c; cursor: not-allowed; }
.secondary, .quiet { background: var(--surface); color: var(--ink); border-color: var(--control-border); }
.secondary:hover, .quiet:hover { background: var(--highlight); }
.quiet { padding: 10px 16px; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
  padding: 24px max(42px, calc((100vw - 1676px) / 2));
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 15px; font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.brand img { flex-shrink: 0; }
.brand span { display: block; margin-top: 6px; font-size: 1rem; color: var(--secondary-text); font-weight: 600; letter-spacing: .035em; }
.header-right { display: flex; align-items: center; gap: 24px; }
.local-label { font-size: 1rem; color: var(--secondary-text); }
#shell { max-width: 1760px; margin: auto; padding: 0 42px; }
nav { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
nav a { padding: 22px 0 18px; font-size: 1rem; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 4px solid transparent; }
nav a[aria-current=page] { color: var(--link); border-bottom-color: var(--link); font-weight: 700; }
main { min-height: 70vh; padding-bottom: 36px; }
h1 { font-size: 2rem; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-size: 1.4rem; line-height: 1.35; margin: 0; }
h3 { font-size: 1.15rem; line-height: 1.4; margin: 0 0 12px; }
p { line-height: 1.7; margin: 8px 0 0; }
.muted, .subtle { color: var(--secondary-text); }
.subtle { font-size: 1rem; line-height: 1.6; }
.eyebrow { font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.page-head p { color: var(--secondary-text); font-size: 1rem; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 26px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.metric.featured { background: var(--highlight); color: var(--ink); border: 2px solid var(--control-border); padding: 25px; }
.holding-summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 26px; }
.holding-summary-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin: 0 0 14px; overflow-wrap: anywhere; }
.holding-summary-count { font-size: 1rem; font-weight: 400; color: var(--secondary-text); }
.holding-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 18px; border-top: 1px solid var(--line); }
.holding-summary-metric { min-width: 0; padding: 12px 0; }
.holding-summary-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--ink); font-size: 1rem; line-height: 1.4; font-weight: 400; margin-bottom: 6px; }
.holding-summary-value { font-size: 1.111111rem; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.holding-summary-value .holding-percent { display: inline-block; font-size: inherit; line-height: inherit; font-weight: inherit; }
.holding-summary-age, .holding-summary-inclusion, .holding-summary-note { font-size: 1rem; line-height: 1.4; font-weight: 400; color: var(--secondary-text); }
.holding-summary-note { margin-top: 6px; overflow-wrap: anywhere; }
.metric-label { font-size: 1rem; color: var(--ink); font-weight: 600; margin-bottom: 14px; }
.featured .metric-label, .featured .subtle { color: var(--secondary-text); }
.metric-value { font-size: 2rem; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 10px; overflow-wrap: anywhere; }
.featured .metric-value { color: var(--ink); }
.feed { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--secondary-text); font-size: 1rem; line-height: 1.6; margin: 0 0 22px; }
.feed strong { color: var(--ink); font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 26px; }
.card-head { padding: 24px 26px; display: flex; justify-content: space-between; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); }
.card-body { padding: 26px; }
.tag { display: inline-block; border-radius: 5px; padding: 6px 10px; font-size: 1rem; line-height: 1.5; background: var(--surface-soft); color: var(--ink); white-space: normal; }
.tag.teal { background: #edf5f0; color: #17452c; }
.tag.warn { background: #fff4df; color: #62420b; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 1120px; font-size: 1rem; line-height: 1.6; white-space: normal; }
.watchlist-table { min-width: 1500px; }
.watchlist-table th:nth-child(6), .watchlist-table td:nth-child(6) { min-width: 220px; }
.watchlist-table th:nth-child(7), .watchlist-table td:nth-child(7) { min-width: 185px; }
th { text-align: left; background: #eaf0f5; font-size: 1rem; line-height: 1.5; color: var(--ink); font-weight: 700; padding: 18px 20px; border-bottom: 2px solid var(--control-border); }
td { padding: 22px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:not(.detail-row):hover { background: #f1f5f9; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.symbol { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.security-title { display: block; font-size: 1rem; line-height: 1.6; margin-top: 8px; color: var(--ink); min-width: 200px; }
.rank { color: var(--ink); font-size: 1rem; font-weight: 600; }
.gain { color: var(--positive); }
.loss { color: var(--negative); }
.cell-main { display: block; }
.cell-sub { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.6; color: var(--secondary-text); white-space: normal; }
.table-note { padding: 20px 26px; background: var(--surface-soft); border-top: 1px solid var(--line); color: var(--secondary-text); font-size: 1rem; line-height: 1.7; }
.dividend-help { border-top: 1px solid var(--line); padding: 16px 26px; color: var(--secondary-text); }
.dividend-help > summary { cursor: pointer; min-height: 44px; display: list-item; align-content: center; font-size: 1rem; font-weight: 600; }
.dividend-help > div { padding-top: 8px; }
.dividend-help p { font-size: 1rem; line-height: 1.7; }
.announcement-security .row-button { display: block; }
.announcement-archive { border-top: 1px solid var(--line); padding: 18px 26px 22px; }
.announcement-archive > summary { cursor: pointer; min-height: 44px; align-content: center; font-size: 1rem; font-weight: 700; }
.announcement-archive > summary .tag { margin-left: 10px; }
.announcement-archive > p { margin: 14px 0 20px; }
.row-button { color: var(--link); background: transparent; padding: 10px 0; font-size: 1rem; line-height: 1.5; min-height: 44px; border: 0; font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.row-button:hover { color: #123c61; background: transparent; }
.detail-row td { background: var(--surface-soft); white-space: normal; padding: 26px; line-height: 1.7; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; font-size: 1rem; }
.detail-grid strong { display: block; margin-bottom: 8px; }
.chart-open { display: block; }
.price-chart { padding: 26px; background: var(--surface); border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.chart-heading, .chart-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.chart-heading > div { min-width: 0; max-width: 100%; }
.chart-heading h3 { margin-top: 0; }
.chart-security-label { display: block; }
.chart-security-label select { width: 100%; max-width: 600px; }
.chart-periods { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.chart-periods button[aria-pressed=true] { background: var(--button); color: white; border-color: var(--button); }
.chart-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.chart-summary strong { display: block; margin-bottom: 8px; }
.chart-summary > div { padding: 16px; background: var(--surface-soft); border-radius: 6px; }
.chart-axes { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 10px; }
.chart-y-labels { display: flex; height: 260px; flex-direction: column; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.chart-plot { min-width: 0; }
.chart-plot svg { width: 100%; height: 260px; display: block; overflow: visible; touch-action: pan-y; }
.chart-line { fill: none; stroke: #244b6b; stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-grid { fill: none; stroke: #c5d2df; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-session-boundary { stroke-dasharray: 3 5; }
.chart-crosshair { fill: none; stroke: #8a4b08; stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.chart-dot { fill: #244b6b; stroke: #244b6b; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-x-labels { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--secondary-text); }
.chart-x-labels span { max-width: 48%; overflow-wrap: anywhere; }
.chart-x-labels span:last-child { text-align: right; }
.chart-inspect-label { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.chart-inspect-label output { font-weight: 600; }
.chart-inspect { display: block; width: 100%; min-height: 44px; padding: 0; accent-color: var(--button); }
.chart-footer { margin-top: 20px; }
.chart-help { margin-bottom: 0; line-height: 1.7; }
@media (max-width: 700px) {
  .price-chart { padding: 22px; }
  .chart-summary { grid-template-columns: 1fr; gap: 12px; }
  .chart-axes { grid-template-columns: 70px minmax(0,1fr); gap: 8px; }
}
.explanations { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.explanation { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.explanation p { font-size: 1rem; color: var(--secondary-text); }
.empty { padding: 48px 26px; text-align: center; }
.empty h3 { margin-bottom: 12px; }
.empty p { color: var(--secondary-text); font-size: 1rem; max-width: 650px; margin: 0 auto; }
.upload { display: flex; align-items: center; gap: 24px; padding: 26px; border: 2px dashed var(--control-border); border-radius: 8px; background: var(--surface-soft); }
.upload-icon { color: var(--ink); background: var(--highlight); padding: 16px; border-radius: 8px; font-size: 1.4rem; }
.upload-content { flex: 1; min-width: 0; }
.upload p { font-size: 1rem; color: var(--secondary-text); }
input[type=file] { max-width: 100%; font-size: 1rem; margin-top: 16px; }
input[type=file]::file-selector-button { border: 1px solid var(--control-border); border-radius: 6px; background: var(--surface); padding: 12px 16px; margin-right: 12px; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.alert { padding: 18px 22px; border-radius: 8px; font-size: 1rem; line-height: 1.7; margin: 20px 0; border: 1px solid #6d8e78; background: #f0f7f2; color: #17452c; }
.alert.error { border-color: #ad6969; background: #fff4f4; color: #742020; }
.alert.info { background: var(--highlight); border-color: var(--control-border); color: var(--ink); }
.alert:empty { display: none; }
.toolbar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar label { font-size: 1rem; font-weight: 700; }
.toolbar select { min-width: 240px; }
select, input:not([type=file]), textarea { padding: 12px 14px; border: 1px solid var(--control-border); border-radius: 7px; background: var(--surface); color: var(--ink); width: 100%; min-height: 52px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--secondary-text); opacity: 1; }
select { width: auto; }
label { display: block; font-size: 1rem; color: var(--ink); font-weight: 600; }
label > input, label > select, label > textarea { margin-top: 9px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.form-grid .wide { grid-column: span 3; }
.actions { display: flex; gap: 16px; align-items: center; margin-top: 24px; }
.card-head .actions { margin-top: 0; flex-wrap: wrap; }
.preview-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 22px 0; color: var(--ink); font-size: 1rem; }
.preview-stats strong { display: block; color: var(--ink); font-size: 1.4rem; margin-bottom: 6px; }
.login { max-width: 620px; margin: 56px auto 80px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 40px; }
.login h1 { font-size: 1.8rem; }
.login p { font-size: 1rem; color: var(--secondary-text); margin-bottom: 26px; }
.login button { width: 100%; margin-top: 24px; }
.login .eyebrow { margin-bottom: 20px; }
.login label { margin-top: 22px; }
.loading { padding: 48px; color: var(--ink); }
footer { max-width: 1760px; margin: 0 auto; padding: 16px 42px 32px; color: var(--secondary-text); font-size: 1rem; line-height: 1.7; }
.skip-link { position: absolute; top: -100px; background: var(--surface); padding: 14px; z-index: 10; }
.skip-link:focus { top: 12px; left: 12px; }
.section-gap { margin-top: 36px; }
.holding-percent { display: block; font-size: 1rem; line-height: 1.6; }
.holding-tabs { display: flex; flex-wrap: wrap; gap: 12px; padding: 24px 26px 0; }
.holding-tabs button[aria-selected=false] { color: var(--ink); background: var(--surface); border-color: var(--control-border); }
.holding-tabs button[aria-selected=false]:hover { background: var(--highlight); }
.holding-panel-head { padding: 24px 26px; }
.holding-panel-head p { color: var(--secondary-text); }
.holding-groups, .holding-content, .holding-lot-content { min-width: 0; max-width: 100%; }
.holding-row { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,.7fr) minmax(0,1fr) minmax(0,1.45fr) minmax(0,1fr) repeat(4,minmax(0,1fr)) minmax(0,1.4fr); gap: 12px; padding: 18px 20px; align-items: start; }
.yield-on-cost-value { font-size: inherit; font-weight: inherit; color: inherit; white-space: normal; }
.holding-row > *, .holding-lot-table th, .holding-lot-table td { min-width: 0; overflow-wrap: anywhere; }
.holding-row > .num, .holding-lot-table .num { white-space: normal; }
#watch-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.watch-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.watch-tabs button[aria-selected=false] { color: var(--ink); background: var(--surface); border-color: var(--control-border); }
.watch-tabs button[aria-selected=false]:hover { background: var(--highlight); }
.watch-yield-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.watch-yield-label [data-refresh-age] { font-size: 1rem; font-weight: 400; color: var(--secondary-text); }
@media (max-width: 1100px) { #watch-metrics { grid-template-columns: 1fr; } }
.holding-head { background: #eaf0f5; border-bottom: 2px solid var(--control-border); font-weight: 700; }
.holding-head .num { white-space: normal; }
.holding-group { border-bottom: 1px solid var(--line); }
.holding-group:last-child { border-bottom: 0; }
.holding-group > summary, .holding-position > summary { list-style: none; cursor: pointer; }
.holding-group > summary::-webkit-details-marker, .holding-position > summary::-webkit-details-marker { display: none; }
.holding-group[open] > summary { background: var(--highlight); }
.holding-position[open] > summary { background: var(--surface-soft); }
.holding-label { display: flex; align-items: flex-start; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.holding-chevron { display: inline-block; width: 20px; flex-shrink: 0; color: var(--link); font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
details[open] > summary .holding-chevron { transform: rotate(90deg); }
.holding-meta { display: block; color: var(--secondary-text); font-size: 1rem; font-weight: 400; margin-top: 8px; line-height: 1.6; white-space: normal; }
.holding-payment { text-align: left; font-variant-numeric: tabular-nums; }
.holding-return { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 10px; grid-column: 1 / -1; text-align: left; margin-top: 8px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.holding-return .holding-percent { display: inline; }
.holding-return-note { flex-basis: 100%; color: var(--secondary-text); font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
.holding-children { margin: 0 16px 20px 32px; border-left: 3px solid var(--line); }
.holding-position + .holding-position { border-top: 1px solid var(--line); }
.holding-lots { padding: 22px 26px; background: var(--surface-soft); }
.holding-lot-content { margin-top: 0; }
.holding-lot-table { width: 100%; min-width: 0; table-layout: fixed; background: var(--surface); }
.holding-lot-table th, .holding-lot-table td { padding: 16px 12px; }
.holding-lot-table th { white-space: normal; }
.holding-lot-main td { border-bottom: 0; }
.holding-lot-return td { padding-top: 0; }
.holding-lot-return .holding-return { margin-top: 0; }
.holding-closed td { background: #eaf0f5; }
.holding-lot-table tfoot { border-top: 2px solid var(--control-border); font-weight: 700; }
.holding-empty { padding: 24px; }
/* Holdings wrap into labelled cards instead of requiring a horizontal scrollbar. */
@media (max-width: 1500px) {
  .holding-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 24px; }
  .holding-row > .holding-label { grid-column: 1 / -1; }
  .holding-row > .num { text-align: left; }
  .holding-head { gap: 12px; }
  .holding-head > span { text-align: left; }
  .holdings-card [data-label]::before { content: attr(data-label); display: block; font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
  .holding-lot-table, .holding-lot-table thead, .holding-lot-table tbody, .holding-lot-table tfoot { display: block; }
  .holding-lot-table tr { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .holding-lot-table th, .holding-lot-table td { display: block; text-align: left; border: 0; }
  .holding-lot-table .holding-lot-main { border-top: 1px solid var(--line); }
  .holding-lot-table .holding-lot-return { display: block; }
  .holding-lot-table tfoot th[scope="row"] { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .holding-row, .holding-lot-table tr { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .holding-row, .holding-lot-table tr { grid-template-columns: minmax(0,1fr); }
  .holding-row { padding: 20px; }
  .holding-head, .holding-lot-table thead tr { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .holding-children { margin: 0 10px 18px 14px; }
  .holding-lots { padding: 20px 14px; }
  .holdings-card .card-head { min-width: 0; }
}
.documents { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 30px; }
.doc-nav { position: sticky; top: 24px; align-self: start; font-size: 1rem; padding: 16px 0; }
.doc-nav a { display: block; text-decoration: none; padding: 10px 14px; border-left: 2px solid var(--line); line-height: 1.6; }
.doc-nav a:hover { background: var(--highlight); text-decoration: underline; }
.doc-content { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 34px; overflow-wrap: anywhere; }
.doc-content h1 { font-size: 1.8rem; margin-top: 0; }
.doc-content h2 { font-size: 1.4rem; margin-top: 40px; scroll-margin-top: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.doc-content h3 { margin-top: 24px; }
.doc-content p, .doc-content li { font-size: 1rem; line-height: 1.8; max-width: none; }
.doc-content ul { padding-left: 26px; }
.doc-content li + li { margin-top: 12px; }
.doc-content pre { overflow: auto; white-space: pre-wrap; background: var(--surface-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 20px; font-size: 1rem; line-height: 1.7; }
.doc-content code { font-size: 1em; }
.doc-content table { white-space: normal; min-width: 850px; }
.doc-content th, .doc-content td { padding: 16px; font-size: 1rem; line-height: 1.7; }
.doc-content .table-scroll { margin-top: 20px; }
.history-note { max-width: 500px; white-space: normal; }
.badge-number { font-size: 1rem; color: var(--secondary-text); }
[hidden] { display: none !important; }
.lot-panel { margin-top: 20px; }
.lot-panel table { margin-top: 16px; background: var(--surface); }
.editor { border-top: 1px solid var(--line); padding: 26px; background: var(--surface); }
.small-input { max-width: 420px; }
.positive-word { color: var(--positive); }
.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: 1100px) {
  .holding-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .documents { grid-template-columns: 1fr; }
  .doc-nav { position: static; display: flex; overflow-x: auto; gap: 12px; padding: 0; }
  .doc-nav a { flex-shrink: 0; max-width: 240px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .wide { grid-column: span 2; }
}
@media (max-width: 700px) {
  .site-header { padding: 22px 20px; min-height: 108px; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
  .brand { font-size: 1.15rem; }
  .header-right { gap: 12px; }
  .local-label { display: none; }
  #shell { padding: 0 20px; }
  nav { flex-wrap: wrap; gap: 0 24px; margin-bottom: 28px; overflow: visible; }
  nav a { font-size: 1rem; white-space: nowrap; padding: 14px 0 12px; }
  .page-head { align-items: flex-start; gap: 20px; flex-direction: column; }
  h1 { font-size: 1.8rem; }
  .page-head > button, .page-head > .button { align-self: stretch; }
  .metrics { grid-template-columns: 1fr; gap: 16px; }
  .metric { padding: 24px; }
  .metric.featured { padding: 23px; }
  .metric-label { font-size: 1rem; }
  .metric-value { font-size: 2rem; }
  .feed { align-items: flex-start; flex-direction: column; gap: 12px; }
  .card-head, .card-body { padding: 22px; }
  .card-head { align-items: flex-start; flex-wrap: wrap; }
  .explanations { grid-template-columns: 1fr; }
  .upload { align-items: flex-start; flex-wrap: wrap; padding: 22px; }
  .upload-icon { display: none; }
  .upload > button { width: 100%; }
  .detail-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .holding-summary-card { padding: 14px; }
  .holding-summary-grid { grid-template-columns: 1fr; }
  .login { margin: 32px 0; padding: 28px; }
  .login h1 { font-size: 1.6rem; }
  .doc-content { padding: 24px; }
  .toolbar select { width: 100%; min-width: 0; }
  .toolbar { gap: 14px; }
  .actions { flex-wrap: wrap; }
  footer { padding: 16px 20px 28px; }
  .metric .subtle, .header-right .quiet { font-size: 1rem; }
  .header-right .quiet { padding: 10px 14px; }
  .preview-stats { gap: 22px; }
  th, td { padding-left: 18px; padding-right: 18px; }
}
.treasury-table { min-width: 820px; }
.treasury-table .cell-sub { max-width: 260px; }
.sort-column { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; min-height: 44px; padding: 4px 0; border: 0; border-radius: 3px; background: transparent; color: var(--ink); font: inherit; font-weight: inherit; text-align: left; white-space: normal; }
.sort-column:hover { background: #dce7f0; color: #172b3a; }
.num > .sort-column { justify-content: flex-end; text-align: right; }
.sort-mark { flex: 0 0 auto; color: #263e50; }
.sort-active .sort-mark { color: #174f80; font-weight: 700; }
.holding-head > span { min-width: 0; }
@media print {
  nav, .site-header, footer, .doc-nav, .export-button, .skip-link { display: none; }
  #shell { padding: 0; }
  .documents { display: block; }
  .doc-content { border: 0; padding: 0; }
  .doc-content pre { white-space: pre-wrap; }
  .table-scroll { overflow: visible; }
  body { background: #ffffff; color: #172b3a; }
  .doc-content h2 { break-after: avoid; }
}

.ticker-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.chart-icon { display: inline-flex; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 10px; border: 0; color: var(--link); background: transparent; }
.chart-icon:hover { color: #123c61; background: var(--highlight); }
.issuer-link { color: var(--link); min-height: 44px; text-decoration: underline; }
.issuer-ex-date { margin-top: 18px; }
