/**
 * TMTIC header: row 1 = top information bar, row 2 = main navigation bar.
 * Mobile first. The desktop navigation starts at 1280px (see also navigation.js).
 * Colours come from CSS variables set in Appearance → Customize → Header & Navigation.
 */
:root {
	--topbar-bg: #0B3155;
	--topbar-text: #FFFFFF;
	--topbar-h: 48px;
	--main-bg: #FFFFFF;
	--nav-text: #0B3155;
	--nav-hover: #176B46;
	--nav-active: #21865B;
	--header-h: 88px;
	--nav-gap: 20px;
	--mega-gap: 32px;
	--logo-h: 74px;
	--logo-h-m: 52px;
	--topbar-now: 40px;
}

.site-header {
	position: relative;
	z-index: 1000;
	background: var(--main-bg);
	color: var(--nav-text);
}
body.has-sticky-header .site-header {
	position: sticky;
	top: calc(var(--topbar-now) * -1);
}
body.has-sticky-header:not(.has-topbar) .site-header {
	top: 0;
}
body.admin-bar.has-sticky-header .site-header {
	top: calc(32px - var(--topbar-now));
}
body.admin-bar.has-sticky-header:not(.has-topbar) .site-header {
	top: 32px;
}
.site-header a {
	color: inherit;
}
.site-header a.tmtic-btn,
.site-header a.tmtic-btn:hover {
	color: var(--btn-fg);
}
.site-header a.tmtic-btn--cta:hover {
	color: #fff;
}
.tmtic-hwrap {
	width: 100%;
	max-width: 2400px;
	margin-inline: auto;
	padding-inline: clamp(16px, 2.2vw, 40px);
}

/* ---------- Row 1: top bar ---------- */
.tmtic-topbar {
	background: var(--topbar-bg);
	color: var(--topbar-text);
	font-size: 0.85rem;
	line-height: 1.3;
}
.tmtic-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--topbar-now);
}
.tmtic-topbar__left,
.tmtic-topbar__right {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-width: 0;
}
.tmtic-topbar__right {
	margin-left: auto;
}
.tmtic-topbar a {
	text-decoration: none;
}
.tmtic-topbar a:hover {
	color: var(--nav-accent);
}
.tmtic-topbar__info {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tmtic-topbar__info li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}
.tmtic-topbar__info .tmtic-icon {
	flex: none;
	width: 17px;
	height: 17px;
	color: var(--nav-accent);
}
.tmtic-topbar .tmtic-social {
	gap: 0.35rem;
}
.tmtic-topbar .tmtic-social a {
	width: 30px;
	height: 30px;
	background: transparent;
	color: var(--topbar-text);
}
.tmtic-topbar .tmtic-social a:hover {
	background: var(--nav-accent);
	color: var(--color-primary);
}
.tmtic-topbar__info .tmtic-hide-md {
	display: none;
}
.tmtic-topbar__phone a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}
/* Phones and small tablets: call icon only (the number stays available to screen readers) */
@media (max-width: 767px) {
	.tmtic-topbar__info li:not(.tmtic-topbar__phone) {
		display: none !important;
	}
	.tmtic-topbar__phone-text {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
	.tmtic-topbar__phone a {
		justify-content: center;
		width: 36px;
		height: 36px;
		border-radius: 50%;
	}
	.tmtic-topbar__phone .tmtic-icon {
		width: 20px;
		height: 20px;
	}
	.tmtic-topbar__left {
		gap: 0.25rem 0.75rem;
		flex-wrap: nowrap;
	}
	.tmtic-topbar__inner {
		gap: 0.5rem;
	}
}
@media (min-width: 900px) {
	.tmtic-topbar__info .tmtic-hide-md {
		display: inline-flex;
	}
}
.tmtic-hide-lg {
	display: none !important;
}
@media (min-width: 1100px) {
	.tmtic-hide-lg {
		display: inline-flex !important;
	}
}
.tmtic-topbar__left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15rem 1.5rem;
	min-width: 0;
}

