/*
Theme Name: Campus Koret
Template: twentytwentyfive
Version: 0.8.8
Description: Built from Lasse's Claude design (Forside, Om koret, Bliv medlem, Koncerter, Nyheder). Colours and fonts live in theme.json.
Text Domain: campus-koret
*/

:root {
	--cko-bg: var(--wp--preset--color--base);
	--cko-dark: var(--wp--preset--color--contrast);
	--cko-accent: var(--wp--preset--color--accent-1);
	--cko-atmo: var(--wp--preset--color--accent-2);
	--cko-sand: var(--wp--preset--color--accent-3);
	--cko-light: var(--wp--preset--color--accent-4);
	--cko-serif: var(--wp--preset--font-family--instrument-serif);
	--cko-display: var(--wp--preset--font-family--grenze);
	--cko-max: var(--wp--style--global--wide-size);
	--cko-note: url(assets/img/note-dark.svg);
	--cko-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -0.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.wp-site-blocks {
	padding: 0;
}
.wp-site-blocks > *,
.home .wp-block-post-content > * {
	margin-block: 0;
}
a:hover {
	opacity: 0.8;
}

/* Small uppercase labels, used across the design */
.cko-eyebrow,
.cko-footer h3 {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.55;
	text-transform: uppercase;
}

/* Buttons */
.wp-element-button,
.wp-block-file__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding-block: 0 !important;
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.wp-element-button:hover,
.wp-element-button:focus-visible,
.wp-block-file__button:hover,
.wp-block-file__button:focus-visible {
	transform: scale(1.06);
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	.wp-element-button:hover,
	.wp-element-button:focus-visible,
	.wp-block-file__button:hover,
	.wp-block-file__button:focus-visible {
		transform: none;
	}
}

/* Grain, the design's paper texture on the light top areas */
.cko-header::before,
.cko-page-intro::before,
.cko-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--cko-grain);
	opacity: 0.2;
	mix-blend-mode: multiply;
	pointer-events: none;
}
.cko-page-intro::before,
.cko-hero::before {
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* Header */
.cko-header {
	position: relative;
	z-index: 5;
	background: var(--cko-atmo);
	padding: 20px 32px;
}
.home .cko-header {
	position: absolute;
	inset: 0 0 auto;
	background: transparent;
}
.home .cko-header::before {
	display: none;
}
.cko-header-inner {
	position: relative;
	max-width: var(--cko-max);
	margin-inline: auto;
	gap: 16px 32px;
}
.cko-logo {
	display: block;
	line-height: 0;
}
.cko-logo img {
	display: block;
	width: auto;
	height: 64px;
}
.cko-header-nav {
	gap: 8px 28px;
}
.cko-nav {
	font-size: 16px;
	font-weight: 500;
}
.cko-nav .wp-block-navigation__container {
	gap: 8px 28px;
}
.cko-nav a {
	padding-block: 10px;
	text-decoration: none;
}
.cko-nav a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--cko-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* Medlemmer dropdown */
.cko-nav .wp-block-navigation__submenu-container {
	left: auto;
	right: 0;
	min-width: 210px;
	padding: 8px 0;
	border: 1px solid var(--cko-sand) !important;
	border-radius: 14px;
	background: var(--cko-bg) !important;
	color: var(--cko-dark) !important;
	box-shadow: 0 12px 32px rgba(43, 29, 22, 0.12);
	z-index: 20;
}
.cko-nav .wp-block-navigation__submenu-container a {
	padding: 8px 18px;
}
.cko-nav .wp-block-navigation__submenu-container a:hover {
	background: var(--cko-atmo);
	opacity: 1;
}

/* Inner page intro: the atmosphere colour runs from the header into the title */
.cko-page-intro {
	position: relative;
	overflow: hidden;
	background: linear-gradient(to bottom, var(--cko-atmo) 0%, var(--cko-atmo) 35%, var(--cko-bg) 100%);
	padding: 64px 32px 88px;
}
.cko-page-intro-inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px 64px;
	max-width: var(--cko-max);
	margin-inline: auto;
}
.cko-page-intro-inner::after {
	content: "";
	flex: none;
	width: 53px;
	height: 120px;
	margin-right: 24px;
	background: var(--cko-note) center / contain no-repeat;
}
.cko-page-intro-text {
	display: flex;
	flex: 1 1 520px;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}
