/**
 * Somalisk Kulturfestival — site styles.
 *
 * The shared design vocabulary and the site chrome: buttons, patterns,
 * image treatments, header, mobile navigation and footer.
 *
 * Component layout lives in SKF Elementor Components, which styles the pieces
 * pages are built from. Tokens live in style.css.
 *
 * @package somalisk-kulturfestival
 */

/* ==========================================================================
   1. BUTTONS AND LINKS
   ========================================================================== */


.skf-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	/* 44px minimum touch target. */
	min-height: 48px;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: var(--radius-small);
	font-family: var(--font-body);
	font-size: var(--skf-size-label);
	font-weight: var(--skf-weight-bold);
	letter-spacing: var(--skf-track-label);
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color var(--skf-duration-s) var(--skf-ease),
		border-color var(--skf-duration-s) var(--skf-ease),
		color var(--skf-duration-s) var(--skf-ease);
}

/*
 * Orange with white text is only 3:1. Near-black on orange is 6.3:1, so the
 * primary button carries dark text — the campaign uses orange as a field
 * behind heavy type, which this matches.
 */
.skf-btn--primary {
	background-color: var(--skf-orange);
	border-color: var(--skf-orange);
	color: var(--skf-black);
}

.skf-btn--primary:hover,
.skf-btn--primary:focus-visible {
	background-color: var(--skf-white);
	border-color: var(--skf-white);
	color: var(--skf-blue);
}

.skf-btn--outline {
	background-color: transparent;
	border-color: currentColor;
	color: inherit;
}

.skf-btn--outline:hover,
.skf-btn--outline:focus-visible {
	background-color: var(--skf-orange);
	border-color: var(--skf-orange);
	color: var(--skf-black);
}

/* SE MER → */
.skf-link {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-size: var(--skf-size-label);
	font-weight: var(--skf-weight-bold);
	letter-spacing: var(--skf-track-label);
	text-transform: uppercase;
	text-decoration: none;
	padding-block: 6px;
}

.skf-link__arrow {
	width: 1.4em;
	height: auto;
	transition: transform var(--skf-duration) var(--skf-ease);
}

.skf-link:hover .skf-link__arrow,
.skf-link:focus-visible .skf-link__arrow { transform: translateX(4px); }


/* ==========================================================================
   2. GRAPHIC ELEMENTS
   ========================================================================== */


/* --- Orange hand-drawn line ---------------------------------------------- */

.skf-squiggle {
	display: block;
	width: clamp(96px, 13vw, 190px);
	height: auto;
	color: var(--skf-orange);
}

.skf-squiggle--blue { color: var(--skf-blue); }
.skf-squiggle--wide { width: clamp(160px, 26vw, 380px); }

/*
 * The line draws itself once on load. One orchestrated moment, not a
 * scattered scroll effect.
 */
.skf-squiggle--draw path {
	stroke-dasharray: 300;
	stroke-dashoffset: 300;
	animation: skf-draw 900ms var(--skf-ease) 300ms forwards;
}

@keyframes skf-draw {
	to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.skf-squiggle--draw path {
		stroke-dashoffset: 0;
		animation: none;
	}
}

/* --- Proverb texture ------------------------------------------------------ */

.skf-texture {
	position: absolute;
	inset: 0;
	z-index: -1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.06em;
	overflow: hidden;
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 5.5vw, 5rem);
	line-height: 0.95;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--skf-cream);
	opacity: var(--skf-texture-opacity);
	pointer-events: none;
	user-select: none;
}

.skf-texture span {
	display: block;
	white-space: nowrap;
}

.skf-texture--blue { color: var(--skf-blue); }

