@layer base, vendor, site;
@layer base {
/* Base layer (order 027, DES-011): fonts, the reset, design tokens and the element defaults that are global on
   purpose. It is the lowest layer (scripts/site/stylesheets.js): every other rule on the site wins over it.

   Component boundary. A component with its own markup and styles marks its root with data-component (for example
   Läget just nu and the hero shortcuts). The element defaults for h1, h2, p, ul and li below (and the section spacing in input.css) stop at that boundary, so a
   component never has to undo them. The :where() keeps each selector exactly as specific as the bare element. */
/* Self-hosted fonts */
@font-face {
  font-family: 'Josefin Slab';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/josefin-slab-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Exact app light theme */
  --bg-base:      #F1F5F0;
  --bg-card:      #FFFFFF;
  --bg-chip:      #E4EBE2;
  --bg-deeper:    #E2E9DF;
  --footer-stone: #3F463C;
  --separator:    #D9E1D6;

  --text-primary:   #1C1C1E;
  --text-secondary: #3C3C3E;
  --text-muted:   #636365;
  --text-subtle:    #6C6C6E;

  --brand:         #9CAF88;
  --primary:       #4A5B3D;
  --primary-dark:  #2E3A24;
  --primary-light: #BDD0A8;
  --primary-pale:  #E8F0E1;

  --secondary:      #87A2B6;
  --secondary-pale: #D8E4EE;

  --tertiary:      #D9C5B2;
  --tertiary-pale: #F2EBE3;

  --warning-bg: #FEF3C7;
  --error:      #C0392B;

  /* Content measures exclude the viewport gutter. */
  --layout-standard: 1060px;
  --layout-reading: 782px;
  --layout-article: 43rem;
  --layout-workspace: 1264px;
  --layout-gutter: clamp(16px, 3vw, 24px);

  /* Shared controls and surface roles */
  --control-radius: 10px;
  --control-line: #778573;
  --action-hover: #d5e3cc;
  --action-pressed: #c9dabf;
  --action-danger: #a03227;
  --action-danger-hover: #f8e8e4;
  --card-radius: 14px;
  --panel-radius: 16px;
  --panel-shadow: 0 1px 2px rgb(24 34 28 / .06), 0 8px 22px -10px rgb(24 34 28 / .22);
  --overlay-shadow: 0 25px 58px -18px rgb(24 34 28 / .40), 0 2px 8px rgb(24 34 28 / .08);

  /* App dark theme (for phone mockup) */
  --dark-bg:   #1E1D1B;
  --dark-card: #2A2926;
  --dark-chip: #383633;
  --dark-sep:  #3D3B38;
  --dark-text: #F0EDE8;
  --dark-muted:#9C9891;
  --dark-subtle:#787470;
}


/* Surface tokens of the site identity (orders 020–022), on every page with the site shell (data-refined on <body>). */
[data-refined] {
  --surface: #fbfcf9;
  --line: #c9d4c5;
  --sage-wash: #e8efe1;
  --data-ink: #305c6f;
  --data-wash: #edf3f5;
  --note-paper: #fdf8ed;
  --note-tape: #d4c5a2;
  --sheet-shadow: 0 12px 24px -16px #46392470;
  accent-color: var(--primary);
}

html { scroll-behavior: smooth; }
/* The nav is sticky (58 px + 1 px border). Anchors, the skip link and keyboard focus
   land below it instead of under it. One value here replaces per-section scroll-margins. */
html { scroll-padding-top: 76px; }

a {
  color: inherit;
  text-decoration: inherit;
}

a:visited {
  color: inherit;
}

body {
  font-family: 'Figtree', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

h1:not(:where([data-component] *)) {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

h2:not(:where([data-component] *)) {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

p:not(:where([data-component] *)) {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

ul:not(:where([data-component] *)) {
  list-style: none;
  margin-bottom: 16px;
}

li:not(:where([data-component] *)) {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

li:not(:where([data-component] *))::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}
}
@layer site {
/* Site layer, part 1 (order 027, DES-011): shared layout, site chrome and the components and page rules that predate
   the Astro components. Reset, tokens, fonts and element defaults are in base.css. Layers and load order:
   scripts/site/stylesheets.js. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  max-width: calc(var(--layout-content, var(--layout-standard)) + 2 * var(--layout-gutter));
  margin: 0 auto;
  flex: 1;
  width: 100%;
  padding-inline: var(--layout-gutter);
}

.back-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
  margin-bottom: 40px;
}

.back-link:hover {
  color: var(--primary-dark);
}

.meta {
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-bottom: 8px;
  text-align: center;
}

.article-published {
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-top: 24px;
}

.legal-archive-note {
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  border-left: 4px solid var(--primary-dark);
  padding: 12px 16px;
  margin: 0 0 24px;
  border-radius: 8px;
  font-weight: 600;
}

.summary-card {
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  padding: 16px;
  margin: 24px 0;
  border-radius: 8px;
}

.summary-card h2,
.summary-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 8px;
}

.summary-card p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.info-box {
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
}

.info-box p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.container p,
.container .info-box,
.container .faq-item {
  font-size: 0.9375rem;
}

.container h2 {
  font-size: 1.125rem;
}

/* Full content width, like the FAQ, privacy and terms pages. */
.contact-copy,
.about-copy {
  padding-bottom: 0; /* the page container already carries the space before the footer (order 035B) */
}

.contact-copy h2,
.about-copy h2 {
  margin-top: 40px;
}

/* Longer prose with two heading levels: a clearer size step than the policy pages. */
.container .about-copy h2 {
  font-size: 1.375rem;
}

.about-copy h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 6px;
}

.about-copy .about-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.faq-contact { margin-top: 28px; }
.contact-copy a,
.about-copy a,
.faq-contact a {
  color: var(--primary);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ─── SKIP LINK ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ─── FOCUS VISIBLE ──────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }



/* ─── NAV ─────────────────────────────────────────────── */
/* The header owns the sticky navigation bar. */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241,245,240,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--separator);
  padding: 0 var(--layout-gutter);
}
/* The header bar on every page: 96 % of the page background, without the blur (orders 020–022). */
.site-nav { background: color-mix(in srgb, var(--bg-base) 96%, transparent); backdrop-filter: none; }
.nav-inner {
  max-width: var(--layout-standard); margin: 0 auto;
  display: flex; align-items: center; gap: 40px;
  height: 58px;
}
.nav-left {
  display: flex; align-items: center; gap: 32px;
  flex: 1;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-links { display: flex; gap: 28px; list-style: none; margin-bottom: 0; }
.nav-links li { padding-left: 0; margin-bottom: 0; position: static; }
.nav-links li::before { content: none; }
.nav-links a {
  display: inline-flex; align-items: center;
  font-size: .86rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: var(--primary); }

.lang-toggle {
  display: flex; gap: 4px;
  background: var(--bg-chip);
  padding: 3px;
  border-radius: 8px;
}
.lang-btn {
  width: 44px; min-height: 44px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font: 700 .78rem/1 Figtree, system-ui, sans-serif;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.lang-btn:hover { background: rgba(255,255,255,.5); }
.lang-btn.active { background: var(--bg-card); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .15s, color .15s, box-shadow .15s;
}
.lang-link:hover {
  background: rgba(255,255,255,.5);
  color: var(--text-primary);
}
.lang-link.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* ─── HERO ────────────────────────────────────────────── */
.hero { padding: 88px 24px 80px; }
.hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800; line-height: 1.12;
  color: var(--text-primary);
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.75; max-width: 500px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; max-width: 500px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, opacity .15s;
  line-height: 0;
}
.store-badge:hover { transform: translateY(-1px); opacity: .9; }
.store-badge svg { display: block; }
.store-badge img { display: block; object-fit: contain; height: 59px; width: auto; }
.btn-primary {
  padding: 10px 18px; font-size: .9rem;
}

/* Phone mockup */
.phone {
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
  background: var(--dark-bg);
  border-radius: 44px;
  padding: 10px 8px;
  box-shadow:
    0 4px 8px rgba(0,0,0,.08),
    0 16px 32px rgba(0,0,0,.16),
    0 32px 64px rgba(0,0,0,.20),
    0 60px 120px rgba(0,0,0,.12),
    inset 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
  z-index: 1;
}



.c-sage   { background: rgba(156,175,136,.18); }
.c-steel  { background: rgba(135,162,182,.18); }
.c-warm   { background: rgba(217,197,178,.18); }
.c-err    { background: rgba(192,57,43,.15);   }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.bar  { flex: 1; border-radius: 3px 3px 0 0; background: var(--brand); }

/* ─── SECTION BASE ─────────────────────────────────────── */
section:not(:where([data-component] *)) { padding: 88px 24px; margin-bottom: 0; }

/* Privacy/Terms specific - no vertical spacing */
section:not(:where([data-component] *))[aria-labelledby] {
  padding: 16px 0 8px;
  margin-bottom: 0;
}
section:not(:where([data-component] *))[aria-labelledby]:first-child {
  padding-top: 0;
}
section:not(:where([data-component] *))[aria-labelledby] h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.s-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800; color: var(--text-primary);
  letter-spacing: -.025em; line-height: 1.2;
  margin-bottom: 24px;
}

/* ─── SECTION BACKGROUNDS ─────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-top: 52px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-color: var(--primary-light);
}
.step h3 {
  font-size: .95rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}
.step p { font-size: .84rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0; }

/* ─── DOWNLOAD ─────────────────────────────────────────── */
.dl { background: var(--dark-bg); }
.dl .s-title { color: var(--dark-text); }
.dl-disclaimer {
  margin-top: 36px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: .8rem; color: rgba(255,255,255,0.85); line-height: 1.65;
}
.dl-disclaimer strong { color: var(--primary-pale); }

/* ─── FOOTER ───────────────────────────────────────────── */
/* ─── RESPONSIVE ───────────────────────────────────────── */

@media (max-width: 860px) {
  #how .steps      { grid-template-columns: 1fr; text-align: center; }
  #how .step       { text-align: center; }
  .hero            { padding: 60px 20px 60px; }
  section:not(:where([data-component] *))          { padding: 60px 20px; margin-bottom: 0; }
  .hero p          { max-width: 100%; }
  .dl-disclaimer   { max-width: 100%; }
}

@media (max-width: 640px) {
  .lang-link { min-width: 38px; height: 30px; padding: 0 8px; font-size: .78rem; }
  .hero       { padding: 48px 16px 48px; text-align: center; }
  .hero h1    { font-size: 1.75rem; }
  .hero p     { font-size: .95rem; }
  .hero-actions { gap: 8px; justify-content: center; }
  section:not(:where([data-component] *))     { padding: 48px 16px; margin-bottom: 0; }
  .s-title    { font-size: 1.75rem; }
  #how .steps { grid-template-columns: 1fr; text-align: center; }
  #how .step  { text-align: center; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.75rem; }
  .hero p  { font-size: .95rem; }
  .s-title { font-size: 1.5rem; }
  .store-badge img { width: 140px; height: auto; }
}

.store-badge {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.step {
  transition: transform 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
}

/* ─── SECTION TRANSITIONS ─────────────────────────────── */
section:not(:where([data-component] *)) {
  transition: background-color 0.3s ease;
}


/* ─── FAQ ITEMS ──────────────────────────────────────── */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: 12px;
  overflow: hidden;
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.faq-trigger:hover {
  background-color: var(--bg-base);
}

.faq-item.open .faq-trigger {
  background-color: #d2dfc8;
  border-bottom: none;
}

.faq-trigger h3,
.faq-trigger .faq-question {
  color: var(--primary);
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  flex: 1;
}

.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  background: var(--bg-card);
}

.faq-item.open .faq-answer {
  display: block;
  padding: 20px 28px 28px;
  border-top: 1px solid var(--separator);
}

.faq-answer p {
  padding: 0;
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
  max-width: 42rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 42rem;
}

.faq-answer ul li {
  margin: 0 0 0.85rem;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-answer ul li::before {
  content: none;
}

.faq-answer ul li strong {
  color: var(--text-primary);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step:hover, .store-badge:hover, .btn-primary:hover {
    transform: none;
  }
}

/* Launch landing overrides: preserve selected temp/web components without Tailwind utility rebuilds. */
.hub-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.hub-logo img {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.site-logo-text {
  font-family: 'Josefin Slab', serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1;
}

@media (min-width: 640px) {
  .site-logo-text { font-size: 1.5rem; letter-spacing: 0.08em; }
}

@media (min-width: 1024px) {
  .site-logo-text { font-size: 1.75rem; letter-spacing: 0.09em; }
}


.launch-bluf-card {
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: 16px;
  padding: 28px 24px;
}

.launch-bluf-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.launch-bluf-card p {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

.analytics-consent-banner {
  position: fixed;
  left: 50%;
  width: min(60vw, 760px);
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 1200;
  background: rgba(46, 45, 43, 0.96);
  color: var(--dark-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.analytics-consent-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.analytics-consent-banner__text {
  margin: 0;
  max-width: 680px;
  color: var(--dark-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.analytics-consent-banner__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 8px;
}

.analytics-consent-banner__button {
  appearance: none;
  border-radius: 10px;
  padding: 11px 16px;
  min-height: 44px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.analytics-consent-banner__button:hover {
  transform: translateY(-1px);
}

.analytics-consent-banner__button--accept {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--text-primary);
}

.analytics-consent-banner__button--accept:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.analytics-consent-banner__button--decline {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--text-primary);
}

.analytics-consent-banner__button--decline:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.analytics-consent-banner__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

/* The site-wide green focus ring is too dark against the dark banner. */
.analytics-consent-banner :focus-visible {
  outline-color: var(--dark-text);
}

@media (max-width: 919px) {
  .nav-inner { gap: 12px; }
  .hub-logo img { width: 2.25rem; height: 2.25rem; }

}

@media (max-width: 640px) {
  .hero { text-align: left; }
  .hero-actions { justify-content: flex-start; flex-wrap: wrap; }
  .launch-bluf-card { padding: 22px 18px; }
  .analytics-consent-banner {
    left: 50%;
    right: auto;
    width: min(60vw, 420px);
    max-width: calc(100vw - 24px);
    transform: translateX(-50%);
    bottom: 12px;
    border-radius: 16px;
  }
  .analytics-consent-banner__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
  .analytics-consent-banner__actions {
    width: 100%;
  }
  .analytics-consent-banner__button {
    flex: 1 1 0;
    justify-content: center;
  }
}

/* Shared frames for Astro and server-rendered legacy markup. */
[data-layout="workspace"] { --layout-content: var(--layout-workspace); }
/* Three layout principles on one outer grid (order 035B). The .container is the grid: wide pages keep the standard or
   workspace measure, information pages (reading) and articles get a narrower measure, and the container itself is
   centred, so heading, back link and body share one column instead of a left-anchored strip with empty space to the right. */
[data-layout="reading"] { --layout-content: var(--layout-reading); }
.container.editorial-article { --layout-content: var(--layout-article); }

/* Generated static-site refinements */
.page-container {
  margin-bottom: clamp(48px, 7vw, 72px);
}

.page-header {
  display: block;
  margin: 24px 0 36px;
}

.page-header .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 8px;
}

.page-header h1 {
  margin: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

details.launch-bluf-card {
  cursor: pointer;
}

.launch-bluf-card > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.launch-bluf-card > summary::-webkit-details-marker {
  display: none;
}

.launch-bluf-card > summary h3 {
  margin: 0;
}

.store-actions {
  align-items: center;
}

.store-badge.is-disabled {
  cursor: default;
  opacity: .68;
  filter: grayscale(.08);
}

.store-badge.is-disabled:hover {
  transform: none;
  box-shadow: none;
  opacity: .68;
}

@media (max-width: 640px) {
  .page-header {
    margin: 16px 0 28px;
  }

  .page-header h1 {
    font-size: 1.5rem;
    overflow-wrap: anywhere;
  }

  .analytics-consent-banner {
    width: min(100vw - 24px, 420px);
  }
}

/* Consent management widget on the privacy page */
.consent-manage-widget {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.consent-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.consent-status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.2s;
}

.consent-status-dot.active {
  background: #22c55e;
}

.consent-manage-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  min-height: 36px;
}

@media (hover: hover) {
  .consent-manage-btn:hover { background: var(--action-hover); }
}

/* Compact legal-basis and retention tables */
.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 12px;
}

.policy-table th,
.policy-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.policy-table th {
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-subtle, rgba(0,0,0,.03));
}

.policy-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .policy-table thead { display: none; }
  .policy-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .policy-table tr:last-child { border-bottom: none; }
  .policy-table td { display: block; padding: 2px 0; border: none; }
  .policy-table td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--text-secondary);
  }
}

/* ─── ICONS WITHOUT TILES ──────────────────────────────────
   Feature and security cards: bare line icon, left-aligned text.
   Numbered steps (#how) keep their tile: the number carries information. */

/* ─── DESIGN CRITIQUE FIXES (2026-11-04) ───────────────── */

/* Hero: larger headline so it outranks section titles, fewer chips */
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }

