/* Shared styles for the situation pages. Tokens and components copied from index.html. */
/* ---------- tokens ---------- */
:root {
  --charcoal: #353A3D;   /* page: measured average of the portrait background */
  --steel:    #1D2023;   /* card faces, text on ice */
  --paper:    #E9ECEE;   /* text, QR plate */
  --ice:      #9CC7EA;   /* primary button, links, focus, contactless mark */
  --muted:    #AEB7BE;   /* secondary text */
  --line:     #7C868E;   /* outline of secondary buttons */
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Sometype Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--charcoal); color-scheme: dark; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--paper);
  font: 400 1.0625rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: var(--ice); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: rgba(156, 199, 234, .35); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -80px; z-index: 10;
  background: var(--paper); color: var(--steel); padding: .75rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.25rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--paper);
  font: 600 1rem/1.1 var(--sans); text-decoration: none; text-align: center; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: rgba(233, 236, 238, .09); border-color: var(--paper); text-decoration: none; }
.btn-primary { background: var(--ice); border-color: var(--ice); color: var(--steel); }
.btn-primary:hover { background: #B6D6F0; border-color: #B6D6F0; }

.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.actions .btn { padding: 0 .25rem; font-size: .9375rem; }
.actions .btn-primary { grid-column: 1 / -1; font-size: 1.0625rem; }
.no-js .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.js-share { display: none; }
.js .js-share { display: inline-flex; }
.status { min-height: 1.7em; margin-top: .75rem; font-size: .9375rem; color: var(--muted); }
.status a { color: var(--ice); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid rgba(124, 134, 142, .55); border-radius: 999px;
  background: rgba(233, 236, 238, .06); color: var(--paper);
  font-weight: 500; font-size: .96875rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: border-color .15s, color .15s, background-color .15s;
}
.chip:hover { border-color: var(--ice); color: var(--ice); background: rgba(156, 199, 234, .09); }

/* ---------- sections ---------- */
.col { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.block { padding-top: clamp(80px, 11vw, 144px); }
.h2 { font: 700 clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem)/1.08 var(--sans); letter-spacing: -.028em; text-wrap: balance; }
.h2-xl { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.4rem); line-height: 1.04; letter-spacing: -.032em; }
.lead { margin-top: 1.5rem; font: 500 clamp(1.25rem, 1.05rem + .9vw, 1.65rem)/1.34 var(--sans); letter-spacing: -.012em; text-wrap: pretty; }

