/*
 * Holifant v2 stylesheet. Loaded by the v2-* layouts instead of Bulma.
 * One accent color, one typeface, hairlines instead of boxes.
 */

:root {
  --bg: #faf8f8;
  --surface: #ffffff;
  --surface-2: #f3edf0;
  --ink: #1b1418;
  --ink-2: #5d5157;
  --ink-3: #857a80;
  --line: #e5dee2;
  /* Logo magenta, used sparingly: the full stop, focus rings, hover. */
  --accent: #c14b8d;
  --accent-deep: #a93274;
  /* Split-complement of the magenta; calm enough for links in running text. */
  --link: #2f6b70;
  --link-hover: #1d4d51;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --prose: 42rem;
  --gutter: 1rem;
  --radius: 3px;
  /* Spacing scale. Margins, paddings and gaps take their values from here, so the same kind
     of gap gets the same size everywhere. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;
  /* Top and bottom padding of a section: half the air around a section rule. */
  --space-section: var(--space-7);
}
@media (min-width: 48rem) {
  :root { --gutter: 2rem; --space-section: var(--space-8); }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Type */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
/* Tight, but enough that a descender clears the ring on å in the next line. */
h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.25rem;
  /* Small enough to wrap often; the shared 1.1 is too tight at this size. */
  line-height: 1.3;
  letter-spacing: -0.01em;
}
/* The one decorative device: a trailing full stop in the accent color. */
.punkt::after { content: "."; color: var(--accent); }
/* The same device for titles that are questions. */
.fraga::after { content: "?"; color: var(--accent); }
.lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  max-width: 36rem;
}
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.prose { max-width: var(--prose); }
.prose blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  font-size: 1.1em;
  line-height: 1.5;
}

/* Flow. Inside main, the space between two blocks is the lower block's margin-top, set by
   these rules and nowhere else. So a first or last child never adds space at the edge of its
   container, and the same pair of blocks gets the same gap on every page. Components set no
   outer margins; a class rule that sets one wins over these and breaks the rhythm.
   Everything here is wrapped in :where() so any component rule can still set inner spacing. */
main :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, blockquote, figure, table, pre, form, hr) { margin-block: 0; }
main :where(blockquote, figure) { margin-inline: 0; }

/* Text: paragraphs, lists, forms, buttons. */
main :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, blockquote, figure, table, pre, form, hr,
  div, section, article, aside, nav, details, iframe, img, video, .btn):where(:not(:first-child)) { margin-top: var(--space-5); }
main :where(li + li, li > ul, li > ol) { margin-top: var(--space-2); }

/* Blocks that stand on their own get more air on both sides. */
main :where(.panel, .subhero, .figure, .video, .quote, .quotes, .grid, .cols, .rows, .numbered,
  .fact-cards, .author, .pager, table, hr, img, iframe, .program-block, .kunder):where(:not(:first-child)),
main :where(.panel, .subhero, .figure, .video, .quote, .quotes, .grid, .cols, .rows, .numbered,
  .fact-cards, .author, .pager, table, hr, img, iframe, .program-block, .kunder) + * { margin-top: var(--space-7); }

/* A heading sits far from what came before and close to what it introduces. An h2 inside a
   section starts a sub-topic, so it gets the same gap as two sections without a rule. */
main :where(h2:not(:first-child)) { margin-top: var(--space-section); }
main :where(h3:not(:first-child)) { margin-top: var(--space-6); }
main :where(h4:not(:first-child)) { margin-top: var(--space-5); }
main :where(h1) + :where(:not(hr)) { margin-top: var(--space-5); }
main :where(h2) + :where(:not(hr)) { margin-top: var(--space-4); }
main :where(h3, h4, h5, h6) + :where(:not(hr)) { margin-top: var(--space-2); }
main :where(.eyebrow) + * { margin-top: var(--space-3); }
main :where(.crumbs, .meta, .nav-brand) + * { margin-top: var(--space-6); }

