/*
Theme Name: Barnparadiset Lekrum
Theme URI: https://barnparadiset.se/
Description: Lekrummet för Barnparadiset: träklossar som ämnen, en längdmätare i björk som åldersnavigering och läsförlopp, blyertsanteckningar och kalla kritfärger. Barntema till Twenty Twenty-Five.
Author: Barnparadiset
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: bp-lekrum
*/

/* ---------- Grund ---------- */
:root {
	--mint: #DFF3EC; --mint-2: #C6EADD; --mint-3: #A6D8C4; --vit: #F7FCFA;
	--ink: #15302B; --ink-2: #3B5852;
	--hallon: #B8174F; --hallon-d: #7E0F37; --hallon-l: #F2618F; --hallon-bg: #F58AAE;
	--sol: #FFC93C; --sol-l: #FFE7A3; --himmel: #8CC8EE; --lila: #B9ABF5; --gron: #5CC4A0;
	--bjork: #EFDDBE; --bjork-d: #E2BE86; --bjork-ink: #6B4B22;
	--t-barnrum: #E3F2FC; --t-sakerhet: #FFF3D1; --t-lek: #EEEBFD; --t-presenter: #FDE6EE; --t-hallbart: #DDF4EA;
	--disp: Fredoka, 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
	--text: Lexend, 'Segoe UI', system-ui, sans-serif;
	--hand: Caveat, 'Bradley Hand', 'Segoe Print', cursive;
	--g: clamp(1rem, 4vw, 3rem);
	--max: 1320px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--bounce: cubic-bezier(.34, 1.45, .5, 1);
	--depth: 0 7px 0 var(--mint-3);
	--squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c12-6 22-6 30 0s20 6 30 0 22-6 30 0 18 5 26 0' fill='none' stroke='%23B8174F' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
html { scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; }
body { background: var(--mint); color: var(--ink); margin: 0; font-kerning: normal; text-rendering: optimizeLegibility; overflow-x: clip; font-variation-settings: normal; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + *, main > * + * { margin-block-start: 0; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .2em; text-decoration-thickness: 1.5px; transition: color .15s, text-decoration-color .15s; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--hallon); outline-offset: 3px; border-radius: 6px; }
.bp-footer :focus-visible { outline-color: var(--sol); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.bp-wide { max-width: var(--max); margin-inline: auto; padding-inline: var(--g); box-sizing: content-box; }
::selection { background: var(--sol); color: var(--ink); }
h1, h2, h3, h4 { text-wrap: balance; font-optical-sizing: auto; }
p { text-wrap: pretty; }

/* Blyertsanteckningen (återkommande handstil) */
.bp-note { font-family: var(--hand); font-weight: 600; font-size: 1.55rem; line-height: 1.1; color: var(--hallon); margin: 0 0 .5rem; display: inline-block; transform: rotate(-2deg); transform-origin: left center; letter-spacing: 0; }
/* Ordet med krita under */
.bp-hl, .bp-sec-title em { font-style: normal; background: var(--squiggle) left bottom / 100% .34em no-repeat; padding-bottom: .1em; }

/* Bokstavsklossen (ABC-kloss) */
.bp-letter { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none; border-radius: 10px; font: 700 1.45rem/1 var(--disp); color: var(--ink); background: var(--sol);
	box-shadow: inset -5px -5px 0 rgba(21, 48, 43, .13), inset 4px 4px 0 rgba(255, 255, 255, .45); outline: 2px solid rgba(255, 255, 255, .6); outline-offset: -7px; }
.bp-letter.is-himmel { background: var(--himmel); }
.bp-letter.is-lila { background: var(--lila); }
.bp-letter.is-hallon { background: var(--hallon-bg); }
.bp-letter.is-gron { background: var(--gron); }
.bp-letter.is-sm { width: 1.9rem; height: 1.9rem; font-size: 1.05rem; border-radius: 7px; outline-offset: -5px; box-shadow: inset -3px -3px 0 rgba(21, 48, 43, .13), inset 2px 2px 0 rgba(255, 255, 255, .45); }
.bp-letter.is-lg { width: 4.2rem; height: 4.2rem; font-size: 2.2rem; border-radius: 14px; outline-offset: -9px; }
.bp-letter.is-xl { width: clamp(5.5rem, 14vw, 9.5rem); height: clamp(5.5rem, 14vw, 9.5rem); font-size: clamp(3rem, 8vw, 5.6rem); border-radius: 22px; outline-width: 3px; outline-offset: -14px; box-shadow: inset -12px -12px 0 rgba(21, 48, 43, .13), inset 8px 8px 0 rgba(255, 255, 255, .45); }
.bp-letter.is-gap { background: transparent; box-shadow: none; outline: 3px dashed var(--ink-2); outline-offset: -3px; }

/* Hopplänken */
.bp-skip { position: absolute; left: 1rem; top: .6rem; z-index: 200; background: var(--ink); color: #fff; font: 600 1.05rem/1 var(--disp); padding: .95rem 1.2rem; border-radius: 14px; transform: translateY(-170%); transition: transform .15s; text-decoration: none; }
.bp-skip:focus, .bp-skip:focus-visible { transform: none; outline-color: var(--sol); }

/* Ämnesmärket */
.bp-badge { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; padding: .2rem .8rem .2rem .45rem; border-radius: 99px; background: var(--vit); color: var(--ink); font: 500 .95rem/1 var(--disp); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--mint-3); transition: transform .2s var(--bounce), box-shadow .2s; }
a.bp-badge:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--ink); }
.bp-chip-shape { width: 24px; height: 24px; flex: none; transition: transform .35s var(--bounce); }
a.bp-badge:hover .bp-chip-shape { transform: rotate(-10deg) translateY(-2px); }
[data-topic="barnrum"] { --tone: var(--himmel); --tint: var(--t-barnrum); }
[data-topic="sakerhet"] { --tone: var(--sol); --tint: var(--t-sakerhet); }
[data-topic="lek-och-leksaker"] { --tone: var(--lila); --tint: var(--t-lek); }
[data-topic="presenter"] { --tone: var(--hallon-bg); --tint: var(--t-presenter); }
[data-topic="hallbart"] { --tone: var(--gron); --tint: var(--t-hallbart); }

/* "Läs mer"-länken */
.bp-more { display: inline-flex; align-items: center; gap: .55rem; min-height: 32px; font: 600 1.06rem/1.25 var(--disp); color: var(--ink); text-decoration: none; background: linear-gradient(var(--hallon), var(--hallon)) left bottom / 100% 2.5px no-repeat; padding-bottom: .1rem; transition: background-size .25s var(--ease), color .15s; }
.bp-more::after { content: "" / ""; width: 1.35rem; height: 1.35rem; flex: none; border-radius: 6px; background: var(--sol) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h9m-4-4 4 4-4 4' fill='none' stroke='%2315302B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; transition: transform .25s var(--bounce); }
.bp-more:hover { color: var(--hallon); }
.bp-more:hover::after { transform: translateX(4px) rotate(-8deg); }
.bp-more.is-light { color: var(--mint); background-image: linear-gradient(var(--sol), var(--sol)); }
.bp-more.is-light:hover { color: var(--sol); }