/* Store state: say it before showing the badges */
.store-badge.is-disabled { opacity: .55; filter: grayscale(.3); }
.store-badge.is-disabled:hover { opacity: .55; }
.hero .store-actions { flex-wrap: wrap; }

/* FAQ: collapsed "more questions" group and link spacing */
.launch-bluf-card > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 10px; }

/* Cookie banner: compact on small screens so it does not cover the hero */
@media (max-width: 640px) {
  .analytics-consent-banner { bottom: 8px; width: calc(100vw - 16px); }
  .analytics-consent-banner__inner { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px; }
  .analytics-consent-banner__text { font-size: .8rem; line-height: 1.45; flex: 1 1 100%; }
  .analytics-consent-banner__actions { width: 100%; flex-wrap: nowrap; }
  .analytics-consent-banner__button { min-height: 44px; padding: 8px 12px; }
}

/* Compact launch page: one place for each product promise. */
/* Soft, slowly drifting circles give the hero a little movement. */
@keyframes hero-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(24px, -30px, 0); }
}
/* Pause control for the drifting circles (WCAG 2.2.2). js/app.js shows it. */
.hero-motion-toggle {
  position: absolute;
  top: 12px;
  /* Right edge lines up with the language switcher in the 1060px nav. */
  right: max(16px, calc((100% - var(--layout-standard)) / 2));
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--separator);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.hero-motion-toggle[hidden] { display: none; }
.hero-motion-toggle:hover { color: var(--primary); border-color: var(--primary); }
@media (prefers-reduced-motion: reduce) {
  .hero-motion-toggle { display: none; }
}
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--primary); font-size: .95rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.text-link:visited { color: var(--primary); }
.text-link:hover { color: var(--primary-dark); }

