/*
Theme Name: The Edge Gryning
Theme URI: https://theedge.nu/
Description: Gryningen som formspråk: horisontlinjen där mörker möter ljus, gryningsgradient och fem koncentriska rum för reflektion. Barntema till Twenty Twenty-Five.
Author: The Edge
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: te-gryning
*/

/* ---------- Grund ---------- */
:root {
	--natt: #1C202B; --sky: #2B3140; --sky-2: #373E51; --skiffer: #4A5268;
	--dimma: #E7EAF0; --dimma-2: #D5DAE4; --ljus: #F5F6F9;
	--ink: #1F2431; --ink-2: #4B5368; --on-dark: #E7EAF0; --on-dark-2: #BAC1CE;
	--rodnad: #F2B5A0; --rodnad-l: #F8D3C4; --ljung: #B9A9DA; --plommon: #5B3A5E;
	--disp: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
	--text: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--g: clamp(1rem, 4vw, 3rem);
	--max: 1320px;
	--ease: cubic-bezier(.22, .8, .24, 1);
	--focus: var(--plommon);
}
html { scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; }
body { background: var(--dimma); color: var(--ink); margin: 0; font-kerning: normal; text-rendering: optimizeLegibility; overflow-x: clip; -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding: 0; }
:where(.wp-site-blocks) > *, .te-home > *, .te-single > *, .te-archive > *, .te-page > *, .te-404 > *, .te-article > * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.te-header, .te-hero, .te-band, .te-footer, .te-art-head, .te-arch-head, .te-page-head, .te-rum, .te-404-head { --focus: var(--rodnad); }
.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; }
.te-wide { max-width: var(--max); margin-inline: auto; padding-inline: var(--g); box-sizing: content-box; }
.te-label { font: 600 .875rem/1.3 var(--text); margin: 0 0 .9rem; color: var(--plommon); display: flex; align-items: center; gap: .6rem; }
.te-label::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; flex: none; }
::selection { background: var(--rodnad); color: var(--sky); }
em { font-style: italic; }

/* Hopplänk */
.te-skip { position: absolute; left: 1rem; top: .6rem; z-index: 200; background: var(--rodnad); color: var(--sky); font: 700 1rem/1 var(--text); padding: .95rem 1.2rem; border-radius: 999px; transform: translateY(-180%); transition: transform .15s; text-decoration: none; }
.te-skip:focus, .te-skip:focus-visible { transform: none; outline-color: var(--ljus); }

/* Ringsymbolen */
.te-glyph { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; margin-right: .45em; overflow: visible; }
.te-glyph circle { stroke: currentColor; stroke-width: 1.2; }
.te-glyph .is-off { opacity: .32; }
.te-glyph .is-on { stroke: currentColor; stroke-width: 2.4; opacity: 1; }
.te-glyph .is-core { fill: currentColor; stroke: none; opacity: .32; }
.te-glyph circle:last-child.is-on { fill: currentColor; }
.te-glyph.is-big { width: 2.6rem; height: 2.6rem; margin: 0; }

.te-tag { display: inline-flex; align-items: center; font: 600 .875rem/1.2 var(--text); color: inherit; text-decoration: none; }
a.te-tag:hover { text-decoration: underline; }

/* Knappar och pillänkar */
.te-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; background: var(--rodnad); color: var(--sky); font: 650 1rem/1 var(--text); text-decoration: none; transition: background .25s, transform .25s var(--ease); }
.te-btn:hover { background: var(--rodnad-l); transform: translateY(-2px); }
.te-more { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font: 600 1rem/1.2 var(--text); color: var(--plommon); text-decoration: none; }
.te-more::after { content: "→"; transition: transform .3s var(--ease); }
.te-more:hover { text-decoration: underline; }
.te-more:hover::after { transform: translateX(5px); }
.te-hero .te-more, .te-band .te-more, .te-footer .te-more, .te-404-head .te-more { color: var(--on-dark); }