/* ---------- Sidhuvud ---------- */
.bp-header { background: var(--mint); position: relative; z-index: 40; }
.bp-header-in { max-width: var(--max); margin: 0 auto; padding: 1rem var(--g); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; }
.bp-brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; min-height: 48px; }
.bp-brand-mark { width: 48px; height: 48px; transition: transform .45s var(--bounce); }
.bp-brand:hover .bp-brand-mark { transform: rotate(-8deg) translateY(-3px); }
.bp-brand-txt { display: flex; flex-direction: column; gap: .2rem; }
.bp-brand-name { font: 600 1.75rem/1 var(--disp); letter-spacing: -.01em; }
.bp-brand-sub { font: 400 .8rem/1.2 var(--text); color: var(--ink-2); }
.bp-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; }
.bp-nav-list a { display: inline-flex; align-items: center; gap: .45rem; min-height: 46px; padding: 0 .75rem; font: 500 1.06rem/1 var(--disp); color: var(--ink); text-decoration: none; border-radius: 14px; white-space: nowrap; transition: background .15s, box-shadow .2s; }
.bp-nav-shape { width: 24px; height: 24px; flex: none; transition: transform .35s var(--bounce); }
.bp-nav-list a:hover { background: var(--vit); }
.bp-nav-list a:hover .bp-nav-shape { transform: translateY(-4px) rotate(-10deg); }
.bp-nav-list a[aria-current] { background: var(--vit); box-shadow: 0 4px 0 var(--mint-3); }
.bp-nav-list a[aria-current] span:last-child { background: var(--squiggle) left bottom / 100% .3em no-repeat; padding-bottom: .15em; }
.bp-nav-list .is-sep { margin-left: .5rem; padding-left: .5rem; border-left: 2px dotted var(--mint-3); }
.bp-nav-sok svg { flex: none; }
.bp-menu-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.1rem 0 .9rem; border: 0; border-radius: 14px; background: var(--vit); color: var(--ink); font: 600 1.06rem/1 var(--disp); cursor: pointer; box-shadow: 0 5px 0 var(--mint-3); transition: transform .1s, box-shadow .1s; }
.bp-menu-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--mint-3); }
.bp-menu-btn[hidden] { display: none; }
.bp-menu-ico { display: grid; gap: 4px; width: 20px; }
.bp-menu-ico span { height: 3px; background: currentColor; border-radius: 3px; transition: transform .2s, opacity .2s; }
.bp-menu-btn[aria-expanded="true"] .bp-menu-ico span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bp-menu-btn[aria-expanded="true"] .bp-menu-ico span:nth-child(2) { opacity: 0; }
.bp-menu-btn[aria-expanded="true"] .bp-menu-ico span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1380px) { .bp-brand-sub { display: none; } }
@media (max-width: 1200px) {
	.bp-header-in { flex-wrap: wrap; }
	.bp-has-menu .bp-nav { display: none; }
	.bp-has-menu.bp-menu-open .bp-nav { display: block; position: absolute; left: var(--g); right: var(--g); top: calc(100% - .2rem); background: var(--vit); border-radius: 22px; box-shadow: 0 8px 0 var(--mint-3), 0 24px 40px rgba(21, 48, 43, .18); padding: .6rem; }
	.bp-has-menu .bp-nav-list { flex-direction: column; align-items: stretch; gap: .1rem; }
	.bp-has-menu .bp-nav-list a { display: flex; min-height: 54px; font-size: 1.2rem; padding: 0 .9rem; }
	.bp-has-menu .bp-nav-list a:hover { background: var(--mint); }
	.bp-has-menu .bp-nav-list a[aria-current] { background: var(--mint); box-shadow: none; }
	.bp-has-menu .bp-nav-list .is-sep { margin: .4rem 0 0; padding: .4rem 0 0; border-left: 0; border-top: 2px dotted var(--mint-3); }
	.bp-has-menu .bp-nav-shape { width: 28px; height: 28px; }
	html:not(.bp-has-menu) .bp-nav { width: 100%; }
}

