/* ==========================================================================
   STRAUMĒNI · DIAGNOSTIKAS ATLAS — Pamatdizaina sistēma
   Forensic Editorial Atlas direction.
   Posms 1: foundation. (Sekciju iekšējais izkārtojums nāk Posmos 2-9.)
   ========================================================================== */

/* ---------- 0. Modern reset ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- 1. Design tokens --------------------------------------------- */
:root {
  /* -- Color (linu papīrs + tinte + LV karoga karmīns kā primārais akcents) --
       Karmīns #9E3039 = oficiālā LV karoga sarkanā krāsa.
       Coral demote uz secondary "warm" akcentu (Trimda mantojuma toņi). */
  --paper:        #f5f1e8;
  --paper-white:  #ffffff;     /* true white paneļiem, ja vajag pārtraukt papīra plūsmu */
  --paper-deep:   #ebe4d3;
  --paper-shade:  #ddd4be;
  --ink:          #1a1a1a;
  --ink-soft:     #3a3a38;
  --ink-faint:    #6b6963;

  /* — LV flag colors (primary accent set) — */
  --lv-red:       #9E3039;     /* karmīnsarkanais (Venēciešu sarkans) */
  --lv-red-deep:  #7d2329;     /* tumšāks variant active/hover */
  --lv-red-soft:  rgba(158,48,57,0.08);

  /* — Trimda mantojuma toņi (secondary accent set) — */
  --coral:        #e07a2f;
  --coral-deep:   #b85e1e;
  --mustard:      #d4a437;
  --mustard-deep: #a37e22;
  --amber-deep:   #a8722a;

  /* — Status (traffic light + risk) — */
  --green-go:     #5a7d3a;
  --yellow-hold:  #c69c2f;
  --red-stop:     #9c3d2e;
  --rust:         #7a3927;

  /* — Text-only contrast-safe variants —
     Used ONLY for foreground text. Decorative borders/dots/backgrounds
     keep the lighter tokens above. These pass WCAG AA on --paper.
     • green-text   #466230 → ratio 5.5  (was 4.21 fail)
     • mustard-text #7f6018 → ratio 5.4  (was 3.35 fail)
     • amber-text   #8a5e22 → ratio 5.0  (was 3.65 fail)
     • coral-text   #8a4818 → ratio 5.0  (was 4.00 fail) */
  --green-text:   #466230;
  --mustard-text: #7f6018;
  --amber-text:   #8a5e22;
  --coral-text:   #8a4818;

  /* -- Typography ------------------------------------------------------- */
  /* Playfair Display: elegant luxury serif TIKAI virsrakstiem (h1-h6 + atlas__title + sec__title).
     Sekundārajos tekstos (sec__lede, sublede, sidekick, deep-card verdict utt.) NEKAD neizmanto.
     LV diakritikas (ē ā ī ū ļ ņ ķ ģ š ž č) — pilns Latin Extended atbalsts.
     Inter — visi body teksti, paragrāfs, citāts, secondary copy. Augsts x-height, neitrāls.
     IBM Plex Mono — datu pase + mono labels. */
  --f-display: "Playfair Display", "Cambria", Georgia, serif;
  --f-body:    "Inter", "Helvetica Neue", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Modular scale 1.333 (perfect fourth) */
  --t-xs:   11px;
  --t-sm:   13px;
  --t-base: 16px;
  --t-md:   18px;
  --t-lg:   24px;
  --t-xl:   32px;
  --t-2xl:  42px;
  --t-3xl:  56px;
  --t-4xl:  75px;
  --t-5xl:  100px;
  --t-6xl:  140px;

  /* Spacing (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;
  --sp-11: 160px;

  /* Layout */
  --col-toc:    13rem;   /* sticky TOC width */
  --col-marg-l: 4.5rem;  /* left marginalia inset */
  --col-main:   46rem;   /* main reading column */
  --col-marg-r: 18rem;   /* right marginalia (sources, captions) */
  --gap-grid:   3rem;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-bow:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:  140ms;
  --dur-norm:  280ms;
  --dur-slow:  520ms;
}

/* Global: izņem visu italic (HTML <em>, <i>, <cite>, <dfn>, <var>, <address>).
   Lietotājs vēlas tīrāku lasāmību (v2.6). Emfāze tiek panākta ar font-weight + krāsu. */
em, i, cite, dfn, var, address {
  font-style: normal;
  font-weight: 500;
}

/* ---------- 2. Base body ------------------------------------------------- */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  /* Prevent invisible tooltips + SVG diagrams creating phantom horizontal scroll on mobile */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  /* Linen noise texture overlay — subtle */
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(168,114,42,0.04), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(212,164,55,0.03), transparent 60%),
    /* Linen weave overlay — subtle crosshatch with horizontal and vertical fabric threads.
       Lielāks tile (60px) ar mainīgu opacity dod organisku linu sajūtu, ne mehānisku režģi. */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><g stroke='%23a8722a' stroke-width='0.4' fill='none'><path d='M0 15 L60 15' opacity='0.06'/><path d='M0 30 L60 30' opacity='0.04'/><path d='M0 45 L60 45' opacity='0.06'/><path d='M15 0 L15 60' opacity='0.05'/><path d='M30 0 L30 60' opacity='0.03'/><path d='M45 0 L45 60' opacity='0.05'/></g></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.03 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  /* LV diacritic stability — tell font engine LV locale + no override */
  font-variant-ligatures: contextual common-ligatures;
  font-language-override: "LVI";
  min-height: 100vh;
}

/* All Bodoni Moda display elements need explicit LV-locale + optical sizing.
   `font-optical-sizing: auto` lets the browser pick the right opsz value per rendered
   px size (variable optical-size axis 6-96 — Bodoni Moda's range).
   This ensures `ī`/`ū` macrons sit cleanly at every size tier. */
.display, h1, h2, h3, h4,
.atlas__title, .sec__title, .subtitle, .anchor-num, .verdict__text {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "onum" 0, "lnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-optical-sizing: auto;
}

::selection {
  background: var(--lv-red);
  color: var(--paper-white);
}

/* Skip-link — visible only on keyboard focus, allows skipping past TOC */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--lv-red);
  color: var(--paper-white);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* Mono-label — replaces former h4/h5 misuse for small all-caps section captions.
   Per-context overrides set color (e.g. .gaps .mono-label, .offer__col--yes .mono-label).
   Base just resets paragraph defaults so the label sits tight. */
p.mono-label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-3);
  line-height: 1.3;
}

/* Focus-visible — keyboard-only, never on mouse click.
   Uses box-shadow (not outline) so it stays glued to elements that hover-transform. */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--lv-red);
  border-radius: 2px;
}
/* For tiny inline pills (.cf, .src) the 2-layer ring is too loud — use a single thinner ring */
.cf:focus-visible, .src:focus-visible, .has-tt:focus-visible {
  box-shadow: 0 0 0 2px var(--lv-red);
}
/* Card-level elements already have transform on hover — focus uses same shadow technique
   so the ring transforms with the card */
.aud-card:focus-visible, .idea:focus-visible, .status-card:focus-visible,
.matrix-chip:focus-visible, .ro-item:focus-visible, .step:focus-visible {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--lv-red), 0 6px 18px rgba(26,26,26,0.08);
}

/* ---------- 3. Typography utility classes ------------------------------- */
.display {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.mono {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lv-quote {
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
}

/* ---------- 4. TOC (sticky left sidebar) -------------------------------- */
.toc {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--col-toc);
  padding: var(--sp-7) var(--sp-5) var(--sp-5);
  border-right: 1px solid var(--paper-shade);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.toc__brand {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: var(--ink);
  margin-bottom: var(--sp-7);
}
.toc__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lv-red);
  transition: color var(--dur-norm) var(--ease-out);
}
.toc__brand:hover .toc__brand-mark { color: var(--lv-red-deep); }
.toc__brand-text { display: flex; flex-direction: column; gap: 2px; }
.toc__brand-name {
  font-family: var(--f-display);
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.toc__brand-sub {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.toc__list { display: flex; flex-direction: column; gap: 0; flex: 1; }
.toc__list li a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  /* Ensure 44px AAA touch target — was 42px before */
  min-height: 44px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              padding-left var(--dur-norm) var(--ease-out);
  color: var(--ink-soft);
}
.toc__list li a:hover,
.toc__list li.is-active a {
  color: var(--ink);
  padding-left: var(--sp-2);
  background: linear-gradient(90deg, var(--lv-red-soft) 0%, transparent 100%);
}
.toc__list li.is-active a { color: var(--lv-red-deep); }

.toc__num {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.toc__list li.is-active .toc__num { color: var(--lv-red); }

.toc__label {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.toc__divider {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--paper-shade);
}

.toc__progress {
  height: 2px;
  background: var(--paper-shade);
  margin-top: var(--sp-4);
  overflow: hidden;
}
.toc__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mustard) 0%, var(--lv-red) 100%);
  transition: width var(--dur-norm) var(--ease-out);
}

