/* =========================================================================
   ÖppnaRestaurang.se — designsystem
   Ljus redaktionell bas med automatiskt mörkt läge. Inga externa beroenden:
   inga webbfonter att vänta på, inga CDN-anrop, allt i en fil.

   Paletten är medvetet sval där ÖppnaPizzeria.se är varm. Sajterna delar
   byggsystem men ska inte se ut som samma sajt med utbytt logotyp — petrol
   och mässing mot rött och guld.
   ========================================================================= */

/* ------------------------------------------------------------- tokens --- */

:root {
  color-scheme: light dark;

  --paper: #f5f4f1;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --surface-3: #ecedec;

  --ink: #161a1d;
  --ink-2: #434d52;
  --ink-3: #5b6569;

  --line: #e2e4e3;
  --line-strong: #c8cdcc;

  --accent: #10535f;
  --accent-text: #0c4450;
  --accent-soft: #e7f0f2;
  --accent-warm: #b26a35;
  --brass: #97762c;
  --brass-soft: #f8f1de;
  --green: #2f6b4f;
  --green-soft: #e8f1ec;

  --shadow-sm: 0 1px 2px rgba(16, 22, 26, .05), 0 1px 3px rgba(16, 22, 26, .04);
  --shadow-md: 0 4px 6px rgba(16, 22, 26, .04), 0 12px 28px rgba(16, 22, 26, .07);
  --shadow-lg: 0 8px 16px rgba(16, 22, 26, .06), 0 24px 56px rgba(16, 22, 26, .1);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 44rem;
  --wrap: 72rem;
  --radius: 14px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12171a;
    --surface: #1a2024;
    --surface-2: #20272b;
    --surface-3: #283136;

    --ink: #eef2f3;
    --ink-2: #b4bfc3;
    --ink-3: #8d9a9f;

    --line: #2c353a;
    --line-strong: #414d53;

    /* Petrolen måste ljusna rejält i mörkt läge — #10535f mot #12171a
       klarar inte kontrastkravet för text. */
    --accent: #5cbecd;
    --accent-text: #85d4e0;
    --accent-soft: #11313b;
    --accent-warm: #e09256;
    --brass: #d6b060;
    --brass-soft: #2c2718;
    --green: #72c69a;
    --green-soft: #172a20;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, .3), 0 12px 28px rgba(0, 0, 0, .45);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, .35), 0 24px 56px rgba(0, 0, 0, .55);
  }
}

/* --------------------------------------------------------------- bas --- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.wrap-narrow { max-width: calc(var(--measure) + 2.5rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .75rem;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: var(--measure);
}

/* ------------------------------------------------------------ knappar --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .9688rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(198, 45, 32, .3), 0 6px 18px rgba(198, 45, 32, .22);
}
.btn-accent:hover {
  background: #ad2419;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(198, 45, 32, .3), 0 10px 24px rgba(198, 45, 32, .28);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-3); transform: translateY(-1px); }

@media (prefers-color-scheme: dark) {
  .btn-accent { color: #08222a; }
  .btn-accent:hover { background: #ff8570; }
}

/* ------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.brand-mark { border-radius: 7px; }
.brand-text b { color: var(--accent-text); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.site-nav a.nav-cta,
.site-nav a.nav-cta:hover { color: #fff; }
.nav-cta { padding: .55rem 1.05rem; font-size: .875rem; }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  /* Utan JS visas menyn alltid — bättre än en knapp som inte gör något. */
  .no-js .site-nav { display: flex; position: static; box-shadow: none; border: 0; padding-inline: 0; }
  .no-js .nav-toggle { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav ul a { display: block; padding: .85rem 0; font-size: 1rem; }
  .nav-cta { margin-top: 1rem; }
}

/* -------------------------------------------------------- brödsmulor --- */

.breadcrumbs {
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: .8438rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: .7rem 0;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: .4rem;
  color: var(--line-strong);
}
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-text); text-decoration: underline; }
.breadcrumbs span { color: var(--ink-2); }

/* ---------------------------------------------------------------- hero --- */

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.15rem, 1.35rem + 3.1vw, 3.6rem);
  margin-bottom: 1.15rem;
}

.hero .lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.75rem 0 0;
}

.hero-trust {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .55rem;
  font-size: .9063rem;
  color: var(--ink-3);
}
.hero-trust li { padding-left: 1.6rem; position: relative; }
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--green);
}