/* iOS illustration based on sjukstugan-mobile's PatientDetailHeader,
   LogEntryList, BottomActionBar and lightColors. Fictional data, newest first. */

@media (max-width: 760px) {
  .guide .store-actions { justify-content: center; }
}
@media (max-width: 360px) {
  .nav-inner { gap: 10px; }
  .hub-logo { gap: 7px; }
  .site-logo-text { font-size: 1.15rem; letter-spacing: .06em; }
}

/* Home sections are always visible. A scroll-triggered reveal was removed: content must never depend on script or scroll to appear. */

/* Guides (/guider, /vab-guide, /feberdagbok, /febertabell) and /app */
/* Same width as the FAQ, privacy and terms pages: the full .container. */
.guide {
  margin: 0;
}

.guide h2 {
  margin-top: 40px;
  font-size: 1.375rem;
  line-height: 1.25;
}

.guide .summary-card h2 {
  font-size: 1.125rem;
}

.guide .summary-card h2 {
  margin-top: 0;
}

.guide p,
.guide li {
  color: var(--text-secondary);
  line-height: 1.6;
}

.guide a:not(.btn-primary, .store-badge, .text-link):not(:where(.guide-routes a, .editorial-note__link, .rd-tabs a, .btn-secondary, .tb-open, .tb-pdf, .action-link)) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-lead {
  font-size: 1.0625rem;
  margin-bottom: 24px;
}