/* Confined to a vertical strip, as on the posters. */
.skf-texture--strip {
	left: auto;
	width: clamp(180px, 34%, 520px);
	-webkit-mask-image: linear-gradient(to left, #000 45%, transparent);
	        mask-image: linear-gradient(to left, #000 45%, transparent);
}

.skf-texture--fade {
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
	        mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
}

.skf-texture--corner {
	inset: auto 0 0 auto;
	width: clamp(200px, 40%, 560px);
	height: 60%;
	justify-content: flex-end;
	-webkit-mask-image: linear-gradient(to top left, #000 20%, transparent 70%);
	        mask-image: linear-gradient(to top left, #000 20%, transparent 70%);
}

/* --- Edition label -------------------------------------------------------- */

.skf-edition-label {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	font-size: var(--skf-size-label);
	font-weight: var(--skf-weight-bold);
	letter-spacing: var(--skf-track-label);
	text-transform: uppercase;
}

.skf-edition-label::before {
	content: "";
	width: clamp(24px, 4vw, 56px);
	height: 2px;
	background-color: currentColor;
	flex-shrink: 0;
}

/* --- Date block ----------------------------------------------------------- */

.skf-date-block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 0.8;
	font-family: var(--font-display);
	text-transform: uppercase;
}

.skf-date-block__day {
	font-size: clamp(2.75rem, 5vw, 4.5rem);
	letter-spacing: -0.02em;
}

.skf-date-block__month {
	font-size: clamp(1.1rem, 1.6vw, 1.5rem);
	letter-spacing: 0.06em;
	color: var(--skf-orange);
}

.skf-date-block__time {
	font-family: var(--font-body);
	font-size: var(--skf-size-small);
	font-weight: var(--skf-weight-bold);
	letter-spacing: 0.06em;
	margin-top: var(--space-xs);
	line-height: 1;
}


/* ==========================================================================
   3. IMAGE TREATMENTS
   ========================================================================== */


.skf-media-frame {
	position: relative;
	overflow: hidden;
	background-color: var(--skf-blue-deep);
}

.skf-media-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Blue monochrome. Used deliberately, never on every photograph. */
.skf-media-frame--tint { background-color: var(--skf-blue); }

.skf-media-frame--tint img {
	mix-blend-mode: luminosity;
	opacity: 0.82;
	filter: contrast(1.1);
}

.skf-media-frame--tint-deep img { opacity: 0.5; }

.skf-media-frame--orange { background-color: var(--skf-orange); }

.skf-media-frame--orange img {
	mix-blend-mode: luminosity;
	opacity: 0.8;
}

/* High-contrast editorial crop, colour retained. */
.skf-media-frame--punch img { filter: contrast(1.12) saturate(1.06); }

/* Scrim for type sitting over a photograph. */
.skf-media-frame--overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(6, 35, 137, 0.88) 0%, rgba(6, 35, 137, 0.28) 55%, transparent 100%);
	pointer-events: none;
}

.skf-ratio-1-1  { aspect-ratio: 1 / 1; }
.skf-ratio-4-5  { aspect-ratio: 4 / 5; }
.skf-ratio-3-4  { aspect-ratio: 3 / 4; }
.skf-ratio-16-9 { aspect-ratio: 16 / 9; }
.skf-ratio-3-2  { aspect-ratio: 3 / 2; }

/* Stand-in when a record has no image yet. */
.skf-media-frame--empty {
	background-color: var(--skf-blue);
	background-image:
		repeating-linear-gradient(45deg, transparent 0 12px, var(--skf-blue-lift) 12px 13px, transparent 13px 26px);
}


/* ==========================================================================
   4. HEADER
   ========================================================================== */


.skf-header {
	/* Sticky is opt-in from SKF Theme Settings; see .skf-header--sticky. */
	position: relative;
	top: 0;
	z-index: 100;
	background-color: var(--skf-blue);
	color: var(--skf-cream);
	transition: background-color var(--skf-duration) var(--skf-ease);
}

/*
 * The blue band runs the full width of the browser, but the logo, navigation
 * and CTA sit on the same centred grid as the rest of the page. Without this
 * the logo drifts to the far left and the CTA to the far right on a wide
 * screen while the content stays centred, and the header stops looking part
 * of the site.
 */
/*
 * The blue ground stays full width; the inner row follows the same centred
 * measure as page content. --skf-content is synced to Elementor's container
 * width when the plugin is active, so the header and the page below it line
 * up on any screen.
 */
/*
 * The blue ground spans the viewport; this row is the content rail and gets
 * its width from .skf-container, the same 1440px rail the Elementor widgets
 * below use. No max-width here: an earlier build capped it a second time at
 * a narrower measure, so the logo and CTA sat inside the page content
 * instead of lining up with it.
 */
.skf-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	min-height: var(--skf-header-h);
	padding-block: var(--space-xs);
}

/* Compacts on scroll; small enough not to be a "giant transition". */
.skf-header--sticky {
	position: sticky;
	top: 0;
}