.hero-figure { position: relative; }
.hero-media {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; }

@media (max-width: 56rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
}

/* ------------------------------------------------------------ sektion --- */

.section-head { max-width: var(--measure); margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.25rem); margin-bottom: .7rem; }
.section-head p { color: var(--ink-2); margin: 0; }

.page-head {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--surface-2);
}
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: .9rem; }

/* ----------------------------------------------------------- kalkylator --- */

.calc-section { padding: clamp(2rem, 5vw, 4rem) 0; }

.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.calc-col {
  border: 0;
  border-right: 1px solid var(--line);
  margin: 0;
  padding: 1.5rem;
  min-width: 0;
}
.calc-col:last-child { border-right: 0; }

.calc-col legend {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0;
  margin-bottom: 1.1rem;
}

.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: .35rem;
}
.field .hint { font-weight: 400; color: var(--ink-3); }

.field input,
.field select {
  width: 100%;
  padding: .6rem .7rem;
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.field input:focus,
.field select:focus { border-color: var(--accent); background: var(--surface); }

/* Reglaget mellan plattform och egen kanal. Skenan är tvåfärgad och brytpunkten
   sätts av --pos från JS, så fyllningen visar fördelningen direkt. */
.field-range .calc-range {
  --pos: 20%;
  width: 100%;
  padding: 0;
  margin: .5rem 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 1.4rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.field-range .calc-range:focus { background: transparent; }

.calc-range::-webkit-slider-runnable-track {
  height: .5rem;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--green) 0 var(--pos), var(--accent) var(--pos) 100%);
}
.calc-range::-moz-range-track {
  height: .5rem;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--green) 0 var(--pos), var(--accent) var(--pos) 100%);
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: -.45rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, .25));
}
.calc-range::-moz-range-thumb {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--ink);
}
.calc-range:focus-visible { outline: none; }
.calc-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-range:focus-visible::-moz-range-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }

.calc-range-out,
.calc-range-ends {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin: .4rem 0 0;
  font-size: .8125rem;
  color: var(--ink-3);
}
.calc-range-out { font-size: .875rem; color: var(--ink-2); }
.calc-range-out b { font-variant-numeric: tabular-nums; }
.calc-range-out .is-platform b { color: var(--accent-text); }
.calc-range-out .is-own b { color: var(--green); }
.calc-range-out .is-platform { text-align: right; }
.calc-range-ends { font-size: .75rem; }
.calc-range-ends span:last-child { text-align: right; }

.calc-note {
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 1rem 0 0;
}

.calc-output {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0;
}

.calc-headline {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-headline-label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .4rem;
}
.calc-headline-val {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin: 0 0 .35rem;
}
.calc-headline-val.is-neg { color: var(--accent-text); }
.calc-headline-val.is-pos { color: var(--green); }
.calc-headline-sub { font-size: .9375rem; color: var(--ink-3); margin: 0; }

.calc-waterfall {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
}
.calc-waterfall li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .34rem 0;
  color: var(--ink-2);
}
.calc-waterfall li[hidden] { display: none; }
.calc-waterfall li b { font-weight: 600; color: var(--ink); white-space: nowrap; }
/* Momsraden visar vilka två satser som ligger bakom beloppet. */
.calc-waterfall li small {
  display: block;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--ink-3);
  margin-top: .1rem;
}
.calc-waterfall li b.neg { color: var(--ink-3); }
.calc-waterfall li.sum {
  border-top: 1px solid var(--line-strong);
  margin-top: .4rem;
  padding-top: .6rem;
  font-weight: 600;
}
.calc-waterfall li.total { font-size: 1.0625rem; }
.calc-waterfall li.total b { color: var(--ink); }

.calc-insight {
  border-top: 1px solid var(--line);
  background: var(--accent-soft);
  padding: 1.5rem;
}
.calc-insight h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.calc-insight p { color: var(--ink-2); margin-bottom: 1.1rem; max-width: 52ch; }

.calc-disclaimer {
  font-size: .8438rem;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 1.25rem 0 0;
  max-width: 68ch;
}

/* Nyckeltalsrad under resultatet i verktygen (jäst, vattentemp, riktpris). */
.calc-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.calc-facts > div { padding: 1.25rem 1.5rem; }
.calc-facts > div + div { border-left: 1px solid var(--line); }
.calc-facts-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 .3rem;
}
.calc-facts-val {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  margin: 0 0 .3rem;
}
.calc-facts-sub { font-size: .875rem; line-height: 1.5; color: var(--ink-3); margin: 0; }

