/* Familie-tema (portal/PREFS.md): lys-først; mørk via prefers-color-scheme,
   eksplisitt [data-fv-theme] (fv-prefs-cookien) vinner uansett. */
:root {
  --paper: #faf9f6; --surface: #ffffff; --ink: #1b1b18; --ink-2: #67665f;
  --muted: #8b897e; --line: #dcdacf; --paper-2: #f0eee6; --paper-3: #e8e6dc;
  --accent: #2f7d43; --accent-tint: #e0eadd; --gold: #a5893f; --gold-tint: #efe9d3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161614; --surface: #1e1e1b; --ink: #edece6; --ink-2: #99978d;
    --muted: #7d7b70; --line: #2e2d29; --paper-2: #211f1c; --paper-3: #262420;
    --accent: #6fbf85; --accent-tint: #22301f; --gold: #c2a45c; --gold-tint: #2e2a1f;
  }
}
:root[data-fv-theme='light'] {
  --paper: #faf9f6; --surface: #ffffff; --ink: #1b1b18; --ink-2: #67665f;
  --muted: #8b897e; --line: #dcdacf; --paper-2: #f0eee6; --paper-3: #e8e6dc;
  --accent: #2f7d43; --accent-tint: #e0eadd; --gold: #a5893f; --gold-tint: #efe9d3;
}
:root[data-fv-theme='dark'] {
  --paper: #161614; --surface: #1e1e1b; --ink: #edece6; --ink-2: #99978d;
  --muted: #7d7b70; --line: #2e2d29; --paper-2: #211f1c; --paper-3: #262420;
  --accent: #6fbf85; --accent-tint: #22301f; --gold: #c2a45c; --gold-tint: #2e2a1f;
}
html { color-scheme: light; }
@media (prefers-color-scheme: dark) { html { color-scheme: dark; } }
:root[data-fv-theme='light'] { color-scheme: light; }
:root[data-fv-theme='dark'] { color-scheme: dark; }

/* Tema-segment i familiemenyen */
.fv-prefs { border-top: 1px solid var(--line); margin-top: 4px; padding: 10px 12px 4px; }
.fv-prefs-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.fv-seg { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.fv-segBtn { font: inherit; font-size: 12.5px; padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; }
.fv-segBtn.on { background: var(--paper-2); color: var(--ink); font-weight: 600; }

/* styles.css — kompilert én gang fra de gamle SCSS-kildene (globals.scss +
   alle components/-partialene) da prosjektet gikk fra Next/Sass til
   Bun + hono/jsx. Redigeres direkte som ren CSS heretter. */
.continue-reading {
  margin-bottom: 3.5rem;
}

.continue-strip {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 640px) {
  .continue-strip {
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  .continue-strip .btn--gold {
    grid-column: 1/-1;
    justify-content: center;
  }
}
.continue-strip__cover {
  width: 56px;
  aspect-ratio: 2/3;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: var(--paper-2);
}
.continue-strip__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}
.continue-strip__body {
  min-width: 0;
}
.continue-strip__label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.continue-strip__title {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--paper);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.continue-strip__chap {
  font-size: 0.8125rem;
  color: rgba(250, 249, 246, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}
.continue-strip__progress {
  width: 100%;
  max-width: 220px;
  height: 3px;
  background: rgba(250, 249, 246, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.continue-strip__progress span {
  display: block;
  height: 100%;
  background: var(--gold);
}
.continue-strip__remove {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: rgba(250, 249, 246, 0.55);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color 150ms ease, background 150ms ease;
}
.continue-strip__remove:hover {
  color: var(--paper);
  background: rgba(250, 249, 246, 0.1);
}

.continue-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.continue-list__item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 150ms ease;
}
.continue-list__item:hover {
  border-color: var(--ink-2);
}
.continue-list__link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 0.5rem 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.continue-list__cover {
  width: 36px;
  aspect-ratio: 2/3;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(27, 27, 24, 0.08), 0 8px 20px rgba(27, 27, 24, 0.1);
  background: var(--paper-2);
}
.continue-list__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1rem;
}
.continue-list__body {
  min-width: 0;
}
.continue-list__title {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.continue-list__chap {
  font-size: 0.75rem;
  color: var(--ink-2);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.continue-list__pct {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}
.continue-list__remove {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color 150ms ease, background 150ms ease;
}
.continue-list__remove:hover {
  color: var(--ink);
  background: rgba(27, 27, 24, 0.06);
}

.reading-progress-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.5rem;
}
.reading-progress-badge__text {
  white-space: nowrap;
}
.reading-progress-badge__link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(47, 125, 67, 0.4);
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  letter-spacing: inherit;
  text-transform: inherit;
}
.reading-progress-badge__link:hover {
  color: var(--ink);
}
.reading-progress-badge--completed {
  color: var(--accent);
}
.reading-progress-badge--completed .reading-progress-badge__link {
  color: var(--accent);
}

.mark-completed {
  text-align: center;
}
.mark-completed--done {
  padding: 1rem 1.5rem;
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--ink);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  font-style: italic;
}
.mark-completed__button {
  display: inline-flex;
  margin: 0 auto;
}

.header__continue-reading {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 6px 12px;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--paper);
  background: var(--accent);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease;
}
.header__continue-reading:hover {
  background: rgb(35.8511627907, 95.3488372093, 51.1069767442);
  color: var(--paper);
}
.header__continue-reading-icon {
  flex: none;
  display: block;
}
@media (max-width: 640px) {
  .header__continue-reading {
    width: 36px;
    height: 36px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .header__continue-reading .header__continue-reading-label {
    display: none;
  }
  .header__continue-reading .header__continue-reading-icon {
    width: 14px;
    height: 14px;
  }
}

:root {
  /* Aliaser fra den gamle SCSS-paletten → familie-tokenene (definert øverst).
     NB: aldri redefiner tokenene selv her — det ga sirkulære variabler som
     brøt system-tema (var(--x) inne i --x er ugyldig). */
  --ink-soft: var(--ink-2);
  --line-soft: var(--paper-3);
  --muted-2: var(--muted);
  --rust: var(--accent);
  --gold-soft: var(--gold-tint);
  --green: var(--accent);
  --green-soft: var(--accent-tint);
  --font-serif: EB Garamond, Georgia, Times New Roman, serif;
  --font-sans: Schibsted Grotesk, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --font-mono: IBM Plex Mono, ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
@media (max-width: 640px) {
  html {
    font-size: 15px;
  }
}

body {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--gold-tint);
  color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }
}