/* ---------- Sidhuvud ---------- */
.te-header { background: var(--sky); color: var(--on-dark); position: relative; z-index: 50; }
.te-header-in { max-width: var(--max); margin-inline: auto; padding: .85rem var(--g); display: flex; align-items: center; gap: 2rem; justify-content: space-between; }
.te-brand { display: flex; align-items: center; gap: .8rem; color: var(--ljus); text-decoration: none; min-height: 48px; }
.te-brand-mark { width: 42px; height: 42px; transition: transform .5s var(--ease); }
.te-brand:hover .te-brand-mark { transform: translateY(-2px) rotate(-4deg); }
.te-brand-text { display: flex; flex-direction: column; line-height: 1; }
.te-brand-name { font: 400 1.75rem/1 var(--disp); letter-spacing: .005em; }
.te-brand-sub { font: 500 .8125rem/1.2 var(--text); color: var(--on-dark-2); margin-top: .3rem; }
.te-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.te-nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; color: var(--on-dark); font: 600 .9375rem/1 var(--text); text-decoration: none; border-radius: 999px; position: relative; transition: background .2s, color .2s; }
.te-nav-list a .te-glyph { color: var(--rodnad); }
.te-nav-list a:hover { background: var(--sky-2); }
.te-nav-list a[aria-current] { color: var(--ljus); }
.te-nav-list a[aria-current]::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 6px; height: 2px; border-radius: 2px; background: var(--rodnad); }
.te-nav-list .is-sep { margin-left: .6rem; padding-left: .6rem; border-left: 1px solid rgba(231, 234, 240, .2); }
.te-nav-sok svg { margin-right: .4rem; }
.te-edge { height: 1px; background: linear-gradient(90deg, rgba(242, 181, 160, 0), rgba(242, 181, 160, .75) 50%, rgba(242, 181, 160, 0)); }
.te-menu-btn { display: none; align-items: center; gap: .6rem; min-height: 46px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid rgba(231, 234, 240, .35); background: transparent; color: var(--ljus); font: 600 1rem/1 var(--text); cursor: pointer; }
.te-menu-btn[hidden] { display: none; }
.te-menu-ico { position: relative; width: 20px; height: 10px; }
.te-menu-ico span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), top .25s; }
.te-menu-ico span:first-child { top: 0; }
.te-menu-ico span:last-child { top: 8px; }
.te-menu-open .te-menu-ico span:first-child { top: 4px; transform: rotate(45deg); }
.te-menu-open .te-menu-ico span:last-child { top: 4px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
	.te-header-in { flex-wrap: wrap; gap: .5rem 1rem; }
	.te-nav { width: 100%; }
	.te-nav-list { gap: 0; }
	.te-has-menu .te-menu-btn { display: inline-flex; }
	.te-has-menu .te-nav { display: none; }
	.te-has-menu.te-menu-open .te-nav { display: block; padding-bottom: 1rem; }
	.te-has-menu .te-nav-list { flex-direction: column; align-items: stretch; border-top: 1px solid rgba(231, 234, 240, .15); padding-top: .5rem; }
	.te-has-menu .te-nav-list a { min-height: 52px; font-size: 1.125rem; padding: 0 .5rem; border-radius: 10px; }
	.te-has-menu .te-nav-list a[aria-current]::after { left: .5rem; right: auto; width: 2.4rem; bottom: 8px; }
	.te-has-menu .te-nav-list .is-sep { margin: .4rem 0 0; padding: .4rem 0 0; border-left: 0; border-top: 1px solid rgba(231, 234, 240, .15); }
}

/* ---------- Gryningen (rummen) ---------- */
.te-sun { margin: 0; position: relative; }
.te-sun-box { position: relative; width: 100%; }
.te-sun-svg { display: block; width: 100%; height: auto; overflow: visible; }
.te-r { fill: none; stroke: var(--rodnad); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: opacity .4s, stroke-width .3s, transform 1.5s var(--ease); }
.te-r2 { opacity: .9; } .te-r3 { opacity: .7; } .te-r4 { opacity: .52; } .te-r5 { opacity: .38; }
.te-r.te-core { stroke: none; opacity: 1; }
.te-r.is-on { opacity: 1; stroke-width: 3.5; }
.te-sun-line { fill: rgba(231, 234, 240, .85); }
.te-ring-l { position: absolute; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; min-height: 30px; padding: 0 .9rem; border-radius: 999px; background: var(--sky); color: var(--on-dark); border: 1px solid rgba(242, 181, 160, .5); font: 600 .9rem/1 var(--text); text-decoration: none; white-space: nowrap; transition: background .25s, color .25s, border-color .25s, opacity 1s; }
.te-ring-l:hover, .te-ring-l.is-on { background: var(--rodnad); color: var(--sky); border-color: var(--rodnad); }
.te-ring-l.te-l1 { background: transparent; border-color: transparent; color: var(--sky); font-weight: 700; }
.te-ring-l.te-l1:hover, .te-ring-l.te-l1.is-on { background: var(--sky); color: var(--rodnad); }
.te-sun-box:has(.te-l2:hover, .te-l2:focus-visible) .te-r2,
.te-sun-box:has(.te-l3:hover, .te-l3:focus-visible) .te-r3,
.te-sun-box:has(.te-l4:hover, .te-l4:focus-visible) .te-r4,
.te-sun-box:has(.te-l5:hover, .te-l5:focus-visible) .te-r5 { opacity: 1; stroke-width: 3.5; }
.te-sun-cap { font: 500 .9375rem/1.4 var(--text); color: var(--on-dark-2); margin: 1rem 0 0; text-align: center; }
/* Uppgången vid sidladdning (förstärkning, slutläget är standard) */
.te-sun.is-pre .te-r { transform: translateY(70px); opacity: 0; }
.te-sun.is-pre .te-ring-l { opacity: 0; }
.te-sun .te-r1 { transition-delay: 0s; } .te-sun .te-r2 { transition-delay: .1s; } .te-sun .te-r3 { transition-delay: .2s; } .te-sun .te-r4 { transition-delay: .3s; } .te-sun .te-r5 { transition-delay: .4s; }
.te-sun:not(.is-pre) .te-r { transition-delay: 0s; }