.cko-page-intro-text > * {
	margin: 0;
}
.cko-page-intro h1 {
	letter-spacing: -0.005em;
}
.cko-lede {
	max-width: 640px;
	font-family: var(--cko-serif);
	font-size: clamp(24px, 2.2vw, 32px);
	line-height: 1.3;
}
/* Side padding comes from WordPress's root padding (theme.json), which also lets full-width bands reach the edges. */
.cko-page-body {
	padding-bottom: 96px;
}
.cko-page-body .wp-block-post-content > .wp-block-heading {
	margin-top: 1.6em;
}

/* Front page hero */
.cko-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(to bottom, var(--cko-atmo) 0%, var(--cko-atmo) 62%, var(--cko-bg) 100%);
	padding-bottom: 96px;
}
.cko-hero .cko-hero-photo {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 2.1 / 1;
	min-height: 300px;
	margin: 0;
	overflow: hidden;
	background: var(--cko-sand);
	-webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 98%);
	mask-image: linear-gradient(to bottom, #000 50%, transparent 98%);
}
.cko-hero .cko-hero-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0%;
	filter: grayscale(1) contrast(1.08);
	mix-blend-mode: multiply;
}
/* Light fade at the top so the header reads over the photo, then grain */
.cko-hero .cko-hero-photo::before,
.cko-hero .cko-hero-photo::after {
	content: "";
	position: absolute;
	pointer-events: none;
}
.cko-hero .cko-hero-photo::before {
	inset: 0 0 auto;
	height: 180px;
	background: linear-gradient(to bottom, rgba(245, 239, 233, 0.75), rgba(245, 239, 233, 0));
	z-index: 1;
}
.cko-hero .cko-hero-photo::after {
	inset: 0;
	background: var(--cko-grain);
	opacity: 0.5;
	mix-blend-mode: multiply;
}
.cko-hero-body {
	position: relative;
	box-sizing: border-box;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 32px;
}
.cko-hero h1 {
	position: relative;
	margin: -160px 0 0;
	font-size: clamp(60px, 13vw, 192px);
	line-height: 0.88;
	letter-spacing: -0.005em;
	text-align: center;
}
.cko-hero-row {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 64px;
	align-items: flex-end;
	justify-content: space-between;
	padding-top: 40px;
}
.cko-hero-row > * {
	margin: 0;
}
.cko-hero-row p {
	flex: 1 1 520px;
	max-width: 640px;
	font-size: clamp(18px, 1.4vw, 20px);
	line-height: 1.55;
}
.cko-hero-row .cko-hero-note {
	margin-right: 24px;
}
.cko-hero-row .cko-hero-note img {
	display: block;
	width: auto;
	height: 120px;
}

/* Næste koncert on the front page */
.cko-concert {
	padding: 24px 32px 96px;
}
.cko-concert > * {
	max-width: var(--cko-max);
	margin-inline: auto;
}
.cko-concert-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 32px;
}
.cko-concert-head > * {
	margin: 0;
}
.cko-concert-head p {
	padding-block: 10px;
	font-size: 17px;
	font-weight: 600;
}