/* Disclosure buttons (language, practical information) */
.tmtic-dd-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.25rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
}
.tmtic-dd-btn:hover {
	color: var(--nav-accent);
}
.tmtic-dd-chev {
	width: 14px;
	height: 14px;
	color: var(--nav-accent);
	transition: transform 0.2s ease;
}
[aria-expanded="true"] > .tmtic-dd-chev {
	transform: rotate(180deg);
}
.tmtic-flag {
	display: block;
	width: 24px;
	height: 16px;
	flex: none;
	border-radius: 0;
	box-shadow: none;
}
.tmtic-langdd {
	position: relative;
}
.tmtic-dd-panel {
	position: absolute;
	top: 100%;
	z-index: 1100;
	min-width: 220px;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	background: var(--color-surface);
	color: var(--color-text);
	border-top: 3px solid var(--nav-accent);
	border-radius: 0;
	box-shadow: var(--shadow-md);
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0;
}
.tmtic-dd-panel[hidden] {
	display: none;
}
.tmtic-langdd__menu {
	min-width: 120px;
	left: 0;
}
.site-header .tmtic-dd-panel a,
.tmtic-dd-item {
	color: var(--color-text);
}
.tmtic-dd-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.75rem;
	border-radius: var(--radius-sm);
	text-decoration: none;
}
.site-header .tmtic-dd-panel a:hover,
.site-header .tmtic-dd-panel a:focus-visible {
	background: rgba(33, 134, 91, 0.1);
	color: var(--color-secondary-hover);
	text-decoration: none;
}
.tmtic-dd-item.is-current {
	font-weight: 700;
	color: var(--color-primary);
}

/* ---------- Row 2: main bar ---------- */
.tmtic-mainbar {
	position: relative;
	background: var(--main-bg);
	color: var(--nav-text);
	border-bottom: 1px solid var(--color-border);
}
.tmtic-mainbar__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
}
.tmtic-brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	padding-block: 0.4rem;
	line-height: 0;
}
.tmtic-logo-img {
	display: block;
	width: auto;
	max-width: none;
	height: var(--logo-h-m);
}
.tmtic-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}
.tmtic-actions__cta {
	display: none;
}
.tmtic-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--nav-text);
	cursor: pointer;
}
.tmtic-iconbtn:hover {
	color: var(--nav-hover);
}
.tmtic-iconbtn .tmtic-icon {
	width: 24px;
	height: 24px;
}
.tmtic-burger {
	border: 1px solid rgba(11, 49, 85, 0.35);
}
.tmtic-searchbtn__close,
.tmtic-searchbtn[aria-expanded="true"] .tmtic-searchbtn__open {
	display: none;
}
.tmtic-searchbtn[aria-expanded="true"] .tmtic-searchbtn__close {
	display: block;
}
.tmtic-burger__close,
.tmtic-burger[aria-expanded="true"] .tmtic-burger__open {
	display: none;
}
.tmtic-burger[aria-expanded="true"] .tmtic-burger__close {
	display: block;
}

/* Search panel (opens under the main bar) */
.tmtic-searchpanel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 900;
	padding-block: 1rem;
	background: var(--color-surface);
	border-top: 3px solid var(--nav-accent);
	box-shadow: var(--shadow-md);
}
.tmtic-searchpanel[hidden] {
	display: none;
}
.tmtic-searchpanel .tmtic-search {
	max-width: 720px;
	margin-inline: auto;
}
.tmtic-searchpanel .tmtic-search input[type="search"] {
	padding-block: 0.8rem;
	font-size: 1rem;
}

/* Mobile drawer */
.tmtic-nav {
	color: var(--header-text);
}
.tmtic-nav__list > li {
	border-bottom-color: rgba(255, 255, 255, 0.14);
}

/* Large phones and tablets: top bar shows message and partner */
@media (min-width: 768px) {
	.tmtic-logo-img {
		height: calc(var(--logo-h-m) + 8px);
	}
	.tmtic-actions__cta {
		display: inline-flex;
		padding: 1em 2em;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		white-space: nowrap;
	}
}