/* ---------- Startsidans hero ---------- */
.te-hero { background: linear-gradient(180deg, var(--sky) 0%, var(--sky) 45%, #332f47 100%); color: var(--on-dark); position: relative; overflow: hidden; }
.te-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: linear-gradient(90deg, rgba(231, 234, 240, .2), rgba(242, 181, 160, .95) 55%, rgba(231, 234, 240, .2)); }
.te-hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: end; padding-top: clamp(3rem, 7vw, 6.5rem); }
.te-hero-text { padding-bottom: clamp(3rem, 7vw, 6rem); }
.te-eyebrow { font: 600 1rem/1.3 var(--text); color: var(--rodnad); margin: 0 0 1.4rem; }
.te-hero-title { font: 400 clamp(3.4rem, 7.4vw, 7.4rem)/.93 var(--disp); letter-spacing: -.02em; color: var(--ljus); margin: 0; }
.te-hero-title em { color: var(--rodnad); }
.te-hero-lede { font: 400 clamp(1.125rem, 1.4vw, 1.3rem)/1.6 var(--text); color: #CDD3DE; max-width: 34em; margin: 1.8rem 0 0; }
.te-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin: 2.2rem 0 0; }
.te-sun.is-hero { align-self: end; }
.te-sun.is-hero .te-sun-cap { position: absolute; left: 0; right: 0; bottom: calc(100% + .2rem); margin: 0; }
@media (max-width: 900px) {
	.te-hero-in { grid-template-columns: 1fr; gap: 1rem; }
	.te-hero-text { padding-bottom: 1rem; }
	.te-sun.is-hero .te-sun-cap { position: static; margin: 0 0 1rem; text-align: left; }
	.te-sun.is-hero { display: flex; flex-direction: column-reverse; }
}
@media (max-width: 560px) {
	.te-ring-l { font-size: .8125rem; min-height: 26px; padding: 0 .65rem; }
}

/* ---------- Sektioner ---------- */
.te-section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.te-section + .te-section { padding-top: 0; }
.te-section.is-tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.te-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.te-sec-head .te-label { grid-column: 1 / -1; }
.te-sec-title { font: 400 clamp(2.3rem, 4.6vw, 4rem)/1 var(--disp); letter-spacing: -.015em; margin: 0; color: var(--ink); max-width: 18em; }
.te-sec-title em { color: var(--plommon); }
.te-sec-lede { grid-column: 1; font: 400 1.125rem/1.6 var(--text); color: var(--ink-2); max-width: 40em; margin: 1rem 0 0; }
.te-sec-link { grid-column: 2; grid-row: 2 / span 2; margin: 0; align-self: end; }
.te-sec-head.is-dark .te-label { color: var(--rodnad); }
.te-sec-head.is-dark .te-sec-title { color: var(--ljus); }
.te-sec-head.is-dark .te-sec-title em { color: var(--rodnad); }
.te-sec-head.is-dark .te-sec-lede { color: var(--on-dark-2); }
@media (max-width: 700px) { .te-sec-head { grid-template-columns: 1fr; } .te-sec-link { grid-column: 1; grid-row: auto; margin-top: 1rem; } }

/* Dagens fråga */
.te-fraga { padding-block: clamp(3.5rem, 8vw, 7rem) 0; }
.te-fraga-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.te-fraga-room { position: relative; aspect-ratio: 1; max-width: 540px; width: 100%; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle at 50% 38%, var(--ljus) 0%, #EEF0F5 55%, var(--dimma) 100%); border: 1px solid var(--dimma-2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12%; box-sizing: border-box; }
.te-fraga-rings span { position: absolute; border-radius: 50%; border: 1px solid rgba(91, 58, 94, .16); inset: -5%; pointer-events: none; }
.te-fraga-rings span:nth-child(2) { inset: -10.5%; border-color: rgba(91, 58, 94, .1); }
.te-fraga-rings span:nth-child(3) { inset: 9%; border-color: rgba(242, 181, 160, .9); }
.te-fraga-room .te-label { justify-content: center; font-size: .875rem; }
.te-fraga-room .te-label::after { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.te-fraga-q { font: italic 400 clamp(1.7rem, 3.3vw, 2.9rem)/1.12 var(--disp); color: var(--ink); margin: .4rem 0 1.2rem; text-wrap: balance; }
.te-fraga-src { font: 500 .9375rem/1.4 var(--text); color: var(--ink-2); margin: 0; }
.te-fraga-src a { color: var(--plommon); font-weight: 600; }
.te-fraga-side p { font: 400 1.125rem/1.65 var(--text); color: var(--ink-2); margin: 0 0 1rem; max-width: 30em; }
.te-fraga-side p:first-child { font: 400 clamp(1.4rem, 2vw, 1.75rem)/1.3 var(--disp); color: var(--ink); }
@media (max-width: 860px) {
	.te-fraga-in { grid-template-columns: 1fr; }
	.te-fraga-room { aspect-ratio: auto; border-radius: 32px; padding: 3rem 1.5rem; }
	.te-fraga-rings { display: none; }
}

/* Gemensam sträckt länk */
.te-stretch { text-decoration: none; color: inherit; }
.te-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.te-stretch:focus-visible { outline: none; }

/* Guidekort */
.te-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.te-gcard { position: relative; display: flex; flex-direction: column; background: var(--ljus); border: 1px solid var(--dimma-2); border-radius: 22px; padding: 1.6rem 1.5rem 1.3rem; min-height: 19rem; overflow: hidden; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.te-gcard::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: radial-gradient(120% 100% at 50% 100%, rgba(242, 181, 160, .38), rgba(242, 181, 160, 0) 70%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.te-gcard:hover, .te-gcard:has(.te-stretch:focus-visible) { border-color: var(--plommon); transform: translateY(-4px); box-shadow: 0 18px 40px -26px rgba(43, 49, 64, .55); }
.te-gcard:hover::before { opacity: 1; }
.te-gcard:has(.te-stretch:focus-visible) { outline: 3px solid var(--plommon); outline-offset: 3px; }
.te-gcard-k { display: flex; align-items: center; gap: .1rem; margin: 0 0 auto; font: 600 .875rem/1 var(--text); color: var(--plommon); }
.te-gcard-no { font: 400 2.6rem/1 var(--disp); color: var(--plommon); margin-right: auto; }
.te-gcard-t { font: 400 clamp(1.7rem, 2.2vw, 2.1rem)/1.05 var(--disp); margin: 2.4rem 0 .7rem; color: var(--ink); }
.te-gcard-e { font: 400 1rem/1.55 var(--text); color: var(--ink-2); margin: 0 0 1.2rem; }
.te-gcard-m { display: flex; justify-content: space-between; align-items: center; margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--dimma-2); font: 500 .875rem/1 var(--text); color: var(--ink-2); }
.te-gcard-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--plommon); position: relative; transition: background .3s, transform .4s var(--ease); }
.te-gcard-arrow::after { content: "→"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--plommon); font-size: 1rem; transition: color .3s; }
.te-gcard:hover .te-gcard-arrow { background: var(--plommon); transform: translateX(3px); }
.te-gcard:hover .te-gcard-arrow::after { color: var(--ljus); }
.te-gcard.is-page { min-height: 0; }
.te-gcard.is-page .te-gcard-t { margin-top: 1.4rem; }
@media (max-width: 1100px) { .te-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .te-guides { grid-template-columns: 1fr; } .te-gcard { min-height: 0; } .te-gcard-t { margin-top: 1.6rem; } }

