/* WordPress adapter: maps block markup onto the ported LIND styles in site.css. Keep this file small. */
[hidden] { display: none !important; }

/* Template parts: let the sticky header stick to the page, not to its wrapper. */
.wp-site-blocks > .wp-block-template-part,
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > footer.wp-block-template-part { display: contents; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1 0 auto; }

/* Core buttons look exactly like .btn and its variants. */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.wp-block-button { margin: 0; }
.wp-block-button__link {
  --b-bg: var(--koral); --b-fg: var(--on-accent); --b-bd: var(--koral);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 52px; padding: 0 var(--s-6);
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd); border-radius: var(--r-1);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; box-shadow: none;
  transition: transform 140ms var(--ease-out), background-color var(--t-fast), color var(--t-fast);
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.wp-block-button__link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .wp-block-button__link:hover { --b-bg: var(--koral-press); --b-bd: var(--koral-press); color: var(--b-fg); } }
.is-style-line .wp-block-button__link { --b-bg: transparent; --b-fg: currentColor; --b-bd: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .is-style-line .wp-block-button__link:hover { --b-bg: var(--blaek); --b-fg: var(--sand); --b-bd: var(--blaek); }
  .t-fjord .is-style-line .wp-block-button__link:hover, .t-blaek .is-style-line .wp-block-button__link:hover,
  .is-style-tone-fjord .is-style-line .wp-block-button__link:hover, .is-style-tone-blaek .is-style-line .wp-block-button__link:hover { --b-bg: var(--sand); --b-fg: var(--fjord); --b-bd: var(--sand); }
}
.is-style-ink .wp-block-button__link { --b-bg: var(--blaek); --b-fg: var(--sand); --b-bd: var(--blaek); }
@media (hover: hover) and (pointer: fine) { .is-style-ink .wp-block-button__link:hover { --b-bg: var(--fjord); --b-bd: var(--fjord); } }
.is-style-text .wp-block-button__link { --b-bg: transparent; --b-bd: transparent; --b-fg: currentColor; padding: 0; min-height: var(--tap); text-decoration: underline; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { .is-style-text .wp-block-button__link:hover { --b-bg: transparent; --b-bd: transparent; text-decoration-thickness: 2px; } }
.wp-block-button.is-style-block, .wp-block-button.has-custom-width { flex: 1 1 100%; }
.wp-block-button.has-custom-width .wp-block-button__link { width: 100%; }

/* Section tones as block styles (Group → Styles), same values as .t-* */
.is-style-tone-sand { --bg: var(--sand); background: var(--sand); color: var(--blaek); --line-c: var(--line); --muted-c: var(--muted); }
.is-style-tone-paper { --bg: var(--paper); background: var(--paper); color: var(--blaek); --line-c: var(--line); --muted-c: var(--muted); }
.is-style-tone-ler { --bg: var(--ler); background: var(--ler); color: var(--blaek); --line-c: #b9a283; --muted-c: #3e4447; }
.is-style-tone-fjord { --bg: var(--fjord); background: var(--fjord); color: var(--sand); --line-c: var(--fjord-line); --muted-c: #b9c4c4; }
.is-style-tone-blaek { --bg: var(--blaek); background: var(--blaek); color: var(--sand); --line-c: #343a3d; --muted-c: #b0b5b5; }

/* Text block styles */
.is-style-eyebrow { font-family: var(--font-body); font-size: var(--fs-micro); letter-spacing: var(--track-caps); text-transform: uppercase; font-weight: 600; display: inline-flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-5); }
.is-style-eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: 0.6; }
.is-style-lead { font-size: var(--fs-lead); line-height: 1.45; max-width: var(--measure); }
.is-style-micro { font-size: var(--fs-micro); line-height: 1.4; }
.is-style-mega { font-size: var(--fs-mega); line-height: 0.92; letter-spacing: -0.02em; }

/* Core lists used as link columns in the footer */
.ftr__cols ul { list-style: none; margin: 0; padding: 0; }
.ftr__cols li { margin: 0; }
.ftr__cols ul a, .ftr__cols .ftr__linkbtn { display: flex; align-items: center; min-height: var(--tap); text-decoration: none; color: #d4dcdc; font-size: var(--fs-small); }
@media (hover: hover) and (pointer: fine) { .ftr__cols ul a:hover { color: var(--sand); text-decoration: underline; } }

/* Mobile menu: native [hidden] toggle plus its CTA row */
.mnav[hidden] { display: none; }
.mnav__ctas { margin-top: 2rem; display: grid; gap: 0.75rem; }
.cart-btn { color: inherit; text-decoration: none; }
.cart-btn__n[hidden] { display: none; }

/* Images placed with core/image keep the site's image rules */
.wp-block-image { margin: 0; }
.wp-block-image img { height: auto; }

/* Never render placeholder tokens such as [PRICE] if one slips into content */
.lind-hide-token { display: none !important; }

/* Scroll reveal for core blocks: add the CSS class "reveal" (block → Advanced) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.editor-styles-wrapper .reveal, .block-editor-block-preview__content .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* Footer: newsletter sub line (was an inline style on the old site) */
.ftr__nl-sub { opacity: 0.8; margin: 0 0 0.75rem; }
.ftr__bottom > p { margin: 0; }

/* Base templates: readable column for legal pages and posts, simple post cards */
.prose-wrap { max-width: 68ch; }
.wp-block-post-template.cards { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .wp-block-post-template.cards { grid-template-columns: repeat(3, 1fr); } }
.cards .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-1); padding: var(--s-5); }
.cards .card a { color: inherit; text-decoration: none; }
.wp-block-query-pagination { margin-top: var(--s-6); gap: var(--s-3); }

/* "Det sker der": a numbered core List with the class "why". Numbers come from CSS so editors only type the text. */
ol.why { list-style: none; margin: 0; padding: 0; counter-reset: why; }
ol.why > li { counter-increment: why; font-size: var(--fs-4); line-height: var(--lh-snug); font-family: var(--font-display); margin: 0; }
ol.why > li::before { content: counter(why); font-size: 2.4rem; line-height: 1; color: var(--koral-press); }

/* "Det ændrer sig": a core List with the class "mini-tl". The bold start of each item is the time label. */
ol.mini-tl, ul.mini-tl { list-style: none; margin: 0; padding: 0; }
.mini-tl > li { font-size: var(--fs-4); line-height: var(--lh-snug); font-family: var(--font-display); margin: 0; }
.mini-tl > li > strong:first-child { display: block; margin-bottom: var(--s-2); font-family: var(--font-body); font-size: var(--fs-micro); letter-spacing: var(--track-caps); text-transform: uppercase; font-weight: 700; }
.wp-block-heading + .mini-tl { margin-top: 2.5rem; }
.mini-tl + .micro { margin-top: 2rem; }

/* Square before/after */
.ba--sq { aspect-ratio: 1; }

/* FAQ rows made of core Details blocks inside a Group with the class "acc" */
.acc .wp-block-details { margin: 0; }
.acc details > summary ~ * { max-width: 44rem; }
.acc details > summary + * { margin-top: 0; }
.acc details > :last-child:not(summary) { padding-bottom: var(--s-5); margin-bottom: 0; }

/* Section helpers for core groups: "section" + a Section style, "wrap" inside */
.wp-block-group.section > .wrap { margin-inline: auto; }
.hero__cta.wp-block-buttons { margin-top: var(--s-5); }

/* Primary (orange) buttons carry the arrow, like BuyCta on the old site */
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link::after {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M14 7l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M14 7l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover::after { transform: translateX(4px); } }

/* Sections placed in post content stack edge to edge (no block gap between them) */
.page-main > *, .wp-block-post-content > .section, .wp-block-post-content > .wp-block-group.section { margin-block: 0; }

/* No root block gap between header, main and footer. */
.wp-site-blocks > * { margin-block: 0; }

/* Headings: italic words are typed as <em> in the editor (old site: span.italic). */
:is(h1, h2, h3, .h2, .hero__h) em { font-style: italic; }

/* Numbered steps: a core List with the class "steps". Bold start = step title, numbers from CSS. */
ol.steps { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: var(--s-6); counter-reset: step; }
ol.steps > li { counter-increment: step; border-top: 1px solid var(--fjord-line, var(--line-c)); padding-top: var(--s-4); display: grid; grid-template-columns: 2.5rem 1fr; column-gap: var(--s-4); align-items: start; }
ol.steps > li::before { content: counter(step); grid-row: span 2; font-family: var(--font-display); font-variant-numeric: tabular-nums lining-nums; line-height: 0.9; font-size: var(--fs-num-s); color: var(--koral); }
.t-fjord ol.steps > li::before, .is-style-tone-fjord ol.steps > li::before, .is-style-tone-blaek ol.steps > li::before { color: var(--koral-on-dark); }
ol.steps > li > strong:first-child { display: block; grid-column: 2; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-4); line-height: var(--lh-snug); margin-bottom: var(--s-2); }
.how2 .wp-block-image { margin: 0; }
.how2 .wp-block-image img { width: 100%; height: auto; display: block; }

