/* ==========================================================================
   SWEDIWorld — main stylesheet
   Palette per BRIEF section 8: three-tone blue. Navy carries authority
   (headings, footer), royal blue carries every interactive element, cyan
   stays a small accent — at large areas it reads consumer-tech, not nonprofit.
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */

:root {
	/* Brand */
	--swedi-navy: #1b2a5e;
	--swedi-blue: #2a6fc9;
	--swedi-cyan: #29b6e8;
	--swedi-deep: #123e8c;

	/* Neutrals */
	--swedi-black: #111111;
	--swedi-offwhite: #f7f7f7;
	--swedi-white: #ffffff;
	--swedi-grey: #666666;
	--swedi-grey-light: #8a8a8a;
	--swedi-rule: #e4e7ee;
	--swedi-rule-dark: rgba(255, 255, 255, 0.14);

	/* Derived */
	--swedi-navy-tint: rgba(27, 42, 94, 0.06);
	--swedi-blue-tint: rgba(42, 111, 201, 0.08);
	--swedi-gradient: linear-gradient(135deg, var(--swedi-navy) 0%, var(--swedi-deep) 55%, var(--swedi-blue) 100%);

	/* Type */
	--swedi-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--swedi-font-head: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Measure */
	--swedi-container: 1200px;
	--swedi-container-narrow: 760px;
	--swedi-gutter: 1.5rem;
	--swedi-section-y: clamp(3.5rem, 7vw, 6rem);

	/* Chrome */
	--swedi-radius: 10px;
	--swedi-radius-lg: 16px;
	--swedi-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px rgba(27, 42, 94, 0.07);
	--swedi-shadow-lift: 0 2px 4px rgba(17, 17, 17, 0.05), 0 18px 40px rgba(27, 42, 94, 0.14);
	--swedi-header-h: 104px;
	--swedi-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* 2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--swedi-header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--swedi-white);
	color: var(--swedi-grey);
	font-family: var(--swedi-font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

figure {
	margin: 0;
}

hr {
	border: 0;
	border-top: 1px solid var(--swedi-rule);
	margin: 2.5rem 0;
}

/* 3. Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--swedi-navy);
	font-family: var(--swedi-font-head);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

h1 {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
	font-size: clamp(1.875rem, 3.6vw, 2.75rem);
}

h3 {
	font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
	font-size: 1.125rem;
}

h5,
h6 {
	font-size: 1rem;
}

p {
	margin: 0 0 1.25rem;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--swedi-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.18s var(--swedi-ease);
}

a:hover,
a:focus {
	color: var(--swedi-deep);
}

strong,
b {
	font-weight: 700;
	color: var(--swedi-navy);
}

blockquote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 3px solid var(--swedi-blue);
	color: var(--swedi-navy);
	font-family: var(--swedi-font-head);
	font-size: 1.25rem;
	font-style: normal;
	line-height: 1.5;
}

blockquote cite {
	display: block;
	margin-top: 0.75rem;
	color: var(--swedi-grey);
	font-family: var(--swedi-font-body);
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 500;
}

code,
kbd,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre {
	overflow-x: auto;
	padding: 1.25rem;
	background: var(--swedi-offwhite);
	border-radius: var(--swedi-radius);
}

/* 4. Layout
   ========================================================================== */

.swedi-container {
	width: 100%;
	max-width: var(--swedi-container);
	margin-inline: auto;
	padding-inline: var(--swedi-gutter);
}

.swedi-container--narrow {
	max-width: var(--swedi-container-narrow);
}

.swedi-section {
	padding-block: var(--swedi-section-y);
}

.swedi-section--tint {
	background: var(--swedi-offwhite);
}

.swedi-section--navy {
	background: var(--swedi-navy);
	color: rgba(255, 255, 255, 0.82);
}

.swedi-section--navy h1,
.swedi-section--navy h2,
.swedi-section--navy h3 {
	color: var(--swedi-white);
}

.swedi-section__head {
	max-width: 46rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.swedi-section__head--center {
	margin-inline: auto;
	text-align: center;
}

.swedi-section__head p {
	font-size: 1.125rem;
}

.swedi-eyebrow {
	display: block;
	margin-bottom: 0.85rem;
	color: var(--swedi-blue);
	font-family: var(--swedi-font-head);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.swedi-section--navy .swedi-eyebrow {
	color: var(--swedi-cyan);
}

.swedi-grid {
	display: grid;
	gap: 1.5rem;
}

.swedi-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.swedi-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.swedi-grid--4 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

/* 5. Buttons
   ========================================================================== */

.swedi-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 1.6rem;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--swedi-blue);
	color: var(--swedi-white);
	font-family: var(--swedi-font-head);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s var(--swedi-ease), border-color 0.18s var(--swedi-ease),
		color 0.18s var(--swedi-ease), transform 0.18s var(--swedi-ease);
}

.swedi-btn:hover,
.swedi-btn:focus {
	background: var(--swedi-deep);
	color: var(--swedi-white);
	transform: translateY(-1px);
}

.swedi-btn--outline {
	background: transparent;
	border-color: var(--swedi-blue);
	color: var(--swedi-blue);
}

.swedi-btn--outline:hover,
.swedi-btn--outline:focus {
	background: var(--swedi-blue);
	color: var(--swedi-white);
}

.swedi-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: var(--swedi-white);
}

.swedi-btn--ghost:hover,
.swedi-btn--ghost:focus {
	background: var(--swedi-white);
	border-color: var(--swedi-white);
	color: var(--swedi-navy);
}

.swedi-btn--lg {
	padding: 1.05rem 2rem;
	font-size: 1rem;
}

.swedi-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.875rem;
	margin-top: 2rem;
}

.swedi-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--swedi-font-head);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.swedi-link-arrow::after {
	content: "→";
	transition: transform 0.18s var(--swedi-ease);
}

.swedi-link-arrow:hover::after,
.swedi-link-arrow:focus::after {
	transform: translateX(3px);
}