/* ---------- 5. Main article container ----------------------------------- */
.atlas {
  margin-left: var(--col-toc);
  margin-right: 20rem; /* reserve space for sticky right sidekick on desktop (wider for inline contact form) */
  padding: var(--sp-9) var(--sp-7) var(--sp-10) var(--sp-9);
  max-width: 90rem;
}

/* ---------- 5b. Sticky right sidekick (editorial balance) -------------- */
.sidekick {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 20rem;
  padding: var(--sp-6) var(--sp-5);
  background:
    linear-gradient(180deg, var(--paper-deep) 0%, var(--paper) 100%);
  border-left: 1px solid var(--paper-shade);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidekick__bottom { margin-top: auto; }
.sidekick__contact { margin-top: var(--sp-4); }

/* Visit counter — reģionu sadalījums (ŠĪS lapas statistika) ar inline SVG karodziņiem */
.visit-counter {
  border-top: 1px dotted var(--paper-shade);
  padding-top: var(--sp-3);
}
.visit-counter__label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 var(--sp-2);
}
.visit-counter__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-family: var(--f-mono);
  font-size: 12px;
}
.visit-counter__item { display: inline-flex; align-items: center; gap: 4px; }
.visit-counter__flag {
  width: 19px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.10);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.visit-counter__flag--globe { width: 14px; border-radius: 0; box-shadow: none; color: var(--ink-faint); }
.visit-counter__num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-soft); }
.visit-counter__item--total {
  margin-left: auto;
  padding-left: 10px;
  border-left: 1px solid var(--paper-shade);
}
.visit-counter__item--total .visit-counter__num { color: var(--lv-red); }
.visit-counter__sigma { color: var(--ink-faint); font-weight: 700; }
.sidekick::before {
  /* Stylized Latvian flag — 2:1:2 carmine/white/carmine vertical band on left edge.
     Width + opacity bumped (v2.5.4) for clearer visual recognition. */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 10px;
  background: linear-gradient(180deg, var(--lv-red) 0%, var(--lv-red) 40%, var(--paper-white) 40%, var(--paper-white) 60%, var(--lv-red) 60%, var(--lv-red) 100%);
  opacity: 0.92;
  box-shadow: 1px 0 0 rgba(158, 48, 57, 0.18);
}
.sidekick__crest {
  color: var(--lv-red);
  opacity: 0.55;
  align-self: center;
}
.sidekick__quote {
  margin: 0;
  padding: var(--sp-3) 0;
}
.sidekick__kicker {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lv-red);
  margin: 0 0 var(--sp-3);
  transition: opacity var(--dur-norm) var(--ease-out);
}
.sidekick__text {
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  transition: opacity var(--dur-norm) var(--ease-out);
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}
.sidekick__quote.is-fading .sidekick__kicker,
.sidekick__quote.is-fading .sidekick__text { opacity: 0; }
.sidekick__stamp {
  font-family: var(--f-mono);
  font-size: 9.5px;
  color: var(--ink-faint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-top: 1px dotted var(--paper-shade);
  padding-top: var(--sp-3);
  line-height: 1.7;
}
.sidekick__stamp-line { display: block; }

/* Mobile + tablet: hide sidekick, restore full-width atlas */
@media (max-width: 1100px) {
  .sidekick { display: none; }
  .atlas { margin-right: 0; }
}

/* ---------- 6. Document header (no hero, dense) ------------------------- */
.atlas__head {
  display: grid;
  grid-template-columns: 1fr 22rem;
  gap: var(--gap-grid);
  padding-bottom: var(--sp-7);
  margin-bottom: var(--sp-7);
  border-bottom: 1px solid var(--paper-shade);
  align-items: end;
}

.atlas__kicker {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--lv-red);
  margin-bottom: var(--sp-5);
}

.atlas__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(54px, 7vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-5);
}
.atlas__title span {
  display: block;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.62em;
  margin-top: var(--sp-3);
}

.atlas__sub {
  max-width: 38rem;
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink-soft);
}
.atlas__sub a {
  color: var(--lv-red-deep);
  border-bottom: 1px dotted var(--lv-red);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.atlas__sub a:hover { color: var(--lv-red); border-color: var(--lv-red-deep); }

.atlas__head-meta {
  padding: var(--sp-5);
  background: var(--paper-deep);
  border: 1px solid var(--paper-shade);
  border-radius: 2px;
  position: relative;
}
.atlas__head-meta::before {
  content: "DATU PASE";
  position: absolute;
  top: -8px;
  left: var(--sp-4);
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--lv-red);
  background: var(--paper);
  padding: 0 var(--sp-2);
}
.atlas__head-meta dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sp-2) var(--sp-4);
  font-size: var(--t-sm);
}
.atlas__head-meta dt {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.atlas__head-meta dd {
  font-family: var(--f-body);
  font-size: var(--t-sm);
  color: var(--ink);
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ---------- 7. Lielvārdes josta — section dividers ---------------------- */
/* Subtle SVG pattern strip; zalktis motif (mantojuma jeb amber variant). */
.josta {
  height: 10px;
  margin: var(--sp-8) 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10' width='60' height='10'><path d='M0 5 L5 1 L10 5 L15 9 L20 5 L25 1 L30 5 L35 9 L40 5 L45 1 L50 5 L55 9 L60 5' fill='none' stroke='%23a8722a' stroke-width='0.9' stroke-linecap='square'/><path d='M0 5 L5 9 L10 5 L15 1 L20 5 L25 9 L30 5 L35 1 L40 5 L45 9 L50 5 L55 1 L60 5' fill='none' stroke='%23a8722a' stroke-width='0.9' stroke-linecap='square' opacity='0.5'/></svg>");
  background-repeat: repeat-x;
  background-size: 60px 10px;
  background-position: center;
  opacity: 0.7;
}
.josta--final {
  height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 22' width='60' height='22'><path d='M0 5 L5 1 L10 5 L15 9 L20 5 L25 1 L30 5 L35 9 L40 5 L45 1 L50 5 L55 9 L60 5' fill='none' stroke='%23a8722a' stroke-width='1.1' stroke-linecap='square'/><path d='M0 17 L5 13 L10 17 L15 21 L20 17 L25 13 L30 17 L35 21 L40 17 L45 13 L50 17 L55 21 L60 17' fill='none' stroke='%23a8722a' stroke-width='1.1' stroke-linecap='square'/><rect x='28' y='9' width='4' height='4' fill='%23a8722a' opacity='0.6'/></svg>");
  background-size: 60px 22px;
}

/* LV karoga sarkan-balt-sarkanais akcenta strip — proportions 2:1:2 (oficiālā LV karoga proporcija). */
.lv-stripe {
  display: block;
  height: 10px;
  width: 100%;
  background:
    linear-gradient(to bottom,
      var(--lv-red) 0,
      var(--lv-red) 40%,
      var(--paper-white) 40%,
      var(--paper-white) 60%,
      var(--lv-red) 60%,
      var(--lv-red) 100%);
  border-top: 1px solid var(--lv-red-deep);
  border-bottom: 1px solid var(--lv-red-deep);
}
.lv-stripe--thin {
  height: 5px;
}
.lv-stripe--inset {
  margin: 0 auto;
  max-width: 240px;
}

/* Variant with Lielvārdes pattern: red carmine + amber alternating */
.josta--lv {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10' width='60' height='10'><path d='M0 5 L5 1 L10 5 L15 9 L20 5 L25 1 L30 5 L35 9 L40 5 L45 1 L50 5 L55 9 L60 5' fill='none' stroke='%239E3039' stroke-width='0.9' stroke-linecap='square'/><path d='M0 5 L5 9 L10 5 L15 1 L20 5 L25 9 L30 5 L35 1 L40 5 L45 9 L50 5 L55 1 L60 5' fill='none' stroke='%239E3039' stroke-width='0.9' stroke-linecap='square' opacity='0.45'/></svg>");
  opacity: 0.85;
}

/* ---------- 8. Section base layout -------------------------------------- */
.sec, .metodika {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--sp-5) var(--sp-7);
  padding: var(--sp-7) 0;
}
.sec__head { grid-column: 1 / -1; margin-bottom: var(--sp-5); }
.sec__num {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--lv-red);
  display: inline-block;
  margin-bottom: var(--sp-3);
}
.sec__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.sec__lede {
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 42rem;
}

