/* Bloggen om bygget och tidslinjen. Bygger på mb.css: samma papper, kort, hål, penna och stämpel.
   Sidorna har <body class="blog">, och allt ligger i en smalare spalt än MassBuilder-sidan, så att texten går att läsa. */

.blog .wrap { max-width: 820px; }

/* Sidhuvudet */
.post-head { padding-top: 14px; }
.post-head .kicker a { text-decoration: none; }
.post-head h1 { font-size: clamp(36px, 9.6vw, 64px); line-height: 1.03; font-weight: 700; letter-spacing: -0.035em; margin: 10px 0 0; text-wrap: balance; }
.hero.post-head h1 { margin-top: 22px; max-width: none; }
.post-head .lede { font-size: 20px; line-height: 1.5; max-width: 32em; margin: 18px 0 0; }
.byline { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; font: 400 13px/1.5 var(--mono); color: var(--ink-muted); }
.byline b { color: var(--ink); font-weight: 600; }
.face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }

/* Kort version: ett stansat hål per rad */
.short { margin-top: 28px; padding: 20px 20px 12px; }
.short ul { list-style: none; margin: 0; padding: 0; }
.short li { position: relative; padding: 8px 0 8px 32px; line-height: 1.45; }
.short li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--ball); }

/* Löptexten */
.prose { margin-top: 28px; padding: 26px 20px 30px; font-size: 18px; line-height: 1.62; }
@media (min-width: 720px) { .prose { padding: 40px 48px 44px; } }
.prose > p, .prose > section > p { margin: 0 0 1.1em; }
.prose h2 { font-size: clamp(26px, 6vw, 34px); margin: 1.7em 0 0.55em; }
.prose h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; margin: 1.5em 0 0.4em; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.prose li { margin: 0.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--ball); font: 400 25px/1.3 var(--pen); color: var(--ball); }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: 8px; font: 400 12.5px/1.45 var(--mono); font-style: normal; color: var(--ink-muted); }
.prose strong, .prose b { font-weight: 700; }
.prose .note { font: 400 14px/1.6 var(--mono); color: var(--ink-muted); }
.prose hr { border: 0; border-top: 1.5px dashed var(--perf); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.4em; font-size: 15.5px; line-height: 1.4; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 16px 9px 0; border-top: 1.5px dashed var(--perf); }
.prose th:last-child, .prose td:last-child { padding-right: 0; }
.prose thead th { border-top: 0; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Pristabellen. Bred skärm: en vanlig tabell som får låna lite av kortets marginal.
   Smal skärm: varje app blir ett kort med namn och tre priser överst och resten under,
   med rubriken framför. blogg.py sätter roller och data-label, så att tabellen
   förblir en tabell för den som lyssnar på sidan. */
@media (min-width: 720px) {
  .pricelist { margin: 0 -28px; }
  .pricelist table { font-size: 14.5px; }
  .prose .pricelist th:first-child { padding-left: 12px; }
  .prose .pricelist th:last-child, .prose .pricelist td:last-child { padding-right: 12px; }
}
@media (max-width: 719px) {
  .pricelist table, .pricelist thead, .pricelist tbody { display: block; }
  .pricelist table { font-size: 15px; }
  .pricelist tr { display: grid; grid-template-columns: minmax(0, 1fr) 3.6em 3.6em 4.6em; column-gap: 12px; align-items: baseline; padding: 11px 0 12px; border-top: 1.5px dashed var(--perf); }
  .pricelist thead tr { border-top: 0; padding: 0 0 8px; align-items: end; }
  .prose .pricelist th, .prose .pricelist td { border: 0; padding: 0; }
  .prose .pricelist tbody th, .prose .pricelist td.num { white-space: normal; }
  .pricelist thead th:nth-child(n+5) { display: none; }
  .pricelist td:nth-child(n+5) { grid-column: 1 / -1; display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 10px; align-items: baseline; margin-top: 5px; font-size: 14px; color: var(--ink-soft); }
  .pricelist td:nth-child(n+5)::before { content: attr(data-label); font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
  .pricelist td:nth-child(5) { margin-top: 8px; }
  .prose .pricelist tr.own { margin: 0 -10px; padding-left: 10px; padding-right: 10px; background: var(--ball-wash); border-radius: 8px; border-top-color: transparent; }
  .prose .pricelist tr.own > * { background: none; }
  .pricelist tr.own + tr { border-top-color: transparent; }
}
.prose tr.own > * { background: var(--ball-wash); }
.prose tbody th { font-weight: 700; white-space: nowrap; }
.prose td.num { white-space: nowrap; }

/* Bilder: Oskars skärmbilder, en och en eller i en rad att svepa i */
.shot, .shots { margin: 1.6em 0; }
.shot img { width: 100%; max-width: 300px; height: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.shots ul { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.shots li { flex: 0 0 auto; width: min(62vw, 236px); margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
@media (min-width: 720px) { .shots li { flex: 1 1 0; width: auto; max-width: 250px; } }
.shot figcaption, .shots figcaption, .chart .source { font: 400 13px/1.55 var(--mono); color: var(--ink-muted); margin: 10px 0 0; max-width: 46em; }

/* Stora tal */
.tiles { list-style: none; margin: 1.6em 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); column-gap: 18px; border-top: 1.5px dashed var(--perf); }
.tiles li { margin: 0; padding: 14px 0 12px; border-bottom: 1.5px dashed var(--perf); }
.tiles b { display: block; font: 600 clamp(23px, 6.2vw, 30px)/1.05 var(--mono); letter-spacing: -0.05em; white-space: nowrap; }
.tiles span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.35; color: var(--ink-muted); }

/* Diagram: staplar i SVG, ritade av blogg.py. Två ritningar, en för smal skärm och en för bred. */
.chart { margin: 1.9em 0; }
.chart figcaption b { display: block; font-size: 17.5px; line-height: 1.3; }
.chart figcaption span { display: block; font: 400 12.5px/1.45 var(--mono); color: var(--ink-muted); margin: 3px 0 10px; }
.plot { display: block; width: 100%; height: auto; overflow: visible; }
.plot text { font: 500 11px/1 var(--mono); }
.plot .c-bar { fill: var(--ball); }
.plot .c-bar:hover { fill: var(--ink); }
.plot .c-zero { fill: var(--perf); }
.plot .c-dim { fill: var(--perf); }
.plot .c-grid { stroke: var(--line); stroke-width: 1; }
.plot .c-lead { stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 2 3; }
.plot .c-ink { fill: var(--ink); }
.plot .c-muted { fill: var(--ink-muted); }
.plot .c-note { font-weight: 600; }
.plot .c-what { font: 400 28px/1 var(--pen); fill: var(--pen-red); }
.plot-wide { display: none; }
@media (min-width: 620px) { .plot-wide { display: block; } .plot-narrow { display: none; } }
.data { margin-top: 8px; }
.data summary { cursor: pointer; font: 500 12px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--ball); padding: 8px 0; }
.prose .data table, .data table { width: auto; min-width: 260px; margin: 4px 0 0; font-size: 14px; }
.data td:last-child, .data th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Frågor och svar */
.faq { margin-top: 2.4em; }
.faq dl { margin: 0; }
.faq div { padding: 14px 0; border-top: 1.5px dashed var(--perf); }
.faq dt { font-weight: 700; }
.faq dd { margin: 6px 0 0; }

/* Fakta om appen, och listan med inlägg */
.facts { margin-top: 28px; padding: 20px 20px 22px; }
.facts p { margin: 0; max-width: 42em; }
.facts .get { margin-top: 18px; }
.mb-more { font-weight: 600; }
.more { margin-top: 60px; }
.more h2 { font-size: clamp(24px, 6vw, 32px); }
.posts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 700px) { .posts { grid-template-columns: 1fr 1fr; } }
.ticket a { display: block; height: 100%; padding: 18px; text-decoration: none; }
.ticket .when { display: block; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ball); }
.ticket b { display: block; margin-top: 8px; font-size: 21px; line-height: 1.18; letter-spacing: -0.015em; text-wrap: balance; }
.ticket .what { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.45; color: var(--ink-muted); }
.ticket a:hover b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; text-decoration-color: var(--ball); }
.part > .follow { margin: 18px 0 0; font: 400 13.5px/1.7 var(--mono); color: var(--ink-muted); max-width: none; }
.lead > p { font-size: 18px; line-height: 1.62; max-width: 36em; margin: 0 0 1.1em; }
.lead > .tiles { margin-top: 1.2em; }
.part.lead { padding-top: 34px; }