/* Concert card, shared by the front page and Koncerter */
.cko-concert-list {
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.cko-concert-card {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	border-radius: 28px;
	background: var(--cko-bg);
}
.cko-concert-date {
	position: relative;
	display: flex;
	flex: 0 1 200px;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	box-sizing: border-box;
	min-width: 180px;
	padding: 22px 26px;
	overflow: hidden;
	background: var(--cko-sand);
}
.cko-concert-date::after {
	content: "";
	position: absolute;
	right: -14px;
	bottom: -28px;
	width: 71px;
	height: 160px;
	background: var(--cko-note) center / contain no-repeat;
	opacity: 0.08;
	pointer-events: none;
}
.cko-concert-date p {
	position: relative;
	margin: 0;
	font-family: var(--cko-serif);
	font-size: 22px;
	line-height: 1;
}
.cko-concert-date .cko-concert-day {
	font-size: 64px;
	line-height: 0.8;
}
.cko-concert-date .cko-concert-month {
	text-transform: uppercase;
}
.cko-concert-body {
	display: flex;
	flex: 999 1 420px;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	box-sizing: border-box;
	min-width: 0;
	padding: 24px 32px;
}
.cko-concert-body > * {
	margin: 0;
}
.cko-concert-body h3 a {
	text-decoration: none;
}
.cko-concert-desc {
	max-width: 640px;
	font-size: 17px;
	line-height: 1.55;
}
.cko-concert-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	font-size: 17px;
	line-height: 1.45;
}
.cko-concert-meta p {
	display: flex;
	gap: 10px;
	margin: 0;
}
.cko-concert-meta p::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	background: currentColor;
	-webkit-mask: var(--cko-icon) center / contain no-repeat;
	mask: var(--cko-icon) center / contain no-repeat;
}
.cko-meta-time {
	--cko-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.cko-meta-place {
	--cko-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}
.cko-meta-ticket {
	--cko-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 0 2-2h14a2 2 0 0 0 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 0-2 2H5a2 2 0 0 0-2-2v-2a2 2 0 0 0 0-4z'/%3E%3Cpath d='M14 6v12'/%3E%3C/svg%3E");
}
.cko-concert-body .wp-element-button {
	align-self: flex-start;
	min-height: 48px;
	padding-inline: 26px;
	font-size: 16px;
	text-decoration: none;
}

/* Past concerts grid */
.cko-past-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 40px 32px;
}
.cko-past-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.cko-past-card a {
	text-decoration: none;
}
.cko-past-photo {
	position: relative;
	aspect-ratio: 4 / 3;
	max-width: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: 20px;
	background: var(--cko-sand);
}
.cko-past-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
}
.cko-past-photo.is-empty::after {
	content: "";
	position: absolute;
	inset: 22.5% 0;
	background: var(--cko-note) center / contain no-repeat;
	opacity: 0.1;
}
.cko-past-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.cko-past-text > * {
	margin: 0;
}
.cko-past-text h3 {
	font-size: 28px;
	line-height: 1.15;
}
.cko-past-text p:last-child {
	font-size: 16px;
}

/* Kommende aktiviteter on Nyheder */
.cko-activity-list {
	border-top: 1px solid var(--cko-atmo);
}
.cko-activity {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 20px 40px;
	padding: 28px 0;
	border-bottom: 1px solid var(--cko-atmo);
}
.cko-activity-date {
	position: relative;
	display: flex;
	flex: 0 0 140px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 140px;
	overflow: hidden;
	border-radius: 20px;
	background: var(--cko-sand);
}
.cko-activity-date::after {
	content: "";
	position: absolute;
	right: -14px;
	bottom: -22px;
	width: 58px;
	height: 130px;
	background: var(--cko-note) center / contain no-repeat;
	opacity: 0.08;
}
.cko-activity-date p {
	position: relative;
	margin: 0;
	font-family: var(--cko-serif);
	font-size: 20px;
	line-height: 1;
	text-transform: uppercase;
}
.cko-activity-date .cko-activity-day {
	font-size: 60px;
	line-height: 0.85;
}
.cko-activity-body {
	display: flex;
	flex: 1 1 480px;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	max-width: 760px;
}
.cko-activity-body > * {
	margin: 0;
}
.cko-activity-body h3 {
	font-size: clamp(28px, 2.4vw, 36px);
}
.cko-activity-body p {
	font-size: 17px;
	line-height: 1.55;
}
.cko-activity-body .cko-activity-meta {
	font-size: 16px;
}
.cko-activity-body .cko-activity-link {
	font-size: 16px;
	font-weight: 600;
}

/* Sections with the heading on the left (Bliv medlem) */
.cko-splits {
	border-top: 1px solid var(--cko-atmo);
}
.cko-split {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 48px;
	padding: 40px 0;
	border-bottom: 1px solid var(--cko-atmo);
}
.cko-split:last-child {
	border-bottom: 0;
}
.cko-split > * {
	margin: 0;
}
.cko-split > h2 {
	flex: 0 0 340px;
	font-size: clamp(40px, 3.6vw, 54px);
}
.cko-split-body {
	display: flex;
	flex: 1 1 480px;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	max-width: 720px;
}
.cko-split-body > * {
	margin: 0;
}
.cko-split > .wp-block-shortcode,
.cko-split > .wpcf7 {
	flex: 1 1 100%;
}