/* 6. Accessibility helpers
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 999;
	padding: 0.75rem 1.25rem;
	background: var(--swedi-navy);
	color: var(--swedi-white);
	border-radius: 0 0 var(--swedi-radius) var(--swedi-radius);
	font-weight: 600;
	text-decoration: none;
	transition: top 0.2s var(--swedi-ease);
}

.skip-link:focus {
	top: 0;
	color: var(--swedi-white);
}

:focus-visible {
	outline: 3px solid var(--swedi-cyan);
	outline-offset: 2px;
}

/* 6b. Motion
   Reveal only applies once JavaScript has flagged itself on <html>, so with
   scripts off nothing is ever hidden. Reduced-motion opts out entirely.
   ========================================================================== */

.swedi-js .swedi-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s var(--swedi-ease), transform 0.55s var(--swedi-ease);
}

.swedi-js .swedi-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.swedi-js .swedi-reveal {
		opacity: 1;
		transform: none;
	}
}

/* Lightbox
   ========================================================================== */

.swedi-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: clamp(1rem, 4vw, 3rem);
	background: rgba(9, 14, 32, 0.94);
}

.swedi-lightbox.is-open {
	display: flex;
}

.swedi-lightbox__figure {
	max-width: min(100%, 68rem);
	max-height: 100%;
	margin: 0;
	text-align: center;
}

.swedi-lightbox__figure img {
	max-width: 100%;
	max-height: 78vh;
	width: auto;
	border-radius: var(--swedi-radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.swedi-lightbox__figure figcaption {
	margin-top: 1rem;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9375rem;
}

.swedi-lightbox__close,
.swedi-lightbox__nav {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	flex-shrink: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--swedi-white);
	font-size: 1.375rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.18s var(--swedi-ease);
}

.swedi-lightbox__close:hover,
.swedi-lightbox__nav:hover,
.swedi-lightbox__close:focus-visible,
.swedi-lightbox__nav:focus-visible {
	background: var(--swedi-white);
	color: var(--swedi-navy);
}

.swedi-lightbox__close {
	position: absolute;
	top: clamp(1rem, 3vw, 2rem);
	right: clamp(1rem, 3vw, 2rem);
	font-size: 1.75rem;
}

@media (max-width: 640px) {
	.swedi-lightbox__nav {
		position: absolute;
		bottom: 1.5rem;
	}

	.swedi-lightbox__nav--prev {
		left: 25%;
	}

	.swedi-lightbox__nav--next {
		right: 25%;
	}

	.swedi-lightbox__figure figcaption {
		margin-bottom: 4rem;
	}
}

/* Gallery items are buttons in practice once the lightbox is active */
.swedi-js .swedi-gallery a {
	cursor: zoom-in;
}

/* 7. Header and navigation
   ========================================================================== */

.swedi-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--swedi-white);
	border-bottom: 1px solid var(--swedi-rule);
}

.swedi-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--swedi-header-h);
}

.swedi-brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
}

/* The lockup's tagline is set small relative to the wordmark — below about
   70px of lockup height it stops being readable, so the header gives it
   room rather than shrinking it to decoration. */
.swedi-brand__full {
	width: auto;
	height: 72px;
}

.swedi-brand__emblem {
	display: none;
	width: auto;
	height: 46px;
}

.swedi-brand__text {
	display: flex;
	flex-direction: column;
	margin-left: 0.75rem;
}

.swedi-brand__name {
	color: var(--swedi-navy);
	font-family: var(--swedi-font-head);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.swedi-brand__tagline {
	color: var(--swedi-blue);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Primary menu */

.swedi-nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin-left: auto;
}

.swedi-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.swedi-menu li {
	position: relative;
}

.swedi-menu > li > a {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.6rem 0.75rem;
	border-radius: var(--swedi-radius);
	color: var(--swedi-navy);
	font-family: var(--swedi-font-head);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.swedi-menu > li > a:hover,
.swedi-menu > li > a:focus,
.swedi-menu > li.current-menu-item > a,
.swedi-menu > li.current-menu-ancestor > a,
.swedi-menu > li.current_page_parent > a {
	background: var(--swedi-blue-tint);
	color: var(--swedi-blue);
}

/* Dropdown parents get a caret */
.swedi-menu > li.menu-item-has-children > a::after {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	margin-top: -0.2rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.18s var(--swedi-ease);
}

.swedi-menu > li.menu-item-has-children:hover > a::after,
.swedi-menu > li.menu-item-has-children:focus-within > a::after {
	transform: rotate(225deg) translate(-0.15rem, -0.15rem);
}

.swedi-menu .sub-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	z-index: 20;
	min-width: 15rem;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	background: var(--swedi-white);
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius);
	box-shadow: var(--swedi-shadow-lift);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s var(--swedi-ease), transform 0.18s var(--swedi-ease), visibility 0.18s;
}

.swedi-menu li:hover > .sub-menu,
.swedi-menu li:focus-within > .sub-menu,
.swedi-menu li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.swedi-menu .sub-menu a {
	display: block;
	padding: 0.6rem 0.75rem;
	border-radius: 6px;
	color: var(--swedi-navy);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	white-space: normal;
}

.swedi-menu .sub-menu a:hover,
.swedi-menu .sub-menu a:focus,
.swedi-menu .sub-menu .current-menu-item > a {
	background: var(--swedi-blue-tint);
	color: var(--swedi-blue);
}

/* The Donate item is styled as a button wherever it appears in the menu */
.swedi-menu > li.swedi-menu__cta > a,
.swedi-nav__cta {
	padding: 0.75rem 1.4rem;
	border-radius: 999px;
	background: var(--swedi-blue);
	color: var(--swedi-white);
	font-family: var(--swedi-font-head);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.18s var(--swedi-ease);
}

.swedi-menu > li.swedi-menu__cta > a:hover,
.swedi-menu > li.swedi-menu__cta > a:focus,
.swedi-nav__cta:hover,
.swedi-nav__cta:focus {
	background: var(--swedi-deep);
	color: var(--swedi-white);
}

/* Submenu toggle button, injected onto every parent item. Off-screen on
   pointer devices where hover already opens the panel; a real control at
   mobile widths and for keyboard users. */

