.preferences-link { text-decoration: none; font-weight: 750; }
.preferences-page { max-width: 54rem; margin: 1rem auto; }
.preferences-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: 0.8rem; }
.preferences-options label { display: grid; gap: 0.4rem; font-weight: 650; }
.preferences-options select, [data-preferences-link] { width: 100%; min-height: 44px; padding: .4rem; background: var(--surface-strong); color: var(--text); border: 1px solid var(--line); }
.preferences-optout { display: block; margin: 1rem 0; }
.preferences-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: .9rem 0; }
.preferences-actions button, .preferences-actions a { min-height: 44px; }
.preferences-preview { margin-block: 1rem; }
.essential-cookie-notice button.cookie-notice-close { position: absolute; top: .25rem; right: .25rem; width: 44px; height: 44px; color: var(--text); background: var(--surface-muted); }
.essential-cookie-notice button.cookie-notice-confirm { position: static; display: block; margin-top: .5rem; padding-inline: .8rem; font-size: 1rem; font-weight: 700; border-color: var(--line); background: var(--surface-muted); }
.essential-cookie-notice[hidden] { display: none !important; }
.essential-cookie-notice { max-height: 80vh; overflow: auto; }
.preferences-link:focus-visible, .preferences-page :focus-visible, .essential-cookie-notice :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

html[data-pref-text="textsmall"] { --reading-scale: .90; }
html[data-pref-text="textlarge"] { --reading-scale: 1.24; --adaptive-image: 62%; --reading-thumbnail: 54px; }
html[data-pref-text="textxl"] { --reading-scale: 1.48; --adaptive-image: 46%; --reading-thumbnail: 43px; }
html[data-pref-text]:not([data-pref-text="textmedium"]) .page-content :is(
  .article-list-card__headline, .story-page-heading strong, .explore-story-card--brief h3,
  .explore-dev-fotp__headline, .explore-dev-row strong, .article-list-card__description,
  .article-content p, .article-card > p
) { font-size: calc(1rem * var(--reading-scale)); overflow-wrap: anywhere; }
html[data-pref-text]:not([data-pref-text="textmedium"]) .page-content :is(.headline-title, .article-card > h1) {
  font-size: calc(1.8rem * var(--reading-scale)); overflow-wrap: anywhere;
}
html[data-pref-text]:not([data-pref-text="textmedium"]) .page-content .explore-story-card--lead h3 {
  font-size: calc(clamp(1.65rem, 2.5vw, 1.95rem) * var(--reading-scale)); overflow-wrap: anywhere;
}
html[data-pref-text]:not([data-pref-text="textmedium"]) .page-content .explore-story-card--sublead h3 {
  font-size: calc(1.2rem * var(--reading-scale)); overflow-wrap: anywhere;
}
html[data-pref-image="imgadaptive"][data-pref-text="textlarge"] .page-content,
html[data-pref-image="imgadaptive"][data-pref-text="textxl"] .page-content,
html[data-pref-image="imgsmall"] .page-content { --view-image-width: var(--adaptive-image, 46%); }
html[data-pref-image="imgsmall"] .page-content { --view-image-width: 42%; --reading-thumbnail: 43px; }
html:is([data-pref-image="imgsmall"],[data-pref-image="imgadaptive"][data-pref-text="textlarge"],[data-pref-image="imgadaptive"][data-pref-text="textxl"]) .page-content :is(
  .explore-media, .story-page-media, .article-list-card__image, .article-media
) { max-inline-size: var(--view-image-width); }
html:is([data-pref-image="imgsmall"],[data-pref-image="imgadaptive"][data-pref-text="textlarge"],[data-pref-image="imgadaptive"][data-pref-text="textxl"]) .page-content .explore-dev-fotp__card > img {
  width: var(--reading-thumbnail); height: auto; aspect-ratio: 4 / 3; flex-basis: var(--reading-thumbnail);
}
html:is([data-pref-text="textlarge"],[data-pref-text="textxl"]) .page-content .explore-dev-fotp__headline {
  -webkit-line-clamp: unset; overflow-wrap: anywhere;
}
html[data-pref-image="imgfull"] .article-list-card { flex-direction: column; }
html[data-pref-image="imgfull"] .article-list-card__image { width: 100%; max-width: none; height: auto; }
html[data-pref-image="imgfull"] .article-list-card__image img { width: 100%; max-height: 32rem; object-fit: contain; }
html[data-pref-image="imgnone"] .page-content :is(.explore-media,.story-page-media,.article-list-card__image,
  .article-media,.article-hero-image,.explore-dev-fotp__card img,.explore-dev-row img,.explore-palate img) { display: none !important; }
html[data-pref-image="imgnone"] .page-content :is(.article-list-card,.story-page-link,.explore-dev-fotp__card,.explore-dev-row) { grid-template-columns: minmax(0, 1fr); }
html[data-pref-image="imgnone"] .page-content .explore-story-card__image-link { display: none; }

html[data-pref-theme="contrastlight"] body,
html[data-pref-theme="contrastdark"] body {
  --bg: #fff; --bg-accent: #fff; --surface: #fff; --surface-strong: #fff;
  --surface-muted: #f3f3f3; --text: #050505; --text-soft: #151515; --text-faint: #222;
  --line: #222; --brand: #003a83; --brand-strong: #003a83;
  background: var(--bg); color: var(--text);
}
html[data-pref-theme="contrastdark"] body.dark-mode {
  --bg: #000; --bg-accent: #000; --surface: #000; --surface-strong: #000;
  --surface-muted: #171717; --text: #fff; --text-soft: #fff; --text-faint: #e2e2e2;
  --line: #ddd; --brand: #9bd7ff; --brand-strong: #9bd7ff;
}
html:is([data-pref-theme="contrastlight"],[data-pref-theme="contrastdark"]) :is(.site-bar,.explore-dev-page,.explore-palate,.collection-toolbar) {
  --explore-dev-fotp-bg: var(--surface-muted); --explore-dev-radar-bg: var(--surface-muted);
  --explore-dev-sport-bg: var(--surface-muted); background: var(--surface); color: var(--text);
}
html:is([data-pref-theme="contrastlight"],[data-pref-theme="contrastdark"]) a { text-decoration: underline; }
html:is([data-pref-theme="contrastlight"],[data-pref-theme="contrastdark"]) :focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 3px; }

@media (max-width: 600px) {
  html[data-pref-text]:not([data-pref-text="textmedium"]) .page-content .explore-story-card--lead h3 {
    font-size: calc(1.42rem * var(--reading-scale));
  }
}