ol.cko-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: cko-step;
}
ol.cko-steps li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	position: relative;
	padding: 16px 0 16px 52px;
	border-bottom: 1px solid var(--cko-atmo);
	counter-increment: cko-step;
}
ol.cko-steps li::before {
	content: counter(cko-step);
	position: absolute;
	left: 0;
	top: 16px;
	font-family: var(--cko-serif);
	font-size: 30px;
	line-height: 1.1;
}
ol.cko-steps strong {
	font-family: var(--cko-serif);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.2;
}

.cko-price-card {
	padding: 24px 0;
}
.cko-price-card > * {
	margin: 0;
}
.cko-price {
	font-family: var(--cko-serif);
	font-size: 56px;
	line-height: 1;
}
.cko-small {
	font-size: 16px;
}
.cko-info {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 48px;
}
.cko-info > * {
	display: flex;
	flex: 1 1 220px;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}
.cko-info p {
	margin: 0;
}
.cko-big {
	font-family: var(--cko-serif);
	font-size: 30px;
	line-height: 1.2;
}
.cko-split-body .cko-arrow-link {
	font-size: 17px;
	font-weight: 600;
}

/* Fold-out sections (Om koret). The summary text "Title | subtitle" is split by functions.php. */
.cko-folds .wp-block-details {
	margin: 0;
	border-bottom: 1px solid var(--cko-atmo);
}
.cko-folds .wp-block-details:first-child {
	border-top: 1px solid var(--cko-atmo);
}
.cko-folds summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 48px;
	padding: 28px 0;
	cursor: pointer;
	list-style: none;
}
.cko-folds summary::-webkit-details-marker {
	display: none;
}
.cko-fold-title {
	flex: 0 0 240px;
	color: var(--cko-accent);
	font-family: var(--cko-serif);
	font-size: clamp(44px, 4.6vw, 68px);
	line-height: 0.95;
}
.cko-fold-sub {
	display: flex;
	flex: 1 1 480px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
	max-width: 720px;
	font-size: 18px;
}
.cko-fold-sub strong {
	font-weight: 600;
}
.cko-fold-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
}
.cko-fold-more svg {
	transition: transform 0.25s ease;
}
.wp-block-details[open] .cko-fold-more svg {
	transform: rotate(180deg);
}
.cko-folds .wp-block-details > :not(summary) {
	max-width: 720px;
	margin: 0 0 14px calc(240px + 48px);
}
.cko-folds .wp-block-details > :last-child {
	margin-bottom: 32px;
}
.cko-folds .wp-block-details > .cko-timeline {
	max-width: none;
	margin: 0;
	border-top: 1px solid var(--cko-atmo);
}
.cko-timeline-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 48px;
	padding: 28px 0;
	border-bottom: 1px solid var(--cko-atmo);
}
.cko-timeline-row:last-child {
	border-bottom: 0;
}
.cko-timeline-row > h3 {
	flex: 0 0 240px;
	margin: 0;
	color: var(--cko-accent);
	font-size: clamp(44px, 4.6vw, 68px);
	line-height: 0.95;
}
.cko-timeline-row > .wp-block-group {
	display: flex;
	flex: 1 1 480px;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	max-width: 720px;
}
.cko-timeline-row p {
	margin: 0;
}
ul.cko-repertoire {
	margin: 0;
	padding: 0;
	list-style: none;
}
ul.cko-repertoire li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 24px;
	padding: 12px 0;
	border-bottom: 1px solid var(--cko-atmo);
}
.cko-rep-title {
	font-family: var(--cko-serif);
	font-size: 26px;
	line-height: 1.2;
}
.cko-rep-by {
	font-size: 15px;
	line-height: 1.5;
}

