/*
Theme Name: Hörsellänken (hl-horsel)
Theme URI: http://horselink.se/
Description: Kunskapsbank om hörsel i vardagen. Ljud som blir synligt: audiogrammets rutnät, talbananen, en egen ljudvåg för varje fråga som tonar ut i tystnad, och frågor satta som textremsor. Byggd för att aldrig kräva ljud.
Author: Hörsellänken
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.5
Text Domain: hl-horsel
*/

/* ---------- Grund ---------- */
:root {
	--hl-stal: #E6EAF0;
	--hl-stal-2: #D3DAE4;
	--hl-vit: #F7F9FC;
	--hl-kobolt: #1F3FBF;
	--hl-kobolt-2: #2A4BD0;
	--hl-djup: #0F2170;
	--hl-natt: #0A1650;
	--hl-ink: #0C1633;
	--hl-ink-2: #3D4864;
	--hl-linje: #6E7C98;
	--hl-signal: #FFC94A;
	--hl-ljus: #C9D3F5;
	--hl-display: 'Red Hat Display', 'Helvetica Neue', Arial, sans-serif;
	--hl-text: 'Red Hat Text', 'Helvetica Neue', Arial, sans-serif;
	--hl-mono: 'Red Hat Mono', ui-monospace, Menlo, monospace;
	--hl-r: 18px;
	--hl-ease: cubic-bezier(.2, .8, .2, 1);
	--hl-arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'%3E%3Cpath d='M0 7h25M19 1l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.hl-big { font-size: 118.75%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--hl-stal); color: var(--hl-ink); font-family: var(--hl-text); font-weight: 420; font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--hl-signal); color: var(--hl-ink); }
h1, h2, h3, h4 { text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--hl-kobolt); }
p, li { text-wrap: pretty; }
img { max-width: 100%; height: auto; }
a { text-decoration-thickness: 2px; text-underline-offset: .22em; transition: color .2s, text-decoration-color .2s, background-color .2s; }
:where(a, button, input, summary, [tabindex]):focus-visible { outline: 3px solid var(--hl-ink); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 7px var(--hl-signal); }
.is-kobolt :where(a, button, input):focus-visible, .hl-hero :where(a, button):focus-visible, .hl-footer :where(a, button, input):focus-visible { outline-color: var(--hl-signal); box-shadow: 0 0 0 7px var(--hl-natt); }
.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; }
.skip-link.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000; top: 12px; left: 12px; padding: .9rem 1.2rem; background: var(--hl-natt); color: #fff; border-radius: 12px; font-weight: 700; text-decoration: none; outline: 3px solid var(--hl-signal); outline-offset: 2px; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main { display: block; }
[hidden] { display: none !important; }

/* Audiogrammets ring (höger öra) som etikettikon. */
.hl-o { display: inline-block; flex: none; width: .78em; height: .78em; border: .16em solid currentColor; border-radius: 50%; margin-right: .55em; vertical-align: -.06em; }
.hl-label { font-family: var(--hl-mono); font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: var(--hl-ink-2); margin: 0 0 .9rem; display: flex; align-items: center; }
.is-kobolt .hl-label, .hl-footer .hl-label, .hl-hero .hl-label { color: var(--hl-ljus); }

/* Ljudvågor */
.hl-wave { display: block; width: 100%; height: 100%; }
.hl-wave rect { fill: currentColor; }