.container .guide-lead {
  font-size: 1.0625rem;
}

.guide-list {
  list-style: none;
  margin: 0 0 16px;
  padding-left: 0;
}

.guide-steps {
  list-style: decimal;
  margin: 0 0 16px;
  padding-left: 1.5rem;
}

.guide-steps li {
  padding-left: 4px;
}

.guide-steps li::before,
.guide-cards li::before {
  content: none;
}

.guide-list li,
.guide-steps li {
  margin-bottom: 10px;
  font-size: 0.9375rem;
}

.guide-steps li::marker {
  color: var(--primary);
  font-weight: 700;
}

.guide .store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 8px;
}

.store-note {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.guide-sources {
  margin-top: 48px;
  padding-top: 8px;
  border-top: 1px solid var(--separator);
}

.guide-sources p,
.guide-sources li {
  font-size: 0.875rem;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.guide-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.container .guide-actions__hint {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--separator);
  border-radius: 8px;
  background: var(--bg-card);
}

.guide-table-wrap:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 520px;
}

.guide-table th,
.guide-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--separator);
  color: var(--text-secondary);
}

.guide-table thead th {
  background: var(--primary-pale);
  color: var(--primary-dark);
  font-weight: 700;
}

.guide-table tbody th {
  font-weight: 600;
  color: var(--text-primary);
}