/* Grid and flex children are spaced by gap, and a section's place on the page by its padding. */
main > :where(section, article),
main :where(.grid, .cols, .rows, .numbered, .quotes, .fact-cards, .facts, .meta, .action-row, .author,
  .pager, .hero-grid, .hero-visual, .subhero-grid, .check, .ele, .program-split, .program-hero-grid,
  .program-punkter, .program-workshops, .program-tidslinje, .kundlista) > * { margin-top: 0; }
/* Hidden inputs and the honeypot come first in a form and take no space. */
main :where(form > :is(input[type="hidden"], .hidden) + :not(input[type="hidden"], .hidden)) { margin-top: 0; }
/* MailerLite's embed brings its own spacing. */
main :where(.ml-embedded *) { margin-block: revert; }

/* Links, focus, buttons */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.9375rem; }
.action-row { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.action-row .aside { color: var(--ink-2); font-size: 0.9375rem; }
.action-row .aside a { color: inherit; }
.action-row .aside a:hover { color: var(--accent); }

/* Layout */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
/* Sections in a row without a rule between them continue one topic, so they share one gap
   instead of stacking two. A rule marks a new topic and sits in the middle of a double gap. */
.section + .section:not(.section-rule) { padding-top: 0; }
.section-rule { border-top: 1px solid var(--line); }
/* A one-line strip between two sections, e.g. the client names, would drown in full section padding. */
.section-band { padding-block: var(--space-6); }
@media (min-width: 48rem) { .section-band { padding-block: var(--space-7); } }
.grid { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-sidebar { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

/* Header and navigation. The mobile menu is a <details>, so no script. */
.nav { border-bottom: 1px solid var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.nav-brand img { height: 1.9rem; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover { background: var(--surface-2); }
.nav-menu .burger {
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}
.nav-menu[open] .burger { background: transparent; box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }
.nav-menu .nav-links {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 14rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(27, 20, 24, 0.08);
  z-index: 10;
}
/* Hairlines between the text links only; the button keeps its own border. */
.nav-menu .nav-links a:not(.btn) { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.nav-menu .nav-links a:not(.btn):last-child { border-bottom: 0; }
.nav-menu .nav-links .btn { margin: 0.5rem; text-align: center; }
@media (max-width: 47.99rem) {
  .nav-inner > .nav-links { display: none; }
  .nav-menu { display: block; }
}

/* Footer */
/* The last section's padding is the air above the rule; the same again below it. */
.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-section);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1fr 1fr 1.5fr; gap: 3rem; }
}
.footer h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.75rem;
}
.footer p { margin: 0 0 0.4rem; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* Components */
.crumbs { font-size: 0.875rem; color: var(--ink-3); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span + span::before { content: "/"; margin: 0 0.5rem; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts dd { margin: 0.2rem 0 0; }

/* Key facts as tinted blocks beside a section's text, when they should stand out more than .facts. */
.fact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  align-self: center;
  padding: 0;
  list-style: none;
}
.fact-cards > li {
  background: var(--surface-2);
  border-radius: 4px;
  padding: var(--space-4);
  color: var(--ink-2);
  line-height: 1.4;
}
@media (min-width: 48rem) { .fact-cards > li { padding: var(--space-5); } }
.fact-cards strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Columns with a heavy top rule, the no-box card. */
.cols { display: grid; gap: 2rem; }
@media (min-width: 48rem) {
  .cols { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  /* Fills as many columns as fit, so four or more items need no second breakpoint. */
  .cols-4 { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
}
.cols > div { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.cols h3 { margin: 0 0 0.5rem; }
.cols p { margin: 0 0 1rem; color: var(--ink-2); }
.cols ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); }
.cols li { margin-bottom: 0.4em; }

/* Hairline list, optionally with the whole row as a link. Lines only between rows, never
   around the list, so it doesn't stack rules with the heading above or the section below. */
.rows { list-style: none; padding: 0; }
.rows > li + li { border-top: 1px solid var(--line); }
.rows > li > a, .rows > li > div { display: block; padding: 1.5rem 0; }
.rows > li:first-child > :is(a, div) { padding-top: 0.5rem; }
/* The last row needs no padding below; the section or the next block sets that gap. */
.rows > li:last-child > :is(a, div) { padding-bottom: 0; }
.rows > li > a { color: inherit; text-decoration: none; }
.rows h3 { margin: 0 0 0.35rem; }
.rows p { margin: 0; color: var(--ink-2); }
/* A featured row: image, then a larger h2 instead of h3. */
.rows img { margin: 0 0 1.25rem; }
.rows h2 { margin: 0 0 0.5rem; }
.rows > li > a:hover :is(h2, h3) { color: var(--accent); }
.rows > li > a :is(h2, h3)::after { content: " →"; color: var(--ink-3); font-weight: 400; }
@media (min-width: 48rem) {
  .rows-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  /* The second item is in the first row when there are two columns. */
  .rows-2 > li:nth-child(2) { border-top: 0; }
  .rows-2 > li:nth-child(2) > :is(a, div) { padding-top: 0.5rem; }
  .rows-2 > li:nth-last-child(2):nth-child(odd) > :is(a, div) { padding-bottom: 0; }
}

/* Numbered list with accent counters, for audience and goals. */
.numbered { list-style: none; padding: 0; counter-reset: item; display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48rem) {
  .numbered-2 { grid-template-columns: 1fr 1fr; }
}
.numbered > li { counter-increment: item; padding-left: 2.5rem; position: relative; }
.numbered > li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.numbered strong { display: block; margin-bottom: 0.2rem; }
.numbered p { margin: 0; color: var(--ink-2); }
.numbered ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }

.quotes { display: grid; gap: 2rem 3rem; }
@media (min-width: 48rem) {
  .quotes { grid-template-columns: 1fr 1fr; }
}
.quote {
  position: relative;
  max-width: var(--prose);
  padding-left: 1.75rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}
/* Hanging quote mark, aligned with the first line of text. */
.quote::before {
  content: "\201D";
  position: absolute;
  left: 0;
  top: -0.3rem;
  color: var(--accent);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.figure img { width: 100%; margin: 0; }
.figure figcaption { font-size: 0.8125rem; color: var(--ink-3); margin-top: 0.4rem; }
/* On wide screens a photo credit runs up the left edge, in the gutter, so it takes no height.
   Only for short credits; a descriptive caption would run past the image. */
@media (min-width: 48rem) {
  .figure { position: relative; }
  .figure figcaption.credit {
    position: absolute;
    right: 100%;
    bottom: 0;
    margin: 0 0.6rem 0 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 0.75rem;
    line-height: 1;
  }
}
.portrait { border-radius: 4px; }
/* For images with a baked-in white background: lets the page color show through the white. */
.blend { mix-blend-mode: multiply; }
/* Embedded players (Vimeo, YouTube) at full column width, 16:9. */
.video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

.author {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
/* The portrait is not square; crop it to the circle instead of squashing, keeping the face centered. */
/* The top margin moves the avatar down to the first line's cap height instead of its line box. */
.author img { width: 64px; height: 64px; margin: 0.4em 0 0; border-radius: 50%; flex: none; object-fit: cover; object-position: 50% 35%; }
.author p { margin: 0; }
/* As a page intro right under the h1 there is nothing to separate it from. */
h1 + .author { border-top: 0; padding-top: 0; font-size: 1.0625rem; line-height: 1.55; }
.author strong { color: var(--ink); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.pager a { color: var(--ink); text-decoration: none; }
.pager a:hover { color: var(--accent); }
.pager .next { margin-left: auto; text-align: right; }

/* Tables: hairline rows, eyebrow-style header, no zebra stripes. */
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); }
th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Forms */
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.35rem; }
.field .hint { font-size: 0.875rem; color: var(--ink-3); margin: -0.2rem 0 0.5rem; }
.input {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
/* Scoped under .field so it beats the bold .field label rule. */
.field .check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.875rem; color: var(--ink-2); font-weight: 400; }
.check input { margin-top: 0.3em; accent-color: var(--accent); }
.notice {
  font-size: 0.875rem;
  color: var(--ink-2);
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
}
.panel { background: var(--surface-2); padding: 2rem var(--gutter); border-radius: 4px; }
.panel h2 { font-size: 1.5rem; }
.hidden { display: none; }

/* Start page */
.start-hero { padding-block: var(--space-section); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 48rem) {
  .start-hero { padding-block: var(--space-8) var(--space-9); }
  .hero-grid { grid-template-columns: 1.6fr 1fr; gap: 4rem; }
}
/* Greedy wrapping reads better than balance here: "satsningar måste" / "ledas rätt". */
.start-hero h1 { text-wrap: pretty; font-size: clamp(2.4rem, 5.5vw, 3.75rem); }
.hero-visual { position: relative; display: flex; justify-content: center; }
@media (max-width: 47.99rem) {
  .hero-visual { order: -1; }
}
/* A face beside the booking button shows who the meeting is with. */
.hero-avatar { display: block; flex: none; }
.hero-avatar img { display: block; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 35%; }

/* Client names as plain text: no logos, so the row stays as quiet as the rest of the page. */
.kunder { text-align: center; }
.kundlista {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-8);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
main .kunder .eyebrow + .kundlista { margin-top: var(--space-4); }
.cta { text-align: center; }
.cta .lead { margin-inline: auto; }

/* Subhero: a tinted block that lifts one offering above a list, e.g. the program on /tjanster.
   Same surface as .panel, but hero-sized type and room for an illustration on the right. */
.subhero { background: var(--surface-2); border-radius: 4px; padding: 2.5rem var(--gutter); }
.subhero-grid { display: grid; gap: 2rem; align-items: center; }
.subhero h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); text-wrap: pretty; }
/* The page hairline disappears against the tint; same shade the program illustrations use. */
.subhero .facts { border-color: #d3c9ce; }
.subhero .program-illustration { max-width: 24rem; margin-inline: auto; }
@media (min-width: 48rem) {
  .subhero { padding: 3.5rem 3rem; }
  .subhero-grid { grid-template-columns: 1.4fr 1fr; gap: 3.5rem; }
}

/* Pixel elephant from the logo, with a float and hover glow. */
.ele {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 7;
  filter: drop-shadow(0 0 48px rgba(193, 75, 141, 0.18));
}
@media (max-width: 47.99rem) {
  .ele { max-width: 200px; }
}
.ele span {
  aspect-ratio: 1;
  background: var(--c);
  border-radius: 1px;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease, filter 0.5s ease;
}
.ele span:not(.o):hover {
  position: relative;
  z-index: 1;
  transform: scale(1.2) rotate(2deg);
  filter: brightness(1.2);
  box-shadow: 0 0 16px var(--c);
}
.float {
  position: absolute;
  border-radius: 3px;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-18px) rotate(8deg); opacity: 1; }
}

/* Scroll fade-in. Only hidden when JS is on, so content never disappears without it. */
.js [data-fade] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.js [data-fade].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-fade] { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
}