h2 {
  font-size: 1.75rem;
}
@media (max-width: 640px) {
  h2 {
    font-size: 1.5rem;
  }
}

h3 {
  font-size: 1.3125rem;
}

h4, h5, h6 {
  letter-spacing: 0;
}

h4 {
  font-size: 1.125rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover {
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.5rem;
}

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
}
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}

.detail-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 1024px) {
  .detail-container {
    padding: 0 1.5rem;
  }
}
@media (max-width: 640px) {
  .detail-container {
    padding: 0 1rem;
  }
}

.reading-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 640px) {
  .reading-container {
    padding: 0 1rem;
  }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  padding: 3.5rem 0 6rem;
}
@media (max-width: 640px) {
  .main {
    padding: 2rem 0 3.5rem;
  }
}

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

.text-muted {
  color: var(--ink-2);
}

.mono-label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 1.5rem;
}

.mt-3 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 1.5rem;
}

.mb-3 {
  margin-bottom: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: transparent;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: none;
}
.pill--complete {
  color: var(--accent);
  border-color: var(--accent);
}
.pill--complete::before {
  display: block;
  background: var(--accent);
}
.pill--ongoing {
  color: var(--accent);
  border-color: var(--accent);
}
.pill--ongoing::before {
  display: block;
  background: var(--accent);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
@media (max-width: 640px) {
  .section-head h2 {
    font-size: 1.5rem;
  }
}
.section-head__link {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.section-head__link::after {
  content: " ↗";
}
.section-head__link:hover {
  color: var(--ink);
}
.section-head__meta {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.breadcrumb {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--ink);
}
.breadcrumb span.sep {
  color: var(--line);
  padding: 0 0.5rem;
}

.fv-wordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.fv-menu {
  position: relative;
  display: inline-block;
}

.fv-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.fv-summary::-webkit-details-marker {
  display: none;
}
.fv-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.fv-caret {
  flex: none;
  color: var(--ink-2);
  transition: transform 180ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .fv-caret {
    transition: none;
  }
}

.fv-menu[open] .fv-caret {
  transform: rotate(180deg);
}

/* INGEN FASTE PX-GULV I CHROMEN — flogvit-com#48.
   Her sto `min-width: 230px`. Panelet står 23 px inn fra venstre kant, så
   gulvet alene var mer enn et 320 px-viewport har igjen; med tekstforstørrelse
   fra tilgjengelighetsinnstillingene vokste oppføringene i tillegg, og panelet
   ble 25–55 px bredere enn skjermen — verst på finsk, minst på tysk. Målt i
   Chrome, 320 px, 150 % tekst, alle åtte språkene.
   Gulvet er derfor i `em` — det er TEKST som skal få plass, og den vokser med
   brukeren — og BEGGE kantene er klippet mot viewportet. Bare et `min()`-gulv
   holder ikke: innholdet dyttet panelet forbi skjermkanten på egen hånd, så
   `max-width` er den som faktisk binder ved 150 %. */
.fv-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: min(14em, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 80;
}

.fv-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  /* `min-width: auto` på et flex-barn betyr «aldri smalere enn min-content»,
     og da presser en lang oppføring panelet ut igjen uansett hva taket over
     sier. `flex-wrap` er den andre halvdelen: wordmarken er en LÅST enhet
     («FLOGVIT.photosuite» skal ikke brekkes midt i), så når raden ikke lenger
     rekker, må merkelappen få falle ned på egen linje. */
  min-width: 0;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  /* `white-space: nowrap` sto her. Konto-oppføringen er en hel setning som er
     ulikt lang på åtte språk — «kommer snart»-merkelappen og kontoteksten er
     nettopp den variable teksten regelen i flogvit.com/CLAUDE.md advarer mot.
     Wordmarken beholder sin egen nowrap i `.fv-wm`; den er en etikett. */
  white-space: normal;
}
.fv-item:hover {
  background: rgba(27, 27, 24, 0.06);
  color: var(--ink);
}
.fv-item[aria-current=true] {
  background: rgba(27, 27, 24, 0.06);
}
.fv-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fv-wm {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  /* Wordmarken er en LÅST enhet (portal/STYLE.md) — «FLOGVIT.photosuite» skal
     ikke brekkes midt i. Den lå tidligere i `white-space: nowrap` på hele
     `.fv-item`; da den måtte vekk derfra (flogvit-com#48 — konto-oppføringen er
     en setning som er ulikt lang på åtte språk), hører den her, der den bare
     gjelder merkenavnet. lab og puzzles har den samme regelen samme sted. */
  white-space: nowrap;
}

.fv-prod {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 0.95em;
  letter-spacing: 0;
}

.fv-dot {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.fv-dot--ink {
  color: var(--ink);
}

.fv-dot--puzzles {
  color: #2b5bb7;
}

.fv-dot--lab {
  color: #6743b8;
}

.fv-dot--image {
  color: #0f6e77;
}

.fv-dot--books {
  color: var(--accent);
}

.fv-dot--foto {
  color: #b0355f;
}

.fv-dot--photosuite {
  color: #8a5d0b;
}

.fv-soon {
  cursor: default;
}
.fv-soon .fv-brand-b,
.fv-soon .fv-prod {
  color: var(--ink-2);
}
.fv-soon:hover {
  background: transparent;
}

.fv-chip {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
}

.fv-product {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 0.95em;
  color: var(--ink);
  text-decoration: none;
}
.fv-product:hover {
  color: var(--accent);
}
.fv-product:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.fv-kontoitem {
  font-size: 13px;
  border-top: 1px solid var(--border, var(--line));
  margin-top: 4px;
  padding-top: 10px;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 1024px) {
  .site-header__inner {
    padding: 0 1.5rem;
  }
}
@media (max-width: 640px) {
  .site-header__inner {
    padding: 0 1rem;
  }
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 22px;
  padding-bottom: 22px;
}
@media (max-width: 640px) {
  .site-header__inner {
    gap: 0.5rem;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
.site-header__brand {
  font-size: 1.25rem;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .site-header__brand {
    font-size: 1.0625rem;
  }
}
@media (max-width: 400px) {
  .site-header__brand {
    font-size: 1rem;
  }
}
.site-header__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--surface);
  color: var(--ink-2);
  flex: 1;
  max-width: 280px;
  transition: border-color 150ms ease, background 150ms ease;
}
.site-header__search:focus-within {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}
@media (max-width: 1024px) {
  .site-header__search {
    max-width: 220px;
  }
}
@media (max-width: 640px) {
  .site-header__search {
    display: none;
  }
}
.site-header__search-link {
  display: none;
}
@media (max-width: 640px) {
  .site-header__search-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink-2);
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
  }
  .site-header__search-link:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--surface);
  }
}
.site-header__search-icon {
  flex: none;
  color: var(--ink-2);
}
.site-header__search:focus-within .site-header__search-icon {
  color: var(--ink);
}
.site-header__search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--ink);
}
.site-header__search-input::placeholder {
  color: var(--ink-2);
}
@media (max-width: 640px) {
  .site-header__search-input {
    display: none;
  }
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  font-size: 14px;
}
@media (max-width: 1024px) {
  .site-header__nav {
    gap: 1.5rem;
  }
}
@media (max-width: 640px) {
  .site-header__nav {
    gap: 0.5rem;
    font-size: 13px;
  }
}
.site-header__nav-link {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  transition: color 150ms ease;
  white-space: nowrap;
}
.site-header__nav-link:hover {
  color: var(--accent);
}
.site-header__nav-link--active::after, .site-header__nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 640px) {
  .site-header__nav-link:nth-child(n+3) {
    display: none;
  }
}
@media (max-width: 400px) {
  .site-header__nav-link:nth-child(n+2) {
    display: none;
  }
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  margin-top: 6rem;
  color: var(--ink-2);
  font-size: 13px;
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 1024px) {
  .site-footer__inner {
    padding: 0 1.5rem;
  }
}
@media (max-width: 640px) {
  .site-footer__inner {
    padding: 0 1rem;
  }
}
.site-footer__inner {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3.5rem;
}
@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 1024px) {
  .site-footer__brand-col {
    grid-column: 1/-1;
  }
}
.site-footer__brand {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.site-footer__brand-name {
  color: var(--ink);
  text-decoration: none;
}
.site-footer__brand-dot {
  color: var(--accent);
  font-weight: 800;
}
.site-footer__brand-word {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 0.95em;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
}
.site-footer__brand-word:hover {
  color: var(--accent);
}
.site-footer__tag {
  max-width: 42ch;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
.site-footer__col h4 {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.site-footer__col a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 150ms ease;
}
.site-footer__col a:hover {
  color: var(--accent);
}
.site-footer__legal {
  grid-column: 1/-1;
  border-top: 1px solid var(--paper-3);
  padding-top: 18px;
  margin-top: 8px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  letter-spacing: 0.04em;
}
.site-footer__legal-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.site-footer__legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-left: auto;
}
.site-footer__legal-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 150ms ease;
}
.site-footer__legal-links a:hover {
  color: var(--accent);
}
.site-footer__legal-copy {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 11px 20px;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
}
.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 11px 20px;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: rgb(63.48, 63.48, 60.96);
  color: var(--paper);
}
.btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 11px 20px;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 11px 20px;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  background: transparent;
  color: var(--ink-2);
  padding: 8px 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
}
.btn--ghost:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.btn--gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 11px 20px;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  background: var(--gold);
  color: var(--ink);
}
.btn--gold:hover {
  background: var(--gold-tint);
  color: var(--ink);
}
.btn--small {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3.5rem;
}
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
}
.hero__copy {
  min-width: 0;
}
.hero__eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.hero__title {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 22px;
}
@media (max-width: 1024px) {
  .hero__title {
    font-size: 3rem;
  }
}
@media (max-width: 640px) {
  .hero__title {
    font-size: 2.25rem;
  }
}
.hero__title em {
  color: var(--accent);
  font-style: normal;
}
.hero__lede {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0 0 2rem;
}
@media (max-width: 640px) {
  .hero__lede {
    font-size: 1.0625rem;
  }
}
.hero__cta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hero__stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  transform: rotate(-2deg);
  padding: 0 20px;
}
@media (max-width: 640px) {
  .hero__stack {
    max-width: 320px;
    margin: 0 auto;
    transform: rotate(-1deg);
    padding: 0 10px;
  }
}
.hero__stack img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(27, 27, 24, 0.18), 0 2px 6px rgba(27, 27, 24, 0.08);
  background: var(--paper-2);
}
.hero__stack img:nth-child(1) {
  transform: translateY(20px) rotate(-3deg);
}
.hero__stack img:nth-child(2) {
  transform: translateY(-10px) rotate(1deg);
  z-index: 2;
}
.hero__stack img:nth-child(3) {
  transform: translateY(30px) rotate(4deg);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
}
@media (max-width: 1024px) {
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 20px;
  }
}
@media (max-width: 640px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
}
.book-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .book-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .book-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.book-grid--5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 18px;
}
@media (max-width: 1024px) {
  .book-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .book-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.book {
  text-decoration: none;
  color: inherit;
  display: block;
  min-width: 0;
}
.book__cover-wrap {
  position: relative;
  margin-bottom: 14px;
}
.book__cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(27, 27, 24, 0.08), 0 8px 20px rgba(27, 27, 24, 0.1);
  transition: transform 250ms ease, box-shadow 250ms ease;
  display: block;
}
.book__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--paper-2);
  color: var(--muted);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 3rem;
  box-shadow: 0 1px 2px rgba(27, 27, 24, 0.08), 0 8px 20px rgba(27, 27, 24, 0.1);
}
.book:hover .book__cover, .book:hover .book__cover--placeholder {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(27, 27, 24, 0.12), 0 16px 32px rgba(27, 27, 24, 0.12);
}
.book__num {
  position: absolute;
  top: 10px;
  left: -8px;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}