.sec__body { grid-column: 1 / -1; }

/* Placeholder for unbuilt sections */
.placeholder {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  color: var(--ink-faint);
  padding: var(--sp-7);
  border: 1px dashed var(--paper-shade);
  background: linear-gradient(135deg, var(--paper) 25%, var(--paper-deep) 25%, var(--paper-deep) 50%, var(--paper) 50%, var(--paper) 75%, var(--paper-deep) 75%);
  background-size: 16px 16px;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ---------- 9. Methodology footer --------------------------------------- */
.metodika {
  margin-top: var(--sp-9);
  padding: var(--sp-9) 0 var(--sp-10);
  border-top: 1px solid var(--paper-shade);
  border-bottom: 4px double var(--paper-shade);
}
/* FIX: head + body must span both grid columns (was only body) — without this,
   the metodika H2 gets squeezed into the 4.5rem first column and breaks word-by-word. */
.metodika__head { grid-column: 1 / -1; margin-bottom: var(--sp-5); }
.metodika__body { grid-column: 1 / -1; }

/* ==========================================================================
   ESTATE FASCIA — viena kontekstuāla attēla josla starp galveni un 1. sekciju
   ========================================================================== */
.fascia {
  position: relative;
  margin: var(--sp-7) 0;
  background: transparent;
}
/* Media wrap — holds the image + overlay only. Caption sits below this.
   Height matches LV flag's white middle band: flag is fixed 100vh, white
   band sits at 40-60% (=20vh). Using clamp() so tiny / huge screens stay
   sensible: floor 160px (small laptops), ceil 280px (4K). */
.fascia__media {
  position: relative;
  height: clamp(160px, 20vh, 280px);
  overflow: hidden;
  background: var(--paper-deep);
  border-top: 1px solid var(--paper-shade);
  border-bottom: 1px solid var(--paper-shade);
}
.fascia__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: sepia(0.18) saturate(0.85) contrast(0.95) brightness(0.96);
}
.fascia__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(245,241,232,0.20) 0%, rgba(245,241,232,0.06) 35%, rgba(245,241,232,0.40) 100%),
    radial-gradient(ellipse at 70% 100%, rgba(158,48,57,0.10), transparent 70%);
}
/* Caption — placed BELOW the image, single line (overflow-truncated if too long).
   Was previously absolutely positioned on top of the image; moved out for clarity. */
.fascia__caption {
  display: block;
  margin-top: var(--sp-3);
  padding: 0 var(--sp-3);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fascia__caption strong {
  color: var(--lv-red);
  font-weight: 600;
}
@media (max-width: 640px) {
  .fascia__caption {
    font-size: 9px;
    letter-spacing: 0.08em;
    padding: 0 var(--sp-2);
  }
}

/* Pullquote — primary source voice as full-width centered quote.
   Used in Sec 6 (Karolīne LSM 2025) and similar editorial moments. */
.pullquote {
  margin: var(--sp-7) 0 var(--sp-8);
  padding: var(--sp-6) var(--sp-7);
  background: var(--paper-white);
  border-top: 2px solid var(--lv-red);
  border-bottom: 2px solid var(--lv-red);
  text-align: center;
  position: relative;
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 var(--sp-3);
  font-family: var(--f-display);
  font-size: 36px;
  color: var(--lv-red);
  line-height: 1;
}
.pullquote p {
  font-family: var(--f-display);
  font-style: normal;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0 auto var(--sp-4);
  max-width: 50rem;
}
.pullquote cite {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Deep-card — editorial sub-block within sections (Sec 1 finanšu/teritorija/72QT).
   Light paper card with red left accent, hosts paragraphs, lists, blockquote, source meta. */
.deep-card {
  margin-top: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--paper-white);
  border-left: 4px solid var(--lv-red);
  border: 1px solid var(--paper-shade);
  border-left-width: 4px;
}
.deep-card p {
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
}
.deep-card p:last-of-type { margin-bottom: 0; }
.deep-card .deep-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
}
.deep-card .deep-list li {
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 8px 0 8px 28px;
  position: relative;
  border-top: 1px dashed var(--paper-shade);
}
.deep-card .deep-list li:first-child { border-top: none; }
.deep-card .deep-list li::before {
  content: "·";
  position: absolute;
  left: 10px;
  top: 6px;
  color: var(--lv-red);
  font-weight: 600;
  font-size: 20px;
}
.deep-card .deep-list--numbered {
  counter-reset: deep-counter;
}
.deep-card .deep-list--numbered li::before {
  content: counter(deep-counter, decimal-leading-zero);
  counter-increment: deep-counter;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lv-red);
  left: 0;
  top: 10px;
}
.deep-card .deep-list--numbered li {
  padding-left: 32px;
}
.deep-card .deep-quote {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--paper);
  border-left: 2px solid var(--lv-red);
  font-family: var(--f-display);
  font-style: normal;
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink);
}
.deep-card .deep-quote cite {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.deep-card__verdict {
  font-family: var(--f-display);
  font-style: normal;
  font-size: var(--t-md);
  color: var(--ink);
  border-top: 1px dotted var(--paper-shade);
  padding-top: var(--sp-3);
  margin-top: var(--sp-4) !important;
}
.deep-card .status-card__meta {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--paper-shade);
}

/* Mid-page fascia variant — shorter, used as visual breath between sections */
.fascia--mid {
  margin: var(--sp-8) calc(-1 * var(--sp-5));
}
/* Height now inherited from .fascia__media (clamp 20vh) so all fascia
   images share one rhythm with the LV flag white band. */
.fascia--mid .fascia__img {
  object-position: center 50%;
}
@media (max-width: 900px) {
  .fascia--mid {
    margin: var(--sp-7) 0;
  }
}

/* ==========================================================================
   SEKCIJA 1 — STĀVOKLIS ŠODIEN (Posms 2)
   Anchoring + chart + entity diagram + status callouts + verdict.
   ========================================================================== */

/* -- Anchor display --------------------------------------------------- */
.s1-anchor {
  padding: var(--sp-5) 0 var(--sp-7);
  border-bottom: 1px solid var(--paper-shade);
  margin-bottom: var(--sp-7);
}
.anchor-num {
  display: block;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(80px, 13vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums;
}
.anchor-label {
  display: block;
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--ink-soft);
  margin-top: var(--sp-3);
  letter-spacing: -0.005em;
}
.anchor-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-4);
}

/* -- Confidence pills ------------------------------------------------- */
.cf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: help;
  border: 1px solid;
  position: relative;
  line-height: 1.2;
  transition: transform var(--dur-fast) var(--ease-out);
}
.cf:hover { transform: translateY(-1px); }
.cf--verified { background: rgba(90,125,58,0.10); border-color: rgba(90,125,58,0.4); color: var(--green-text); }
.cf--likely   { background: rgba(198,156,47,0.10); border-color: rgba(198,156,47,0.4); color: var(--mustard-text); }
.cf--disputed { background: rgba(156,61,46,0.10); border-color: rgba(156,61,46,0.4); color: var(--red-stop); }
.cf__dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.cf--verified .cf__dot { background: var(--green-go); }
.cf--likely .cf__dot   { background: var(--mustard); }
.cf--disputed .cf__dot { background: var(--red-stop); }

/* -- Source link inline ---------------------------------------------- */
.src {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--lv-red-deep);
  border-bottom: 1px dotted var(--lv-red);
  cursor: help;
  position: relative;
  text-transform: uppercase;
  /* AA touch target — 24px min height */
  padding: 4px 2px;
  min-height: 24px;
  line-height: 16px;
}