/* Course pages: wider than prose so the two-column lists fit, narrower than the wrap. */
.course { max-width: 56rem; }
/* The "Om kursledaren" heading already separates the author box; no second rule. */
.course .author { border-top: 0; padding-top: 0; }

/* MailerLite embeds bring their own stylesheet; this only aligns the type with the site. */
div.ml-form-embedContent,
div.ml-form-embedContent h4 { font-family: var(--font) !important; }

/* The newsletter form on /pren: the page carries the heading and text, MailerLite only the
   field, button, reCAPTCHA and success message. MailerLite scopes its rules to an id and uses
   !important, so these need an id of their own plus one more class to win. */
#nyhetsbrev .ml-embedded .ml-form-embedContainer .ml-form-embedWrapper { background: transparent !important; width: 100% !important; }
#nyhetsbrev .ml-embedded .ml-form-embedContainer .ml-form-embedWrapper :is(.ml-form-embedBody, .ml-form-successBody) { padding: 0 !important; }
#nyhetsbrev .ml-embedded .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent { display: none !important; }
#nyhetsbrev .ml-embedded .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody :is(.ml-form-fieldRow, .ml-form-horizontalRow) input {
  font-family: var(--font) !important;
  font-size: 1rem !important;
  height: auto !important;
  padding: 0.7rem 0.85rem !important;
  border: 1px solid var(--ink-3) !important;
  border-radius: var(--radius) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
}
#nyhetsbrev .ml-embedded .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody :is(.ml-form-embedSubmit, .ml-form-horizontalRow, .ml-mobileButton-horizontal) button {
  border: 1px solid var(--ink) !important;
  background: var(--ink) !important;
  font-family: var(--font) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 0.8rem 1.4rem !important;
  border-radius: var(--radius) !important;
}
/* MailerLite stacks field and button only below 400px; between that and our breakpoint the
   button's 30% column is too narrow for "Prenumerera". */