/* ---------- Sektioner ---------- */
.bp-section { padding-block: clamp(4rem, 8vw, 7rem) 0; }
.bp-section.is-tight { padding-block: 2rem 0; }
.bp-band { background: var(--mint-2); margin-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 6.5rem); border-radius: clamp(28px, 4vw, 56px); margin-inline: clamp(.5rem, 1.5vw, 1.5rem); }
.bp-sec-head { margin-bottom: clamp(2rem, 3.5vw, 3rem); max-width: 50rem; }
.bp-sec-title { margin: 0; font: 600 clamp(2.1rem, 4.4vw, 3.6rem)/1.04 var(--disp); letter-spacing: -.015em; }
.bp-sec-lede { margin: 1rem 0 0; max-width: 56ch; font-size: 1.1rem; color: var(--ink-2); }
.bp-sec-link { margin: 1.1rem 0 0; }
.bp-sec-head.is-small .bp-sec-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* ---------- Sök ---------- */
.bp-search label { display: block; font: 600 1.12rem/1.2 var(--disp); margin-bottom: .55rem; }
.bp-search-row { display: flex; gap: .6rem; max-width: 34rem; }
.bp-search input { flex: 1; min-width: 0; min-height: 56px; box-sizing: border-box; padding: 0 1.1rem; border: 2px solid var(--ink); border-radius: 16px; background: var(--vit); color: var(--ink); font: 400 1.05rem/1 var(--text); }
.bp-search input::placeholder { color: #587670; opacity: 1; }
.bp-search input:focus-visible { outline-offset: 2px; }
.bp-search button { min-height: 56px; padding: 0 1.4rem; border: 0; border-radius: 16px; background: var(--hallon); color: #fff; font: 600 1.1rem/1 var(--disp); cursor: pointer; box-shadow: 0 5px 0 var(--hallon-d); transition: transform .1s, box-shadow .1s, background .15s; }
.bp-search button:hover { background: #A01244; }
.bp-search button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--hallon-d); }
.bp-search.is-dark label { color: var(--mint); }
.bp-search.is-dark input { border-color: var(--mint); background: #0F2420; color: #fff; }
.bp-search.is-dark input::placeholder { color: #A9CFC3; }
.bp-search.is-dark button { background: var(--sol); color: var(--ink); box-shadow: 0 5px 0 #B98A12; }
.bp-search.is-dark button:hover { background: #FFD666; }

/* ---------- Startsidan: hjälten ---------- */
.bp-hero { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) var(--g) clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.bp-hero-title { font: 600 clamp(2.7rem, 6vw, 5.6rem)/.98 var(--disp); letter-spacing: -.025em; margin: .3rem 0 0; max-width: 13ch; }
.bp-hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 40ch; margin: 1.4rem 0 2rem; color: var(--ink-2); }
.bp-hero-trust { display: flex; align-items: center; gap: .7rem; margin: 1.8rem 0 0; font-size: .95rem; color: var(--ink-2); }
.bp-tower-wrap { position: relative; padding: 0 0 0 clamp(0rem, 2vw, 2rem); }
.bp-tower-note { font-size: 1.7rem; margin: 0 0 .9rem 1rem; display: flex; align-items: flex-end; gap: .3rem; }
.bp-arrow-ico { width: 56px; height: 38px; color: var(--hallon); transform: translateY(14px); }
.bp-tower { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; }
.bp-tb { margin-left: var(--x); transform: rotate(var(--r)); width: 76%; margin-top: -2px; position: relative; }
.bp-tb:nth-child(1) { width: 62%; }
.bp-tb:nth-child(2) { width: 80%; }
.bp-tb:nth-child(3) { width: 70%; }
.bp-tb:nth-child(4) { width: 88%; }
.bp-tb:nth-child(5) { width: 94%; }
.bp-tb a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; min-height: 76px; padding: .55rem 1.2rem .55rem .9rem; box-sizing: border-box; border-radius: 16px; background: var(--tone); color: var(--ink); text-decoration: none;
	box-shadow: inset 0 -8px 0 rgba(21, 48, 43, .13), inset 0 3px 0 rgba(255, 255, 255, .4); transition: transform .3s var(--bounce), box-shadow .2s; }
.bp-tb-shape { width: 48px; height: 48px; transition: transform .45s var(--bounce); }
.bp-tb-name { font: 600 clamp(1.25rem, 1.9vw, 1.6rem)/1.05 var(--disp); }
.bp-tb-n { font-size: .88rem; color: var(--ink); background: rgba(255, 255, 255, .55); border-radius: 99px; padding: .25rem .65rem; white-space: nowrap; }
.bp-tb a:hover, .bp-tb a:focus-visible { transform: translateY(-7px) rotate(calc(var(--r) * -1)); box-shadow: inset 0 -8px 0 rgba(21, 48, 43, .13), inset 0 3px 0 rgba(255, 255, 255, .4), 0 14px 18px rgba(21, 48, 43, .14); }
.bp-tb a:hover .bp-tb-shape { transform: rotate(-14deg) scale(1.08); }
.bp-tb a:hover .bp-tb-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.bp-floor { height: 22px; margin-top: 4px; border-radius: 8px; background: var(--bjork-d); box-shadow: inset 0 6px 0 var(--bjork), inset 0 -4px 0 rgba(107, 75, 34, .18);
	background-image: repeating-linear-gradient(90deg, transparent 0 46px, rgba(107, 75, 34, .14) 46px 48px); }
/* Tornet byggs, en kloss i taget (förstärkning, slutläget är standard) */
.bp-drop .bp-tb { animation: bp-drop .75s var(--bounce) backwards; animation-delay: calc(var(--i) * 110ms + 120ms); }
@keyframes bp-drop { from { transform: translateY(-90px) rotate(calc(var(--r) * 4)); opacity: 0; } 60% { opacity: 1; } }

/* ---------- Längdmätaren: hitta efter ålder ---------- */
.bp-alder-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bp-alder-grid .bp-sec-head { position: sticky; top: 2rem; }
.bp-chart { display: grid; grid-template-columns: 76px minmax(0, 1fr); }
.bp-stick { position: relative; border-radius: 12px 12px 6px 6px; background-color: var(--bjork);
	background-image: repeating-linear-gradient(180deg, var(--bjork-ink) 0 2px, transparent 2px 10px), repeating-linear-gradient(180deg, var(--bjork-ink) 0 2.5px, transparent 2.5px 50px), linear-gradient(90deg, rgba(107, 75, 34, .07), transparent 40%, rgba(255, 255, 255, .35) 60%, rgba(107, 75, 34, .1));
	background-size: 14px 100%, 26px 100%, 100% 100%; background-position: right 0 top 12px, right 0 top 12px, 0 0; background-repeat: repeat-y, repeat-y, no-repeat;
	box-shadow: inset -2px 0 0 rgba(107, 75, 34, .25), 5px 0 0 var(--bjork-d); }
.bp-stick-n { position: absolute; inset: 4px auto 4px 8px; display: flex; flex-direction: column; justify-content: space-between; font: 500 .82rem/1 var(--text); color: var(--bjork-ink); }
.bp-marks { list-style: none; margin: 0; padding: 0; }
.bp-mark { position: relative; padding: 1.4rem 0 1.6rem 2.2rem; }
.bp-mark + .bp-mark { border-top: 0; }
.bp-mark-line { position: absolute; top: 2.2rem; left: calc(-76px + 6px); width: calc(76px + 1.4rem); height: 4px; border-radius: 3px; background: #3B4A47; transform: rotate(-1.2deg); transform-origin: left; opacity: .85; }
.bp-mark-line::after { content: ""; position: absolute; right: -6px; top: -6px; width: 16px; height: 16px; border-radius: 5px; background: var(--dot, var(--sol)); box-shadow: inset -3px -3px 0 rgba(21, 48, 43, .15); transform: rotate(12deg); }
.bp-mark.is-sol { --dot: var(--sol); }
.bp-mark.is-lila { --dot: var(--lila); }
.bp-mark.is-himmel { --dot: var(--himmel); }
.bp-mark.is-gron { --dot: var(--gron); }
.bp-mark.is-hallon { --dot: var(--hallon-l); }
.bp-mark-t { margin: 0 0 .4rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.bp-mark-age { font: 700 2rem/1 var(--hand); color: var(--hallon); }
.bp-mark-title { font: 600 clamp(1.3rem, 2vw, 1.6rem)/1.15 var(--disp); }
.bp-mark p { margin: 0; max-width: 56ch; color: var(--ink-2); }
.bp-mark .bp-mark-link { margin-top: .7rem; }
.bp-mark:hover .bp-mark-line::after { animation: bp-hop .5s var(--bounce); }
@keyframes bp-hop { 40% { transform: translateY(-8px) rotate(-10deg); } }

/* ---------- Guiderna ---------- */
.bp-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }
.bp-guide { position: relative; display: grid; grid-template-columns: minmax(150px, 38%) minmax(0, 1fr); background: var(--vit); border-radius: 28px; box-shadow: var(--depth); overflow: hidden; transition: transform .3s var(--bounce), box-shadow .3s; }
.bp-guide:nth-child(even) { transform: translateY(1.5rem); }
.bp-guide-art { position: relative; background: var(--tint); min-height: 230px; display: grid; place-items: center; }
.bp-guide-art .is-main { width: 62%; max-width: 150px; transform: rotate(-6deg) translateY(-6%); transition: transform .5s var(--bounce); }
.bp-guide-art .is-plank { position: absolute; bottom: 10%; left: 8%; width: 84%; height: auto; }
.bp-guide-body { padding: clamp(1.3rem, 2.4vw, 2rem); display: flex; flex-direction: column; }
.bp-guide-k { margin: 0 0 .5rem; font: 500 .95rem/1.2 var(--disp); color: var(--ink-2); }
.bp-guide-t { margin: 0 0 .7rem; font: 600 clamp(1.4rem, 2.2vw, 1.85rem)/1.1 var(--disp); }
.bp-guide-t a { color: var(--ink); text-decoration: none; }
.bp-guide-t a::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.bp-guide-e { margin: 0 0 1rem; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.bp-guide-m { margin: auto 0 0; font: 500 .92rem/1 var(--disp); color: var(--ink-2); }
.bp-guide:hover { box-shadow: 0 12px 0 var(--mint-3), 0 20px 30px rgba(21, 48, 43, .1); }
.bp-guide:hover .is-main { transform: rotate(5deg) translateY(-14%); }
.bp-guide:hover .bp-guide-t a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.bp-guide:focus-within { outline: 3px solid var(--hallon); outline-offset: 4px; }
.bp-guide:focus-within a:focus-visible { outline: none; }

/* ---------- Kort ---------- */
.bp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.2vw, 1.9rem); }
.bp-card { position: relative; display: flex; flex-direction: column; background: var(--vit); border-radius: 24px; box-shadow: var(--depth); overflow: hidden; transition: transform .3s var(--bounce), box-shadow .3s; }
.bp-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint, var(--mint-2)); position: relative; }
.bp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.bp-card-art { display: grid; place-items: center; height: 100%; }
.bp-card-art .bp-shape { width: 38%; }
.bp-card-body { padding: 1.1rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.bp-card-meta { margin: 0 0 .8rem; }
.bp-card-title { margin: 0 0 .55rem; font: 600 clamp(1.25rem, 1.7vw, 1.42rem)/1.16 var(--disp); }
.bp-card-title a { color: var(--ink); text-decoration: none; }
.bp-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; z-index: 1; }
.bp-card-ex { margin: 0 0 1rem; color: var(--ink-2); font-size: .98rem; line-height: 1.6; }
.bp-card-foot { margin: auto 0 0; display: flex; gap: 1rem; font-size: .86rem; color: var(--ink-2); }
.bp-card-foot span + span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--tone, var(--mint-3)); margin-right: 1rem; vertical-align: .1em; transform: rotate(45deg); }
.bp-card:hover { transform: translateY(-5px); box-shadow: 0 12px 0 var(--mint-3), 0 18px 26px rgba(21, 48, 43, .1); }
.bp-card:hover .bp-card-img img { transform: scale(1.045); }
.bp-card:hover .bp-card-title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.bp-card:focus-within { outline: 3px solid var(--hallon); outline-offset: 4px; }
.bp-card-title a:focus-visible { outline: none; }
.bp-cards.is-latest .is-big { grid-column: span 2; grid-row: span 2; }
.bp-cards.is-latest .is-big .bp-card-img { aspect-ratio: 16 / 10; }
.bp-cards.is-latest .is-big .bp-card-title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.08; }
.bp-cards.is-latest .is-big .bp-card-ex { font-size: 1.08rem; max-width: 58ch; }
.bp-cards.is-latest .is-big .bp-card-body { padding: 1.5rem 1.9rem 1.9rem; }