/* -- Tooltip system --------------------------------------------------- */
.tt {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 2px;
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 400;
  line-height: 1.45;
  /* Never wider than viewport with breathing room — prevents horizontal scroll on mobile */
  max-width: min(320px, calc(100vw - 32px));
  width: max-content;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  z-index: 200;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 6px 24px rgba(26,26,26,0.18);
}
.tt::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.cf:hover .tt, .src:hover .tt, .has-tt:hover .tt, .has-tt:focus-within .tt {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* -- Lede + sidebar --------------------------------------------------- */
.s1-lede {
  display: grid;
  grid-template-columns: 1fr 18rem;
  gap: var(--gap-grid);
  margin-bottom: var(--sp-8);
  align-items: start;
}
.s1-lede__main p {
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--ink);
  max-width: 40rem;
}
.s1-lede__sidebar {
  font-family: var(--f-body);
  padding: var(--sp-5);
  background: var(--paper-deep);
  border-left: 3px solid var(--mustard);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.s1-lede__sidebar strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--lv-red);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.s1-lede__sidebar .mini-num {
  font-family: var(--f-display);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-weight: 500;
  color: var(--ink);
}

/* -- Section title for sub-units within sec --------------------------- */
.subtitle {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: var(--sp-7) 0 var(--sp-3);
}
.subtitle__kicker {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lv-red);
  margin-bottom: var(--sp-2);
}
.sublede {
  font-family: var(--f-display);
  font-style: normal;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 40rem;
  margin-bottom: var(--sp-5);
}

/* -- Chart layout ----------------------------------------------------- */
.chart-svg-wrap {
  display: grid;
  grid-template-columns: 1fr 18rem;
  gap: var(--gap-grid);
  align-items: start;
  margin-top: var(--sp-5);
  max-width: 100%;
}
.chart-svg {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  height: auto;
  display: block;
  background: var(--paper);
}
.chart-svg .ax-line,
.chart-svg .grid-line { stroke: var(--paper-shade); stroke-width: 0.6; }
.chart-svg .ax-label {
  font-family: var(--f-mono);
  font-size: 10px;
  fill: var(--ink-faint);
  letter-spacing: 0.04em;
}
.chart-svg .pt-label {
  font-family: var(--f-display);
  font-weight: 500;
  fill: var(--ink);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.chart-svg .annot-line { stroke: var(--rust); stroke-width: 0.7; stroke-dasharray: 2 3; }
.chart-svg .annot-text {
  font-family: var(--f-mono);
  font-size: 9.5px;
  fill: var(--rust);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.chart-svg .data-line {
  fill: none;
  stroke: var(--amber-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-svg .data-area {
  fill: url(#g-area);
  opacity: 0.4;
}
.chart-svg .data-pt { fill: var(--amber-deep); }
.chart-svg .data-pt-peak { fill: var(--coral); }

.chart-marginalia {
  font-family: var(--f-body);
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.5;
  border-top: 1px solid var(--paper-shade);
  padding-top: var(--sp-3);
}
.chart-marginalia dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lv-red);
  margin-top: var(--sp-3);
  font-weight: 500;
}
.chart-marginalia dt:first-child { margin-top: 0; }
.chart-marginalia dd { margin: 4px 0 var(--sp-3); color: var(--ink); }

/* -- Entity diagram --------------------------------------------------- */
.entity-svg-wrap {
  margin-top: var(--sp-5);
  background: var(--paper);
  padding: var(--sp-5);
  border: 1px solid var(--paper-shade);
  position: relative;
  /* Mobile fallback: allow horizontal pan if SVG content can't shrink enough */
  overflow-x: auto;
  max-width: 100%;
}
.entity-svg {
  width: 100%;
  height: auto;
  display: block;
  /* Don't let SVG natural size override container width */
  max-width: 100%;
  min-width: 0;
}
.entity-svg .ent-node rect {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.2;
  rx: 2;
}
.entity-svg .ent-node--charity rect { fill: var(--paper-deep); stroke: var(--amber-deep); stroke-width: 1.6; }
.entity-svg .ent-node--sub rect { stroke: var(--coral-deep); }
.entity-svg .ent-node--dvf rect { fill: var(--paper-deep); stroke-dasharray: 4 3; }
.entity-svg .ent-node--dead rect { fill: transparent; stroke: var(--ink-faint); opacity: 0.5; }
.entity-svg .ent-node--notgroup rect { fill: transparent; stroke: var(--red-stop); stroke-dasharray: 2 2; }
.entity-svg .ent-label {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 13px;
  fill: var(--ink);
  text-anchor: middle;
}
.entity-svg .ent-label--big { font-size: 16px; font-weight: 600; }
.entity-svg .ent-sub {
  font-family: var(--f-mono);
  font-size: 9px;
  fill: var(--ink-faint);
  letter-spacing: 0.05em;
  text-anchor: middle;
  text-transform: uppercase;
}
.entity-svg .ent-num {
  font-family: var(--f-mono);
  font-size: 9px;
  fill: var(--lv-red-deep);
  text-anchor: middle;
  letter-spacing: 0.04em;
}
.entity-svg .ent-strike {
  font-family: var(--f-display);
  font-size: 13px;
  fill: var(--ink-faint);
  text-anchor: middle;
  text-decoration: line-through;
}
.entity-svg .ent-line {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.2;
}
.entity-svg .ent-line--dead { stroke: var(--ink-faint); stroke-dasharray: 3 3; opacity: 0.5; }
.entity-svg .ent-flow-label {
  font-family: var(--f-mono);
  font-size: 10px;
  fill: var(--lv-red-deep);
  letter-spacing: 0.04em;
}

/* -- Status callouts row --------------------------------------------- */
.status-row {
  display: grid;
  /* 2 cards (Aktīvi + Going concern) — fluid columns adapts if cards added/removed */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-grid);
  margin: var(--sp-8) 0;
}
.status-card {
  background: var(--paper);
  border: 1px solid var(--paper-shade);
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
  position: relative;
  transition: transform var(--dur-norm) var(--ease-out), border-color var(--dur-norm) var(--ease-out);
}
.status-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-faint);
}
.status-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.status-card--ok::before { background: var(--green-go); }
.status-card--warn::before { background: var(--mustard); }
.status-card--note::before { background: var(--lv-red); }
.status-card__kicker {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--sp-3);
}
.status-card h4 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-lg);
  line-height: 1.15;
  margin: 0 0 var(--sp-3);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.status-card p {
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.status-card__meta {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--paper-shade);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* -- Verdict line ----------------------------------------------------- */
.verdict {
  margin-top: var(--sp-9);
  padding: var(--sp-8) 0 var(--sp-7);
  border-top: 4px double var(--paper-shade);
  border-bottom: 1px solid var(--paper-shade);
  text-align: center;
}
.verdict__text {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
  margin: 0;
  padding: 0;
}
.verdict__text strong {
  font-style: normal;
  font-weight: 600;
  color: var(--lv-red);
}
.verdict__seg {
  display: block;
}
/* Diamond separator — atbilst sidekick crest stilam */
.verdict__sep {
  display: block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--lv-red);
  transform: rotate(45deg);
  opacity: 0.55;
  margin: var(--sp-2) 0;
  background: transparent;
}

/* ==========================================================================
   SEKCIJA 2 — NARATĪVA TIMELINE (vertikāla, ar zariem)
   ========================================================================== */
.timeline {
  position: relative;
  padding: var(--sp-5) 0 var(--sp-7);
  margin: var(--sp-5) 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 96px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg,
    var(--lv-red) 0%,
    var(--amber-deep) 35%,
    var(--ink-soft) 70%,
    var(--lv-red) 100%);
}
.tl-event {
  display: grid;
  grid-template-columns: 96px 24px 1fr;
  gap: 0 var(--sp-5);
  margin-bottom: var(--sp-6);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.tl-event.is-visible { opacity: 1; transform: translateY(0); }
.tl-year {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1;
  color: var(--lv-red);
  text-align: right;
  padding-top: 2px;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.01em;
}
.tl-node {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.tl-node::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--lv-red);
  box-shadow: 0 0 0 4px var(--paper);
  z-index: 2;
}
.tl-event--pivot .tl-node::before {
  background: var(--lv-red);
  width: 18px;
  height: 18px;
}
.tl-event--end .tl-node::before {
  background: var(--mustard);
  border-color: var(--mustard-deep);
}
.tl-body {
  padding-left: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-left: 1px dotted var(--paper-shade);
}
.tl-body h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-lg);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--sp-2);
  letter-spacing: -0.01em;
}
.tl-body p {
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0;
}

/* ==========================================================================
   SEKCIJA 3 — AUDITORIJU KARTE
   ========================================================================== */