@media (max-width: 47.99rem) {
  #nyhetsbrev .ml-form-formContent.horozintalForm .ml-form-horizontalRow .ml-input-horizontal { width: 100% !important; }
  #nyhetsbrev .ml-form-formContent.horozintalForm .ml-form-horizontalRow .ml-input-horizontal > div { padding-right: 0 !important; padding-bottom: 10px; }
  #nyhetsbrev .ml-form-formContent.horozintalForm .ml-form-horizontalRow .ml-button-horizontal { width: 100% !important; }
}
#nyhetsbrev .ml-embedded .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody :is(.ml-form-embedSubmit, .ml-form-horizontalRow, .ml-mobileButton-horizontal) button:hover { background: var(--accent-deep) !important; border-color: var(--accent-deep) !important; }
#nyhetsbrev .ml-embedded .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent p,
#nyhetsbrev .ml-embedded .ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent :is(h4, p) {
  font-family: var(--font) !important;
  color: var(--ink-2) !important;
  line-height: 1.5 !important;
}
#nyhetsbrev .ml-embedded .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent p { font-size: 0.875rem !important; }
#nyhetsbrev .ml-embedded .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent p a { color: var(--link) !important; }

/* /utvecklingsprogram, built from _data/utvecklingsprogram.yml and _includes/v2/program-*.html */
.program-hero { padding-block: var(--space-section); }
.program-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.program-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); }
@media (min-width: 48rem) {
  .program-hero { padding-block: var(--space-8) var(--space-9); }
  /* The illustration carries the whole idea of the program, so it gets the wider column. */
  .program-hero-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
}