.swedi-submenu-toggle {
	position: absolute;
	right: 0;
	top: 0;
	width: 2.75rem;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--swedi-navy);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
}

.swedi-submenu-toggle:focus-visible {
	opacity: 1;
	pointer-events: auto;
}

/* Mobile toggle */

.swedi-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius);
	background: var(--swedi-white);
	color: var(--swedi-navy);
	cursor: pointer;
}

.swedi-nav-toggle__bars,
.swedi-nav-toggle__bars::before,
.swedi-nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s var(--swedi-ease), opacity 0.2s var(--swedi-ease);
}

.swedi-nav-toggle__bars {
	position: relative;
}

.swedi-nav-toggle__bars::before,
.swedi-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.swedi-nav-toggle__bars::before {
	top: -6px;
}

.swedi-nav-toggle__bars::after {
	top: 6px;
}

.swedi-nav-toggle[aria-expanded="true"] .swedi-nav-toggle__bars {
	background: transparent;
}

.swedi-nav-toggle[aria-expanded="true"] .swedi-nav-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.swedi-nav-toggle[aria-expanded="true"] .swedi-nav-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* 8. Hero
   ========================================================================== */

.swedi-hero {
	position: relative;
	overflow: hidden;
	background: var(--swedi-gradient);
	color: rgba(255, 255, 255, 0.85);
}

.swedi-hero::after {
	content: "";
	position: absolute;
	top: -30%;
	right: -12%;
	width: 44rem;
	height: 44rem;
	background: radial-gradient(circle, rgba(41, 182, 232, 0.28) 0%, rgba(41, 182, 232, 0) 62%);
	pointer-events: none;
}

.swedi-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
	padding-block: clamp(4rem, 9vw, 7.5rem);
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.swedi-hero__inner--solo {
	grid-template-columns: minmax(0, 1fr);
	max-width: 52rem;
}

.swedi-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	padding: 0.4rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--swedi-white);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.swedi-hero__title {
	margin-bottom: 1.25rem;
	color: var(--swedi-white);
	font-size: clamp(2.5rem, 6vw, 4.25rem);
	line-height: 1.05;
}

.swedi-hero__title em {
	display: block;
	color: var(--swedi-cyan);
	font-style: normal;
}

.swedi-hero__lede {
	max-width: 34rem;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	line-height: 1.6;
}

.swedi-hero__media {
	position: relative;
	border-radius: var(--swedi-radius-lg);
	overflow: hidden;
	box-shadow: var(--swedi-shadow-lift);
	aspect-ratio: 4 / 3;
}

.swedi-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.swedi-hero__emblem {
	display: grid;
	place-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
}

.swedi-hero__emblem img {
	width: min(100%, 22rem);
	filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

/* Slideshow hero
   Replaces the old site's Revolution Slider. Slides are stacked and
   cross-faded rather than translated, so no layout work happens per frame. */

.swedi-hero--slides {
	display: block;
	padding: 0;
}

.swedi-hero__slides {
	display: grid;
}

.swedi-slide {
	position: relative;
	grid-area: 1 / 1;
	display: flex;
	align-items: center;
	min-height: clamp(30rem, 68vh, 44rem);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s var(--swedi-ease), visibility 0.6s;
}

.swedi-slide.is-active {
	opacity: 1;
	visibility: visible;
	position: relative;
	z-index: 2;
}

/* Without JavaScript only the first slide is marked active, and it shows. */
.swedi-hero--slides.is-single .swedi-slide {
	opacity: 1;
	visibility: visible;
}

.swedi-slide__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.swedi-slide__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}

/* Keeps the reversed text legible over any photograph */
.swedi-slide__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(17, 26, 58, 0.94) 0%,
		rgba(18, 62, 140, 0.82) 42%,
		rgba(27, 42, 94, 0.55) 100%
	);
}

.swedi-slide .swedi-container {
	position: relative;
	z-index: 1;
	width: 100%;
}

.swedi-slide__body {
	max-width: 44rem;
	padding-block: clamp(3.5rem, 8vw, 6rem);
	color: rgba(255, 255, 255, 0.88);
}

.swedi-slide .swedi-hero__title {
	margin-bottom: 1.25rem;
}


/* Background video behind a slide.
   Sized to cover rather than fit: a 16:9 iframe cannot object-fit, so it is
   scaled off the shorter axis and centred, which is the only way to fill a
   hero of arbitrary proportions without letterboxing. */

.swedi-slide__video {
	position: absolute;
	inset: 0;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.8s var(--swedi-ease);
	pointer-events: none;
}

.swedi-slide__video.is-playing {
	opacity: 1;
}

.swedi-slide__video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;          /* 16:9 off the width */
	min-width: 177.78vh;      /* ...or off the height, whichever covers */
	min-height: 100%;
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none;
}

/* The photograph stays beneath the video, so there is never a black frame
   while it buffers and never a gap if it fails to load at all. */
.swedi-slide__media.has-video img {
	position: absolute;
	inset: 0;
}

/* Controls */

.swedi-hero__controls {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
	margin-top: -3.5rem;
	position: relative;
	z-index: 3;
}

.swedi-hero__arrow,
.swedi-hero__pause {
	display: grid;
	place-items: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--swedi-white);
	font-family: var(--swedi-font-head);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.18s var(--swedi-ease), border-color 0.18s var(--swedi-ease);
}

.swedi-hero__arrow:hover,
.swedi-hero__pause:hover,
.swedi-hero__arrow:focus-visible,
.swedi-hero__pause:focus-visible {
	background: var(--swedi-white);
	border-color: var(--swedi-white);
	color: var(--swedi-navy);
}

.swedi-hero__pause {
	margin-left: auto;
}

.swedi-hero__dots {
	display: flex;
	gap: 0.4rem;
}

.swedi-hero__dot {
	width: 2rem;
	height: 0.375rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.32);
	cursor: pointer;
	transition: background-color 0.2s var(--swedi-ease), width 0.2s var(--swedi-ease);
}

.swedi-hero__dot:hover {
	background: rgba(255, 255, 255, 0.6);
}