.aud-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}
.aud-card {
  background: var(--paper);
  border: 1px solid var(--paper-shade);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  /* 4 cards per row (was 3 per row) — 7 cards now flow as 4 + 3, hero takes bottom row */
  grid-column: span 3;
  position: relative;
  transition: transform var(--dur-norm) var(--ease-out), border-color var(--dur-norm);
}
.aud-card:hover { transform: translateY(-3px); border-color: var(--ink-faint); }
.aud-card__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.aud-card__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.aud-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px var(--sp-3);
  font-size: 12px;
  margin-top: var(--sp-2);
}
.aud-card dt {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
  align-self: start;
  padding-top: 2px;
}
.aud-card dd { margin: 0; color: var(--ink-soft); }
.aud-card__status {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  border-top: 1px solid var(--paper-shade);
  padding-top: var(--sp-2);
  margin-top: var(--sp-2);
}

/* HERO segment — Alex Māzers */
.aud-hero {
  grid-column: span 12;
  background: linear-gradient(135deg, var(--paper-deep) 0%, var(--paper) 70%);
  border: 2px solid var(--lv-red);
  padding: var(--sp-6) var(--sp-7);
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.aud-hero::before {
  content: "ATSTĀTI UZ GALDA";
  position: absolute;
  top: -12px;
  left: var(--sp-5);
  background: var(--lv-red);
  color: var(--paper-white);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 4px 10px;
}
.aud-hero h4 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
}
.aud-hero h4 em {
  font-style: normal;
  color: var(--lv-red);
}
.aud-hero p {
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40rem;
}
.aud-hero__meta {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-faint);
  border-left: 2px solid var(--lv-red);
  padding-left: var(--sp-4);
}
.aud-hero__meta strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lv-red);
  margin-bottom: var(--sp-2);
}

.aud-payload {
  margin-top: var(--sp-7);
  padding: var(--sp-5) var(--sp-6);
  background: var(--paper-white);
  border-left: 4px solid var(--lv-red);
  font-family: var(--f-display);
  font-style: normal;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--ink);
}

/* ==========================================================================
   SEKCIJA 4 — 6 ATTĪSTĪBAS IDEJAS (traffic light cards)
   ========================================================================== */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}
.idea {
  background: var(--paper);
  border: 1px solid var(--paper-shade);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm);
}
.idea:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(26,26,26,0.08);
}
.idea::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.idea--green::before  { background: var(--green-go); }
.idea--yellow::before { background: var(--mustard); }
.idea--red::before    { background: var(--red-stop); }

.idea__signal {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.idea__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.idea--green  .idea__signal { color: var(--green-text); }
.idea--green  .idea__dot    { background: var(--green-go); }
.idea--yellow .idea__signal { color: var(--mustard-text); }
.idea--yellow .idea__dot    { background: var(--mustard); }
.idea--red    .idea__signal { color: var(--red-stop); }
.idea--red    .idea__dot    { background: var(--red-stop); }

.idea__num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: var(--paper-shade);
  letter-spacing: -0.02em;
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-5);
  z-index: 0;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.idea h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  max-width: calc(100% - 60px);
}
.idea dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sp-2) var(--sp-3);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0 0 var(--sp-4);
}
.idea dt {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
  padding-top: 1px;
}
.idea dd {
  margin: 0;
  color: var(--ink-soft);
}
.idea__move {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--paper-shade);
  font-family: var(--f-body);
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.5;
  color: var(--ink);
}
.idea__move strong {
  display: block;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.idea-opening {
  margin-top: var(--sp-7);
  padding: var(--sp-5) var(--sp-6);
  background: var(--paper-white);
  border: 1px dashed var(--green-go);
  border-radius: 2px;
}
.idea-opening .mono-label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--green-text);
  margin: 0 0 var(--sp-3);
  text-transform: uppercase;
}
.idea-opening p {
  font-family: var(--f-display);
  font-style: normal;
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

/* ==========================================================================
   V2 — Executive Summary + Zilonis (intro pirms Sec 01) + Sec 07 3 bloki
   ========================================================================== */
.atlas-intro { margin: var(--sp-5) 0 var(--sp-7); }
.atlas-intro .sec__lede { color: var(--ink); }

.zilonis {
  margin: var(--sp-6) 0 var(--sp-7);
  padding: var(--sp-6) var(--sp-7);
  background: var(--paper-white);
  border: 1px solid var(--paper-shade);
  border-left: 4px solid var(--lv-red);
  border-radius: 2px;
}
.zilonis__kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lv-red);
  margin: 0 0 var(--sp-4);
}
.zilonis__text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  max-width: 46rem;
}

.strat-blocks { display: grid; gap: var(--sp-5); margin-top: var(--sp-6); }
@media (min-width: 900px) { .strat-blocks { grid-template-columns: repeat(3, 1fr); } }
.strat-block {
  background: var(--paper-white);
  border: 1px solid var(--paper-shade);
  border-top: 3px solid var(--lv-red);
  border-radius: 2px;
  padding: var(--sp-5);
}
.strat-block__num {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--lv-red);
  display: block;
  margin-bottom: var(--sp-3);
}
.strat-block__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--sp-3);
}
.strat-block__text {
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* Prakstiskās prasmes — kompakta josla zem 3 blokiem (ne frīlansera izvēlne) */
.skills { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--paper-shade); }
.skills__label { color: var(--ink-faint); margin: 0 0 var(--sp-4); }
.skills__list { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 0; }
.skills__list li {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-soft);
  background: var(--paper-white);
  border: 1px solid var(--paper-shade);
  border-radius: 2px;
  padding: 7px 11px;
}

/* Phase 3 mobile fix — metod-bundle full-bleed negatīvā mala pārplūst šaurā
   ekrānā (calc(-1*--sp-7) > mobilais padding). Neitralizē zem 900px. */
@media (max-width: 900px) {
  .metod-bundle { margin-left: 0 !important; margin-right: 0 !important; }
}

/* ==========================================================================
   SEKCIJA 5 — KLIENTU TĪKLS (2 bridges)
   ========================================================================== */
.bridge {
  margin-top: var(--sp-7);
  background: var(--paper);
  border: 1px solid var(--paper-shade);
  padding: var(--sp-6);
  position: relative;
}
.bridge::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.bridge--red::before    { background: var(--red-stop); }
.bridge--yellow::before { background: var(--mustard); }

.bridge__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-5);
  align-items: end;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--paper-shade);
}
.bridge__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
}
.bridge__signal {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
  white-space: nowrap;
  max-width: 100%;
}
@media (max-width: 640px) {
  .bridge__signal {
    white-space: normal;
    letter-spacing: 0.08em;
    text-align: center;
  }
}
.bridge--red .bridge__signal    { background: rgba(156,61,46,0.12); color: var(--red-stop); border: 1px solid var(--red-stop); }
.bridge--yellow .bridge__signal { background: rgba(212,164,55,0.16); color: var(--mustard-text); border: 1px solid var(--mustard); }

.bridge__diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-5);
  align-items: center;
  margin: var(--sp-5) 0;
}
.bridge__entity {
  text-align: center;
  padding: var(--sp-4);
  background: var(--paper-deep);
  border: 1px solid var(--paper-shade);
}
.bridge__entity strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}
.bridge__entity small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.bridge__link {
  font-family: var(--f-display);
  font-style: normal;
  font-size: var(--t-md);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  white-space: nowrap;
}
.bridge__link::before, .bridge__link::after {
  content: "—";
  color: var(--lv-red);
}
.bridge--red .bridge__link::before, .bridge--red .bridge__link::after {
  color: var(--red-stop);
}

.bridge__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}
.bridge__col .mono-label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lv-red);
  margin: 0 0 var(--sp-3);
}
.bridge__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bridge__col li {
  padding: 4px 0 4px 14px;
  position: relative;
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-soft);
}
.bridge__col li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}
.bridge__seq {
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--paper-white);
  border-left: 3px solid var(--lv-red);
  font-family: var(--f-display);
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}
.bridge__seq strong {
  display: block;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lv-red);
  margin-bottom: var(--sp-2);
}

/* ==========================================================================
   SEKCIJA 6 — RISKI / IESPĒJAS MATRICA
   ========================================================================== */