/* Light full-width band (Billetinformation, Referater) */
.cko-band {
	padding: 88px 32px;
	background: var(--cko-light);
}
.cko-band > * {
	max-width: var(--cko-max);
	margin-inline: auto;
}
.cko-ticket-cols {
	gap: 32px 40px;
	margin-top: 36px;
}
.cko-ticket-cols > .wp-block-column {
	padding-top: 20px;
	border-top: 1.5px solid var(--cko-dark);
}
.cko-ticket-cols h3 {
	margin: 0 0 8px;
	font-size: 30px;
}
.cko-ticket-cols p {
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
}
.cko-referat-band {
	padding-bottom: 104px;
}
.cko-referat-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 64px;
}
.cko-referat-layout > :first-child {
	display: flex;
	flex: 1 1 320px;
	flex-direction: column;
	gap: 16px;
	max-width: 420px;
}
.cko-referat-layout > :first-child > * {
	margin: 0;
}
.cko-referat-layout > :first-child p {
	font-size: 17px;
	line-height: 1.55;
}
.cko-referater {
	flex: 1 1 520px;
	min-width: 0;
	border-top: 1px solid #d9d1c9;
}
.cko-referat {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 22px 0;
	border-bottom: 1px solid #d9d1c9;
}
.cko-referat > * {
	margin: 0;
}
.cko-referat-title {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.cko-referat-title > * {
	margin: 0;
}
.cko-referat-title p:first-child {
	font-family: var(--cko-serif);
	font-size: 30px;
	line-height: 1.15;
}
.cko-referat-title p:last-child {
	font-size: 15px;
}
/* File block as the design's outlined "Hent referat (PDF)" button */
.cko-referat .wp-block-file > a:not(.wp-block-file__button) {
	display: none;
}
.cko-referat .wp-block-file__button,
.cko-referat .wp-block-file .wp-block-file__button {
	min-height: 48px;
	margin: 0;
	padding: 0 24px !important;
	border: 1.5px solid var(--cko-dark);
	border-radius: 999px;
	background: transparent;
	color: var(--cko-dark);
	font-size: 16px;
	font-weight: 600;
}
.cko-referat .wp-block-file__button::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cko-referat .wp-block-file__button:hover {
	border-color: var(--cko-accent);
	background: var(--cko-accent);
}

.cko-section {
	padding-bottom: 96px;
}
.cko-section > h2,
.cko-section-head {
	margin: 0 0 32px;
}
.cko-section-head {
	padding-bottom: 12px;
}
.cko-section + .cko-band,
.cko-band + .cko-section {
	margin-top: 0;
}
.cko-band + .cko-section {
	padding-top: 96px;
}

/* Bliv medlem / call to action */
.cko-join {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: 104px 32px 88px;
	text-align: center;
}
.cko-join > * {
	margin: 0;
}
.cko-join h2 {
	max-width: 16ch;
	font-size: clamp(40px, 4.8vw, 68px);
}
.cko-join-text {
	max-width: 620px;
	font-size: 19px;
	line-height: 1.55;
}
.cko-join .wp-block-buttons {
	padding-top: 12px;
}

/* Footer */
.cko-footer {
	position: relative;
	overflow: hidden;
	min-height: 223px;
	padding: 56px 32px 40px;
	background: var(--cko-sand);
	color: var(--cko-dark);
	font-size: 16px;
	line-height: 1.55;
}
.cko-footer::before {
	content: "";
	position: absolute;
	top: -616px;
	right: -36px;
	width: 425px;
	height: 958px;
	background: var(--cko-note) center / contain no-repeat;
	opacity: 0.06;
	pointer-events: none;
}
.cko-footer-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	max-width: var(--cko-max);
	margin-inline: auto;
}
.cko-footer-content {
	display: contents;
}
.cko-footer img {
	display: block;
	width: auto;
	height: 72px;
}
.cko-footer h3 {
	margin: 0 0 12px;
	color: inherit;
}
.cko-footer p {
	margin: 0 0 8px;
}
.cko-footer nav a {
	display: block;
	padding-block: 4px;
	text-decoration: none;
}

/* Marks content the choir still has to supply. Remove before launch. */
.cko-todo {
	box-sizing: border-box;
	padding: 10px 16px;
	border: 1.5px dashed var(--cko-accent);
	border-radius: 14px;
	font-size: 15px;
}