.swedi-hero__dot.is-active {
	width: 3rem;
	background: var(--swedi-cyan);
}

@media (max-width: 640px) {
	.swedi-hero__controls {
		margin-top: -2.5rem;
	}

	.swedi-hero__pause {
		display: none;
	}

	.swedi-slide__media::after {
		background: linear-gradient(
			160deg,
			rgba(17, 26, 58, 0.92) 0%,
			rgba(18, 62, 140, 0.88) 55%,
			rgba(27, 42, 94, 0.8) 100%
		);
	}
}

/* Interior page hero */

.swedi-pagehero {
	background: var(--swedi-navy);
	color: rgba(255, 255, 255, 0.78);
}

.swedi-pagehero__inner {
	padding-block: clamp(3rem, 6vw, 4.5rem);
	max-width: 48rem;
}

.swedi-pagehero h1 {
	color: var(--swedi-white);
	margin-bottom: 0.75rem;
}

.swedi-pagehero p {
	font-size: 1.125rem;
}

.swedi-breadcrumb {
	margin-bottom: 1rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.65);
}

.swedi-breadcrumb a {
	color: var(--swedi-cyan);
	text-decoration: none;
}

.swedi-breadcrumb a:hover,
.swedi-breadcrumb a:focus {
	text-decoration: underline;
	color: var(--swedi-cyan);
}

.swedi-breadcrumb span + span::before {
	content: "/";
	margin: 0 0.5rem;
	color: rgba(255, 255, 255, 0.35);
}

/* 9. Stats band
   ========================================================================== */

.swedi-stats {
	background: var(--swedi-offwhite);
	border-bottom: 1px solid var(--swedi-rule);
}

.swedi-stats__inner {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.5rem, 5vw, 4rem);
	padding-block: clamp(2.25rem, 4vw, 3rem);
}

/* Deferred content: the band ships with whatever figures are evidenced and
   simply sits left-aligned when there is one. No reserved empty slots. */
.swedi-stat {
	flex: 0 1 auto;
	min-width: 12rem;
	padding-left: 1.25rem;
	border-left: 3px solid var(--swedi-cyan);
}

.swedi-stat__figure {
	display: block;
	color: var(--swedi-navy);
	font-family: var(--swedi-font-head);
	font-size: clamp(2.25rem, 4.5vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.swedi-stat__label {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.4;
}

/* 10. Cards
   ========================================================================== */

.swedi-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--swedi-white);
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius);
	box-shadow: var(--swedi-shadow);
	transition: transform 0.2s var(--swedi-ease), box-shadow 0.2s var(--swedi-ease),
		border-color 0.2s var(--swedi-ease);
}

.swedi-card:hover,
.swedi-card:focus-within {
	transform: translateY(-3px);
	border-color: rgba(42, 111, 201, 0.35);
	box-shadow: var(--swedi-shadow-lift);
}

.swedi-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--swedi-navy-tint);
	overflow: hidden;
}

.swedi-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--swedi-ease);
}

.swedi-card:hover .swedi-card__media img {
	transform: scale(1.04);
}

/* Shown only where a post genuinely has no photograph. A small logo floating
   in a box reads as a broken image, so the mark is scaled up and dropped to a
   watermark — it looks like a deliberate branded panel instead. */
.swedi-card__media--placeholder {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: var(--swedi-gradient);
}

.swedi-card__media--placeholder::before {
	content: "";
	position: absolute;
	top: -20%;
	right: -20%;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(41, 182, 232, 0.35) 0%, rgba(41, 182, 232, 0) 70%);
}

.swedi-card__media--placeholder img,
.swedi-card__media--placeholder svg {
	position: relative;
	width: 62%;
	max-width: 11rem;
	height: auto;
	opacity: 0.22;
	filter: grayscale(1) brightness(2.2);
}

.swedi-card__media--placeholder svg {
	color: rgba(255, 255, 255, 0.55);
	opacity: 1;
	filter: none;
	width: 3rem;
}

.swedi-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.5rem;
}

.swedi-card__meta {
	margin-bottom: 0.6rem;
	color: var(--swedi-grey-light);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.swedi-card__title {
	margin-bottom: 0.6rem;
	font-size: 1.1875rem;
	line-height: 1.3;
}

.swedi-card__title a {
	color: inherit;
	text-decoration: none;
}

.swedi-card__title a:hover,
.swedi-card__title a:focus {
	color: var(--swedi-blue);
}

.swedi-card__excerpt {
	margin-bottom: 1.25rem;
	font-size: 0.9688rem;
}

.swedi-card__foot {
	margin-top: auto;
}

/* Focus-area cards carry an icon rather than a photo */

.swedi-focus-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.75rem;
	background: var(--swedi-white);
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius);
	border-top: 3px solid var(--swedi-blue);
	transition: transform 0.2s var(--swedi-ease), box-shadow 0.2s var(--swedi-ease);
}

.swedi-focus-card:hover,
.swedi-focus-card:focus-within {
	transform: translateY(-3px);
	box-shadow: var(--swedi-shadow-lift);
}

.swedi-focus-card__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.125rem;
	border-radius: var(--swedi-radius);
	background: var(--swedi-blue-tint);
	color: var(--swedi-blue);
}

.swedi-focus-card__icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

