/*
Theme Name: Passmärket (tt-tryck)
Template: twentytwentyfive
Description: Kunskapssajt om tryck och trycksaker. Tryckarket som formspråk: skärmärken, passmärken, kontrollremsa, raster och blysats.
Version: 1.0.0
Text Domain: tt-tryck
*/

:root {
	--papper: #F3F4F2;
	--papper-2: #E6E8E5;
	--vit: #FBFBFA;
	--ink: #141517;
	--ink-2: #46494E;
	--gra: #C9CCC9;
	--c: #00A0E3;
	--c-d: #00618C;
	--c-l: #D7EEF8;
	--m: #E4007C;
	--y: #FFED00;
	--cm: #2E3192;
	--my: #ED1C24;
	--cy: #00A651;
	--f-d: Chivo, 'Helvetica Neue', Arial, sans-serif;
	--f-t: 'Crimson Pro', Garamond, Georgia, serif;
	--f-m: 'Chivo Mono', ui-monospace, Menlo, monospace;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--pad: clamp(1rem, 4vw, 2.5rem);
}

html { scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; }
body { background: var(--papper); color: var(--ink); font-feature-settings: "kern", "liga", "onum"; text-rendering: optimizeLegibility; }
::selection { background: var(--c); color: var(--ink); }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .16em; text-decoration-thickness: 1px; transition: color .2s, background-color .2s, text-decoration-color .2s; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-d); outline-offset: 3px; border-radius: 1px; }
.tt-band :focus-visible, .tt-footer :focus-visible { outline-color: var(--c); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { background: var(--ink) !important; color: var(--papper) !important; font-family: var(--f-d); z-index: 1000; }

/* ---------- Passmärken, skärmärken, kontrollremsa ---------- */

.tt-reg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; vertical-align: -.12em; }
.tt-crops {
	--cm-c: var(--ink); --o: 14px; --l: 10px;
	position: absolute; inset: calc(var(--o) * -1); pointer-events: none; z-index: -1;
	background:
		linear-gradient(var(--cm-c), var(--cm-c)) 0 var(--o) / var(--l) 1px no-repeat,
		linear-gradient(var(--cm-c), var(--cm-c)) var(--o) 0 / 1px var(--l) no-repeat,
		linear-gradient(var(--cm-c), var(--cm-c)) 100% var(--o) / var(--l) 1px no-repeat,
		linear-gradient(var(--cm-c), var(--cm-c)) calc(100% - var(--o)) 0 / 1px var(--l) no-repeat,
		linear-gradient(var(--cm-c), var(--cm-c)) 0 calc(100% - var(--o)) / var(--l) 1px no-repeat,
		linear-gradient(var(--cm-c), var(--cm-c)) var(--o) 100% / 1px var(--l) no-repeat,
		linear-gradient(var(--cm-c), var(--cm-c)) 100% calc(100% - var(--o)) / var(--l) 1px no-repeat,
		linear-gradient(var(--cm-c), var(--cm-c)) calc(100% - var(--o)) 100% / 1px var(--l) no-repeat;
}
.tt-strip { display: flex; height: 14px; width: 100%; }
.tt-strip > span { flex: 1 1 0; min-width: 0; }
.tt-strip .is-c100 { background: var(--c); } .tt-strip .is-m100 { background: var(--m); } .tt-strip .is-y100 { background: var(--y); } .tt-strip .is-k100 { background: var(--ink); }
.tt-strip .is-cm { background: var(--cm); } .tt-strip .is-my { background: var(--my); } .tt-strip .is-cy { background: var(--cy); }
.tt-strip .is-c75 { background: color-mix(in srgb, var(--c) 75%, #fff); } .tt-strip .is-m75 { background: color-mix(in srgb, var(--m) 75%, #fff); } .tt-strip .is-y75 { background: color-mix(in srgb, var(--y) 75%, #fff); } .tt-strip .is-k75 { background: #4A4B4D; }
.tt-strip .is-c50 { background: color-mix(in srgb, var(--c) 50%, #fff); } .tt-strip .is-m50 { background: color-mix(in srgb, var(--m) 50%, #fff); } .tt-strip .is-y50 { background: color-mix(in srgb, var(--y) 50%, #fff); } .tt-strip .is-k50 { background: #8A8B8D; }
.tt-strip .is-c25 { background: color-mix(in srgb, var(--c) 25%, #fff); } .tt-strip .is-m25 { background: color-mix(in srgb, var(--m) 25%, #fff); } .tt-strip .is-y25 { background: color-mix(in srgb, var(--y) 25%, #fff); } .tt-strip .is-k25 { background: #C3C4C6; }
.tt-strip .is-g { background: #9D9FA2; } .tt-strip .is-cmy { background: #3B3A3D; } .tt-strip .is-k10 { background: #E4E5E6; }
.tt-strip .is-reg { display: grid; place-items: center; background: var(--vit); color: var(--ink); font-size: 12px; }

.tt-sheet, .tt-guide, .tt-card-img, .tt-lead-img, .tt-article-head, .tt-hero-img, .tt-arch-head { isolation: isolate; }

/* ---------- Sidhuvud ---------- */

.tt-header { border-bottom: 2px solid var(--ink); background: var(--papper); }
.tt-header-in { padding-block: .9rem; gap: 1.5rem; align-items: center; }
.tt-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.tt-brand-mark { width: 42px; height: 42px; transition: transform .5s var(--ease); }
.tt-brand:hover .tt-brand-mark { transform: rotate(90deg); }
.tt-brand-txt { display: flex; flex-direction: column; line-height: 1; }
.tt-brand-name { font-family: var(--f-d); font-weight: 850; font-size: 1.5rem; letter-spacing: -.03em; }
.tt-brand-sub { font-family: var(--f-m); font-size: .74rem; color: var(--ink-2); margin-top: .3rem; letter-spacing: 0; }
.tt-nav { font-family: var(--f-d); font-weight: 600; font-size: 1rem; }
.tt-nav .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem .65rem; text-decoration: none; color: var(--ink); border-radius: 1px; position: relative; }
.tt-nav .wp-block-navigation-item__content:hover { background: var(--c-l); }
.tt-nav .current-menu-item > .wp-block-navigation-item__content,
.tt-nav .wp-block-navigation-item__content[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--c); }
.tt-nav .tt-nav-guider > .wp-block-navigation-item__content { background: var(--ink); color: var(--papper); margin-inline: .35rem; }
.tt-nav .tt-nav-guider > .wp-block-navigation-item__content:hover { background: var(--c-d); color: #fff; }
.tt-nav .wp-block-navigation__responsive-container-open, .tt-nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; color: var(--ink); }
.tt-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--papper); color: var(--ink); padding: 1.2rem var(--pad); }
.tt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.2rem; align-items: flex-start; }
.tt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: .2rem; align-items: flex-start; width: 100%; }
.tt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.6rem; font-weight: 800; padding: .5rem .2rem; width: 100%; }
.tt-nav .wp-block-navigation__responsive-container.is-menu-open .tt-nav-guider > .wp-block-navigation-item__content { margin: .3rem 0; padding-inline: .7rem; width: auto; }