/* Artikelkort */
.te-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.25rem); }
.te-cards.is-latest .te-card.is-big { grid-column: span 2; grid-row: span 2; }
.te-card { position: relative; display: flex; flex-direction: column; }
.te-card-img { position: relative; aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; background: var(--sky); margin-bottom: 1.1rem; }
.te-card.is-big .te-card-img { aspect-ratio: auto; flex: 1 1 auto; min-height: 320px; }
.te-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.02); transition: transform 1.1s var(--ease); }
.te-card-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(43, 49, 64, 0) 40%, rgba(43, 49, 64, .42) 100%); }
.te-card-img::after { content: ""; position: absolute; left: 0; right: 0; top: 66%; height: 1px; z-index: 2; background: linear-gradient(90deg, rgba(245, 246, 249, .9), rgba(245, 246, 249, .35)); }
.te-card-sunbox { position: absolute; left: 9%; top: calc(66% - 30px); width: 30px; height: 30px; overflow: hidden; z-index: 2; }
.te-card-sun { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--rodnad); transform: translateY(58%); transition: transform .9s var(--ease); }
.te-card:hover .te-card-img img { transform: scale(1.035); }
.te-card:hover .te-card-sun, .te-card:has(.te-stretch:focus-visible) .te-card-sun { transform: translateY(4%); }
.te-card:has(.te-stretch:focus-visible) .te-card-title a { outline: 3px solid var(--plommon); outline-offset: 3px; border-radius: 3px; }
.te-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; margin: 0 0 .6rem; font: 500 .875rem/1.2 var(--text); color: var(--ink-2); }
.te-card-meta .te-tag { color: var(--plommon); position: relative; z-index: 2; min-height: 28px; }
.te-card-title { font: 400 clamp(1.5rem, 2vw, 1.85rem)/1.08 var(--disp); margin: 0 0 .6rem; color: var(--ink); }
.te-card.is-big .te-card-title { font-size: clamp(2rem, 3.4vw, 3rem); }
.te-card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.te-card-ex { font: 400 1rem/1.6 var(--text); color: var(--ink-2); margin: 0; }
.te-card.is-big .te-card-ex { font-size: 1.125rem; max-width: 36em; }
@media (max-width: 1000px) { .te-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .te-cards.is-latest .te-card.is-big { grid-row: auto; } .te-card.is-big .te-card-img { aspect-ratio: 16 / 9; flex: none; min-height: 0; } }
@media (max-width: 640px) { .te-cards { grid-template-columns: 1fr; } .te-cards.is-latest .te-card.is-big { grid-column: auto; } }