/* Knappar och pilar */
.hl-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .8rem 1.5rem; border-radius: 12px; background: var(--hl-kobolt); color: #fff; font-family: var(--hl-display); font-weight: 700; font-size: 1.04rem; letter-spacing: .005em; text-decoration: none; border: 2px solid var(--hl-kobolt); transition: transform .25s var(--hl-ease), background .25s, color .25s, border-color .25s; }
.hl-btn:hover { transform: translateY(-2px); background: var(--hl-djup); border-color: var(--hl-djup); color: #fff; }
.hl-btn.is-line { background: transparent; color: var(--hl-kobolt); border-color: var(--hl-kobolt); }
.hl-btn.is-line:hover { background: var(--hl-kobolt); color: #fff; }
.hl-hero .hl-btn, .is-kobolt .hl-btn { background: var(--hl-signal); border-color: var(--hl-signal); color: var(--hl-ink); }
.hl-hero .hl-btn:hover, .is-kobolt .hl-btn:hover { background: #fff; border-color: #fff; color: var(--hl-ink); }
.hl-hero .hl-btn.is-ghost { background: transparent; color: #fff; border-color: var(--hl-ljus); }
.hl-hero .hl-btn.is-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.hl-arrow { font-family: var(--hl-display); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--hl-kobolt); border-bottom: 2px solid currentColor; padding-bottom: 1px; line-height: 1.3; }
.hl-arrow::after { content: ""; flex: none; width: 1.4em; height: .7em; background: currentColor; -webkit-mask: var(--hl-arrow-mask) center / contain no-repeat; mask: var(--hl-arrow-mask) center / contain no-repeat; transition: transform .25s var(--hl-ease); }
.hl-arrow:hover { color: var(--hl-djup); }
.hl-arrow:hover::after { transform: translateX(4px); }
.is-kobolt .hl-arrow, .hl-footer .hl-arrow { color: #fff; border-color: var(--hl-signal); }
.is-kobolt .hl-arrow:hover { color: var(--hl-signal); }

/* Textremsa: frågan satt som undertext, rad för rad. */
.hl-caption, .hl-q blockquote span { display: inline; background: var(--hl-natt); color: #fff; padding: .14em .45em; line-height: 1.95; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 4px; font-weight: 500; }

/* ---------- Sidhuvud ---------- */
.hl-header { background: var(--hl-vit); border-bottom: 1px solid var(--hl-stal-2); position: relative; z-index: 20; padding-block: .7rem; }
.hl-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--hl-kobolt) 0 18%, transparent 18% 100%); }
.hl-header-in { gap: 1.25rem; }
.hl-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--hl-ink); min-height: 48px; flex: none; }
.hl-brand-mark { width: 44px; height: 44px; transition: transform .5s var(--hl-ease); }
.hl-brand:hover .hl-brand-mark { transform: scale(1.06); }
.hl-brand-txt { display: flex; flex-direction: column; line-height: 1.04; }
.hl-brand-name { font-family: var(--hl-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.025em; }
.hl-brand-sub { font-family: var(--hl-mono); font-size: .76rem; color: var(--hl-ink-2); font-weight: 500; margin-top: .25rem; }
.hl-header-tools { gap: .5rem; align-items: center; }
.hl-nav .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .7rem; border-radius: 10px; text-decoration: none; color: var(--hl-ink); transition: background .2s, color .2s; }
.hl-nav .wp-block-navigation-item__content:hover { background: var(--hl-stal); color: var(--hl-kobolt); }
.hl-nav .current-menu-item > .wp-block-navigation-item__content, .hl-nav [aria-current] { background: var(--hl-stal); box-shadow: inset 0 -3px 0 var(--hl-kobolt); }
.hl-nav .hl-nav-bank > .wp-block-navigation-item__content { background: var(--hl-kobolt); color: #fff; padding-inline: .95rem; }
.hl-nav .hl-nav-bank > .wp-block-navigation-item__content:hover { background: var(--hl-djup); color: #fff; }
.hl-nav .hl-nav-sok > .wp-block-navigation-item__content::before { content: ""; width: 1em; height: 1em; margin-right: .35rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='6' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3Cpath d='M13 13l5 5' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%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 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='6' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3Cpath d='M13 13l5 5' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.hl-nav .wp-block-navigation__responsive-container-open, .hl-nav .wp-block-navigation__responsive-container-close { width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; }
.hl-nav .wp-block-navigation__responsive-container-close { display: inline-flex; }
.hl-nav .wp-block-navigation__responsive-container-open { background: var(--hl-kobolt); color: #fff; }
.hl-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--hl-kobolt) !important; color: #fff !important; padding: 1.25rem clamp(1rem, 5vw, 2rem); }
.hl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: #fff; font-family: var(--hl-display); font-size: 1.85rem; font-weight: 700; padding: .3rem 0; min-height: 48px; background: none; box-shadow: none; }
.hl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover { color: var(--hl-signal); background: none; }
.hl-nav .wp-block-navigation__responsive-container.is-menu-open .hl-nav-bank > .wp-block-navigation-item__content { background: none; color: var(--hl-signal); padding-inline: 0; }
.hl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: .15rem; }
.hl-nav .wp-block-navigation__responsive-container.is-menu-open :where(a, button):focus-visible { outline-color: var(--hl-signal); box-shadow: 0 0 0 7px var(--hl-natt); }
.hl-nav .wp-block-navigation__responsive-container-close { color: #fff; }
.hl-textsize { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .35rem .75rem; border-radius: 10px; border: 2px solid var(--hl-stal-2); background: var(--hl-vit); color: var(--hl-ink); font-family: var(--hl-display); font-weight: 700; font-size: .95rem; cursor: pointer; transition: border-color .2s, background .2s; white-space: nowrap; }
.hl-textsize:hover { border-color: var(--hl-kobolt); }
.hl-textsize[aria-pressed="true"] { background: var(--hl-ink); border-color: var(--hl-ink); color: #fff; }
.hl-textsize-a { font-size: .85em; letter-spacing: -.02em; }
.hl-textsize-a span { font-size: 1.35em; }
@media (max-width: 1240px) { .hl-brand-sub { display: none; } }
@media (max-width: 1180px) {
	.hl-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: inline-flex; }
	.hl-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 480px) { .hl-textsize-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .hl-textsize { position: relative; padding-inline: .6rem; min-width: 48px; min-height: 48px; justify-content: center; } .hl-brand-name { font-size: 1.4rem; } .hl-brand-mark { width: 40px; height: 40px; } }

/* ---------- Hjälten ---------- */
.hl-hero-wrap { margin-block: 0 !important; }
.hl-hero { position: relative; background: var(--hl-kobolt); background-image: linear-gradient(160deg, var(--hl-kobolt-2) 0%, var(--hl-kobolt) 46%, #1A36A8 100%); color: #fff; overflow: hidden; isolation: isolate; }
.hl-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(201, 211, 245, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 211, 245, .09) 1px, transparent 1px); background-size: 100% 36px, 100px 100%; mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.2) 60%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.2) 60%, transparent 100%); }
.hl-hero-in { width: min(1300px, 100% - 2 * clamp(1rem, 4vw, 3rem)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 8vh, 6.5rem) clamp(6rem, 12vh, 8rem); }
.hl-eyebrow { display: inline-flex; align-items: center; font-family: var(--hl-mono); font-weight: 600; font-size: .95rem; color: var(--hl-signal); margin: 0 0 1.4rem; }
.hl-hero-title { font-family: var(--hl-display); font-weight: 800; font-size: clamp(3rem, 7.2vw, 6.6rem); line-height: .96; letter-spacing: -.035em; color: #fff; margin: 0; }
.hl-hero-title span { display: block; color: var(--hl-ink); background: var(--hl-signal); width: fit-content; padding: .02em .18em .08em; margin: .12em 0 0 -.06em; border-radius: 10px; font-weight: 700; }
.hl-hero-lede { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.6; max-width: 38rem; color: #fff; margin: 1.9rem 0 0; }
.hl-hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.1rem 0 0; }
.hl-hero-ag { margin: 0; background: rgba(10, 22, 80, .38); border: 1px solid rgba(201, 211, 245, .32); border-radius: 22px; padding: clamp(1rem, 2vw, 1.6rem); }
.hl-ag { display: block; width: 100%; height: auto; overflow: visible; }
.hl-ag-grid line { stroke: rgba(201, 211, 245, .3); stroke-width: 1; }
.hl-ag-grid line.is-normal { stroke: rgba(255, 201, 74, .55); stroke-dasharray: 6 5; }
.hl-ag-lab text { font-family: var(--hl-mono); font-size: 17px; fill: var(--hl-ljus); }
.hl-ag-lab .hl-ag-unit { font-size: 15px; }
.hl-ag-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.hl-ag-line.is-right { stroke: #fff; }
.hl-ag-line.is-left { stroke: var(--hl-signal); stroke-dasharray: 2 6; stroke-linecap: round; stroke-width: 3; }
.hl-ag-o circle { fill: var(--hl-kobolt); stroke: #fff; stroke-width: 3.5; }
.hl-ag-x path { stroke: var(--hl-signal); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.hl-hero-ag figcaption { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; margin-top: .9rem; font-size: .9rem; color: var(--hl-ljus); font-family: var(--hl-mono); }
.hl-key { display: inline-flex; align-items: center; gap: .45rem; color: #fff; }
.hl-key-o { width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; }
.hl-key-x { width: 14px; height: 14px; background: linear-gradient(45deg, transparent 42%, var(--hl-signal) 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, var(--hl-signal) 42% 58%, transparent 58%); }
.hl-key-note { flex-basis: 100%; }
.hl-hero-wave { position: absolute; left: 0; right: 0; bottom: 18px; height: clamp(48px, 6vw, 90px); color: rgba(201, 211, 245, .5); pointer-events: none; }

/* Rörelse: bara med skript, bara utan minskad rörelse, bara när fliken syns. */
html.hl-anim .hl-hero-wave rect, html.hl-anim .hl-head-wave rect { transform-box: fill-box; transform-origin: center; animation: hl-bar .9s var(--hl-ease) both; animation-delay: calc(var(--i) * 14ms); }
html.hl-anim .hl-ag-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: hl-draw 1.6s var(--hl-ease) .3s forwards; }
html.hl-anim .hl-ag-line.is-left { stroke-dasharray: 2 6; stroke-dashoffset: 0; animation: none; }
html.hl-anim .hl-ag-o circle, html.hl-anim .hl-ag-x path { opacity: 0; animation: hl-fade .4s ease forwards; animation-delay: calc(.4s + var(--i) * .16s); }
@keyframes hl-bar { from { transform: scaleY(.05); } to { transform: scaleY(1); } }
@keyframes hl-draw { to { stroke-dashoffset: 0; } }
@keyframes hl-fade { to { opacity: 1; } }
html.hl-anim .hl-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--hl-ease), transform .7s var(--hl-ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.hl-anim .hl-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Sektioner ---------- */
.hl-section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.hl-section.is-tight { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }
.hl-band { padding-block: clamp(3.5rem, 8vw, 7rem); margin-block: 0 !important; }
.hl-band.is-vit { background: var(--hl-vit); }
.hl-band.is-stal2 { background: var(--hl-stal-2); }
.hl-band.is-kobolt { background: var(--hl-kobolt); color: #fff; }
.hl-band.is-kobolt .hl-sec-title, .hl-band.is-kobolt .hl-sec-lede { color: #fff; }
.hl-band.is-kobolt .hl-sec-title em { color: var(--hl-signal); }
.hl-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .4rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.hl-sec-head .hl-label { grid-column: 1 / -1; margin: 0 0 .2rem; }
.hl-sec-title { font-family: var(--hl-display); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.hl-sec-lede { margin: 0; font-size: 1.1rem; color: var(--hl-ink-2); max-width: 36rem; }
.hl-sec-link { grid-column: 2; margin: .4rem 0 0; }
.hl-sec-head.is-small { display: block; margin-bottom: 2rem; }
.hl-sec-head.is-small .hl-sec-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* ---------- Talbananen ---------- */
.hl-tb { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hl-tb-fig { margin: 0; background: var(--hl-vit); border-radius: calc(var(--hl-r) + 6px); padding: clamp(1rem, 2.4vw, 2rem); box-shadow: 0 1px 0 var(--hl-stal-2), 0 40px 70px -56px rgba(12, 22, 51, .6); }
.hl-tb-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hl-tb-svg .hl-ag-grid line { stroke: var(--hl-stal-2); }
.hl-tb-svg .hl-ag-grid line.is-normal { stroke: var(--hl-linje); stroke-dasharray: 6 5; }
.hl-tb-svg .hl-ag-lab text { fill: var(--hl-ink-2); }
.hl-tb-banana { fill: rgba(31, 63, 191, .1); stroke: var(--hl-kobolt); stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; }
.hl-tb-shade { fill: rgba(12, 22, 51, .07); transition: d .35s var(--hl-ease); }
.hl-tb-curve { fill: none; stroke: var(--hl-ink); stroke-width: 3.5; stroke-dasharray: 10 7; stroke-linejoin: round; transition: d .35s var(--hl-ease); }
.hl-tb-cl { font-family: var(--hl-mono); font-size: 15px; fill: var(--hl-ink); font-weight: 600; }
.hl-tb-l circle { fill: #fff; stroke: var(--hl-kobolt); stroke-width: 2.5; transition: fill .3s, stroke .3s; }
.hl-tb-l text { font-family: var(--hl-display); font-weight: 800; font-size: 19px; fill: var(--hl-djup); transition: fill .3s; }
.hl-tb-l.is-lost circle { fill: var(--hl-stal); stroke: var(--hl-linje); stroke-dasharray: 4 4; }
.hl-tb-l.is-lost text { fill: var(--hl-ink-2); font-weight: 600; }
.hl-tb-ctrl { margin-top: 1.2rem; }
.hl-tb-ctrl label { display: block; font-family: var(--hl-display); font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; }
.hl-tb-ctrl input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.hl-tb-ctrl input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--hl-kobolt), var(--hl-ink)); }
.hl-tb-ctrl input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--hl-kobolt), var(--hl-ink)); }
.hl-tb-ctrl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 4px solid var(--hl-kobolt); box-shadow: 0 2px 8px rgba(12, 22, 51, .3); }
.hl-tb-ctrl input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--hl-kobolt); }
.hl-tb-scale { display: flex; justify-content: space-between; margin: .1rem 0 0; font-family: var(--hl-mono); font-size: .85rem; color: var(--hl-ink-2); }
.hl-tb-status { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; font-size: 1rem; }
.hl-tb-status > span { display: inline-flex; gap: .4rem; align-items: baseline; padding: .45rem .8rem; border-radius: 10px; }
.hl-tb-s-h { background: rgba(31, 63, 191, .1); color: var(--hl-djup); }
.hl-tb-s-b { background: var(--hl-stal); color: var(--hl-ink); }
.hl-tb-status strong { font-family: var(--hl-mono); font-weight: 700; letter-spacing: .04em; }
.hl-tb-fig figcaption { margin-top: 1rem; font-size: .9rem; color: var(--hl-ink-2); line-height: 1.5; }
.hl-steps { list-style: none; margin: 0 0 1.6rem; padding: 0; counter-reset: s; }
.hl-steps li { counter-increment: s; position: relative; padding: 0 0 1.5rem 3.4rem; border-left: 2px solid var(--hl-stal-2); margin-left: 1.1rem; }
.hl-steps li:last-child { border-color: transparent; padding-bottom: 0; }
.hl-steps li::before { content: counter(s); position: absolute; left: -1.15rem; top: -.15rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--hl-kobolt); color: #fff; font-family: var(--hl-display); font-weight: 800; }
.hl-steps h3 { font-family: var(--hl-display); font-size: 1.3rem; font-weight: 800; margin: 0 0 .3rem; letter-spacing: -.01em; }
.hl-steps p { margin: 0; color: var(--hl-ink-2); }

