/* Less framing, more room for projects. */
.theme-switch { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); flex: none; margin-left: auto; }
.theme-switch button { appearance: none; border: 0; border-radius: 7px; padding: 7px 12px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: color .18s, background .18s, box-shadow .18s; }
.theme-switch button[aria-pressed="true"] { color: var(--accent-text); background: var(--paper); box-shadow: 0 1px 4px #12396c12; }
.theme-switch button:hover { color: var(--accent-text); }
.theme-switch button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.library-brand-row { margin-bottom: 22px; }
.total-description { border: 0; padding-left: 0; }
.total-description h2 { max-width: 12ch; line-height: 1.3; margin: 0; font-size: 20px; }
.distribution-row { justify-content: flex-start; }
.platform-bottom { margin-top: 16px; }
:root .project-table .project-column { width: 66%; }
.project-row { cursor: pointer; }
.project-row:focus-within { background: var(--surface-hover, #edf5ff); }
:root[data-theme="dark"] .project-row:focus-within { background: #172d48; }
.project-row .row-description { max-width: 58ch; }
#total-online,.platform-value,.row-online,#selected-online { font-variant-numeric: tabular-nums; }
[data-online-change="up"] { color: #16816b !important; text-shadow: 0 0 20px #36bb9d35; }
[data-online-change="down"] { color: #527add !important; text-shadow: 0 0 20px #648cf035; }
:root[data-theme="dark"] [data-online-change="up"] { color: #65ddbc !important; }
:root[data-theme="dark"] [data-online-change="down"] { color: #9bb9ff !important; }
.chart-footer:has([hidden]):not(:has(button:not([hidden]))) { display: none; }
#content { padding-bottom: 32px; }
@media (max-width: 760px) {
  .theme-switch button { padding: 7px 9px; }
  :root .project-table .project-column { width: auto; }
  .total-description h2 { font-size: 16px; }
  .library-brand-row { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .theme-switch button { transition: none; } }
/* Compact controls and intentional motion. */
.theme-switch { padding:0; border:0; background:transparent; }
.theme-switch .theme-toggle { width:44px;height:44px;padding:11px;border-radius:50%;color:var(--accent-text);background:var(--paper);border:1px solid var(--line);display:grid;place-items:center; }
.theme-toggle svg { width:22px;height:22px;grid-area:1/1;transition:transform .3s,opacity .25s; }
.theme-sun { opacity:0;transform:rotate(-70deg) scale(.65); }
[data-theme="dark"] .theme-sun { opacity:1;transform:rotate(0) scale(1); }
[data-theme="dark"] .theme-moon { opacity:0;transform:rotate(60deg) scale(.65); }
.theme-toggle:active { transform:scale(.92); }
.search-actions { justify-content:flex-end; }
#chart { touch-action:pan-y;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none; }
#chart.is-scrubbing { cursor:crosshair; }
.comparison-readout { border-top:1px solid var(--line);padding:14px 0 4px; }
.comparison-reading { display:grid;grid-template-columns:1fr auto;gap:4px 20px;padding:8px 0;font-variant-numeric:tabular-nums; }
.comparison-project { font-weight:600; }
.comparison-dates { color:var(--muted);font-size:12px;grid-column:1; }
.comparison-values { grid-column:1; }
.comparison-change { grid-column:2;grid-row:1/4;align-self:center;font-size:25px; }
.comparison-change[data-direction="up"] { color:#16816b; }
.comparison-change[data-direction="down"] { color:#cb5362; }
@media (max-width:760px) {
  #hero-motion { display:none !important; }
  .overview-summary { grid-template-columns:1fr; }
  .overview-summary .total-block { width:100%; }
  .theme-switch .theme-toggle { padding:11px; }
  .comparison-dates { font-size:11px; }
  .comparison-change { font-size:22px; }
}
@media (prefers-reduced-motion:reduce) { .theme-toggle svg,.theme-toggle { transition:none; } }
.project-logo .logo-fallback { color:var(--mark-color,#3374dc);font-weight:750;letter-spacing:-.06em;text-shadow:0 3px 10px color-mix(in srgb,var(--mark-color,#3374dc) 14%,transparent); }
.project-logo[data-logo-id="mta:unicorn"] img,.project-logo[data-logo-id="mta:tff"] img { filter:drop-shadow(0 1px 1px #25456580); }
.project-logo[data-logo-id="mta:wnashtime"] img { filter:drop-shadow(0 2px 2px #385d9270); }
.intro { position:relative; }
.intro .heading-line { padding-right:175px; }
.intro .search-actions { position:absolute;right:65px;top:0;margin-top:0; }
@media (max-width:1000px) { .intro .search-actions { right:0; }.intro .heading-line { padding-right:115px; } }
@media (max-width:760px) {
 .intro .heading-line { padding-right:44px; }
 .intro .search-actions { top:0; }
 .overview-summary { min-height:82px; }
 .total-description h2 { max-width:none; }
 .total-online { padding-right:0; }
 .overview-section .platform-cards { margin-top:14px; }
}
.plot-wrap .comparison-readout { position:absolute;left:44px;right:12px;top:8px;z-index:3;padding:8px 12px;background:var(--paper,#fff);border:1px solid var(--line);border-radius:10px;box-shadow:0 5px 22px #1c3d5c16;pointer-events:none; }
.comparison-reading { padding:3px 0;gap:2px 12px; }
.comparison-project { font-size:11px; }
.comparison-values { font-size:14px;font-weight:600; }
.comparison-change { font-size:20px; }