.book__lang {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(27, 27, 24, 0.85);
  color: var(--paper);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 6px;
  border-radius: 2px;
}
.book__status {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.book--coming {
  cursor: default;
  opacity: 0.7;
}
.book--coming .book__cover,
.book--coming .book__cover--placeholder {
  filter: grayscale(0.6);
}
.book--coming:hover .book__cover, .book--coming:hover .book__cover--placeholder {
  transform: none;
  box-shadow: 0 1px 2px rgba(27, 27, 24, 0.08), 0 8px 20px rgba(27, 27, 24, 0.1);
}
.book__series {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.book__title {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.25;
  margin: 0 0 4px;
  color: var(--ink);
}
@media (max-width: 640px) {
  .book__title {
    font-size: 1rem;
  }
}
.book__sub {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.35;
  margin: 0 0 8px;
}
.book__author {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0;
}

.book-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .book-detail {
    grid-template-columns: 240px 1fr;
    gap: 2rem;
  }
}
@media (max-width: 640px) {
  .book-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.book-detail__cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(27, 27, 24, 0.12), 0 18px 40px rgba(27, 27, 24, 0.14);
  background: var(--paper-2);
  display: block;
}
@media (max-width: 640px) {
  .book-detail__cover {
    max-width: 240px;
    margin: 0 auto;
  }
}
.book-detail__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--paper-2);
  color: var(--muted);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 4rem;
  box-shadow: 0 4px 12px rgba(27, 27, 24, 0.12), 0 18px 40px rgba(27, 27, 24, 0.14);
}
.book-detail__title {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
@media (max-width: 1024px) {
  .book-detail__title {
    font-size: 2.5rem;
  }
}
@media (max-width: 640px) {
  .book-detail__title {
    font-size: 2rem;
  }
}
.book-detail__sub {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.375rem;
  color: var(--ink-2);
  margin: 0 0 1rem;
  line-height: 1.3;
}
@media (max-width: 640px) {
  .book-detail__sub {
    font-size: 1.125rem;
  }
}
.book-detail__author {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
}
.book-detail__author span {
  color: var(--ink);
  font-weight: 500;
}
.book-detail__desc {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 0 2rem;
  color: var(--ink);
}
.book-detail__desc p {
  margin-bottom: 0.75em;
}
.book-detail__desc p:last-child {
  margin-bottom: 0;
}
.book-detail__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.book-detail__data {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .book-detail__data {
    grid-template-columns: 130px 1fr;
  }
}
.book-detail__sidebar-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
@media (max-width: 640px) {
  .book-detail__sidebar-pills {
    justify-content: center;
  }
}

.data-label,
.data-value {
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-3);
  font-size: 13px;
}