/* Rummen (mörkt band) */
.te-band { background: linear-gradient(180deg, var(--sky) 0%, var(--natt) 100%); color: var(--on-dark); position: relative; overflow: hidden; }
.te-band::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1200px, 140vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 181, 160, .16), rgba(242, 181, 160, 0)); pointer-events: none; }
.te-band-in { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem); }
.te-rooms { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(231, 234, 240, .16); }
.te-room { position: relative; display: grid; grid-template-columns: 3rem 3.2rem minmax(0, 1.1fr) minmax(0, 1.3fr) auto; align-items: center; gap: 1.5rem; padding: 1.5rem 1rem; border-top: 1px solid rgba(231, 234, 240, .16); border-radius: 4px; transition: background .4s; }
.te-room::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(242, 181, 160, .14), rgba(242, 181, 160, 0) 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.te-room:hover::before, .te-room:has(.te-stretch:focus-visible)::before { opacity: 1; }
.te-room:has(.te-stretch:focus-visible) { outline: 3px solid var(--rodnad); outline-offset: 2px; }
.te-room-n { font: 400 2rem/1 var(--disp); color: var(--on-dark-2); }
.te-room .te-glyph { color: var(--rodnad); transition: transform .6s var(--ease); }
.te-room:hover .te-glyph { transform: scale(1.12); }
.te-room-t { font: 400 clamp(2rem, 3.4vw, 3rem)/1 var(--disp); margin: 0; color: var(--ljus); transition: transform .5s var(--ease); }
.te-room:hover .te-room-t { transform: translateX(8px); }
.te-room-t a { color: inherit; }
.te-room-d { font: 400 1rem/1.5 var(--text); color: var(--on-dark-2); margin: 0; }
.te-room-c { font: 600 .875rem/1 var(--text); color: var(--rodnad); margin: 0; white-space: nowrap; }
.te-section .te-rooms, .te-empty .te-rooms { border-color: var(--dimma-2); }
.te-section .te-room, .te-empty .te-room { border-color: var(--dimma-2); }
.te-section .te-room-t, .te-empty .te-room-t { color: var(--ink); }
.te-section .te-room-d, .te-section .te-room-n, .te-empty .te-room-d, .te-empty .te-room-n { color: var(--ink-2); }
.te-section .te-room .te-glyph, .te-section .te-room-c, .te-empty .te-room .te-glyph, .te-empty .te-room-c { color: var(--plommon); }
.te-section .te-room:has(.te-stretch:focus-visible), .te-empty .te-room:has(.te-stretch:focus-visible) { outline-color: var(--plommon); }
@media (max-width: 800px) {
	.te-room { grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .4rem 1rem; padding: 1.25rem .25rem; }
	.te-room-n { display: none; }
	.te-room .te-glyph { grid-row: span 2; width: 2.2rem; height: 2.2rem; }
	.te-room-d { grid-column: 2 / -1; }
	.te-room-c { grid-column: 3; grid-row: 1; }
}

/* Så skriver jag */
.te-method-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.te-method-text p { font: 400 1.125rem/1.7 var(--text); color: var(--ink-2); max-width: 34em; }
.te-method-text .te-sec-title { margin-bottom: 1.4rem; }
.te-principles { list-style: none; margin: 0; padding: 0; counter-reset: pr; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.te-principles li { counter-increment: pr; background: var(--ljus); border: 1px solid var(--dimma-2); border-radius: 22px; padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.te-principles li::before { content: counter(pr); width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--plommon); display: grid; place-items: center; font: 400 1.35rem/1 var(--disp); color: var(--plommon); margin-bottom: .6rem; }
.te-principles b { font: 400 1.6rem/1.1 var(--disp); color: var(--ink); }
.te-principles span { font: 400 1rem/1.55 var(--text); color: var(--ink-2); }
@media (max-width: 900px) { .te-method-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .te-principles { grid-template-columns: 1fr; } }

/* ---------- Artikel ---------- */
.te-art-head { background: var(--sky); color: var(--on-dark); }
.te-art-head-in { max-width: 1060px; margin-inline: auto; padding: clamp(3rem, 7vw, 6rem) var(--g) clamp(3rem, 6vw, 5rem); box-sizing: content-box; }
.te-art-head-in > * { margin-block: 0; }
.te-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin: 0 0 1.6rem; font: 500 .9375rem/1.2 var(--text); color: var(--on-dark-2); }
.te-kicker .te-tag { color: var(--rodnad); min-height: 28px; }
.te-art-title { font: 400 clamp(2.7rem, 6vw, 5.4rem)/.98 var(--disp) !important; letter-spacing: -.018em; color: var(--ljus) !important; margin: 0 !important; max-width: 15em; text-wrap: balance; }
.te-h1-k { display: block; font: 600 1rem/1 var(--text); letter-spacing: 0; color: var(--rodnad); margin-bottom: 1rem; }
.te-dek, .te-dek p { font: 400 clamp(1.15rem, 1.6vw, 1.4rem)/1.55 var(--text); color: #CDD3DE; max-width: 36em; }
.te-art-head .te-dek { margin-top: 1.6rem !important; }
.te-dek p { margin: 0; }
.te-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; margin-top: 2rem !important; font: 500 .9375rem/1.3 var(--text); color: var(--on-dark-2); }
.te-byline > span { display: inline-flex; align-items: center; }
.te-byline > span + span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--rodnad); margin-right: 1.4rem; margin-left: -.1rem; }
.te-byline-by { color: var(--ljus); font-weight: 600; gap: .6rem; }
.te-byline-mark { width: 28px; height: 28px; border-radius: 8px; }
.te-art-figure { background: linear-gradient(180deg, var(--sky) 0, var(--sky) calc(50% - 1px), rgba(242, 181, 160, .9) calc(50% - 1px), rgba(242, 181, 160, .9) calc(50% + .5px), var(--dimma) calc(50% + .5px)); padding-inline: var(--g); }
.te-art-figure:empty, .te-art-figure:not(:has(img)) { display: none; }
.te-hero-img { max-width: 1200px; margin: 0 auto !important; }
.te-hero-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: clamp(14px, 2vw, 26px); filter: saturate(.88); }
.te-single:not(:has(.te-art-figure img)) .te-art-head, .te-art-head.is-guide { box-shadow: inset 0 -1.5px 0 rgba(242, 181, 160, .85); }