.skf-header.is-scrolled {
	background-color: var(--skf-blue-deep);
	box-shadow: 0 1px 0 var(--skf-border-light);
}

.skf-header.is-scrolled .skf-header__inner { min-height: 68px; }

/* --- Logo lockup ---------------------------------------------------------- */

.skf-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	flex-shrink: 0;
}

.skf-logo:hover { color: inherit; }

.skf-logo__mark,
.skf-logo__mark-image {
	width: clamp(42px, 5vw, 52px);
	height: auto;
	flex-shrink: 0;
	color: var(--skf-orange);
	object-fit: contain;
	transition: color var(--skf-duration-s) var(--skf-ease);
}

.skf-logo:hover .skf-logo__mark { color: var(--skf-white); }

.skf-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.skf-logo__name {
	display: flex;
	flex-direction: column;
	gap: 0.08em;
	font-family: var(--font-body);
	font-size: clamp(0.66rem, 1vw, 0.78rem);
	font-weight: var(--skf-weight-bold);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--skf-white);
}

.skf-logo__year {
	font-family: var(--font-body);
	font-size: 0.65rem;
	font-weight: var(--skf-weight-medium);
	letter-spacing: 0.3em;
	color: var(--skf-orange);
	margin-top: 0.28em;
}

/* --- Desktop navigation --------------------------------------------------- */

.skf-header__nav-wrap {
	display: flex;
	align-items: center;
	gap: clamp(var(--space-md), 3vw, var(--space-xl));
}

.skf-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(var(--space-sm), 2vw, var(--space-lg));
	list-style: none;
	margin: 0;
	padding: 0;
}

.skf-nav a {
	position: relative;
	display: inline-block;
	padding-block: 10px;
	font-size: var(--skf-size-label);
	font-weight: var(--skf-weight-bold);
	letter-spacing: var(--skf-track-nav);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--skf-cream);
	white-space: nowrap;
}

/* Orange underline, animated width. */
.skf-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 2px;
	width: 0;
	height: 2px;
	background-color: var(--skf-orange);
	transition: width var(--skf-duration) var(--skf-ease);
}

.skf-nav a:hover,
.skf-nav a:focus-visible,
.skf-nav .current-menu-item > a,
.skf-nav .current_page_item > a { color: var(--skf-white); }

.skf-nav a:hover::after,
.skf-nav a:focus-visible::after,
.skf-nav .current-menu-item > a::after,
.skf-nav .current_page_item > a::after { width: 100%; }

.skf-header__cta { flex-shrink: 0; }

.skf-header__cta .skf-btn {
	min-height: 44px;
	padding: 12px 22px;
}

/* --- Menu trigger --------------------------------------------------------- */

.skf-nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 4px;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--skf-cream);
	font-family: var(--font-body);
	font-size: var(--skf-size-label);
	font-weight: var(--skf-weight-bold);
	letter-spacing: var(--skf-track-label);
	text-transform: uppercase;
}

.skf-nav-toggle__bars {
	position: relative;
	display: block;
	width: 26px;
	height: 2px;
	background-color: currentColor;
	transition: background-color var(--skf-duration-s) var(--skf-ease);
}

.skf-nav-toggle__bars::before,
.skf-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 26px;
	height: 2px;
	background-color: currentColor;
	transition: transform var(--skf-duration) var(--skf-ease);
}

.skf-nav-toggle__bars::before { top: -8px; }
.skf-nav-toggle__bars::after  { top: 8px; }

.skf-nav-toggle[aria-expanded="true"] .skf-nav-toggle__bars { background-color: transparent; }
.skf-nav-toggle[aria-expanded="true"] .skf-nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.skf-nav-toggle[aria-expanded="true"] .skf-nav-toggle__bars::after  { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
	.skf-nav-toggle { display: inline-flex; }
	.skf-header__nav-wrap { display: none; }
}


/* ==========================================================================
   5. MOBILE NAVIGATION
   ========================================================================== */


.skf-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	background-color: var(--skf-blue);
	color: var(--skf-cream);
	overflow-y: auto;
	overscroll-behavior: contain;
	visibility: hidden;
	opacity: 0;
	transition:
		opacity var(--skf-duration) var(--skf-ease),
		visibility var(--skf-duration) var(--skf-ease);
}