.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-cards {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

/* Printable fever chart */
.fever-sheet {
  margin: 32px 0;
}

.fever-sheet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
}

.container .fever-sheet__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.container .fever-sheet__field {
  margin: 0;
  color: var(--text-secondary);
}

.fever-sheet__field span {
  display: inline-block;
  min-width: 14ch;
  border-bottom: 1px solid var(--text-muted);
}

.fever-sheet__table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.fever-sheet__table th,
.fever-sheet__table td {
  border: 1px solid var(--separator);
  padding: 6px 8px;
  text-align: left;
}

.fever-sheet__table thead th {
  background: var(--primary-pale);
  color: var(--primary-dark);
  font-weight: 700;
}

.fever-sheet__table td {
  height: 30px;
}

.container .fever-sheet__foot {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.app-page {
  text-align: center;
}

.app-page .store-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.app-page__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }

  body:has(.fever-sheet) {
    background: #fff;
  }

  body:has(.fever-sheet) nav,
  body:has(.fever-sheet) footer,
  body:has(.fever-sheet) .skip-link,
  body:has(.fever-sheet) .page-header,
  body:has(.fever-sheet) .guide > :not(.fever-sheet),
  body:has(.fever-sheet) .analytics-consent-banner {
    display: none !important;
  }

  body:has(.fever-sheet) .container,
  body:has(.fever-sheet) .guide {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .fever-sheet {
    margin: 0;
  }

  .fever-sheet .guide-table-wrap {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .fever-sheet__table {
    min-width: 0;
    font-size: 10pt;
  }

  .fever-sheet__table th,
  .fever-sheet__table td {
    border-color: #8a8f87;
  }

  .fever-sheet__table td {
    height: 9mm;
  }

  .fever-sheet__table thead th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}


/* The arrow sits outside the underline, so the underline reads as one line under the text.
   Flex items inherit the link's underline; absolutely positioned children do not. */
.text-link:has(> span[aria-hidden="true"]) { position: relative; padding-right: 22px; }
.text-link > span[aria-hidden="true"] { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }

/* Link collection (/lankar, /en/links) */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--separator);
  border-radius: 12px;
}

.link-list .link-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--separator);
}

.link-list .link-item:last-child {
  border-bottom: 0;
}

.link-list .link-item::before {
  content: none;
}

.guide .link-item a {
  font-weight: 600;
  align-self: flex-start;
  padding: 4px 0;
}

.link-item > span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ─── Mobile navigation (WEB-024) ─────────────────────────────────────────
   A <details> menu: it works without JavaScript, causes no layout shift and
   is announced as expanded or collapsed. js/app.js adds Esc and click-outside. */