.data-label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.data-value {
  color: var(--ink);
}

.filter-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
  .filter-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}
.filter-strip__heading {
  flex: 1;
}
.filter-strip__eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}
.filter-strip__title {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
@media (max-width: 640px) {
  .filter-strip__title {
    font-size: 2rem;
  }
}
.filter-strip__sub {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ink-2);
  margin-top: 0.5rem;
}
.filter-strip__tabs {
  display: flex;
  align-items: stretch;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .filter-strip__tabs {
    flex-wrap: wrap;
  }
}
.filter-strip__tab {
  border: none;
  background: none;
  padding: 8px 16px;
  border-bottom: 1px solid transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}
.filter-strip__tab:hover {
  color: var(--ink);
}
.filter-strip__tab--active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.series-feature {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3.5rem;
  border-radius: 4px;
}
@media (max-width: 1024px) {
  .series-feature {
    gap: 2rem;
    padding: 2rem;
  }
}
@media (max-width: 640px) {
  .series-feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}
.series-feature--lg {
  padding: 56px;
}
@media (max-width: 1024px) {
  .series-feature--lg {
    padding: 3.5rem;
  }
}
@media (max-width: 640px) {
  .series-feature--lg {
    padding: 1.5rem;
  }
}
.series-feature__cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(27, 27, 24, 0.12), 0 16px 32px rgba(27, 27, 24, 0.12);
  background: var(--paper-2);
  display: block;
}
@media (max-width: 640px) {
  .series-feature__cover {
    max-width: 220px;
    margin: 0 auto;
  }
}
.series-feature__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--paper-2);
  color: var(--muted);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 4rem;
  box-shadow: 0 4px 12px rgba(27, 27, 24, 0.12), 0 16px 32px rgba(27, 27, 24, 0.12);
}
.series-feature__eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}
.series-feature__title {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
@media (max-width: 1024px) {
  .series-feature__title {
    font-size: 2rem;
  }
}
@media (max-width: 640px) {
  .series-feature__title {
    font-size: 1.75rem;
  }
}
.series-feature--lg .series-feature__title {
  font-size: 3.5rem;
}
@media (max-width: 1024px) {
  .series-feature--lg .series-feature__title {
    font-size: 2.75rem;
  }
}
@media (max-width: 640px) {
  .series-feature--lg .series-feature__title {
    font-size: 2rem;
  }
}
.series-feature__desc {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--ink-2);
  margin: 0 0 1.5rem;
  max-width: 50ch;
  line-height: 1.5;
}
.series-feature__desc p {
  margin-bottom: 0.5em;
}
.series-feature__desc p:last-child {
  margin-bottom: 0;
}
.series-feature--lg .series-feature__desc {
  font-size: 1.1875rem;
}
.series-feature__meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 2rem;
}
.series-feature__meta .dot {
  color: var(--line);
}
.series-feature__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.series-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.series-strip {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}
@media (max-width: 1024px) {
  .series-strip {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 1.5rem;
  }
}
@media (max-width: 640px) {
  .series-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}