.skf-mobile-nav.is-open {
	visibility: visible;
	opacity: 1;
}

.skf-mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	min-height: var(--skf-header-h);
	padding: var(--space-xs) var(--skf-gutter);
	flex-shrink: 0;
}

.skf-mobile-nav__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--space-xl) var(--skf-gutter) var(--space-lg);
}

.skf-mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: skf-nav;
}

.skf-mobile-nav__list li {
	counter-increment: skf-nav;
	border-bottom: 1px solid var(--skf-border-light);
}

.skf-mobile-nav__list a {
	display: flex;
	align-items: baseline;
	gap: var(--space-md);
	padding-block: clamp(12px, 2.2vh, 22px);
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 11vw, 4rem);
	line-height: 1;
	letter-spacing: var(--skf-track-display);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--skf-cream);
}

/* Orange numbers, as on the campaign layouts. */
.skf-mobile-nav__list a::before {
	content: counter(skf-nav, decimal-leading-zero);
	font-family: var(--font-body);
	font-size: 0.7rem;
	font-weight: var(--skf-weight-bold);
	letter-spacing: 0.14em;
	color: var(--skf-orange);
	flex-shrink: 0;
}

.skf-mobile-nav__list a:hover,
.skf-mobile-nav__list a:focus-visible { color: var(--skf-orange); }

.skf-mobile-nav__foot {
	flex-shrink: 0;
	padding: var(--space-lg) var(--skf-gutter) var(--space-xl);
	border-top: 1px solid var(--skf-border-light);
}

.skf-mobile-nav__foot .skf-btn { width: 100%; justify-content: center; }

.skf-mobile-nav__meta {
	margin-top: var(--space-md);
	font-size: var(--skf-size-small);
	color: var(--skf-cream-muted);
}

body.skf-nav-open { overflow: hidden; }


/* ==========================================================================
   6. FOOTER
   ========================================================================== */


.skf-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--skf-blue-deep);
	color: var(--skf-cream);
	padding-top: var(--skf-section-y-tight);
}

.skf-footer__grid {
	display: grid;
	gap: var(--space-xl) var(--space-lg);
	grid-template-columns: repeat(12, minmax(0, 1fr));
	/* Only the normal partner-to-colophon rhythm remains in document flow.
	 * The oversized wordmark is now an overlapping background layer. */
	padding-bottom: var(--space-sm);
}

.skf-footer__brand { grid-column: 1 / span 4; min-width: 0; }
.skf-footer__col   { grid-column: span 2; min-width: 0; }
.skf-footer__col--wide { grid-column: span 3; min-width: 0; }

@media (max-width: 1024px) {
	.skf-footer__brand { grid-column: 1 / -1; }
	.skf-footer__col,
	.skf-footer__col--wide { grid-column: span 6; }
}

@media (max-width: 767px) {
	.skf-footer__col,
	.skf-footer__col--wide { grid-column: 1 / -1; }
}

.skf-footer__heading {
	font-family: var(--font-body);
	font-size: var(--skf-size-label);
	font-weight: var(--skf-weight-bold);
	letter-spacing: var(--skf-track-label);
	text-transform: uppercase;
	color: var(--skf-orange);
	margin: 0 0 var(--space-md);
}

.skf-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.skf-footer__list li + li { margin-top: 10px; }

.skf-footer__list a {
	font-size: var(--skf-size-small);
	text-decoration: none;
	color: var(--skf-cream);
}

.skf-footer__list a:hover { color: var(--skf-orange); }

.skf-footer__text {
	font-size: var(--skf-size-small);
	color: var(--skf-cream-muted);
	max-width: 34ch;
}

.skf-footer__dates {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1;
	letter-spacing: var(--skf-track-display);
	text-transform: uppercase;
	color: var(--skf-orange);
	margin: var(--space-md) 0 var(--space-sm);
}

.skf-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.skf-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--skf-cream);
	border: 1px solid var(--skf-border-light);
	border-radius: var(--radius-small);
	transition:
		background-color var(--skf-duration-s) var(--skf-ease),
		border-color var(--skf-duration-s) var(--skf-ease),
		color var(--skf-duration-s) var(--skf-ease);
}

.skf-social a:hover,
.skf-social a:focus-visible {
	background-color: var(--skf-orange);
	border-color: var(--skf-orange);
	color: var(--skf-black);
}

