/* Short Circuit Creations: webbplatsen (mockup 2026-10-13).
   Bara sajtens layout och typografi. All grafik ritas av library/ (via site/js/art.js). */

:root {
  --paper: #f7f3ea;
  --paper-2: #efe8da;
  --card: #fffdf8;
  --ink: #1b1b1f;          /* samma som INK i library/core/style.js */
  --ink-2: #3c3a36;
  --muted: #6b665d;
  --line: #e2d9c8;
  --red: #d62828;          /* Gus röda tröja */
  --red-ink: #b51f1f;
  --yellow: #ffe14d;       /* kanalens gula (loggan, stämplar) */
  --night: #141a22;        /* loggans platta */
  --green: #1f8a4c;
  --neg: #c0392b;
  --shadow: 0 1px 0 rgba(27, 27, 31, .04), 0 8px 24px -12px rgba(27, 27, 31, .18);
  --radius: 14px;
  --wrap: 1180px;
  --display: "Archivo Black", "Arial Black", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--body); font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgba(27, 27, 31, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- Typografi ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.eyebrow {
  font: 600 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; gap: .6em; align-items: center; margin-bottom: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.tbd {
  font-family: var(--mono); font-size: .86em; background: #fff3b0; color: #6b5300; border: 1px dashed #c9a400;
  padding: 1px 6px; border-radius: 4px; white-space: normal;
}

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(247, 243, 234, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand .logo { width: 132px; height: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }
.nav a.btn-yt, .nav a.btn-yt:hover { color: #fff; box-shadow: none; }
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .7em 1.15em; border-radius: 999px;
  font: 700 .95rem/1 var(--body); text-decoration: none; border: 2px solid var(--ink); background: var(--card); color: var(--ink);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-yt { background: var(--red); border-color: var(--red); color: #fff; }
.btn-yt:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn-yt svg { width: 1.2em; height: 1.2em; }
.btn-sm { padding: .55em .9em; font-size: .85rem; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
  .nav { gap: 10px; }
  .brand .logo { width: 112px; }
}

/* ---------- Sektioner ---------- */
section.block { padding: 72px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; color: var(--red); }
@media (max-width: 640px) { section.block { padding: 52px 0; } }

/* ---------- Kort ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Video (tumnagel med spelknapp) ---------- */
.video {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--night); box-shadow: 0 20px 50px -24px rgba(20, 26, 34, .55); text-decoration: none; color: #fff;
}
.video .art, .video .art svg { width: 100%; height: 100%; }
.video .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 88px; height: 62px; border-radius: 18px;
  background: var(--red); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .15s ease;
}
.video .play::before { content: ""; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 6px; }
.video:hover .play { transform: scale(1.06); }
.video .badge {
  position: absolute; left: 14px; bottom: 14px; background: rgba(20, 26, 34, .86); color: #fff; padding: 6px 10px;
  border-radius: 8px; font: 600 .78rem/1.2 var(--mono); letter-spacing: .04em;
}
.video .badge.right { left: auto; right: 14px; }
.video-note { font: .8rem/1.4 var(--mono); color: var(--muted); margin-top: 10px; }
@media (max-width: 640px) { .video .play { width: 64px; height: 46px; border-radius: 14px; } .video .play::before { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; } }

/* ---------- Hem: hero ---------- */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.tagline { font-family: var(--display); font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.25; margin: 0 0 18px; }
.tagline span { white-space: nowrap; }
.tagline .r { color: var(--red); } .tagline .t { color: #c98a00; } .tagline .b { color: var(--green); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Avsnittskort ---------- */
.ep-card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; }
.ep-card .video { border-radius: 0; box-shadow: none; }
.ep-card .video .play { left: auto; top: auto; right: 16px; bottom: 14px; translate: none; width: 64px; height: 46px; border-radius: 14px; }
.ep-card .video .play::before { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; }
.next-card { justify-content: center; padding: 36px 30px; background: var(--paper-2); box-shadow: none; border-style: dashed; }
.next-card h3 { font-size: 1.4rem; }
.ep-card .body { padding: 20px 22px 22px; }
.ep-card h3 { font-size: 1.25rem; margin-bottom: .35em; }
.ep-card p { color: var(--ink-2); margin-bottom: .8em; }
.ep-meta { font: 600 .78rem/1 var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.ep-links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 700; font-size: .95rem; }

/* ---------- Siffror ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .v { font: 600 clamp(1.4rem, 2.6vw, 1.9rem)/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .v.neg { color: var(--neg); } .stat .v.pos { color: var(--green); }
.stat .k { font-size: .86rem; color: var(--ink-2); margin-top: 6px; line-height: 1.35; }
.stat .s { font: .72rem/1.35 var(--mono); color: var(--muted); margin-top: 6px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) {
  .stats, .stats.three { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
}

/* ---------- Tabeller ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
table.data th, table.data td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font: 600 .74rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
table.data td.r, table.data th.r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.total td { font-weight: 700; background: #faf6ee; }
.pos { color: var(--green); } .neg { color: var(--neg); }

.source {
  font: .76rem/1.5 var(--mono); color: var(--muted); margin-top: 12px; padding-left: 12px; border-left: 3px solid var(--line);
}
.source a { color: var(--ink-2); }
.source b { color: var(--ink-2); font-weight: 600; }

/* ---------- Avsnittssidan ---------- */
.ep-hero { padding: 26px 0 28px; }
.ep-hero h1 { font-size: clamp(1.7rem, 3.1vw, 2.55rem); margin-bottom: .35em; }
.ep-hero .meta { display: flex; gap: 6px 18px; flex-wrap: wrap; font: 600 .82rem/1.4 var(--mono); color: var(--muted); margin-bottom: 16px; }
.ep-hero .video { margin-bottom: 14px; max-width: 1000px; }
.ep-hero .under-video { max-width: 1000px; }
.under-video { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.layout-ep > * { min-width: 0; }
.layout-ep { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: .9rem; }
.toc h2 { font: 600 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 0 6px 30px; text-decoration: none; color: var(--ink-2); position: relative; line-height: 1.3; }
.toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; font: 600 .72rem/1.7 var(--mono); color: var(--muted); }
.toc a:hover { color: var(--ink); }
.toc .sub a::before { content: "↳"; }
@media (max-width: 1000px) {
  .layout-ep { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; margin: 8px 0 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
  .toc ol { columns: 2; column-gap: 28px; }
  .toc li { break-inside: avoid; }
}
@media (max-width: 560px) { .toc ol { columns: 1; } }

.ep-section { padding: 48px 0; border-top: 1px solid var(--line); }
.ep-section:first-child { border-top: 0; padding-top: 8px; }
.ep-section > .kicker { font: 600 .76rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; display: block; }
.ep-section h2 { max-width: 26ch; }
.answer { font-size: 1.12rem; color: var(--ink); max-width: 66ch; }
.ep-section .stats { margin: 22px 0 6px; }
.ep-section .table-wrap { margin: 22px 0 6px; }
.watch {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; font-size: .92rem; text-decoration: none;
  padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
}
.watch .tri { width: 22px; height: 22px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.watch .tri::before { content: ""; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.watch:hover { border-color: var(--red); }
.watch .t { font-family: var(--mono); color: var(--muted); font-weight: 500; }

/* Citat ur bolagets egna handlingar */
.quotes { display: grid; gap: 14px; margin: 22px 0 6px; padding: 0; list-style: none; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 14px; position: relative; }
.quote .what { font: 600 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.quote blockquote { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.quote blockquote::before { content: "“"; } .quote blockquote::after { content: "”"; }
.quote .src { font: .74rem/1.4 var(--mono); color: var(--muted); }
.quote .note { font-size: .9rem; color: var(--ink-2); margin: 6px 0 0; }
mark { background: linear-gradient(transparent 55%, #ffe98a 55%); color: inherit; padding: 0 1px; }

/* Två spalter */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0 6px; }
.two-col .col { border-radius: 12px; padding: 18px 20px; border: 1px solid var(--line); background: var(--card); }
.two-col h3 { font: 700 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.two-col .real h3 { color: var(--green); } .two-col .wrong h3 { color: var(--neg); }
.two-col ul { margin: 0; padding-left: 18px; } .two-col li { margin-bottom: 6px; font-size: .95rem; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* Staplar (rubrikräknaren, hypemätaren) */
.bars { display: grid; gap: 10px; margin: 22px 0 6px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 14px; align-items: center; }
.bar-row .who { display: flex; align-items: center; min-height: 28px; }
.bar-row .who img { width: 128px; height: 26px; object-fit: contain; object-position: left center; }
.bar-row .who span { font-weight: 600; font-size: .9rem; }
.bar-row .track { height: 14px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 999px; background: var(--ink); }
.bar-row .n { font: 600 1rem/1 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.bar-row.more .who span { color: var(--muted); font-weight: 500; font-size: .82rem; line-height: 1.25; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 96px minmax(0, 1fr) 54px; gap: 10px; } .bar-row .who img { width: 92px; height: 20px; } }

.split-bar { margin: 22px 0 6px; }
.split-bar .rail { display: flex; height: 46px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.split-bar .seg { display: flex; align-items: center; padding: 0 12px; font: 600 .84rem/1 var(--mono); color: #fff; white-space: nowrap; overflow: hidden; }
.split-bar .legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; margin-top: 10px; color: var(--ink-2); }
.split-bar .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }

/* Tidslinje (lock-ups) */
.timeline { list-style: none; margin: 22px 0 6px; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); }
.timeline li.past::before { background: var(--ink); }
.timeline .d { font: 600 .82rem/1.4 var(--mono); }
.timeline .e { font-size: .95rem; color: var(--ink-2); }

/* Konst ur biblioteket */
.art-frame { border-radius: var(--radius); overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; }
.art-frame svg { width: 100%; height: 100%; }
.art-cap { font: .74rem/1.5 var(--mono); color: var(--muted); margin-top: 8px; }

/* Utfällbart */
details.fold { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 10px; }
details.fold > summary {
  cursor: pointer; list-style: none; padding: 14px 18px; display: flex; gap: 12px; justify-content: space-between; align-items: center;
  font-weight: 700;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font: 600 1.2rem/1 var(--mono); color: var(--muted); }
details.fold[open] > summary::after { content: "−"; }
details.fold > summary .t { font: 500 .8rem/1 var(--mono); color: var(--muted); margin-left: auto; margin-right: 8px; }
details.fold .inner { padding: 0 18px 16px; }
.src-list { list-style: none; margin: 0; padding: 0; }
.src-list li { padding: 9px 0; border-top: 1px dashed var(--line); font-size: .92rem; line-height: 1.45; }
.src-list li:first-child { border-top: 0; }
.src-list .ttl { font-weight: 600; }
.src-list .meta { color: var(--muted); font-size: .84rem; }
.src-list a { word-break: break-word; }
.src-list .ts { font: 600 .78rem/1 var(--mono); color: var(--red); margin-right: 6px; }

.chapters { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.chapters li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 12px; }
.chapters .ts { font: 600 .86rem/1.5 var(--mono); color: var(--red); min-width: 3.4em; text-decoration: none; }
@media (max-width: 640px) { .chapters { columns: 1; } }

.mentioned { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.mentioned li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.mentioned b { display: block; }
.mentioned span { color: var(--muted); font-size: .82rem; }

.notice {
  border: 1px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 16px 18px; font-size: .92rem; color: var(--ink-2);
}
.notice b { color: var(--ink); }

/* Fonden */
.fund-board { border-radius: var(--radius); overflow: hidden; background: #070b1a; aspect-ratio: 16 / 9; }
.fund-board svg { width: 100%; height: 100%; }
.stamp-updated { display: inline-flex; gap: 8px; align-items: center; font: 600 .78rem/1 var(--mono); padding: 7px 10px; border-radius: 999px; background: #e6f4ea; color: var(--green); }
.stamp-updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Fot */
.site-foot { background: var(--night); color: #c9cfda; padding: 52px 0 40px; margin-top: 40px; font-size: .92rem; }
.site-foot a { color: #fff; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot h4 { font: 600 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin: 0 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; } .site-foot li { margin-bottom: 8px; }
.site-foot .fine { border-top: 1px solid #2a3340; margin-top: 32px; padding-top: 18px; font-size: .82rem; color: #8f98a8; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* Hem: små block */
.rtb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.rtb .step { padding: 20px 22px; }
.rtb .step .n { font-family: var(--display); font-size: 1.25rem; }
.rtb .step:nth-child(1) .n { color: var(--red); } .rtb .step:nth-child(2) .n { color: #c98a00; } .rtb .step:nth-child(3) .n { color: var(--green); }
.rtb .step p { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 720px) { .rtb { grid-template-columns: 1fr; } }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.feature.rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .feature, .feature.rev { grid-template-columns: 1fr; gap: 24px; } .feature.rev .art-col { order: -1; } }
.big-num { font: 600 clamp(2.6rem, 6vw, 4.2rem)/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.collab { background: var(--night); color: #e8ecf2; border-radius: 20px; padding: 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.collab h2 { color: #fff; } .collab p { color: #c9cfda; }
.collab .btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
@media (max-width: 760px) { .collab { grid-template-columns: 1fr; padding: 28px 22px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nästa avsnitt (startsidan): lugnt kort ovanför hjälten, ingen nedräkning */
.upcoming { margin-top: 22px; display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 14px 18px 14px 14px; }
.upcoming .thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--night); }
.upcoming .thumb svg { width: 100%; height: 100%; }
.upcoming h2 { font-size: 1.1rem; margin: 2px 0 4px; }
.upcoming p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.upcoming .eyebrow { margin-bottom: 4px; }
.steps { display: flex; list-style: none; margin: 10px 0 0; padding: 0; gap: 0; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 6px; font: 600 .74rem/1 var(--mono); color: var(--muted); padding-right: 10px; }
.steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #b9b1a2; background: var(--card); flex-shrink: 0; }
.steps li:not(:last-child) { padding-right: 0; }
.steps li:not(:last-child)::after { content: ""; display: inline-block; width: 18px; height: 2px; background: #d8cfbf; margin: 0 6px; }
.steps li.done { color: var(--ink-2); }
.steps li.done::before { background: var(--green); border-color: var(--green); }
.steps li.now { color: var(--ink); }
.steps li.now::before { background: var(--yellow); border-color: #c9a400; box-shadow: 0 0 0 3px rgba(255, 225, 77, .35); }
@media (max-width: 860px) {
  .upcoming { grid-template-columns: 120px minmax(0, 1fr); }
  .upcoming .cta { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .upcoming { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; margin-top: 14px; }
  .upcoming p.teaser { display: none; }
  .upcoming h2 { font-size: .98rem; }
  .upcoming .steps li { font-size: .66rem; }
  .upcoming .steps li:not(:last-child)::after { width: 8px; margin: 0 4px; }
  .upcoming .cta .btn { width: 100%; justify-content: center; }
}

/* Små delade klasser (sidorna efter omstruktureringen) */
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.dim { color: #8f98a8; }
.small { font-size: .88rem; }
.inline-logo { height: 18px; width: auto; display: inline-block; vertical-align: -3px; margin-right: 8px; }
.anchor { position: relative; top: -84px; display: block; height: 0; }
.block-h3 { margin-top: 28px; }
.portrait { max-width: 360px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 3; }
.card.rule { padding: 22px; }
.card.rule p { margin: 0; color: var(--muted); }
.eyebrow-yellow { color: var(--yellow); } .eyebrow-yellow .dot { background: var(--yellow); }
.on-dark { color: #c9cfda; padding-left: 18px; margin: 0; }
.on-dark li { margin-bottom: 6px; }
.contact-col { display: grid; gap: 12px; justify-items: start; }
.site-foot .dim { font-size: .82rem; }

/* Spelknappen i hörnet när tumnageln har text i mitten (t.ex. titelkortet) */
.video.play-corner .play { left: auto; top: auto; right: 18px; bottom: 56px; translate: none; }


/* Källan vid siffran: liten, dämpad, länkad */
.stat .s a, .cite a, td.src a { color: inherit; text-decoration-color: rgba(107, 102, 93, .45); }
.stat .s a:hover, .cite a:hover, td.src a:hover { color: var(--ink); text-decoration-color: var(--red); }
.cite { font: .74rem/1.45 var(--mono); color: var(--muted); margin: 8px 0 0; }
.timeline .cite { margin-top: 2px; }
table.data td.src { font: .74rem/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.answer a { text-decoration-color: rgba(214, 40, 40, .45); text-decoration-thickness: 1.5px; }

/* Smala skärmar: varje tabellrad blir ett kort (etikett från kolumnrubriken), ingen sidledsscroll i tabellen */
@media (max-width: 600px) {
  table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack td { display: block; width: 100%; }
  table.data.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.data.stack tr, table.data.stack td { box-sizing: border-box; }
  table.data.stack td { padding: 3px 0; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  table.data.stack { table-layout: fixed; min-width: 0; }
  table.data.stack td.src { white-space: normal; }
  table.data.stack td::before { content: attr(data-label); display: block; font: 600 11px/1.4 var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #777); }
  table.data.stack td:first-child::before { display: none; }
  table.data.stack td:first-child { font-weight: 700; }
  table.data.stack td:empty { display: none; }
}

.prose-dark { padding-left: 0; max-width: 64ch; }
.prose-dark p { margin: 0 0 14px; line-height: 1.65; }

.asof { font-size: .86rem; color: var(--muted); margin: 6px 0 18px; max-width: 70ch; }

.collab.collab-stacked { grid-template-columns: 1fr; }
.collab-stacked .contact-col { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Mediakitet (media-kit.html): förhandsbilder med nedladdningslänkar, färgrutor, typsnitt, beskrivningar */
.btn-ghost-ink { background: transparent; }
figure.kit { margin: 0; overflow: hidden; display: flex; flex-direction: column; }
.kit-preview { display: flex; align-items: center; justify-content: center; height: 190px; padding: 22px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.kit-preview img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.kit-preview.flush { padding: 0; }                       /* PNG:n har redan sin bakgrund och luft */
.kit-preview.tall { height: 420px; padding: 28px; }
@media (max-width: 640px) { .kit-preview { height: 160px; } .kit-preview.tall { height: 340px; } }
.kit-preview.checker {
  background-color: #fff;
  background-image: linear-gradient(45deg, #ece6da 25%, transparent 25%), linear-gradient(-45deg, #ece6da 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ece6da 75%), linear-gradient(-45deg, transparent 75%, #ece6da 75%);
  background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
figure.kit figcaption { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
figure.kit .kit-links { margin-top: auto; }
figure.kit h3 { margin-bottom: .4em; }
figure.kit figcaption p { color: var(--ink-2); font-size: .95rem; }
.kit-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.kit-links a {
  font: 600 .76rem/1 var(--mono); text-decoration: none; padding: 7px 9px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.kit-links a:hover { border-color: var(--ink); }
.kit-rules { margin-top: 18px; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.swatches li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .9rem; }
.swatches .sw { display: block; height: 72px; border-bottom: 1px solid var(--line); }
.swatches b { display: block; padding: 10px 12px 0; }
.swatches code { display: block; padding: 2px 12px 12px; font: 500 .82rem/1.4 var(--mono); color: var(--muted); }
@media (max-width: 900px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.font-sample { font-size: 1.6rem; line-height: 1.2; color: var(--ink) !important; margin: 0 0 6px !important; }
.kit-copy { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
.kit-copy .card.rule p { color: var(--ink-2); margin: 0 0 .8em; }
.kit-copy .card.rule p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .kit-copy { grid-template-columns: 1fr; } }
.kit-list { padding-left: 18px; margin: 0 0 1em; } .kit-list li { margin-bottom: 8px; }
.kit-two .section-head { margin-bottom: 16px; }
.collab a.dim { color: #c9cfda; text-decoration-color: rgba(201, 207, 218, .45); }

/* Metodsidan */
.method > * { max-width: 780px; }
.method h3 { margin: 28px 0 8px; }
.method ul { padding-left: 20px; margin: 0 0 14px; }
.method li { margin-bottom: 6px; color: var(--ink-2); }
.method p { color: var(--ink-2); max-width: 70ch; }
.method .answer { color: var(--ink); }

/* Opublicerade avsnitts sektioner (build.mjs sätter hidden) */
[hidden] { display: none !important; }
