:root{--ui-page:#f7f8f3;--ui-surface:#ffffff;--ui-soft:#edf2e9;--ui-ink:#18372e;--ui-muted:#5b7064;--ui-line:#d5dfd3;--ui-accent:#1c6751;}
html[data-theme=dark]{--ui-page:#121f1b;--ui-surface:#1a2b24;--ui-soft:#23382d;--ui-ink:#edf5e9;--ui-muted:#b2c9b8;--ui-line:#3b5747;--ui-accent:#89d5b0;}
/* UI refinement v1 — brand palettes, readable controls and consistent geometry. */
html{color-scheme:light;scrollbar-gutter:stable}html[data-theme=dark]{color-scheme:dark}
body{background:var(--ui-page);color:var(--ui-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
*,*::before,*::after{box-sizing:border-box}main,section,article,form,fieldset{min-width:0}
button,input,select,textarea{font:inherit}input,select,textarea{color:var(--ui-ink);accent-color:var(--ui-accent)}
input::placeholder,textarea::placeholder{color:var(--ui-muted);opacity:.85}
:is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px}
h1,h2,h3{text-wrap:balance}p{line-height:1.65}button,a,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.appearance-control{display:flex;align-items:center;gap:12px;grid-column:1/-1;font:13px/1.5 Arial,sans-serif;letter-spacing:0;margin:24px 0 0}
.appearance-control select{min-height:40px;padding:8px 32px 8px 12px;border:1px solid currentColor;border-radius:4px;background:transparent;color:inherit;width:auto;max-width:180px}
.appearance-control option{background:var(--ui-page);color:var(--ui-ink)}
@media(max-width:720px){input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}h1{overflow-wrap:normal}button{line-height:1.35}.appearance-control{margin-top:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

:root{--paper:var(--ui-page);--ink:var(--ui-ink);--muted:var(--ui-muted);--line:var(--ui-line);--green:var(--ui-accent)}
.top,.topbar{background:var(--ui-page)!important;color:var(--ui-ink)}.links a{color:var(--ui-ink);min-height:44px;display:inline-flex;align-items:center}.nav{gap:24px}.links{gap:22px}.btn{min-height:46px;font-size:14px;line-height:1.4;padding:12px 20px;align-items:center}.shell{padding-inline:32px}.footer{font-size:13px;line-height:1.7}.footer a{display:inline-block;padding-block:5px}.card h2,.card h3{line-height:1.25}.card p,.lede{line-height:1.75}.small{font-size:13px;line-height:1.6}input,select{min-height:46px;padding:11px 13px;background:var(--ui-surface);color:var(--ui-ink);border:1px solid var(--ui-line)}.actions{gap:12px;flex-wrap:wrap}
@media(max-width:760px){.shell{padding-inline:20px}.nav{min-height:78px;gap:14px;align-items:center}.links{gap:4px 16px}.links a{font-size:13px}.logo{max-width:180px;width:38vw}.hero,.grid,.cards,.account-grid{gap:24px}.hero h1{font-size:clamp(38px,10vw,54px);line-height:1.08}.editorial-hero h1{font-size:clamp(38px,10vw,54px)}.editorial-hero .hero-copy{padding:32px 24px}.card{padding:24px}.btn{min-height:48px}.footer{padding-top:28px}.dialoghead{gap:16px}.membership-wallets{gap:12px}}
html[data-theme=dark] .preview,html[data-theme=dark] .card,html[data-theme=dark] .market-card,html[data-theme=dark] .focus-story,html[data-theme=dark] .artwork-card,html[data-theme=dark] .price-canvas,html[data-theme=dark] .rail-story,html[data-theme=dark] .library-market,html[data-theme=dark] .ticker-band,html[data-theme=dark] .market-tape,html[data-theme=dark] .chip,html[data-theme=dark] .symbol-nav button,html[data-theme=dark] .publication-strip button,html[data-theme=dark] dialog,html[data-theme=dark] .dialog,html[data-theme=dark] .modal,html[data-theme=dark] .account-panel{background:var(--ui-surface);color:var(--ui-ink);border-color:var(--ui-line)}
html[data-theme=dark] .previewtop,html[data-theme=dark] .band,html[data-theme=dark] .notice,html[data-theme=dark] .selected-evidence,html[data-theme=dark] .rail-story.selected,html[data-theme=dark] .news-photo figcaption,html[data-theme=dark] .dialoghead .icon-button:hover{background:var(--ui-soft);color:var(--ui-ink);border-color:var(--ui-line)}
html[data-theme=dark] .btn:not(.primary):not(.light){background:var(--ui-surface);color:var(--ui-ink);border-color:var(--ui-line)}
html[data-theme=dark] .btn.primary,html[data-theme=dark] .chip[aria-pressed=true],html[data-theme=dark] .symbol-nav button[aria-pressed=true],html[data-theme=dark] .publication-strip button[aria-pressed=true]{background:var(--ui-accent);color:#12271b;border-color:var(--ui-accent)}
html[data-theme=dark] .top .logo,html[data-theme=dark] .topbar .logo{filter:brightness(0) invert(.94)}
html[data-theme=dark] .notice.error{background:#402e24;border-color:#7e5640;color:#ffcda7}
html[data-theme=dark] .editorial-hero .btn:not(.primary){background:#ffffff10;color:#fff;border-color:#8ea89a}
@media(max-width:760px){.nav{flex-wrap:wrap;padding-block:18px 10px;gap:10px}.logo{width:190px;max-width:62vw}.shell.nav .links{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;gap:0 16px}.shell.nav .links a{flex-shrink:0;font-size:12px;min-height:44px;padding-inline:2px}.top .shell{padding-inline:20px}}
.library-topbar .library-nav{display:flex;flex-wrap:wrap;align-items:center;gap:0 14px}.library-topbar .library-nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--ui-ink)}
@media(max-width:760px){.library-topbar .shell{height:auto;align-items:flex-start;flex-direction:column;gap:0;padding-block:8px}.library-topbar .library-nav{width:100%}}

/* ST-06b: 44px sweep for body links */
.section-heading a,main section a.main-link{display:inline-flex;align-items:center;min-height:44px}
.market-card a{display:inline-flex;align-items:center;min-height:44px}
.official-footer-links a{display:inline-flex;align-items:center;min-height:44px}
main a{min-height:44px;display:inline-flex;align-items:center}

/* ST-06c: footer utility links */
footer .shell > div a,footer .shell div a{display:inline-flex;align-items:center;min-height:44px}

/* ST-06d: footer links beat the 32px rule */
.footer a{display:inline-flex;align-items:center;min-height:44px}

/* Keep native details markers, keyboard behavior and disclosure/consent logic. */
#st-analytics-preferences > summary,
#source-disclosure > summary {
  min-height:44px;
  line-height:22px;
  padding-block:11px;
  cursor:pointer;
}
#entities > button.entity {min-width:44px;min-height:44px}

/* On the narrow pricing page, fit the entire payment button without shrinking targets. */
@media (max-width:440px){
  body.st-purchase:not(.st-checkout) #plan-form {row-gap:14px}
  body.st-purchase:not(.st-checkout) #plan-form .plan-summary dl {margin-block-end:18px}
}
