.trend { --trend-ink: #152c39; --trend-text: #425866; --trend-rule: #c8d1d3; --trend-accent: #17666a; min-width: 0; color: var(--trend-ink); }
.trend *, .trend *::before, .trend *::after { box-sizing: border-box; }
.trend [hidden] { display: none !important; }
.trend h2, .trend h3, .trend p, .trend h4, .trend figure { margin: 0; }
.trend .trend-section-head h2 { font: 400 clamp(2.05rem, 3.5vw, 3.3rem)/1.12 Georgia, serif; letter-spacing: -.04em; }
.trend-section-head p { color: var(--trend-text); margin-top: .6rem; max-width: 45rem; line-height: 1.55; }
.trend-groups { display: flex; flex-wrap: wrap; gap: .43rem; margin-block: 1.35rem 1rem; }
.trend select, .trend button { font: inherit; }
.trend-groups button { background: transparent; color: var(--trend-text); border: 1px solid var(--trend-rule); border-radius: 2px; cursor: pointer; padding: .45rem .85rem; min-height: 2.5rem; font-size: .9rem; line-height: 1.25; }
.trend-groups button[aria-pressed=true] { color: #fff; background: var(--trend-ink); border-color: var(--trend-ink); }
.trend-groups button:hover { border-color: var(--trend-ink); }
.trend :focus-visible { outline: 2px solid #16749c; outline-offset: 3px; }
.trend-workspace { border: 1px solid var(--trend-rule); background: #fff; }
.trend-controls { display: flex; flex-wrap: wrap; gap: .8rem 1.3rem; padding: .95rem clamp(1rem, 2.4vw, 1.8rem); background: #f2f4f2; border-bottom: 1px solid var(--trend-rule); }
.trend-controls label { color: var(--trend-text); font-size: .84rem; font-weight: 600; display: flex; gap: .5rem; align-items: center; max-width: 100%; }
.trend-controls select { display: block; min-height: 2.45rem; max-width: 100%; min-width: 0; background: #fff; border: 1px solid #aebabe; color: var(--trend-ink); border-radius: 2px; padding: .32rem .45rem; }
.trend-chart-panel { padding: clamp(1rem, 2.7vw, 2.2rem); }
.trend .trend-meta, .trend .trend-status, .trend-sources, .trend .trend-figure figcaption { font-size: .84rem; line-height: 1.45; color: var(--trend-text); }
.trend .trend-chart-panel h3 { font: 400 clamp(1.65rem, 2.9vw, 2.55rem)/1.12 Georgia, serif; margin: .25rem 0 .4rem; letter-spacing: -.035em; }
.trend-stats { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem 1rem; font-variant-numeric: tabular-nums; }
.trend-stats strong { font-size: clamp(1.65rem, 3.4vw, 2.65rem); font-weight: 600; line-height: 1.15; }
.trend-stats span { color: var(--trend-text); font-size: .95rem; }
.trend-plot { margin-block: .7rem .25rem; width: 100%; height: clamp(13rem, 24vw, 18rem); }
.trend-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.trend-plot .tick { fill: #425866; font: 12px Arial, sans-serif; }
.trend-plot .gridline { stroke: #dce2e1; stroke-width: 1; }
.trend-plot .zero { stroke: #83939a; stroke-width: 1.2; }
.trend-plot .series-line { fill: none; stroke: var(--trend-accent); stroke-linejoin: round; stroke-linecap: round; stroke-width: 2.6; }
.trend-plot .dot { fill: var(--trend-accent); }
.trend-plot .guide { stroke: #6d7f84; stroke-dasharray: 3 3; }
.trend-plot .marker { fill: var(--trend-accent); stroke: white; stroke-width: 2; }
.trend .trend-readout { display: block; min-height: 1.4rem; color: var(--trend-ink); font-size: .85rem; font-variant-numeric: tabular-nums; }
.trend-analysis { border-left: 3px solid #ad8952; padding: .15rem 0 .15rem .85rem; margin-block: 1rem; }
.trend-analysis h4 { font-size: .94rem; margin-bottom: .25rem; }
.trend-analysis p { color: #324954; line-height: 1.55; max-width: 79ch; }
.trend-sources { display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.trend-sources a, .trend noscript a { color: #25586d; text-decoration: underline; text-underline-offset: .19em; }
.trend-disclosure { border-top: 1px solid var(--trend-rule); }
.trend-disclosure summary { cursor: pointer; padding: .85rem clamp(1rem, 2.4vw, 1.8rem); font-weight: 600; }
.trend-disclosure summary span { color: var(--trend-text); font-weight: 400; font-size: .86rem; margin-left: .3rem; }
.trend-all { margin: .8rem 0; border: 1px solid var(--trend-rule); background: #fff; }
.trend-table-box { max-height: 23rem; overflow: auto; padding-inline: clamp(.55rem, 2.4vw, 1.8rem); }
.trend-table-box table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.trend-table-box th, .trend-table-box td { padding: .47rem .35rem; border-top: 1px solid #d9dfdf; text-align: left; }
.trend-table-box thead th { position: sticky; top: 0; color: var(--trend-text); background: #f6f7f5; }
.trend-table-box :is(th,td):last-child { text-align: right; }
.trend-table-box button { padding: .2rem .05rem; border: 0; background: none; color: #245d70; text-align: left; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.trend-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 34rem) {
  .trend-controls { align-items: stretch; gap: .45rem; }
  .trend-controls label { width: 100%; justify-content: space-between; }
  .trend-controls select { max-width: 70%; }
  .trend-groups { gap: .3rem; }
  .trend-groups button { padding: .4rem .55rem; }
  .trend-table-box table { font-size: .8rem; }
}