/* ---------- Desktop (two clear rows) ---------- */
@media (min-width: 1280px) {
	:root {
		--topbar-now: var(--topbar-h);
	}
	.tmtic-topbar__right {
		margin-left: 0;
		gap: 1.5rem;
	}

	.tmtic-mainbar__inner {
		min-height: var(--header-h);
		gap: 1.25rem;
	}
	.tmtic-logo-img {
		height: var(--logo-h);
	}
	.tmtic-burger {
		display: none;
	}
	.tmtic-nav {
		display: flex;
		position: static;
		flex: 1;
		align-self: stretch;
		align-items: stretch;
		justify-content: center;
		max-height: none;
		overflow: visible;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
		color: var(--nav-text);
	}
	.tmtic-nav__extra {
		display: none;
	}
	.tmtic-nav__list {
		display: flex;
		align-items: stretch;
		gap: var(--nav-gap);
	}
	.tmtic-nav .tmtic-nav__list > li {
		display: flex;
		align-items: stretch;
		border: 0;
	}
	.tmtic-nav .tmtic-nav__list > .tmtic-only-desktop {
		display: flex !important;
	}
	.tmtic-only-mobile {
		display: none !important;
	}
	.tmtic-panel .tmtic-only-desktop {
		display: block !important;
	}
	.tmtic-link--d0 {
		display: flex;
		align-items: center;
		padding: 0 0.1rem;
		font-family: var(--font-nav);
		font-size: var(--hdr-fs);
		font-weight: 600;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		white-space: nowrap;
		transition: color 0.2s ease;
		color: var(--nav-text);
	}
	.tmtic-link--d0:hover,
	.tmtic-link--d0:focus-visible,
	.tmtic-nav__list > li.is-open > .tmtic-link--d0 {
		color: var(--nav-hover);
	}
	.tmtic-item.current-menu-item > .tmtic-link--d0,
	.tmtic-item.current-menu-ancestor > .tmtic-link--d0,
	.tmtic-item.current_page_item > .tmtic-link--d0,
	.tmtic-link--d0[aria-current="page"] {
		color: var(--nav-active);
		box-shadow: none;
	}
	.tmtic-toggle {
		position: static;
		align-self: center;
		width: 24px;
		height: 32px;
		flex: none;
		color: var(--nav-text);
	}
	.tmtic-toggle:hover,
	.tmtic-nav__list > li.is-open > .tmtic-toggle {
		color: var(--nav-hover);
	}
	.tmtic-toggle .tmtic-icon {
		width: 14px;
		height: 14px;
	}
	.tmtic-actions {
		margin-left: 0;
		gap: 0.75rem;
	}

	/* Panels follow the colour settings; empty values fall back to the style defaults. */
	.tmtic-panel {
		border-top-color: var(--nav-accent);
	}
	.tmtic-mega {
		gap: 1.5rem var(--mega-gap);
	}
	.tmtic-mega-contained .tmtic-panel--mega {
		max-width: 1320px;
		margin-inline: auto;
	}
	.tmtic-no-mega-img .tmtic-link__img {
		display: none;
	}
	.tmtic-mega-light .site-header .tmtic-panel {
		background: var(--mega-bg, var(--color-surface));
		color: var(--mega-text, var(--color-text));
	}
	.tmtic-mega-light .site-header .tmtic-panel .tmtic-link:not(.is-heading) {
		color: var(--mega-text, var(--color-text));
	}
	.tmtic-mega-dark .site-header .tmtic-panel {
		background: var(--mega-bg, var(--color-primary-hover));
		color: var(--mega-text, #fff);
	}
	.tmtic-mega-dark .site-header .tmtic-panel .tmtic-link:not(.is-heading) {
		color: var(--mega-text, #fff);
	}
}

/* Narrow desktops: size the menu text to the width so the single row never wraps or overflows */
@media (min-width: 1280px) and (max-width: 1365px) {
	:root {
		--nav-gap: 10px;
		--nav-cap: 11.5px;
	}
}
@media (min-width: 1366px) and (max-width: 1439px) {
	:root {
		--nav-gap: 11px;
		--nav-cap: 12px;
	}
}
@media (min-width: 1280px) and (max-width: 1439px) {
	.tmtic-link--d0 {
		letter-spacing: 0.02em;
	}
	.tmtic-actions__cta {
		padding: 0.9em 1.3em;
	}
	.tmtic-lang-sw {
		--nav-cap: 10.5px;
	}
}
@media (min-width: 1440px) and (max-width: 1535px) {
	:root {
		--nav-gap: 14px;
		--nav-cap: 13px;
	}
	.tmtic-lang-sw {
		--nav-cap: 12px;
	}
}
@media (min-width: 1536px) and (max-width: 1679px) {
	:root {
		--nav-gap: 14px;
		--nav-cap: 14px;
	}
	.tmtic-lang-sw {
		--nav-cap: 13.5px;
	}
}

/* Small phones */
@media (max-width: 767px) {
	.tmtic-topbar {
		font-size: 0.8rem;
	}
	.tmtic-mainbar__inner {
		min-height: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmtic-dd-chev {
		transition: none;
	}
}

/* ---------- Mega menu: image cards + highlighted sidebar ---------- */
@media (max-width: 1279px) {
	.tmtic-link__img,
	.tmtic-mega-all .tmtic-icon,
	.tmtic-mega-side {
		display: none;
	}
	.tmtic-mega-all {
		display: block;
		padding: 0.5rem 0.25rem;
		font-weight: 700;
		color: var(--nav-accent);
	}
}
@media (min-width: 1280px) {
	.tmtic-panel--mega {
		border-radius: 0;
	}
	.tmtic-panel--mega .tmtic-panel__inner {
		padding: 0;
		max-height: calc(100vh - 11rem);
		overflow-y: auto;
	}
	.tmtic-megawrap {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		align-items: stretch;
		min-height: 240px;
	}
	.tmtic-megawrap:has(.tmtic-mega-side) {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
	.tmtic-mega-main {
		padding: 1.75rem 2.25rem 2.25rem;
	}
	.tmtic-mega-all {
		display: inline-flex;
		align-items: center;
		gap: 0.9rem;
		margin-bottom: 1.5rem;
		padding: 0 0 0.2rem;
		border-bottom: 2px solid var(--color-secondary);
		color: var(--color-secondary);
		font-size: 1.05rem;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		text-decoration: none;
	}
	.tmtic-mega-all .tmtic-icon {
		display: inline-flex;
		box-sizing: content-box;
		width: 16px;
		height: 16px;
		padding: 7px;
		border-radius: 50%;
		background: var(--nav-accent);
		color: var(--color-primary);
		margin-bottom: -0.35rem;
	}
	.site-header .tmtic-mega-all:hover {
		color: var(--color-primary);
	}

	/* Card grid */
	.tmtic-panel--mega .tmtic-mega,
	.tmtic-panel--mega .tmtic-sub {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.25rem var(--mega-gap, 1.5rem);
		padding: 0;
	}
	.tmtic-panel--mega .tmtic-mega[data-cols="2"],
	.tmtic-panel--mega .tmtic-mega[data-cols="2"] .tmtic-sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* 3 (older saved setting) now renders as the 4-column default. */
	.tmtic-panel--mega .tmtic-mega[data-cols="5"],
	.tmtic-panel--mega .tmtic-mega[data-cols="5"] .tmtic-sub { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.tmtic-panel--mega .tmtic-mega > .tmtic-item.is-group {
		grid-column: 1 / -1;
	}
	.tmtic-panel--mega .tmtic-mega > .tmtic-item.is-group + .tmtic-item.is-group {
		margin-top: 0.5rem;
	}
	.tmtic-panel--mega .tmtic-link.is-heading {
		display: block;
		margin: 0 0 1rem;
		padding: 0 0 0.45rem;
		border-bottom: 1px solid var(--color-border);
		border-radius: 0;
		color: var(--color-secondary);
		font-family: var(--font-body);
		font-size: 0.85rem;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
	}
	.tmtic-panel--mega a.tmtic-link {
		display: block;
		padding: 0;
		background: transparent;
		border-radius: 0;
		font-size: 0.875rem;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}
	.tmtic-panel--mega a.tmtic-link:hover,
	.tmtic-panel--mega a.tmtic-link:focus-visible {
		background: transparent;
		color: var(--color-secondary);
	}
	.tmtic-panel--mega .tmtic-link__img {
		display: block;
		overflow: hidden;
		width: 100%;
		aspect-ratio: 2 / 1;
		border-radius: 6px;
		margin-bottom: 0.55rem;
		background: var(--color-primary);
	}
	.tmtic-panel--mega .tmtic-link__img.is-empty {
		background:
			linear-gradient(135deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%) 0 0 / 28px 28px,
			var(--color-primary);
	}
	.tmtic-panel--mega .tmtic-link__img img {
		display: block;
		width: 100%;
		height: 100%;
		margin: 0;
		border-radius: 0;
		object-fit: cover;
		transition: transform 0.3s ease;
	}
	.tmtic-panel--mega a.tmtic-link:hover .tmtic-link__img img {
		transform: scale(1.04);
	}
	.tmtic-panel--mega .tmtic-link__label {
		display: block;
	}
	.tmtic-panel--mega .tmtic-link__desc {
		margin-top: 0.25rem;
		font-size: 0.78rem;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
		color: var(--color-muted);
	}
	.tmtic-no-mega-img .tmtic-panel--mega .tmtic-link__img {
		display: none;
	}

	/* Highlighted sidebar */
	.tmtic-mega-side {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.1rem;
		padding: 2rem 2rem 2.25rem;
		background: var(--color-primary);
		color: #fff;
	}
	.tmtic-mega-side__title {
		margin: 0;
		font-size: 1.1rem;
		font-weight: 600;
		letter-spacing: 0.14em;
		line-height: 1.5;
		text-transform: uppercase;
		color: #fff;
	}
	.tmtic-mega-side__img {
		width: 100%;
		aspect-ratio: 16 / 9;
		overflow: hidden;
	}
	.tmtic-mega-side__img img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.tmtic-mega-side__text {
		margin: 0;
		font-size: 0.95rem;
		line-height: 1.7;
		color: rgba(255, 255, 255, 0.92);
	}
	.site-header .tmtic-mega-side .tmtic-btn {
		width: 100%;
		padding: 1em 1.25em;
	}

	/* Dark style */
	.tmtic-mega-dark .tmtic-panel--mega .tmtic-link__img.is-empty {
		background-color: rgba(255, 255, 255, 0.08);
	}
	.tmtic-mega-dark .tmtic-mega-side {
		background: var(--color-primary);
	}
}

/* Header call-to-action: dark button, distinct from the menu links */
.site-header .tmtic-actions__cta {
	--btn-bg: var(--hdr-cta-bg, var(--color-primary));
	--btn-fg: var(--hdr-cta-fg, #fff);
}
.site-header a.tmtic-actions__cta:hover,
.site-header a.tmtic-actions__cta:focus-visible {
	background-color: var(--color-secondary);
	border-color: var(--color-secondary);
	color: #fff;
}
.tmtic-panel--mega a.tmtic-link {
	font-weight: 600;
}

/* A top-level item without a link (heading) must look like every other menu item */
@media (min-width: 1280px) {
	.tmtic-nav .tmtic-link--d0.is-heading,
	.tmtic-nav .tmtic-item.is-featured > .tmtic-link--d0 {
		margin: 0;
		padding: 0 0.1rem;
		border: 0;
		font-family: var(--font-nav);
		font-size: var(--hdr-fs);
		font-weight: 600;
		letter-spacing: 0.05em;
		color: var(--nav-text);
		cursor: pointer;
		transition: color 0.2s ease;
	}
	/* Heading-type items (no link, e.g. "About") react to hover / open / focus like every other item */
	.tmtic-nav .tmtic-link--d0.is-heading:hover,
	.tmtic-nav .tmtic-link--d0.is-heading:focus-visible,
	.tmtic-nav .tmtic-nav__list > li.is-open > .tmtic-link--d0.is-heading,
	.tmtic-nav .tmtic-nav__list > li:hover > .tmtic-link--d0.is-heading {
		color: var(--nav-hover);
	}
}

/* Header aligned to the page width */
@media (min-width: 1101px) {
	.tmtic-hwrap { max-width: var(--container); padding-inline: 0; }
}

/* Keep the header row inside the shared page width */
@media (min-width: 1101px) and (max-width: 1365px) { :root { --nav-gap: 7px; --nav-cap: 11px; } .tmtic-lang-sw { --nav-cap: 10px; } }
@media (min-width: 1366px) and (max-width: 1535px) { :root { --nav-gap: 9px; --nav-cap: 12px; } .tmtic-lang-sw { --nav-cap: 11.5px; } }
@media (min-width: 1536px) and (max-width: 1679px) { :root { --nav-gap: 12px; --nav-cap: 13.5px; } .tmtic-lang-sw { --nav-cap: 12.5px; } }
@media (min-width: 1101px) and (max-width: 1365px) { :root { --nav-cap: 10.5px; } .tmtic-lang-sw { --nav-cap: 10px; } }
@media (min-width: 1366px) and (max-width: 1535px) { .tmtic-lang-sw { --nav-cap: 11px; } }
@media (min-width: 1680px) and (max-width: 1799px) { .tmtic-lang-sw { --nav-cap: 13.5px; } }
/* Large screens: header row fits the narrow page width. CTA button hidden until there is room. */
@media (min-width: 1440px) and (max-width: 1535px) { :root { --nav-gap: 9px; --nav-cap: 12px; } .tmtic-lang-sw { --nav-cap: 11px; } }
@media (min-width: 1536px) and (max-width: 1679px) { :root { --nav-gap: 12px; --nav-cap: 13px; } .tmtic-lang-sw { --nav-cap: 12px; } }
@media (min-width: 1680px) and (max-width: 1799px) { :root { --nav-gap: 16px; --nav-cap: 14px; } .tmtic-lang-sw { --nav-cap: 13px; } }
@media (min-width: 1800px) { :root { --nav-gap: 14px; --nav-cap: 14px; } .tmtic-lang-sw { --nav-cap: 13px; } }
@media (min-width: 1800px) and (max-width: 1899px) { .tmtic-lang-sw { --nav-cap: 12.5px; } }

/* CTA visible again: menu text sized so everything fits the narrow page width */
@media (min-width: 1440px) and (max-width: 1535px) { :root { --nav-gap: 6px; --nav-cap: 11px; } .tmtic-lang-sw { --nav-cap: 10px; } }
@media (min-width: 1536px) and (max-width: 1679px) { :root { --nav-gap: 8px; --nav-cap: 12px; } .tmtic-lang-sw { --nav-cap: 11px; } }
@media (min-width: 1680px) and (max-width: 1799px) { :root { --nav-gap: 10px; --nav-cap: 13px; } .tmtic-lang-sw { --nav-cap: 12px; } }
@media (min-width: 1800px) and (max-width: 1899px) { :root { --nav-gap: 12px; --nav-cap: 14px; } .tmtic-lang-sw { --nav-cap: 12.5px; } }
@media (min-width: 1101px) and (max-width: 1799px) {
	.site-header .tmtic-actions__cta { padding: 0.75em 1.1em; letter-spacing: 0.04em; }
	.tmtic-link--d0 { letter-spacing: 0; }
}
@media (min-width: 1440px) and (max-width: 1535px) { :root { --nav-gap: 4px; --nav-cap: 10.5px; } }

/* Mobile / tablet: institution name between logo and menu button, squeezed onto one line */
.tmtic-brand__text { display: none; }
@media (max-width: 1100px) {
	.tmtic-brand { gap: 0.5rem; min-width: 0; flex: 1 1 auto; overflow: hidden; }
	.tmtic-brand__text {
		display: block;
		min-width: 0;
		font-family: var(--font-heading);
		font-weight: 600;
		font-size: clamp(7.5px, 2.6vw, 15px);
		line-height: 1.1;
		letter-spacing: 0;
		text-transform: uppercase;
		white-space: nowrap;
		color: var(--color-primary);
		text-decoration: none;
	}
}
.tmtic-brand, .tmtic-brand:hover { text-decoration: none; }
/* Slightly larger menu text where the row has room */
@media (min-width: 1440px) and (max-width: 1535px) { :root { --nav-cap: 10.5px; } }
@media (min-width: 1536px) and (max-width: 1679px) { :root { --nav-cap: 12px; } .tmtic-lang-sw { --nav-cap: 11px; } }
@media (min-width: 1680px) and (max-width: 1799px) { :root { --nav-cap: 13.25px; } .tmtic-lang-sw { --nav-cap: 12.25px; } }
@media (min-width: 1800px) and (max-width: 1899px) { :root { --nav-cap: 13.5px; } .tmtic-lang-sw { --nav-cap: 12.5px; } }
@media (min-width: 1900px) { :root { --nav-cap: 15.5px; --nav-gap: 16px; } .tmtic-lang-sw { --nav-cap: 13.5px; } }

/* Larger menu text (v1.0.x): about +0.5px over the width-banded caps. */
@media (min-width: 1101px) and (max-width: 1365px) { :root { --nav-cap: 11px; } .tmtic-lang-sw { --nav-cap: 10px; } }
@media (min-width: 1366px) and (max-width: 1535px) { :root { --nav-cap: 12px; } .tmtic-lang-sw { --nav-cap: 11px; } }
@media (min-width: 1440px) and (max-width: 1535px) { :root { --nav-cap: 10.5px; } .tmtic-lang-sw { --nav-cap: 10px; } }
@media (min-width: 1536px) and (max-width: 1679px) { :root { --nav-cap: 12px; } .tmtic-lang-sw { --nav-cap: 11px; } }
@media (min-width: 1680px) and (max-width: 1799px) { :root { --nav-cap: 13.5px; } .tmtic-lang-sw { --nav-cap: 12.5px; } }
@media (min-width: 1800px) and (max-width: 1899px) { :root { --nav-cap: 13.5px; } .tmtic-lang-sw { --nav-cap: 12.5px; } }
@media (min-width: 1900px) { :root { --nav-cap: 14.5px; } .tmtic-lang-sw { --nav-cap: 13.5px; } }

/* Menu text and header button share one size. */
.site-header { --hdr-fs: min(var(--nav-fs), var(--nav-cap, 99px)); }
@media (min-width: 1101px) { .site-header .tmtic-actions__cta { font-size: var(--hdr-fs); } }

/* Larger menu text (round 3): caps measured per width with a headless browser so nothing overflows (EN and SW). */
@media (min-width: 1101px) and (max-width: 1279px) { :root { --nav-gap: 6px; --nav-cap: 12.5px; } .tmtic-lang-sw { --nav-cap: 11.5px; } }
@media (min-width: 1280px) and (max-width: 1365px) { :root { --nav-gap: 6px; --nav-cap: 11.5px; } .tmtic-lang-sw { --nav-cap: 10.75px; } }
@media (min-width: 1366px) and (max-width: 1439px) { :root { --nav-gap: 8px; --nav-cap: 12.5px; } .tmtic-lang-sw { --nav-cap: 11.75px; } }
@media (min-width: 1440px) and (max-width: 1479px) { :root { --nav-gap: 4px; --nav-cap: 10.75px; } .tmtic-lang-sw { --nav-cap: 10px; } }
@media (min-width: 1480px) and (max-width: 1535px) { :root { --nav-gap: 4px; --nav-cap: 11.25px; } .tmtic-lang-sw { --nav-cap: 10.5px; } }
@media (min-width: 1536px) and (max-width: 1679px) { :root { --nav-gap: 10px; --nav-cap: 12px; } .tmtic-lang-sw { --nav-cap: 11.25px; } }
@media (min-width: 1680px) and (max-width: 1799px) { :root { --nav-gap: 12px; --nav-cap: 13.5px; } .tmtic-lang-sw { --nav-cap: 12.75px; } }
@media (min-width: 1800px) and (max-width: 1899px) { :root { --nav-gap: 14px; --nav-cap: 13.5px; } .tmtic-lang-sw { --nav-cap: 12.75px; } }
@media (min-width: 1900px) { :root { --nav-gap: 16px; --nav-cap: 14.5px; } .tmtic-lang-sw { --nav-cap: 13.75px; } }

/* Mobile/tablet site name: correct wording, centred between logo and menu button, wraps to two lines if needed. */
@media (max-width: 1100px) {
	.tmtic-brand__text { flex: 1 1 auto; text-align: center; white-space: normal; font-size: clamp(9px, 2.9vw, 15px); line-height: 1.2; overflow-wrap: anywhere; }
}
