:root {
	--tkwh-white: #ffffff;
	--tkwh-ink: #12202d;
	--tkwh-muted: #586879;
	--tkwh-navy: #0d355c;
	--tkwh-navy-deep: #092844;
	--tkwh-blue: #0b559f;
	--tkwh-blue-bright: #1474c9;
	--tkwh-orange: #f47f32;
	--tkwh-orange-dark: #d95f13;
	--tkwh-soft-blue: #edf3f7;
	--tkwh-pale-blue: #f6f9fb;
	--tkwh-line: #d8e0e7;
	--tkwh-shadow: 0 18px 50px rgba(9, 40, 68, 0.1);
	--tkwh-radius-sm: 10px;
	--tkwh-radius: 18px;
	--tkwh-radius-lg: 28px;
	--tkwh-container: 1180px;
	--tkwh-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 150px;
}

body {
	margin: 0;
	background: var(--tkwh-white);
	color: var(--tkwh-ink);
	font-family: var(--tkwh-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
	top: 32px;
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}

a {
	color: var(--tkwh-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--tkwh-orange-dark);
}

button,
input {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p {
	margin-top: 0;
}

h1,
h2,
h3,
h4 {
	color: var(--tkwh-navy-deep);
	line-height: 1.14;
	letter-spacing: -0.035em;
}

h1 {
	font-size: clamp(2.5rem, 5vw, 4.75rem);
}

h2 {
	font-size: clamp(2rem, 3.5vw, 3.15rem);
}

h3 {
	font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.container {
	margin-inline: auto;
	max-width: calc(var(--tkwh-container) + 48px);
	padding-inline: 24px;
	width: 100%;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
	background: var(--tkwh-white);
	clip: auto !important;
	clip-path: none;
	color: var(--tkwh-navy);
	display: block;
	font-weight: 700;
	height: auto;
	left: 16px;
	padding: 12px 18px;
	top: 16px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: fixed;
	transform: translateY(-150%);
}

.skip-link:focus {
	transform: translateY(0);
}

:focus-visible {
	outline: 3px solid rgba(244, 127, 50, 0.8);
	outline-offset: 3px;
}

.eyebrow {
	color: var(--tkwh-blue);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin-bottom: 14px;
	text-transform: uppercase;
}

.btn {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.94rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 46px;
	padding: 12px 22px;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--primary {
	background: var(--tkwh-blue);
	color: var(--tkwh-white);
}

.btn--primary:hover {
	background: var(--tkwh-navy-deep);
	color: var(--tkwh-white);
}

.btn--accent {
	background: var(--tkwh-orange);
	color: var(--tkwh-navy-deep);
}

.btn--accent:hover {
	background: #ff9b56;
	color: var(--tkwh-navy-deep);
}

/* Header */
.site-header {
	background: var(--tkwh-white);
	border-bottom: 1px solid var(--tkwh-line);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header__inner {
	align-items: center;
	display: flex;
	gap: 28px;
	height: 78px;
	position: relative;
}

.site-header__logo {
	flex: 0 0 auto;
}

.site-header__logo img {
	height: 39px;
	width: auto;
}

.site-header__nav {
	align-items: center;
	display: flex;
	gap: 30px;
	margin-right: auto;
}

.site-header__nav > a,
.megamenu__trigger {
	background: transparent;
	border: 0;
	color: var(--tkwh-ink);
	cursor: pointer;
	font-size: 0.94rem;
	font-weight: 600;
	padding: 26px 0;
	text-decoration: none;
}

.site-header__nav > a:hover,
.site-header__nav > a.is-current,
.megamenu__trigger:hover {
	color: var(--tkwh-blue);
}

.megamenu__trigger span {
	display: inline-block;
	font-size: 1rem;
	margin-left: 4px;
	transition: transform 180ms ease;
}

.megamenu__trigger[aria-expanded="true"] span {
	transform: rotate(180deg);
}

.megamenu {
	position: static;
}

.megamenu__panel {
	background: var(--tkwh-white);
	border: 1px solid var(--tkwh-line);
	border-radius: 0 0 var(--tkwh-radius) var(--tkwh-radius);
	box-shadow: var(--tkwh-shadow);
	left: 24px;
	opacity: 0;
	padding: 30px;
	pointer-events: none;
	position: absolute;
	right: 24px;
	top: 71px;
	transform: translateY(-8px);
	transition: opacity 160ms ease, transform 160ms ease;
	visibility: hidden;
}

.megamenu__panel.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

.megamenu__grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(3, 1fr);
}

.megamenu__label {
	color: var(--tkwh-blue);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.megamenu__grid a {
	border-radius: var(--tkwh-radius-sm);
	display: block;
	padding: 10px 12px;
	text-decoration: none;
}

.megamenu__grid a:hover {
	background: var(--tkwh-soft-blue);
}

.megamenu__grid strong,
.megamenu__grid span {
	display: block;
}

.megamenu__grid strong {
	color: var(--tkwh-navy-deep);
	font-size: 0.98rem;
	margin-bottom: 1px;
}

.megamenu__grid span {
	color: var(--tkwh-muted);
	font-size: 0.8rem;
}

.megamenu__cta {
	align-items: center;
	background: var(--tkwh-navy-deep);
	border-radius: var(--tkwh-radius-sm);
	color: var(--tkwh-white);
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-top: 22px;
	padding: 18px 20px;
}

.megamenu__cta span,
.megamenu__cta strong {
	display: block;
}

.megamenu__cta span {
	color: #b8d0e4;
	font-size: 0.76rem;
	text-transform: uppercase;
}

.site-header__end {
	align-items: center;
	display: flex;
	gap: 14px;
}

.region-switch {
	position: relative;
}

.region-switch__trigger {
	align-items: center;
	background: var(--tkwh-white);
	border: 1px solid var(--tkwh-line);
	border-radius: 999px;
	color: var(--tkwh-navy-deep);
	cursor: pointer;
	display: inline-flex;
	font-size: 0.86rem;
	font-weight: 700;
	gap: 7px;
	min-height: 42px;
	padding: 8px 14px;
}

.region-switch__menu {
	background: var(--tkwh-white);
	border: 1px solid var(--tkwh-line);
	border-radius: var(--tkwh-radius-sm);
	box-shadow: 0 16px 38px rgba(9, 40, 68, 0.16);
	min-width: 0;
	width: min(386px, calc(100vw - 32px));
	max-height: min(70vh, 520px);
	opacity: 0;
	overflow-y: auto;
	padding: 8px;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	transform: translateY(-6px);
	transition: 150ms ease;
	visibility: hidden;
}

.region-switch__menu.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

.region-switch__menu a {
	align-items: center;
	border-radius: 8px;
	color: var(--tkwh-ink);
	display: grid;
	gap: 10px;
	grid-template-columns: 48px minmax(0, 1fr);
	padding: 9px 10px;
	text-decoration: none;
	white-space: nowrap;
}

.region-switch__menu a:hover,
.region-switch__menu a[aria-current="page"] {
	background: var(--tkwh-soft-blue);
	color: var(--tkwh-blue);
}

.region-switch__code {
	border: 1px solid var(--tkwh-line);
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 2px 4px;
	text-align: center;
	white-space: nowrap;
}

.region-switch__name {
	min-width: 0;
	white-space: nowrap;
}

.nav-toggle {
	background: transparent;
	border: 0;
	cursor: pointer;
	display: none;
	height: 42px;
	padding: 10px;
	position: relative;
	width: 44px;
}

.nav-toggle::before,
.nav-toggle::after,
.nav-toggle > span:first-child {
	background: var(--tkwh-navy-deep);
	content: "";
	height: 2px;
	left: 10px;
	position: absolute;
	transition: 180ms ease;
	width: 24px;
}

.nav-toggle::before { top: 12px; }
.nav-toggle > span:first-child { top: 20px; }
.nav-toggle::after { top: 28px; }
.nav-toggle[aria-expanded="true"]::before { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { top: 20px; transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] > span:first-child { opacity: 0; }

.topic-nav {
	border-top: 1px solid var(--tkwh-line);
}

.topic-nav__inner {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scrollbar-width: none;
}

.topic-nav__inner::-webkit-scrollbar { display: none; }

.topic-nav a {
	border-bottom: 2px solid transparent;
	color: var(--tkwh-muted);
	flex: 0 0 auto;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 13px 0 11px;
	text-decoration: none;
}

.topic-nav a:hover,
.topic-nav a.is-current {
	border-bottom-color: var(--tkwh-orange);
	color: var(--tkwh-blue);
}

/* Hero and searches */
.tutorial-hero {
	background:
		radial-gradient(circle at 90% 20%, rgba(20, 116, 201, 0.42), transparent 34%),
		radial-gradient(circle at 8% 100%, rgba(244, 127, 50, 0.18), transparent 29%),
		linear-gradient(135deg, var(--tkwh-navy-deep), var(--tkwh-navy));
	color: var(--tkwh-white);
	overflow: hidden;
	padding: clamp(70px, 9vw, 118px) 0;
	position: relative;
}

.tutorial-hero::after {
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 50%;
	content: "";
	height: 420px;
	position: absolute;
	right: -100px;
	top: -190px;
	width: 420px;
}

.tutorial-hero__inner {
	align-items: end;
	display: grid;
	gap: 60px;
	grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.8fr);
	position: relative;
	z-index: 1;
}

.tutorial-hero .eyebrow,
.article-header .eyebrow { color: #80bced; }

.tutorial-hero h1 {
	color: var(--tkwh-white);
	font-size: clamp(2.6rem, 5vw, 4.6rem);
	margin-bottom: 22px;
	max-width: 900px;
}

.tutorial-hero p:not(.eyebrow) {
	color: #dceaf5;
	font-size: clamp(1.05rem, 1.5vw, 1.22rem);
	margin: 0;
	max-width: 720px;
}

.tutorial-search {
	align-items: stretch;
	background: var(--tkwh-white);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	display: flex;
	gap: 8px;
	padding: 6px;
	width: 100%;
}

.tutorial-search input {
	background: transparent;
	border: 0;
	color: var(--tkwh-ink);
	min-width: 0;
	padding: 10px 15px;
	width: 100%;
}

.tutorial-search input:focus { outline: 0; }

.tutorial-search button {
	background: var(--tkwh-orange);
	border: 0;
	border-radius: 999px;
	color: var(--tkwh-navy-deep);
	cursor: pointer;
	font-weight: 700;
	padding: 10px 22px;
}

.tutorial-search:focus-within {
	box-shadow: 0 0 0 4px rgba(244, 127, 50, 0.35);
}

/* Landing sections */
.section {
	padding: clamp(72px, 8vw, 108px) 0;
}

.section--tint { background: var(--tkwh-pale-blue); }

.section-heading {
	align-items: end;
	display: flex;
	gap: 30px;
	justify-content: space-between;
	margin-bottom: 38px;
}

.section-heading h2 { margin-bottom: 0; }
.section-heading > a { font-weight: 700; text-decoration: none; }

.featured-tutorial {
	background: var(--tkwh-white);
	border: 1px solid var(--tkwh-line);
	border-radius: var(--tkwh-radius-lg);
	box-shadow: var(--tkwh-shadow);
	display: grid;
	grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.82fr);
	overflow: hidden;
}

.featured-tutorial__media {
	background: var(--tkwh-soft-blue);
	display: block;
	min-height: 440px;
	overflow: hidden;
}

.featured-tutorial__media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.featured-tutorial__placeholder {
	background:
		linear-gradient(135deg, rgba(11, 85, 159, 0.18), rgba(244, 127, 50, 0.16)),
		var(--tkwh-navy-deep);
	color: var(--tkwh-white);
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: end;
	min-height: 440px;
	padding: 50px;
}

.featured-tutorial__placeholder span {
	color: #8bc1ed;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.featured-tutorial__placeholder strong {
	font-size: clamp(2rem, 3.4vw, 3.6rem);
	line-height: 1.08;
	margin-top: 12px;
	max-width: 550px;
}

.featured-tutorial__content {
	align-items: start;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(34px, 5vw, 64px);
}

.featured-tutorial h3 {
	font-size: clamp(2rem, 3vw, 3rem);
	margin: 16px 0;
}

.featured-tutorial h3 a { color: var(--tkwh-navy-deep); text-decoration: none; }
.featured-tutorial__content > p { color: var(--tkwh-muted); font-size: 1.06rem; }
.featured-tutorial .btn { margin-top: 24px; }

.post-meta {
	align-items: center;
	color: var(--tkwh-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.77rem;
	font-weight: 600;
	gap: 8px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.post-meta__category { color: var(--tkwh-blue); font-weight: 700; text-decoration: none; }

.author-line {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-top: 10px;
}

.author-line img { border-radius: 50%; }
.author-line small,
.author-line strong { display: block; }
.author-line small { color: var(--tkwh-muted); font-size: 0.72rem; }
.author-line strong { color: var(--tkwh-navy-deep); font-size: 0.88rem; }

.topic-grid {
	display: grid;
	gap: 15px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-card {
	align-items: center;
	background: var(--tkwh-white);
	border: 1px solid var(--tkwh-line);
	border-radius: var(--tkwh-radius);
	color: var(--tkwh-navy-deep);
	display: grid;
	gap: 14px;
	grid-template-columns: auto 1fr auto;
	padding: 22px;
	text-decoration: none;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.topic-card:hover {
	border-color: #aac7df;
	box-shadow: 0 12px 28px rgba(9, 40, 68, 0.08);
	color: var(--tkwh-blue);
	transform: translateY(-2px);
}

.topic-card__icon {
	align-items: center;
	background: var(--tkwh-soft-blue);
	border-radius: 11px;
	color: var(--tkwh-blue);
	display: inline-flex;
	font-size: 1.05rem;
	font-weight: 700;
	height: 46px;
	justify-content: center;
	width: 46px;
}

.topic-card strong,
.topic-card small { display: block; }
.topic-card small { color: var(--tkwh-muted); font-size: 0.74rem; margin-top: 2px; }

.tutorial-grid {
	display: grid;
	gap: 26px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tutorial-card {
	background: var(--tkwh-white);
	border: 1px solid var(--tkwh-line);
	border-radius: var(--tkwh-radius);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.tutorial-card:hover { box-shadow: var(--tkwh-shadow); transform: translateY(-4px); }

.tutorial-card__image {
	aspect-ratio: 1.62;
	background: var(--tkwh-soft-blue);
	display: block;
	overflow: hidden;
}

.tutorial-card__image img {
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
	width: 100%;
}

.tutorial-card:hover .tutorial-card__image img { transform: scale(1.025); }

.tutorial-card__placeholder {
	align-items: center;
	background:
		radial-gradient(circle at 80% 10%, rgba(244, 127, 50, 0.25), transparent 32%),
		linear-gradient(135deg, var(--tkwh-navy), var(--tkwh-blue));
	display: flex;
	height: 100%;
	justify-content: center;
}

.tutorial-card__placeholder svg {
	fill: none;
	height: 90px;
	stroke: rgba(255, 255, 255, 0.88);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 3;
	width: 135px;
}

.tutorial-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.tutorial-card__title { font-size: 1.38rem; margin: 13px 0 10px; }
.tutorial-card__title a { color: var(--tkwh-navy-deep); text-decoration: none; }
.tutorial-card__title a:hover { color: var(--tkwh-blue); }
.tutorial-card__body > p { color: var(--tkwh-muted); font-size: 0.92rem; }

.tutorial-card__more {
	align-items: center;
	display: inline-flex;
	font-size: 0.88rem;
	font-weight: 700;
	gap: 6px;
	margin-top: auto;
	text-decoration: none;
}

.cta-band {
	background:
		radial-gradient(circle at 90% 20%, rgba(20, 116, 201, 0.55), transparent 30%),
		var(--tkwh-navy-deep);
	color: var(--tkwh-white);
	padding: 68px 0;
}

.cta-band__inner {
	align-items: center;
	display: flex;
	gap: 40px;
	justify-content: space-between;
}

.cta-band h2 {
	color: var(--tkwh-white);
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	margin-bottom: 0;
	max-width: 770px;
}

.cta-band .eyebrow { color: #8bc1ed; }

.empty-state {
	background: var(--tkwh-pale-blue);
	border: 1px solid var(--tkwh-line);
	border-radius: var(--tkwh-radius);
	padding: clamp(34px, 7vw, 72px);
	text-align: center;
}

.empty-state p { color: var(--tkwh-muted); }
.empty-state .tutorial-search { border-color: var(--tkwh-line); margin: 28px auto 0; max-width: 640px; }

/* Archives */
.archive-header {
	background: var(--tkwh-navy-deep);
	color: var(--tkwh-white);
	padding: 72px 0;
}

.archive-header__inner { max-width: 900px; }

.archive-header h1 {
	color: var(--tkwh-white);
	font-size: clamp(2.5rem, 5vw, 4.4rem);
	margin-bottom: 20px;
}

.archive-description { color: #d6e4ef; font-size: 1.08rem; max-width: 700px; }
.archive-header .tutorial-search { margin-top: 30px; max-width: 680px; }
.navigation.pagination { margin-top: 48px; }

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.page-numbers {
	align-items: center;
	border: 1px solid var(--tkwh-line);
	border-radius: 8px;
	color: var(--tkwh-navy);
	display: inline-flex;
	height: 42px;
	justify-content: center;
	min-width: 42px;
	padding: 0 12px;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--tkwh-blue);
	border-color: var(--tkwh-blue);
	color: var(--tkwh-white);
}

/* Single tutorial */
.article-header {
	background:
		radial-gradient(circle at 87% 8%, rgba(20, 116, 201, 0.45), transparent 30%),
		var(--tkwh-navy-deep);
	color: var(--tkwh-white);
	padding: 52px 0 84px;
}

.article-header__inner { max-width: 960px; }

.breadcrumbs {
	color: #aac6dc;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.78rem;
	gap: 8px;
	margin-bottom: 50px;
}

.breadcrumbs a { color: #d9e9f5; text-decoration: none; }

.breadcrumbs span[aria-current="page"] {
	max-width: 360px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.article-header .post-meta { color: #bfd4e4; margin-bottom: 16px; }
.article-header .post-meta__category { color: #8bc1ed; }

.article-header h1 {
	color: var(--tkwh-white);
	font-size: clamp(2.55rem, 5.3vw, 5rem);
	margin-bottom: 24px;
	max-width: 940px;
}

.article-header__lede { color: #d9e7f1; font-size: clamp(1.08rem, 2vw, 1.3rem); max-width: 790px; }
.author-line--light { margin-top: 32px; }
.author-line--light img { border: 2px solid rgba(255, 255, 255, 0.3); }
.author-line--light small { color: #aac6dc; }
.author-line--light strong { color: var(--tkwh-white); }

.article-updated {
	border-left: 1px solid rgba(255, 255, 255, 0.2);
	margin-left: 8px;
	padding-left: 20px;
}

.article-featured {
	margin-top: -45px;
	position: relative;
	z-index: 2;
}

.article-featured img {
	aspect-ratio: 16 / 8;
	border: 8px solid var(--tkwh-white);
	border-radius: var(--tkwh-radius-lg);
	box-shadow: var(--tkwh-shadow);
	object-fit: cover;
	width: 100%;
}

.article-layout {
	display: grid;
	gap: clamp(40px, 7vw, 90px);
	grid-template-columns: 220px minmax(0, 760px);
	justify-content: center;
	padding-bottom: 105px;
	padding-top: 80px;
}

.article-sidebar,
.article-main { min-width: 0; }

.article-toc {
	border-left: 2px solid var(--tkwh-line);
	position: sticky;
	top: 155px;
}

.article-toc.is-empty { display: none; }

.article-toc > p {
	color: var(--tkwh-navy-deep);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0 0 12px;
	padding-left: 18px;
	text-transform: uppercase;
}

.article-toc a {
	border-left: 2px solid transparent;
	color: var(--tkwh-muted);
	display: block;
	font-size: 0.81rem;
	line-height: 1.35;
	margin-left: -2px;
	padding: 7px 0 7px 18px;
	text-decoration: none;
}

.article-toc a[data-level="3"] { padding-left: 32px; }
.article-toc a:hover,
.article-toc a.is-current { border-left-color: var(--tkwh-orange); color: var(--tkwh-blue); }

.article-content {
	color: #253646;
	font-size: 1.06rem;
	line-height: 1.78;
}

.article-content > *:first-child { margin-top: 0; }
.article-content h2,
.article-content h3,
.article-content h4 { scroll-margin-top: 155px; }
.article-content h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 2.1em 0 0.65em; }
.article-content h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 1.8em 0 0.55em; }
.article-content h4 { font-size: 1.15rem; margin: 1.6em 0 0.5em; }

.article-content p,
.article-content ul,
.article-content ol,
.article-content table,
.article-content blockquote,
.article-content pre,
.article-content figure { margin-bottom: 1.55em; }

.article-content li + li { margin-top: 0.48em; }
.article-content a { font-weight: 600; }
.article-content img { border-radius: var(--tkwh-radius-sm); }
.article-content figure { margin-left: 0; margin-right: 0; }
.article-content figcaption { color: var(--tkwh-muted); font-size: 0.78rem; margin-top: 8px; text-align: center; }

.article-content blockquote {
	background: var(--tkwh-pale-blue);
	border-left: 4px solid var(--tkwh-blue);
	border-radius: 0 var(--tkwh-radius-sm) var(--tkwh-radius-sm) 0;
	color: var(--tkwh-navy);
	font-size: 1.15rem;
	margin-left: 0;
	padding: 24px 28px;
}

.article-content blockquote > *:last-child { margin-bottom: 0; }

.article-content pre {
	background: var(--tkwh-navy-deep);
	border-radius: var(--tkwh-radius-sm);
	color: #e7f1f9;
	overflow-x: auto;
	padding: 22px;
}

.article-content code { background: var(--tkwh-soft-blue); border-radius: 4px; font-size: 0.9em; padding: 2px 5px; }
.article-content pre code { background: transparent; padding: 0; }

.article-content table {
	border-collapse: collapse;
	font-size: 0.92rem;
	width: 100%;
}

.article-content th,
.article-content td { border: 1px solid var(--tkwh-line); padding: 12px 14px; text-align: left; }
.article-content th { background: var(--tkwh-soft-blue); color: var(--tkwh-navy-deep); }

.article-content .wp-block-button__link {
	background: var(--tkwh-blue);
	border-radius: 999px;
	font-weight: 700;
	padding: 12px 22px;
}

.article-footer { border-top: 1px solid var(--tkwh-line); margin-top: 65px; padding-top: 32px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-list a {
	background: var(--tkwh-soft-blue);
	border-radius: 999px;
	color: var(--tkwh-navy);
	font-size: 0.78rem;
	font-weight: 600;
	padding: 6px 12px;
	text-decoration: none;
}

.author-box {
	align-items: start;
	background: var(--tkwh-pale-blue);
	border: 1px solid var(--tkwh-line);
	border-radius: var(--tkwh-radius);
	display: flex;
	gap: 22px;
	margin-top: 32px;
	padding: 28px;
}

.author-box img { border-radius: 50%; flex: 0 0 auto; }
.author-box p:first-child { color: var(--tkwh-blue); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 4px; text-transform: uppercase; }
.author-box h2 { font-size: 1.35rem; margin-bottom: 8px; }
.author-box p:last-child { color: var(--tkwh-muted); font-size: 0.88rem; margin-bottom: 0; }

.standard-page__content { margin: 70px auto 100px; max-width: 780px; }

.not-found {
	align-items: center;
	background: var(--tkwh-pale-blue);
	display: flex;
	min-height: 62vh;
	padding: 80px 0;
	text-align: center;
}

.not-found__inner { max-width: 760px; }

.not-found__code {
	color: rgba(11, 85, 159, 0.12);
	font-size: clamp(7rem, 18vw, 13rem);
	font-weight: 700;
	letter-spacing: -0.09em;
	line-height: 0.8;
	margin-bottom: -8px;
}

.not-found h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.not-found__inner > p:not(.eyebrow, .not-found__code) { color: var(--tkwh-muted); }
.not-found .tutorial-search { border-color: var(--tkwh-line); margin: 28px auto 22px; max-width: 600px; }
.text-link { font-weight: 700; text-decoration: none; }

/* Footer */
.site-footer {
	background: #071f35;
	color: #b9cad8;
	padding: 72px 0 28px;
}

.site-footer__directory {
	display: grid;
	gap: 34px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-footer__heading {
	color: var(--tkwh-white);
	font-size: 0.92rem;
	letter-spacing: 0;
	margin-bottom: 16px;
}

.site-footer__directory a {
	color: #b9cad8;
	display: block;
	font-size: 0.84rem;
	margin: 9px 0;
	text-decoration: none;
}

.site-footer__directory a:hover { color: var(--tkwh-white); }

.site-footer__brand-row {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
	display: flex;
	gap: 40px;
	justify-content: space-between;
	margin-top: 60px;
	padding-top: 36px;
}

.site-footer__brand img { height: 42px; width: auto; }
.site-footer__brand p { font-size: 0.82rem; margin: 12px 0 0; max-width: 520px; }

.site-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.13);
	display: flex;
	font-size: 0.74rem;
	gap: 30px;
	justify-content: space-between;
	margin-top: 34px;
	padding-top: 24px;
}

@media (max-width: 1040px) {
	.site-header__inner { gap: 18px; }
	.site-header__nav { gap: 20px; }
	.site-header__cta { display: none; }
	.tutorial-hero__inner { gap: 38px; grid-template-columns: 1.2fr 0.8fr; }
	.featured-tutorial { grid-template-columns: 1.05fr 0.95fr; }
	.article-layout { gap: 50px; grid-template-columns: 190px minmax(0, 700px); }
}

@media (max-width: 840px) {
	body.admin-bar .site-header { top: 46px; }
	.site-header__inner { height: 70px; }
	.site-header__logo img { height: 35px; }
	.nav-toggle { display: block; margin-left: auto; order: 2; }
	.site-header__end { order: 1; }

	.site-header__nav {
		align-items: stretch;
		background: var(--tkwh-white);
		border-bottom: 1px solid var(--tkwh-line);
		box-shadow: 0 18px 30px rgba(9, 40, 68, 0.12);
		display: none;
		flex-direction: column;
		gap: 0;
		left: 0;
		max-height: calc(100vh - 70px);
		overflow-y: auto;
		padding: 14px 24px 28px;
		position: absolute;
		right: 0;
		top: 70px;
	}

	.site-header__nav.is-open { display: flex; }

	.site-header__nav > a,
	.megamenu__trigger {
		border-bottom: 1px solid var(--tkwh-line);
		padding: 14px 0;
		text-align: left;
		width: 100%;
	}

	.megamenu__trigger { display: flex; justify-content: space-between; }

	.megamenu__panel {
		border: 0;
		border-radius: 0;
		box-shadow: none;
		display: none;
		left: auto;
		opacity: 1;
		padding: 18px 0;
		position: static;
		right: auto;
		transform: none;
		visibility: visible;
	}

	.megamenu__panel.is-open { display: block; }
	.megamenu__grid { grid-template-columns: 1fr; }
	.megamenu__cta { align-items: stretch; flex-direction: column; }
	.tutorial-hero__inner { align-items: start; grid-template-columns: 1fr; }
	.tutorial-hero .tutorial-search { max-width: 620px; }
	.featured-tutorial { grid-template-columns: 1fr; }
	.featured-tutorial__media,
	.featured-tutorial__placeholder { min-height: 340px; }
	.topic-grid,
	.tutorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article-layout { display: block; padding-top: 58px; }
	.article-sidebar { display: none; }
}

@media (max-width: 620px) {
	.container { padding-inline: 18px; }
	body.admin-bar .site-header { top: 0; }
	.site-header__logo img { height: 31px; max-width: 150px; }
	.region-switch__trigger { min-height: 38px; padding-inline: 11px; }
	.region-switch__menu {
		left: 18px;
		position: fixed;
		right: 18px;
		top: 76px;
		width: auto;
	}
	.topic-nav__inner { gap: 22px; }
	.tutorial-hero { padding: 62px 0 70px; }
	.tutorial-hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
	.tutorial-search { border-radius: 16px; flex-direction: column; }
	.tutorial-search button { border-radius: 11px; min-height: 44px; }
	.section { padding: 68px 0; }
	.section-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 30px; }
	.featured-tutorial { border-radius: var(--tkwh-radius); }
	.featured-tutorial__media,
	.featured-tutorial__placeholder { min-height: 255px; }
	.featured-tutorial__placeholder { padding: 28px; }
	.featured-tutorial__content { padding: 28px 24px 32px; }
	.featured-tutorial h3 { font-size: 1.8rem; }
	.topic-grid,
	.tutorial-grid { grid-template-columns: 1fr; }
	.cta-band__inner,
	.site-footer__brand-row,
	.site-footer__legal { align-items: flex-start; flex-direction: column; }
	.article-header { padding: 34px 0 65px; }
	.breadcrumbs { margin-bottom: 34px; }
	.article-header h1 { font-size: clamp(2.3rem, 12vw, 3.5rem); }
	.article-updated { border-left: 0; margin-left: 0; padding-left: 0; }
	.author-line--light { align-items: flex-start; flex-wrap: wrap; }
	.article-featured { margin-top: -28px; }
	.article-featured img { border-width: 5px; border-radius: var(--tkwh-radius); }
	.article-layout { padding-bottom: 75px; padding-top: 48px; }
	.article-content { font-size: 1rem; }
	.article-content table { display: block; overflow-x: auto; }
	.author-box { flex-direction: column; }
	.site-footer__directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