.ro-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Cols sized to natural content — 2 risks vs 5 opportunities is genuinely asymmetric,
     so don't force fake equalization. Each column flows at its own height. */
  gap: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
  align-items: start;
}
.ro-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.ro-col h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.01em;
}
.ro-col--risk h3 { color: var(--red-stop); }
.ro-col--opp h3  { color: var(--green-go); }
.ro-item {
  padding: var(--sp-3) var(--sp-4);
  background: var(--paper);
  border: 1px solid var(--paper-shade);
  border-left: 3px solid;
  /* margin removed — subgrid handles spacing via gap. Items stretch to row height. */
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.ro-item:hover { transform: translateX(2px); }
.ro-col--risk .ro-item { border-left-color: var(--red-stop); }
.ro-col--opp .ro-item  { border-left-color: var(--green-go); }
.ro-item__head {
  display: flex;
  gap: var(--sp-3);
  align-items: baseline;
  margin-bottom: 4px;
}
.ro-item__id {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.ro-col--risk .ro-item__id { color: var(--red-stop); }
.ro-col--opp .ro-item__id  { color: var(--green-go); }
.ro-item__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.ro-item p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* 2x2 matrix */
.matrix-wrap {
  margin-top: var(--sp-7);
}
.matrix {
  position: relative;
  height: 380px;
  background: var(--paper);
  border: 1px solid var(--ink-soft);
  margin: var(--sp-5) 0;
}
.matrix-axis-x, .matrix-axis-y {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.matrix-axis-x {
  bottom: -22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--sp-3);
}
.matrix-axis-y {
  top: 0;
  bottom: 0;
  left: -100px;
  width: 90px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
}
.matrix-axis-label {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.matrix-axis-label--x { bottom: -50px; left: 50%; transform: translateX(-50%); }
.matrix-axis-label--y { top: 50%; left: -130px; transform: rotate(-90deg); transform-origin: left center; white-space: nowrap; }
.matrix-grid::before, .matrix-grid::after {
  content: "";
  position: absolute;
  background: var(--paper-shade);
}
.matrix-grid::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.matrix-grid::after { top: 50%; left: 0; right: 0; height: 1px; }
.matrix-chip {
  position: absolute;
  padding: 6px 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 12px;
  border: 1.5px solid;
  background: var(--paper-white);
  cursor: help;
  transition: transform var(--dur-norm) var(--ease-out), z-index 0s;
  white-space: nowrap;
}
.matrix-chip:hover { transform: translate(-50%, -50%) scale(1.1); z-index: 10; }
.matrix-chip.is-opp  { color: var(--green-go); border-color: var(--green-go); }
.matrix-chip.is-risk { color: var(--red-stop); border-color: var(--red-stop); }
.matrix-chip strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   SEKCIJA 7 — KO PIEDĀVĀJU (90 dienu stepper)
   ========================================================================== */
.stepper {
  margin: var(--sp-7) 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-4);
  position: relative;
}
.stepper::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--lv-red), var(--amber-deep), var(--green-go));
  z-index: 0;
}
.step {
  background: var(--paper);
  padding: var(--sp-5);
  border: 1px solid var(--paper-shade);
  position: relative;
  z-index: 1;
}
.step__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lv-red);
  display: inline-block;
  background: var(--paper);
  padding: 0 var(--sp-2);
  margin: -8px 0 var(--sp-3) -8px;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.step:nth-child(2) .step__num { color: var(--amber-deep); }
.step:nth-child(3) .step__num { color: var(--green-go); }
.step h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--sp-3);
  letter-spacing: -0.01em;
}
.step ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
}
.step li {
  padding: 4px 0 4px 18px;
  position: relative;
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--ink-soft);
}
.step li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--lv-red);
  font-size: 10px;
  top: 6px;
}
.step:nth-child(2) li::before { color: var(--amber-deep); }
.step:nth-child(3) li::before { color: var(--green-go); }
.step__why {
  font-family: var(--f-body);
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-faint);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--paper-shade);
}

.offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}
.offer__col {
  padding: var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--paper-shade);
}
.offer__col--yes { border-top: 3px solid var(--green-go); }
.offer__col--no  { border-top: 3px solid var(--red-stop); }
.offer__col .mono-label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-3);
}
.offer__col--yes .mono-label { color: var(--green-text); }
.offer__col--no .mono-label  { color: var(--red-stop); }
.offer__col ul { list-style: none; padding: 0; margin: 0; }
.offer__col li {
  padding: 5px 0 5px 16px;
  position: relative;
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--ink);
}
.offer__col--yes li::before { content: "✓"; position: absolute; left: 0; color: var(--green-go); }
.offer__col--no li::before  { content: "✕"; position: absolute; left: 0; color: var(--red-stop); }

/* v2.0 — 9 offerings ar aprakstiem (offer-grid struktūra) */
.offer-grid {
  margin-top: var(--sp-7);
}
.offer-grid__label {
  color: var(--green-text);
  margin-bottom: var(--sp-5);
}
.offer-grid__label--no {
  color: var(--red-stop);
}
.offer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
}
.offer-card {
  padding: var(--sp-5);
  background: var(--paper-white);
  border: 1px solid var(--paper-shade);
  border-top: 3px solid var(--green-go);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.offer-card h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.offer-card p {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
/* Pēdējais piedāvājums — publicistikas redakcija — izceļams kā hero */
.offer-card--hero {
  background: var(--paper);
  border-top-color: var(--lv-red);
  border-left: 3px solid var(--lv-red);
  grid-column: 1 / -1;
}
.offer-card--hero h4 {
  font-size: 22px;
  color: var(--lv-red);
}
.offer-card--hero p {
  font-style: normal;
  font-family: var(--f-display);
  font-size: var(--t-md);
  color: var(--ink);
}

/* Ko nepiedāvāju — kompakts inline saraksts pēc 9 piedāvājumiem */
.offer-grid--no {
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  background: var(--paper);
  border-left: 3px solid var(--red-stop);
}
.offer-list-no {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
}
.offer-list-no li {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.offer-list-no li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--red-stop);
  font-weight: 600;
}

/* ==========================================================================
   SEKCIJA 8 — ATKLĀTIE JAUTĀJUMI (Top 7 + 12 gaps)
   ========================================================================== */
.questions {
  margin: var(--sp-6) 0;
}
.q {
  border-bottom: 1px solid var(--paper-shade);
  padding: var(--sp-5) 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.q__num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.9;
  color: var(--lv-red);
  letter-spacing: -0.03em;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.q__text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-3);
}
.q__why {
  font-family: var(--f-body);
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0;
}
.q__why strong {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--lv-red);
  font-weight: 600;
  margin-right: var(--sp-2);
}

.gaps {
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  background: var(--paper-deep);
  border-left: 4px solid var(--mustard);
}
.gaps .mono-label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mustard-text);
  margin: 0 0 var(--sp-4);
}
.gaps ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2) var(--sp-5);
  counter-reset: gap-counter;
}
.gaps li {
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--ink-soft);
  counter-increment: gap-counter;
  padding-left: 28px;
  position: relative;
}
.gaps li::before {
  content: counter(gap-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--mustard-text);
  letter-spacing: 0.06em;
  top: 2px;
}

.q-closing {
  margin-top: var(--sp-8);
  padding: var(--sp-7) 0;
  text-align: center;
  border-top: 2px solid var(--lv-red);
  border-bottom: 2px solid var(--lv-red);
}
.q-closing p {
  font-family: var(--f-display);
  font-style: normal;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.q-closing em {
  font-style: normal;
  color: var(--lv-red);
  font-weight: 600;
}

/* ==========================================================================
   METODIKA — process disclosure footer
   ========================================================================== */
.metod-intro {
  font-family: var(--f-display);
  font-style: normal;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 42rem;
  margin-bottom: var(--sp-7);
}
.phase-list { margin: var(--sp-5) 0; }
.phase {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--paper-shade);
}
.phase__id {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lv-red);
  text-transform: uppercase;
  padding-top: 4px;
}
.phase__id em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  color: var(--ink-faint);
  letter-spacing: 0.10em;
  margin-top: 3px;
}
.phase h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 var(--sp-2);
  letter-spacing: -0.01em;
}
.phase p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.phase__out {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--lv-red-deep);
  margin-top: 6px;
}

.metod-cost {
  margin-top: var(--sp-7);
  padding: var(--sp-5) var(--sp-6);
  background: var(--paper-white);
  border-left: 4px solid var(--lv-red);
}
.metod-cost .mono-label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lv-red);
  margin: 0 0 var(--sp-3);
}
.metod-cost ul { list-style: none; padding: 0; margin: 0; }
.metod-cost li {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--ink);
  padding: 3px 0;
  font-family: var(--f-body);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.metod-cost li strong {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--lv-red-deep);
}
.metod-cost .total {
  border-top: 1px solid var(--paper-shade);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  font-weight: 600;
}
.metod-cost .total strong {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--lv-red);
}