.skf-social svg { width: 20px; height: 20px; }

/*
 * Partner logos, inside the far-right footer column.
 *
 * A two-column mosaic rather than one logo per row: marks arrive at wildly
 * different proportions, so a fixed row height would either crush the wide
 * ones or float the narrow ones in space. Each cell is a fixed box the mark
 * is fitted into, and a wide mark can be given both columns.
 *
 * Laid out here rather than borrowing the widget's centred strip, which
 * doubled the footer's height when it was tried.
 */
.skf-partners {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-sm);
	list-style: none;
	margin: 0;
	padding: 0;
}

.skf-partners li {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 4px;
}

/*
 * A landscape mark gets the full width of the column. Nothing detects the
 * aspect ratio in CSS, so this is offered as a class an editor can apply
 * rather than guessed at automatically.
 */
.skf-partners li.is-wide { grid-column: 1 / -1; }

/*
 * Fitted rather than stretched, so a tall mark and a wide one end up
 * optically similar without either being distorted.
 */
.skf-partners img {
	max-height: 36px;
	max-width: 100%;
	width: auto;
	object-fit: contain;
	/* Footer logos are uploaded in white and are shown exactly as supplied. */
	filter: none;
	opacity: 1;
	transition: none;
}

/* The two logo groups share one footer column. */
.skf-footer__partner-group--secondary {
	margin-top: var(--space-lg);
}

@media (max-width: 767px) {

	/* Two fitted columns keep real partner marks readable without clipping. */
	.skf-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.skf-partners li.is-wide { grid-column: auto; }
}

/*
 * The festival name cropped into the base of the footer, as on the posters.
 * Decorative, so it is hidden from assistive technology.
 */
/*
 * Background wordmark layer. It is removed from normal flow so it no longer
 * creates a separate band between the partner logos and the colophon. The
 * partner marks and footer copy stay above it and remain fully interactive.
 */
.skf-footer__main,
.skf-footer__colophon-wrap {
	position: relative;
	z-index: 2;
}

.skf-footer__wordmark-layer {
	position: absolute;
	inset-inline: 0;
	bottom: clamp(58px, 5vw, 84px);
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	user-select: none;
}

.skf-footer__wordmark-rail {
	overflow: visible;
}

.skf-footer__wordmark {
	font-family: var(--font-display);
	font-size: clamp(3.5rem, 15vw, 13rem);
	line-height: 0.78;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	color: var(--skf-blue);
	margin: 0;
	white-space: nowrap;
	user-select: none;
	pointer-events: none;
}

@media (max-width: 767px) {
	/* Keep the moving type behind the final logo rows without increasing the
	 * height of the mobile footer. */
	.skf-footer__wordmark-layer { bottom: 66px; }
}

.skf-colophon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-xs) var(--space-lg);
	padding-block: var(--space-md);
	border-top: 1px solid var(--skf-border-light);
	font-size: var(--skf-size-small);
	color: var(--skf-cream-muted);
}

.skf-colophon p { margin: 0; }

.skf-colophon a { color: var(--skf-cream-muted); }
.skf-colophon a:hover { color: var(--skf-orange); }

/* Demo banner. Removed once real content exists. */
.skf-demo-note {
	background-color: var(--skf-orange);
	color: var(--skf-black);
	text-align: center;
	padding: 10px var(--skf-gutter);
	font-size: var(--skf-size-small);
	font-weight: var(--skf-weight-medium);
}


/* ==========================================================================
   6. LIGHT BUTTON
   ========================================================================== */

/* --- Light button, for blue grounds -------------------------------------- */

.skf-btn--light {
	background-color: var(--skf-cream);
	border-color: var(--skf-cream);
	color: var(--skf-blue);
}

.skf-btn--light:hover,
.skf-btn--light:focus-visible {
	background-color: var(--skf-orange);
	border-color: var(--skf-orange);
	color: var(--skf-black);
}

/* ==========================================================================
   7. BLOCK ALIGNMENT
   ========================================================================== */
/* --- Alignment support ---------------------------------------------------- */

.alignfull {
	width: 100%;
	max-width: none;
}

.alignwide {
	max-width: var(--skf-container);
	margin-inline: auto;
}

/* --- Footer credit -------------------------------------------------------- */