/* The organisation's own thematic-area wording, above the programme name */
.swedi-focus-card__thematic {
	margin: 0 0 0.35rem;
	color: var(--swedi-grey-light);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.swedi-focus-card__title {
	margin-bottom: 0.6rem;
	font-size: 1.1875rem;
}

.swedi-focus-card__title a {
	color: inherit;
	text-decoration: none;
}

.swedi-focus-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.swedi-focus-card__title a:hover,
.swedi-focus-card__title a:focus {
	color: var(--swedi-blue);
}

.swedi-focus-card p {
	font-size: 0.9688rem;
}

/* Team cards */

.swedi-person {
	text-align: center;
}

.swedi-person__photo {
	aspect-ratio: 1;
	margin-bottom: 1rem;
	border-radius: var(--swedi-radius-lg);
	overflow: hidden;
	background: var(--swedi-navy-tint);
}

.swedi-person__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.swedi-person__name {
	margin-bottom: 0.25rem;
	font-size: 1.125rem;
}

.swedi-person__role {
	color: var(--swedi-blue);
	font-size: 0.9375rem;
	font-weight: 600;
}

/* 11. Homepage blocks
   ========================================================================== */

/* Who we are */

.swedi-intro {
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
}

.swedi-intro__media {
	position: relative;
	border-radius: var(--swedi-radius-lg);
	overflow: hidden;
	aspect-ratio: 5 / 4;
	background: var(--swedi-navy-tint);
}

.swedi-intro__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.swedi-values {
	display: grid;
	gap: 1.25rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.swedi-values li {
	padding-left: 1.75rem;
	position: relative;
	font-size: 0.9688rem;
}

.swedi-values li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 2px;
	background: var(--swedi-cyan);
}

.swedi-values strong {
	display: block;
	color: var(--swedi-navy);
	font-family: var(--swedi-font-head);
	font-size: 1.0625rem;
}

/* Registration credential badge — appears only once an RC number exists */

.swedi-credential {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	padding: 0.45rem 0.9rem;
	border: 1px solid rgba(42, 111, 201, 0.25);
	border-radius: 999px;
	background: var(--swedi-blue-tint);
	color: var(--swedi-navy);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.swedi-credential svg {
	color: var(--swedi-blue);
}

/* Resources */

.swedi-resource {
	display: flex;
	gap: 1.25rem;
	padding: 1.5rem;
	background: var(--swedi-white);
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius);
}

.swedi-resource__icon {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--swedi-radius);
	background: var(--swedi-blue-tint);
	color: var(--swedi-blue);
}

.swedi-resource__body h3 {
	margin-bottom: 0.5rem;
	font-size: 1.0625rem;
}

.swedi-resource__body p {
	margin-bottom: 0.75rem;
	font-size: 0.9375rem;
}

.swedi-resource__meta {
	margin-left: 0.35rem;
	color: var(--swedi-grey-light);
	font-weight: 500;
}

/* Partner logo row */

.swedi-partners {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
	align-items: center;
}

.swedi-partner {
	display: grid;
	place-items: center;
	min-height: 5.5rem;
	padding: 1rem;
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius);
	background: var(--swedi-white);
}

.swedi-partner img {
	max-height: 3.5rem;
	width: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter 0.2s var(--swedi-ease), opacity 0.2s var(--swedi-ease);
}

.swedi-partner:hover img {
	filter: none;
	opacity: 1;
}

.swedi-partner__name {
	color: var(--swedi-navy);
	font-family: var(--swedi-font-head);
	font-weight: 600;
	text-align: center;
}

/* Optional widget area */

.swedi-widget + .swedi-widget {
	margin-top: 2rem;
}

.swedi-widget__title {
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Pull quote */

.swedi-quote {
	background: var(--swedi-navy);
	color: var(--swedi-white);
}

.swedi-quote__inner {
	max-width: 54rem;
	margin-inline: auto;
	padding-block: clamp(3rem, 6vw, 5rem);
	text-align: center;
}

.swedi-quote__mark {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--swedi-cyan);
	font-family: var(--swedi-font-head);
	font-size: 4rem;
	line-height: 0.6;
}

/* Overrides the generic blockquote rule — this one is centred, reversed and
   carries no rule of its own. */
.swedi-quote__text {
	margin: 0 0 1.5rem;
	padding: 0;
	border: 0;
	color: inherit;
	font-family: var(--swedi-font-head);
	font-size: clamp(1.375rem, 3vw, 2rem);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.swedi-quote__cite {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9375rem;
	font-style: normal;
}

.swedi-quote__cite strong {
	display: block;
	color: var(--swedi-white);
	font-family: var(--swedi-font-head);
	font-size: 1rem;
}

/* Pillars — Empower / Equip / Advocate */

.swedi-pillars {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	counter-reset: pillar;
}

.swedi-pillar {
	position: relative;
	padding: 2rem 1.75rem 1.75rem;
	background: var(--swedi-white);
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius);
	counter-increment: pillar;
}

.swedi-pillar::before {
	content: counter(pillar, decimal-leading-zero);
	display: block;
	margin-bottom: 0.75rem;
	color: var(--swedi-cyan);
	font-family: var(--swedi-font-head);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.swedi-pillar h3 {
	margin-bottom: 0.5rem;
	font-size: 1.375rem;
}

.swedi-pillar p {
	font-size: 0.9688rem;
}

/* Featured project */

.swedi-feature {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	margin-bottom: 2.5rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--swedi-white);
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius-lg);
	box-shadow: var(--swedi-shadow);
}

.swedi-feature__media {
	order: 2;
	border-radius: var(--swedi-radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--swedi-navy-tint);
}

.swedi-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.swedi-feature__body {
	order: 1;
}