/* ---------- Ämnena ---------- */
.bp-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.4rem); }
.bp-topic { position: relative; background: var(--vit); border-radius: 24px; padding: 1.3rem 1.3rem 1.4rem; box-shadow: 0 7px 0 #9CCDB9; display: flex; flex-direction: column; transition: transform .3s var(--bounce), box-shadow .3s; }
.bp-topic-art { height: 92px; display: flex; align-items: flex-end; margin-bottom: .9rem; }
.bp-topic-art .bp-shape { width: 84px; height: 84px; transition: transform .45s var(--bounce); }
.bp-topic-t { margin: 0 0 .45rem; font: 600 1.35rem/1.12 var(--disp); }
.bp-topic-t a { color: var(--ink); text-decoration: none; }
.bp-topic-t a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.bp-topic-d { margin: 0 0 .9rem; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.bp-topic-n { margin: auto 0 0; font: 500 .9rem/1 var(--disp); color: var(--ink-2); }
.bp-topic:hover { transform: translateY(-5px) rotate(-.6deg); }
.bp-topic:hover .bp-shape { transform: translateY(-10px) rotate(-12deg); }
.bp-topic:hover .bp-topic-t a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.bp-topic:focus-within { outline: 3px solid var(--hallon); outline-offset: 4px; }
.bp-topic-t a:focus-visible { outline: none; }

/* ---------- Om-rutan ---------- */
.bp-about { padding-bottom: clamp(4rem, 8vw, 7rem); }
.bp-about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.bp-about-text .bp-sec-title { margin-bottom: 1.2rem; }
.bp-about-text p { max-width: 58ch; }
.bp-principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.bp-principles li { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: center; background: var(--vit); border-radius: 22px; padding: 1.1rem 1.3rem; box-shadow: var(--depth); }
.bp-principles li:nth-child(2) { margin-left: clamp(0rem, 3vw, 2.5rem); }
.bp-principles li:nth-child(3) { margin-left: clamp(0rem, 1.5vw, 1.2rem); }
.bp-principles .bp-letter { grid-row: span 2; }
.bp-principles b { font: 600 1.2rem/1.2 var(--disp); }
.bp-principles span:not(.bp-letter) { font-size: .96rem; line-height: 1.5; color: var(--ink-2); }

/* ---------- Sidfot ---------- */
.bp-footer { background: var(--ink); color: var(--mint); margin-top: clamp(3rem, 6vw, 5rem); position: relative; }
.bp-footer-blocks { position: absolute; left: var(--g); top: 0; transform: translateY(-100%); display: flex; align-items: flex-end; gap: 4px; }
.bp-footer-blocks span { display: block; width: 38px; height: 38px; border-radius: 6px; background: var(--himmel); box-shadow: inset -4px -4px 0 rgba(21, 48, 43, .14); }
.bp-footer-blocks .is-b { background: var(--sol); }
.bp-footer-blocks .is-c { background: var(--gron); height: 30px; width: 54px; }
.bp-footer-blocks .is-cyl { border-radius: 50%; background: var(--lila); }
.bp-footer-blocks .is-cyl.is-b { background: var(--gron); width: 30px; height: 30px; }
.bp-footer-blocks .is-tak { width: 44px; height: 38px; border-radius: 0; background: var(--hallon-l); clip-path: polygon(50% 0, 100% 100%, 0 100%); box-shadow: none; }
.bp-footer-blocks .is-tak.is-b { background: var(--sol); width: 34px; height: 30px; }
.bp-footer-blocks .is-valv { width: 58px; height: 34px; background: radial-gradient(circle at 50% 100%, transparent 11px, var(--hallon-bg) 12px); }
.bp-footer-in { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--g) 2rem; }
.bp-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.8rem, 4vw, 3.5rem); }
.bp-footer-brand { display: flex; align-items: center; gap: .7rem; font: 600 1.7rem/1 var(--disp); color: #fff; margin: 0 0 1rem; }
.bp-footer-about > p { max-width: 42ch; line-height: 1.6; }
.bp-footer-about .bp-search { margin-top: 1.5rem; }
.bp-footer-h { font: 600 1.15rem/1 var(--disp); color: var(--sol); margin: .4rem 0 1rem; }
.bp-footer-col ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.bp-footer-col li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--mint); text-decoration-color: rgba(223, 243, 236, .4); line-height: 1.3; }
.bp-footer-col li a:hover { color: var(--sol); text-decoration-color: var(--sol); }
.bp-footer-bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 2px dotted rgba(223, 243, 236, .3); display: grid; gap: .6rem; font-size: .9rem; color: #B9D9CF; }
.bp-footer-bottom p { margin: 0; max-width: 90ch; }
.bp-footer-note { color: var(--mint); }