/* ---------- Typografi, gemensamt ---------- */

.tt-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: end; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.tt-sec-head > * { grid-column: 1; }
.tt-sec-nr { font-family: var(--f-m); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; justify-self: start; }
.tt-sec-nr::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.tt-sec-title { font-family: var(--f-d); font-weight: 850; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.035em; margin: 0; max-width: 18ch; }
.tt-sec-title em, .tt-hero-title em { font-family: var(--f-t); font-style: italic; font-weight: 500; letter-spacing: -.01em; color: var(--c-d); }
.tt-band .tt-sec-title em { color: var(--c); }
.tt-sec-lede { font-size: 1.22rem; color: var(--ink-2); max-width: 58ch; margin: 1rem 0 0; line-height: 1.5; }
.tt-sec-link { grid-column: 2 !important; grid-row: 1 / span 3; margin: 0; align-self: end; }
.tt-sec-head.is-small .tt-sec-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.tt-arrow { font-family: var(--f-d); font-weight: 700; display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: .1rem; }
.tt-arrow::after { content: ""; width: 1.1em; height: 2px; background: currentColor; box-shadow: 0 0 0 0 currentColor; position: relative; transition: transform .3s var(--ease); -webkit-mask: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.tt-arrow:hover { color: var(--c-d); border-color: var(--c-d); }
.tt-arrow:hover::after { transform: translateX(4px); }
.tt-band .tt-arrow { color: var(--papper); border-color: var(--papper); }
.tt-band .tt-arrow:hover { color: var(--c); border-color: var(--c); }

.tt-btn { display: inline-flex; align-items: center; min-height: 48px; padding: .6rem 1.25rem; font-family: var(--f-d); font-weight: 700; font-size: 1.02rem; background: var(--ink); color: var(--papper); text-decoration: none; border: 2px solid var(--ink); box-shadow: 0 0 0 var(--c); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s; }
.tt-btn:hover { color: var(--papper); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--c); }
.tt-btn.is-ghost { background: transparent; color: var(--ink); }
.tt-btn.is-ghost:hover { color: var(--ink); background: var(--vit); box-shadow: 5px 5px 0 var(--m); }