.swedi-feature__badge {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	background: var(--swedi-blue-tint);
	color: var(--swedi-blue);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Closing CTA */

.swedi-cta {
	position: relative;
	overflow: hidden;
	background: var(--swedi-gradient);
	color: rgba(255, 255, 255, 0.85);
}

.swedi-cta::after {
	content: "";
	position: absolute;
	bottom: -50%;
	left: -10%;
	width: 34rem;
	height: 34rem;
	background: radial-gradient(circle, rgba(41, 182, 232, 0.25) 0%, rgba(41, 182, 232, 0) 65%);
	pointer-events: none;
}

.swedi-cta__inner {
	position: relative;
	z-index: 1;
	max-width: 46rem;
	padding-block: clamp(3rem, 6vw, 5rem);
	text-align: center;
	margin-inline: auto;
}

.swedi-cta h2 {
	color: var(--swedi-white);
}

.swedi-cta .swedi-btn-row {
	justify-content: center;
}


/* Mission & vision — two statements side by side, the way the old homepage
   led with them. */

.swedi-mission {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.swedi-mission__item {
	padding-left: 1.5rem;
	border-left: 3px solid var(--swedi-cyan);
}

.swedi-mission__text {
	margin: 0;
	color: var(--swedi-navy);
	font-family: var(--swedi-font-head);
	font-size: clamp(1.125rem, 1.9vw, 1.375rem);
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.swedi-mission__actions {
	justify-content: center;
	margin-top: clamp(2rem, 4vw, 3rem);
}

/* The recovered "About us" line, sitting above the introduction */

.swedi-intro__strapline {
	margin-bottom: 1.25rem;
	color: var(--swedi-navy);
	font-family: var(--swedi-font-head);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.5;
}

/* Volunteer call, with the organisation's own numbers */

.swedi-volunteer {
	background: var(--swedi-navy);
	color: rgba(255, 255, 255, 0.82);
}

.swedi-volunteer h2 {
	color: var(--swedi-white);
}

.swedi-volunteer .swedi-eyebrow {
	color: var(--swedi-cyan);
}

.swedi-volunteer__inner {
	display: grid;
	gap: clamp(2.5rem, 6vw, 4.5rem);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
}

.swedi-volunteer__stats {
	display: grid;
	gap: 1.5rem 2rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.swedi-volunteer__figure {
	display: block;
	color: var(--swedi-white);
	font-family: var(--swedi-font-head);
	font-size: clamp(2.25rem, 4.5vw, 3.25rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.swedi-volunteer__label {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.9375rem;
	line-height: 1.4;
}

@media (max-width: 900px) {
	.swedi-volunteer__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}


/* International advocacy — a credential strip, not a gallery.
   Portrait and landscape shots sit together at a common aspect so the row
   reads as one thing; several of these are only a few hundred pixels wide, so
   the frames stay modest rather than blowing soft images up. */

.swedi-advocacy__grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.swedi-advocacy__item figure {
	margin: 0;
	height: 100%;
}

.swedi-advocacy__media {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--swedi-radius);
	background: var(--swedi-navy-tint);
	box-shadow: var(--swedi-shadow);
}

.swedi-advocacy__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	transition: transform 0.4s var(--swedi-ease);
}

.swedi-advocacy__item:hover .swedi-advocacy__media img {
	transform: scale(1.04);
}

.swedi-advocacy__item figcaption {
	margin-top: 0.75rem;
	color: var(--swedi-grey);
	font-size: 0.875rem;
	line-height: 1.45;
}

/* 12. Interior content
   ========================================================================== */

.swedi-main {
	display: block;
}

.swedi-entry {
	padding-block: var(--swedi-section-y);
}

.swedi-entry__content {
	font-size: 1.0625rem;
}

.swedi-entry__content > * + * {
	margin-top: 1.25rem;
}

.swedi-entry__content h2 {
	margin-top: 2.5rem;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.swedi-entry__content h3 {
	margin-top: 2rem;
}

.swedi-entry__content ul,
.swedi-entry__content ol {
	padding-left: 1.35rem;
}

.swedi-entry__content li + li {
	margin-top: 0.5rem;
}

.swedi-entry__content img {
	border-radius: var(--swedi-radius);
}

.swedi-entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-bottom: 1.5rem;
	color: var(--swedi-grey-light);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.swedi-entry__thumb {
	margin-bottom: 2.5rem;
	border-radius: var(--swedi-radius-lg);
	overflow: hidden;
}

.swedi-entry__footer {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--swedi-rule);
}

.swedi-tags a {
	display: inline-block;
	margin: 0 0.4rem 0.4rem 0;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: var(--swedi-offwhite);
	color: var(--swedi-navy);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

.swedi-tags a:hover,
.swedi-tags a:focus {
	background: var(--swedi-blue);
	color: var(--swedi-white);
}

/* Source credit under a story we wrote about an event others also covered */

.swedi-entry__content .swedi-credit {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--swedi-rule);
	color: var(--swedi-grey-light);
	font-size: 0.9375rem;
}

/* A note left for whoever edits the page next. Visible on the front end on
   purpose — these mark drafts that are not ready, and hiding them is how they
   get forgotten. */

.swedi-entry__content .swedi-editor-note {
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--swedi-cyan);
	border-radius: 0 var(--swedi-radius) var(--swedi-radius) 0;
	background: var(--swedi-offwhite);
	font-size: 0.9375rem;
}

/* Post navigation */

.swedi-postnav {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	margin-top: 2.5rem;
}

.swedi-postnav a {
	display: block;
	padding: 1.25rem;
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius);
	text-decoration: none;
}

.swedi-postnav a:hover,
.swedi-postnav a:focus {
	border-color: rgba(42, 111, 201, 0.4);
	background: var(--swedi-offwhite);
}

.swedi-postnav__label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--swedi-grey-light);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.swedi-postnav__title {
	color: var(--swedi-navy);
	font-family: var(--swedi-font-head);
	font-weight: 600;
	line-height: 1.35;
}

.swedi-postnav--next {
	text-align: right;
}

/* Pagination */

.swedi-pagination {
	margin-top: 3rem;
}

.swedi-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
}

.swedi-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.75rem;
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius);
	color: var(--swedi-navy);
	font-weight: 600;
	text-decoration: none;
}

.swedi-pagination .page-numbers:hover,
.swedi-pagination .page-numbers:focus {
	border-color: var(--swedi-blue);
	color: var(--swedi-blue);
}

.swedi-pagination .page-numbers.current {
	background: var(--swedi-navy);
	border-color: var(--swedi-navy);
	color: var(--swedi-white);
}

/* Empty states — templates ship before their content does */

.swedi-empty {
	max-width: 34rem;
	margin-inline: auto;
	padding: clamp(2rem, 5vw, 3.5rem);
	border: 1px dashed var(--swedi-rule);
	border-radius: var(--swedi-radius-lg);
	background: var(--swedi-offwhite);
	text-align: center;
}

.swedi-empty h2 {
	font-size: 1.375rem;
}

.swedi-empty p:last-child {
	margin-bottom: 0;
}

/* Accordion — FAQ */

.swedi-accordion {
	max-width: 48rem;
}

.swedi-accordion details {
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius);
	margin-bottom: 0.75rem;
	background: var(--swedi-white);
}