.te-read { max-width: 1180px; margin-inline: auto; padding: clamp(2.5rem, 6vw, 5rem) var(--g) clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: 230px minmax(0, 700px); gap: clamp(2rem, 5vw, 5rem); justify-content: center; box-sizing: content-box; }
.te-read > * { margin: 0 !important; }
.te-rail.is-empty { display: block; }
.te-rail { position: sticky; top: 2rem; align-self: start; }
.te-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--dimma-2); }
.te-toc li { counter-increment: toc; }
.te-toc a { display: grid; grid-template-columns: 1.7rem 1fr; padding: .45rem 0 .45rem 1rem; margin-left: -1px; border-left: 2px solid transparent; font: 500 .9375rem/1.35 var(--text); color: var(--ink-2); text-decoration: none; transition: color .2s, border-color .2s; }
.te-toc a::before { content: counter(toc); font: 400 1.05rem/1.2 var(--disp); color: var(--plommon); }
.te-toc a:hover { color: var(--ink); text-decoration: underline; }
.te-toc a.is-on { color: var(--ink); border-left-color: var(--plommon); }
.te-rail-room { margin: 1.4rem 0 0; }
.te-rail-room a { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; font: 600 .9375rem/1.2 var(--text); color: var(--plommon); }
.te-rail-room a::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; box-shadow: 0 0 0 3px var(--dimma), 0 0 0 4px rgba(91, 58, 94, .4); }
@media (max-width: 960px) {
	.te-read { grid-template-columns: minmax(0, 1fr); }
	.te-rail { position: static; }
	.te-rail.is-empty { display: none; }
	.te-toc { background: var(--ljus); border: 1px solid var(--dimma-2); border-radius: 20px; padding: 1.3rem 1.3rem .8rem; }
	.te-rail-room { display: none; }
}

/* Brödtext */
.te-body { font: 400 var(--wp--preset--font-size--medium)/1.75 var(--text); color: var(--ink); }
.te-body > * { margin-block: 0 1.25em; }
.te-body > p:first-child { font-size: clamp(1.08em, 2.4vw, 1.22em); line-height: 1.6; color: var(--ink); }
.te-body h2 { font: 400 clamp(1.9rem, 3vw, 2.45rem)/1.1 var(--disp); letter-spacing: -.01em; margin: 2.3em 0 .7em; color: var(--ink); scroll-margin-top: 1.5rem; }
.te-body h2::before { content: ""; display: block; width: 3rem; height: 1px; background: var(--plommon); margin-bottom: 1rem; }
.te-body h3 { font: 650 1.2rem/1.35 var(--text); margin: 1.8em 0 .5em; color: var(--ink); }
.te-body h2 + h3 { margin-top: .4em; }
.te-body a { color: var(--plommon); text-decoration-color: rgba(91, 58, 94, .5); transition: background .2s; }
.te-body a:hover { background: rgba(242, 181, 160, .45); text-decoration-color: currentColor; }
.te-body strong, .te-body b { font-weight: 650; }
.te-body ul { list-style: none; padding-left: 0; }
.te-body ul li { position: relative; padding-left: 1.7em; margin-bottom: .55em; }
.te-body ul li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .6em; height: .6em; border-radius: 50%; border: 1.5px solid var(--plommon); box-sizing: border-box; }
.te-body ol { list-style: none; padding-left: 0; counter-reset: ol; }
.te-body ol li { counter-increment: ol; position: relative; padding-left: 2.4em; margin-bottom: .6em; }
.te-body ol li::before { content: counter(ol); position: absolute; left: 0; top: .1em; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--sky); color: var(--rodnad); display: grid; place-items: center; font: 400 1rem/1 var(--disp); }
.te-body cite { font-style: italic; }
.te-fakta { background: var(--ljus); border: 1px solid var(--dimma-2); border-radius: 22px; padding: 1.5rem 1.7rem .6rem; margin-block: 2em !important; position: relative; overflow: hidden; }
.te-fakta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(242, 181, 160, .9); box-shadow: 0 0 0 22px rgba(242, 181, 160, .12); pointer-events: none; }
.te-fakta-t { font: 400 1.5rem/1.15 var(--disp) !important; margin: 0 0 .8rem !important; color: var(--ink); }
.te-fakta ul li { font-size: 1rem; }