/* A hairline between sections and a heavy rule before the closing contact section. The rule
   sits on .program-ram so it stays inside the page gutters; the padding is a section's. */
.program-ram { border-top: 1px solid var(--line); padding-block: var(--space-section); }
.program-kontakt .program-ram { border-top: 2px solid var(--ink); }
.program-framhavd { background: var(--surface-2); }
.program-framhavd .program-ram,
.program-framhavd + .program-sektion:not(.program-kontakt) .program-ram { border-top-color: transparent; }

/* Row gap for phones, where the heading stacks above the text. */
.program-split { display: grid; gap: var(--space-4) var(--space-7); }
.program-delad { align-items: center; }
@media (min-width: 48rem) {
  .program-split { grid-template-columns: 1fr 1.3fr; }
  /* Text and illustration swap sides every other section. */
  .program-omvand > :first-child { order: 2; }
}
.program-portratt { width: 100%; max-width: 26rem; }
.program-direkt { font-size: 0.9375rem; }

/* Bullets as a hairline list, the same device as .rows, quieter than the lead above. */
.program-punkter { list-style: none; padding: 0; max-width: 36rem; font-size: 1rem; }
.program-punkter li { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.program-punkter li:last-child { border-bottom: 1px solid var(--line); }
.program-avslutning { max-width: 36rem; font-weight: 600; }
/* The note beside a button wraps under it on phones, so it reads as a caption rather than a column. */
.program-knapp .aside { max-width: 24rem; }
/* The three steps of the exploratory meeting, tighter than the program steps above. */
.program-mote { gap: var(--space-4) var(--space-7); }
.program-mote p { font-size: 0.9375rem; }
.program-formular { max-width: 32rem; }
.program-kunder { font-size: 0.9375rem; }
.program-nivaer h3 { font-size: 1rem; }

/* The three parts of the program side by side; .numbered-2 would leave the third alone. */
@media (min-width: 48rem) {
  .program-steg { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
}

/* Workshop names only, as a compact hairline list in columns. */
.program-workshops {
  list-style: none;
  padding: 0;
  display: grid;
  column-gap: var(--space-6);
  font-size: 0.9375rem;
}
.program-workshops li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) {
  .program-workshops { grid-template-columns: repeat(4, 1fr); }
}

/* Calendar example: a vertical list on phones, a week-scaled line on wider screens. */
/* The dots sit on the line, so the timeline needs more room under its heading than text does. */
.program-tidslinje { list-style: none; margin-top: var(--space-5); padding: 0; --program-kant: #d3c9ce; }
.program-tidpunkt {
  position: relative;
  padding: 0 0 1rem 1.5rem;
  border-left: 2px solid var(--program-kant);
}
.program-tidpunkt::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}
.program-tidpunkt :is(span, strong) { display: block; line-height: 1.35; }
/* Kickoff and kickout are the frame, so they get a ring instead of a dot. */
.program-tidpunkt-ram::before { background: var(--surface-2); box-shadow: inset 0 0 0 3px var(--ink); }
.program-tidpunkt-sista { border-left-color: transparent; padding-bottom: 0; }
.program-vecka, .program-tidpunkt-namn { font-size: 0.875rem; color: var(--ink-3); }
.program-tidslinje-summa { font-size: 0.9375rem; }
@media (min-width: 48rem) {
  .program-tidslinje { display: grid; grid-template-columns: repeat(var(--kolumner), minmax(0, 1fr)); }
  .program-tidpunkt { padding: 1.5rem 0.75rem 0 0; border-left: 0; border-top: 2px solid var(--program-kant); }
  .program-tidpunkt::before { left: 0; top: -7px; }
  .program-tidpunkt-sista { border-top-color: transparent; }
}

/* Illustration: an animated SVG from _includes/v2/program-illustrationer/, an image, or a placeholder. */
/* Straight on the page, no box: the white tiles in the SVGs are enough to hold them together. */
.program-illustration, .program-platshallare { --program-kant: #d3c9ce; }
.program-illustration svg { width: 100%; overflow: visible; font-family: var(--font); }
/* Scanned doodles can have a white background baked in; let the page color through. */
.program-illustration image { mix-blend-mode: multiply; }
/* Illustrations with a wide and a narrow version, so text stays readable on phones. */
.program-illustration .pi-smal { display: none; }
@media (max-width: 47.99rem) {
  .program-illustration .pi-bred { display: none; }
  .program-illustration .pi-smal { display: block; }
}
.program-bild { width: 100%; border-radius: 4px; }
/* Portrait-shaped doodles would otherwise tower over the text beside them. */
.program-delad .program-bild { max-width: 24rem; margin-inline: auto; }
.program-platshallare {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 1.5rem;
  border: 2px dashed var(--program-kant);
  text-align: center;
}
.program-platshallare p { margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.program-platshallare :is(span, code) { display: block; }
.program-platshallare code { margin: 0.5rem 0; word-break: break-all; }
.program-platshallare-etikett { font-weight: 600; color: var(--accent); }

.program-illustration .pi-tile { fill: var(--surface); stroke: var(--program-kant); stroke-width: 1.5; }
.program-illustration .pi-tile-vald { fill: rgba(193, 75, 141, 0.08); stroke: var(--accent); stroke-width: 2; }
.program-illustration .pi-fyllt { fill: var(--surface); }
.program-illustration .pi-kort { fill: var(--surface); stroke: var(--program-kant); stroke-width: 1.5; }
.program-illustration .pi-streck { fill: var(--line); }
.program-illustration .pi-text { fill: var(--ink); font-size: 15px; }
/* Workshop names on cards, small enough for two lines in a 160-wide card. */
.program-illustration .pi-namn { fill: var(--ink); font-size: 13px; }
.program-illustration .pi-fet { font-weight: 600; }
.program-illustration .pi-etikett { fill: var(--ink); font-size: 16px; font-weight: 600; }
.program-illustration .pi-overrad { fill: var(--ink-3); font-size: 14px; }
.program-illustration .pi-liten { fill: var(--ink-2); font-size: 14px; }
.program-illustration .pi-nod { fill: var(--ink); }
.program-illustration .pi-nod-accent { fill: var(--accent); }
.program-illustration .pi-nodtext { fill: #fff; font-size: 14px; font-weight: 600; }
.program-illustration .pi-nummer { fill: var(--accent); font-size: 16px; font-weight: 600; }
.program-illustration :is(.pi-pil, .pi-pilspets) { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.program-illustration .pi-linje { fill: none; stroke: var(--program-kant); stroke-width: 2; }
.program-illustration .pi-streckad { fill: none; stroke: var(--program-kant); stroke-width: 1.5; stroke-dasharray: 4 5; }
.program-illustration .pi-ring { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.program-illustration .pi-ram { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.program-illustration .pi-ruta { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.program-illustration .pi-bock { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.program-illustration .pi-bock-vit { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.program-illustration .pi-vardag { fill: var(--line); }
.program-illustration .pi-mark { fill: var(--program-kant); }
.program-illustration .pi-planka { fill: var(--accent); }
.program-illustration .pi-person { fill: var(--ink); }
.program-illustration .pi-nedtonad { opacity: 0.4; }
.program-illustration .pi-pop { transform-box: fill-box; transform-origin: center; }
.program-illustration .pi-bred .pi-text { font-size: 17px; }
.program-illustration .pi-bred .pi-overrad { font-size: 15px; }
.program-illustration .pi-bred .pi-nummer { font-size: 17px; }

/* program-illustrationer.js arms each illustration and adds .is-visible once it scrolls into
   view, so every animation plays once. Without the script, or with reduced motion, nothing is
   armed and the final state shows directly. */
@media (prefers-reduced-motion: no-preference) {
  .program-anim.is-armed:not(.is-visible) :is(.pi-fade, .pi-pop, .pi-show, .pi-fly) { opacity: 0; }
  .program-anim.is-armed:not(.is-visible) .pi-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .program-anim.is-visible .pi-fade { animation: pi-fade 0.6s var(--program-ease) var(--d, 0s) both; }
  .program-anim.is-visible .pi-pop { animation: pi-pop 0.4s var(--program-ease) var(--d, 0s) both; }
  .program-anim.is-visible .pi-show { animation: pi-show 0.4s var(--program-ease) var(--d, 0s) both; }
  .program-anim.is-visible .pi-draw { stroke-dasharray: 1; animation: pi-draw 0.4s var(--program-ease) var(--d, 0s) both; }
  .program-anim.is-visible .pi-draw.pi-lang { animation-duration: 1.4s; }
  .program-anim.is-visible .pi-fly { animation: pi-fly 0.8s var(--program-ease) var(--d, 0s) both; }
}
.program-anim { --program-ease: cubic-bezier(0.2, 0, 0, 1); }
@keyframes pi-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pi-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes pi-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes pi-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* A moved card is hidden until its turn (fill-mode both keeps the 0% frame during the delay), then
   turns solid at its starting spot and travels, so it reads as the same card being picked up. */
@keyframes pi-fly {
  0% { opacity: 0; transform: translate(var(--fx, 0), var(--fy, 0)); }
  15% { opacity: 1; transform: translate(var(--fx, 0), var(--fy, 0)); }
  100% { opacity: 1; transform: none; }
}