.swedi-accordion summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.125rem 1.375rem;
	color: var(--swedi-navy);
	font-family: var(--swedi-font-head);
	font-size: 1.0625rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.swedi-accordion summary::-webkit-details-marker {
	display: none;
}

.swedi-accordion summary::after {
	content: "+";
	flex-shrink: 0;
	color: var(--swedi-blue);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
}

.swedi-accordion details[open] summary::after {
	content: "–";
}

.swedi-accordion__body {
	padding: 0 1.375rem 1.375rem;
}

/* Gallery */

.swedi-gallery {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.swedi-gallery a,
.swedi-gallery figure {
	display: block;
	overflow: hidden;
	border-radius: var(--swedi-radius);
	aspect-ratio: 1;
	background: var(--swedi-navy-tint);
}

.swedi-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--swedi-ease);
}

.swedi-gallery a:hover img,
.swedi-gallery a:focus img {
	transform: scale(1.05);
}

/* Contact */

.swedi-contact-grid {
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
}

.swedi-contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.swedi-contact-list li {
	display: flex;
	gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--swedi-rule);
}

.swedi-contact-list li:first-child {
	padding-top: 0;
}

.swedi-contact-list__icon {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--swedi-radius);
	background: var(--swedi-blue-tint);
	color: var(--swedi-blue);
}

.swedi-contact-list__icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

.swedi-contact-list__label {
	display: block;
	color: var(--swedi-grey-light);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.swedi-contact-list__value {
	color: var(--swedi-navy);
	font-weight: 600;
	text-decoration: none;
}

.swedi-contact-list__value:hover,
.swedi-contact-list__value:focus {
	color: var(--swedi-blue);
}

/* The social row again, on a light background */

.swedi-social--dark a {
	border-color: var(--swedi-rule);
	color: var(--swedi-navy);
}

.swedi-social--dark a:hover,
.swedi-social--dark a:focus {
	background: var(--swedi-blue);
	border-color: var(--swedi-blue);
	color: var(--swedi-white);
}

/* Team bios */

.swedi-person__bio {
	margin-top: 0.75rem;
	font-size: 0.9375rem;
	text-align: left;
}

/* Comments */

.swedi-comments {
	margin-top: 3.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--swedi-rule);
}

.swedi-comments__title {
	font-size: 1.375rem;
}

.swedi-comments__list,
.swedi-comments__list .children {
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

.swedi-comments__list .children {
	margin: 1.25rem 0 0 1.5rem;
	padding-left: 1.5rem;
	border-left: 2px solid var(--swedi-rule);
}

.swedi-comments__list li {
	margin-bottom: 1.75rem;
}

.swedi-comments__list .comment-author img {
	display: inline-block;
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 0.6rem;
}

.swedi-comments__list .comment-meta {
	margin-bottom: 0.6rem;
	font-size: 0.875rem;
}

.comment-form label {
	margin-top: 1rem;
}

.comment-form .form-submit {
	margin-top: 1.5rem;
}

.comment-form input[type="submit"] {
	display: inline-flex;
	padding: 0.9rem 1.6rem;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--swedi-blue);
	color: var(--swedi-white);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.comment-form input[type="submit"]:hover,
.comment-form input[type="submit"]:focus {
	background: var(--swedi-deep);
}

/* Donate placeholder — payment details are deferred */

.swedi-donate-panel {
	padding: clamp(1.75rem, 4vw, 2.5rem);
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius-lg);
	background: var(--swedi-white);
	box-shadow: var(--swedi-shadow);
}

.swedi-donate-panel__note {
	padding: 1.25rem;
	border-left: 3px solid var(--swedi-cyan);
	background: var(--swedi-offwhite);
	border-radius: 0 var(--swedi-radius) var(--swedi-radius) 0;
	font-size: 0.9375rem;
}

/* 13. Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid var(--swedi-rule);
	border-radius: var(--swedi-radius);
	background: var(--swedi-white);
	color: var(--swedi-navy);
	font-family: inherit;
	font-size: 1rem;
	transition: border-color 0.18s var(--swedi-ease), box-shadow 0.18s var(--swedi-ease);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--swedi-blue);
	box-shadow: 0 0 0 3px var(--swedi-blue-tint);
	outline: none;
}

label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--swedi-navy);
	font-size: 0.9375rem;
	font-weight: 600;
}

.swedi-field {
	margin-bottom: 1.25rem;
}

button,
input[type="submit"] {
	font-family: var(--swedi-font-head);
}

.swedi-searchform {
	display: flex;
	gap: 0.5rem;
}

/* 14. Footer
   ========================================================================== */

.swedi-footer {
	background: var(--swedi-black);
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.9375rem;
}

.swedi-footer a {
	color: rgba(255, 255, 255, 0.62);
	text-decoration: none;
}

.swedi-footer a:hover,
.swedi-footer a:focus {
	color: var(--swedi-white);
}

.swedi-footer__top {
	display: grid;
	gap: clamp(2rem, 5vw, 3rem);
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	padding-block: clamp(3rem, 6vw, 4.5rem);
}

.swedi-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	text-decoration: none;
}

.swedi-footer__logo img {
	width: auto;
	height: 52px;
	flex-shrink: 0;
}

.swedi-footer__wordmark {
	display: flex;
	flex-direction: column;
}

.swedi-footer__name {
	color: var(--swedi-white);
	font-family: var(--swedi-font-head);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.swedi-footer__tagline {
	max-width: 18rem;
	color: var(--swedi-cyan);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 1.3;
	text-transform: uppercase;
}

.swedi-footer__about {
	max-width: 24rem;
	margin-bottom: 1.5rem;
}

.swedi-footer__col h3 {
	margin-bottom: 1.125rem;
	color: var(--swedi-white);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.swedi-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.swedi-footer__col li + li {
	margin-top: 0.65rem;
}

.swedi-footer__contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.swedi-footer__contact li {
	display: flex;
	gap: 0.65rem;
	margin-bottom: 0.65rem;
	line-height: 1.5;
}

.swedi-footer__contact svg {
	flex-shrink: 0;
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.28rem;
	color: var(--swedi-cyan);
}

.swedi-social {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.swedi-social a {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--swedi-rule-dark);
	border-radius: 50%;
	transition: background-color 0.18s var(--swedi-ease), border-color 0.18s var(--swedi-ease);
}

.swedi-social a:hover,
.swedi-social a:focus {
	background: var(--swedi-blue);
	border-color: var(--swedi-blue);
	color: var(--swedi-white);
}

.swedi-social svg {
	width: 1.125rem;
	height: 1.125rem;
}

.swedi-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--swedi-rule-dark);
	font-size: 0.875rem;
}

