/* Blueshift "Display settings": panel + the preference classes it sets on <html>. Shared by MOCKUP-KIT and SITE-STARTER.
   Restyle per concept with --ds-bg --ds-fg --ds-accent --ds-line --ds-font (defaults are neutral, square-cornered). */
@font-face{font-family:"Atkinson Hyperlegible Next";src:url("../fonts/atkinson-hyperlegible-next-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Atkinson Hyperlegible Next";src:url("../fonts/atkinson-hyperlegible-next-700.woff2") format("woff2");font-weight:700;font-display:swap}

.ds-fab{position:fixed;right:0;bottom:18px;z-index:901;min-height:44px;padding:10px 14px;
  font:600 13px/1 var(--ds-font,var(--f-text,system-ui)),sans-serif;cursor:pointer;
  background:var(--ds-bg,#151412);color:var(--ds-fg,#F4F1EA);border:0;border-right:4px solid var(--ds-accent,#E2A72E);
  box-shadow:0 3px 10px rgba(0,0,0,.2)}
.ds-fab:focus-visible,.ds-panel :focus-visible{outline:3px solid var(--ds-accent,#E2A72E);outline-offset:2px}
html.no-js .ds-fab{display:none}

.ds-panel{position:fixed;right:12px;top:12px;z-index:950;width:min(340px,calc(100vw - 24px));max-height:calc(100vh - 96px);overflow:auto;
  padding:18px 18px 14px;background:var(--ds-bg,#151412);color:var(--ds-fg,#F4F1EA);
  border-top:4px solid var(--ds-accent,#E2A72E);box-shadow:0 10px 30px rgba(0,0,0,.35);
  font:400 16px/1.4 var(--ds-font,var(--f-text,system-ui)),sans-serif}
.ds-panel[hidden]{display:none}
.ds-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.ds-title{margin:0;font:700 18px/1.2 var(--ds-font,var(--f-text,system-ui)),sans-serif}
.ds-group{margin:0 0 12px;padding:10px 0 0;border:0;border-top:1px solid var(--ds-line,rgba(244,241,234,.25))}
.ds-group legend{padding:0;margin-bottom:6px;font-weight:700;font-size:14px;letter-spacing:.04em;text-transform:uppercase}
.ds-group label{display:flex;align-items:center;gap:10px;min-height:36px;cursor:pointer}
.ds-group input{width:20px;height:20px;margin:0;accent-color:var(--ds-accent,#E2A72E)}
.ds-close,.ds-reset{min-height:36px;min-width:44px;padding:6px 12px;font:600 14px/1 inherit;cursor:pointer;
  background:transparent;color:inherit;border:2px solid currentColor;border-radius:2px}
.ds-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ds-note{margin:0;font-size:13px;opacity:.85}

/* ---- the preferences themselves ---- */
/* Text size is applied by display-settings.js: reading-size text (< 32px) is scaled from its computed size,
   headings that are already large are left alone, so layouts and media queries stay intact. */
/* Bigger text or a wider font must never push the page sideways: let things wrap and shrink */
:is(html.ds-text-1,html.ds-text-2,html.ds-readable) body :not(svg,svg *){min-width:0;overflow-wrap:break-word;hyphens:auto}
@media (max-width:640px){
  :is(html.ds-text-1,html.ds-text-2,html.ds-readable) body :not(svg,svg *){white-space:normal!important;letter-spacing:0!important;flex-wrap:wrap!important}
  :is(html.ds-text-1,html.ds-text-2,html.ds-readable) body :is(img,video,table,pre,a,button){max-width:100%}
  :is(html.ds-text-1,html.ds-text-2,html.ds-readable) body a{overflow-wrap:anywhere;word-break:break-word}  /* long emails/URLs */
}

/* Higher contrast: stronger text, no faint or shadowed copy, solid focus. Sites may add their own html.ds-contrast rules. */
html.ds-contrast body :is(header,main,footer){filter:contrast(1.3)}
html.ds-contrast body *{text-shadow:none!important}
html.ds-contrast body :is(p,li,dd,dt,td,th,small,figcaption,label,span){opacity:1!important}
html.ds-contrast :focus-visible{outline:4px solid currentColor!important;outline-offset:3px}

/* Pause animations: same as prefers-reduced-motion */
html.ds-calm *,html.ds-calm *::before,html.ds-calm *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}

html.ds-underline a{text-decoration:underline!important;text-underline-offset:.18em}

html.ds-readable body,html.ds-readable body :is(h1,h2,h3,h4,h5,h6,p,li,a,span,dd,dt,td,th,label,button,small,figcaption,strong,em,blockquote){
  font-family:"Atkinson Hyperlegible Next",system-ui,sans-serif!important;letter-spacing:.01em!important;word-spacing:.06em!important;font-style:normal}
html.ds-readable body p,html.ds-readable body li{line-height:1.6!important}