.series-strip__item {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 150ms ease;
}
.series-strip__item:hover {
  transform: translateY(-2px);
}
.series-strip__cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(27, 27, 24, 0.08), 0 8px 20px rgba(27, 27, 24, 0.1);
  margin-bottom: 0.5rem;
  display: block;
  transition: opacity 150ms ease, outline 150ms ease;
}
.series-strip__cover--upcoming {
  opacity: 0.55;
}
.series-strip__cover--current {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.series-strip__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--paper-2);
  color: var(--muted);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  box-shadow: 0 1px 2px rgba(27, 27, 24, 0.08), 0 8px 20px rgba(27, 27, 24, 0.1);
  margin-bottom: 0.5rem;
}
.series-strip__num {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
}
.series-strip__num--current {
  color: var(--accent);
  font-weight: 500;
}
.series-strip__title {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 2px;
}

.reading {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 0 6rem;
}
@media (max-width: 640px) {
  .reading {
    padding: 1rem 0 3.5rem;
  }
}
.reading__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3.5rem;
}
@media (max-width: 640px) {
  .reading__nav {
    flex-wrap: wrap;
    font-size: 10px;
    gap: 0.5rem;
  }
}
.reading__nav a {
  color: var(--accent);
  text-decoration: none;
}
.reading__nav a:hover {
  color: var(--ink);
}
.reading__nav-center {
  color: var(--ink-2);
  text-align: center;
}
.reading__nav-end {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.reading__chap-num {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.reading__title {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 2.75rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 2rem;
}
@media (max-width: 640px) {
  .reading__title {
    font-size: 2rem;
  }
}

.chapter__content--compact {
  display: block;
}

.chapter__content--original {
  display: none;
}

[data-reading-mode=original] .chapter__content--compact,
[data-reading-mode=accessible] .chapter__content--compact {
  display: none;
}
[data-reading-mode=original] .chapter__content--original,
[data-reading-mode=accessible] .chapter__content--original {
  display: block;
}

[data-reading-mode=original] .chapter__content--original p {
  margin: 0 0 0.5em;
}

[data-reading-mode=accessible] .chapter__content--original {
  max-width: 32em;
  line-height: 1.95;
  letter-spacing: 0.015em;
}
[data-reading-mode=accessible] .chapter__content--original p {
  margin: 0 0 1em;
}
[data-reading-mode=accessible] .chapter__content--original p:first-of-type::first-letter {
  font-size: 2.5rem;
}

.chapter__content {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--ink);
}
@media (max-width: 640px) {
  .chapter__content {
    font-size: 1.0625rem;
    line-height: 1.6;
  }
}
.chapter__content p {
  margin: 0 0 1em;
}
.chapter__content p:first-of-type::first-letter {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  margin: 4px 8px 0 0;
  color: var(--accent);
}
.chapter__content p:first-of-type::first-line {
  font-variant: small-caps;
  letter-spacing: 0.04em;
}
.chapter__content h2 {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.625rem;
  margin-top: 2em;
  margin-bottom: 0.75em;
  color: var(--ink);
}
.chapter__content h3 {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--ink);
}
.chapter__content blockquote {
  margin: 1.5em 0;
  padding: 1rem 2rem;
  border-left: 2px solid var(--accent);
  background: rgba(165, 137, 63, 0.04);
  font-style: italic;
  color: var(--ink-2);
}
.chapter__content blockquote p:last-child {
  margin-bottom: 0;
}
.chapter__content blockquote p:first-of-type::first-letter {
  font-size: inherit;
  float: none;
  margin: 0;
  color: inherit;
}
.chapter__content blockquote p:first-of-type::first-line {
  font-variant: normal;
  letter-spacing: normal;
}
.chapter__content ul, .chapter__content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}
.chapter__content ul li, .chapter__content ol li {
  margin-bottom: 0.5em;
}
.chapter__content hr {
  border: none;
  height: 0;
  margin: 0.5em 0;
}
.chapter__content strong {
  font-weight: 600;
}
.chapter__content em {
  font-style: italic;
}
.chapter__content a.bible-ref {
  color: inherit;
  text-decoration: underline dotted rgba(47, 125, 67, 0.45);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  border-radius: 2px;
  padding: 0 0.1em;
  margin: 0 -0.1em;
  transition: color 150ms ease, background 150ms ease, text-decoration-color 150ms ease;
}
.chapter__content a.bible-ref:hover, .chapter__content a.bible-ref:focus {
  color: var(--accent);
  background: rgba(47, 125, 67, 0.08);
  text-decoration-style: solid;
  text-decoration-color: var(--accent);
}
.chapter__content h1 a.bible-ref, .chapter__content h2 a.bible-ref, .chapter__content h3 a.bible-ref, .chapter__content h4 a.bible-ref, .chapter__content h5 a.bible-ref, .chapter__content h6 a.bible-ref {
  text-decoration: none;
  padding: 0;
  margin: 0;
}
.chapter__content h1 a.bible-ref:hover, .chapter__content h1 a.bible-ref:focus, .chapter__content h2 a.bible-ref:hover, .chapter__content h2 a.bible-ref:focus, .chapter__content h3 a.bible-ref:hover, .chapter__content h3 a.bible-ref:focus, .chapter__content h4 a.bible-ref:hover, .chapter__content h4 a.bible-ref:focus, .chapter__content h5 a.bible-ref:hover, .chapter__content h5 a.bible-ref:focus, .chapter__content h6 a.bible-ref:hover, .chapter__content h6 a.bible-ref:focus {
  background: transparent;
  text-decoration: none;
}
.chapter__content blockquote a.bible-ref {
  text-decoration-color: rgba(103, 102, 95, 0.4);
}
.chapter__content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(47, 125, 67, 0.3);
  text-underline-offset: 3px;
}
.chapter__content a:hover {
  text-decoration-color: var(--accent);
}
.chapter__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .chapter__nav {
    gap: 0.5rem;
  }
}
.chapter__completed {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--paper-3);
}

.chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: chapter;
  border-top: 1px solid var(--paper-3);
}
.chapter-list li {
  border-bottom: 1px solid var(--paper-3);
  counter-increment: chapter;
}
.chapter-list li a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.1875rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 150ms ease, padding 150ms ease;
}
.chapter-list li a::before {
  content: counter(chapter, decimal-leading-zero);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
  flex: 0 0 auto;
  min-width: 32px;
}
.chapter-list li a:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

.book-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3.5rem;
  align-items: start;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
  .book-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .book-header__cover {
    max-width: 180px;
    margin: 0 auto;
  }
}
.book-header__cover img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(27, 27, 24, 0.12), 0 16px 32px rgba(27, 27, 24, 0.12);
  background: var(--paper-2);
}
.book-header__cover--placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  color: var(--muted);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 4rem;
  box-shadow: 0 4px 12px rgba(27, 27, 24, 0.12), 0 16px 32px rgba(27, 27, 24, 0.12);
}
.book-header__info h1 {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
@media (max-width: 640px) {
  .book-header__info h1 {
    font-size: 1.75rem;
  }
}
.book-header__info p {
  margin-bottom: 0.5rem;
}
.book-header__author {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  margin: 0 0 1rem;
}
.book-header__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .book-header__actions {
    justify-content: center;
  }
}