.calc-warn {
  margin: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--brass-soft);
  color: var(--ink-2);
  font-size: .9063rem;
  line-height: 1.55;
}
.calc-warn::before { content: "⚠ "; color: var(--brass); }

.calc-section-tool { padding-top: 0; }
.page-head-tool { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.page-head-tool .lede { max-width: 60ch; }
.tools-note { font-size: .875rem; color: var(--ink-3); max-width: 68ch; margin: 2rem 0 0; }

.btn-sm { padding: .5rem .9rem; font-size: .875rem; }

/* Receptkalkylen: bred ingredienstabell till vänster, pris till höger. */
.calc-grid-recipe { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }

.ing-head,
.ing-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) minmax(4.8rem, auto) 2rem;
  gap: .5rem;
  align-items: center;
}
.ing-head {
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: .35rem;
}
.ing-head span:nth-child(n+2):nth-child(-n+5) { text-align: right; }
.ing-list { list-style: none; margin: 0 0 .9rem; padding: 0; }
.ing-row { margin-bottom: .5rem; }
.ing-f { display: block; min-width: 0; margin: 0; }
/* Kolumnrubrikerna syns på bred skärm; etiketterna tar över på mobil. */
.ing-l {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ing-row input {
  width: 100%;
  min-width: 0;
  padding: .5rem .55rem;
  font: inherit;
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.ing-row input[type="number"] { text-align: right; }
.ing-row input:focus { border-color: var(--accent); background: var(--surface); outline: none; }
.ing-cost {
  text-align: right;
  font-size: .9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ing-remove {
  width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-3);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.ing-remove:hover { background: var(--surface-3); color: var(--accent-text); }
.ing-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

@media (max-width: 40rem) {
  .calc-facts { grid-template-columns: 1fr; }
  .calc-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }

  /* Mobil: namnet på egen rad, siffrorna under, kostnaden till höger. */
  .ing-head { display: none; }
  .ing-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 2rem;
    padding: .75rem 0;
    margin: 0;
    border-bottom: 1px solid var(--line);
  }
  .ing-row .ing-f-name { grid-column: 1 / 4; }
  .ing-row .ing-remove { grid-column: 4; grid-row: 1; align-self: end; }
  .ing-row .ing-cost { grid-column: 1 / -1; text-align: left; font-size: .875rem; }
  .ing-row .ing-cost::before { content: "Kostnad: "; font-weight: 400; color: var(--ink-3); }
  .ing-row input[type="number"] { text-align: left; }
  .ing-l {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--ink-3);
    margin-bottom: .2rem;
    white-space: nowrap;
  }
  .ing-l-x { display: none; }
}

