/*
 * Overlapskortet (page-overlapskort.php + ptg-overlapskort.js).
 * Alt er under .ptg-ok og ptg-ok-, saa intet lækker ud i resten af temaet.
 *
 * Segmentfarverne er dataviz-referencepaletten (valideret 4.11.2026: lysheds-
 * baand, mætning og CVD-adskillelse bestaar mod hvid flade). Tre farver
 * ligger under 3:1 mod fladen; det er lovligt, fordi hvert segment altid har
 * en tekstetiket, og matrixen viser tallene som tabel. Varmekortet bruger
 * temaets datafarve, ikke accentfarven, som er reserveret til links.
 */
.ptg-ok {
	--ptg-ok-s1: #2a78d6; --ptg-ok-s2: #eb6834; --ptg-ok-s3: #1baf7a; --ptg-ok-s4: #eda100;
	--ptg-ok-s5: #e87ba4; --ptg-ok-s6: #008300; --ptg-ok-s7: #6250d6; --ptg-ok-s8: #e34948;
	--ptg-ok-dim: 0.13;
}
.ptg-ok button { font: inherit; color: inherit; }
.ptg-ok-h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.ptg-ok-intro { margin-bottom: 1.5rem; }
/* Introen fylder hele skallen som resten af siden (Paw 4.11.2026), ogsaa indledningen. */
.ptg-ok-intro .ptg-lede { max-width: none; }

.ptg-ok-stats { display: flex; flex-wrap: wrap; gap: .75rem 2.75rem; margin: 0 0 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--ptg-line); }
.ptg-ok-stat b { display: block; font-family: var(--ptg-serif); font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ptg-ok-stat span { color: var(--ptg-muted); font-size: .875rem; }

/* Raekke 1: segmentknapperne. Raekke 2: soegning og "Vælg flere" sammen. */
.ptg-ok-controls { display: grid; gap: 10px; margin-bottom: 14px; }
.ptg-ok-segs, .ptg-ok-row2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ptg-ok-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ptg-line); background: var(--ptg-base);
	border-radius: 999px; padding: 6px 12px 6px 9px; font-size: .875rem; cursor: pointer; line-height: 1.2; }
.ptg-ok-chip:hover { border-color: var(--ptg-muted); }
.ptg-ok-chip[aria-pressed="true"] { background: var(--ptg-ink); color: var(--ptg-base); border-color: var(--ptg-ink); }
.ptg-ok-sw { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.ptg-ok-search { position: relative; }
.ptg-ok-search input { font: inherit; font-size: .9rem; color: var(--ptg-ink); background: var(--ptg-base); border: 1px solid var(--ptg-line);
	border-radius: 8px; padding: 7px 11px; width: 220px; }
.ptg-ok-search ul { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; margin: 0; padding: 4px; list-style: none;
	background: var(--ptg-base); border: 1px solid var(--ptg-line); border-radius: 8px; width: 260px; max-height: 280px; overflow: auto;
	box-shadow: var(--ptg-shadow); }
.ptg-ok-search li button { all: unset; display: flex; gap: 8px; align-items: center; width: 100%; padding: 6px 8px; border-radius: 5px; cursor: pointer; font-size: .9rem; box-sizing: border-box; }
.ptg-ok-search li button:hover, .ptg-ok-search li button:focus-visible { background: var(--ptg-surface); }
.ptg-ok-ingen { padding: 6px 8px; color: var(--ptg-muted); font-size: .9rem; }

.ptg-ok-explorer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ptg-ok-explorer[hidden], .ptg-ok-controls[hidden], .ptg-ok-namebox[hidden] { display: none; }
.ptg-ok-mapcard { background: var(--ptg-base); border: 1px solid var(--ptg-line); border-radius: 12px; position: relative; padding: 8px; }
.ptg-ok-mapcard > svg { display: block; width: 100%; height: auto; }
.ptg-ok-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 4px 12px 10px; color: var(--ptg-muted); font-size: .8rem; }
.ptg-ok-legend svg { display: inline-block; vertical-align: middle; margin-right: 6px; }
.ptg-ok-tip { position: absolute; pointer-events: none; background: var(--ptg-ink); color: var(--ptg-base); border-radius: 8px; padding: 8px 10px;
	font-size: .8125rem; line-height: 1.4; max-width: 260px; z-index: 4; }