/* ---------- Artikeln ---------- */
.bp-article-head { max-width: 1000px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--g) 0; }
.bp-kicker { margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.bp-kicker-l { font: 500 1rem/1 var(--disp); color: var(--ink); }
.bp-article-title { font: 600 clamp(2.3rem, 5vw, 4.2rem)/1.02 var(--disp) !important; letter-spacing: -.02em; margin: 0 !important; max-width: 20ch; }
.bp-dek { margin: 1.3rem 0 0 !important; }
.bp-dek p, p.bp-dek { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; margin: 0; }
.bp-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.8rem; }
.bp-byline p { margin: 0; display: flex; flex-direction: column; gap: .15rem; line-height: 1.3; }
.bp-byline-by { font: 600 1.08rem/1.2 var(--disp); }
.bp-byline-role { font-size: .9rem; color: var(--ink-2); }
.bp-byline p.bp-byline-meta { flex-direction: row; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .9rem; color: var(--ink-2); padding-left: 1rem; border-left: 2px dotted var(--mint-3); }
.bp-figure { max-width: 1180px; margin: clamp(2rem, 4vw, 3rem) auto 0 !important; padding-inline: var(--g); position: relative; }
.bp-figure::before { content: ""; position: absolute; z-index: 1; left: calc(var(--g) - 13px); top: 10%; bottom: 10%; width: 26px; border-radius: 8px; background-color: var(--bjork);
	background-image: repeating-linear-gradient(180deg, var(--bjork-ink) 0 2px, transparent 2px 9px), repeating-linear-gradient(180deg, var(--bjork-ink) 0 2px, transparent 2px 45px);
	background-size: 9px 100%, 15px 100%; background-position: right 0 top 0, right 0 top 0; background-repeat: repeat-y; box-shadow: 3px 0 0 var(--bjork-d); }
.bp-hero-img { margin: 0 !important; }
.bp-hero-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: clamp(20px, 3vw, 34px); display: block; }
.bp-figure:not(:has(img)) { display: none; }

.bp-read { max-width: 1180px; margin: clamp(2.5rem, 5vw, 4rem) auto 0 !important; padding-inline: var(--g); display: grid; grid-template-columns: 230px minmax(0, 720px); justify-content: center; gap: clamp(2rem, 4.5vw, 4.5rem); }
.bp-rail-in { position: sticky; top: 2rem; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 1.1rem; }
.bp-rail.is-bare .bp-rail-in { grid-template-columns: 22px; }
.bp-grow { position: relative; min-height: 340px; height: 100%; border-radius: 8px; background-color: var(--bjork);
	background-image: repeating-linear-gradient(0deg, var(--bjork-ink) 0 2px, transparent 2px 9px), repeating-linear-gradient(0deg, var(--bjork-ink) 0 2px, transparent 2px 45px);
	background-size: 8px 100%, 14px 100%; background-position: right 0 bottom 0, right 0 bottom 0; background-repeat: repeat-y; box-shadow: 3px 0 0 var(--bjork-d); overflow: visible; }
.bp-grow-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p, 0) * 100%); border-radius: 8px; background: linear-gradient(0deg, var(--gron), rgba(92, 196, 160, .55)); mix-blend-mode: multiply; }
.bp-grow-head { position: absolute; left: -9px; bottom: calc(var(--p, 0) * 100%); width: 40px; height: 4px; border-radius: 2px; background: var(--hallon); transform: translateY(2px) rotate(-3deg); opacity: 0; transition: opacity .3s; }
.bp-progress .bp-grow-head { opacity: 1; }
.bp-toc-h { font: 600 1.05rem/1.2 var(--disp); margin: 0 0 .8rem; }
.bp-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: .15rem; }
.bp-toc li { counter-increment: toc; }
.bp-toc a { display: grid; grid-template-columns: 1.6rem 1fr; gap: .4rem; padding: .45rem .5rem; border-radius: 10px; font-size: .92rem; line-height: 1.4; color: var(--ink-2); text-decoration: none; transition: background .15s, color .15s; }
.bp-toc a::before { content: counter(toc); font: 600 .95rem/1.35 var(--disp); color: var(--hallon); }
.bp-toc a:hover { background: var(--vit); color: var(--ink); }
.bp-toc a.is-on { background: var(--vit); color: var(--ink); box-shadow: 0 3px 0 var(--mint-3); }