.nav-menu { display: none; }
.nav-menu-list { list-style: none; margin: 0; }
.nav-menu-list li { margin: 0; padding-left: 0; }
.nav-menu-list li::before { content: none; }
.nav-menu summary { list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu .nav-menu-close,
.nav-menu[open] .nav-menu-open { display: none; }
.nav-menu[open] .nav-menu-close { display: block; }

@media (max-width: 919px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .nav-menu { display: block; }
  .nav-right { gap: 8px; }
  .nav-menu > summary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 44px; min-height: 44px; padding: 0 10px;
    border-radius: 10px; cursor: pointer;
    color: var(--text-secondary); font-size: .86rem; font-weight: 600;
    transition: background .15s, color .15s;
  }
  .nav-menu > summary:hover { background: var(--bg-chip); color: var(--primary); }
  .nav-menu[open] > summary { background: var(--bg-chip); color: var(--primary); }
  .nav-menu-label { display: none; }
  .nav-menu-list {
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 4px 16px 12px;
    box-shadow: 0 14px 22px -20px rgb(28 34 30 / .45);
    background: var(--bg-base);
    border-bottom: 1px solid var(--separator);
    max-height: calc(100vh - 58px); overflow-y: auto;
  }
  .nav-menu-list a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 52px; padding: 5px 8px; text-decoration: none;
    font-size: 1rem; font-weight: 650; color: var(--text-primary);
    border-bottom: 1px solid var(--separator);
  }
  .nav-menu-list li:last-child a { border-bottom: 0; }
  .nav-menu-list a:focus-visible { outline-offset: -3px; }
  .nav-menu-list a:hover { color: var(--primary); }
  /* Keep logo, language switch and menu on one line down to 320 px. */
  nav.site-nav { padding: 0 16px; }
  .nav-inner { gap: 8px; }
  .nav-left { gap: 0; min-width: 0; }
  .site-logo-text { font-size: 1.3rem; letter-spacing: .06em; }
}
@media (min-width: 520px) and (max-width: 919px) {
  .nav-menu-label { display: inline; }
  nav.site-nav { padding: 0 24px; }
  .nav-menu-list { padding-left: 24px; padding-right: 24px; }
  .site-logo-text { font-size: 1.5rem; letter-spacing: .08em; }
}
@media (max-width: 360px) {
  .site-logo-text { font-size: 1.05rem; letter-spacing: .05em; }
  .hub-logo { gap: 6px; }
  .hub-logo img { width: 2rem; height: 2rem; }
  .lang-btn { width: 44px; min-height: 44px; }
}

/* ─── Home: a toolbox, with the app as the flagship ─────────────────────── */

.situation-list { margin: 0; padding: 0; border: 1px solid var(--separator); border-radius: 16px; background: var(--bg-card); overflow: hidden; }
.situation-list li { margin: 0; padding: 0; border-bottom: 1px solid var(--separator); }
.situation-list li:last-child { border-bottom: 0; }
.situation-list li::before { content: none; }
.situation-list a { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 16px 14px 18px; transition: background .15s; }
.situation-list a:hover { background: var(--primary-pale); }
.situation-list__icon { flex: none; display: grid; place-items: center; width: 24px; color: var(--primary); }
.situation-list__icon svg { width: 24px; height: 24px; }
.situation-list__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.situation-list__text strong { font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--text-primary); }
.situation-list__text > span { font-size: .875rem; line-height: 1.4; color: var(--text-muted); }
.situation-list__arrow { flex: none; width: 18px; height: 18px; color: var(--text-subtle); transition: transform .15s, color .15s; }
.situation-list a:hover .situation-list__arrow { transform: translateX(3px); color: var(--primary); }

.home-print { background: var(--bg-deeper); }
.print-feature { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.print-feature__copy .eyebrow { margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.print-feature__copy h3 { margin: 0 0 10px; font-size: 1.35rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--text-primary); }
.print-feature__copy > p:not(.eyebrow) { max-width: 46ch; margin-bottom: 22px; line-height: 1.65; color: var(--text-secondary); }
.print-feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.print-feature__actions .btn-primary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; }

.mini-sheet { width: 100%; max-width: 410px; margin: 0 auto 8px; padding: 16px 16px 8px; border: 1px solid var(--separator); border-radius: 10px; background: var(--bg-card); box-shadow: 8px 8px 0 var(--bg-chip), 8px 8px 0 1px var(--separator); }
.mini-sheet__head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 12px; }
.mini-sheet__head b { font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.mini-sheet__head span { flex: 1; max-width: 76px; height: 12px; border-bottom: 1px solid var(--text-muted); }
.mini-sheet__cols { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--primary-pale); border: 1px solid var(--separator); }
.mini-sheet__cols span { padding: 5px 4px; font-size: .62rem; font-weight: 700; line-height: 1.2; color: var(--primary-dark); overflow-wrap: anywhere; }
.mini-sheet__rows { border-left: 1px solid var(--separator); border-right: 1px solid var(--separator); background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(20% - 1px), var(--separator) calc(20% - 1px), var(--separator) 20%); }
.mini-sheet__rows i { display: block; height: 26px; border-bottom: 1px solid var(--separator); }

.guide-rows a:hover strong,
.home-articles a:hover strong { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.home-articles { margin: 0 0 14px; padding: 0; }
.home-articles li { margin: 0; padding: 0; border-top: 1px solid var(--separator); }
.home-articles li:last-child { border-bottom: 1px solid var(--separator); }
.home-articles li::before { content: none; }
.home-articles a { display: block; padding: 14px 0; }
.home-articles time { display: block; margin-bottom: 2px; font-size: .8rem; color: var(--text-subtle); }
.home-articles strong { font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--text-primary); }