/* 4-LLM convergence callout — methodology proof point */
.metod-convergence {
  margin-top: var(--sp-7);
  padding: var(--sp-6) var(--sp-7);
  background: var(--paper-white);
  border: 1px solid var(--paper-shade);
  border-left: 4px solid var(--lv-red);
}
.metod-convergence .mono-label {
  color: var(--lv-red);
  margin-bottom: var(--sp-4);
}
.metod-convergence__lede {
  font-family: var(--f-display);
  font-style: normal;
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 var(--sp-5);
}
.metod-convergence .convergence-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-5);
  counter-reset: conv-counter;
}
.metod-convergence .convergence-list li {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--ink-soft);
  padding: var(--sp-3) 0 var(--sp-3) 36px;
  position: relative;
  counter-increment: conv-counter;
  border-top: 1px dashed var(--paper-shade);
}
.metod-convergence .convergence-list li:first-child { border-top: none; padding-top: 0; }
.metod-convergence .convergence-list li::before {
  content: counter(conv-counter);
  position: absolute;
  left: 0;
  top: var(--sp-3);
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--lv-red);
}
.metod-convergence .convergence-list li:first-child::before { top: 0; }
.metod-convergence__verdict {
  font-family: var(--f-display);
  font-style: normal;
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink);
  border-top: 1px solid var(--paper-shade);
  padding-top: var(--sp-4);
  margin: 0;
}

/* Pilnais izpētes komplekts — download placeholder (aktivizēs pēc CF R2 deploy) */
.metod-bundle {
  margin: var(--sp-7) calc(-1 * var(--sp-7));
  padding: var(--sp-7) var(--sp-7);
  background: var(--paper-deep);
  border-top: 3px solid var(--lv-red);
  border-bottom: 3px solid var(--lv-red);
  text-align: center;
}
.metod-bundle .mono-label {
  /* Promote no maza mono kicker uz pilnvērtīgu display virsrakstu — galvenais
     akcents banner sadaļā. Display serif, sentence case, lielāks par body. */
  font-family: var(--f-display) !important;
  font-size: clamp(28px, 3.6vw, 42px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  text-transform: none !important;
  line-height: 1.15 !important;
  color: var(--lv-red);
  margin-bottom: var(--sp-5);
}
.metod-bundle p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 auto var(--sp-5);
  max-width: 52rem;
}
.metod-bundle__cta-line {
  color: var(--lv-red);
  font-weight: 600;
  display: inline-block;
  margin-top: var(--sp-2);
}
.bundle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
  margin-top: var(--sp-5);
}
.bundle-btn {
  display: inline-block;
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.bundle-btn--primary {
  background: var(--lv-red);
  color: var(--paper);
  border: 1px solid var(--lv-red);
}
.bundle-btn--primary:hover,
.bundle-btn--primary:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  outline: none;
}
.bundle-btn--secondary {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--paper-shade);
}
.bundle-btn--secondary:hover,
.bundle-btn--secondary:focus-visible {
  background: var(--paper-deep);
  border-color: var(--ink);
  color: var(--ink);
  outline: none;
}
.bundle-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--lv-red);
}
.bundle-btn span {
  display: inline-block;
  margin-left: var(--sp-2);
  transition: transform 160ms var(--ease-out);
}
.bundle-btn--primary:hover span { transform: translate(2px, -2px); }
.bundle-btn--secondary:hover span { transform: translateY(2px); }
.bundle-note {
  font-size: 12px !important;
  font-style: normal;
  color: var(--ink-faint);
  margin-top: var(--sp-4) !important;
  max-width: 48rem !important;
}
/* Publiskais skaitītājs — diskrēta mono rinda virs bundle-note. Lielie
   numuri karmīna krāsā kā vieglas vizuālas akcents, pārējais ink-faint. */
.bundle-stats {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: var(--sp-5) auto var(--sp-2);
  text-align: center;
}
.bundle-stats__sep {
  display: inline-block;
  margin: 0 0.7em;
  opacity: 0.4;
}
.bundle-stats [data-stat-downloads],
.bundle-stats [data-stat-visits] {
  color: var(--lv-red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Warm-meeting CTA — atlas closing message */
.metod-cta {
  margin-top: var(--sp-7);
  padding: var(--sp-6) var(--sp-7);
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.metod-cta__lede {
  font-family: var(--f-display);
  font-style: normal;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 var(--sp-5);
}
.metod-cta__signoff {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1;
  color: var(--lv-red);
  letter-spacing: -0.015em;
  margin: 0;
}
.metod-cta__signature {
  font-family: var(--f-body);
  font-size: var(--t-md);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  margin: var(--sp-4) 0 0;
}

.metod-closing {
  margin-top: var(--sp-8);
  padding: var(--sp-8) 0;
  border-top: 4px double var(--paper-shade);
  text-align: center;
}
.metod-closing p {
  font-family: var(--f-display);
  font-style: normal;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.metod-closing em {
  font-style: normal;
  color: var(--lv-red);
  font-weight: 600;
}
/* Middle dot separator in closing — kept for rhythm but rendered as near-invisible white
   so the four words read as one phrase without busy punctuation. */
.metod-closing .metod-dot {
  color: var(--paper-white);
  font-weight: 400;
}

/* ==========================================================================
   10. Responsive — DESKTOP-FIRST; tabletes / mobile = single column
   ========================================================================== */

@media (max-width: 1100px) {
  .toc {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    border-right: none;
    border-bottom: 1px solid var(--paper-shade);
  }
  .toc__brand { margin-bottom: 0; width: 100%; }
  .toc__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-2);
  }
  .toc__list li a {
    grid-template-columns: auto auto;
    padding: var(--sp-2) var(--sp-3);
    border: 1px solid transparent;
  }
  .toc__list li.is-active a {
    border-color: var(--coral);
    background: rgba(224,122,47,0.08);
  }
  .toc__progress { display: none; }
  .toc__divider { margin-top: 0; padding-top: 0; border-top: none; }
  .atlas { margin-left: 0; padding: var(--sp-7) var(--sp-5) var(--sp-9); }
  .atlas__head { grid-template-columns: 1fr; }
  .atlas__head-meta { margin-top: var(--sp-5); }
}

@media (max-width: 900px) {
  .s1-lede,
  .chart-svg-wrap { grid-template-columns: 1fr; }
  .status-row { grid-template-columns: 1fr; }
  .aud-card { grid-column: span 6; }
  .aud-hero { grid-template-columns: 1fr; }
  .idea-grid { grid-template-columns: 1fr 1fr; }
  .ro-cols { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; }
  .stepper::before { display: none; }
  .offer { grid-template-columns: 1fr; }
  .bridge__diagram { grid-template-columns: 1fr; }
  .bridge__cols { grid-template-columns: 1fr; }
  .matrix-axis-y { left: -80px; width: 70px; }
  .matrix-axis-label--y { left: -110px; }
  .gaps ol { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .aud-card { grid-column: span 12; }
  .idea-grid { grid-template-columns: 1fr; }
  .tl-event { grid-template-columns: 60px 20px 1fr; }
  .timeline::before { left: 60px; }
  .q { grid-template-columns: 1fr; }
  .q__num { font-size: 36px; }
}

@media (max-width: 640px) {
  /* Clip page-level horizontal overflow from absolutely-positioned tooltips
     (.tt is 320px, anchored mid-element, can extend past viewport edge).
     Internal scroll containers like .entity-svg-wrap still scroll. */
  html, body { overflow-x: clip; }

  /* Text balance — prevents single-word orphans on the last line.
     Chrome 117+, Safari 17.5+, Firefox graceful fallback. */
  p, h2, h3, h4, h5, h6, li, figcaption, blockquote, .sec__lede, .sublede, .deep-card__verdict, .mobi-modal__title, .mobi-modal__desc {
    text-wrap: pretty;
  }

  :root {
    --col-marg-l: 0;
    --col-main:   100%;
    --col-marg-r: 0;
  }
  .atlas {
    padding: var(--sp-5) var(--sp-3) var(--sp-8);
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  .atlas__title { font-size: clamp(40px, 11vw, 56px); }
  .sec, .metodika { grid-template-columns: 1fr; padding: var(--sp-5) 0; }
  /* Constrain all major content boxes to viewport so SVG min-widths inside
     don't push the parent .sec wider than the page */
  .sec, .sec__head, .sec__body, .metodika, .metodika__head, .metodika__body,
  .chart-wrap, .verdict, .s1-anchor, .timeline, .ro-cols, .stepper, .offer-grid,
  .aud-grid, .idea-grid, .bridge, .matrix, .questions, .gaps, .phase-list,
  .deep-card, .metod-convergence, .pullquote, .metod-cta {
    max-width: 100%;
    min-width: 0;
  }
  .anchor-num { font-size: 64px; }

  /* --- VERDICT mobile — sīkāks diamond + padding (base layout jau vertical) --- */
  .verdict__text {
    font-size: 22px;
    line-height: 1.25;
    padding: 0 var(--sp-3);
  }
  .verdict__sep {
    width: 10px;
    height: 10px;
  }

  /* --- TOC mobile — 2-col grid with equal widths --- */
  .toc__list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px var(--sp-3) !important;
  }
  .toc__list li {
    margin: 0;
  }
  .toc__list li a {
    grid-template-columns: 28px 1fr !important;
    padding: 10px var(--sp-3) !important;
    gap: var(--sp-2);
    align-items: center;
  }
  .toc__divider {
    grid-column: 1 / -1;
  }

  /* --- Charts mobile — natural scaling via viewBox, no horizontal scroll ---
     Desktop-first orientation: chart density is preserved on desktop, mobile
     accepts smaller readability for cleaner page flow. */
  .chart-svg-wrap,
  .entity-svg-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: var(--sp-3) !important;
    overflow-x: visible !important;
    box-sizing: border-box;
  }
  .entity-svg,
  .chart-svg {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* --- Deep card padding optimize mobile --- */
  .deep-card {
    padding: var(--sp-4) var(--sp-4);
  }
  .deep-card .deep-quote {
    padding: var(--sp-3) var(--sp-4);
    margin: var(--sp-4) 0;
  }
  .deep-card__verdict { font-size: var(--t-sm); }

  /* --- Offer cards mobile — single column, generous tap targets --- */
  .offer-cards {
    grid-template-columns: 1fr !important;
    gap: var(--sp-3);
  }
  .offer-card { padding: var(--sp-4); }
  .offer-card--hero { padding: var(--sp-5) var(--sp-4); }

  /* --- Convergence list mobile readable --- */
  .metod-convergence {
    padding: var(--sp-4);
  }

  /* --- Pullquote mobile readable --- */
  .pullquote {
    padding: var(--sp-5) var(--sp-4);
    margin: var(--sp-5) 0;
  }
  .pullquote p { font-size: clamp(17px, 4.5vw, 22px); }

  /* --- Atlas head meta (datu pase) mobile clean spacing --- */
  .atlas__head-meta {
    margin-top: var(--sp-5);
    padding: var(--sp-4);
  }

  /* --- Scroll-to-top — mobile only, fixed bottom-right --- */
  .scroll-top.is-visible {
    display: flex;
  }

  /* --- Inline meta links tap-target padding on mobile --- */
  .s1-lede .src,
  .s1-lede a {
    display: inline-block;
    padding: 6px 0;
    line-height: 1.4;
  }
}

/* ---------- Scroll-to-top button (base + mobile show) ------------------ */
.scroll-top {
  display: none;
  position: fixed;
  bottom: var(--sp-4);
  right: var(--sp-4);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--lv-red);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(158, 48, 57, 0.32);
  z-index: 300;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--ink);
  outline: none;
}
.scroll-top:focus-visible {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--lv-red);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: none; }
}