/* Brödtexten */
.bp-body { font-size: clamp(1.0625rem, .9rem + .45vw, 1.1875rem); line-height: 1.75; }
.bp-body > * { max-width: 66ch; }
.bp-body > :first-child { margin-top: 0; }
.bp-body p { margin: 0 0 1.25em; }
.bp-body > p:first-child { font-size: 1.1em; line-height: 1.65; }
.bp-body h2 { font: 600 clamp(1.6rem, 2.6vw, 2.15rem)/1.12 var(--disp); margin: 2.4em 0 .7em; position: relative; scroll-margin-top: 1.5rem; }
.bp-body h2::before { content: ""; display: block; width: 26px; height: 26px; margin-bottom: .6rem; border-radius: 6px; background: var(--h2c, var(--sol)); box-shadow: inset -4px -4px 0 rgba(21, 48, 43, .14), inset 3px 3px 0 rgba(255, 255, 255, .45); transform: rotate(-6deg); }
.bp-body h2:nth-of-type(5n+2) { --h2c: var(--himmel); }
.bp-body h2:nth-of-type(5n+3) { --h2c: var(--hallon-l); }
.bp-body h2:nth-of-type(5n+4) { --h2c: var(--gron); }
.bp-body h2:nth-of-type(5n+5) { --h2c: var(--lila); }
.bp-body h3 { font: 600 clamp(1.25rem, 1.8vw, 1.45rem)/1.2 var(--disp); margin: 1.8em 0 .5em; }
.bp-body a { color: var(--hallon); }
.bp-body a:hover { color: var(--ink); }
.bp-body ul, .bp-body ol { padding-left: 0; margin: 0 0 1.4em; list-style: none; }
.bp-body li { position: relative; padding-left: 2rem; margin: 0 0 .55em; }
.bp-body ul > li::before { content: ""; position: absolute; left: .3rem; top: .62em; width: 11px; height: 11px; border-radius: 3px; background: var(--li, var(--gron)); transform: rotate(12deg); }
.bp-body ul > li:nth-child(4n+2)::before { --li: var(--sol); transform: rotate(-8deg); }
.bp-body ul > li:nth-child(4n+3)::before { --li: var(--himmel); border-radius: 50%; }
.bp-body ul > li:nth-child(4n+4)::before { --li: var(--hallon-l); }
.bp-body ol { counter-reset: li; }
.bp-body ol > li { counter-increment: li; padding-left: 2.6rem; }
.bp-body ol > li::before { content: counter(li); position: absolute; left: 0; top: .15em; width: 1.8rem; height: 1.8rem; border-radius: 7px; display: grid; place-items: center; font: 600 1rem/1 var(--disp); background: var(--sol); box-shadow: inset -3px -3px 0 rgba(21, 48, 43, .12); }
.bp-body strong { font-weight: 600; }
.bp-body blockquote { margin: 1.8em 0; padding: 0 0 0 1.4rem; border-left: 5px solid var(--sol); font-size: 1.1em; }

/* Majas tips: en lapp med tejp */
.bp-tips { position: relative; background: var(--sol-l); border-radius: 6px 6px 22px 6px; padding: 1.6rem 1.7rem 1.4rem; margin: 2.2em 0; transform: rotate(-.6deg); box-shadow: 0 6px 0 #EBCB6E; }
.bp-tips::before { content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: rgba(242, 97, 143, .45); transform: rotate(-3deg); border-radius: 2px; }
.bp-body .bp-tips p { margin: 0; }
.bp-body .bp-tips p.bp-tips-t { font: 700 1.75rem/1 var(--hand); color: var(--ink); margin-bottom: .45rem; }
/* Faktarutan */
.bp-fakta { background: var(--vit); border-radius: 22px; padding: 1.5rem 1.7rem .6rem; margin: 2.2em 0; box-shadow: var(--depth); border-top: 10px solid var(--himmel); }
.bp-body .bp-fakta p.bp-fakta-t { font: 600 1.25rem/1.2 var(--disp); margin: 0 0 .8rem; }
.bp-body .bp-fakta ul { margin-bottom: .9em; }
.bp-check { max-width: 66ch; margin: 2.8rem 0 0; padding: 1.1rem 1.3rem; border-radius: 18px; background: var(--mint-2); font-size: .95rem; line-height: 1.6; }
.bp-check b { display: block; font: 600 1.05rem/1.3 var(--disp); margin-bottom: .2rem; }
.bp-author { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; max-width: 66ch; margin: 2rem 0 0; padding: 1.5rem; border-radius: 24px; background: var(--vit); box-shadow: var(--depth); }
.bp-author p { margin: 0; }
.bp-author-k { font: 600 1.25rem/1 var(--hand); color: var(--hallon); }
.bp-author-name { font: 600 1.3rem/1.3 var(--disp); }
.bp-author-bio { font-size: .97rem; line-height: 1.6; color: var(--ink-2); margin-top: .3rem !important; }
.bp-ext .bp-newwin { font-size: .8em; margin-left: .15em; }
.bp-more-sec .bp-sec-head { margin-bottom: 1.6rem; }

/* ---------- Guidesidan ---------- */
.bp-gp-head { max-width: 1180px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--g) 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 2rem; align-items: end; }
.bp-gart { position: relative; height: clamp(220px, 26vw, 330px); }
.bp-gart .bp-shape { position: absolute; }
.bp-gart .is-plank { left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.bp-gart .is-main { width: 52%; left: 24%; bottom: 13%; transform: rotate(-4deg); }
.bp-gart .is-a { width: 30%; left: 0; bottom: 13%; transform: rotate(5deg); }
.bp-gart .is-b { width: 26%; right: 2%; bottom: 13%; transform: rotate(-8deg); }
.bp-steps { max-width: 1180px; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0 !important; padding-inline: var(--g); }
.bp-steps ol { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .8rem; }
.bp-steps a { display: flex; align-items: center; gap: .8rem; min-height: 64px; height: 100%; box-sizing: border-box; padding: .6rem 1rem .6rem .7rem; border-radius: 18px; background: var(--vit); color: var(--ink); text-decoration: none; font: 500 1.02rem/1.25 var(--disp); box-shadow: 0 5px 0 var(--mint-3); transition: transform .25s var(--bounce), box-shadow .25s; }
.bp-step-n { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 9px; font: 700 1.2rem/1 var(--disp); background: var(--sol); box-shadow: inset -3px -3px 0 rgba(21, 48, 43, .13), inset 2px 2px 0 rgba(255, 255, 255, .45); transition: transform .35s var(--bounce); }
.bp-steps li:nth-child(4n+2) .bp-step-n { background: var(--himmel); }
.bp-steps li:nth-child(4n+3) .bp-step-n { background: var(--hallon-bg); }
.bp-steps li:nth-child(4n+4) .bp-step-n { background: var(--gron); }
.bp-steps a:hover { transform: translateY(-4px); box-shadow: 0 9px 0 var(--mint-3); }
.bp-steps a:hover .bp-step-n { transform: rotate(-12deg); }
.bp-guide-page .bp-read { margin-top: clamp(2.5rem, 5vw, 4rem) !important; }

/* ---------- Vanliga sidor ---------- */
.bp-page-head { max-width: 820px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--g) 0; position: relative; }
.bp-page-title { font: 600 clamp(2.4rem, 5.5vw, 4.4rem)/1.02 var(--disp) !important; letter-spacing: -.02em; margin: 0 !important; }
.bp-page-deco { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 1.4rem; }
.bp-page-deco span { width: 30px; height: 30px; border-radius: 6px; background: var(--himmel); box-shadow: inset -4px -4px 0 rgba(21, 48, 43, .14); }
.bp-page-deco .is-cyl { border-radius: 50%; background: var(--sol); width: 26px; height: 26px; }
.bp-page-deco .is-tak { border-radius: 0; background: var(--hallon-l); clip-path: polygon(50% 0, 100% 100%, 0 100%); box-shadow: none; width: 32px; height: 28px; }
.bp-page-body { max-width: 820px; margin: clamp(2rem, 4vw, 3rem) auto 0 !important; padding-inline: var(--g); box-sizing: border-box; }
.bp-page-body .bp-guides { max-width: none; margin: 1.5rem 0 2.5rem; }
.bp-page-body .bp-guides, .bp-page-body .bp-topics { max-width: none; }
.bp-page-body .bp-guide-t, .bp-page-body .bp-topic-t { margin-top: 0; }
.bp-page-body .bp-guide-t::before, .bp-page-body .bp-topic-t::before { content: none; }
.bp-page .bp-wideblock { max-width: none; }
@media (min-width: 1100px) { .bp-page .bp-wideblock { width: min(1180px, 92vw); margin-left: 50%; transform: translateX(-50%); } }