/* Reflektionsrummet */
.te-rum { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 100% 100%, #4a3f5c 0%, var(--sky) 55%); color: var(--on-dark); border-radius: 30px; padding: clamp(2rem, 5vw, 3.4rem); margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; scroll-margin-top: 1.5rem; }
.te-rum-rings span { position: absolute; right: -14%; bottom: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(242, 181, 160, .35); pointer-events: none; }
.te-rum-rings span:nth-child(2) { width: 52%; right: -5%; bottom: -27%; border-color: rgba(242, 181, 160, .5); }
.te-rum-rings span:nth-child(3) { width: 30%; right: -4%; bottom: -14%; background: radial-gradient(circle at 50% 30%, rgba(242, 181, 160, .55), rgba(242, 181, 160, .12)); border: 0; }
.te-rum-in { position: relative; }
.te-rum .te-label { color: var(--rodnad); }
.te-rum-t { font: 400 clamp(2.2rem, 4vw, 3.2rem)/1 var(--disp); color: var(--ljus); margin: 0 0 1.6rem; }
.te-rum-q { list-style: none; margin: 0; padding: 0; counter-reset: q; max-width: 34em; }
.te-rum-q li { counter-increment: q; position: relative; padding: 1rem 0 1rem 3.3rem; border-top: 1px solid rgba(231, 234, 240, .16); font: italic 400 clamp(1.35rem, 2.2vw, 1.65rem)/1.3 var(--disp); color: var(--ljus); }
.te-rum-q li::before { content: counter(q); position: absolute; left: 0; top: 1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--rodnad); color: var(--rodnad); display: grid; place-items: center; font: normal 400 1.1rem/1 var(--disp); }
.te-rum-hint { font: 400 1rem/1.6 var(--text); color: var(--on-dark-2); margin: 1.2rem 0 0; max-width: 32em; }
.te-care { font: 400 .9375rem/1.6 var(--text); color: var(--ink-2); border-top: 1px solid var(--dimma-2); padding-top: 1.2rem; margin-top: 2.5rem !important; }
.te-care b { color: var(--ink); margin-right: .4rem; }
.te-author { display: flex; gap: 1.2rem; align-items: flex-start; margin-top: 2rem !important; padding: 1.5rem; background: var(--ljus); border-radius: 22px; border: 1px solid var(--dimma-2); }
.te-author-mark img { width: 56px; height: 56px; border-radius: 14px; display: block; }
.te-author .te-label { margin-bottom: .3rem; }
.te-author-name { font: 400 1.7rem/1.1 var(--disp); margin: 0 0 .4rem; }
.te-author-bio { font: 400 1rem/1.6 var(--text); color: var(--ink-2); margin: 0; }
.te-author-bio a { color: var(--plommon); }
.te-more-sec { padding-top: 0; }

/* Guide */
.te-guide-head { max-width: var(--max); margin-inline: auto; padding-inline: var(--g); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: end; box-sizing: content-box; }
.te-guide-head > * { margin: 0 !important; }
.te-guide-head .te-art-head-in { padding-inline: 0; max-width: none; }
.te-sun.is-guide, .te-sun.is-arch { align-self: end; }
.te-sun.is-guide .te-ring-l { pointer-events: none; }
@media (max-width: 900px) {
	.te-guide-head { grid-template-columns: 1fr; gap: 0; }
	.te-guide-head .te-art-head-in { padding-bottom: 2rem; }
	.te-sun.is-guide { max-width: 520px; width: 100%; margin-inline: auto !important; }
}

/* ---------- Sidor ---------- */
.te-page-head { background: var(--sky); color: var(--on-dark); box-shadow: inset 0 -1.5px 0 rgba(242, 181, 160, .85); position: relative; overflow: hidden; }
.te-page-head::after { content: ""; position: absolute; right: -220px; bottom: 0; width: 480px; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; border: 1px solid rgba(242, 181, 160, .45); border-bottom: 0; box-shadow: inset 0 0 0 40px rgba(242, 181, 160, .05); pointer-events: none; }
.te-page-head-in { max-width: 860px; margin-inline: auto; padding: clamp(3rem, 7vw, 5.5rem) var(--g) clamp(2.5rem, 5vw, 4rem); position: relative; z-index: 1; box-sizing: content-box; }
.te-page-head-in > * { margin-block: 0; }
.te-page-title { font: 400 clamp(2.7rem, 6vw, 5rem)/1 var(--disp) !important; color: var(--ljus) !important; margin: 0 !important; }
.te-page-head .te-dek { margin-top: 1.3rem !important; }
.te-page-body { max-width: 700px; margin-inline: auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--g) clamp(3.5rem, 7vw, 6rem); box-sizing: content-box; }
.te-guider .te-page-body { padding-bottom: 0; }

/* ---------- Arkiv och sök ---------- */
.te-arch-head { background: var(--sky); color: var(--on-dark); box-shadow: inset 0 -1.5px 0 rgba(242, 181, 160, .85); }
.te-arch-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem; align-items: end; }
.te-arch-text { padding-block: clamp(3rem, 7vw, 5.5rem); }
.te-arch-grid .te-arch-text { padding-inline: 0; }
.te-arch-title { font: 400 clamp(3rem, 7vw, 6.2rem)/.95 var(--disp); letter-spacing: -.02em; color: var(--ljus); margin: 0; }
.te-arch-desc { font: 400 clamp(1.1rem, 1.5vw, 1.3rem)/1.55 var(--text); color: #CDD3DE; max-width: 32em; margin: 1.4rem 0 0; }
.te-arch-head.is-search .te-search { margin-top: 2rem; max-width: 640px; }
@media (max-width: 900px) { .te-arch-grid { grid-template-columns: 1fr; gap: 0; } .te-arch-text { padding-bottom: 2rem; } .te-sun.is-arch { max-width: 520px; width: 100%; margin-inline: auto; } }
.te-pages { margin-top: 3rem; }
.te-pages ul { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0; flex-wrap: wrap; }
.te-pages a, .te-pages span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--dimma-2); font: 600 1rem/1 var(--text); color: var(--ink); text-decoration: none; }
.te-pages .current { background: var(--sky); color: var(--ljus); border-color: var(--sky); }
.te-empty-t { font: 400 clamp(2rem, 4vw, 3rem)/1.05 var(--disp); margin: 0 0 .6rem; }
.te-empty > p { font: 400 1.125rem/1.6 var(--text); color: var(--ink-2); margin: 0 0 2rem; }