.swedi-footer__bottom p {
	margin: 0;
}

/* Build credit, set apart from the copyright by a divider on wide screens
   and dropped to its own line on narrow ones. */
.swedi-footer__credit {
	color: rgba(255, 255, 255, 0.45);
}

.swedi-footer__credit::before {
	content: "·";
	margin: 0 0.5rem;
	color: rgba(255, 255, 255, 0.3);
}

.swedi-footer__credit a {
	color: rgba(255, 255, 255, 0.45);
}

.swedi-footer__credit a:hover,
.swedi-footer__credit a:focus {
	color: var(--swedi-cyan);
}

@media (max-width: 560px) {
	.swedi-footer__credit {
		display: block;
	}

	.swedi-footer__credit::before {
		display: none;
	}
}

.swedi-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 15. WordPress core classes
   ========================================================================== */

.alignleft {
	float: left;
	margin: 0.35rem 1.75rem 1.25rem 0;
}

.alignright {
	float: right;
	margin: 0.35rem 0 1.25rem 1.75rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide {
	width: min(100vw - 3rem, 1100px);
	margin-inline: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-block-image figcaption {
	margin-top: 0.6rem;
	color: var(--swedi-grey-light);
	font-size: 0.875rem;
	text-align: center;
}

.sticky .swedi-card {
	border-color: var(--swedi-blue);
}

.swedi-entry__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.swedi-entry__content th,
.swedi-entry__content td {
	padding: 0.75rem;
	border: 1px solid var(--swedi-rule);
	text-align: left;
}

.swedi-entry__content th {
	background: var(--swedi-offwhite);
	color: var(--swedi-navy);
}

.swedi-table-wrap {
	overflow-x: auto;
}

/* 16. Responsive
   ========================================================================== */

@media (max-width: 1080px) {
	.swedi-menu > li > a {
		padding: 0.6rem 0.55rem;
		font-size: 0.875rem;
	}

	.swedi-nav {
		gap: 1rem;
	}
}

@media (max-width: 960px) {
	:root {
		--swedi-header-h: 76px;
	}

	.swedi-nav-toggle {
		display: inline-flex;
	}

	.swedi-nav {
		position: fixed;
		top: var(--swedi-header-h);
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		display: block;
		overflow-y: auto;
		padding: 1.25rem var(--swedi-gutter) 3rem;
		background: var(--swedi-white);
		border-top: 1px solid var(--swedi-rule);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.25s var(--swedi-ease), visibility 0.25s;
	}

	.swedi-nav.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.swedi-menu {
		display: block;
	}

	.swedi-menu > li {
		border-bottom: 1px solid var(--swedi-rule);
	}

	.swedi-menu > li > a {
		justify-content: space-between;
		padding: 0.95rem 0;
		font-size: 1.0625rem;
	}

	/* The toggle button carries its own caret here, so the link drops its
	   own rather than showing two. */
	.swedi-menu > li.menu-item-has-children > a::after {
		display: none;
	}

	.swedi-menu > li.menu-item-has-children > a {
		padding-right: 2.75rem;
	}

	.swedi-submenu-toggle {
		opacity: 1;
		pointer-events: auto;
	}

	.swedi-submenu-toggle::after {
		content: "";
		display: block;
		width: 0.55rem;
		height: 0.55rem;
		margin: 0 auto;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-0.15rem) rotate(45deg);
		transition: transform 0.18s var(--swedi-ease);
	}

	.swedi-menu li.is-open > .swedi-submenu-toggle::after {
		transform: translateY(0.1rem) rotate(225deg);
	}

	.swedi-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 0.75rem 0.75rem;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.swedi-menu li.is-open > .sub-menu {
		display: block;
	}

	/* Hover must not open panels on touch — the toggle button controls them */
	.swedi-menu li:hover > .sub-menu,
	.swedi-menu li:focus-within > .sub-menu {
		display: none;
	}

	.swedi-menu li.is-open:hover > .sub-menu,
	.swedi-menu li.is-open:focus-within > .sub-menu {
		display: block;
	}

	.swedi-menu > li.swedi-menu__cta {
		border-bottom: 0;
		margin-top: 1.25rem;
	}

	.swedi-menu > li.swedi-menu__cta > a {
		justify-content: center;
	}

	.swedi-hero__inner,
	.swedi-intro,
	.swedi-feature,
	.swedi-contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.swedi-feature__media {
		order: 1;
	}

	.swedi-feature__body {
		order: 2;
	}

	.swedi-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	/* BRIEF section 8: the lockup tagline goes illegible here, so swap to
	   the emblem rather than scaling the whole thing down. */
	.swedi-brand__full {
		display: none;
	}

	.swedi-brand__emblem {
		display: block;
	}

	.swedi-hero__media {
		aspect-ratio: 3 / 2;
	}

	.swedi-stats__inner {
		gap: 1.75rem;
	}

	.swedi-stat {
		min-width: 0;
		flex: 1 1 100%;
	}

	.swedi-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.swedi-btn-row .swedi-btn {
		flex: 1 1 100%;
	}

	.swedi-postnav--next {
		text-align: left;
	}
}

@media (max-width: 400px) {
	.swedi-brand__text {
		display: none;
	}
}

/* 17. Print
   ========================================================================== */

@media print {
	.swedi-header,
	.swedi-footer,
	.swedi-cta,
	.swedi-nav-toggle,
	.swedi-postnav {
		display: none !important;
	}

	body {
		color: #000;
		font-size: 12pt;
	}

	a {
		color: #000;
		text-decoration: underline;
	}
}