.tt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; font-family: var(--f-m); font-size: .78rem; color: var(--ink-2); margin: 0 0 .7rem; }
.tt-sort { display: inline-flex; align-items: center; min-height: 26px; padding: .15rem .55rem .2rem; background: var(--ink); color: var(--papper) !important; font-family: var(--f-m); font-weight: 600; font-size: .76rem; text-decoration: none; box-shadow: inset 0 -3px 0 var(--c); border-radius: 1px; }
a.tt-sort:hover { background: var(--c-d); box-shadow: inset 0 -3px 0 var(--y); }
.tt-date { font-family: var(--f-m); font-size: .76rem; color: var(--ink-2); margin: .8rem 0 0; }

/* ---------- Startsidan: arket ---------- */

.tt-home { padding-bottom: 2rem; }
.tt-hero-wrap { margin-top: clamp(2.2rem, 5vw, 3.5rem) !important; }
.tt-sheet { position: relative; background: var(--vit); margin: 22px; padding: clamp(1.6rem, 4.5vw, 4rem) clamp(1.3rem, 4.5vw, 4rem) 0; box-shadow: 0 1px 0 var(--papper-2), 0 40px 60px -45px rgba(20, 21, 23, .45); }
.tt-sheet > .tt-crops { --o: 22px; --l: 14px; }
.tt-slug { position: absolute; top: -21px; left: 2.2rem; right: 2.2rem; margin: 0; display: flex; gap: 1.6rem; font-family: var(--f-m); font-size: .7rem; color: var(--ink-2); line-height: 1; white-space: nowrap; overflow: hidden; }
.tt-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.tt-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-d); font-weight: 600; font-size: 1.05rem; margin: 0 0 1.3rem; color: var(--ink); }
.tt-eyebrow .tt-reg { color: var(--c-d); font-size: 1.2rem; }
.tt-hero-title { position: relative; font-family: var(--f-d); font-weight: 870; font-size: clamp(2.9rem, 7.4vw, 6.6rem); line-height: .94; letter-spacing: -.045em; margin: 0; isolation: isolate; }
.tt-seps { position: absolute; inset: 0; pointer-events: none; }
.tt-sep { position: absolute; inset: 0; mix-blend-mode: multiply; transition: transform .45s var(--ease); }
.tt-sep.is-c { color: var(--c); } .tt-sep.is-m { color: var(--m); } .tt-sep.is-y { color: var(--y); }
.tt-k { position: relative; color: var(--ink); mix-blend-mode: multiply; }
.tt-hero-title:hover .tt-sep.is-c { transform: translate(4px, -3px); }
.tt-hero-title:hover .tt-sep.is-m { transform: translate(-4px, 2px); }
.tt-hero-title:hover .tt-sep.is-y { transform: translate(2px, 4px); }
.tt-hero-lede { font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.5; max-width: 40ch; margin: 1.6rem 0 0; color: var(--ink-2); }
.tt-hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 0; }
.tt-hero-art { margin: 0; }
.tt-raster { position: relative; aspect-ratio: 1; width: 100%; max-width: 540px; margin-inline: auto; }
.tt-plate { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.tt-hero-art:has(input[data-plate="c"]:not(:checked)) .tt-plate.is-c,
.tt-hero-art:has(input[data-plate="m"]:not(:checked)) .tt-plate.is-m,
.tt-hero-art:has(input[data-plate="y"]:not(:checked)) .tt-plate.is-y,
.tt-hero-art:has(input[data-plate="k"]:not(:checked)) .tt-plate.is-k { opacity: 0; transform: scale(.98); }
.tt-toggles { border: 0; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.tt-toggles legend { font-family: var(--f-m); font-size: .76rem; color: var(--ink-2); text-align: center; width: 100%; padding: 0; margin-bottom: .55rem; }
.tt-tog { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .25rem .65rem .25rem .5rem; border: 2px solid var(--ink); background: var(--vit); font-family: var(--f-d); font-weight: 600; font-size: .95rem; cursor: pointer; user-select: none; transition: background-color .2s; }
.tt-tog:hover { background: var(--papper); }
.tt-tog input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.tt-tog-sw { width: 14px; height: 14px; border: 1px solid var(--ink); }
.tt-tog.is-c .tt-tog-sw { background: var(--c); } .tt-tog.is-m .tt-tog-sw { background: var(--m); } .tt-tog.is-y .tt-tog-sw { background: var(--y); } .tt-tog.is-k .tt-tog-sw { background: var(--ink); }
.tt-tog:has(input:not(:checked)) { background: transparent; border-style: dashed; color: var(--ink-2); }
.tt-tog:has(input:focus-visible) { outline: 3px solid var(--c-d); outline-offset: 2px; }
.tt-hero-art figcaption { font-size: 1.02rem; line-height: 1.45; color: var(--ink-2); max-width: 44ch; margin: 1rem auto 0; text-align: center; font-style: italic; }
.tt-strip.is-hero { margin: clamp(2rem, 4vw, 3rem) calc(clamp(1.3rem, 4.5vw, 4rem) * -1) 0; width: auto; }

/* Inpassning när sidan laddas: separationerna och plåtarna glider i pass. */
@media (prefers-reduced-motion: no-preference) {
	.tt-sep.is-c { animation: tt-in-c 1.3s var(--ease) .2s both; }
	.tt-sep.is-m { animation: tt-in-m 1.3s var(--ease) .32s both; }
	.tt-sep.is-y { animation: tt-in-y 1.3s var(--ease) .44s both; }
	.tt-plate.is-c { animation: tt-in-c 1.5s var(--ease) .3s both; }
	.tt-plate.is-m { animation: tt-in-m 1.5s var(--ease) .4s both; }
	.tt-plate.is-y { animation: tt-in-y 1.5s var(--ease) .5s both; }
	@keyframes tt-in-c { from { translate: -14px 8px; } to { translate: 0 0; } }
	@keyframes tt-in-m { from { translate: 12px -9px; } to { translate: 0 0; } }
	@keyframes tt-in-y { from { translate: 7px 13px; } to { translate: 0 0; } }
}

/* ---------- Sektioner ---------- */

.tt-section { padding-block: clamp(3.5rem, 8vw, 6.5rem) 0; }
.tt-band { margin-top: clamp(4rem, 9vw, 7rem) !important; padding-block: clamp(3.5rem, 8vw, 6rem); }
.tt-band.is-svart { background: var(--ink); color: var(--papper); }
.tt-band.is-svart .tt-sec-title, .tt-band.is-svart .tt-sec-nr { color: var(--papper); }
.tt-band.is-svart .tt-sec-lede { color: #C3C6C9; }
.tt-band + .tt-section { padding-top: clamp(4rem, 9vw, 7rem); }

/* Guiderna */
.tt-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem 1.8rem; }
.tt-guide { --pl: var(--c); position: relative; background: var(--vit); padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); box-shadow: 0 0 0 var(--pl); }
.tt-guide.is-m { --pl: var(--m); } .tt-guide.is-y { --pl: var(--y); } .tt-guide.is-k { --pl: var(--ink); }
.tt-guide::before { content: ""; display: block; height: 12px; margin: 0 -1.5rem 1.2rem; background: var(--pl); }
.tt-guide > .tt-crops { --o: 10px; --l: 8px; --cm-c: var(--ink-2); }
.tt-guide:hover, .tt-guide:focus-within { transform: translate(-4px, -4px); box-shadow: 7px 7px 0 var(--pl); }
.tt-guide-top { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; font-family: var(--f-m); font-size: .74rem; color: var(--ink-2); margin: 0 0 1.1rem; }
.tt-guide-sw, .tt-kicker .tt-guide-sw { width: 12px; height: 12px; background: var(--pl, var(--c)); border: 1px solid var(--ink); }
.tt-guide-t { font-family: var(--f-d); font-weight: 850; font-size: clamp(1.5rem, 2vw, 1.85rem); letter-spacing: -.03em; line-height: 1.02; margin: 0; }
.tt-guide-t a { color: var(--ink); text-decoration: none; }
.tt-guide-t a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.tt-guide-t a:focus-visible { outline: none; }
.tt-guide:has(a:focus-visible) { outline: 3px solid var(--c-d); outline-offset: 4px; }
.tt-guide-sub { font-style: italic; font-size: 1.15rem; line-height: 1.3; margin: .5rem 0 .8rem; color: var(--ink); }
.tt-guide-e { font-size: 1.04rem; line-height: 1.45; color: var(--ink-2); margin: 0 0 1.2rem; }
.tt-guide-more { margin: auto 0 0; font-family: var(--f-d); font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: .5rem; }
.tt-guide-more::after { content: ""; width: 22px; height: 2px; background: var(--ink); transition: width .3s var(--ease); }
.tt-guide:hover .tt-guide-more::after { width: 36px; }

/* Senaste */
.tt-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.tt-lead-img, .tt-card-img { position: relative; display: block; background: var(--papper-2); }
.tt-lead-img img, .tt-card-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s var(--ease), box-shadow .4s var(--ease); box-shadow: 0 0 0 var(--c); }
.tt-lead-img > .tt-crops, .tt-card-img > .tt-crops { --o: 10px; --l: 8px; --cm-c: var(--ink-2); }
.tt-dots { position: absolute; inset: 0; pointer-events: none; opacity: 0; background-image: radial-gradient(circle at center, rgba(20, 21, 23, .55) 0 1.4px, transparent 1.9px); background-size: 6px 6px; mix-blend-mode: multiply; transition: opacity .4s var(--ease); }
.tt-lead:hover .tt-dots, .tt-card:hover .tt-dots { opacity: .7; }
.tt-lead:hover .tt-lead-img img, .tt-card:hover .tt-card-img img { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--c); }
.tt-lead-title { font-family: var(--f-d); font-weight: 850; font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 1rem; }
.tt-lead-title a, .tt-card-title a { color: var(--ink); text-decoration: underline 3px transparent; text-underline-offset: .14em; transition: text-decoration-color .3s var(--ease); }
.tt-lead-title a:hover, .tt-card-title a:hover { text-decoration-color: var(--c); }
.tt-lead-ex { font-size: 1.22rem; line-height: 1.5; color: var(--ink-2); margin: 0; }
.tt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.2rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2.4rem); }
.tt-card { position: relative; }
.tt-card-body { padding-top: 1.1rem; }
.tt-card-title { font-family: var(--f-d); font-weight: 800; font-size: 1.42rem; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .6rem; }
.tt-card-ex { font-size: 1.08rem; line-height: 1.45; color: var(--ink-2); margin: 0; }
.tt-noimg { display: grid; place-items: center; aspect-ratio: 3 / 2; color: var(--ink-2); background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent) 0 1.6px, transparent 2.1px) 0 0 / 9px 9px, var(--papper-2); }
.tt-noimg .tt-reg { width: 22%; height: auto; stroke-width: .8; }
.tt-card.is-page { background: var(--vit); padding: 1.3rem 1.4rem 1.5rem; border-top: 6px solid var(--ink); }