.home-app .store-actions { justify-content: flex-start; }

@media (min-width: 861px) {
  .print-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 80px; }
}
@media (max-width: 760px) {
  .print-feature__copy h3 { font-size: 1.25rem; }
}

/* ─── Overview: tools and templates ─────────────────────────────────────── */
.tools-block { margin-top: 48px; }
.tools-page .tools-block > h2 { margin: 0 0 16px; font-size: 1.5rem; letter-spacing: -.02em; }
.tools-block__lead { max-width: 60ch; margin-bottom: 8px; }
/* Anchors: html { scroll-padding-top } in base.css does the offset (order 027 removed the zeroed per-section margins). */
.tools-situation { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 26px 0; border-top: 1px solid var(--separator); }
.tools-situation:last-child { border-bottom: 1px solid var(--separator); }
.tools-situation__head { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-content: start; }
.tools-situation__icon { grid-row: 1; color: var(--primary); }
.tools-situation__icon svg { display: block; width: 24px; height: 24px; }
.tools-page .tools-situation__head h3 { grid-column: 2; margin: 0 0 4px; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.tools-situation__head p { grid-column: 2; margin: 0; font-size: .9rem; line-height: 1.5; color: var(--text-muted); }
.tools-list { margin: 0; padding: 0; }
.tools-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding: 0 0 16px; }
.tools-list li:last-child { padding-bottom: 0; }
.tools-list li::before { content: none; }
.tools-list__type { padding: 2px 9px; border-radius: 99px; background: var(--primary-pale); font-size: .8rem; font-weight: 700; color: var(--primary-dark); overflow-wrap: anywhere; }
.tools-list a { font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.tools-list p { margin: 2px 0 0; max-width: 62ch; font-size: .9rem; line-height: 1.55; color: var(--text-muted); }
.guide .tools-list p { color: var(--text-muted); }
@media (min-width: 861px) {
  .tools-situation { grid-template-columns: 270px minmax(0, 1fr); gap: 48px; padding: 30px 0; }
  .tools-list li { display: grid; grid-template-columns: minmax(6rem, 18%) minmax(0, 1fr); gap: 0 16px; align-items: start; }
  .tools-list__type { justify-self: start; margin-top: 3px; }
}

/* Related guides and articles, generated from the topic of an article (SEO-018). */
.guide-related { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--separator); }
.guide-related h2 { font-size: 1.125rem; }
.related-list { margin: 0 0 12px; padding: 0; }
.related-list li { margin: 0 0 14px; padding-left: 0; font-size: .9375rem; }
.related-list li::before { content: none; }
.related-note { display: block; margin-top: 2px; font-size: .875rem; line-height: 1.5; color: var(--text-muted); }
.related-more { margin: 4px 0 0; font-size: .9375rem; }

/* ─── Touch targets (Lev 1 review) ───────────────────────────────────────
   Small visible controls keep their look but get a 44 px hit area on touch
   screens. Footer and back links get real height on phones. */