/* Contact Form 7, laid out like the design's form */
.cko-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px 24px;
	padding-top: 40px;
}
.cko-form-grid label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
}
.cko-form-grid label span.cko-optional {
	font-weight: 400;
}
.cko-form-grid .cko-wide,
.cko-form-foot {
	grid-column: 1 / -1;
}
.cko-form-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding-top: 4px;
	font-size: 15px;
}
.wpcf7-form input:not([type="submit"]),
.wpcf7-form select,
.wpcf7-form textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 14px 16px;
	border: 1.5px solid #cfc6be;
	border-radius: 14px;
	background: #fff;
	color: var(--cko-dark);
	font: inherit;
	font-size: 17px;
	font-weight: 400;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wpcf7-form input:not([type="submit"]):focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--cko-dark);
	box-shadow: 0 0 0 3px rgba(230, 95, 92, 0.25);
}
.wpcf7-form ::placeholder {
	color: #8a7d74;
}
.wpcf7-form textarea {
	resize: vertical;
}
.wpcf7-form input[type="submit"] {
	min-height: 56px;
	padding: 0 32px;
	border: 1.5px solid var(--cko-dark);
	border-radius: 999px;
	background: var(--cko-dark);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.wpcf7-form input[type="submit"]:hover {
	border-color: var(--cko-accent);
	background: var(--cko-accent);
	color: var(--cko-dark);
	transform: scale(1.06);
}

/* Ultimate Member */
.um input[type="submit"].um-button,
.um a.um-button,
.um-directory .um-do-search {
	border-radius: 999px !important;
	background: var(--cko-dark) !important;
	color: #fff !important;
	box-shadow: none !important;
}
.um a.um-button.um-alt,
.um input[type="submit"].um-button.um-alt {
	background: var(--cko-atmo) !important;
	color: var(--cko-dark) !important;
}
.um .um-form input[type="text"],
.um .um-form input[type="tel"],
.um .um-form input[type="password"],
.um .um-form input[type="email"],
.um .um-form textarea {
	border-radius: 14px !important;
}
.um .um-field-label label,
.um .um-field-checkbox-option,
.um .um-tip,
.um a.um-link,
.um a.um-link-alt {
	color: var(--cko-dark) !important;
}
.um-member {
	border-radius: 28px;
}

/* The Events Calendar's single concert page */
.tribe-events-single {
	--tec-color-accent-primary: var(--cko-dark);
	--tec-color-link-primary: var(--cko-dark);
}
.tribe-events-single .tribe-events-single-event-title {
	color: var(--cko-dark);
	font-family: var(--cko-display);
	font-style: italic;
	font-weight: 500;
}
.tribe-events-single a {
	color: var(--cko-dark);
}

@media (max-width: 782px) {
	.cko-folds .wp-block-details > :not(summary) {
		margin-left: 0;
	}
	.cko-fold-title,
	.cko-timeline-row > h3,
	.cko-split > h2 {
		flex-basis: 100%;
	}
}

@media (max-width: 600px) {
	.cko-header {
		padding: 16px 20px;
	}
	.cko-logo img {
		height: 52px;
	}
	.cko-nav a {
		padding-block: 4px;
	}
	.cko-nav .wp-block-navigation__container,
	.cko-header-nav {
		gap: 4px 20px;
	}
	.cko-nav .wp-block-navigation__submenu-container {
		left: 0;
		right: auto;
	}
	.cko-hero .cko-hero-photo {
		margin-top: 120px;
	}
	.cko-hero h1 {
		margin-top: -90px;
	}
	.cko-hero-row .cko-hero-note img {
		height: 88px;
	}
	body {
		--wp--style--root--padding-left: 20px;
		--wp--style--root--padding-right: 20px;
	}
	.cko-page-intro,
	.cko-concert,
	.cko-band,
	.cko-join,
	.cko-footer {
		padding-left: 20px;
		padding-right: 20px;
	}
	.cko-page-intro {
		padding-top: 40px;
		padding-bottom: 56px;
	}
	.cko-concert-date {
		flex: 1 1 100%;
	}
	.cko-concert-body {
		padding: 24px;
	}
	.cko-footer::before {
		width: 300px;
	}
}

.cko-form-foot > span:first-child {
	margin-right: auto;
}

/* Front page: keep the title in view on laptop screens without scrolling */
.cko-hero .cko-hero-photo {
	aspect-ratio: auto;
	height: clamp(300px, 56vh, 47.6vw);
}
.cko-concert .cko-concert-desc,
.cko-concert .cko-concert-body .wp-block-buttons {
	display: none;
}

/* Fold-out sections: no outline when clicked, a soft one for keyboard users */
.cko-folds summary:focus {
	outline: none;
}
.cko-folds summary:focus-visible .cko-fold-title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* Concert cards edited as blocks on Koncerter */
.cko-concert-list {
	margin-bottom: 0;
}
.cko-concert-body .wp-block-buttons {
	margin: 0;
}
.cko-concert-body .wp-block-buttons .wp-element-button {
	min-height: 48px;
	padding-inline: 26px;
	font-size: 16px;
}
.cko-concert-card > .cko-concert-date,
.cko-concert-card > .cko-concert-body {
	margin: 0;
}

/* Past concerts: cover photo, text, then the photo album as small thumbnails */
.cko-past-card > * {
	margin: 0;
}
.cko-past-card > h3 {
	font-size: 28px;
	line-height: 1.15;
}
.cko-past-card > p:not(.cko-eyebrow) {
	font-size: 16px;
}
.cko-past-card > .cko-past-cover {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 20px;
	background: var(--cko-sand);
}
.cko-past-card > .cko-past-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
}
.cko-past-card:not(:has(.cko-past-cover img[src]))::before {
	content: "";
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	background: var(--cko-note) center / auto 55% no-repeat, var(--cko-sand);
	background-blend-mode: normal;
	opacity: 1;
}
.cko-past-card .cko-past-cover:not(:has(img[src])) {
	display: none;
}
.cko-past-card > .cko-album {
	gap: 8px;
	margin-top: 4px;
}
.cko-past-card > .cko-album:not(:has(img)) {
	display: none;
}
.cko-past-card > .cko-album.wp-block-gallery.has-nested-images figure.wp-block-image {
	width: calc(25% - 6px) !important;
	flex-grow: 0;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
}

