/* base.css: element defaults for pages whose <html> has class "ds" (every layout). All in :where(), so any class wins.
   The layout chrome (top bar, toasts, dialogs, footer) also carries class "ds", so it renders the same everywhere.
   Root font size stays the browser's (1rem = 16px, or what the reader set): the UI size is set on <body>.
   Type roles: h1 is a title, set in the serif (Newsreader); h2–h4 and everything else are the sans (Schibsted
   Grotesk). Marketing and guest surfaces may set their h2 in the serif too (their own CSS); the app keeps h2 sans. */
:where(html.ds){background:var(--ds-bg);color:var(--ds-text);font-family:var(--ds-font);line-height:var(--ds-lh-ui);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;text-size-adjust:100%;
  font-kerning:normal}
:where(.ds:not(html)){font-family:var(--ds-font);font-size:var(--ds-fs-ui);line-height:var(--ds-lh-ui);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
:where(.ds) :where(*,*::before,*::after){box-sizing:border-box}
:where(.ds) :where(body){margin:0;min-height:100vh;min-height:100svh;font-size:var(--ds-fs-ui);font-weight:var(--ds-w-regular)}
:where(.ds) :where(h1,h2,h3,h4,p,ul,ol,dl,dd,figure,blockquote,pre){margin:0}
:where(.ds) :where(h1,h2,h3,h4){font-weight:var(--ds-w-strong);line-height:var(--ds-lh-head);letter-spacing:-.01em;text-wrap:balance}
:where(.ds) :where(h1){font-family:var(--ds-serif);font-size:var(--ds-fs-xl);font-weight:var(--ds-w-title);letter-spacing:var(--ds-track-title);line-height:1.08}
:where(.ds) :where(h2){font-size:var(--ds-fs-md)}
:where(.ds) :where(h3){font-size:var(--ds-fs-ui)}
:where(.ds) :where(p+p){margin-top:var(--ds-s3)}
:where(.ds) :where(a){color:var(--ds-link);text-decoration-line:underline;text-decoration-thickness:1px;text-underline-offset:.2em;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent)}
:where(.ds) :where(a:hover){text-decoration-color:currentColor}
:where(.ds) :where(img,video){max-width:100%;height:auto}
:where(.ds) :where(button,input,select,textarea){font:inherit;color:inherit;letter-spacing:inherit}
:where(.ds) :where(code,kbd,samp){font-family:var(--ds-mono);font-size:.9em}
:where(.ds) :where(table){border-collapse:collapse}
:where(.ds) :where(strong,b){font-weight:var(--ds-w-strong)}
:where(.ds) :where(em,i){font-style:italic}
:where(.ds) :where(:focus-visible){outline:2px solid var(--ds-focus);outline-offset:2px}
:where(.ds) :where(::selection){background:var(--ds-text);color:var(--ds-bg)}
:where(.ds) ::marker{font-variant-numeric:normal}   /* browsers give list numbers tabular figures: "1 ." in this face */
:where(.ds) :where([hidden]){display:none!important}
:where(.ds) :where(form.button_to){display:contents}
:where(.ds) :where(hr){height:0;margin:var(--ds-s5) 0;border:0;border-top:1px solid var(--ds-line)}
.ui-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ui-skip{position:absolute;left:12px;top:-100px;z-index:var(--ds-z-skip);padding:10px 16px;border-radius:var(--ds-r-ctl);background:var(--ds-inverse);color:var(--ds-on-inverse);font:var(--ds-w-medium) var(--ds-fs-ui)/1.2 var(--ds-font);box-shadow:var(--ds-shadow-1)}
.ui-skip:focus{top:12px}
.ui-muted{color:var(--ds-text-muted)} .ui-small{font-size:var(--ds-fs-hint)}
.ui-num{font-variant-numeric:tabular-nums}   /* only for a column of numbers that must line up: it also widens . , : in this face */
.ui-serif{font-family:var(--ds-serif);font-weight:var(--ds-w-title);letter-spacing:var(--ds-track-title)}   /* a name or title in running UI */
.ui-code{font-family:var(--ds-mono);font-size:.92em;overflow-wrap:anywhere}
.ui-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--ds-s5)} .ui-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s3)}
.ui-stack--sm{gap:var(--ds-s3)} .ui-stack--lg{gap:var(--ds-s6)}
.ui-row--end{justify-content:flex-end} .ui-row--between{justify-content:space-between}
@media (prefers-reduced-motion:reduce){
  :where(.ds) :where(*,*::before,*::after){animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