.areas { display: grid; gap: clamp(2.25rem, 5vw, 3.25rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
.area-h { font: 680 clamp(1.4rem, 1.2rem + .7vw, 1.7rem)/1.2 var(--sans); letter-spacing: -.02em; }
.area-p { margin-top: .55rem; max-width: 37rem; font-size: 1.125rem; color: var(--muted); text-wrap: pretty; }

/* the three problems */
.problem, .block[id] { scroll-margin-top: 16px; }
.prose { margin-top: 1.75rem; max-width: 38rem; font-size: 1.125rem; text-wrap: pretty; }
.sub-h { margin-top: 2.5rem; font: 700 1.25rem/1.3 var(--sans); letter-spacing: -.012em; }
.steps { margin-top: .9rem; max-width: 38rem; padding-left: 1.2rem; list-style: disc; font-size: 1.0625rem; }
.steps li { padding-left: .35rem; text-wrap: pretty; }
.steps li + li { margin-top: .65rem; }
.steps li::marker { color: var(--muted); }
.know { margin-top: 2rem; max-width: 38rem; color: var(--muted); text-wrap: pretty; }
.steps-lead { margin-top: 1.5rem; }
.know strong { color: var(--paper); font-weight: 600; }

.work { display: grid; gap: 1.15rem; margin-top: clamp(2rem, 4vw, 3rem); }
.work-row { display: grid; grid-template-columns: clamp(5.25rem, 15vw, 7.5rem) minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
.work-row dt { font-weight: 700; font-size: 1.1875rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.work-row dd { max-width: 38rem; text-wrap: pretty; }
.fineprint { margin-top: 1.75rem; font-size: .9375rem; color: var(--muted); }

.facts { display: grid; gap: 1.5rem; margin-top: 2.25rem; }
.fact { display: grid; gap: .2rem; }
.fact dt { color: var(--muted); }
.fact dd { text-wrap: pretty; }
.line { display: block; }
.line + .line { margin-top: .3rem; }
.more { margin-top: 2.75rem; padding-top: .35rem; border-top: 1px solid rgba(124, 134, 142, .5); }
.more summary {
  display: flex; align-items: center; gap: .7rem; min-height: 52px; cursor: pointer;
  font-weight: 600; list-style: none; border-radius: 6px;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: ""; width: .5rem; height: .5rem; margin-top: -.2rem;
  border-right: 2px solid var(--ice); border-bottom: 2px solid var(--ice);
  transform: rotate(45deg); transition: transform .2s;
}
.more[open] summary::after { transform: rotate(-135deg); margin-top: .2rem; }
.more-lg { margin-top: 0; padding-top: .5rem; }
.more-lg summary { min-height: 64px; font: 700 clamp(1.35rem, 1.2rem + .7vw, 1.7rem)/1.2 var(--sans); letter-spacing: -.02em; }
.more-lg .more-intro { margin-top: .5rem; max-width: 37rem; font-size: 1.0625rem; color: var(--muted); text-wrap: pretty; }
.more-lg .areas { margin-top: 2rem; gap: 1.9rem; padding-bottom: .5rem; }
.more-lg .area-h { font-size: 1.25rem; }
.more-lg .area-p { font-size: 1.0625rem; }
.career { display: grid; gap: 1.35rem; margin-top: 1rem; padding-bottom: .5rem; }
.career-row { display: grid; gap: .1rem; }
.career-row dt { color: var(--muted); font-variant-numeric: tabular-nums; }
.career-row dd strong { font-weight: 600; }
.career-row dd span { display: block; color: var(--muted); }

.contact .actions { margin-top: 2rem; }
.contact .facts { margin-top: 2.25rem; }

.foot { margin-top: clamp(96px, 12vw, 160px); padding: 0 0 112px; }
.foot p { max-width: 36rem; font-size: .9375rem; color: var(--muted); }
.foot-name { color: var(--paper) !important; font-weight: 600; }
.legal { margin-top: 1.25rem; }
.foot-name + p { margin-top: .1rem; }

/* ---------- subpages ---------- */
.top { border-bottom: 1px solid rgba(124, 134, 142, .35); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 720px; margin: 0 auto; padding: 12px var(--gutter); }
.brand { color: var(--paper); font-weight: 700; letter-spacing: -.01em; text-decoration: none; line-height: 1.2; }
.brand:hover { text-decoration: none; color: var(--ice); }
.brand-cred { color: var(--muted); font-weight: 500; white-space: nowrap; }
.top-call { min-height: 44px; padding: 0 .9rem; font-size: .9375rem; }
.top-call-l { display: none; }
.actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* no Share button on subpages */
.crumbs { margin-top: 1.5rem; font-size: .9375rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.page-h1 { margin-top: clamp(2rem, 6vw, 3.5rem); }
.quick-box { margin-top: 2rem; max-width: 38rem; padding: 1.1rem 1.25rem 1.2rem;
  border: 1px solid rgba(156, 199, 234, .45); border-radius: 12px; background: rgba(156, 199, 234, .06); }
.quick-lbl { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ice); }
.quick { margin-top: .4rem; font-size: 1.125rem; text-wrap: pretty; }
.byline { margin-top: 1.25rem; max-width: 38rem; font-size: .9375rem; color: var(--muted); text-wrap: pretty; }
.byline-sep { margin: 0 .3rem; }
.block.sub { padding-top: clamp(56px, 8vw, 96px); }
.block.sub .h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem); }
.block.sub .h2 + .prose { margin-top: 1.25rem; }
.terms { display: grid; gap: .9rem; margin-top: 1.4rem; max-width: 38rem; }
.terms dt { font-weight: 650; }
.terms dd { margin: .15rem 0 0; color: var(--muted); text-wrap: pretty; }
.tbl-wrap { margin-top: 1.75rem; max-width: 40rem; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.4; }
.tbl caption { text-align: left; font-weight: 650; margin-bottom: .6rem; }
.tbl th, .tbl td { padding: .6rem .55rem; text-align: left; vertical-align: top; border-top: 1px solid rgba(124, 134, 142, .45); }
.tbl thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: .875rem; }
.tbl tbody th { font-weight: 650; }
.tbl td { color: #D5DADE; }
@media (max-width: 559px) {   /* narrow screens: each row becomes a small card */
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl caption { display: block; width: 100%; }
  .tbl tr { padding: .75rem 0; border-top: 1px solid rgba(124, 134, 142, .45); }
  .tbl th, .tbl td { padding: .15rem 0; border-top: 0; }
  .tbl tbody th { font-size: 1rem; margin-bottom: .25rem; }
  .tbl td::before { content: attr(data-label) " "; color: var(--muted); font-weight: 600; }
}
.fig { margin: 2rem 0 0; max-width: 26rem; }
.dg { display: block; width: 100%; height: auto; }
.dg .dg-t { font: 700 15px var(--sans); fill: var(--paper); }
.dg .dg-s { font: 400 12px var(--sans); fill: var(--muted); }
.fig figcaption { margin-top: .75rem; font-size: .9375rem; color: var(--muted); text-wrap: pretty; }
.source { margin-top: 1.25rem; font-size: .9375rem; color: var(--muted); }
.author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; max-width: 38rem;
  padding: 1.25rem; border: 1px solid rgba(124, 134, 142, .5); border-radius: 12px; background: rgba(29, 32, 35, .45); }
.author-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-lbl { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.author-name { margin-top: .2rem; font-weight: 700; font-size: 1.125rem; }
.author-name a { color: var(--paper); text-decoration: none; }
.author-name a:hover { color: var(--ice); text-decoration: underline; }
.author-role { margin-top: .15rem; font-size: .9375rem; color: var(--muted); }
.author-facts { margin-top: .8rem; padding-left: 1.1rem; list-style: disc; font-size: .9375rem; }
.author-facts li + li { margin-top: .35rem; }
.author-facts li::marker { color: var(--muted); }
.faq { display: grid; gap: clamp(1.9rem, 4vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.faq-q { font: 680 clamp(1.2rem, 1.1rem + .45vw, 1.4rem)/1.25 var(--sans); letter-spacing: -.015em; text-wrap: balance; }
.faq-a { margin-top: .55rem; max-width: 38rem; font-size: 1.0625rem; color: var(--muted); text-wrap: pretty; }
.rels { display: grid; gap: .75rem; margin-top: 1.5rem; }
.rel { font-weight: 600; font-size: 1.125rem; }
.updated { margin-top: 1rem; }

@media (min-width: 640px) {
  .actions { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px; }
  .actions .btn-primary { justify-self: start; }
  .actions .btn { padding: 0 1rem; font-size: 1rem; }
  .actions .btn-primary { padding: 0 1.2rem; font-size: 1.0625rem; }
  .top-call-l { display: inline; }
  .author { grid-template-columns: 96px minmax(0, 1fr); gap: 1.25rem; }
  .author-img { width: 96px; height: 96px; }
}