.ptg-ok-tip[hidden] { display: none; }
.ptg-ok-tip b { display: block; font-size: .875rem; margin-bottom: 2px; }
.ptg-ok-tip-klik { display: block; margin-top: 6px; opacity: .75; }
.ptg-ok-hvorfor-liste { display: grid; gap: 12px; }
.ptg-ok-panel p.ptg-ok-hvorfor { margin: 5px 0 0; font-size: .8125rem; line-height: 1.5; }

.ptg-ok-panel { background: var(--ptg-base); border: 1px solid var(--ptg-line); border-radius: 12px; padding: 22px 22px 24px; display: grid; gap: 18px; min-width: 0; }
.ptg-ok-panel h2 { font-family: var(--ptg-serif); font-size: 1.6rem; line-height: 1.15; margin: 0; display: flex; align-items: center; gap: 10px; }
.ptg-ok-panel h2 .ptg-ok-sw { width: 14px; height: 14px; }
.ptg-ok h3 { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ptg-muted); margin: 0 0 10px; }
.ptg-ok-panel p { margin: 0; color: var(--ptg-muted); }
.ptg-ok-panel p.ptg-ok-smaa { margin: -4px 0 10px; font-size: .875rem; }
.ptg-ok-big { color: var(--ptg-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ptg-ok-bars { display: grid; gap: 7px; }
.ptg-ok-bar { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 2.2em; gap: 10px; align-items: center; font-size: .875rem; }
.ptg-ok-bar button { all: unset; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptg-ok-bar button:hover { text-decoration: underline; }
.ptg-ok-bar button:focus-visible { outline: 2px solid var(--ptg-accent); outline-offset: 2px; }
.ptg-ok-track { height: 10px; }
.ptg-ok-fill { height: 100%; border-radius: 0 3px 3px 0; min-width: 2px; }
.ptg-ok-n { text-align: right; font-size: .8125rem; color: var(--ptg-muted); font-variant-numeric: tabular-nums; }
.ptg-ok-names { display: flex; flex-wrap: wrap; gap: 5px; }
.ptg-ok-names button { border: 1px solid var(--ptg-line); background: transparent; border-radius: 6px; padding: 3px 8px; font-size: .8125rem; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.ptg-ok-names button:hover { border-color: var(--ptg-muted); }
.ptg-ok-names .ptg-ok-sw { width: 7px; height: 7px; }
.ptg-ok-back, .ptg-ok-clear { all: unset; cursor: pointer; color: var(--ptg-accent); font-size: .875rem; justify-self: start; }
.ptg-ok-back:hover, .ptg-ok-clear:hover { text-decoration: underline; }
.ptg-ok-back:focus-visible, .ptg-ok-clear:focus-visible { outline: 2px solid var(--ptg-accent); outline-offset: 2px; }
.ptg-ok-tag { font-style: italic; }
.ptg-ok-hint { font-size: .8125rem; }
.ptg-ok-cov-scroll { overflow-x: auto; }
.ptg-ok-cov { border-collapse: collapse; font-size: .8125rem; }
.ptg-ok-cov th, .ptg-ok-cov td { padding: 5px 8px; border-bottom: 1px solid var(--ptg-line); }
.ptg-ok-cov thead th { vertical-align: bottom; text-align: center; font-weight: 600; max-width: 7.5em; line-height: 1.25; }
.ptg-ok-cov thead button { all: unset; cursor: pointer; }
.ptg-ok-cov thead button:hover { text-decoration: underline; }
.ptg-ok-cov tbody th { text-align: left; font-weight: 500; color: var(--ptg-muted); white-space: nowrap; }
.ptg-ok-cov td { text-align: center; }
.ptg-ok-cv { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; box-sizing: border-box; }
.ptg-ok-cv.ptg-ok-ring { border: 2.5px solid; background: transparent; }
.ptg-ok-namebox { background: var(--ptg-base); border: 1px solid var(--ptg-line); border-radius: 12px; padding: 20px 22px 22px; margin-top: 20px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; }

.ptg-ok-sec { margin-top: 0; }
.ptg-ok-sec + .ptg-ok-sub { margin-top: -.5rem; }
.ptg-ok-sub { color: var(--ptg-muted); margin: 0 0 18px; max-width: 70ch; }
.ptg-ok-findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--ptg-ink); margin-bottom: 3rem; }
.ptg-ok-finding { padding: 16px 20px 6px 0; }
.ptg-ok-finding b { display: block; font-family: var(--ptg-serif); font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.ptg-ok-finding p { margin: 0; color: var(--ptg-muted); font-size: .925rem; }

.ptg-ok-mx-scroll { overflow-x: auto; background: var(--ptg-base); border: 1px solid var(--ptg-line); border-radius: 12px; padding: 14px; }
.ptg-ok-mx { border-collapse: separate; border-spacing: 3px; font-size: .8125rem; min-width: 760px; width: 100%; }
.ptg-ok-mx th { font-weight: 500; color: var(--ptg-muted); text-align: left; padding: 4px 6px; }
.ptg-ok-mx thead th { vertical-align: bottom; font-size: .8rem; line-height: 1.25; }
.ptg-ok-mx tbody th { white-space: nowrap; }
.ptg-ok-mx tbody th .ptg-ok-sw { margin-right: 7px; vertical-align: -1px; }
.ptg-ok-mx td { text-align: center; padding: 11px 4px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.ptg-ok-mx td[data-j] { cursor: pointer; }
.ptg-ok-mx td[data-j]:hover { outline: 2px solid var(--ptg-ink); }
.ptg-ok-mx td.ptg-ok-diag { color: var(--ptg-muted); background: repeating-linear-gradient(135deg, transparent 0 4px, var(--ptg-line) 4px 5px); }
.ptg-ok-mx td.ptg-ok-zero { color: var(--ptg-muted); }
.ptg-ok-mx .ptg-ok-corner { font-size: .75rem; }
.ptg-ok-muted { color: var(--ptg-muted); }
.ptg-ok-kilde { margin-top: 1rem; }

.ptg-ok svg text { font-family: inherit; }
.ptg-ok-hub-label { font-size: 23px; font-weight: 700; fill: var(--ptg-ink); }
.ptg-ok-hub-count { font-size: 16px; fill: var(--ptg-muted); font-variant-numeric: tabular-nums; }
.ptg-ok-dot, .ptg-ok-hub { cursor: pointer; }
.ptg-ok-dot:focus-visible, .ptg-ok-hub:focus-visible { outline: 2px solid var(--ptg-accent); }
.ptg-ok-hit { fill: transparent; }
.ptg-ok-lkhit { stroke: transparent; stroke-width: 10; pointer-events: none; cursor: pointer; }
.ptg-ok-lkhit.ptg-ok-on { pointer-events: stroke; }
/* Tydeligere linjer (Paw 4.11.2026): .16 og 1,1 var svaere at se. Layoutet med kortet til venstre og
   panelet til hoejre er bevaret; det brede kort med panelet under (0.6.11) blev rullet tilbage. */
.ptg-ok-lk { opacity: .5; }
.ptg-ok-stille, .ptg-ok-stille * { pointer-events: none; cursor: default; }

@media (max-width: 900px) {
	.ptg-ok-explorer { grid-template-columns: minmax(0, 1fr); }
	.ptg-ok-search { flex: 1 1 220px; }
	.ptg-ok-search input { width: 100%; }
}
/* Trykflader paa mindst 40 px paa telefon (tools/mobile_audit.cjs, TAP_MIN). */
@media (max-width: 640px) {
	.ptg-ok-multi { display: none; }
	.ptg-ok-chip, .ptg-ok-names button, .ptg-ok-search input, .ptg-ok-search li button { min-height: 40px; }
	.ptg-ok-bar button, .ptg-ok-back, .ptg-ok-clear, .ptg-ok-cov thead button { min-height: 40px; display: flex; align-items: center; }
	.ptg-ok-panel { padding: 18px 16px 20px; }
	.ptg-ok-stat b { font-size: 2rem; }
}
@media (prefers-reduced-motion: no-preference) {
	.ptg-ok-dot circle, .ptg-ok-lk { transition: opacity .18s; }
}