/* Øvefiler */
.cko-files .wp-block-audio,
.cko-files .wp-block-file {
	margin-top: 8px;
}
.cko-files h3 {
	margin-top: 1.4em;
	font-size: 26px;
}

/* Opslagstavle */
.cko-board-post {
	padding: 28px 0;
	border-bottom: 1px solid var(--cko-atmo);
}
.cko-board-post > * {
	margin: 0;
}
.cko-board-post h2 {
	margin: 6px 0 10px;
	color: var(--cko-dark);
	font-size: clamp(28px, 2.4vw, 36px);
}
.cko-board-post h2 a,
.cko-board .wp-block-post-excerpt__more-link {
	text-decoration: none;
}
.cko-board .wp-block-post-excerpt__more-link {
	font-weight: 600;
}
.cko-board-meta {
	gap: 4px 16px;
	font-size: 14px;
}
.cko-board-meta > * {
	margin: 0;
}
.cko-board-new {
	margin-bottom: 8px;
}
.cko-post-title {
	font-size: clamp(48px, 6vw, 96px);
}
.cko-comments {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid var(--cko-atmo);
}
.cko-comment {
	padding: 20px 0;
	border-bottom: 1px solid var(--cko-atmo);
}
.cko-comment .wp-block-comment-author-name {
	font-weight: 600;
}
.cko-comments textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1.5px solid #cfc6be;
	border-radius: 14px;
	font: inherit;
}
.cko-comments .wp-block-post-comments-form input[type="submit"] {
	min-height: 48px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--cko-dark);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Øvefiler, listed from the "Øvefiler" entries in wp-admin */
.cko-file-set {
	margin-bottom: 48px;
}
.cko-file-set > h2 {
	margin-bottom: 8px;
}
.cko-file-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	padding: 16px 0;
	border-bottom: 1px solid var(--cko-atmo);
}
.cko-file-row h3 {
	flex: 0 0 140px;
	margin: 0;
	font-size: 26px;
}
.cko-file-row audio {
	flex: 1 1 280px;
	max-width: 420px;
}
.cko-file-download {
	font-size: 15px;
	font-weight: 600;
}
.cko-file-row .wp-element-button {
	min-height: 48px;
	padding: 0 26px;
	font-size: 16px;
	text-decoration: none;
}

/* Writing a post on the Opslagstavle */
.cko-board-form {
	margin-bottom: 24px;
}
.cko-board-form > summary {
	display: inline-flex;
	list-style: none;
	cursor: pointer;
}
.cko-board-form > summary::-webkit-details-marker {
	display: none;
}
.cko-board-form[open] > summary {
	margin-bottom: 20px;
}
.cko-board-form form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	border-radius: 20px;
	background: var(--cko-light);
}
.cko-board-form label {
	font-size: 15px;
	font-weight: 600;
}
.cko-board-form input,
.cko-board-form textarea {
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 8px;
	padding: 12px 14px;
	border: 1.5px solid #cfc6be;
	border-radius: 14px;
	background: #fff;
	font: inherit;
}
.cko-board-form button {
	align-self: flex-start;
	cursor: pointer;
}
.cko-board-notice {
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--cko-atmo);
	font-weight: 600;
}