/* Sökformulär */
.te-search label { display: block; font: 600 1rem/1.3 var(--text); margin-bottom: .6rem; color: inherit; }
.te-search-row { display: flex; gap: .5rem; }
.te-search input { flex: 1 1 auto; min-width: 0; width: 100%; min-height: 52px; padding: 0 1.25rem; border-radius: 999px; border: 1.5px solid #6B7389; background: var(--ljus); color: var(--ink); font: 400 1.0625rem/1 var(--text); }
.te-search input::placeholder { color: #5A6278; }
.te-search button { min-height: 52px; padding: 0 1.5rem; border-radius: 999px; border: 0; background: var(--sky); color: var(--ljus); font: 650 1rem/1 var(--text); cursor: pointer; transition: background .2s; }
.te-search button:hover { background: var(--plommon); }
.te-search.is-dark input, .te-arch-head .te-search input { background: var(--sky-2); border-color: #77809A; color: var(--ljus); }
.te-search.is-dark input::placeholder, .te-arch-head .te-search input::placeholder { color: #BAC1CE; }
.te-search.is-dark button, .te-arch-head .te-search button { background: var(--rodnad); color: var(--sky); }
.te-search.is-dark button:hover, .te-arch-head .te-search button:hover { background: var(--rodnad-l); }

/* ---------- 404 ---------- */
.te-404-head { background: linear-gradient(180deg, var(--sky) 0%, #34304a 100%); color: var(--on-dark); position: relative; overflow: hidden; box-shadow: inset 0 -1.5px 0 rgba(242, 181, 160, .85); }
.te-404-in { padding-block: clamp(3rem, 7vw, 6rem); position: relative; }
.te-404-art { position: absolute; right: var(--g); bottom: 0; width: min(420px, 45vw); aspect-ratio: 2 / 1; pointer-events: none; }
.te-404-sun { position: absolute; left: 50%; bottom: 0; width: 46%; aspect-ratio: 2 / 1; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: linear-gradient(180deg, var(--rodnad-l), var(--rodnad)); opacity: .9; }
.te-404-line { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--rodnad); }
.te-404-title { font: 400 clamp(3rem, 8vw, 7rem)/.95 var(--disp); color: var(--ljus); margin: 0 0 1.4rem; max-width: 10em; position: relative; }
.te-404-title em { color: var(--rodnad); }
.te-404-head .te-dek { margin: 0 0 2rem; position: relative; }
.te-404-head .te-search { max-width: 560px; position: relative; }
.te-404-home { margin-top: 2rem; }

/* ---------- Sidfot ---------- */
.te-footer { background: var(--natt); color: #C9CFDB; }
.te-dusk { position: relative; height: clamp(70px, 9vw, 120px); overflow: hidden; background: var(--dimma); }
.te-dusk svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--natt); }
.te-dusk-sun { position: absolute; left: 50%; bottom: 0; width: clamp(90px, 12vw, 150px); aspect-ratio: 2 / 1; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: linear-gradient(180deg, var(--rodnad) 0%, #b98a96 100%); }
.te-dusk-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: linear-gradient(90deg, rgba(242, 181, 160, .1), rgba(242, 181, 160, .9) 50%, rgba(242, 181, 160, .1)); }
.te-footer-in { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.te-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.te-footer-about > p.te-footer-brand { display: flex; align-items: center; gap: .8rem; font: 400 2rem/1 var(--disp); color: var(--ljus); margin: 0 0 1rem; }
.te-footer-about > p { font: 400 1rem/1.6 var(--text); max-width: 26em; margin: 0 0 1.5rem; }
.te-footer .te-label { color: var(--rodnad); }
.te-footer-col ul { list-style: none; margin: 0; padding: 0; }
.te-footer-col li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark); font: 500 1rem/1.3 var(--text); text-decoration: none; }
.te-footer-col li a:hover { text-decoration: underline; color: var(--ljus); }
.te-footer-col p { margin: .4rem 0 0; }
.te-footer-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.te-footer-note { margin: 0; padding: 1.2rem 1.3rem; border: 1px solid rgba(231, 234, 240, .14); border-radius: 18px; font: 400 .9375rem/1.6 var(--text); }
.te-footer-note b { color: var(--ljus); }
.te-footer-copy { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(231, 234, 240, .12); font: 500 .875rem/1.4 var(--text); color: var(--on-dark-2); }
.te-footer .te-search label { color: var(--on-dark); }
@media (max-width: 1000px) { .te-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .te-footer-about { grid-column: 1 / -1; } }
@media (max-width: 640px) { .te-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .te-footer-notes { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .te-footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Läsförlopp ---------- */
.te-progress { position: fixed; left: 0; top: 0; width: 100%; height: 3px; z-index: 300; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--ljung), var(--rodnad)); pointer-events: none; }

/* ---------- Inglidning (förstärkning) ---------- */
.te-anim .te-reveal:not(.is-in) { opacity: 0; transform: translateY(22px); }
.te-reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
	.te-anim .te-reveal:not(.is-in) { opacity: 1; transform: none; }
	.te-sun.is-pre .te-r, .te-sun.is-pre .te-ring-l { opacity: 1; transform: none; }
}
@media (min-width: 1100px) { html { scroll-behavior: smooth; } }
@media (min-width: 1100px) and (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Kontrast: text ska aldrig ligga över gryningsklotet */
@media (min-width: 761px) { .te-rum-in { max-width: 62%; } }
@media (max-width: 760px) { .te-rum-rings span:nth-child(3) { display: none; } .te-rum-rings span { opacity: .6; } }
@media (max-width: 700px) { .te-404-art { display: none; } }