/* Tidslinjen: ett hål per hållplats längs en perforering. Fyllt hål är något som släpptes. */
.timeline { margin-top: 36px; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 0; border-left: 2px dashed var(--perf); }
.tl > li { position: relative; padding: 0 0 36px; }
.tl > li::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); box-shadow: var(--hole); }
.tl > li.ship::before { background: var(--ball); box-shadow: none; }
.tl > li.year { padding-bottom: 22px; }
.tl > li.year::before { content: none; }
.tl > li.year span { position: relative; display: inline-block; padding: 6px 12px 4px; border-radius: 4px; background: var(--ink); color: var(--card); font: 400 24px/1 var(--stencil); letter-spacing: 0.06em; }
.tl-when { font: 500 12px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ball); margin: 0 0 12px; padding: 5px 0 0 36px; }
/* På bred skärm går perforeringen bredvid korten. På smal skärm går den bakom dem, så att korten får hela bredden. */
@media (min-width: 720px) { .tl > li { padding-left: 44px; } .tl-when { padding-left: 0; } .tl > li.year span { margin-left: -44px; } }
.tl-card { padding: 22px 18px 22px; }
@media (min-width: 720px) { .tl-card { padding: 28px 32px 28px; } }
.tl-card h2 { font-size: clamp(24px, 6vw, 32px); }
.tl-card p { margin: 12px 0 0; font-size: 17.5px; line-height: 1.6; max-width: 36em; }
.tl-card .stamp { margin: 0 0 12px 2px; font-size: 21px; }
.stamp.ok { color: var(--ball); }
.tl-card .pen { margin-top: 14px; font-size: 24px; line-height: 1.25; }
.tl-card .shot, .tl-card .shots { margin: 18px 0 2px; }
.tl-card .tiles { margin: 16px 0 2px; }
.tl-card .chart { margin: 18px 0 0; }
.tl-card .go { font-weight: 600; }