/* Front page fade: a longer fade, and the title sits so the photo fades out at its middle.
   The selectors need the extra .cko-hero-body to beat WordPress's ":first-child" margin reset. */
.cko-hero {
	--cko-title-size: clamp(60px, 13vw, 192px);
}
.cko-hero .cko-hero-photo {
	-webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
}
.cko-hero > .cko-hero-body {
	margin-top: 0;
}
.cko-hero .cko-hero-body > h1 {
	font-size: var(--cko-title-size);
	margin-top: calc(var(--cko-title-size) * -0.44);
}

/* Opslag: a plain comment list and a short form */
.cko-post-title {
	font-size: clamp(40px, 4.5vw, 64px);
}
.cko-comment-count {
	margin: 0;
	font-size: 14px;
}
.cko-board-meta .wp-block-shortcode {
	margin: 0;
}
.cko-comments-title {
	margin: 0 0 8px;
	color: var(--cko-dark);
	font-size: 32px;
}
.cko-comments-empty {
	color: #6e5647;
}
.cko-comment {
	padding: 16px 0;
	border-bottom: 1px solid var(--cko-atmo);
}
.cko-comment p {
	margin: 0;
}
.cko-comment .cko-comment-meta {
	margin-bottom: 6px;
	font-size: 14px;
}
.cko-comment .cko-comment-meta strong {
	font-weight: 600;
}
.cko-comment-form-title {
	margin: 32px 0 12px;
	font-size: 24px;
}
.cko-comment-form textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #cfc6be;
	border-radius: 14px;
	font: inherit;
}
.cko-comment-form .form-submit {
	margin: 12px 0 0;
}
.cko-comment-form input[type="submit"] {
	min-height: 48px;
	padding: 0 26px;
	cursor: pointer;
}

/* Dokumenter, listed from the "Dokumenter" entries in wp-admin */
.cko-doc-group {
	margin-bottom: 40px;
}
.cko-doc-group > h2 {
	margin-bottom: 8px;
}
.cko-doc-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 18px 0;
	border-bottom: 1px solid var(--cko-atmo);
}
.cko-doc-row p {
	margin: 0;
}
.cko-doc-title {
	font-family: var(--cko-serif);
	font-size: 26px;
	line-height: 1.2;
}
.cko-doc-date {
	font-size: 14px;
}
.cko-doc-download {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 22px;
	border: 1.5px solid var(--cko-dark);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.cko-doc-download:hover {
	border-color: var(--cko-accent);
	background: var(--cko-accent);
	opacity: 1;
}

/* Upcoming concerts: the concert's photo on the right of the card, under it on phones */
.cko-concert-card > .cko-concert-photo {
	position: relative;
	flex: 0 1 340px;
	min-width: 240px;
	max-height: none;
	margin: 0;
	overflow: hidden;
	background: var(--cko-sand);
}
.cko-concert-card > .cko-concert-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
}
@media (max-width: 782px) {
	.cko-concert-card > .cko-concert-photo {
		flex: 1 1 100%;
		order: -1;
		aspect-ratio: 16 / 9;
	}
}
.cko-concert-card:has(> .cko-concert-photo) {
	min-height: 220px;
}

/* Concert photos in colour, with all four corners rounded */
.cko-concert-card > .cko-concert-photo {
	border-radius: 20px;
}
.cko-concert-card > .cko-concert-photo img,
.cko-past-card > .cko-past-cover img {
	filter: none;
}
.cko-concert-card > .cko-concert-date {
	border-radius: 20px;
}
@media (max-width: 782px) {
	.cko-concert-card {
		row-gap: 12px;
	}
}

/* Page titles in Engria italic (Adobe Fonts kit, see functions.php), Grenze if it can't load.
   Weight 500 = medium; until the kit includes medium, the browser uses the regular italic. */
h1,
.cko-hero .cko-hero-body > h1,
.editor-post-title__input,
.tribe-events-single .tribe-events-single-event-title {
	font-family: "engria", var(--cko-display);
	font-style: italic;
	font-weight: 500;
}