/* A logo uploaded for the footer, rather than the drawn mark. */
.skf-footer .skf-logo__image {
	max-width: clamp(160px, 22vw, 260px);
	height: auto;
}

/* --- Byline --------------------------------------------------------------- */





/* ==========================================================================
   MEGA MENU
   One set of markup. Above 1024px it is a panel under the header; below,
   the same markup becomes an accordion inside the mobile overlay.
   ========================================================================== */

.skf-nav__item--mega { position: static; }

.skf-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	margin-left: 4px;
	background: none;
	border: 0;
	cursor: pointer;
	color: inherit;
	vertical-align: middle;
}

.skf-nav__toggle svg {
	width: 11px;
	height: auto;
	transition: transform var(--skf-duration) var(--skf-ease);
}

.skf-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* --- Desktop panel -------------------------------------------------------- */

@media (min-width: 1025px) {

	.skf-mega {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 90;
		background-color: var(--skf-blue-deep);
		border-top: 1px solid var(--skf-border-light);
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition:
			opacity var(--skf-duration) var(--skf-ease),
			transform var(--skf-duration) var(--skf-ease),
			visibility var(--skf-duration) var(--skf-ease);
	}

	.skf-nav__item--mega.is-open > .skf-mega {
		visibility: visible;
		opacity: 1;
		transform: translateY(0);
	}

	.skf-mega__inner {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: var(--space-xl);
		align-items: start;
		padding-block: var(--space-xl);
	}

	.skf-mega__columns {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
		gap: var(--space-lg);
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.skf-mega__aside {
		display: flex;
		flex-direction: column;
		gap: var(--space-md);
		max-width: 280px;
	}

	.skf-mega__image img {
		width: 100%;
		height: auto;
		border-radius: var(--radius-small);
	}
}

/* --- Column contents ------------------------------------------------------ */

.skf-mega__column > a {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 1.5vw, 1.4rem);
	line-height: 1.1;
	letter-spacing: var(--skf-track-display);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--skf-white);
}

.skf-mega__column > a:hover { color: var(--skf-orange); }

.skf-mega__desc {
	display: block;
	margin-top: 4px;
	font-size: var(--skf-size-small);
	line-height: var(--skf-leading-snug);
	color: var(--skf-cream-muted);
	text-transform: none;
	letter-spacing: 0;
}

.skf-mega__column .skf-nav__sub {
	list-style: none;
	margin: var(--space-sm) 0 0;
	padding: 0;
}

.skf-mega__column .skf-nav__sub li + li { margin-top: 6px; }

.skf-mega__column .skf-nav__sub a {
	font-size: var(--skf-size-small);
	font-weight: var(--skf-weight-medium);
	letter-spacing: 0;
	text-transform: none;
	color: var(--skf-cream);
	text-decoration: none;
}

.skf-mega__column .skf-nav__sub a:hover { color: var(--skf-orange); }

/* --- Mobile accordion ----------------------------------------------------- */

@media (max-width: 1024px) {

	.skf-mega {
		display: none;
		padding: var(--space-sm) 0 var(--space-md);
	}

	.skf-mobile-nav__list .is-open > .skf-mega { display: block; }

	.skf-mega__inner {
		max-width: none;
		padding-inline: 0;
	}

	.skf-mega__columns {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.skf-mega__column + .skf-mega__column { margin-top: var(--space-md); }

	.skf-mega__column > a {
		font-family: var(--font-body);
		font-size: 1rem;
		font-weight: var(--skf-weight-bold);
		letter-spacing: 0.06em;
	}

	.skf-mega__aside {
		margin-top: var(--space-md);
	}

	.skf-mega__image { display: none; }

	/* The toggle needs a real target on a touch screen. */
	.skf-mobile-nav__list .skf-nav__toggle {
		width: 48px;
		height: 48px;
		margin-left: auto;
		flex-shrink: 0;
	}

	.skf-mobile-nav__list li { display: block; }

	.skf-mobile-nav__list > li > a {
		display: inline-flex;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.skf-mega,
	.skf-nav__toggle svg { transition: none; }
}


/* --- Footer brand column -------------------------------------------------- */

.skf-footer__title {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 2.6vw, 2.5rem);
	line-height: var(--skf-leading-h2);
	letter-spacing: var(--skf-track-display);
	text-transform: uppercase;
	color: var(--skf-white);
	margin: var(--space-md) 0 0;
	max-width: 18ch;
}

.skf-footer__intro {
	margin: var(--space-sm) 0 0;
	max-width: 42ch;
	font-size: var(--skf-size-small);
	line-height: var(--skf-leading-body);
	color: var(--skf-cream-muted);
}

.skf-footer__action { margin: var(--space-md) 0 0; }

/* --- Colophon: one row, organiser left, credit right ---------------------- */

.skf-colophon {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-xs) var(--space-lg);
	padding-block: var(--space-md);
	border-top: 1px solid var(--skf-border-light);
	font-size: var(--skf-size-small);
	color: var(--skf-cream-muted);
}

