/* ==========================================================================
   Kulturpool Child 1.1.0
   Lively magazine look for an independent Swedish culture magazine: a plum information strip, an off-white masthead
   with the pool mark and a Playfair wordmark over a mustard hairline, a cover-style intro with today's date, the lead
   story beside a numbered list, colour-coded sections (avdelningar), a mosaic of cards, a plum "Om Kulturpool" band,
   section rows, editorial article headers with a drop cap, and a four-column plum footer.
   Headings Playfair Display 700/800 (+ 700 italic), body Source Sans 3 400/600/700 (+ 400 italic), both self-hosted,
   SIL Open Font License. Mobile first; no external requests.

   Colour pairs used for text (WCAG 2.2 AA, normal text >= 4.5:1; WCAG relative-luminance formula):
   #1d1420 on #faf6ef 16.6 · #1d1420 on #fff 17.9 · #3b2f3d on #faf6ef 11.7 · #3b2f3d on #fff 12.7 ·
   #665a68 on #faf6ef 6.0 · #665a68 on #fff 6.5 · #665a68 on #f2ebdf 5.5 · #4a1f4f on #faf6ef 12.2 ·
   #4a1f4f on #fff 13.1 · #4a1f4f on #f2ebdf 11.1 · #fff on #4a1f4f 13.1 · #faf6ef on #2b0f2e 16.1 ·
   #e8dccb on #2b0f2e 12.8 · #e8dccb on #4a1f4f 9.7 · #e8dccb on #3a1840 11.2 · #faf6ef on #3a1840 14.1 ·
   #d8a31a on #2b0f2e 7.6 · #d8a31a on #4a1f4f 5.7 · #f3d27a on #2b0f2e 11.8 · #f3d27a on #4a1f4f 8.9 ·
   #8a6200 (mustard text) on #faf6ef 5.1 · #8a6200 on #fff 5.5 · #7a5600 on #faf6ef 6.2 ·
   #1d1420 on #d8a31a 7.8 · #1d1420 on #e6b94a 9.7.
   Section tones, white text on the tone / tone text on #faf6ef: 1 plum #4a1f4f 13.1 / 12.2 · 2 petrol #0f5e63
   7.5 / 7.0 · 3 karmin #a3203a 7.4 / 6.9 · 4 indigo #33408f 9.3 / 8.6 · 5 skog #2f6130 7.3 / 6.8 · 6 rost #9c3d12
   6.8 / 6.3 · 7 ockra #7a4f00 7.1 / 6.6 · 8 skiffer #3d4a5c 9.0 / 8.4.
   #d8a31a (mustard) is decoration only on light grounds (rules, dots, numbers drawn large, underline colour).
   Form borders #8a7f8c on #fff 3.8 (non-text, >= 3:1).
   ========================================================================== */

/* Fonts ------------------------------------------------------------------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/playfair-display-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/playfair-display-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-ext-700-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Tokens ------------------------------------------------------------------ */
:root {
	--kp-plum: #4a1f4f;
	--kp-plum-800: #3a1840;
	--kp-plum-900: #2b0f2e;
	--kp-mustard: #d8a31a;
	--kp-mustard-light: #e6b94a;
	--kp-mustard-pale: #f3d27a;
	--kp-mustard-text: #8a6200;
	--kp-ink: #1d1420;
	--kp-text: #3b2f3d;
	--kp-muted: #665a68;
	--kp-paper: #faf6ef;
	--kp-paper-2: #f2ebdf;
	--kp-sheet: #fff;
	--kp-rule: #e6dccd;
	--kp-rule-2: #d6c8b4;
	--kp-field: #8a7f8c;
	--kp-on-dark: #e8dccb;
	--kp-cream: #faf6ef;
	--kp-error: #a3203a;

	--kp-font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--kp-font-head: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

	--kp-wrap: 1240px;
	--kp-measure: 720px;
	--kp-gutter: clamp(16px, 3vw, 32px);
	--kp-section: clamp(48px, 6vw, 88px);
	--kp-radius: 4px;
	--kp-fast: .2s;
	--kp-shadow: 0 18px 40px rgba(43, 15, 46, .18);
	--kp-header-h: 78px;
	--kp-tone: var(--kp-plum);
}

