/*
Theme Name: Pålsteken (sp-sarpen)
Template: twentytwentyfive
Description: Barntema för sarpen.nu. Sajten är ett sjökort: grundvatten som yta, kartuscher, gradskala, djupkurvor och sjökortsmagenta.
Version: 1.0.0
Text Domain: sp-sarpen
*/

/* ---------- Grund ---------- */
:root {
	--ps-vatten: #DCEDF3;
	--ps-grund: #BFDDE8;
	--ps-grund-2: #A6CFDF;
	--ps-djup: #F6FAFB;
	--ps-land: #F1E3A0;
	--ps-ink: #0E1B26;
	--ps-ink-2: #3B4E5C;
	--ps-mag: #A3127A;
	--ps-mag-d: #7A0D5B;
	--ps-mag-l: #F6C9E6;
	--ps-natt: #0B1720;
	--ps-display: Epilogue, 'Helvetica Neue', Arial, sans-serif;
	--ps-text: Piazzolla, Georgia, serif;
	--ps-mono: 'Azeret Mono', ui-monospace, Menlo, monospace;
	--ps-ease: cubic-bezier(.2, .7, .2, 1);
	--ps-gs: repeating-linear-gradient(90deg, var(--ps-ink) 0 48px, var(--ps-djup) 48px 96px);
}
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--ps-vatten); color: var(--ps-ink); font-kerning: normal; font-variant-numeric: oldstyle-nums proportional-nums; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: var(--ps-mag); color: #fff; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, input, summary, [tabindex]):focus-visible { outline: 3px solid var(--ps-mag); outline-offset: 3px; border-radius: 2px; }
.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 { background: var(--ps-ink); color: #fff; clip: auto; clip-path: none; height: auto; width: auto; padding: .9rem 1.2rem; z-index: 100000; top: .5rem; left: .5rem; font-family: var(--ps-display); font-weight: 700; text-decoration: none; }
.wp-site-blocks { padding-top: 0; }
main { margin-block-start: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Gradskalan: sjökortets ram av svarta och vita fält */
.ps-gradskala { height: 12px; background: var(--ps-gs); border-block: 2px solid var(--ps-ink); box-shadow: 0 3px 0 var(--ps-djup), 0 5px 0 var(--ps-ink); margin-bottom: 5px; }
.ps-gradskala.is-fot { margin: 0 0 0; box-shadow: none; border-top-width: 2px; }

/* Etiketter i mono, som påskrifter i ett sjökort */
.ps-label { font-family: var(--ps-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .01em; color: var(--ps-ink-2); margin: 0 0 .9rem; display: flex; align-items: center; gap: .55rem; }
.ps-flare { width: 11px; height: 17px; flex: none; background: var(--ps-mag); clip-path: path('M5.5 17C1 12 0 6 5.5 0C11 6 10 12 5.5 17Z'); transform: rotate(24deg); }

.ps-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .75rem 1.35rem; font-family: var(--ps-display); font-weight: 700; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; color: #fff; background: var(--ps-ink); border: 2px solid var(--ps-ink); position: relative; transition: background .2s, color .2s, transform .25s var(--ps-ease); }
.ps-btn::after { content: ''; width: .9em; height: .9em; background: currentColor; clip-path: polygon(0 40%, 60% 40%, 60% 10%, 100% 50%, 60% 90%, 60% 60%, 0 60%); transition: transform .25s var(--ps-ease); }
.ps-btn:hover { background: var(--ps-mag); border-color: var(--ps-mag); color: #fff; }
.ps-btn:hover::after { transform: translateX(4px); }
.ps-btn.is-linje { background: transparent; color: var(--ps-ink); }
.ps-btn.is-linje:hover { background: var(--ps-ink); color: #fff; }
.ps-btn.is-ljus { background: var(--ps-djup); color: var(--ps-ink); border-color: var(--ps-djup); }
.ps-btn.is-ljus::after { display: none; }
.ps-btn:disabled { opacity: .55; cursor: not-allowed; }
.ps-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }
.ps-pil { font-family: var(--ps-display); font-weight: 700; color: var(--ps-ink); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; border-bottom: 2px solid var(--ps-mag); padding-bottom: 2px; min-height: 28px; }
.ps-pil::after { content: ''; width: .85em; height: .85em; background: var(--ps-mag); clip-path: polygon(0 40%, 60% 40%, 60% 10%, 100% 50%, 60% 90%, 60% 60%, 0 60%); transition: transform .25s var(--ps-ease); }
.ps-pil:hover { color: var(--ps-mag-d); }
.ps-pil:hover::after { transform: translateX(4px); }

/* ---------- Sidhuvud ---------- */
.ps-header { background: var(--ps-djup); padding-block: .9rem; position: relative; z-index: 20; }
.ps-header-in { gap: 1rem; align-items: center; }
.ps-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ps-ink); min-height: 48px; }
.ps-brand-mark { width: 46px; height: 46px; transition: transform .6s var(--ps-ease); }
.ps-brand:hover .ps-brand-mark { transform: rotate(-12deg); }
.ps-brand-txt { display: flex; flex-direction: column; line-height: 1; }
.ps-brand-name { font-family: var(--ps-display); font-weight: 850; font-size: 1.6rem; letter-spacing: -.035em; }
.ps-brand-sub { font-family: var(--ps-mono); font-size: .75rem; color: var(--ps-ink-2); margin-top: .35rem; letter-spacing: 0; }
.ps-nav .wp-block-navigation-item__content { font-family: var(--ps-display); font-weight: 650; color: var(--ps-ink); padding: .65rem .8rem !important; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; position: relative; }
.ps-nav .wp-block-navigation-item__content::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .35rem; height: 3px; background: var(--ps-mag); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ps-ease); }
.ps-nav .wp-block-navigation-item__content:hover::after, .ps-nav [aria-current] ::after, .ps-nav a[aria-current]::after { transform: scaleX(1); }
.ps-nav .ps-nav-guider .wp-block-navigation-item__content { background: var(--ps-ink); color: #fff; margin-left: .4rem; }
.ps-nav .ps-nav-guider .wp-block-navigation-item__content::after { background: var(--ps-mag-l); }
.ps-nav .ps-nav-sok .wp-block-navigation-item__content::before { content: ''; width: 17px; height: 17px; margin-right: .45rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M15.5 15.5L22 22'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M15.5 15.5L22 22'/%3E%3C/svg%3E") center / contain no-repeat; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; color: var(--ps-ink); }
.wp-block-navigation__responsive-container-open svg, .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--ps-vatten) !important; padding: 1.5rem clamp(1rem, 5vw, 2rem) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.6rem; font-weight: 760; letter-spacing: -.02em; padding: .5rem 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .ps-nav-guider .wp-block-navigation-item__content { padding: .5rem 1rem !important; margin: .4rem 0; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { left: 0; right: auto; width: 2.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--ps-gs); border-top: 2px solid var(--ps-ink); }
.wp-block-navigation__responsive-container.is-menu-open { border-bottom: 0; }

/* ---------- Kartusch ---------- */
.ps-kartusch { background: var(--ps-djup); border: 2px solid var(--ps-ink); outline: 1px solid var(--ps-ink); outline-offset: -8px; padding: clamp(1.4rem, 3.5vw, 2.6rem); position: relative; }
.ps-kartusch::before, .ps-kartusch::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--ps-mag); pointer-events: none; }
.ps-kartusch::before { top: -11px; left: -11px; border-right: 0; border-bottom: 0; }
.ps-kartusch::after { bottom: -11px; right: -11px; border-left: 0; border-top: 0; }

