:root {
  color-scheme: light;
  --bg: #f7f7f3;
  --fg: #181b17;
  --muted: #565b51;
  --line: #d5d8ce;
  --paper: #fff;
  --accent: #315f42;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0b0c0b; --fg: #eeefe9; --muted: #aeb3a7; --line: #343832; --paper: #141613; --accent: #a4d1a8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c0b; --fg: #eeefe9; --muted: #aeb3a7; --line: #343832; --paper: #141613; --accent: #a4d1a8;
}
* { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.5 var(--sans);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { max-width: 1312px; width: calc(100% - 104px); margin-inline: auto; }
.skip { position: fixed; z-index: 9; top: .6rem; left: .6rem; padding: .6rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); }
.top-inner { min-height: 68px; display: grid; grid-template-columns: 1fr auto minmax(11rem, 1fr) auto; align-items: center; gap: clamp(.8rem, 2vw, 1.7rem); }
.top nav { display: flex; align-items: center; gap: 1.25rem; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.top nav a:hover, .top nav a[aria-current] { color: var(--fg); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { filter: invert(0); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .brand img { filter: invert(1); } }
:root[data-theme="dark"] .brand img { filter: invert(1); }
.search-widget { position: relative; width: 100%; max-width: 24rem; justify-self: end; }
.site-search { position: relative; }
.site-search svg { position: absolute; top: 50%; left: .85rem; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.site-search input { width: 100%; min-height: 44px; padding: .45rem 1rem .45rem 2.5rem; color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, var(--bg)); border: 1px solid var(--line); border-radius: 999px; }
.site-search input::placeholder { color: var(--muted); opacity: 1; }
.site-search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-switch { display: inline-flex; align-items: center; justify-self: end; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 100px; background: color-mix(in srgb, var(--fg) 6%, var(--bg)); }
.theme-switch button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; }
.theme-switch button:hover { color: var(--fg); }
.theme-switch button[aria-pressed="true"] { color: var(--fg); border-color: var(--line); background: var(--paper); }
.theme-switch button:focus-visible { outline-offset: 0; }
.theme-switch [data-color-theme="dark"][aria-pressed="true"] svg { fill: currentColor; }
.markets { border-bottom: 1px solid var(--line); }
.market-row { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); align-items: center; gap: .65rem; padding-block: .23rem; font-size: .91rem; }
.market-label, .market-credit { color: var(--muted); font-size: .84rem; }
.market-credit { text-underline-offset: .16em; }
.market-quote-actions { display: flex; align-items: center; gap: .3rem; }
.market-motion { display: none; }
.market-quote-row { grid-template-columns: 6.25rem minmax(0, 1fr) auto; }
.market-quotes, .market-clocks { min-width: 0; margin: 0; padding: 0; list-style: none; }
.market-quotes { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem clamp(.6rem, 1.8vw, 1.55rem); }
.market-clocks { display: flex; flex-wrap: wrap; gap: .3rem clamp(.85rem, 2vw, 1.65rem); }
.market-quotes li, .market-clocks li { min-width: 0; }
.markets-inner {
  --tv-widget-font-family: var(--sans);
  --tv-widget-background-color: transparent;
  --tv-widget-text-color: var(--fg);
  --tv-widget-positive-color: light-dark(#286043, #9dc9a7);
  --tv-widget-negative-color: light-dark(#a13e47, #efa3a8);
}
.market-clock-row { grid-template-columns: 6.25rem minmax(0, 1fr) auto; border-top: 1px solid var(--line); }
.market-clocks li, .market-session { display: flex; align-items: baseline; gap: .3rem; white-space: nowrap; }
.market-clocks time, .market-clocks [aria-hidden] { color: var(--muted); }
.market-clocks time { font-variant-numeric: tabular-nums; }
.market-toggle { justify-self: end; border: 0; padding: .45rem 0 .45rem .35rem; color: var(--muted); background: transparent; font-size: .84rem; text-decoration: underline; text-underline-offset: .16em; cursor: pointer; }
.market-toggle:hover, .market-toggle[aria-expanded="true"] { color: var(--fg); }
.market-details:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .85rem; }
.market-details { margin: 0; padding: .7rem 0 .95rem; border-top: 1px solid var(--line); list-style: none; font-size: .84rem; }
.market-details li { min-width: 0; }
.market-details li > span { margin-inline-start: .4rem; color: var(--muted); }
.market-details tv-single-ticker { display: block; width: 100%; margin-block: .35rem; }
.market-details a { color: var(--muted); text-underline-offset: .14em; }
.market-state { color: var(--muted); font-size: .82rem; }
.market-state[data-state="open"] { color: var(--accent); }
.market-state[data-state="open"]::before { content: ''; display: inline-block; background: currentColor; width: .36rem; height: .36rem; border-radius: 50%; margin-inline-end: .25rem; vertical-align: .15em; }
@media (max-width: 700px) {
  .markets-tickers { position: relative; padding-bottom: 2rem; }
  .market-row { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: .15rem; }
  .market-row .market-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .market-track { --market-gap: .85rem; display: flex; gap: var(--market-gap); overflow-x: auto; scrollbar-width: none; }
  .market-quotes, .market-clocks { flex: none; flex-wrap: nowrap; gap: var(--market-gap); }
  .market-quotes li, .market-clocks li { flex: none; }
  .market-quote-actions, .market-toggle { position: absolute; bottom: 0; }
  .market-quote-actions { inset-inline-start: 0; }
  .market-toggle { inset-inline-end: 0; white-space: nowrap; }
  .market-motion:not([hidden]) { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; }
  .market-motion span { display: inline-flex; }
  .market-motion[aria-pressed="true"] .market-play,
  .market-motion[aria-pressed="false"] .market-pause { display: none; }
}
.intro { padding: clamp(1.4rem, 3.5vw, 2.75rem) 0 clamp(1.2rem, 2.8vw, 2.05rem); }
.intro h1 { max-width: 35ch; margin: 0; font: 600 clamp(1.85rem, 4vw, 3.45rem)/1.09 var(--serif); letter-spacing: -.044em; text-wrap: balance; }
.intro p { max-width: 76ch; margin: .65rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.15rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; padding: .88rem 0 1rem; border-top: 2px solid var(--fg); }
h2 { font: 600 clamp(1.6rem, 3vw, 2.1rem)/1.08 var(--serif); letter-spacing: -.033em; margin: 0; }
.section-head > span { color: var(--muted); font-size: .92rem; }
.topic-filters:not([hidden]) { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.2rem; }
.topic-filters button { padding: .3rem .82rem; min-height: 37px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.topic-filters button:hover { color: var(--fg); border-color: var(--muted); }
.topic-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; white-space: nowrap; }
.news-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.6rem; }
.story { min-width: 0; }
.story-link { display: block; text-decoration: none; }
.story-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.story-image { width: 100%; object-fit: cover; background: var(--line); }
.lead .story-image { aspect-ratio: 1.74; object-position: 50% 54%; }
.lead .story-copy { padding: 1.05rem 0 0; }
.meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .7rem; margin: 0 0 .42rem; color: var(--muted); font-size: .83rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.meta span:first-child { color: var(--accent); }
.meta span + span { letter-spacing: .025em; text-transform: none; }
.story h3 { font: 650 clamp(1.32rem, 2vw, 1.75rem)/1.09 var(--serif); letter-spacing: -.033em; margin: 0; overflow-wrap: break-word; }
.lead h3 { max-width: 21ch; font-size: clamp(2.2rem, 3.8vw, 4rem); }
.summary { color: var(--muted); line-height: 1.37; margin: .52rem 0 0; }
.lead .summary { font-size: 1.15rem; max-width: 57ch; }
.news-side { display: grid; align-content: start; border-left: 1px solid var(--line); padding-left: 1.6rem; }
.news-side .story { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.news-side .story:first-child { padding-top: 0; }
.news-side .story:last-child { border-bottom: none; }
.with-photo .story-link { display: grid; grid-template-columns: 1fr minmax(94px, 32%); align-items: center; gap: 1rem; }
.with-photo .story-image { grid-column: 2; grid-row: 1; aspect-ratio: 1.17; }
.with-photo .story-copy { grid-column: 1; grid-row: 1; }
.news-grid.is-filtered { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.news-grid.is-filtered .news-side { display: contents; }
.news-grid.is-filtered .story { padding: 0; border: 0; }
.news-grid.is-filtered .story-link { display: block; }
.news-grid.is-filtered .story-image { aspect-ratio: 1.74; margin-bottom: .6rem; }
.news-grid.is-filtered .story-copy { padding: 0; }
.news-grid.is-filtered h3 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); }
.news-grid.is-filtered .summary { font-size: 1rem; }
.archive-teaser { border-top: 1px solid var(--line); margin: 3.7rem 0; padding: 1.6rem 0; }
.archive-teaser-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.pill { border: 1px solid var(--line); border-radius: 50px; padding: .6rem 1rem; text-decoration: none; white-space: nowrap; }
.pill:hover { border-color: var(--fg); }
.latest { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding: .75rem 0; }
.latest span { color: var(--muted); }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.2rem; margin-block-start: auto; border-top: 1px solid var(--line); padding: 1.45rem 0 2.25rem; color: var(--muted); }
.footer > a:last-child { margin-left: auto; }
.article, .index-page { max-width: 860px; margin: clamp(2rem, 6vw, 5rem) auto 4rem; }
.article h1, .index-page h1 { font: 650 clamp(2.55rem, 6vw, 5.4rem)/1.01 var(--serif); letter-spacing: -.052em; margin: .4rem 0 0; overflow-wrap: break-word; }
.back { display: inline-block; margin: 0 0 1.3rem; text-underline-offset: .2em; color: var(--muted); }
.dek { color: var(--muted); font: 400 clamp(1.15rem, 2.3vw, 1.52rem)/1.4 var(--serif); margin: .85rem 0 1.6rem; }
.article figure { margin: 1.65rem 0 2.25rem; }
.article figure img { aspect-ratio: 1.9; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.article-text { max-width: 64ch; font: 400 1.19rem/1.7 var(--serif); }
.article-text p { margin: 0 0 1.35rem; }
.article-text h2 { margin: 1.6rem 0 .55rem; font-size: 1.65rem; }
.article-text a, .article-related a { text-underline-offset: .16em; overflow-wrap: anywhere; }
.article-related { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.2rem; display: grid; gap: .5rem; }
.archive-list, .results { list-style: none; padding: 0; }
.archive-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.25rem 0 1rem; }
.archive-tabs .pill { min-height: 37px; padding: .3rem .82rem; color: var(--muted); }
.archive-tabs .pill:hover { border-color: var(--muted); }
.topic-filters button[aria-pressed="true"],
.archive-tabs .pill[aria-current="page"] { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.archive-list li, .results li { border-top: 1px solid var(--line); }
.archive-list a { display: grid; grid-template-columns: minmax(6.6rem, 19%) 1fr; padding: .95rem 0; gap: .55rem; text-decoration: none; }
.archive-list a > span { font: 600 1.25rem/1.28 var(--serif); }
.archive-list time, small { color: var(--muted); }
.archive-list small, .results small { display: block; font: 400 .9rem/1.4 var(--sans); margin-top: .2rem; }
.archive-list a:hover > span, .results a:hover { color: var(--accent); }
.search-results { position: absolute; z-index: 5; inset: calc(100% + .45rem) 0 auto; max-height: min(20rem, 55dvh); overflow: auto; overscroll-behavior: contain; padding: .45rem .8rem .4rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--paper); box-shadow: 0 .65rem 1.65rem #0002; }
.search-actions { display: flex; align-items: start; justify-content: space-between; gap: .3rem; }
.search-dates { min-width: 0; flex: 1; font-size: .92rem; color: var(--muted); }
.search-dates summary { width: fit-content; padding: .4rem 0; cursor: pointer; }
.search-close { flex: none; width: 34px; height: 34px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 50%; font-size: 1.35rem; cursor: pointer; }
.search-close:hover { color: var(--fg); }
.notice { color: var(--muted); font-size: .9rem; margin: .15rem 0 .3rem; }
.results { margin: 0; }
.results a { display: block; padding: .42rem .15rem; line-height: 1.3; text-decoration: none; }
.results a:focus-visible { outline-offset: -2px; }
@media (max-width: 980px) { .wrap { width: calc(100% - 56px); } }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .top-inner { min-height: 60px; grid-template-columns: 1fr auto auto; gap: .55rem .85rem; padding: .55rem 0 .72rem; }
  .top .brand { grid-column: 1; grid-row: 1; }
  .top .brand img { width: clamp(130px, 33vw, 178px); height: auto; }
  .top nav { grid-column: 2; grid-row: 1; }
  .top nav a:first-child { display: none; }
  .theme-switch { grid-column: 3; grid-row: 1; }
  .search-widget { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .news-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .news-side { border: 0; border-top: 1px solid var(--line); padding: 0; }
  .news-side .story:first-child { padding-top: 1rem; }
  .lead .story-copy { padding-top: .75rem; }
  .lead .summary { font-size: 1.02rem; }
  .archive-teaser { margin: 2.4rem 0 1.5rem; }
  .archive-list a { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .article-text { font-size: 1.1rem; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 24px); }
  .top .brand img { width: 114px; }
  .footer > span { display: none; }
}
.date-range { display: flex; flex-wrap: wrap; gap: .35rem .55rem; padding: .15rem 0 .4rem; }
.date-range label { display: flex; flex: 1 1 7rem; flex-direction: column; gap: .2rem; font-size: .92rem; }
.date-range input { width: 100%; min-height: 42px; color: var(--fg); background: var(--paper); border: 1px solid var(--line); border-radius: .4rem; padding: .35rem .55rem; }