.reading-mode {
  position: relative;
  display: inline-flex;
}
.reading-mode__toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
  letter-spacing: 0;
  text-transform: none;
}
.reading-mode__toggle:hover, .reading-mode__toggle[aria-expanded=true] {
  color: var(--ink);
  border-color: var(--muted);
}
.reading-mode__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(27, 27, 24, 0.1);
  padding: 0.5rem 0;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.reading-mode__title {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  padding: 0 1rem 0.25rem;
}
.reading-mode__option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background 150ms ease;
}
.reading-mode__option:hover {
  background: rgba(27, 27, 24, 0.05);
}
.reading-mode__option[aria-checked=true] {
  color: var(--accent);
}
.reading-mode__bullet {
  font-size: 0.7rem;
  line-height: 1.4;
  color: inherit;
  flex: 0 0 auto;
}
.reading-mode__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reading-mode__name {
  font-size: 0.875rem;
  font-weight: 500;
}
.reading-mode__hint {
  font-size: 0.75rem;
  color: var(--ink-2);
}

.sok-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--surface);
  color: var(--ink-2);
  max-width: 520px;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.sok-field:focus-within {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}
.sok-field__icon {
  flex: none;
  color: var(--ink-2);
}
.sok-field:focus-within .sok-field__icon {
  color: var(--ink);
}
.sok-field__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--ink);
}
.sok-field__input::placeholder {
  color: var(--ink-2);
}