.skf-colophon__left {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-xs) var(--space-md);
}

.skf-colophon p { margin: 0; }

.skf-colophon a {
	color: var(--skf-cream);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.skf-colophon a:hover { color: var(--skf-orange); }

.skf-colophon__right p { margin: 0; }

@media (max-width: 767px) {

	.skf-colophon {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-xs);
	}
}

/* --- Header logo ---------------------------------------------------------- */

/*
 * The mark turns white on hover. brightness(0) flattens it to black first,
 * then invert lifts it to white, which works whatever colours the supplied
 * logo uses.
 */
.skf-header img,
.skf-header .custom-logo,
.skf-footer img.skf-logo__image {
	transition: filter var(--skf-duration-s) var(--skf-ease);
}

.skf-header a:hover img,
.skf-header a:focus-visible img,
.skf-header a:hover .custom-logo {
	filter: brightness(0) invert(1);
}

@media (prefers-reduced-motion: reduce) {
	.skf-header img,
	.skf-header .custom-logo { transition: none; }
}

/* --- Navigation feedback -------------------------------------------------- */

/*
 * Motion only. The link's colour, weight, spacing and underline behaviour
 * are untouched; this adds the transition they were changing without.
 */
.skf-nav a,
.skf-mobile-nav__list a,
.skf-footer__list a,
.skf-colophon a,
.skf-credit a {
	transition: color var(--skf-duration-s) var(--skf-ease);
}

/*
 * The footer's closing wordmark arrives once, quietly. Scoped to
 * .skf-motion so it is simply present when the script has not run.
 */
.skf-motion .skf-footer__wordmark {
	opacity: 0;
	transform: translate3d(0, 12px, 0);
	transition:
		opacity 700ms var(--skf-ease),
		transform 700ms var(--skf-ease);
}

.skf-motion .skf-footer__wordmark.skf-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {

	.skf-nav a,
	.skf-mobile-nav__list a,
	.skf-footer__list a,
	.skf-colophon a { transition: none; }

	.skf-motion .skf-footer__wordmark {
		opacity: 1;
		transform: none;
		transition: none;
	}
}


/* ==========================================================================
   MOBILE / TABLET WIDTH HARDENING — 0.1.4
   No desktop geometry changes.
   ========================================================================== */

@media (max-width: 1024px) {
	.skf-main,
	.skf-container,
	.skf-footer__grid,
	.skf-footer__brand,
	.skf-footer__col,
	.skf-footer__col--wide,
	.skf-footer__partner-group,
	.skf-partners,
	.skf-partners li {
		min-width: 0;
		max-width: 100%;
	}

	.skf-main { width: 100%; overflow-x: clip; }

	/* Elementor flex/grid children default to min-width:auto, which can let a
	 * long heading or URL make the whole mobile canvas wider than the device. */
	.skf-main .e-con,
	.skf-main .e-con-inner,
	.skf-main .elementor-widget,
	.skf-main .elementor-widget-container {
		min-width: 0;
		max-width: 100%;
	}

	.skf-footer__list li,
	.skf-footer__list a,
	.skf-footer__text {
		min-width: 0;
		max-width: 100%;
		white-space: normal;
		overflow-wrap: anywhere;
		word-break: normal;
	}

	.skf-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.skf-partners li { width: 100%; }
	.skf-partners img { max-width: 100%; width: auto; height: auto; }
}

/* Sticky header must remain visible below the WordPress admin bar while
 * logged in; visitors still get top:0. */
body.admin-bar .skf-header--sticky { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .skf-header--sticky { top: 46px; }
}