/* Comparison: a core Table with the class "cmp-table". Column 3 (LIND) is highlighted. Same look as the old .cmp grid. */
.cmp-table { margin: 0 0 var(--s-5); overflow: visible; }
.cmp-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.cmp-table th, .cmp-table td { border: 0; border-bottom: 1px solid var(--line-c); padding: var(--s-3); text-align: left; vertical-align: top; }
.cmp-table thead th { font-weight: 700; font-size: var(--fs-micro); letter-spacing: var(--track-caps); text-transform: uppercase; vertical-align: bottom; }
.cmp-table thead th:first-child { color: transparent; }
.cmp-table tbody th { font-weight: 600; }
.cmp-table :is(th, td):nth-child(3) { background: var(--fjord); color: var(--sand); }
.cmp-table thead th:nth-child(3) { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: var(--track-wordmark); text-transform: none; font-weight: 400; padding-top: var(--s-4); }
.cmp-table tbody tr:last-child :is(th, td):nth-child(3) { padding-bottom: var(--s-5); }
@media (max-width: 759px) {
  .cmp-table thead th:first-child { display: none; }
  .cmp-table thead tr, .cmp-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cmp-table tbody th { grid-column: 1 / -1; padding-bottom: 0; border-bottom: 0; }
  .cmp-table :is(th, td) { overflow-wrap: break-word; hyphens: auto; min-width: 0; }
  .cmp-table thead th { letter-spacing: 0.04em; font-size: 0.6875rem; }
  .cmp-table thead th:nth-child(3) { font-size: 1.15rem; letter-spacing: 0.18em; white-space: nowrap; }
  .cmp-table tbody th:nth-child(3) { background: none; }
}
@media (min-width: 760px) {
  .cmp-table th, .cmp-table td { padding: var(--s-4); }
  .cmp-table :is(th, td):first-child { width: 28%; }
}