.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--paper-3);
}

.search-result {
  border-bottom: 1px solid var(--paper-3);
}
.search-result__link {
  display: block;
  padding: 1rem 0;
  color: var(--ink);
  text-decoration: none;
  transition: padding 150ms ease;
}
.search-result__link:hover {
  padding-left: 0.5rem;
}
.search-result__link:hover .search-result__title {
  color: var(--accent);
}
.search-result__title {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: color 150ms ease;
}
.search-result__meta {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  margin-bottom: 0.25rem;
}
.search-result__excerpt {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.search-result__excerpt mark {
  background: rgba(165, 137, 63, 0.35);
  color: var(--ink);
  padding: 0 2px;
  border-radius: 2px;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.language-switcher__item {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
  transition: all 150ms ease;
  background: transparent;
}
.language-switcher__item:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.language-switcher__item--active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--surface);
}
.language-switcher__item--active:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.language-badges {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.language-badges__badge {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  letter-spacing: 0.1em;
  border-radius: 2px;
  text-transform: uppercase;
}

.language-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.language-filter__label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-right: 0.25rem;
}
.language-filter__btn {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 150ms ease;
}
.language-filter__btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.language-filter__btn--active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--surface);
}

/* Innstillinger-siden (portal/SETTINGS.md) */
.settings { max-width: 640px; }
.settings-title { margin: 0 0 1.25rem; }
.settings-group { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.settings-group:first-of-type { border-top: none; padding-top: 0; }
.settings-group h2 { font-size: 1rem; margin: 0 0 0.25rem; color: var(--ink); }
.settings-hint { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--ink-2); }
.settings-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.settings-link:hover { text-decoration: underline; }
.site-header__settings .settings-gear-glyph { font-size: 1rem; line-height: 1; }

/* Konto-chip i headeren (portal/SETTINGS.md) — server-synlig «Logg inn»
   rett før tannhjulet, peker til sentral konto. */
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease;
}
.account-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── FLOGVIT.plus «husking»: bokmerker, uthevinger, download-lås (plus-sync.js) ── */

.plus-locked .plus-lock { opacity: 0.7; }
.plus-locked { position: relative; }

.plus-toolbar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 40;
}
.plus-toolbar__btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.plus-toolbar__btn:hover { transform: translateY(-1px); border-color: var(--gold); }

.plus-panel {
  position: fixed;
  right: 1rem;
  bottom: 4.75rem;
  width: min(20rem, calc(100vw - 2rem));
  max-height: 60vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  padding: 0.75rem 0.9rem;
  z-index: 41;
  font-size: 0.9rem;
}
.plus-panel__head { font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.plus-panel__section {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0.7rem 0 0.3rem;
}
.plus-panel__empty { color: var(--muted); font-style: italic; padding: 0.15rem 0; }
.plus-panel__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.plus-panel__list li { display: flex; align-items: center; gap: 0.4rem; justify-content: space-between; }
.plus-panel__list button { background: none; border: none; color: var(--ink); cursor: pointer; text-align: left; padding: 0.1rem 0; font: inherit; }
.plus-panel__list button[data-jump]:hover { color: var(--gold); }
.plus-panel__quote { color: var(--ink-soft); border-left: 3px solid var(--gold); padding-left: 0.5rem; flex: 1; }
.plus-panel__del { color: var(--muted) !important; font-size: 1.1rem; line-height: 1; flex: 0 0 auto; }
.plus-panel__del:hover { color: var(--rust) !important; }

.plus-hl-pop {
  position: absolute;
  z-index: 50;
  background: var(--ink);
  border-radius: 0.4rem;
  padding: 0.1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.plus-hl-pop button {
  background: none;
  border: none;
  color: var(--paper);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}

mark.plus-highlight {
  background: var(--gold-tint, rgba(212, 160, 23, 0.28));
  color: inherit;
  border-radius: 2px;
  padding: 0 0.05em;
}

.plus-flash {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%) translateY(0.5rem);
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
  pointer-events: none;
}
.plus-flash--in { opacity: 1; transform: translateX(-50%) translateY(0); }