@media (max-width: 60rem) {
  .calc-grid,
  .calc-grid-recipe { grid-template-columns: 1fr; }
  .calc-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .calc-output { grid-template-columns: 1fr; }
  .calc-headline { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* -------------------------------------------------------------- kort --- */

.hub { padding: clamp(2rem, 5vw, 4rem) 0; }
.hub-tools { border-bottom: 1px solid var(--line); }

.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.section-head-row > div { max-width: var(--measure); }
.section-head-row .btn { flex: none; }

@media (max-width: 40rem) {
  .section-head-row { display: block; }
  .section-head-row .btn { margin-top: 1.25rem; }
}
.hub-group { margin-bottom: 3rem; }
.hub-group:last-child { margin-bottom: 0; }

.hub-group-title {
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: .7rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card-link-wrap { display: block; text-decoration: none; color: inherit; }

.card-thumb { display: block; background: var(--surface-3); }
.card-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body { padding: 1.25rem 1.35rem 1.5rem; }

.card-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: .28rem .6rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

.card h3 { font-size: 1.1875rem; line-height: 1.3; margin-bottom: .55rem; }
.card p { font-size: .9375rem; color: var(--ink-2); margin-bottom: 1rem; }
.card-cta { font-size: .9063rem; font-weight: 600; color: var(--accent-text); }
.card:hover .card-cta { text-decoration: underline; }

/* -------------------------------------------------------------- promo --- */

.promo { padding: clamp(2rem, 5vw, 4rem) 0; }

.promo-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.promo-text { padding: clamp(1.75rem, 4vw, 2.75rem); color: #f0e8de; }
.promo-text .eyebrow { color: var(--accent-warm); }
.promo-text h2 { color: #fffaf4; font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem); margin-bottom: .85rem; }
.promo-text > p { color: #cbbfb2; }

.promo-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: .6rem;
  font-size: .9375rem;
  color: #cbbfb2;
}
.promo-list li { padding-left: 1.7rem; position: relative; }
.promo-list li b { color: #fffaf4; }
.promo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .65rem;
  height: .65rem;
  border-radius: 2px;
  background: var(--accent-warm);
}

.promo-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.promo-actions .btn-ghost { background: rgba(255, 255, 255, .07); color: #fffaf4; border-color: rgba(255, 255, 255, .22); }
.promo-actions .btn-ghost:hover { background: rgba(255, 255, 255, .13); }
.promo-actions .btn-accent { color: #fff; }

.promo-disclosure { font-size: .8125rem; color: #9d9188; margin: 0; }
.promo-disclosure a { color: #cbbfb2; }

.promo-panel {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: rgba(255, 255, 255, .05);
  border-left: 1px solid rgba(255, 255, 255, .1);
  color: #cbbfb2;
}
.promo-panel-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #9d9188;
  margin-bottom: 1rem;
}

.price-ladder { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.price-ladder li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: .9063rem;
}
.price-ladder li b {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #fffaf4;
  white-space: nowrap;
}
.price-ladder li.cap { border-bottom: 0; }
.price-ladder li.cap b { color: var(--accent-warm); }

.promo-panel-note { font-size: .8125rem; line-height: 1.55; color: #9d9188; margin: 0; }

@media (max-width: 56rem) {
  .promo-inner { grid-template-columns: 1fr; }
  .promo-panel { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* ---------------------------------------------------------- editorial --- */

.editorial { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.editorial h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 1.95rem); margin-bottom: 1.5rem; }
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.75rem 2rem;
}
.editorial-grid h3 { font-size: 1.0625rem; margin-bottom: .45rem; }
.editorial-grid p { font-size: .9375rem; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------------ artikel --- */

.article { padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(3rem, 6vw, 5rem); }

.article-header { margin-bottom: 1.75rem; }
.article-header .kicker { margin-bottom: .9rem; }
.article-header h1 {
  font-size: clamp(2rem, 1.45rem + 2.3vw, 3.05rem);
  margin-bottom: 1rem;
}

.standfirst {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
}
.standfirst em { color: var(--ink); font-style: italic; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--ink-3);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.article-meta a { color: var(--ink-3); }

.article-hero {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: .6rem;
  box-shadow: var(--shadow-md);
}
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.hero-caption {
  font-size: .8125rem;
  color: var(--ink-3);
  margin-bottom: 2.25rem;
  line-height: 1.5;
}

/* Innehållsförteckning */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc h2 {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .85rem;
}
.toc ol {
  margin: 0;
  padding: 0 0 0 1.35rem;
  display: grid;
  gap: .42rem;
  font-size: .9375rem;
}
.toc li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }

/* Brödtext */
.article-content { font-size: 1.0938rem; line-height: 1.75; color: var(--ink); }
.article-content > * { max-width: var(--measure); }

.article-content h2 {
  font-size: clamp(1.5rem, 1.28rem + .95vw, 1.95rem);
  margin: 2.9rem 0 .9rem;
  scroll-margin-top: 5.5rem;
}
.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-size: 1.25rem;
  margin: 2.1rem 0 .65rem;
  scroll-margin-top: 5.5rem;
}

.article-content h4 {
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 1.6rem 0 .5rem;
}

.article-content ul,
.article-content ol { margin: 0 0 1.35rem; padding-left: 1.4rem; }
.article-content li { margin-bottom: .5rem; }
.article-content li::marker { color: var(--ink-3); }
.article-content li > ul,
.article-content li > ol { margin: .5rem 0 .25rem; }

.article-content strong { font-weight: 650; }

.article-content blockquote {
  margin: 2rem 0;
  padding: .3rem 0 .3rem 1.5rem;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.article-content code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--surface-3);
  padding: .12em .38em;
  border-radius: 4px;
}

/* Tabeller — vågrät scroll på små skärmar i stället för sprängd layout */
.table-scroll {
  max-width: none;
  overflow-x: auto;
  margin: 1.9rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.article-content table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
}
.article-content th,
.article-content td {
  padding: .7rem .9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-content thead th {
  background: var(--surface-3);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.article-content tbody tr:last-child td { border-bottom: 0; }
.article-content tbody tr:hover { background: var(--surface-2); }
.article-content td.num,
.article-content th.num { text-align: right; white-space: nowrap; }
.article-content tfoot td {
  font-weight: 700;
  background: var(--surface-2);
  border-top: 2px solid var(--line-strong);
}
.table-caption {
  font-size: .8125rem;
  color: var(--ink-3);
  margin: -1.35rem 0 1.9rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------ rutor --- */

/* Basen gäller även när brödtexten bara skriver varianten, t.ex.
   class="callout-authority" utan "callout" före. */
.callout,
.callout-authority,
.callout-tip,
.callout-example {
  max-width: var(--measure);
  margin: 1.9rem 0;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .9688rem;
  line-height: 1.65;
}
.callout > :last-child,
.callout-authority > :last-child,
.callout-tip > :last-child,
.callout-example > :last-child { margin-bottom: 0; }
.callout .callout-title,
.callout-authority .callout-title,
.callout-tip .callout-title,
.callout-example .callout-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

/* Myndighetsruta — används varje gång vi rör regler, skatt eller livsmedel */
.callout-authority {
  background: var(--brass-soft);
  border-color: color-mix(in srgb, var(--brass) 35%, transparent);
}
.callout-authority .callout-title { color: var(--brass); }
.callout-authority .callout-title::before { content: "⚠"; font-size: 1rem; }

.callout-tip {
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
}
.callout-tip .callout-title { color: var(--green); }
.callout-tip .callout-title::before { content: "✓"; font-size: 1rem; }

.callout-example {
  background: var(--surface-2);
  border-left: 3px solid var(--line-strong);
}
.callout-example .callout-title { color: var(--ink-3); }

/* Nyckeltal */
.keyfacts {
  max-width: var(--measure);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.9rem 0;
}
.keyfacts div { background: var(--surface); padding: 1.1rem 1.2rem; }
.keyfacts dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .3rem;
}
.keyfacts dd {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.keyfacts dd small {
  display: block;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 400;
  color: var(--ink-3);
  margin-top: .25rem;
  line-height: 1.4;
}

/* Checklista */
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .7rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .32em;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: .38rem;
  top: .55em;
  width: .32rem;
  height: .62rem;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Saporio-ruta i artiklar */
.saporio-box {
  max-width: var(--measure);
  margin: 2.4rem 0;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #c4cccf;
  font-size: .9688rem;
  line-height: 1.65;
}
.saporio-box .callout-title { color: var(--accent-warm); }
.saporio-box h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #f7fafb;
  margin: 0 0 .6rem;
  letter-spacing: -.01em;
}
.saporio-box p { margin-bottom: 1rem; }
.saporio-box strong { color: #f7fafb; }
.saporio-box a:not(.btn) { color: var(--accent-warm); }
.saporio-box .btn-accent { color: #fff; }

/* Öppenhetsstycket skrivs av build.py, aldrig för hand — se add_disclosure().
   Det ska läsas, men inte konkurrera med rutans egen text. */
.saporio-disclosure {
  display: block;
  font-size: .8125rem;
  color: #93a0a5;
  margin: 1rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.saporio-disclosure a { color: #aebabf; }

/* Saporio-länkar i löpande text ska se ut som vilken länk som helst. De är
   markerade med rel="sponsored"; att dessutom färga dem annorlunda vore att
   bygga en annons mitt i en mening. Klassen finns för att gå att mäta och
   granska, inte för att synas. */
.saporio-link { }

/* ---------------------------------------------------------------- faq --- */

.faq-item {
  max-width: var(--measure);
  border-bottom: 1px solid var(--line);
}
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-text);
  transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-text); }
.faq-a { padding: 0 0 1.25rem; color: var(--ink-2); font-size: 1rem; }
.faq-a > :last-child { margin-bottom: 0; }

/* -------------------------------------------------- författare & vidare --- */

.author-box {
  max-width: var(--measure);
  display: flex;
  gap: 1.1rem;
  margin: 3.25rem 0 0;
  padding: 1.4rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.author-mark img { border-radius: 10px; }
.author-name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .3rem;
}
.author-box p:last-child { margin-bottom: 0; }

.related { margin-top: 3.25rem; }
.related h2 {
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: .75rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card .card-tag { align-self: flex-start; margin-bottom: .25rem; }
.related-title {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}
.related-desc { font-size: .875rem; color: var(--ink-3); line-height: 1.5; }

/* ------------------------------------------------------------- footer --- */

.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--ink-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand { margin-bottom: .9rem; }
.footer-brand p { max-width: 34ch; }
.footer-org { font-size: .8438rem; color: var(--ink-3); }

.footer-col h2 {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .9rem;
}
.footer-col h2.mt { margin-top: 1.75rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: .9063rem; }
.footer-col a:hover { color: var(--accent-text); text-decoration: underline; }

.footer-note { padding-top: 2rem; font-size: .8438rem; line-height: 1.6; color: var(--ink-3); }
.footer-note p { max-width: 78ch; margin-bottom: 1rem; }
.footer-note b { color: var(--ink-2); }
.copyright { color: var(--ink-3); margin-top: 1.5rem; }

@media (max-width: 56rem) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* -------------------------------------------------------------- print --- */

/* -------------------------------------------------------- sidfotstillägg --- */

.footer-sisters li { margin-bottom: .55rem; line-height: 1.5; }
.footer-col .muted { color: var(--ink-3); font-style: italic; }

@media print {
  .site-header, .breadcrumbs, .nav-toggle, .related, .promo,
  .calc-insight, .site-footer .footer-grid, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article-content > *, .wrap-narrow { max-width: none; }
  .article-content h2 { break-after: avoid; }
  .table-scroll, .callout, .keyfacts { break-inside: avoid; }
  .faq-item[open] .faq-a, .faq-a { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}


/* Ordlista ------------------------------------------------------------- */
.glossary {
  max-width: var(--measure);
  margin: 1.9rem 0;
  border-top: 1px solid var(--line);
}
.glossary dt {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  padding: 1.15rem 0 .3rem;
  scroll-margin-top: 5rem;
}
.glossary dd {
  margin: 0;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--line);
}
.glossary dd p { margin: 0; }
.glossary .term-see {
  margin-top: .45rem;
  font-size: .85rem;
  color: var(--ink-3);
}
.glossary .term-see a { color: var(--accent-text); }

/* Utskrivbara blanketter ----------------------------------------------- */
.print-actions { margin: 1.6rem 0 2rem; }
.print-sheet {
  margin: 1.6rem 0 2.6rem;
  padding: 1.2rem 1.3rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.print-sheet .sheet-head {
  margin: 0 0 .9rem;
  font-size: .9rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.print-sheet .sheet-note {
  margin: .8rem 0 0;
  font-size: .82rem;
  color: var(--ink-3);
}
.sheet-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.sheet-table th,
.sheet-table td {
  border: 1px solid var(--line-strong);
  padding: .45rem .55rem;
  text-align: left;
  vertical-align: top;
}
.sheet-table thead th {
  background: var(--surface-2);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sheet-table tbody td:not(:first-child) { min-width: 2.6rem; height: 2.1rem; }
.sheet-table-two tbody td:nth-child(2),
.sheet-table-two tbody td:nth-child(4) { width: 2.6rem; }

/* Sist i filen: i mörkt läge är accenten ljus, så alla accentknappar måste
   ha mörk text. Reglerna ligger här för att vinna över de ljusa varianterna
   som deklareras längre upp. */
@media (prefers-color-scheme: dark) {
  .promo-actions .btn-accent,
  .saporio-box .btn-accent,
  .site-nav a.nav-cta,
  .site-nav a.nav-cta:hover { color: #08222a; }
}

/* Utskriftsreglerna för blanketterna och ordlistan ligger sist så att de
   vinner över komponentreglerna ovan, som har samma specificitet. */
@media print {
  .print-actions { display: none !important; }
  .print-sheet {
    border: none;
    padding: 0;
    margin: 0 0 1.2rem;
    background: #fff;
    break-inside: avoid;
  }
  .print-sheet + h2 { break-before: page; }
  .sheet-table { font-size: 9.5pt; }
  .sheet-table th, .sheet-table td { border: 1px solid #777; }
  .sheet-table thead th { background: #eee; color: #000; }
  .sheet-table tbody td:not(:first-child) { height: 1.6rem; }
  .glossary dt { break-after: avoid; }
  .glossary dd { break-inside: avoid; }
}