/* ---------- Arkiv, sök, 404 ---------- */
.bp-arch-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.bp-arch-title { font: 600 clamp(2.5rem, 6vw, 4.8rem)/1 var(--disp); letter-spacing: -.02em; margin: 0; }
.bp-arch-desc { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 52ch; margin: 1.1rem 0 0; }
.bp-arch-art { position: relative; width: clamp(140px, 18vw, 230px); }
.bp-arch-art .bp-shape { display: block; width: 78%; margin: 0 auto -6%; transform: rotate(-6deg); }
.bp-arch-art .is-plank { width: 100%; margin: 0; transform: none; }
.bp-arch-head.is-search .bp-search { margin-top: 1.5rem; }
.bp-empty { max-width: 60rem; }
.bp-empty > p:not(.bp-note) { font-size: 1.15rem; margin: 0 0 2rem; }
.bp-pages { margin-top: 3rem; }
.bp-pages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.bp-pages a, .bp-pages span { display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 .9rem; border-radius: 14px; background: var(--vit); color: var(--ink); font: 600 1rem/1 var(--disp); text-decoration: none; box-shadow: 0 4px 0 var(--mint-3); box-sizing: border-box; }
.bp-pages .current { background: var(--ink); color: #fff; box-shadow: none; }
.bp-404-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(3rem, 7vw, 6rem); }
.bp-404-blocks { display: flex; gap: .6rem; align-items: flex-end; }
.bp-404-blocks .bp-letter:first-child { transform: rotate(-5deg); }
.bp-404-blocks .bp-letter:last-child { transform: rotate(4deg) translateY(-6px); }
.bp-404-title { font: 600 clamp(2.4rem, 5vw, 4.2rem)/1.02 var(--disp); margin: 0; letter-spacing: -.02em; }
.bp-404-text .bp-dek { font-size: 1.2rem; color: var(--ink-2); max-width: 48ch; margin: 1rem 0 1.6rem !important; }
.bp-404-text .bp-search { margin-bottom: 1.4rem; }

/* ---------- Inglidning (förstärkning; reserv i skriptet) ---------- */
.bp-anim .bp-reveal:not(.is-in) { opacity: 0; transform: translateY(22px); }
.bp-anim .bp-reveal { transition: opacity .6s var(--ease), transform .7s var(--bounce); transition-delay: calc(var(--i, 0) * 70ms); }
.bp-anim .bp-guide.bp-reveal:nth-child(even).is-in { transform: translateY(1.5rem); }