/* Image inside the before/after grid (day 0 → day 30). */
.real-grid__item .wp-block-image { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.real-grid__item .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.split > .wp-block-image img { width: 100%; height: auto; display: block; }

/* Timeline next to a photo (pattern "Tidslinje"): 2 × 2 grid with smaller text, so it fits half a column. */
.split .mini-tl { margin: var(--s-6) 0 var(--s-5); }
.split .mini-tl > li { font-size: var(--fs-lead); line-height: var(--lh-body, 1.5); font-family: var(--font-body); }
@media (min-width: 760px) { .split .mini-tl { grid-template-columns: 1fr 1fr; } }

/* Partner page head: text left, photo right (4:3). */
.page-head2__in > .wp-block-image { margin: 0; }
.page-head2__in > .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-head2 .sec-cta { margin-top: var(--s-5); }
.split .notice { margin-top: var(--s-6); }
#bliv-partner > .h3 { margin-bottom: var(--s-5); }
.split ol.why { margin-top: var(--s-6); }

/* Tools: the tips signup inside the hardness check is secondary (one orange CTA per screen). */
.hc__email .btn, .quiz-res__email .btn { --b-bg: transparent; --b-fg: currentColor; --b-bd: currentColor; }
.hmap__svg { width: 100%; height: auto; max-width: 34rem; margin-inline: auto; display: block; }
.hmap__svg a path { transition: opacity var(--t-fast); }
.hmap__svg a:hover path, .hmap__svg a:focus-visible path { opacity: 0.75; }
.hmap__top a { color: inherit; }
.hmap__svg g { stroke: var(--bg, #fff); }
.hmap figcaption { display: grid; gap: var(--s-3); }
.hc { align-content: start; }

/* Quiz: questions are fieldsets; reset the browser frame. */
.quiz__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz__step legend { padding: 0; font-family: var(--font-display); line-height: var(--lh-tight); letter-spacing: -0.01em; text-wrap: balance; }
.quiz-res:focus { outline: none; }
.up--res:focus { outline: none; }