/* ---------- 10.5 Serif scope enforcement (v2.6.1) -----------------------
   Lietotājs: Playfair Display serif TIKAI virsrakstiem (h1-h6 + heading-equivalent).
   Visus sekundāros tekstus (sec__lede, sublede, sidekick, pullquote, verdict, etc.)
   pārklāj uz DM Sans neatkarīgi no iepriekšējiem font-family noteikumiem.
   ------------------------------------------------------------------------ */
.lv-quote,
.sidekick__text,
.sec__lede,
.sublede,
.pullquote p,
.deep-card__verdict,
.deep-card .deep-quote,
.anchor-label,
.verdict__text,
.bridge__link,
.bridge__seq,
.idea-opening p,
.offer-card--hero p,
.q-closing p,
.q__why,
.q__text,
.metod-intro,
.metod-convergence__lede,
.metod-convergence__verdict,
.metod-cta__lede,
.metod-cta__signoff,
.metod-closing p,
.bundle-note,
.chart-svg .pt-label,
.entity-svg .ent-label,
.entity-svg .ent-strike,
.mobi-modal__desc {
  font-family: var(--f-body);
}

/* ---------- 11. Print friendliness (60+ valde mēdz drukāt) -------------- */
@media print {
  body { background: white; }
  .toc, .sidekick, .mobi-modal, .skip-link, .read-progress { display: none; }
  .atlas { margin: 0; padding: 0; max-width: 100%; }
  a { text-decoration: underline; }
  .sec, .zilonis, .strat-block, .aud-card, .q, .deep-card, .metod-bundle { break-inside: avoid; }
}

/* ---------- 12. Reduced motion respect ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 13. Mobile welcome modal (desktop-first notice) ------------- */
/* Trigger: JS sets [hidden] off + adds .is-open on mobile viewports only. */

.mobi-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-out);
}
.mobi-modal[hidden] { display: none; }
.mobi-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobi-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.30);
  backdrop-filter: blur(20px) saturate(0.85);
  -webkit-backdrop-filter: blur(20px) saturate(0.85);
}

.mobi-modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - var(--sp-6));
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--paper-shade);
  border-top: 3px solid var(--lv-red);
  border-radius: 2px;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  box-shadow:
    0 20px 48px rgba(20, 18, 14, 0.28),
    0 4px 12px rgba(20, 18, 14, 0.18);
  transform: translateY(12px) scale(0.98);
  transition: transform 320ms var(--ease-out);
}
.mobi-modal.is-open .mobi-modal__panel {
  transform: translateY(0) scale(1);
}

.mobi-modal__kicker {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lv-red);
  margin: 0 0 var(--sp-3);
  font-weight: 600;
}

.mobi-modal__title {
  font-family: var(--f-display);
  font-size: clamp(22px, 5.5vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--sp-3);
  font-weight: 500;
}

.mobi-modal__desc {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 var(--sp-4);
}

.mobi-modal__preview {
  margin: 0 calc(var(--sp-5) * -1) var(--sp-4);
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  background: var(--paper-shade);
  border-top: 1px solid var(--paper-shade);
  border-bottom: 1px solid var(--paper-shade);
}
.mobi-modal__preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(20, 18, 14, 0.12);
  box-shadow: 0 4px 16px rgba(20, 18, 14, 0.12);
}
.mobi-modal__cap {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: var(--sp-2) 0 0;
  text-align: center;
}

.mobi-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.mobi-modal__btn {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.mobi-modal__btn--primary {
  background: var(--lv-red);
  color: var(--paper);
  border: 1px solid var(--lv-red);
}
.mobi-modal__btn--primary:hover,
.mobi-modal__btn--primary:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  outline: none;
}
.mobi-modal__btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--paper-shade);
}
.mobi-modal__btn--ghost:hover,
.mobi-modal__btn--ghost:focus-visible {
  border-color: var(--ink);
  background: var(--paper-shade);
  outline: none;
}
.mobi-modal__btn:focus-visible {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--lv-red);
}
.mobi-modal__btn.is-success {
  background: #4a7c4e;
  border-color: #4a7c4e;
  color: var(--paper);
}

.mobi-modal__hint {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-faint);
  margin: 0;
}

/* Lock scroll on body when modal is open */
body.mobi-modal-open {
  overflow: hidden;
  /* Prevent iOS rubber-band scroll behind modal */
  position: fixed;
  width: 100%;
}

/* Very short viewports — reduce padding */
@media (max-height: 700px) {
  .mobi-modal__panel {
    padding: var(--sp-4) var(--sp-4) var(--sp-3);
  }
  .mobi-modal__preview {
    margin-left: calc(var(--sp-4) * -1);
    margin-right: calc(var(--sp-4) * -1);
  }
  .mobi-modal__title { font-size: 20px; }
  .mobi-modal__desc { font-size: 13px; margin-bottom: var(--sp-3); }
}