/* ---------- Situationer ---------- */
.hl-sits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.hl-sit { background: var(--hl-stal); border-radius: var(--hl-r); padding: 1.4rem 1.3rem 1.2rem; display: flex; flex-direction: column; gap: .9rem; border: 1px solid var(--hl-stal-2); transition: transform .3s var(--hl-ease), box-shadow .3s; }
.hl-sit:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -40px rgba(12, 22, 51, .6); }
.hl-sit-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hl-sit-ic { width: 44px; height: 44px; fill: none; stroke: var(--hl-kobolt); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hl-sit-n { font-family: var(--hl-mono); font-weight: 700; color: var(--hl-ink-2); font-size: .9rem; }
.hl-sit-t { font-family: var(--hl-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; margin: 0; }
.hl-sit-lab { font-family: var(--hl-mono); font-size: .8rem; font-weight: 700; letter-spacing: .02em; margin: 0 0 .25rem; color: var(--hl-ink-2); }
.hl-sit-prob p:last-child, .hl-sit-los p:last-child { margin: 0; font-size: 1rem; line-height: 1.5; }
.hl-sit-los { background: var(--hl-vit); border-left: 4px solid var(--hl-kobolt); border-radius: 0 12px 12px 0; padding: .8rem .9rem; }
.hl-sit-los .hl-sit-lab { color: var(--hl-kobolt); }
.hl-sit-link { margin: auto 0 0; }
.hl-sit-link .hl-arrow { font-size: .95rem; }

/* ---------- Kort och frågor ---------- */
.hl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; font-family: var(--hl-mono); font-size: .85rem; font-weight: 600; color: var(--hl-ink-2); margin: 0 0 .7rem; }
.hl-meta a { color: var(--hl-kobolt); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.hl-meta a:hover { text-decoration: underline; }
.hl-num { background: var(--hl-ink); color: #fff; padding: .1rem .5rem; border-radius: 6px; }
.hl-lead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.hl-lead-img { position: relative; display: block; border-radius: calc(var(--hl-r) + 6px); overflow: hidden; aspect-ratio: 4 / 3; background: var(--hl-stal-2); }
.hl-lead-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--hl-ease); }
.hl-lead:hover .hl-lead-img img { transform: scale(1.03); }
.hl-lead-title { font-family: var(--hl-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 1.1rem; }
.hl-lead-title a, .hl-card-title a { color: var(--hl-ink); text-decoration: none; background: linear-gradient(var(--hl-kobolt), var(--hl-kobolt)) 0 100% / 0 3px no-repeat; transition: background-size .4s var(--hl-ease), color .2s; }
.hl-lead-title a:hover, .hl-card-title a:hover { color: var(--hl-kobolt); background-size: 100% 3px; }
.hl-lead .hl-caption { font-size: 1.08rem; }
.hl-lead-ex { margin: 1.3rem 0 0; color: var(--hl-ink-2); }
.hl-svar { font-family: var(--hl-mono); font-weight: 700; color: var(--hl-kobolt); font-size: .9rem; margin-right: .3rem; }
.hl-date { font-family: var(--hl-mono); font-size: .85rem; color: var(--hl-ink-2); margin: 1rem 0 0; }
.hl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); }
.hl-card { background: var(--hl-vit); border-radius: var(--hl-r); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--hl-stal-2); transition: transform .3s var(--hl-ease), box-shadow .3s; }
.hl-card:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -46px rgba(12, 22, 51, .7); }
.hl-card-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hl-stal-2); }
.hl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--hl-ease); }
.hl-card:hover .hl-card-img img { transform: scale(1.04); }
.hl-card-noimg { position: absolute; inset: 20% 10%; color: var(--hl-kobolt); }
.hl-card-num { position: absolute; left: .8rem; top: .8rem; background: var(--hl-ink); color: #fff; font-family: var(--hl-mono); font-weight: 700; font-size: .85rem; padding: .2rem .55rem; border-radius: 6px; }
.hl-card-body { padding: 1.3rem 1.35rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.hl-card-title { font-family: var(--hl-display); font-weight: 800; font-size: 1.38rem; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .7rem; }
.hl-card-q { margin: 0 0 1rem; font-size: 1rem; line-height: 1.55; color: var(--hl-ink-2); font-style: italic; }
.hl-card .hl-wave.is-card { margin-top: auto; height: 26px; color: rgba(31, 63, 191, .34); transition: color .3s; }
.hl-card:hover .hl-wave.is-card { color: var(--hl-kobolt); }
.hl-card.is-page .hl-card-body { padding-top: 1.5rem; }

/* Guider */
.hl-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.hl-guide { position: relative; display: flex; flex-direction: column; gap: .8rem; min-height: 360px; padding: 1.5rem 1.4rem 1.3rem; border-radius: var(--hl-r); background: var(--hl-djup); color: #fff; text-decoration: none; border: 1px solid rgba(201, 211, 245, .25); transition: transform .3s var(--hl-ease), background .3s, border-color .3s; overflow: hidden; }
.hl-guide:hover { transform: translateY(-5px); background: var(--hl-natt); border-color: var(--hl-signal); color: #fff; }
.hl-guide-top { display: flex; justify-content: space-between; gap: .5rem; font-family: var(--hl-mono); font-size: .85rem; font-weight: 600; color: var(--hl-ljus); }
.hl-guide-lab { color: var(--hl-signal); }
.hl-guide-t { font-family: var(--hl-display); font-weight: 800; font-size: 1.75rem; line-height: 1.05; letter-spacing: -.025em; margin-top: .5rem; }
.hl-guide-e { font-size: 1rem; line-height: 1.55; color: var(--hl-ljus); }
.hl-guide .hl-wave.is-guide { margin-top: auto; height: 44px; color: rgba(201, 211, 245, .45); transition: color .3s; }
.hl-guide:hover .hl-wave.is-guide { color: var(--hl-signal); }
.hl-guide-more { font-family: var(--hl-display); font-weight: 700; display: inline-flex; gap: .5rem; align-items: center; }
.hl-guide-more::after { content: ""; width: 1.4em; height: .7em; background: currentColor; -webkit-mask: var(--hl-arrow-mask) center / contain no-repeat; mask: var(--hl-arrow-mask) center / contain no-repeat; transition: transform .25s var(--hl-ease); }
.hl-guide:hover .hl-guide-more::after { transform: translateX(5px); }

/* Om redaktören och frågan */
.hl-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.hl-ask { background: var(--hl-ink); color: #fff; border-radius: calc(var(--hl-r) + 6px); padding: clamp(1.6rem, 4vw, 3rem); position: relative; overflow: hidden; }
.hl-ask .hl-label { color: var(--hl-ljus); }
.hl-ask .hl-sec-title { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1.2rem; }
.hl-ask .hl-sec-title em { color: var(--hl-signal); }
.hl-ask p { margin: 0 0 1rem; }
.hl-ask-note { font-size: .95rem; color: var(--hl-ljus); }
.hl-ask .hl-btn { background: var(--hl-signal); border-color: var(--hl-signal); color: var(--hl-ink); }
.hl-ask .hl-btn:hover { background: #fff; border-color: #fff; }
.hl-ask .hl-btn.is-line { background: transparent; color: #fff; border-color: var(--hl-ljus); }
.hl-ask .hl-btn.is-line:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.hl-ask :where(a, button):focus-visible { outline-color: var(--hl-signal); box-shadow: 0 0 0 7px var(--hl-natt); }
.hl-editor { padding: clamp(.5rem, 2vw, 1.5rem) 0; }
.hl-editor-quote { margin: 0 0 1.5rem; padding: 0; border: 0; }
.hl-editor-quote p { font-family: var(--hl-display); font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.hl-editor-quote p::before { content: ""; display: block; width: 3.2rem; height: 6px; border-radius: 3px; background: var(--hl-signal); margin-bottom: 1.1rem; }
.hl-editor > p { color: var(--hl-ink-2); }

/* Ämnen som toner */
.hl-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--hl-ink); }
.hl-topics li { border-right: 1px solid var(--hl-linje); }
.hl-topics li:last-child { border-right: 0; }
.hl-topics a { display: flex; flex-direction: column; gap: .55rem; height: 100%; padding: 1.3rem 1.2rem 1.5rem; text-decoration: none; color: var(--hl-ink); transition: background .25s; }
.hl-topics a:hover { background: var(--hl-vit); }
.hl-topic-f { font-family: var(--hl-mono); font-weight: 700; font-size: .9rem; color: var(--hl-kobolt); }
.hl-topic-f::after { content: " Hz"; }
.hl-topic-t { font-family: var(--hl-display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; letter-spacing: -.02em; }
.hl-topic-d { font-size: .98rem; line-height: 1.5; color: var(--hl-ink-2); }
.hl-topic-c { margin-top: auto; font-family: var(--hl-mono); font-size: .85rem; font-weight: 600; color: var(--hl-ink-2); }

/* ---------- Artikel ---------- */
.hl-article-head { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); overflow: hidden; isolation: isolate; margin-block: 0 !important; }
.hl-head-wave { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); width: min(56vw, 760px); height: clamp(110px, 16vw, 200px); color: rgba(31, 63, 191, .13); z-index: -1; pointer-events: none; }
.hl-head-in { position: relative; }
.hl-kicker { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.3rem; font-family: var(--hl-mono); font-size: .9rem; font-weight: 700; }
.hl-kicker > * { display: inline-flex; align-items: center; min-height: 32px; padding: .2rem .65rem; border-radius: 8px; text-decoration: none; }
.hl-kicker a:first-child, .hl-kicker span:only-child { background: var(--hl-ink); color: #fff; }
.hl-kicker a:first-child:hover { background: var(--hl-kobolt); color: #fff; }
.hl-kicker > :not(:first-child) { background: var(--hl-vit); color: var(--hl-kobolt); border: 1px solid var(--hl-stal-2); }
.hl-kicker a:not(:first-child):hover { border-color: var(--hl-kobolt); }
.hl-article-title { font-family: var(--hl-display); font-weight: 800; font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; margin: 0; max-width: 20ch; }
.hl-dek { font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--hl-ink-2); max-width: 44rem; margin: 1.3rem 0 0; }
.hl-dek p { margin: 0; }
.hl-byline { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-family: var(--hl-mono); font-size: .88rem; color: var(--hl-ink-2); margin: 1.4rem 0 0; }
.hl-byline-by { color: var(--hl-ink); font-weight: 700; }
.hl-figure { margin-block: 0 clamp(2rem, 4vw, 3.5rem) !important; }
.hl-hero-img { margin: 0; border-radius: calc(var(--hl-r) + 8px); overflow: hidden; aspect-ratio: 21 / 9; }
.hl-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-read { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 46rem); justify-content: center; gap: clamp(2rem, 4vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hl-read.is-page { grid-template-columns: minmax(0, 48rem); }
.hl-rail { position: relative; }
.hl-toc { position: sticky; top: 1.5rem; }
.hl-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--hl-stal-2); }
.hl-toc li a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -2px; border-left: 3px solid transparent; font-size: .95rem; line-height: 1.35; color: var(--hl-ink-2); text-decoration: none; transition: color .2s, border-color .2s; }
.hl-toc li a:hover { color: var(--hl-kobolt); border-color: var(--hl-linje); }
.hl-toc li a.is-current { color: var(--hl-ink); border-color: var(--hl-kobolt); font-weight: 700; }
.hl-read-main { background: var(--hl-vit); border-radius: calc(var(--hl-r) + 6px); padding: clamp(1.5rem, 4vw, 3.4rem); box-shadow: 0 1px 0 var(--hl-stal-2), 0 30px 60px -48px rgba(12, 22, 51, .5); }
.hl-read-main > * { margin-block-start: 0; }
.hl-body { font-size: clamp(1.0625rem, 1.2vw, 1.2rem); line-height: 1.72; }
.hl-body > * { max-width: 41rem; }
.hl-body > * + * { margin-block-start: 1.15em; }
.hl-body p { margin-bottom: 0; }
.hl-body h2 { font-family: var(--hl-display); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -.025em; margin: 2.2em 0 .2em !important; scroll-margin-top: 1.5rem; }
.hl-body h2::before { content: ""; display: block; width: 2.4rem; height: 4px; border-radius: 2px; background: var(--hl-kobolt); margin-bottom: .7rem; }
.hl-body h3 { font-family: var(--hl-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 1.8em 0 .1em !important; line-height: 1.25; }
.hl-body > h2:first-child { margin-top: 0 !important; }
.hl-body a { color: var(--hl-kobolt); text-decoration-color: currentColor; }
.hl-body a:hover { color: var(--hl-djup); background: rgba(31, 63, 191, .08); }
.hl-body ul, .hl-body ol { padding-left: 1.45em; }
.hl-body li + li { margin-top: .45em; }
.hl-body ul > li { list-style: none; position: relative; }
.hl-body ul > li::before { content: ""; position: absolute; left: -1.3em; top: .55em; width: .6em; height: .6em; border: 2.5px solid var(--hl-kobolt); border-radius: 50%; }
.hl-body ol > li::marker { font-family: var(--hl-mono); font-weight: 700; color: var(--hl-kobolt); }
.hl-body strong { font-weight: 700; }

/* Frågan överst i varje svar */
.hl-q { background: var(--hl-stal); border-radius: var(--hl-r); padding: clamp(1.2rem, 3vw, 2rem); margin-bottom: 2rem !important; position: relative; }
.hl-q-lab, .hl-a-lab { font-family: var(--hl-mono); font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: var(--hl-ink-2); margin: 0 0 .8rem !important; display: flex; align-items: center; gap: .55rem; }
.hl-q-lab::before, .hl-a-lab::before { content: "F"; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 6px; background: var(--hl-ink); color: #fff; font-size: .9rem; }
.hl-a-lab::before { content: "S"; background: var(--hl-kobolt); }
.hl-q blockquote { margin: 0; padding: 0; border: 0; font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.hl-q blockquote p { margin: 0; }
.hl-q blockquote p + p { margin-top: .55em; }
.hl-q-note { font-size: .9rem; color: var(--hl-ink-2); margin: 1rem 0 0 !important; line-height: 1.5; }
.hl-a-lab { margin-top: 0 !important; }

/* Rutor i texten */
.hl-fakta { background: var(--hl-stal); border-radius: var(--hl-r); padding: 1.3rem 1.5rem; border-left: 5px solid var(--hl-kobolt); }
.hl-fakta-t { font-family: var(--hl-display); font-weight: 800; font-size: 1.15rem; margin: 0 0 .5rem !important; }
.hl-fakta ul { margin: 0; }
.hl-fakta li { font-size: 1.02rem; }
.hl-tips { background: var(--hl-ink); color: #fff; border-radius: var(--hl-r); padding: 1.3rem 1.5rem; }
.hl-tips .hl-fakta-t { color: var(--hl-signal); }
.hl-tips a { color: #fff; }
.hl-tips ul > li::before { border-color: var(--hl-signal); }
.hl-tips :where(a):focus-visible { outline-color: var(--hl-signal); box-shadow: 0 0 0 7px var(--hl-natt); }
.hl-innehall { background: var(--hl-stal); border-radius: var(--hl-r); padding: 1.2rem 1.5rem; }
.hl-innehall p { font-family: var(--hl-mono); font-weight: 700; font-size: .9rem; margin: 0 0 .4rem; color: var(--hl-ink-2); }
.hl-innehall ol { margin: 0; }

.hl-vart { margin-top: 2.6rem; border: 2px solid var(--hl-ink); border-radius: var(--hl-r); padding: 1.3rem 1.5rem; }
.hl-vart-t { font-family: var(--hl-display); font-weight: 800; font-size: 1.25rem; margin: 0 0 .6rem; }
.hl-vart ul { margin: 0; padding-left: 1.4em; }
.hl-vart li { list-style: none; position: relative; margin: .5em 0 0; font-size: 1rem; line-height: 1.55; }
.hl-vart li::before { content: ""; position: absolute; left: -1.25em; top: .5em; width: .55em; height: .55em; border: 2.5px solid var(--hl-kobolt); border-radius: 50%; }
.hl-check { margin: 1.4rem 0 0; font-size: .92rem; line-height: 1.55; color: var(--hl-ink-2); }
.hl-author { display: flex; gap: 1.2rem; align-items: flex-start; margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid var(--hl-stal-2); }
.hl-author-mark img { width: 56px; height: 56px; display: block; }
.hl-author .hl-label { margin-bottom: .2rem; }
.hl-author-name { font-family: var(--hl-display); font-weight: 800; font-size: 1.4rem; margin: 0 0 .3rem; }
.hl-author-bio { margin: 0; font-size: 1rem; color: var(--hl-ink-2); line-height: 1.55; }
.hl-more { padding-top: clamp(1rem, 3vw, 2rem); }
.hl-guide-page .hl-read { padding-top: clamp(2rem, 4vw, 3rem); }
.hl-article-head.is-guide { background: var(--hl-vit); border-bottom: 1px solid var(--hl-stal-2); }
.hl-article-head.is-guide .hl-head-wave { color: rgba(31, 63, 191, .16); }
.hl-page .hl-read { padding-top: 0; }
.hl-page-body { background: var(--hl-vit); border-radius: calc(var(--hl-r) + 6px); padding: clamp(1.5rem, 4vw, 3.4rem); }

/* Frågebanken */
.hl-bank-nav ul { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hl-bank-nav li::before { display: none; }
.hl-bank-nav li + li { margin: 0; }
.hl-bank-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .9rem; border-radius: 10px; background: var(--hl-stal); color: var(--hl-ink); text-decoration: none; font-family: var(--hl-display); font-weight: 700; font-size: 1rem; }
.hl-bank-nav a:hover { background: var(--hl-kobolt); color: #fff; }
.hl-bank-sec { margin-top: 2.6rem; }
.hl-bank-sec h2 { scroll-margin-top: 1.5rem; }
.hl-bank-desc { color: var(--hl-ink-2); }
.hl-bank-list { list-style: none; padding: 0 !important; margin: 1rem 0; border-top: 1px solid var(--hl-stal-2); }
.hl-bank-list li { margin: 0 !important; border-bottom: 1px solid var(--hl-stal-2); }
.hl-bank-list a { display: grid; grid-template-columns: 3.4rem 1fr; gap: .2rem 1rem; padding: 1rem .4rem; text-decoration: none; color: var(--hl-ink); border-radius: 10px; }
.hl-bank-list a:hover { background: var(--hl-stal); }
.hl-bank-n { grid-row: span 2; font-family: var(--hl-mono); font-weight: 700; font-size: .9rem; color: #fff; background: var(--hl-ink); border-radius: 6px; height: 1.9rem; display: grid; place-items: center; }
.hl-bank-t { font-family: var(--hl-display); font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.hl-bank-q { font-size: 1rem; color: var(--hl-ink-2); font-style: italic; line-height: 1.5; }

/* ---------- Arkiv, sök, 404 ---------- */
.hl-arch-head { max-width: 50rem; }
.hl-arch-title { font-family: var(--hl-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -.035em; margin: 0; }
.hl-arch-desc { font-size: 1.2rem; color: var(--hl-ink-2); margin: 1.2rem 0 0; max-width: 42rem; }
.hl-arch-count { font-family: var(--hl-mono); font-weight: 600; margin: 1rem 0 0; color: var(--hl-ink-2); }
.hl-search-form { margin-top: 1.4rem; max-width: 34rem; }
.hl-search-form .hl-label { margin-bottom: .45rem; }
.hl-search-form div { display: flex; gap: .5rem; }
.hl-search-form input { flex: 1; min-width: 0; min-height: 52px; padding: .6rem 1rem; border-radius: 12px; border: 2px solid var(--hl-ink-2); background: #fff; color: var(--hl-ink); font: inherit; font-size: 1.05rem; }
.hl-search-form input::placeholder { color: #5A6580; opacity: 1; }
.hl-search-form button { min-height: 52px; padding: 0 1.3rem; border-radius: 12px; border: 2px solid var(--hl-kobolt); background: var(--hl-kobolt); color: #fff; font-family: var(--hl-display); font-weight: 700; font-size: 1.02rem; cursor: pointer; }
.hl-search-form button:hover { background: var(--hl-djup); border-color: var(--hl-djup); }
.hl-search-form.is-dark input { background: var(--hl-natt); border-color: var(--hl-ljus); color: #fff; }
.hl-search-form.is-dark input::placeholder { color: #B9C6F0; }
.hl-search-form.is-dark button { background: var(--hl-signal); border-color: var(--hl-signal); color: var(--hl-ink); }
.hl-pages ul { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.hl-pages a, .hl-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .8rem; border-radius: 10px; background: var(--hl-vit); color: var(--hl-ink); text-decoration: none; font-weight: 700; }
.hl-pages .current { background: var(--hl-ink); color: #fff; }
.hl-empty { max-width: 36rem; }
.hl-empty .hl-wave { height: 60px; color: rgba(31, 63, 191, .3); margin-bottom: 1rem; }
.hl-404-in { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: clamp(3rem, 8vw, 7rem); max-width: 52rem; }
.hl-404-title { font-family: var(--hl-display); font-weight: 800; font-size: clamp(3rem, 8vw, 6.4rem); line-height: .98; letter-spacing: -.04em; margin: 0; }
.hl-404-art { margin-top: 3rem; height: 70px; color: rgba(31, 63, 191, .4); }
.hl-404-art .hl-foot-wave { position: static; height: 70px; }

/* ---------- Sidfot ---------- */
.hl-footer { background: var(--hl-natt); color: #fff; position: relative; padding-block: clamp(4rem, 8vw, 6rem) 2rem; margin-block: 0 !important; overflow: hidden; }
.hl-foot-wave { position: absolute; left: 0; right: 0; top: 0; height: 70px; color: rgba(201, 211, 245, .3); transform: translateY(-50%); pointer-events: none; }
.hl-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.hl-footer-brand { display: flex; align-items: center; gap: .7rem; font-family: var(--hl-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; margin: 0 0 1rem; }
.hl-footer-about > p { color: var(--hl-ljus); font-size: 1rem; max-width: 30rem; }
.hl-footer-col ul { list-style: none; margin: 0; padding: 0; }
.hl-footer-col li { margin: 0; }
.hl-footer a { color: #fff; text-decoration-color: rgba(201, 211, 245, .6); }
.hl-footer a:hover { color: var(--hl-signal); text-decoration-color: var(--hl-signal); }
.hl-footer-col a { display: inline-flex; align-items: center; min-height: 40px; font-size: 1rem; }
.hl-footer-col p { margin: .4rem 0 0; }
.hl-footer-nod { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(201, 211, 245, .3); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; font-size: .95rem; color: var(--hl-ljus); }
.hl-footer-nod p { margin: 0; }
.hl-footer-nod strong { color: #fff; }
.hl-footer-word { font-family: var(--hl-display); font-weight: 900; font-size: clamp(3.4rem, 13.6vw, 13rem); line-height: .9; letter-spacing: -.055em; margin: 2.5rem 0 .8rem; color: transparent; -webkit-text-stroke: 1.5px #3B52B4; white-space: nowrap; overflow: hidden; user-select: none; }
.hl-footer-copy { font-family: var(--hl-mono); font-size: .85rem; color: var(--hl-ljus); margin: 0; }

/* Läsförlopp */
.hl-progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; background: var(--hl-kobolt); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 50; pointer-events: none; }

/* ---------- Mobil och mellanbredd ---------- */
@media (max-width: 1100px) {
	.hl-sits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hl-sits li:last-child { grid-column: 1 / -1; }
	.hl-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hl-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hl-topics li { border-bottom: 1px solid var(--hl-linje); }
	.hl-topics li:nth-child(2n) { border-right: 0; }
	.hl-footer-grid { grid-template-columns: 1fr 1fr; }
	.hl-tb { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.hl-hero-in { grid-template-columns: minmax(0, 1fr); }
	.hl-sec-head { grid-template-columns: minmax(0, 1fr); }
	.hl-sec-link { grid-column: 1; }
	.hl-lead { grid-template-columns: minmax(0, 1fr); }
	.hl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hl-about { grid-template-columns: minmax(0, 1fr); }
	.hl-read { grid-template-columns: minmax(0, 1fr); }
	.hl-rail:empty { display: none; }
	.hl-toc { position: static; background: var(--hl-vit); border-radius: var(--hl-r); padding: 1.1rem 1.3rem; }
	.hl-hero-img { aspect-ratio: 16 / 10; }
	.hl-head-wave { width: 90vw; opacity: .8; }
}
@media (max-width: 640px) {
	.hl-sits, .hl-guides, .hl-cards, .hl-topics { grid-template-columns: minmax(0, 1fr); }
	.hl-sits li:last-child { grid-column: auto; }
	.hl-topics li { border-right: 0; }
	.hl-guide { min-height: 0; }
	.hl-footer-grid, .hl-footer-nod { grid-template-columns: minmax(0, 1fr); }
	.hl-read-main, .hl-page-body { padding: 1.4rem 1.1rem; border-radius: var(--hl-r); }
	.hl-read { gap: 1.4rem; }
	.hl-hero-title span { border-radius: 8px; }
	.hl-hero-cta .hl-btn { flex: 1 1 100%; }
	.hl-search-form div { flex-wrap: wrap; }
	.hl-search-form button { flex: 1 1 auto; }
	.hl-tb-fig { padding: .9rem; }
	.hl-tb-status { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.hl-card:hover, .hl-sit:hover, .hl-guide:hover, .hl-btn:hover { transform: none; }
}
@media print {
	.hl-header, .hl-footer, .hl-rail, .hl-more, .hl-progress, .hl-head-wave { display: none !important; }
	.hl-caption, .hl-q blockquote span { background: none; color: #000; }
}

/* Guidernas innehållsförteckning: i marginalen på dator, i texten på mobil. */
@media (min-width: 901px) { .hl-guide-page .hl-innehall { display: none; } }
@media (max-width: 900px) { .hl-guide-page .hl-rail { display: none; } }
@media (max-width: 640px) {
	.hl-ag-lab text { font-size: 30px; }
	.hl-ag-lab .hl-ag-unit { font-size: 24px; }
	.hl-tb-l circle { r: 20px; }
	.hl-tb-l text { font-size: 25px; }
	.hl-tb-cl { font-size: 24px; }
}

.hl-cards .hl-guide.is-arch { min-height: 100%; }
@media (min-width: 901px) { .hl-guide-page .hl-innehall + p { margin-top: 0 !important; } }
@media (max-width: 420px) {
	.hl-header-in { gap: .5rem; }
	.hl-brand { gap: .5rem; min-width: 0; flex: 0 1 auto; }
	.hl-brand-mark { width: 36px; height: 36px; }
	.hl-brand-name { font-size: 19px; }
	.hl-header-tools { gap: .35rem; flex: none; }
	.hl-textsize { min-width: 44px; min-height: 44px; font-size: 15px; }
	.hl-nav .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; }
}