.lang-btn, .hero-motion-toggle { position: relative; }
.hero-motion-toggle { position: absolute; }
.lang-btn::after, .hero-motion-toggle::after { content: ""; position: absolute; inset: -4px; }
.hero-motion-toggle::after { inset: -6px; border-radius: 50%; }
@media (max-width: 640px) {
  .back-link, .page-header .back-link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ─── Fever features on the home page and the overview (Lev 2) ─────────── */
.feature-stack { display: grid; gap: 56px; }
.feature-stack > .print-feature + .print-feature { padding-top: 56px; border-top: 1px solid var(--separator); }
.mini-curve { width: 100%; max-width: 410px; margin: 0 auto 8px; padding: 16px 16px 10px; border: 1px solid var(--separator); border-radius: 10px; background: var(--bg-card); box-shadow: 8px 8px 0 var(--bg-chip), 8px 8px 0 1px var(--separator); }
.mini-curve__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.mini-curve__head b { font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.mini-curve__head span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.mini-curve svg { display: block; width: 100%; height: auto; }
@media (min-width: 861px) {
  /* The table block mirrors the curve block: preview left, copy right. */
  .feature-stack > .print-feature + .print-feature { direction: rtl; }
  .feature-stack > .print-feature + .print-feature > * { direction: ltr; }
}


/* Mobile header (order 013 §9): wordmark, search, language switch and menu never overlap, down to 320 px and with
   enlarged text. The wordmark is sized from the viewport (it is a logotype, not running text); controls keep 44 px
   targets; under 480 px the language switch shows only the other language, so the active one is not repeated. */
@media (max-width: 919px) {
  .nav-left { flex: 1 1 auto; min-width: 0; }
  .nav-right { flex: none; gap: 4px; }
  .hub-logo { gap: 8px; min-width: 0; }
  .site-logo-text { font-size: clamp(15px, 5vw, 21px); letter-spacing: .05em; white-space: nowrap; }
}
@media (max-width: 479px) {
  nav.site-nav { padding: 0 12px; }
  .nav-inner { gap: 4px; }
  .hub-logo img { width: 32px; height: 32px; }
  .nav-menu > summary { padding: 0 8px; }
}
@media (max-width: 479px) {
  .lang-toggle .lang-btn.active { display: none; }
  .lang-toggle { padding: 2px; }
}

@media (min-width: 920px) {
  .nav-inner { gap: clamp(12px, 2vw, 32px); min-height: 58px; height: auto; }
  .nav-left { min-width: 0; gap: clamp(12px, 2vw, 28px); }
  .nav-links { min-width: 0; padding: 0; gap: clamp(12px, 1.65vw, 24px); align-items: center; }
  .nav-links li { min-width: 0; }
  .nav-links a { min-height: 44px; white-space: normal; }
  .nav-right { flex: none; }
}

.guide--article { width: 100%; margin-inline: auto; }

[data-refined="faq"] .faq-intro { max-width: 62ch; }
[data-refined="faq"] .faq-answer p { line-height: 1.6; }
.faq-group { margin-top: 32px; }
.faq-group > h2 { margin-bottom: 10px; }
.faq-group .faq-container { padding: 0; margin: 0; border-top: 1px solid var(--line); }
.faq-group .faq-item { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; overflow: visible; }
.faq-group .faq-trigger { min-height: 52px; padding: 12px; text-align: start; }
.faq-group .faq-item.open .faq-trigger { background: var(--sage-wash); }
.faq-group .faq-trigger:focus-visible { outline-offset: -3px; }
.faq-group .faq-answer { padding: 4px 12px 12px; }
.faq-group .faq-answer > * { max-width: 65ch; }

/* Header and mobile product navigation (DES-011). */
.product-nav { display: none; }
@media screen and (max-width: 640px) {
  .product-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.25rem), 1fr));
    gap: 4px; position: static; padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
    border-block: 1px solid var(--line); background: var(--surface); text-align: center;
  }
  .product-nav a {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px;
    min-height: 44px; padding: 6px 2px; border-radius: 8px; color: var(--primary-dark);
    font-size: .83rem; font-weight: 740; text-decoration: none; overflow-wrap: normal; hyphens: none;
  }
  .product-nav a:hover, .product-nav a[aria-current] { background: var(--sage-wash); }
  .product-nav a:focus-visible { outline-offset: -3px; }
  .product-nav svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  body:has(.hk.is-fs) .product-nav { visibility: hidden; }
}
.site-nav .nav-links a { font-weight: 650; }
.site-nav :is(.nav-links, .nav-menu-list) a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; color: var(--primary-dark); }
@media (max-width: 640px) {
  .site-nav .nav-inner { height: auto; min-height: 58px; }
}

/* Site identity from src/refinement.css (order 027, DES-011): page headings of orders 020–022. Before the page-type
   stylesheets, so a page type can refine them. Focus, selection, link offsets and control radius stay at the top of
   refinement.css, after the page types, because they must win over page rules of the same weight. */
[data-refined] :is(.page-header h1, .s-title) { font-weight: 780; letter-spacing: -.035em; text-wrap: balance; }
[data-refined] .page-header h1 { font-size: clamp(2.125rem, 5.2vw, 4.4rem); line-height: 1.04; text-align: left; }
[data-refined] .page-header { margin-bottom: 20px; }
[data-refined] .page-header a { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; }
[data-refined] .page-header .back-link { margin-bottom: 6px; }

/* Order 029C: an editorial reading rhythm for the story behind Sjukstugan. */
[data-refined="about"] .about-copy { max-width: 42rem; }
[data-refined="about"] .about-copy p { font-size: 1.0625rem; line-height: 1.7; }
[data-refined="about"] .about-copy .about-lead { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.5; letter-spacing: -.015em; }
[data-refined="about"] .about-copy h2 { margin-top: 1.85em; padding-top: .7em; border-top: 1px solid var(--line); font-size: clamp(1.35rem, 2.5vw, 1.7rem); letter-spacing: -.025em; }
[data-refined="about"] .about-copy h3 { font-size: 1.1rem; font-weight: 740; }

/* Practical guides retain their summary and steps while giving longer passages a readable measure. */
:is([data-refined="vab"], [data-refined="diary"], [data-refined="preschoolstart"]) .guide > :is(p, ul, ol) { max-width: 66ch; font-size: 1.0625rem; line-height: 1.7; }
:is([data-refined="vab"], [data-refined="diary"], [data-refined="preschoolstart"]) .guide > :is(ul, ol) li { font-size: inherit; line-height: inherit; }
:is([data-refined="vab"], [data-refined="diary"], [data-refined="preschoolstart"]) .guide > .guide-lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; }
:is([data-refined="vab"], [data-refined="diary"], [data-refined="preschoolstart"]) .guide > h2 { margin-top: 2em; letter-spacing: -.02em; }
}