/* Section tones: white text on the tone, tone text on paper (contrasts above). */
.kp-tone-1 { --kp-tone: #4a1f4f; }
.kp-tone-2 { --kp-tone: #0f5e63; }
.kp-tone-3 { --kp-tone: #a3203a; }
.kp-tone-4 { --kp-tone: #33408f; }
.kp-tone-5 { --kp-tone: #2f6130; }
.kp-tone-6 { --kp-tone: #9c3d12; }
.kp-tone-7 { --kp-tone: #7a4f00; }
.kp-tone-8 { --kp-tone: #3d4a5c; }

/* Base -------------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.kp-lock { overflow: hidden; }

body.kp-theme {
	margin: 0;
	background: var(--kp-paper);
	color: var(--kp-text);
	font-family: var(--kp-font);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.kp-theme h1, .kp-theme h2, .kp-theme h3, .kp-theme h4, .kp-theme h5, .kp-theme h6 {
	font-family: var(--kp-font-head);
	font-weight: 700;
	color: var(--kp-ink);
	line-height: 1.15;
	letter-spacing: 0;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.kp-theme a { color: var(--kp-plum); transition: color var(--kp-fast), background-color var(--kp-fast), border-color var(--kp-fast); }
.kp-theme a:hover { color: var(--kp-ink); }
.kp-theme :focus-visible { outline: 3px solid var(--kp-plum); outline-offset: 2px; }
.kp-theme ::selection { background: var(--kp-mustard-pale); color: var(--kp-ink); }
.kp-theme img { max-width: 100%; height: auto; }
.kp-theme mark { background: var(--kp-mustard-pale); color: var(--kp-ink); padding: 0 .15em; }
.kp-theme button, .kp-theme input, .kp-theme select, .kp-theme textarea { font-family: var(--kp-font); }
.kp-theme strong, .kp-theme b { font-weight: 700; }

.kp-theme .site.grid-container, .kp-theme #page { max-width: none; padding: 0; margin: 0; background: transparent; }
.kp-theme .site-content { display: block; padding: 0; background: transparent; }
.kp-theme .inside-article, .kp-theme .comments-area { background: transparent; }
.kp-theme .skip-link:focus { position: fixed; left: 8px; top: 8px; z-index: 1000; width: auto; height: auto; clip: auto; clip-path: none; background: var(--kp-plum-900); color: var(--kp-cream); padding: .7em 1.1em; font-weight: 700; text-decoration: none; border-radius: var(--kp-radius); }

.kp-container { width: 100%; max-width: calc(var(--kp-wrap) + 2 * var(--kp-gutter)); margin-inline: auto; padding-inline: var(--kp-gutter); box-sizing: border-box; }
.kp-container--text { max-width: calc(var(--kp-measure) + 2 * var(--kp-gutter)); }
.kp-main { display: block; min-height: 50vh; }
.kp-icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }

/* Buttons ------------------------------------------------------------------ */
.kp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em; box-sizing: border-box;
	min-height: 48px; padding: .75em 1.5em; border: 2px solid transparent; border-radius: 999px;
	font: 700 .9375rem/1.2 var(--kp-font); letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color var(--kp-fast), color var(--kp-fast), border-color var(--kp-fast);
}
.kp-btn .kp-icon { width: 18px; height: 18px; transition: transform var(--kp-fast); }
.kp-btn:hover .kp-icon--arrow { transform: translateX(3px); }
.kp-btn:hover .kp-icon--arrow-left { transform: translateX(-3px); }
.kp-theme .kp-btn--plum { background: var(--kp-plum); border-color: var(--kp-plum); color: #fff; }
.kp-theme .kp-btn--plum:hover { background: var(--kp-plum-900); border-color: var(--kp-plum-900); color: #fff; }
.kp-theme .kp-btn--mustard { background: var(--kp-mustard); border-color: var(--kp-mustard); color: var(--kp-ink); }
.kp-theme .kp-btn--mustard:hover { background: var(--kp-mustard-pale); border-color: var(--kp-mustard-pale); color: var(--kp-ink); }
.kp-theme .kp-btn--ghost { background: transparent; border-color: rgba(250, 246, 239, .7); color: var(--kp-cream); }
.kp-theme .kp-btn--ghost:hover { background: var(--kp-cream); border-color: var(--kp-cream); color: var(--kp-plum); }

/* Tags and chips ------------------------------------------------------------ */
.kp-theme .kp-tag {
	display: inline-flex; align-items: center; align-self: flex-start; min-height: 26px; box-sizing: border-box; padding: .2em .65em;
	background: var(--kp-tone); color: #fff; border-radius: 2px;
	font: 700 .75rem/1.2 var(--kp-font); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.kp-theme .kp-tag:hover { background: var(--kp-ink); color: #fff; }
.kp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.kp-chips li { margin: 0; }
.kp-theme .kp-chip {
	display: inline-flex; align-items: center; gap: .55em; min-height: 44px; box-sizing: border-box; padding: .35em 1.05em .35em .8em;
	background: var(--kp-sheet); color: var(--kp-ink); border: 1px solid var(--kp-rule-2); border-radius: 999px;
	font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none;
}
.kp-chip .kp-icon { width: 20px; height: 20px; color: var(--kp-tone); transition: color var(--kp-fast); }
.kp-chip__count { min-width: 1.7em; padding: .12em .45em; border-radius: 999px; background: var(--kp-paper-2); color: var(--kp-muted); font-size: .8125rem; text-align: center; }
.kp-theme .kp-chip:hover { background: var(--kp-tone); border-color: var(--kp-tone); color: #fff; }
.kp-chip:hover .kp-icon { color: #fff; }
.kp-chip:hover .kp-chip__count { background: rgba(255, 255, 255, .2); color: #fff; }
.kp-theme .kp-chip--tag { border-style: dashed; }

/* Header: information strip --------------------------------------------------- */
.kp-header { position: sticky; top: var(--kp-stick, 0px); z-index: 100; }
.admin-bar .kp-header { top: calc(var(--kp-stick, 0px) + 32px); }
.kp-masthead { background: var(--kp-plum-900); color: var(--kp-cream); }
.kp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 38px; font-size: .875rem; line-height: 1.4; }
.kp-topbar__note { display: flex; align-items: center; gap: .55em; min-width: 0; margin: 0; padding: 6px 0; font-weight: 600; }
.kp-topbar__note .kp-icon { width: 17px; height: 17px; color: var(--kp-mustard); }
.kp-topbar__menu { display: flex; align-items: center; flex: none; }
.kp-topbar__menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; }
.kp-topbar__menu li { display: flex; align-items: center; margin: 0; }
.kp-topbar__menu li + li::before { content: ""; width: 4px; height: 4px; margin: 0 12px; border-radius: 50%; background: var(--kp-mustard); }
.kp-theme .kp-topbar a { display: inline-flex; align-items: center; min-height: 32px; color: var(--kp-cream); font-weight: 600; text-decoration: none; }
.kp-theme .kp-topbar a:hover { color: var(--kp-mustard-pale); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 767.98px) {
	.kp-topbar { flex-direction: column; justify-content: center; gap: 0; padding-block: 4px; }
	.kp-topbar__note { justify-content: center; padding: 3px 0 0; text-align: center; font-size: .8125rem; }
	.kp-theme .kp-topbar a { min-height: 28px; font-size: .8125rem; }
}

/* Header: masthead bar ------------------------------------------------------- */
.kp-mainbar { position: relative; background: var(--kp-paper); box-shadow: inset 0 -1px 0 var(--kp-rule-2); transition: box-shadow var(--kp-fast); }
.kp-mainbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--kp-mustard) 0 62%, var(--kp-plum) 62% 74%, #0f5e63 74% 82%, #a3203a 82% 90%, #33408f 90%); pointer-events: none; }
.kp-header.is-stuck .kp-mainbar { box-shadow: inset 0 -1px 0 var(--kp-rule-2), 0 10px 24px rgba(43, 15, 46, .12); }
.kp-mainbar__inner { display: flex; align-items: center; gap: 16px; min-height: var(--kp-header-h); }
.kp-brand { display: flex; align-items: center; flex: none; min-width: 0; max-width: 100%; margin-right: clamp(8px, 1.6vw, 28px); padding-block: 10px; }
.kp-brand__logo { display: flex; }
.kp-theme .kp-brand__img { display: block; width: auto; height: auto; max-height: 56px; max-width: min(320px, 100%); object-fit: contain; }

/* Drawn logo */
.kp-theme .kp-badge { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: var(--kp-plum); text-decoration: none; }
.kp-badge__mark { display: flex; flex: none; }
.kp-badge .kp-mark { display: block; width: 44px; height: 44px; transition: transform .3s ease; }
.kp-theme a.kp-badge:hover .kp-mark { transform: rotate(-6deg); }
.kp-badge__text { display: flex; flex-direction: column; min-width: 0; }
.kp-badge__name { font-family: var(--kp-font-head); font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.kp-badge__sub { margin-top: 5px; color: var(--kp-muted); font-size: .6875rem; font-weight: 700; letter-spacing: .22em; line-height: 1.1; text-transform: uppercase; white-space: nowrap; }
.kp-theme a.kp-badge:hover { color: var(--kp-plum); }
.kp-theme .kp-badge--footer, .kp-theme a.kp-badge--footer:hover { color: var(--kp-cream); }
.kp-badge--footer .kp-mark { width: 52px; height: 52px; box-shadow: 0 0 0 2px rgba(250, 246, 239, .25); border-radius: 12px; }
.kp-badge--footer .kp-badge__name { font-size: 2rem; }
.kp-badge--footer .kp-badge__sub { color: var(--kp-on-dark); }

/* Navigation */
.kp-drawer { display: flex; align-items: stretch; justify-content: flex-start; flex: 1 1 auto; min-width: 0; gap: 12px; align-self: stretch; }
.kp-drawer .kp-search { display: none; }
.kp-nav { display: flex; min-width: 0; }
.kp-nav__list { list-style: none; display: flex; flex-wrap: nowrap; margin: 0 0 0 -12px; padding: 0; }
.kp-nav__list > li { position: relative; display: flex; margin: 0; }
.kp-theme .kp-nav__list > li > a { position: relative; display: flex; align-items: center; gap: 4px; padding: 0 clamp(8px, .9vw, 13px); color: var(--kp-ink); font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.kp-nav__list > li > a .kp-icon { width: 15px; height: 15px; transition: transform var(--kp-fast); }
.kp-nav__list > li > a::after { content: ""; position: absolute; left: clamp(8px, .9vw, 13px); right: clamp(8px, .9vw, 13px); bottom: calc(50% - 1.25em); height: 3px; border-radius: 2px; background: var(--kp-mustard); transform: scaleX(0); transform-origin: left; transition: transform var(--kp-fast); }
.kp-theme .kp-nav__list > li > a:hover, .kp-theme .kp-nav__list > li:focus-within > a,
.kp-theme .kp-nav__list > .current-menu-item > a, .kp-theme .kp-nav__list > .current-menu-ancestor > a, .kp-theme .kp-nav__list > .current-category-ancestor > a, .kp-theme .kp-nav__list > .current-post-ancestor > a { color: var(--kp-plum); }
.kp-nav__list > li > a:hover::after, .kp-nav__list > li:focus-within > a::after,
.kp-nav__list > .current-menu-item > a::after, .kp-nav__list > .current-menu-ancestor > a::after, .kp-nav__list > .current-category-ancestor > a::after, .kp-nav__list > .current-post-ancestor > a::after { transform: scaleX(1); }
.kp-nav__list > li:hover > a .kp-icon { transform: rotate(180deg); }
.kp-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px; z-index: 20; list-style: none; margin: 0; padding: 8px;
	background: var(--kp-sheet); border: 1px solid var(--kp-rule-2); border-top: 3px solid var(--kp-plum); border-radius: 0 0 var(--kp-radius) var(--kp-radius); box-shadow: var(--kp-shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--kp-fast), transform var(--kp-fast), visibility 0s var(--kp-fast);
}
.kp-nav li:hover > .sub-menu, .kp-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.kp-nav .sub-menu li { margin: 0; }
.kp-theme .kp-nav .sub-menu a { display: block; padding: .55em .9em; color: var(--kp-ink); font-size: 1rem; font-weight: 600; text-decoration: none; border-radius: var(--kp-radius); }
.kp-theme .kp-nav .sub-menu a:hover, .kp-theme .kp-nav .sub-menu .current-menu-item > a { background: var(--kp-paper-2); color: var(--kp-plum); }
.kp-theme .kp-header--tight .kp-nav__list > li > a { padding: 0 7px; font-size: .9375rem; }
.kp-header--tight .kp-nav__list > li > a::after { left: 7px; right: 7px; }
.kp-header--tight .kp-nav__list { margin-left: -7px; }
.kp-header--wrap .kp-nav { flex: 1 1 auto; }
.kp-header--wrap .kp-nav__list { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; align-content: center; padding-block: 8px; }
.kp-theme .kp-header--wrap .kp-nav__list > li > a { padding-block: 8px; }
.kp-header--wrap .kp-nav__list > li > a::after { bottom: 2px; }

/* The actions sit in their own flex column: they can never cover the menu. */
.kp-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.kp-search-toggle, .kp-menu-toggle {
	display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; padding: 0; cursor: pointer;
	background: var(--kp-plum); color: var(--kp-cream); border: 1px solid var(--kp-plum); border-radius: 999px; transition: background-color var(--kp-fast), color var(--kp-fast), border-color var(--kp-fast);
}
.kp-search-toggle:hover, .kp-search-toggle[aria-expanded="true"] { background: var(--kp-plum-900); border-color: var(--kp-plum-900); color: #fff; }
.kp-search-toggle .kp-icon, .kp-menu-toggle .kp-icon { width: 22px; height: 22px; }
.kp-search-toggle__close, .kp-menu-toggle__close { display: none !important; }
.kp-search-toggle[aria-expanded="true"] .kp-search-toggle__open, .kp-menu-toggle[aria-expanded="true"] .kp-menu-toggle__open { display: none !important; }
.kp-search-toggle[aria-expanded="true"] .kp-search-toggle__close, .kp-menu-toggle[aria-expanded="true"] .kp-menu-toggle__close { display: grid !important; }
.kp-menu-toggle { display: none; }
.kp-menu-toggle:hover, .kp-menu-toggle[aria-expanded="true"] { background: var(--kp-plum-900); border-color: var(--kp-plum-900); color: #fff; }

.kp-searchbar { position: absolute; left: 0; right: 0; top: calc(100% + 3px); z-index: 30; background: var(--kp-plum); box-shadow: var(--kp-shadow); padding: 22px 0; display: none; }
.kp-header.is-searching .kp-searchbar { display: block; }
.kp-searchbar .kp-search { max-width: 760px; margin-left: auto; }

/* Search form */
.kp-search { display: flex; align-items: stretch; margin: 0; }
.kp-theme .kp-search__input {
	flex: 1 1 auto; width: 100%; min-width: 0; margin: 0; box-sizing: border-box;
	background: #fff; color: var(--kp-ink); border: 1px solid var(--kp-field); border-right: 0; border-radius: 999px 0 0 999px;
	padding: .8em 1.2em; font: 400 1.0625rem/1.3 var(--kp-font); transition: border-color var(--kp-fast);
}
.kp-theme .kp-search__input::placeholder { color: var(--kp-muted); opacity: 1; }
.kp-theme .kp-search__input:focus { outline: none; border-color: var(--kp-plum); box-shadow: inset 0 0 0 1px var(--kp-plum); }
.kp-theme .kp-search__submit {
	display: inline-flex; align-items: center; gap: .5em; flex: none; margin: 0; cursor: pointer; min-height: 50px;
	background: var(--kp-plum); color: #fff; border: 1px solid var(--kp-plum); border-radius: 0 999px 999px 0;
	padding: 0 1.4em 0 1.1em; font: 700 1rem/1 var(--kp-font); transition: background-color var(--kp-fast);
}
.kp-theme .kp-search__submit:hover { background: var(--kp-plum-900); border-color: var(--kp-plum-900); color: #fff; }
.kp-theme .kp-searchbar .kp-search__input { border-color: var(--kp-cream); }
.kp-theme .kp-searchbar .kp-search__submit { background: var(--kp-mustard); border-color: var(--kp-mustard); color: var(--kp-ink); }
.kp-theme .kp-searchbar .kp-search__submit:hover { background: var(--kp-mustard-pale); border-color: var(--kp-mustard-pale); color: var(--kp-ink); }

@media (max-width: 1023.98px) {
	:root { --kp-header-h: 66px; }
	.kp-mainbar__inner { gap: 12px; }
	.kp-brand { padding-block: 8px; }
	.kp-search-toggle, .kp-searchbar { display: none !important; }
	.kp-theme .kp-menu-toggle { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; width: auto; height: 44px; padding: 0 16px 0 12px; font: 700 1rem/1 var(--kp-font); }
	.kp-menu-toggle[aria-expanded="true"] .kp-menu-toggle__close { display: inline-flex !important; }
	.kp-js .kp-drawer {
		position: fixed; left: 0; right: 0; top: var(--kp-drawer-top, 108px); bottom: 0; z-index: 200;
		flex-direction: column; justify-content: flex-start; gap: 22px; background: var(--kp-paper); overflow-y: auto; padding: 24px var(--kp-gutter) 48px;
		border-top: 3px solid var(--kp-mustard); visibility: hidden; opacity: 0; transition: opacity var(--kp-fast), visibility 0s var(--kp-fast);
	}
	.kp-js .kp-header.is-open .kp-drawer { visibility: visible; opacity: 1; transition-delay: 0s; }
	html:not(.kp-js) .kp-drawer { display: none; }
	.kp-drawer .kp-search { display: flex; }
	.kp-nav { display: block; flex: none; }
	.kp-nav__list { display: block; margin: 0; border-top: 1px solid var(--kp-rule-2); }
	.kp-nav__list > li { display: block; border-bottom: 1px solid var(--kp-rule-2); }
	.kp-theme .kp-nav__list > li > a { padding: 14px 0; font-family: var(--kp-font-head); font-size: 1.3rem; justify-content: space-between; }
	.kp-nav__list > li > a::after { display: none; }
	.kp-nav__list > li > a .kp-icon { display: none; }
	.kp-theme .kp-nav__list > .current-menu-item > a { box-shadow: inset 4px 0 0 var(--kp-mustard); padding-left: 14px; }
	.kp-nav .sub-menu { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; border: 0; border-left: 2px solid var(--kp-mustard); border-radius: 0; margin: 0 0 14px; padding: 0 0 0 14px; }
	.kp-theme .kp-nav .sub-menu a { padding: .45em 0; }
	.kp-theme .kp-nav .sub-menu a:hover { background: none; }
}
@media (max-width: 599.98px) {
	.kp-badge .kp-mark { width: 38px; height: 38px; }
	.kp-badge--header .kp-badge__name { font-size: 1.45rem; }
	.kp-badge--header .kp-badge__sub { font-size: .625rem; letter-spacing: .18em; }
}
@media (max-width: 379.98px) {
	.kp-theme .kp-menu-toggle { padding: 0 12px; }
	.kp-menu-toggle__label { display: none; }
	.kp-theme .kp-badge { gap: 8px; }
	.kp-badge--header .kp-badge__name { font-size: 1.3rem; }
}

/* Breadcrumbs --------------------------------------------------------------- */
.kp-crumbs { margin: 0 0 18px; color: var(--kp-muted); font-size: .9375rem; line-height: 1.5; }
.kp-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.kp-crumbs li { display: inline-flex; align-items: center; margin: 0; min-width: 0; }
.kp-crumbs li + li::before { content: "/"; margin: 0 .6em; color: var(--kp-mustard-text); }
.kp-crumbs > span { display: block; }
.kp-theme .kp-crumbs a { color: var(--kp-plum); text-decoration: none; font-weight: 600; }
.kp-theme .kp-crumbs a:hover { text-decoration: underline; }
.kp-crumbs [aria-current] span, .kp-crumbs .breadcrumb_last { display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.kp-crumbs__sep { margin: 0 .55em; color: var(--kp-mustard-text); }

/* Section headings ---------------------------------------------------------- */
.kp-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin: 0 0 clamp(22px, 3vw, 34px); padding-bottom: 12px; border-bottom: 2px solid var(--kp-ink); box-shadow: 0 4px 0 -2px var(--kp-paper), 0 5px 0 -2px var(--kp-ink); }
.kp-heading__text { min-width: 0; }
.kp-heading__kicker { margin: 0 0 4px; color: var(--kp-mustard-text); font: italic 700 1.0625rem/1.2 var(--kp-font-head); }
.kp-theme .kp-title { margin: 0; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.75rem); font-weight: 800; line-height: 1.05; }
.kp-theme .kp-heading__link { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; color: var(--kp-plum); font-weight: 700; text-decoration: none; }
.kp-theme .kp-heading__link:hover { color: var(--kp-ink); text-decoration: underline; text-underline-offset: .2em; }
.kp-heading--tone { border-bottom-color: var(--kp-tone); box-shadow: 0 4px 0 -2px var(--kp-paper), 0 5px 0 -2px var(--kp-tone); }
.kp-heading--tone .kp-heading__kicker { color: var(--kp-tone); }
.kp-theme .kp-heading--tone .kp-title { color: var(--kp-tone); }

/* Front page: intro ------------------------------------------------------------ */
.kp-intro { padding: clamp(28px, 4.5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.kp-intro__inner { display: grid; gap: 14px 48px; }
.kp-intro__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--kp-muted); font-size: .9375rem; font-weight: 600; }
.kp-intro__label { color: var(--kp-plum); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8125rem; }
.kp-intro__date { display: inline-flex; align-items: center; gap: 14px; }
.kp-intro__label + .kp-intro__date::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kp-mustard); }
.kp-intro__date::first-letter { text-transform: uppercase; }
.kp-theme .kp-intro__title { margin: 0; max-width: 18ch; font-size: clamp(2.35rem, 1.4rem + 4.2vw, 5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.015em; color: var(--kp-plum); }
.kp-intro__lead { margin: 0; max-width: 60ch; color: var(--kp-text); font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.55; }
@media (min-width: 1024px) {
	.kp-intro__inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
	.kp-intro__kicker { grid-column: 1 / -1; }
	.kp-intro__lead { padding: 0 0 .6em 24px; border-left: 3px solid var(--kp-mustard); }
}

/* Front page: lead story --------------------------------------------------------- */
section.kp-lead { padding-bottom: var(--kp-section); }
.kp-theme .kp-lead__title { margin: 0 0 18px; padding-top: 14px; border-top: 2px solid var(--kp-ink); color: var(--kp-ink); font: 700 .8125rem/1.2 var(--kp-font); letter-spacing: .16em; text-transform: uppercase; }
.kp-lead__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .kp-lead__grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 44px; } .kp-lead__grid--solo { grid-template-columns: minmax(0, 1fr); } }
.kp-feature { position: relative; display: flex; flex-direction: column; gap: 18px; }
.kp-feature__media { position: relative; overflow: hidden; border-radius: var(--kp-radius); background: var(--kp-paper-2); }
.kp-feature__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--kp-tone); }
.kp-feature__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.kp-feature:hover .kp-feature__media img { transform: scale(1.03); }
.kp-feature__body { display: flex; flex-direction: column; gap: 10px; }
.kp-theme .kp-feature__title { margin: 0; font-size: clamp(1.85rem, 1.25rem + 2.3vw, 3.1rem); font-weight: 800; line-height: 1.06; }
.kp-feature__excerpt { margin: 0; max-width: 62ch; color: var(--kp-text); font-size: 1.1875rem; line-height: 1.55; }
.kp-lead__side { counter-reset: kp-side; display: flex; flex-direction: column; border-top: 1px solid var(--kp-rule-2); }
@media (min-width: 1024px) { .kp-lead__side { border-top: 0; border-left: 1px solid var(--kp-rule-2); padding-left: 32px; } }

/* Compact numbered list item */
.kp-item { position: relative; counter-increment: kp-side; display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; align-items: start; padding: 18px 0 18px 44px; border-bottom: 1px solid var(--kp-rule-2); }
.kp-item::before { content: counter(kp-side, decimal-leading-zero); position: absolute; left: 0; top: 14px; color: var(--kp-mustard-text); font: italic 700 1.6rem/1 var(--kp-font-head); }
.kp-item:last-child { border-bottom: 0; }
.kp-item:not(:has(.kp-item__media)) { grid-template-columns: minmax(0, 1fr); }
.kp-item__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.kp-theme .kp-item__title { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.kp-item__media { overflow: hidden; border-radius: var(--kp-radius); }
.kp-item__media img { display: block; width: 96px; height: 96px; object-fit: cover; }
@media (max-width: 379.98px) { .kp-item { grid-template-columns: minmax(0, 1fr) 72px; padding-left: 38px; } .kp-item__media img { width: 72px; height: 72px; } }

/* Cards (whole card clickable through the title link) */
.kp-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kp-card__media { position: relative; overflow: hidden; border-radius: var(--kp-radius); background: var(--kp-paper-2); }
.kp-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.kp-card:hover .kp-card__media img { transform: scale(1.04); }
.kp-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kp-theme .kp-card__title { margin: 0; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.45rem); line-height: 1.2; }
.kp-theme .kp-card__link { color: var(--kp-ink); text-decoration: none; background-image: linear-gradient(var(--kp-tone), var(--kp-tone)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s ease, color var(--kp-fast); }
.kp-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kp-theme .kp-card:hover .kp-card__link, .kp-theme .kp-item:hover .kp-card__link, .kp-theme .kp-feature:hover .kp-card__link { color: var(--kp-tone); background-size: 100% 2px; }
.kp-card .kp-tag, .kp-item .kp-tag, .kp-feature .kp-tag { position: relative; z-index: 2; }
.kp-card__excerpt { margin: 0; color: var(--kp-text); font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kp-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; color: var(--kp-muted); font-size: .875rem; font-weight: 600; }
.kp-card--no-image .kp-card__body { padding: 22px 22px 24px; background: var(--kp-sheet); border-top: 5px solid var(--kp-tone); border-radius: var(--kp-radius); box-shadow: 0 1px 0 var(--kp-rule-2); }
.kp-theme .kp-card--big .kp-card__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; line-height: 1.08; }
.kp-card--big .kp-card__excerpt { font-size: 1.0625rem; -webkit-line-clamp: 4; }
.kp-card--big .kp-card__media img { aspect-ratio: 16 / 9; }

/* Grids */
.kp-grid { display: grid; gap: 40px 28px; }
@media (min-width: 640px) { .kp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .kp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; } }
@media (min-width: 640px) { .kp-grid--mosaic > .kp-card--big { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
	.kp-grid--mosaic > .kp-card--big { grid-column: span 2; }
	.kp-grid--row { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 28px 40px; }
	.kp-grid--row > .kp-card--big { grid-row: span 2; }
	.kp-grid--row > .kp-card:not(.kp-card--big) { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
	.kp-grid--row > .kp-card:not(.kp-card--big) .kp-card__excerpt { -webkit-line-clamp: 2; }
	.kp-grid--row > .kp-card--no-image:not(.kp-card--big) { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 640px) and (max-width: 999.98px) { .kp-grid--row > .kp-card--big { grid-column: 1 / -1; } }

/* Front page: sections row ---------------------------------------------------------- */
.kp-sections { padding: 30px 0; background: var(--kp-paper-2); border-block: 1px solid var(--kp-rule-2); scroll-margin-top: calc(var(--kp-header-h) + 12px); }
.kp-sections__inner { display: grid; gap: 14px 28px; align-items: center; }
@media (min-width: 1024px) { .kp-sections__inner { grid-template-columns: auto minmax(0, 1fr); } }
.kp-theme .kp-sections__title { margin: 0; color: var(--kp-plum); font: italic 700 1.6rem/1.1 var(--kp-font-head); }

/* Front page: latest, rows -------------------------------------------------------- */
.kp-latest, .kp-row { padding-block: var(--kp-section); scroll-margin-top: calc(var(--kp-header-h) + 12px); }
.kp-row + .kp-row { padding-top: 0; }

/* Front page: plum "Om Kulturpool" band */
.kp-manifest { position: relative; overflow: hidden; padding-block: var(--kp-section); background: var(--kp-plum); color: var(--kp-on-dark); scroll-margin-top: calc(var(--kp-header-h) + 12px); }
.kp-manifest::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 48px solid rgba(216, 163, 26, .16); pointer-events: none; }
.kp-manifest::after { content: ""; position: absolute; right: 40px; bottom: -160px; width: 300px; height: 300px; border-radius: 50%; border: 2px solid rgba(216, 163, 26, .4); pointer-events: none; }
.kp-manifest__inner { position: relative; z-index: 1; display: grid; gap: 18px 48px; }
@media (min-width: 900px) { .kp-manifest__inner { grid-template-columns: 140px minmax(0, 1fr); } }
.kp-manifest__mark .kp-icon { width: 96px; height: 96px; color: var(--kp-mustard); stroke-width: 1.4; }
.kp-manifest__text { max-width: 760px; }
.kp-manifest__kicker { margin: 0 0 8px; color: var(--kp-mustard-pale); font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kp-theme .kp-manifest__title { margin: 0 0 16px; color: var(--kp-cream); font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); font-weight: 800; line-height: 1.08; }
.kp-manifest__body { margin: 0 0 26px; font-size: 1.1875rem; line-height: 1.6; }
.kp-manifest__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* Page header (posts, pages, listings) ---------------------------------------------- */
.kp-head { position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(26px, 3.4vw, 44px); border-bottom: 1px solid var(--kp-rule-2); }
.kp-head::before { content: ""; position: absolute; left: 0; top: 0; width: min(220px, 40vw); height: 6px; background: var(--kp-tone); }
.kp-head__inner { max-width: calc(980px + 2 * var(--kp-gutter)); }
.kp-head__kicker { margin: 0 0 14px; }
.kp-head__label { color: var(--kp-mustard-text); font: italic 700 1.15rem/1.2 var(--kp-font-head); }
.kp-theme .kp-head__title { margin: 0; font-size: clamp(2.1rem, 1.35rem + 3vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.kp-head__title mark { background: none; color: var(--kp-plum); padding: 0; }
.kp-head__text { max-width: 64ch; margin-top: 18px; color: var(--kp-text); font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem); line-height: 1.55; }
.kp-head__text p { margin: 0 0 .6em; }
.kp-head__text p:last-child { margin-bottom: 0; }
.kp-head__meta { margin: 16px 0 0; color: var(--kp-muted); font-size: .9375rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kp-head .kp-meta { margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--kp-rule); border-bottom: 0; }
.kp-head .kp-search { margin-top: 24px; max-width: 640px; }
.kp-head--archive .kp-theme .kp-head__title, .kp-theme .kp-head--archive .kp-head__title { color: var(--kp-tone); }

/* Article ---------------------------------------------------------------------------- */
.kp-article__figure { padding-top: clamp(24px, 3vw, 40px); }
.kp-figure { margin: 0; }
.kp-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--kp-radius); }
.kp-figure figcaption { margin-top: 10px; color: var(--kp-muted); font-size: .9375rem; font-style: italic; }
.kp-article__layout { display: grid; gap: 32px 56px; padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(48px, 6vw, 84px); }
@media (min-width: 1024px) { .kp-article__layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.kp-article__single { max-width: calc(var(--kp-measure) + 2 * var(--kp-gutter) + 80px); padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(48px, 6vw, 84px); }
.kp-article__main { min-width: 0; max-width: 780px; }
.kp-article__aside { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (min-width: 1024px) {
	.kp-article__aside { position: sticky; top: calc(var(--kp-header-h) + 28px); }
	.admin-bar .kp-article__aside { top: calc(var(--kp-header-h) + 60px); }
	.kp-article__toc-mobile { display: none; }
}
@media (max-width: 1023.98px) {
	.kp-article__toc-desktop { display: none; }
	.kp-article__aside:not(:has(.kp-box)) { display: none; }
}

/* Author and date line */
.kp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; color: var(--kp-muted); font-size: .9375rem; line-height: 1.5; }
.kp-meta > span:not(.kp-meta__sep) { display: inline-flex; align-items: center; gap: 8px; }
.kp-meta__sep { width: 5px; height: 5px; border-radius: 50%; background: var(--kp-mustard); }
.kp-meta .kp-icon { width: 18px; height: 18px; color: var(--kp-plum); }
.kp-meta .kp-avatar { --kp-avatar: 36px !important; font-size: 1rem; }
.kp-theme .kp-meta a { color: var(--kp-ink); font-weight: 700; text-decoration: none; }
.kp-theme .kp-meta a:hover { color: var(--kp-plum); text-decoration: underline; }

/* Avatar badge (no Gravatar) */
.kp-avatar { display: inline-grid; place-items: center; flex: none; width: var(--kp-avatar, 50px); height: var(--kp-avatar, 50px); border-radius: 50%; background: var(--kp-plum); color: var(--kp-mustard-pale); font: 800 calc(var(--kp-avatar, 50px) * .44)/1 var(--kp-font-head); }

/* Table of contents */
.kp-toc { background: var(--kp-sheet); border: 1px solid var(--kp-rule-2); border-radius: var(--kp-radius); overflow: hidden; }
.kp-article__toc-mobile .kp-toc { margin: 0 0 28px; }
.kp-theme .kp-toc__toggle {
	display: flex; width: 100%; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; border: 0; border-bottom: 3px solid var(--kp-mustard); border-radius: 0;
	background: var(--kp-plum); color: var(--kp-cream); font: italic 700 1.15rem/1.2 var(--kp-font-head); text-align: left; cursor: pointer;
}
.kp-theme .kp-toc__toggle:hover { background: var(--kp-plum); color: var(--kp-cream); }
.kp-toc__count { margin-left: auto; min-width: 1.9em; padding: .25em .6em; border-radius: 999px; background: rgba(250, 246, 239, .16); color: var(--kp-cream); font: 700 .8125rem/1.2 var(--kp-font); text-align: center; }
.kp-toc__list { list-style: none; counter-reset: toc; margin: 0; padding: 8px 8px 12px; }
.kp-toc__list li { counter-increment: toc; margin: 0; border-bottom: 1px solid var(--kp-rule); }
.kp-toc__list li:last-child { border-bottom: 0; }
.kp-theme .kp-toc__list a { display: grid; grid-template-columns: 2em 1fr; gap: .2em; padding: .55em 8px; color: var(--kp-text); font-size: .9875rem; line-height: 1.45; text-decoration: none; border-radius: var(--kp-radius); }
.kp-toc__list a::before { content: counter(toc, decimal-leading-zero); color: var(--kp-mustard-text); font: italic 700 1rem/1.4 var(--kp-font-head); }
.kp-theme .kp-toc__list a:hover { color: var(--kp-plum); background: var(--kp-paper); }
.kp-theme .kp-toc__list a[aria-current] { color: var(--kp-ink); background: var(--kp-paper-2); font-weight: 700; box-shadow: inset 3px 0 0 var(--kp-plum); }
.kp-theme .kp-toc--side .kp-toc__toggle { cursor: default; pointer-events: none; }
.kp-toc--side .kp-toc__list { max-height: calc(100vh - var(--kp-header-h) - 140px); overflow-y: auto; overscroll-behavior: contain; }
.kp-js .kp-toc--mobile:not(.is-open) .kp-toc__list { display: none; }
.kp-toc--mobile .kp-toc__toggle::after { content: "+"; margin-left: 10px; color: var(--kp-cream); font: 400 1.5rem/1 var(--kp-font); }
.kp-toc--mobile.is-open .kp-toc__toggle::after { content: "−"; }

/* Side box with the sections */
.kp-box { padding: 20px 22px 10px; background: var(--kp-sheet); border: 1px solid var(--kp-rule-2); border-top: 5px solid var(--kp-plum); border-radius: var(--kp-radius); }
.kp-theme .kp-box__title { margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--kp-rule-2); font-size: 1.35rem; }
.kp-box__list { list-style: none; margin: 0; padding: 0; }
.kp-box__list li { margin: 0; border-bottom: 1px solid var(--kp-rule); }
.kp-box__list li:last-child { border-bottom: 0; }
.kp-theme .kp-box__list a { display: flex; align-items: center; gap: .75em; padding: .65em 0; color: var(--kp-ink); font-size: 1.0625rem; font-weight: 700; text-decoration: none; }
.kp-box__icon .kp-icon { width: 22px; height: 22px; color: var(--kp-tone); }
.kp-theme .kp-box__list a:hover, .kp-theme .kp-box__list a[aria-current] { color: var(--kp-tone); }

/* Prose ---------------------------------------------------------------------------- */
.kp-prose { font-size: clamp(1.0625rem, 1.02rem + .25vw, 1.1875rem); line-height: 1.75; color: var(--kp-text); overflow-wrap: break-word; }
.kp-prose::after { content: ""; display: table; clear: both; }
.kp-prose :where(p) { margin: 0 0 1.2em; }
.kp-prose :where(p:empty) { display: none; }
.kp-prose :where(strong, b) { color: var(--kp-ink); font-weight: 700; }
.kp-prose :where(h2, h3, h4) { scroll-margin-top: calc(var(--kp-header-h) + 28px); }
.kp-prose :where(h2) { margin: 1.9em 0 .55em; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); font-weight: 800; line-height: 1.12; color: var(--kp-plum); }
.kp-prose :where(h3) { margin: 1.6em 0 .45em; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); line-height: 1.25; }
.kp-prose :where(h4) { margin: 1.4em 0 .4em; font-size: 1.15rem; }
.kp-prose > :first-child { margin-top: 0; }
.kp-single .kp-prose > p:first-of-type::first-letter, .kp-single .kp-prose > .kp-wrap:first-child > p:first-of-type::first-letter { float: left; margin: .06em .1em 0 0; color: var(--kp-plum); font: 800 4.1em/.82 var(--kp-font-head); }
.kp-prose :where(a) { color: var(--kp-plum); text-decoration: underline; text-decoration-color: var(--kp-mustard); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.kp-prose :where(a:hover) { color: var(--kp-ink); text-decoration-color: var(--kp-plum); }
/* The live texts sit in <div class="kp-wrap"> with their own small stylesheet (kp-lead, kp-note, kp-grid, kp-card,
   kp-list, kp-table). The theme's layout classes with the same names must not reach into them. */
.kp-prose .kp-wrap .kp-card { display: block; position: static; }
.kp-prose .kp-wrap .kp-grid { gap: 18px; }
.kp-prose .kp-wrap > :first-child, .kp-prose .kp-wrap > style:first-child + * { margin-top: 0; }
.kp-prose :where(ul, ol) { margin: 0 0 1.3em; padding-left: 1.4em; }
.kp-prose :where(li) { margin: 0 0 .45em; padding-left: .2em; }
.kp-prose :where(ul > li)::marker { color: var(--kp-mustard-text); }
.kp-prose :where(ol > li)::marker { color: var(--kp-plum); font-weight: 700; }
.kp-prose :where(blockquote) { margin: 2em 0; padding: .2em 0 .2em 1.3em; border-left: 4px solid var(--kp-mustard); color: var(--kp-plum); font: italic 700 1.3em/1.45 var(--kp-font-head); }
.kp-prose :where(blockquote p:last-child) { margin: 0; }
.kp-prose :where(blockquote cite) { display: block; margin-top: .6em; color: var(--kp-muted); font: 600 .75em/1.4 var(--kp-font); font-style: normal; }
.kp-prose :where(figure, .wp-caption) { margin: 2em 0; max-width: 100%; }
.kp-prose :where(figure img, .wp-caption img) { border-radius: var(--kp-radius); }
.kp-prose :where(figcaption, .wp-caption-text) { margin-top: .6em; color: var(--kp-muted); font-size: .9375rem; font-style: italic; }
.kp-prose :where(hr) { border: 0; height: 1px; background: var(--kp-rule-2); margin: 2.6em 0; }
.kp-prose :where(.alignleft) { float: left; margin: .3em 1.4em 1em 0; }
.kp-prose :where(.alignright) { float: right; margin: .3em 0 1em 1.4em; }
.kp-prose :where(.aligncenter) { display: block; margin-inline: auto; }
@media (max-width: 600px) { .kp-prose :where(.alignleft, .alignright) { float: none; margin: 1em 0; } }
.kp-prose :where(table) {
	display: block; width: max-content; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
	border-collapse: collapse; margin: 2em 0; font-size: .93em; line-height: 1.5; background: #fff; font-variant-numeric: tabular-nums; border: 1px solid var(--kp-rule);
}
.kp-prose :where(table) :where(th, td) { padding: .75em 1em; text-align: left; vertical-align: top; border: 1px solid var(--kp-rule); }
.kp-prose :where(table) :where(th) { background: var(--kp-plum); color: #fff; font-weight: 700; border-color: var(--kp-plum); }
.kp-prose :where(table) :where(tr:nth-child(even) td) { background: var(--kp-paper); }
.kp-prose table.is-scrollable { box-shadow: inset -12px 0 10px -10px rgba(0, 0, 0, .25); }

/* Forms in content (Contact Form 7) and comments */
.kp-theme .kp-prose :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea),
.kp-theme .kp-comments :where(input[type="text"], input[type="email"], input[type="url"], textarea) {
	width: 100%; max-width: 100%; box-sizing: border-box; margin-top: 6px;
	background: #fff; color: var(--kp-ink); border: 1px solid var(--kp-field); border-radius: var(--kp-radius); padding: .8em 1em; font: 400 1rem/1.45 var(--kp-font);
	transition: border-color var(--kp-fast), box-shadow var(--kp-fast);
}
.kp-theme .kp-prose :where(input, select, textarea):focus, .kp-theme .kp-comments :where(input, textarea):focus { outline: none; border-color: var(--kp-plum); box-shadow: 0 0 0 3px rgba(74, 31, 79, .2); }
.kp-theme .kp-prose :where(label) { color: var(--kp-ink); font-size: .9875rem; font-weight: 700; }
.kp-theme .kp-prose :where(.wpcf7-form-control-wrap) { display: block; }
.kp-theme .kp-prose :where(.wpcf7 form > p) { margin: 0 0 1.1em; }
.kp-theme .kp-prose :where(input[type="checkbox"], input[type="radio"]) { width: 1.1em; height: 1.1em; accent-color: var(--kp-plum); }
.kp-theme .kp-prose :where(input[type="submit"], button[type="submit"]), .kp-theme .kp-comments .form-submit .submit {
	min-height: 50px; background: var(--kp-plum); color: #fff; border: 1px solid var(--kp-plum); border-radius: 999px; padding: .85em 2em; cursor: pointer;
	font: 700 1rem/1 var(--kp-font); transition: background-color var(--kp-fast);
}
.kp-theme .kp-prose :where(input[type="submit"], button[type="submit"]):hover, .kp-theme .kp-comments .form-submit .submit:hover { background: var(--kp-plum-900); border-color: var(--kp-plum-900); color: #fff; }
.kp-theme .wpcf7 { position: relative; margin: 2em 0; padding: clamp(20px, 3vw, 32px); background: var(--kp-sheet); border: 1px solid var(--kp-rule-2); border-top: 5px solid var(--kp-plum); border-radius: var(--kp-radius); }
.kp-theme .wpcf7-not-valid-tip { color: var(--kp-error); font-size: .875rem; margin-top: 4px; }
.kp-theme .wpcf7 form .wpcf7-response-output { margin: 1em 0 0; padding: .8em 1em; border: 1px solid var(--kp-rule); border-radius: var(--kp-radius); background: #fff; font-size: .9375rem; }
.kp-theme .wpcf7 form.invalid .wpcf7-response-output, .kp-theme .wpcf7 form.failed .wpcf7-response-output { border-color: var(--kp-error); background: #fbeef0; }

/* Article footer, related, pillar */
.kp-article__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--kp-rule-2); }
.kp-article__foot-label { color: var(--kp-ink); font-weight: 700; }
.kp-page-links { margin: 2em 0; display: flex; gap: 8px; flex-wrap: wrap; }
.kp-related { padding-block: var(--kp-section); background: var(--kp-paper-2); border-top: 1px solid var(--kp-rule-2); }
.kp-related .kp-heading { box-shadow: 0 4px 0 -2px var(--kp-paper-2), 0 5px 0 -2px var(--kp-ink); }
.kp-pillar { border-top: 1px solid var(--kp-rule-2); background: var(--kp-sheet); }

/* Listings, empty state, pagination, 404 --------------------------------------------- */
.kp-listing__body { padding-top: clamp(32px, 4vw, 56px); padding-bottom: var(--kp-section); }
.kp-empty { max-width: 720px; padding: clamp(24px, 4vw, 44px); background: var(--kp-sheet); border: 1px solid var(--kp-rule-2); border-top: 5px solid var(--kp-mustard); border-radius: var(--kp-radius); }
.kp-empty__title { margin: 0 0 6px; color: var(--kp-ink); font: 800 1.6rem/1.2 var(--kp-font-head); }
.kp-empty .kp-search { margin: 20px 0 22px; }
.kp-pagination { margin-top: 48px; }
.kp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kp-theme .kp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; box-sizing: border-box; padding: 0 14px; border: 1px solid var(--kp-rule-2); border-radius: 999px; background: var(--kp-sheet); color: var(--kp-ink); font-weight: 700; text-decoration: none; }
.kp-theme .kp-pagination .page-numbers.current, .kp-theme .kp-pagination a.page-numbers:hover { background: var(--kp-plum); border-color: var(--kp-plum); color: #fff; }
.kp-pagination .kp-icon { width: 18px; height: 18px; }
.kp-404__body { display: grid; gap: 24px 56px; padding-block: var(--kp-section); align-items: center; }
@media (min-width: 900px) { .kp-404__body { grid-template-columns: auto minmax(0, 1fr); } }
.kp-404__code { color: var(--kp-plum); font: italic 800 clamp(6rem, 4rem + 9vw, 12rem)/.9 var(--kp-font-head); text-shadow: 8px 8px 0 var(--kp-mustard-pale); }
.kp-theme .kp-404__title { margin: 0 0 14px; font-size: 1.6rem; }
.kp-404__help .kp-search { margin-bottom: 22px; max-width: 620px; }
.kp-404__help .kp-chips { margin-bottom: 26px; }

/* Comments ------------------------------------------------------------------------- */
.kp-comments { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--kp-rule-2); }
.kp-comments .comments-area { margin: 0; padding: 0; }
.kp-theme .kp-comments .comments-title, .kp-theme .kp-comments .comment-reply-title { margin: 0 0 24px; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-weight: 800; }
.kp-comments .comment-reply-title small { display: block; margin-top: 6px; font-family: var(--kp-font); font-size: .9375rem; font-weight: 600; }
.kp-comments .comment-list { list-style: none; margin: 0 0 48px; padding: 0; }
.kp-comments .comment-list .children { list-style: none; margin: 0; padding: 0 0 0 clamp(16px, 4vw, 40px); border-left: 2px solid var(--kp-mustard); }
.kp-comments .comment { margin: 0; padding: 0; }
.kp-comments .comment-body { margin: 0 0 18px; padding: 20px 22px; background: var(--kp-sheet); border: 1px solid var(--kp-rule-2); border-radius: var(--kp-radius); }
.kp-comments .comment-meta { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; }
.kp-comments .comment-author-info { display: flex; flex-direction: column; gap: 2px; padding: 0; }
.kp-comments .comment-author cite { color: var(--kp-ink); font-style: normal; font-weight: 700; }
.kp-theme .kp-comments .comment-metadata, .kp-theme .kp-comments .comment-metadata a { color: var(--kp-muted); font-size: .875rem; text-decoration: none; }
.kp-comments .comment-content { margin: 0; padding: 0; border: 0; font-size: 1rem; }
.kp-comments .comment-content p:last-child { margin-bottom: 0; }
.kp-theme .kp-comments .reply a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; margin-top: 10px; border: 1px solid var(--kp-rule-2); border-radius: 999px; color: var(--kp-plum); font-size: .875rem; font-weight: 700; text-decoration: none; }
.kp-theme .kp-comments .reply a:hover { background: var(--kp-plum); border-color: var(--kp-plum); color: #fff; }
.kp-comments .comment-form label { display: block; color: var(--kp-ink); font-weight: 700; font-size: .9375rem; }
.kp-comments .comment-notes, .kp-comments .logged-in-as { color: var(--kp-muted); font-size: .9375rem; }
.kp-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.kp-comments .comment-form-cookies-consent label { font-weight: 400; }

/* Footer ---------------------------------------------------------------------------- */
.kp-footer { position: relative; background: var(--kp-plum-900); color: var(--kp-on-dark); font-size: 1rem; margin-top: 3px; }
.kp-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: linear-gradient(90deg, var(--kp-mustard) 0 62%, var(--kp-plum) 62% 74%, #0f5e63 74% 82%, #a3203a 82% 90%, #33408f 90%); }
.kp-footer__grid { display: grid; gap: 36px 40px; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 700px) { .kp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .kp-footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.kp-footer__col { min-width: 0; }
.kp-theme .kp-footer__title { margin: 0 0 14px; color: var(--kp-mustard); font: 700 .8125rem/1.3 var(--kp-font); letter-spacing: .16em; text-transform: uppercase; }
.kp-footer__brand { margin: 0 0 16px; }
.kp-footer__lead { margin: 0 0 14px; max-width: 42ch; line-height: 1.6; }
.kp-theme .kp-footer a { color: var(--kp-cream); text-decoration: none; }
.kp-theme .kp-footer a:hover { color: var(--kp-mustard-pale); text-decoration: underline; text-underline-offset: .2em; }
.kp-theme .kp-footer__more { display: inline-flex; align-items: center; gap: .45em; min-height: 40px; font-weight: 700; }
.kp-footer__links { list-style: none; margin: 0; padding: 0; }
.kp-footer__links li { margin: 0; }
.kp-theme .kp-footer__links a { display: inline-flex; align-items: center; gap: .6em; min-height: 40px; }
.kp-footer__sections li a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--kp-tone); box-shadow: 0 0 0 2px rgba(250, 246, 239, .55); }
.kp-footer__sections .kp-tone-1 a::before { background: var(--kp-mustard); }
.kp-footer__note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 14px 16px; border: 1px solid rgba(216, 163, 26, .5); border-radius: var(--kp-radius); color: var(--kp-cream); line-height: 1.5; }
.kp-footer__note .kp-icon { width: 20px; height: 20px; margin-top: 2px; color: var(--kp-mustard); }
.kp-footer__bottom { border-top: 1px solid rgba(232, 220, 203, .2); background: #220b24; }
.kp-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px; font-size: .9375rem; }
.kp-footer__bottom p { margin: 0; }
.kp-footer__independent { display: inline-flex; align-items: center; gap: .5em; color: var(--kp-cream); font-weight: 600; }
.kp-footer__independent .kp-icon { color: var(--kp-mustard); width: 18px; height: 18px; }
.kp-theme .kp-footer__top { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; }
@media (max-width: 699.98px) { .kp-footer__bottom-inner { flex-direction: column; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.kp-theme *, .kp-theme *::before, .kp-theme *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Submenus of the last two items open to the left, so they never reach past the window edge. */
@media (min-width: 1024px) { .kp-nav__list > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; } }