/* ---------- Mindre skärmar ---------- */
@media (max-width: 1100px) {
	.bp-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bp-read { grid-template-columns: 22px minmax(0, 1fr); gap: 1.6rem; }
	.bp-rail-in { grid-template-columns: 22px; }
	.bp-toc { display: none; }
}
@media (max-width: 960px) {
	.bp-hero { grid-template-columns: 1fr; }
	.bp-hero-title { max-width: 15ch; }
	.bp-tower-wrap { max-width: 34rem; padding: 0; }
	.bp-alder-grid { grid-template-columns: 1fr; }
	.bp-alder-grid .bp-sec-head { position: static; }
	.bp-guides { grid-template-columns: 1fr; }
	.bp-guide:nth-child(even), .bp-anim .bp-guide.bp-reveal:nth-child(even).is-in { transform: none; }
	.bp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bp-cards.is-latest .is-big { grid-row: auto; }
	.bp-about-grid { grid-template-columns: 1fr; }
	.bp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bp-footer-about { grid-column: 1 / -1; }
	.bp-gp-head { grid-template-columns: 1fr; }
	.bp-gart { max-width: 340px; height: 200px; }
	.bp-404-in { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.bp-brand-mark { width: 42px; height: 42px; }
	.bp-brand-name { font-size: 1.5rem; }
	.bp-search-row { flex-direction: column; }
	.bp-search button { width: 100%; }
	.bp-cards, .bp-cards.is-3 { grid-template-columns: 1fr; }
	.bp-cards.is-latest .is-big { grid-column: auto; }
	.bp-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bp-topic { padding: 1rem 1rem 1.1rem; }
	.bp-topic-art { height: 70px; }
	.bp-topic-art .bp-shape { width: 64px; height: 64px; }
	.bp-guide { grid-template-columns: 1fr; }
	.bp-guide-art { min-height: 150px; }
	.bp-guide-art .is-main { width: 34%; }
	.bp-guide-art .is-plank { width: 60%; left: 20%; bottom: 6%; }
	.bp-chart { grid-template-columns: 40px minmax(0, 1fr); }
	.bp-stick-n { display: none; }
	.bp-mark { padding-left: 1.4rem; }
	.bp-mark-line { left: calc(-40px + 4px); width: calc(40px + .8rem); }
	.bp-tb { width: 100% !important; margin-left: 0 !important; }
	.bp-tb:nth-child(odd) { width: 94% !important; margin-left: 4% !important; }
	.bp-tb a { min-height: 64px; }
	.bp-tb-shape { width: 40px; height: 40px; }
	.bp-arch-head { grid-template-columns: 1fr; }
	.bp-arch-art { width: 130px; order: -1; }
	.bp-footer-grid { grid-template-columns: 1fr; }
	.bp-footer-blocks span { width: 28px; height: 28px; }
	.bp-footer-blocks .is-c, .bp-footer-blocks .is-valv { width: 40px; height: 24px; }
	.bp-footer-blocks .is-tak { width: 32px; height: 28px; }
	.bp-figure::before { width: 16px; left: calc(var(--g) - 8px); }
	.bp-byline p.bp-byline-meta { padding-left: 0; border-left: 0; width: 100%; }
	.bp-body h2::before { width: 22px; height: 22px; }
	.bp-tips { padding: 1.4rem 1.2rem 1.2rem; }
	.bp-fakta { padding: 1.3rem 1.2rem .5rem; }
	.bp-principles li:nth-child(n) { margin-left: 0; }
}
@media (max-width: 420px) {
	.bp-topics { grid-template-columns: 1fr; }
	.bp-tb-n { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.bp-tb a:hover, .bp-tb a:focus-visible { transform: none; }
}
@media print {
	.bp-header, .bp-footer, .bp-rail, .bp-more-sec { display: none; }
	body { background: #fff; }
}

/* Kort och klossar inuti brödtext (guidehubben) */
.bp-body .bp-guide-t { font: 600 clamp(1.4rem, 2.2vw, 1.85rem)/1.1 var(--disp); margin: 0 0 .7rem; }
.bp-body .bp-guide-t::before { content: none; }
.bp-body .bp-guide-t a, .bp-body .bp-topic-t a { color: var(--ink); text-decoration: none; }
.bp-body .bp-guide p { margin: 0 0 1rem; }
.bp-body .bp-guide .bp-guide-m { margin: auto 0 0; }
.bp-body .bp-topics { padding: 0; margin: 1.4rem 0 2.5rem; }
.bp-body .bp-topics > li { padding: 1.3rem 1.3rem 1.4rem; margin: 0; }
.bp-body .bp-topics > li::before { content: none; }
.bp-body .bp-topic-t { font: 600 1.35rem/1.12 var(--disp); margin: 0 0 .45rem; }
.bp-body .bp-topic p { margin: 0 0 .9rem; font-size: .95rem; line-height: 1.55; }
.bp-body .bp-topic p.bp-topic-n { margin: auto 0 0; }
.bp-body > .bp-wideblock { max-width: none; }
.bp-page-body .bp-topics { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

/* Tornets klossar i kritvitt, tipslappen bredvid måttstocken, stort kort liggande */
.bp-tb-shape { filter: drop-shadow(0 2px 0 rgba(21, 48, 43, .18)); }
.bp-alder-tip { position: relative; margin-top: 2rem; max-width: 26rem; background: var(--sol-l); border-radius: 6px 6px 22px 6px; padding: 1.5rem 1.5rem 1.3rem; transform: rotate(-1.2deg); box-shadow: 0 6px 0 #EBCB6E; }
.bp-alder-tip::before { content: ""; position: absolute; top: -13px; left: 50%; width: 90px; height: 26px; margin-left: -45px; background: rgba(242, 97, 143, .45); transform: rotate(-3deg); border-radius: 2px; }
.bp-alder-tip p { margin: 0; font-size: 1rem; line-height: 1.6; }
.bp-alder-tip .bp-tips-t { font: 700 1.7rem/1 var(--hand); margin-bottom: .4rem; }
.bp-anim .bp-alder-tip.bp-reveal.is-in { transform: rotate(-1.2deg); }
@media (min-width: 961px) {
	.bp-cards.is-latest .is-big { grid-row: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
	.bp-cards.is-latest .is-big .bp-card-img { aspect-ratio: auto; height: 100%; min-height: 360px; }
	.bp-cards.is-latest .is-big .bp-card-art .bp-shape { width: 34%; }
}
.bp-footer-col li a { text-decoration: none; }
.bp-footer-col li a:hover { text-decoration: underline; }

/* Åldersavsnittet: rubrik och lapp följer med vid scroll */
.bp-alder-grid .bp-sec-head { position: static; }
.bp-alder-side { position: sticky; top: 2rem; }
@media (max-width: 960px) { .bp-alder-side { position: static; } }
/* Guidens kloss står på plankan */
.bp-guide-art { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 1.4rem 1rem 1.8rem; }
.bp-guide-art .is-main { position: relative; z-index: 1; width: 58%; max-width: 150px; margin-bottom: -7%; transform: rotate(-5deg); transform-origin: 50% 100%; }
.bp-guide-art .is-plank { position: static; width: 88%; height: auto; }
.bp-guide:hover .is-main { transform: rotate(4deg) translateY(-8px); }
@media (max-width: 700px) { .bp-guide-art { min-height: 0; padding: 1.2rem 1rem 1.4rem; } .bp-guide-art .is-main { width: 30%; } .bp-guide-art .is-plank { width: 50%; } }

/* Guidens klossbygge: klossarna står på plankan */
.bp-gart { height: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 0 2%; padding-top: 1rem; }
.bp-gart .bp-shape { position: relative; z-index: 1; left: auto; right: auto; bottom: auto; }
.bp-gart .is-a { width: 26%; transform: rotate(4deg); }
.bp-gart .is-main { width: 44%; transform: rotate(-3deg); }
.bp-gart .is-b { width: 22%; transform: rotate(-7deg); }
.bp-gart .is-plank { position: relative; z-index: 0; flex: 0 0 100%; width: 100%; margin-top: -11%; }
.bp-guide-page .bp-read { grid-template-columns: 22px minmax(0, 720px); }

/* Mindre skärmar: innehållsförteckningen som kort ovanför texten, måttstocken vilar */
@media (max-width: 1100px) {
	.bp-read, .bp-guide-page .bp-read { grid-template-columns: minmax(0, 720px); gap: 0; }
	.bp-rail-in { position: static; display: block; }
	.bp-grow { display: none; }
	.bp-rail.is-bare { display: none; }
	.bp-toc { display: block; background: var(--vit); border-radius: 20px; padding: 1.1rem 1.1rem .8rem; margin-bottom: 2.2rem; box-shadow: var(--depth); }
	.bp-toc a { min-height: 44px; align-items: center; font-size: 1rem; }
}
@media (max-width: 700px) { .bp-mark-title { flex-basis: 100%; } }
.bp-kicker-l { display: inline-flex; align-items: center; min-height: 32px; }
@media (min-width: 961px) {
	.bp-cards.is-latest .is-big { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
	.bp-cards.is-latest .is-big .bp-card-img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
	.bp-cards.is-latest .is-big .bp-card-body { justify-content: center; padding: 2rem 2.4rem; }
	.bp-cards.is-latest .is-big .bp-card-foot { margin-top: 0; }
}
@media (max-width: 960px) and (min-width: 701px) { .bp-cards.is-latest .is-big { grid-column: 1 / -1; } }
.bp-arch-guide { display: flex; }
.bp-arch-guide .bp-guide { grid-template-columns: 1fr; flex: 1; }
.bp-arch-guide .bp-guide-art { min-height: 0; aspect-ratio: 3 / 2; padding-bottom: 2rem; }
.bp-arch-guide .bp-guide-art .is-main { width: 34%; }
.bp-arch-guide .bp-guide-art .is-plank { width: 56%; }