/* ---------- Sjökortet ---------- */
.ps-chart { display: block; width: 100%; height: 100%; }
.ps-c-grund2 { fill: var(--ps-grund); }
.ps-c-grund1 { fill: var(--ps-grund-2); }
.ps-c-kurva { fill: none; stroke: #6E95A8; stroke-width: 1.1; }
.ps-c-kurva.is-0 { stroke-dasharray: 2 4; stroke-width: 1.3; }
.ps-c-kurva.is-1 { stroke-dasharray: 9 4 2 4; }
.ps-c-kurva.is-3, .ps-c-kurva.is-4 { stroke: #8FB2C2; }
.ps-c-land { fill: var(--ps-land); }
.ps-c-kust { fill: none; stroke: var(--ps-ink); stroke-width: 1.6; }
.ps-c-skar { fill: var(--ps-land); stroke: var(--ps-ink); stroke-width: 1.2; }
.ps-c-skarkurva { fill: var(--ps-grund-2); stroke: #6E95A8; stroke-width: .7; stroke-dasharray: 1.5 2.5; }
.ps-c-sten { stroke: var(--ps-ink); stroke-width: 1.4; }
.ps-c-dj { font-family: var(--ps-text); font-style: italic; font-size: 15px; fill: #2F4A5A; }
.ps-c-dec { font-size: 10px; }
.ps-c-sek { fill: none; stroke-width: 7; }
.ps-c-sek.is-g { stroke: #1E8A54; }
.ps-c-sek.is-r { stroke: #C8102E; }
.ps-c-sek.is-w { stroke: var(--ps-djup); filter: drop-shadow(0 0 .6px var(--ps-ink)) drop-shadow(0 0 .6px var(--ps-ink)); }
.ps-c-sekgrans { stroke: var(--ps-ink); stroke-width: 1; stroke-dasharray: 6 5; fill: none; }
.ps-c-flare { fill: var(--ps-mag); }
.ps-c-fyrpkt { fill: var(--ps-ink); stroke: var(--ps-djup); stroke-width: 2; }
.ps-c-fyrtxt { font-family: var(--ps-mono); font-size: 13px; fill: var(--ps-mag-d); font-weight: 600; }
.ps-c-kurs { fill: none; stroke: var(--ps-ink); stroke-width: 1.5; stroke-dasharray: 10 7; }
.ps-c-wp { fill: var(--ps-djup); stroke: var(--ps-ink); stroke-width: 1.5; }
.ps-c-ros { fill: none; stroke: var(--ps-mag); stroke-width: 1.1; }
.ps-c-ros .ps-c-nal { fill: var(--ps-mag); stroke: none; }
.ps-chart.is-noimg { aspect-ratio: 3 / 2; height: auto; }

/* ---------- Startsidans hero ---------- */
.ps-hero-wrap { margin-block: 0 !important; padding: 0 !important; }
.ps-hero { position: relative; overflow: hidden; min-height: clamp(560px, 82vh, 780px); display: flex; align-items: center; isolation: isolate; border-bottom: 2px solid var(--ps-ink); }
.ps-hero-kort { position: absolute; inset: 0; z-index: -1; }
.ps-hero-kort .ps-chart { width: 100%; height: 100%; }
.ps-hero-in { width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem); }
.ps-hero-txt { max-width: 640px; }
.ps-hero-title { font-family: var(--ps-display); font-size: clamp(2.8rem, 7.2vw, 6.2rem); font-weight: 850; line-height: .94; letter-spacing: -.045em; margin: 0; }
.ps-hero-title em { font-family: var(--ps-text); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--ps-mag); }
.ps-hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.55; margin: 1.3rem 0 0; max-width: 34em; }
.ps-hero-skala { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin: 1.8rem 0 0; padding-top: .9rem; border-top: 1px solid var(--ps-ink); font-family: var(--ps-mono); font-size: .75rem; color: var(--ps-ink-2); }

/* ---------- Sektioner och band ---------- */
.ps-section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.ps-section.is-tight { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 6rem); }
.ps-band { padding-block: clamp(3.5rem, 8vw, 7rem); margin-block: 0 !important; position: relative; }
.ps-band.is-natt { background: var(--ps-natt); color: #E8F1F5; }
.ps-band.is-natt::before, .ps-band.is-magenta::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--ps-gs); border-bottom: 2px solid var(--ps-ink); opacity: 1; }
.ps-band.is-magenta { background: var(--ps-mag-d); color: #fff; }
.ps-sec-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ps-sec-title { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 820; letter-spacing: -.04em; line-height: 1; margin: 0; }
.ps-sec-title em { font-family: var(--ps-text); font-style: italic; font-weight: 400; letter-spacing: -.015em; color: var(--ps-mag); }
.ps-sec-lede { font-size: 1.15rem; line-height: 1.6; margin: 1.1rem 0 0; color: var(--ps-ink-2); max-width: 40em; }
.ps-sec-link { margin: 1.2rem 0 0; }
.ps-sec-head.is-small .ps-sec-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.ps-sec-head.is-mork .ps-label, .ps-sec-head.is-mork .ps-sec-lede { color: #B9CBD5; }
.ps-sec-head.is-mork .ps-sec-title, .ps-sec-head.is-magenta .ps-sec-title { color: #fff; }
.ps-sec-head.is-mork .ps-sec-title em { color: var(--ps-mag-l); }
.ps-sec-head.is-mork .ps-pil, .ps-sec-head.is-magenta .ps-pil { color: #fff; border-color: var(--ps-mag-l); }
.ps-sec-head.is-mork .ps-pil::after, .ps-sec-head.is-magenta .ps-pil::after { background: var(--ps-mag-l); }
.ps-sec-head.is-magenta .ps-label, .ps-sec-head.is-magenta .ps-sec-lede { color: #FBE3F2; }
.ps-sec-head.is-magenta .ps-sec-title em { color: var(--ps-land); }
.ps-sec-head.is-mork .ps-flare, .ps-sec-head.is-magenta .ps-flare { background: var(--ps-mag-l); }

/* ---------- Kort ---------- */
.ps-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; font-family: var(--ps-mono); font-size: .8125rem; margin: 0 0 .7rem; color: var(--ps-ink-2); }
.ps-meta a { color: var(--ps-ink); text-decoration: none; border-bottom: 1px solid var(--ps-ink-2); min-height: 24px; display: inline-flex; align-items: center; }
.ps-meta a:hover { color: var(--ps-mag); border-color: var(--ps-mag); }
.ps-nr { color: var(--ps-mag-d); font-weight: 600; }
.ps-flagga { display: block; flex: none; }
.ps-flagga.is-mini { width: 24px; height: auto; }
.ps-date { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-family: var(--ps-mono); font-size: .75rem; color: var(--ps-ink-2); margin: 1rem 0 0; }

.ps-lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; background: var(--ps-djup); border: 2px solid var(--ps-ink); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ps-lead-img { display: block; overflow: hidden; border-right: 2px solid var(--ps-ink); }
.ps-lead-img img, .ps-lead-img .ps-chart { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ps-ease); }
.ps-lead:hover .ps-lead-img img { transform: scale(1.035); }
.ps-lead-body { padding: clamp(1.4rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.ps-lead-title { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin: 0; }
.ps-lead-title a, .ps-card-title a { color: var(--ps-ink); text-decoration: none; background-image: linear-gradient(var(--ps-mag), var(--ps-mag)); background-size: 0 3px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ps-ease), color .2s; }
.ps-lead-title a:hover, .ps-card-title a:hover { background-size: 100% 3px; }
.ps-lead-ex { margin: 1rem 0 0; font-size: 1.1rem; line-height: 1.6; }

.ps-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); }
.ps-card { background: var(--ps-djup); border: 2px solid var(--ps-ink); display: flex; flex-direction: column; position: relative; transition: transform .35s var(--ps-ease), box-shadow .35s var(--ps-ease); }
.ps-card:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ps-ink); }
.ps-card:focus-within { box-shadow: 6px 6px 0 var(--ps-mag); }
.ps-card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 2px solid var(--ps-ink); background: var(--ps-grund); }
.ps-card-img img, .ps-card-img .ps-chart { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-card-body { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.ps-card-title { font-size: 1.32rem; font-weight: 780; letter-spacing: -.025em; line-height: 1.12; margin: 0; }
.ps-card-ex { margin: .7rem 0 0; font-size: 1rem; line-height: 1.55; color: var(--ps-ink-2); }
.ps-card .ps-date { margin-top: auto; padding-top: 1rem; }
.ps-card.is-page { border-style: double; border-width: 5px; }

/* ---------- Fyrlistan ---------- */
.ps-fyr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.ps-fyr.is-aktiv { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr); align-items: start; }
.ps-fyr-scen { position: sticky; top: 1.5rem; border: 2px solid #31495A; background: #06111A; }
.ps-fyr-natt { position: relative; height: 300px; overflow: hidden; background: radial-gradient(120% 80% at 50% 100%, #12293A 0%, #06111A 70%); }
.ps-fyr-torn { position: absolute; left: 50%; bottom: 0; width: 200px; height: 260px; transform: translateX(-50%); }
.ps-ft-land { fill: #0B1C27; }
.ps-ft-torn { fill: #C9D7DE; }
.ps-ft-galleri, .ps-ft-tak { fill: #16303F; }
.ps-ft-lykta { fill: #23394A; }
.ps-lampa { position: absolute; left: 50%; bottom: 175px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #2B3D49; z-index: 2; transition: background .06s, box-shadow .06s; }
.ps-sken { position: absolute; left: 50%; bottom: -76px; width: 520px; height: 520px; margin: 0 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 243, 176, .55) 0%, rgba(255, 243, 176, .14) 22%, rgba(255, 243, 176, 0) 55%); opacity: 0; transition: opacity .06s; pointer-events: none; }
.ps-fyr-natt.is-pa .ps-lampa { background: #FFF6C8; box-shadow: 0 0 18px 6px rgba(255, 243, 176, .85); }
.ps-fyr-natt.is-pa .ps-sken { opacity: 1; }
.ps-horisont { position: absolute; left: 0; right: 0; bottom: 46px; height: 1px; background: #24404F; }
.ps-fyr-panel { padding: 1.2rem 1.3rem 1.4rem; border-top: 2px solid #31495A; }
.ps-fyr-nu { font-family: var(--ps-mono); font-size: .9rem; color: #E8F1F5; margin: 0 0 1rem; min-height: 2.8em; }
.ps-fyr-ctrl { margin: 0; }
.ps-fyr-not { font-size: .9rem; color: #B9CBD5; margin: 1rem 0 0; line-height: 1.5; }
.ps-fyr-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #31495A; border: 2px solid #31495A; }
.ps-fyr:not(.is-aktiv) .ps-fyr-lista { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ps-fyr-rad { background: var(--ps-natt); padding: 1.15rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; position: relative; transition: background .25s; }
.ps-fyr-rad.is-vald { background: #102636; box-shadow: inset 4px 0 0 var(--ps-mag-l); }
.ps-fyr-kod { font-family: var(--ps-mono); font-weight: 650; font-size: 1.15rem; color: #FFF3B0; margin: 0; letter-spacing: -.01em; }
.ps-fyr-namn { font-family: var(--ps-display); font-weight: 700; font-size: 1.02rem; color: #fff; margin: 0; }
.ps-fyr-txt { font-size: .95rem; line-height: 1.5; color: #C9D8E0; margin: 0; }
.ps-tl { width: 100%; height: auto; display: block; margin: .2rem 0 .1rem; }
.ps-tl-bg { fill: #1A2E3B; }
.ps-tl-on { fill: #FFF3B0; }
.ps-tl-t line { stroke: #6F8A99; stroke-width: 1; }
.ps-tl-lab text { font-family: var(--ps-mono); font-size: 8.5px; fill: #9DB3C0; }
.ps-fyr-spela { align-self: flex-start; margin-top: auto; min-height: 44px; padding: .55rem 1rem; font-family: var(--ps-display); font-weight: 700; font-size: .95rem; background: transparent; color: #fff; border: 2px solid var(--ps-mag-l); cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; transition: background .2s, color .2s; }
.ps-fyr-spela::before { content: ''; width: 0; height: 0; border-left: 9px solid currentColor; border-block: 6px solid transparent; }
.ps-fyr-spela:hover, .ps-fyr-rad.is-vald .ps-fyr-spela { background: var(--ps-mag-l); color: var(--ps-ink); }
.ps-band.is-natt :focus-visible { outline-color: var(--ps-mag-l); }

/* ---------- Flagghissningen (ämnena) ---------- */
.ps-hissning { list-style: none; margin: 0; padding: 0 0 0 clamp(1.4rem, 3vw, 2.6rem); position: relative; display: grid; gap: 1rem; }
.ps-hissning::before { content: ''; position: absolute; left: 0; top: -1.5rem; bottom: -1rem; width: 3px; background: var(--ps-ink); }
.ps-hissning::after { content: ''; position: absolute; left: -7px; top: -2.2rem; width: 17px; height: 17px; border-radius: 50%; background: var(--ps-ink); }
.ps-hissning li { position: relative; }
.ps-hissning li::before { content: ''; position: absolute; left: calc(-1 * clamp(1.4rem, 3vw, 2.6rem)); top: 38px; width: clamp(1.4rem, 3vw, 2.6rem); height: 2px; background: var(--ps-ink); }
.ps-hissning a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; grid-template-areas: 'f t c' 'f d c'; gap: .25rem 1.6rem; align-items: start; padding: 1.1rem 1.3rem; background: var(--ps-djup); border: 2px solid var(--ps-ink); color: var(--ps-ink); text-decoration: none; transition: transform .35s var(--ps-ease), box-shadow .35s var(--ps-ease); }
.ps-hissning a:hover { transform: translateX(8px); box-shadow: -6px 6px 0 var(--ps-mag); }
.ps-hiss-flagga { grid-area: f; display: flex; flex-direction: column; gap: .4rem; }
.ps-hiss-flagga .ps-flagga { transform-origin: left center; transition: transform .5s var(--ps-ease); }
.ps-hissning a:hover .ps-flagga { transform: skewY(-4deg) scaleX(.96); }
.ps-hiss-bokstav { font-family: var(--ps-mono); font-size: .75rem; color: var(--ps-ink-2); }
.ps-hiss-t { grid-area: t; font-family: var(--ps-display); font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: -.03em; line-height: 1.05; }
.ps-hiss-d { grid-area: d; font-size: 1.02rem; line-height: 1.5; color: var(--ps-ink-2); max-width: 44em; }
.ps-hiss-c { grid-area: c; font-family: var(--ps-mono); font-size: .8125rem; color: var(--ps-mag-d); font-weight: 600; white-space: nowrap; }

/* ---------- Kortbladen (guiderna) ---------- */
.ps-blad-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.ps-blad-grid.is-sida { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ps-blad { display: flex; flex-direction: column; background: var(--ps-djup); color: var(--ps-ink); text-decoration: none; border: 2px solid var(--ps-ink); outline: 1px solid var(--ps-ink); outline-offset: -7px; padding: 0 0 1.4rem; position: relative; transition: transform .35s var(--ps-ease), box-shadow .35s var(--ps-ease); }
.ps-blad:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 10px 0 var(--ps-ink); }
.ps-blad-kort { display: block; height: 130px; overflow: hidden; border-bottom: 2px solid var(--ps-ink); }
.ps-blad-kort .ps-chart { height: 100%; }
.ps-blad-top { display: flex; justify-content: space-between; gap: .5rem; padding: 1rem 1.3rem 0; font-family: var(--ps-mono); font-size: .75rem; }
.ps-blad-n { color: var(--ps-mag-d); font-weight: 650; }
.ps-blad-lab { color: var(--ps-ink-2); }
.ps-blad-t { font-family: var(--ps-display); font-weight: 820; font-size: 1.5rem; letter-spacing: -.035em; line-height: 1.04; padding: .55rem 1.3rem 0; }
.ps-blad-e { font-size: .98rem; line-height: 1.5; color: var(--ps-ink-2); padding: .65rem 1.3rem 0; }
.ps-blad-mer { margin-top: auto; padding: 1.1rem 1.3rem 0; font-family: var(--ps-display); font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; }
.ps-blad-mer::after { content: ''; width: .85em; height: .85em; background: var(--ps-mag); clip-path: polygon(0 40%, 60% 40%, 60% 10%, 100% 50%, 60% 90%, 60% 60%, 0 60%); transition: transform .25s var(--ps-ease); }
.ps-blad:hover .ps-blad-mer::after { transform: translateX(5px); }
.ps-band.is-magenta .ps-blad { border-color: var(--ps-natt); }
.ps-band.is-magenta .ps-blad:hover { box-shadow: 0 10px 0 var(--ps-natt); }
.ps-band.is-magenta :focus-visible { outline-color: #fff; }
.ps-blad.is-arch { padding-top: .4rem; border-style: double; border-width: 5px; outline: 0; }

/* ---------- Om-sektionen ---------- */
.ps-om { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ps-om-txt > p:not(.ps-label):not(.ps-cta) { font-size: 1.12rem; max-width: 36em; }
.ps-citat { margin: 1.6rem 0; padding: 0 0 0 1.4rem; border-left: 4px solid var(--ps-mag); }
.ps-citat p { font-family: var(--ps-text); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.3; margin: 0; }
.ps-om-ruta { background: var(--ps-djup); border: 2px solid var(--ps-ink); padding: 1.6rem; }
.ps-regler { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ps-regler li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .4rem; font-size: 1.02rem; line-height: 1.5; padding-top: 1rem; border-top: 1px dashed var(--ps-ink-2); }
.ps-regler li:first-child { border-top: 0; padding-top: 0; }
.ps-regler span { font-family: var(--ps-mono); color: var(--ps-mag-d); font-weight: 650; }

/* ---------- Artikel och sidor ---------- */
.ps-article-head { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 2px solid var(--ps-ink); margin-block: 0 !important; }
.ps-head-kort { position: absolute; inset: 0; z-index: -1; max-width: none !important; margin: 0 !important; }
.ps-head-kort .ps-chart { width: 100%; height: 100%; }
.ps-head-in { position: relative; }
.ps-article-head .ps-kartusch { max-width: 820px; }
.ps-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-family: var(--ps-mono); font-size: .8125rem; color: var(--ps-ink-2); margin: 0 0 1rem; }
.ps-kicker a { color: var(--ps-ink); text-decoration: none; border-bottom: 1px solid var(--ps-mag); min-height: 24px; display: inline-flex; align-items: center; }
.ps-kicker a:hover { color: var(--ps-mag); }
.ps-kicker span:first-of-type { color: var(--ps-mag-d); font-weight: 650; }
.ps-article-title { font-size: clamp(2.1rem, 5vw, 4.2rem) !important; font-weight: 850 !important; letter-spacing: -.045em !important; line-height: .98 !important; margin: 0 !important; text-wrap: balance; }
.ps-dek { margin: 1.2rem 0 0 !important; }
.ps-dek p { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.5; margin: 0; max-width: 38em; font-style: italic; }
.ps-byline { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-family: var(--ps-mono); font-size: .8rem; color: var(--ps-ink-2); margin: 1.4rem 0 0; padding-top: .9rem; border-top: 1px solid var(--ps-ink); }
.ps-byline-by { color: var(--ps-ink); font-weight: 600; }

.ps-figure { margin-top: clamp(2rem, 4vw, 3rem) !important; }
.ps-hero-img { margin: 0; border: 2px solid var(--ps-ink); position: relative; }
.ps-hero-img img { display: block; width: 100%; max-height: 640px; object-fit: cover; }
.ps-hero-img::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--ps-gs); border-top: 2px solid var(--ps-ink); }

.ps-read { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 680px); gap: clamp(2rem, 5vw, 5.5rem); justify-content: center; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem); }
.ps-read.is-page { grid-template-columns: minmax(0, 720px); }
.ps-rail { position: relative; }
.ps-rutt { position: sticky; top: 1.5rem; }
.ps-rutt ol { list-style: none; margin: 0; padding: 0; position: relative; }
.ps-rutt ol::before { content: ''; position: absolute; left: 13px; top: 14px; bottom: 14px; border-left: 2px dashed var(--ps-ink); }
.ps-rutt li { position: relative; }
.ps-rutt a { display: grid; grid-template-columns: 28px 1fr; gap: .75rem; align-items: start; padding: .4rem 0; min-height: 44px; color: var(--ps-ink); text-decoration: none; font-family: var(--ps-display); font-weight: 600; font-size: .95rem; line-height: 1.25; }
.ps-wp { width: 28px; height: 28px; border-radius: 50%; background: var(--ps-djup); border: 2px solid var(--ps-ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--ps-mono); font-size: .66rem; font-weight: 650; position: relative; z-index: 1; transition: background .25s, color .25s, transform .25s var(--ps-ease); }
.ps-rutt a:hover .ps-wp, .ps-rutt a.is-current .ps-wp { background: var(--ps-mag); color: #fff; border-color: var(--ps-mag); transform: scale(1.12); }
.ps-rutt a.is-current { color: var(--ps-mag-d); }

.ps-body { font-size: clamp(1.09rem, 1.3vw, 1.22rem); line-height: 1.72; counter-reset: wp; }
.ps-body > * { margin-block: 0 1.25em; }
.ps-body > p:first-child::first-letter { font-family: var(--ps-display); font-weight: 850; float: left; font-size: 3.6em; line-height: .8; margin: .08em .1em 0 0; color: var(--ps-mag); }
.ps-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 2.2em 0 .7em; counter-increment: wp; display: flex; align-items: baseline; gap: .8rem; scroll-margin-top: 1.5rem; }
.ps-body h2::before { content: counter(wp, decimal-leading-zero); font-family: var(--ps-mono); font-size: .8rem; font-weight: 650; letter-spacing: 0; color: var(--ps-djup); background: var(--ps-ink); padding: .3rem .45rem; transform: translateY(-.35em); flex: none; }
.ps-body h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 780; letter-spacing: -.025em; margin: 1.8em 0 .5em; }
.ps-body ul { list-style: none; padding-left: 0; }
.ps-body ul > li { position: relative; padding-left: 1.7rem; margin-bottom: .55em; }
.ps-body ul > li::before { content: ''; position: absolute; left: .25rem; top: .45em; width: 10px; height: 15px; background: var(--ps-mag); clip-path: path('M5 15C1 10.5 0 5.5 5 0C10 5.5 9 10.5 5 15Z'); transform: rotate(24deg); }
.ps-body ol:not(.ps-flaggor) { list-style: none; padding-left: 0; counter-reset: steg; }
.ps-body ol:not(.ps-flaggor) > li { counter-increment: steg; position: relative; padding-left: 3rem; margin-bottom: .8em; min-height: 2rem; }
.ps-body ol:not(.ps-flaggor) > li::before { content: counter(steg); position: absolute; left: 0; top: .05em; width: 2rem; height: 2rem; border: 2px solid var(--ps-ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--ps-mono); font-size: .8rem; font-weight: 650; background: var(--ps-djup); }
.ps-body strong { font-weight: 700; }
.ps-body a { color: var(--ps-mag-d); text-decoration-color: color-mix(in srgb, var(--ps-mag) 55%, transparent); }
.ps-body a:hover { color: var(--ps-mag); text-decoration-color: var(--ps-mag); }
.ps-body blockquote { margin: 1.8em 0; padding-left: 1.3rem; border-left: 4px solid var(--ps-mag); font-style: italic; }

.ps-innehall { background: var(--ps-djup); border: 2px solid var(--ps-ink); padding: 1.2rem 1.4rem; margin-bottom: 2rem !important; }
.ps-innehall p { font-family: var(--ps-mono); font-size: .8125rem; color: var(--ps-ink-2); margin: 0 0 .6rem; }
.ps-body .ps-innehall ol { counter-reset: toc; margin: 0; }
.ps-body .ps-innehall ol > li { counter-increment: toc; padding-left: 2.6rem; margin: 0; min-height: 0; }
.ps-body .ps-innehall ol > li::before { content: counter(toc, decimal-leading-zero); width: auto; height: auto; border: 0; background: none; font-size: .75rem; top: .45em; color: var(--ps-mag-d); }
.ps-innehall a { display: inline-block; padding: .25rem 0; font-family: var(--ps-display); font-weight: 650; font-size: 1rem; color: var(--ps-ink) !important; text-decoration: none; }
.ps-innehall a:hover { color: var(--ps-mag) !important; }

.ps-fakta { background: var(--ps-djup); border: 2px solid var(--ps-ink); outline: 1px solid var(--ps-ink); outline-offset: -7px; padding: 1.4rem 1.6rem; margin: 2em 0 !important; position: relative; }
.ps-fakta-t { font-family: var(--ps-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; margin: 0 0 .7rem; }
.ps-fakta ul { margin: 0; font-size: 1.02rem; }

.ps-ord { display: grid; grid-template-columns: minmax(150px, 13rem) 1fr; gap: 0; border-top: 2px solid var(--ps-ink); }
.ps-ord dt, .ps-ord dd { padding: .8rem 0; border-bottom: 1px dashed var(--ps-ink-2); margin: 0; }
.ps-ord dt { font-family: var(--ps-display); font-weight: 760; font-size: 1.02rem; letter-spacing: -.01em; padding-right: 1rem; }
.ps-ord dd { font-size: 1.04rem; line-height: 1.55; }

.ps-knopar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.6em 0 2em !important; }
.ps-knop { background: var(--ps-djup); border: 2px solid var(--ps-ink); padding: 1.2rem 1.3rem 1.3rem; position: relative; font-size: 1rem; line-height: 1.55; }
.ps-knop-nr { position: absolute; top: .9rem; right: 1rem; margin: 0; font-family: var(--ps-mono); font-weight: 650; font-size: .8rem; color: var(--ps-mag-d); }
.ps-body .ps-knop h3 { margin: 0 2.5rem 0 0; font-size: 1.3rem; }
.ps-knop-fam { font-family: var(--ps-mono); font-size: .75rem; color: var(--ps-ink-2); margin: .25rem 0 .7rem; }
.ps-knop p { margin: 0 0 .6rem; }
.ps-knop-tank { margin: 0 !important; padding-top: .6rem; border-top: 1px dashed var(--ps-ink-2); font-size: .95rem; }

.ps-ansvar { margin: 3rem 0 0; background: var(--ps-land); border: 2px solid var(--ps-ink); padding: 1.3rem 1.5rem; font-size: 1rem; line-height: 1.55; }
.ps-ansvar p { margin: 0; }
.ps-ansvar-t { font-family: var(--ps-display); font-weight: 800; font-size: 1.05rem; margin-bottom: .4rem !important; }
.ps-ansvar a { color: var(--ps-ink); text-decoration-color: var(--ps-mag); text-decoration-thickness: 2px; }
.ps-author { display: grid; grid-template-columns: 60px 1fr; gap: 1.2rem; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 2px solid var(--ps-ink); }
.ps-author .ps-label { margin-bottom: .3rem; }
.ps-author-name { font-family: var(--ps-display); font-weight: 800; font-size: 1.3rem; margin: 0; letter-spacing: -.02em; }
.ps-author-bio { font-size: 1rem; line-height: 1.55; margin: .4rem 0 0; color: var(--ps-ink-2); }
.ps-author-bio a { color: var(--ps-mag-d); }
.ps-more { padding-top: clamp(2rem, 4vw, 3rem); }
.ps-friskrivning { background: var(--ps-djup); border-left: 4px solid var(--ps-mag); padding: 1rem 1.2rem; }

/* Signalflaggorna */
.ps-flaggor { list-style: none !important; padding: 0 !important; margin: 1.8em 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; background: var(--ps-djup); border: 2px solid var(--ps-ink); overflow: hidden; }
.ps-fl { box-shadow: 1px 1px 0 var(--ps-ink); background: var(--ps-djup); padding: 1rem .95rem 1.05rem; margin: 0 !important; display: flex; flex-direction: column; gap: .45rem; }
.ps-fl .ps-flagga { width: 84px; height: auto; transform-origin: left center; transition: transform .45s var(--ps-ease); }
.ps-fl:hover .ps-flagga { transform: skewY(-5deg) scaleX(.95); }
.ps-fl p { margin: 0; }
.ps-fl-l { display: flex; align-items: baseline; gap: .45rem; }
.ps-fl-b { font-family: var(--ps-display); font-weight: 850; font-size: 1.35rem; letter-spacing: -.02em; }
.ps-fl-n { font-family: var(--ps-mono); font-size: .75rem; color: var(--ps-ink-2); }
.ps-fl-t { font-size: .92rem; line-height: 1.4; }

/* Kardinalmärkena */
.ps-kard { margin: 2em 0 !important; background: var(--ps-djup); border: 2px solid var(--ps-ink); padding: 1rem 1rem .5rem; }
.ps-kard-svg { width: 100%; height: auto; display: block; }
.ps-kard-ringar circle { fill: none; stroke: #8FB2C2; stroke-width: 1; stroke-dasharray: 3 5; }
.ps-kard-fara path:first-child { fill: var(--ps-land); stroke: var(--ps-ink); stroke-width: 1.5; }
.ps-kard-x { stroke: var(--ps-ink); stroke-width: 2; fill: none; }
.ps-kard-fara text { font-family: var(--ps-text); font-style: italic; font-size: 17px; fill: var(--ps-ink); }
.ps-kard-lab text { font-family: var(--ps-display); font-weight: 800; font-size: 21px; fill: var(--ps-ink); }
.ps-kard-lab .ps-kard-q { font-family: var(--ps-mono); font-weight: 500; font-size: 13px; fill: var(--ps-mag-d); }
.ps-kard-ros path { fill: var(--ps-mag); }
.ps-kard-ros text { font-family: var(--ps-mono); font-size: 14px; fill: var(--ps-mag-d); font-weight: 650; }
.ps-kard figcaption, .ps-riggar + p { font-size: .95rem; }
.ps-kard figcaption { font-family: var(--ps-text); font-style: italic; color: var(--ps-ink-2); line-height: 1.5; padding: .6rem .4rem .6rem; border-top: 1px dashed var(--ps-ink-2); margin-top: .5rem; }

/* Riggtyperna */
.ps-riggar { list-style: none !important; padding: 0 !important; margin: 1.8em 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; background: var(--ps-djup); border: 2px solid var(--ps-ink); overflow: hidden; }
.ps-body .ps-riggar > li { box-shadow: 1px 1px 0 var(--ps-ink); background: var(--ps-djup); padding: .8rem .9rem 1rem; margin: 0; }
.ps-body .ps-riggar > li::before { display: none; }
.ps-rigg svg { width: 100%; height: auto; display: block; }
.ps-rg-skrov { fill: var(--ps-ink); }
.ps-rg-mast, .ps-rg-ra { stroke: var(--ps-ink); stroke-width: 2.4; stroke-linecap: round; }
.ps-rg-ra { stroke-width: 1.8; }
.ps-rg-segel { fill: var(--ps-djup); stroke: var(--ps-ink); stroke-width: 1.4; stroke-linejoin: round; }
.ps-rg-segel.is-for { fill: var(--ps-mag-l); }
.ps-rg-vatten { fill: none; stroke: #6E95A8; stroke-width: 1.4; }
.ps-rigg-n { font-family: var(--ps-display); font-weight: 800; font-size: 1.1rem; margin: .4rem 0 0; letter-spacing: -.02em; }
.ps-rigg-b { font-size: .9rem; line-height: 1.4; color: var(--ps-ink-2); margin: .2rem 0 0; }
.ps-rigg:hover .ps-rg-segel { fill: #fff; }

/* ---------- Arkiv, sök, 404 ---------- */
.ps-kartusch.is-arch { max-width: 980px; }
.ps-arch-head { display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; }
.ps-arch-flagga .ps-flagga { width: clamp(90px, 14vw, 150px); height: auto; }
.ps-arch-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 850; letter-spacing: -.045em; line-height: 1; margin: 0; }
.ps-arch-desc { font-size: 1.15rem; line-height: 1.55; margin: 1rem 0 0; max-width: 38em; }
.ps-arch-count { font-family: var(--ps-mono); font-size: .875rem; margin: 1rem 0 0; }
.ps-cards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ps-search-form { max-width: 560px; margin-top: 1.4rem; }
.ps-search-form .ps-label { margin-bottom: .5rem; }
.ps-search-form div { display: flex; border: 2px solid var(--ps-ink); background: #fff; }
.ps-search-form input { flex: 1; min-width: 0; border: 0; padding: .8rem 1rem; font: inherit; font-size: 1.05rem; background: transparent; color: var(--ps-ink); min-height: 48px; }
.ps-search-form input::placeholder { color: #5A6C78; }
.ps-search-form input:focus-visible { outline: 3px solid var(--ps-mag); outline-offset: 2px; }
.ps-search-form button { border: 0; background: var(--ps-ink); color: #fff; font-family: var(--ps-display); font-weight: 700; font-size: 1rem; padding: 0 1.3rem; min-height: 48px; cursor: pointer; transition: background .2s; }
.ps-search-form button:hover { background: var(--ps-mag); }
.ps-pages { margin-top: 2.5rem; }
.ps-pages ul { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.ps-pages a, .ps-pages span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 .8rem; border: 2px solid var(--ps-ink); font-family: var(--ps-mono); color: var(--ps-ink); text-decoration: none; background: var(--ps-djup); }
.ps-pages .current { background: var(--ps-ink); color: #fff; }
.ps-empty { background: var(--ps-djup); border: 2px solid var(--ps-ink); padding: 2rem; display: flex; gap: 2rem; align-items: center; font-size: 1.1rem; }
.ps-empty-dj { font-family: var(--ps-text); font-style: italic; font-size: 4rem; margin: 0; color: var(--ps-mag); line-height: 1; }
.ps-empty-dj span, .ps-404-dj span { font-size: .5em; vertical-align: -.3em; }
.ps-404 { position: relative; overflow: hidden; isolation: isolate; min-height: 70vh; display: flex; align-items: center; }
.ps-404 > .ps-head-kort { position: absolute; inset: 0; z-index: -1; }
.ps-404-in { position: relative; display: grid; grid-template-columns: minmax(0, 640px) 1fr; gap: 2rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); width: 100%; }
.ps-404-title { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 850; letter-spacing: -.045em; line-height: .98; margin: 0; }
.ps-404-title em { font-family: var(--ps-text); font-weight: 400; color: var(--ps-mag); }
.ps-404-dj { font-family: var(--ps-text); font-style: italic; font-size: clamp(6rem, 18vw, 15rem); color: var(--ps-mag); margin: 0; line-height: 1; text-align: center; text-shadow: 0 0 0 var(--ps-djup); }

/* ---------- Sidfot ---------- */
.ps-footer { background: var(--ps-natt); color: #D6E3EA; padding: 0 0 2rem; position: relative; overflow: hidden; margin-block-start: 0 !important; }
.ps-footer > .ps-gradskala { position: absolute; top: 0; left: 0; right: 0; max-width: none !important; margin: 0 !important; }
.ps-footer { padding-top: 14px; }
.wp-site-blocks { padding-bottom: 0 !important; }
footer.wp-block-template-part { margin-block: 0 !important; }
.ps-footer-in { position: relative; padding-top: clamp(3rem, 6vw, 5rem); }
.ps-footer-ros { position: absolute; right: -120px; top: 20px; width: 520px; height: 520px; pointer-events: none; opacity: .5; }
.ps-ros { width: 100%; height: 100%; }
.ps-ros circle, .ps-ros path { fill: none; stroke: #4B2B45; stroke-width: 1.3; }
.ps-ros .ps-ros-stjarna { fill: rgba(163, 18, 122, .14); stroke: #6B2A5C; }
.ps-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); position: relative; }
.ps-footer-brand { display: flex; align-items: center; gap: .7rem; font-family: var(--ps-display); font-weight: 850; font-size: 1.6rem; letter-spacing: -.035em; color: #fff; margin: 0 0 .8rem; }
.ps-footer-about > p:not(.ps-footer-brand) { font-size: 1rem; line-height: 1.6; max-width: 30em; }
.ps-footer .ps-label { color: #A9BFCB; }
.ps-footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.ps-footer-col a, .ps-footer-nod a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; font-family: var(--ps-display); font-weight: 600; font-size: 1rem; }
.ps-footer-col a:hover { color: var(--ps-mag-l); text-decoration: underline; }
.ps-footer :focus-visible { outline-color: var(--ps-mag-l); }
.ps-search-form.is-mork div { border-color: #5E7A8B; background: #0E2230; }
.ps-search-form.is-mork input { color: #fff; }
.ps-search-form.is-mork input::placeholder { color: #A9BFCB; }
.ps-search-form.is-mork button { background: var(--ps-mag-l); color: var(--ps-ink); }
.ps-search-form.is-mork button:hover { background: #fff; }
.ps-footer-nod { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid #2A4152; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; font-size: .95rem; line-height: 1.6; color: #C2D3DC; }
.ps-footer-nod p { margin: 0; }
.ps-footer-nod strong { color: #fff; }
.ps-footer-word { font-family: var(--ps-display); font-weight: 900; font-size: clamp(4rem, 15vw, 14rem); letter-spacing: -.06em; line-height: .85; margin: clamp(2rem, 4vw, 3rem) 0 0; color: transparent; -webkit-text-stroke: 1.5px #355063; position: relative; white-space: nowrap; }
.ps-footer-copy { font-family: var(--ps-mono); font-size: .75rem; color: #A9BFCB; margin: 1rem 0 0; position: relative; }

/* ---------- Rörelse: slutläget är standard, inglidning bara med skript ---------- */
.ps-anim .ps-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ps-ease), transform .7s var(--ps-ease); transition-delay: calc(var(--i, 0) * 70ms); }
.ps-anim .ps-reveal.is-in { opacity: 1; transform: none; }
.ps-anim .ps-hero-txt > * { animation: ps-upp .9s var(--ps-ease) both; }
.ps-anim .ps-hero-txt > :nth-child(2) { animation-delay: .08s; }
.ps-anim .ps-hero-txt > :nth-child(3) { animation-delay: .16s; }
.ps-anim .ps-hero-txt > :nth-child(4) { animation-delay: .24s; }
.ps-anim .ps-hero-txt > :nth-child(5) { animation-delay: .32s; }
@keyframes ps-upp { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.ps-anim .ps-reveal { opacity: 1; transform: none; }
}

/* ---------- Brytpunkter ---------- */
@media (max-width: 1100px) {
	.ps-read { grid-template-columns: minmax(0, 680px); }
	.ps-rail { display: none; }
	.ps-blad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ps-cards, .ps-cards.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ps-fyr.is-aktiv { grid-template-columns: minmax(0, 1fr); }
	.ps-fyr-scen { position: relative; top: 0; display: grid; grid-template-columns: 1fr 1fr; }
	.ps-fyr-panel { border-top: 0; border-left: 2px solid #31495A; }
	.ps-fyr:not(.is-aktiv) .ps-fyr-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ps-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1101px) {
	.ps-guide-page .ps-body > .ps-innehall { display: none; }
}
@media (max-width: 860px) {
	.ps-lead { grid-template-columns: 1fr; }
	.ps-lead-img { border-right: 0; border-bottom: 2px solid var(--ps-ink); aspect-ratio: 3 / 2; }
	.ps-om { grid-template-columns: 1fr; }
	.ps-knopar { grid-template-columns: 1fr; }
	.ps-404-in { grid-template-columns: 1fr; }
	.ps-404-dj { text-align: left; }
}
@media (max-width: 700px) {
	.ps-header { padding-block: .6rem; }
	.ps-brand-mark { width: 40px; height: 40px; }
	.ps-brand-name { font-size: 1.4rem; }
	.ps-hero { min-height: 0; align-items: flex-end; }
	.ps-hero-in { padding-top: 12rem; padding-bottom: 1.5rem; }
	.ps-cards, .ps-cards.is-3, .ps-blad-grid, .ps-blad-grid.is-sida { grid-template-columns: 1fr; }
	.ps-fyr-lista, .ps-fyr:not(.is-aktiv) .ps-fyr-lista { grid-template-columns: 1fr; }
	.ps-fyr-scen { grid-template-columns: 1fr; }
	.ps-fyr-panel { border-left: 0; border-top: 2px solid #31495A; }
	.ps-fyr-natt { height: 240px; }
	.ps-hissning a { grid-template-columns: 1fr; grid-template-areas: 'f' 't' 'd' 'c'; }
	.ps-hissning li::before { top: 34px; }
	.ps-ord { grid-template-columns: 1fr; }
	.ps-ord dt { border-bottom: 0; padding-bottom: 0; }
	.ps-ord dd { padding-top: .2rem; }
	.ps-arch-head { flex-direction: column; align-items: flex-start; }
	.ps-footer-grid, .ps-footer-nod { grid-template-columns: 1fr; }
	.ps-footer-ros { width: 340px; height: 340px; right: -140px; }
	.ps-empty { flex-direction: column; align-items: flex-start; }
	.ps-kartusch::before, .ps-kartusch::after { display: none; }
	.ps-body h2 { flex-direction: column; gap: .5rem; }
	.ps-body h2::before { transform: none; }
}
.ps-body a.ps-blad, .ps-body a.ps-blad:hover { color: var(--ps-ink); text-decoration: none; }
.ps-read.is-page .ps-blad-grid.is-sida { margin-top: 2rem; }