/* Sättkasten */
.tt-case { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border: 3px solid #3A3D42; background: #3A3D42; }
.tt-fack { background: #1B1C1F; margin: 0; padding: 1.15rem 1.25rem 1.3rem; box-shadow: inset 0 0 0 1px #3A3D42, inset 0 6px 10px -6px rgba(0, 0, 0, .9); transition: background-color .25s; }
.tt-fack.w2 { grid-column: span 2; }
.tt-fack dt { font-family: var(--f-d); font-weight: 850; font-size: 1.5rem; letter-spacing: -.03em; color: var(--papper); margin: 0 0 .4rem; transition: color .25s; }
.tt-fack dd { margin: 0; font-size: 1.05rem; line-height: 1.42; color: #C3C6C9; }
.tt-fack:hover { background: #222327; }
.tt-fack:hover dt { color: var(--c); }

/* Avsändaren */
.tt-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.tt-about-quote { margin: 0; padding: 0 0 0 clamp(1.2rem, 3vw, 2.2rem); border-left: 8px solid var(--c); }
.tt-about-quote p { font-style: italic; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.22; margin: 0; letter-spacing: -.01em; }
.tt-about-text .tt-sec-title { margin-bottom: 1.2rem; }
.tt-about-text p { font-size: 1.2rem; line-height: 1.55; }
.tt-about-note { font-family: var(--f-m); font-size: .86rem !important; line-height: 1.5 !important; color: var(--ink-2); border-top: 1px solid var(--gra); padding-top: .9rem; }

/* Ämnen */
.tt-topics { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.tt-topics li { border-top: 2px solid var(--ink); }
.tt-topics a { display: grid; grid-template-columns: 4rem minmax(0, 15rem) minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline; padding: 1.3rem .6rem; color: var(--ink); text-decoration: none; transition: background-color .25s, padding .3s var(--ease); }
.tt-topics a:hover { background: var(--c-l); padding-left: 1.2rem; }
.tt-topic-nr { font-family: var(--f-m); font-size: .9rem; font-weight: 700; }
.tt-topic-t { font-family: var(--f-d); font-weight: 850; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.03em; line-height: 1.05; }
.tt-topic-d { font-size: 1.08rem; line-height: 1.45; color: var(--ink-2); }
.tt-topic-c { font-family: var(--f-m); font-size: .8rem; white-space: nowrap; }

/* ---------- Artiklar och sidor ---------- */

.tt-article { margin-top: clamp(2.4rem, 5vw, 4rem) !important; }
.tt-article-head { position: relative; max-width: 980px; padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 clamp(2rem, 4vw, 3rem) !important; background: var(--vit); }
.tt-article-head > .tt-crops { --o: 16px; --l: 11px; }
.tt-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-family: var(--f-m); font-size: .8rem; color: var(--ink-2); margin: 0 0 1.4rem; }
.tt-kicker .tt-reg { color: var(--c-d); font-size: 1.1rem; }
.tt-kicker a:not(.tt-sort) { color: var(--ink); font-weight: 600; }
.tt-kicker.is-c { --pl: var(--c); } .tt-kicker.is-m { --pl: var(--m); } .tt-kicker.is-y { --pl: var(--y); } .tt-kicker.is-k { --pl: var(--ink); }
.tt-article-title { font-family: var(--f-d); font-weight: 870 !important; font-size: clamp(2.3rem, 5.6vw, 4.6rem) !important; line-height: .98 !important; letter-spacing: -.032em !important; margin: 0 !important; max-width: 20ch; text-wrap: balance; }
.tt-dek { margin: 1.3rem 0 0 !important; }
.tt-dek p, .tt-dek .wp-block-post-excerpt__excerpt { font-style: italic; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.38; color: var(--ink-2); max-width: 46ch; margin: 0; }
.tt-byline { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-family: var(--f-m); font-size: .8rem; color: var(--ink-2); margin: 1.6rem 0 0; padding-top: 1rem; border-top: 1px solid var(--gra); }
.tt-byline-by { color: var(--ink); font-weight: 600; }
.tt-hero-img { position: relative; margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.tt-hero-img > .tt-crops { --o: 14px; --l: 10px; }
.tt-hero-img img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }

.tt-read { display: grid; grid-template-columns: 230px minmax(0, 680px); gap: clamp(2rem, 5vw, 5rem); justify-content: center; }
.tt-read.is-page { grid-template-columns: minmax(0, 720px); }
.tt-rail { position: relative; }
.tt-toc { position: sticky; top: 1.5rem; font-family: var(--f-d); }
.tt-toc-t { font-family: var(--f-m); font-size: .78rem; color: var(--ink-2); margin: 0 0 .8rem; display: flex; align-items: center; gap: .5rem; }
.tt-toc-t::before { content: ""; width: 34px; height: 8px; background: linear-gradient(90deg, var(--c) 0 25%, var(--m) 0 50%, var(--y) 0 75%, var(--ink) 0); }
.tt-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 2px solid var(--gra); }
.tt-toc li { counter-increment: toc; }
.tt-toc a { display: grid; grid-template-columns: 1.8rem 1fr; gap: .2rem; padding: .45rem 0 .45rem .8rem; margin-left: -2px; border-left: 2px solid transparent; font-size: .95rem; font-weight: 500; line-height: 1.25; color: var(--ink-2); text-decoration: none; min-height: 24px; }
.tt-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-m); font-size: .74rem; padding-top: .15rem; }
.tt-toc a:hover { color: var(--ink); border-left-color: var(--c); background: var(--c-l); }

.tt-body { font-size: clamp(1.2rem, 1.15rem + .3vw, 1.34rem); line-height: 1.58; }
.tt-body > * { margin-block: 0 1.1em; }
.tt-body > p:first-child::first-letter { font-family: var(--f-d); font-weight: 900; float: left; font-size: 4.1em; line-height: .8; margin: .08em .1em 0 0; color: var(--ink); text-shadow: 3px 2px 0 var(--c); }
.tt-body h2 { font-family: var(--f-d); font-weight: 820; font-size: clamp(1.6rem, 2.6vw, 2.05rem); line-height: 1.08; letter-spacing: -.03em; margin: 2.4em 0 .7em; scroll-margin-top: 1.5rem; }
.tt-body h2::before { content: ""; display: block; width: 44px; height: 7px; margin-bottom: .75rem; background: linear-gradient(90deg, var(--c) 0 25%, var(--m) 0 50%, var(--y) 0 75%, var(--ink) 0); }
.tt-body h3 { font-family: var(--f-d); font-weight: 750; font-size: clamp(1.25rem, 1.8vw, 1.42rem); line-height: 1.15; letter-spacing: -.02em; margin: 1.8em 0 .5em; }
.tt-body ul, .tt-body ol { padding-left: 1.4em; }
.tt-body li { margin-bottom: .4em; }
.tt-body ul > li::marker { content: "■  "; color: var(--c-d); font-size: .7em; }
.tt-body ol > li::marker { font-family: var(--f-m); font-size: .85em; font-weight: 700; color: var(--ink); }
.tt-body blockquote { margin-inline: 0; padding-left: 1.2rem; border-left: 4px solid var(--c); font-style: italic; }
.tt-body a { color: var(--c-d); }
.tt-body a:hover { color: var(--ink); }
.tt-body strong { font-weight: 700; }
.tt-body table { width: 100%; border-collapse: collapse; font-size: .9em; margin: 1.6em 0; }
.tt-body caption { text-align: left; font-family: var(--f-m); font-size: .75rem; color: var(--ink-2); padding-bottom: .5rem; }
.tt-body th, .tt-body td { text-align: left; padding: .55rem .7rem .55rem 0; border-bottom: 1px solid var(--gra); vertical-align: top; }
.tt-body th { font-family: var(--f-d); font-weight: 700; font-size: .85em; border-bottom: 2px solid var(--ink); }
.tt-body td:first-child { font-family: var(--f-m); font-size: .82em; white-space: nowrap; }
.tt-tabell { overflow-x: auto; margin: 1.6em 0; }
.tt-tabell table { margin: 0; min-width: 480px; }

.tt-fakta { background: var(--vit); border: 2px solid var(--ink); margin: 2em 0 !important; position: relative; }
.tt-fakta-t { margin: 0; background: var(--ink); color: var(--papper); font-family: var(--f-d); font-weight: 700; font-size: 1rem; padding: .55rem 1.1rem; display: flex; align-items: center; gap: .6rem; }
.tt-fakta-t::before { content: ""; width: 12px; height: 12px; background: var(--c); }
.tt-fakta ul { list-style: none; margin: 0; padding: 1rem 1.2rem 1.1rem; font-size: .95em; }
.tt-body .tt-fakta li::marker { content: ""; }
.tt-fakta li { position: relative; padding-left: 1.9rem; margin-bottom: .45em; }
.tt-fakta li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; border: 2px solid var(--ink); }
.tt-fakta li::after { content: ""; position: absolute; left: 4px; top: .45em; width: 6px; height: 9px; border: solid var(--c-d); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.tt-notis { background: var(--c-l); padding: 1rem 1.2rem; border-left: 6px solid var(--c); font-size: .95em; }
.tt-check { font-family: var(--f-m); font-size: .82rem; line-height: 1.55; color: var(--ink-2); border-top: 2px solid var(--ink); padding-top: 1rem; margin-top: 2.5rem; }
.tt-author { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-top: 3rem; padding-top: 1.6rem; border-top: 2px solid var(--ink); }
.tt-author-l { font-family: var(--f-m); font-size: .76rem; color: var(--ink-2); margin: 0; }
.tt-author-name { font-family: var(--f-d); font-weight: 800; font-size: 1.3rem; margin: .1rem 0 .4rem; letter-spacing: -.02em; }
.tt-author-bio { font-size: 1.05rem; line-height: 1.5; color: var(--ink-2); margin: 0; }
.tt-more { padding-top: clamp(3.5rem, 7vw, 5.5rem); }

/* ---------- Arkiv, sök, 404 ---------- */

.tt-archive { padding-bottom: 2rem; }
.tt-arch-head { position: relative; background: var(--vit); margin: clamp(2.4rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.4rem, 3vw, 2.4rem); max-width: 980px; }
.tt-arch-head > .tt-crops { --o: 16px; --l: 11px; }
.tt-arch-title { font-family: var(--f-d); font-weight: 870; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.032em; margin: 0; }
.tt-arch-desc { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); max-width: 58ch; margin: 1rem 0 0; }
.tt-arch-count { font-family: var(--f-m); font-size: .85rem; margin: 1rem 0 0; }
.tt-search-form { margin-top: 1.4rem; max-width: 640px; }
.tt-search-form label { display: block; font-family: var(--f-d); font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.tt-search-form div { display: flex; }
.tt-search-form input { flex: 1; min-width: 0; min-height: 50px; font: inherit; font-size: 1.15rem; padding: .5rem .9rem; border: 2px solid var(--ink); border-right: 0; background: var(--vit); color: var(--ink); border-radius: 0; }
.tt-search-form input::placeholder { color: #6A6D72; }
.tt-search-form button { min-height: 50px; padding: 0 1.3rem; font-family: var(--f-d); font-weight: 700; font-size: 1rem; background: var(--ink); color: var(--papper); border: 2px solid var(--ink); cursor: pointer; border-radius: 0; }
.tt-search-form button:hover { background: var(--c-d); border-color: var(--c-d); }
.tt-search-form.is-big { margin: 0 0 clamp(3rem, 6vw, 4.5rem); }
.tt-empty { font-size: 1.25rem; max-width: 50ch; }
.tt-pages ul { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 3rem 0 0; font-family: var(--f-d); }
.tt-pages a, .tt-pages span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 .8rem; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
.tt-pages .current { background: var(--ink); color: var(--papper); }

/* ---------- Sidfot ---------- */

.tt-footer { background: var(--ink); color: var(--papper); margin-top: clamp(4.5rem, 9vw, 7rem) !important; padding-bottom: 1.6rem; }
.tt-footer .tt-strip.is-foot { width: auto; height: 12px; margin-bottom: clamp(2.6rem, 5vw, 4rem) !important; }
.tt-foot-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.tt-foot-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--f-d); font-weight: 850; font-size: 1.5rem; letter-spacing: -.03em; margin: 0 0 1rem; }
.tt-foot-brand img { filter: invert(1) hue-rotate(180deg); }
.tt-foot-about p { font-size: 1.06rem; line-height: 1.5; color: #D5D7D9; max-width: 46ch; }
.tt-foot-about .tt-disclaimer { font-family: var(--f-m); font-size: .78rem; line-height: 1.55; color: #B5B8BC; border-top: 1px solid #3A3D42; padding-top: .9rem; }
.tt-foot-h { font-family: var(--f-m) !important; font-weight: 700 !important; font-size: .8rem !important; letter-spacing: 0 !important; color: #B5B8BC !important; margin: .4rem 0 .9rem !important; }
.tt-foot-col ul { list-style: none; margin: 0; padding: 0; }
.tt-foot-col li { margin: 0; }
.tt-foot-col a, .tt-foot-about a { display: inline-flex; align-items: center; min-height: 36px; color: var(--papper); text-decoration: none; font-family: var(--f-d); font-weight: 500; font-size: 1rem; }
.tt-foot-col a:hover { color: var(--c); text-decoration: underline; }
.tt-foot-slug { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.6rem; font-family: var(--f-m); font-size: .74rem; color: #B5B8BC; border-top: 1px solid #3A3D42; padding-top: 1.2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; }
.tt-foot-slug .tt-reg { color: var(--c); font-size: 1rem; }

/* ---------- Rörelse vid skroll (förstärkning; innehållet syns alltid) ---------- */

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.tt-card, .tt-guide, .tt-lead { animation: tt-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
		@keyframes tt-rise { from { translate: 0 28px; } to { translate: 0 0; } }
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Brytpunkter ---------- */

@media (max-width: 1180px) {
	.tt-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tt-read { grid-template-columns: minmax(0, 680px); }
	.tt-rail { display: none; }
	.tt-foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.tt-foot-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.tt-hero-grid, .tt-lead, .tt-about { grid-template-columns: minmax(0, 1fr); }
	.tt-raster { max-width: 420px; }
	.tt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tt-case { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tt-topics a { grid-template-columns: 3rem minmax(0, 1fr) auto; }
	.tt-topic-d { grid-column: 2 / -1; grid-row: 2; }
	.tt-sec-head { grid-template-columns: minmax(0, 1fr); }
	.tt-sec-link { grid-column: 1 !important; grid-row: auto; margin-top: 1rem; }
}
@media (max-width: 600px) {
	.tt-sheet { margin: 18px 6px; }
	.tt-sheet > .tt-crops { --o: 14px; --l: 9px; }
	.tt-slug { left: 1.1rem; right: 1.1rem; top: -16px; font-size: .62rem; gap: 1rem; }
	.tt-slug span:nth-child(n+4) { display: none; }
	.tt-hero-title { font-size: clamp(2.5rem, 12.5vw, 3.6rem); }
	.tt-guides, .tt-cards, .tt-case { grid-template-columns: minmax(0, 1fr); }
	.tt-fack.w2 { grid-column: auto; }
	.tt-fack { padding: .9rem 1rem 1rem; }
	.tt-fack dt { font-size: 1.3rem; }
	.tt-foot-grid { grid-template-columns: minmax(0, 1fr); }
	.tt-article-head, .tt-arch-head { margin-inline: 4px !important; }
	.tt-hero-img img { aspect-ratio: 4 / 3; }
	.tt-brand-name { font-size: 1.3rem; }
	.tt-brand-sub { font-size: .68rem; }
	.tt-topics a { gap: .4rem 1rem; padding: 1.1rem .2rem; }
	.tt-tabell table { min-width: 0; }
}

/* ---------- Utskrift: en sajt om tryck ska gå att skriva ut ---------- */

@media print {
	.tt-header nav, .tt-footer, .tt-rail, .tt-more, .tt-hero-art, .tt-strip, .tt-author, .skip-link { display: none !important; }
	body { background: #fff; font-size: 11pt; }
	.tt-article-head, .tt-sheet, .tt-arch-head { background: #fff; box-shadow: none; }
	.tt-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #444; }
	.tt-read { display: block; }
}

/* Mobilmenyn får en kontrollremsa i botten, som ett ark ur pressen. */
.tt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content::after { content: ""; display: block; width: 100%; height: 12px; margin-top: 2rem; background: linear-gradient(90deg, var(--c) 0 12.5%, var(--m) 0 25%, var(--y) 0 37.5%, var(--ink) 0 50%, var(--cm) 0 62.5%, var(--my) 0 75%, var(--cy) 0 87.5%, #9D9FA2 0); }

/* Guidekorten inne i en sida (Guider). */
.tt-body .tt-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.5rem; font-size: 1rem; }
.tt-body .tt-guide-t { margin: 0; font-size: clamp(1.5rem, 2vw, 1.85rem); }
.tt-body .tt-guide-t::before { display: none; }
.tt-body .tt-guide p { margin-block: 0 .8rem; }
@media (max-width: 600px) { .tt-body .tt-guides { grid-template-columns: minmax(0, 1fr); } }
.tt-body .tt-guide-t a { color: var(--ink); text-decoration: none; }
