/* ==========================================================================
   Brilad theme: main stylesheet
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"),
		url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Sans";
	src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Sans";
	src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Sans";
	src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Sans";
	src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--saffron: #FF7A00;
	--saffron-dark: #C25700;
	--saffron-soft: #FFE7D1;
	--red: #C8102E;
	--white: #FFFFFF;
	--grey: #F3F3F1;
	--line: #E2E1DD;
	--ink: #1C1C1E;
	--ink-2: #2B2A28;
	--body: #45423E;
	--muted: #66625C;
	--on-dark: #D9D6D1;
	--on-dark-2: #A9A59F;
	--footer: #141414;

	--f-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
	--f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--gutter: clamp(20px, 5vw, 48px);
	--container: 1200px;
	--narrow: 760px;
	--section-y: clamp(64px, 8vw, 112px);
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--saffron); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--saffron-dark); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4, p { margin: 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	padding: 12px 18px; background: var(--ink); color: var(--white);
	border-radius: 6px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--white); }
.site-main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(var(--narrow), 100% - 2 * var(--gutter)); }

.section { padding-block: var(--section-y); background: var(--white); }
.section--grey { background: var(--grey); }
.section--dark { background: var(--ink); color: var(--white); }
.section--saffron { background: var(--saffron); color: var(--ink); }
.section--listing, .section--page { padding-top: 48px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; }
.split__side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
.section-foot { margin-top: 40px; }

/* ---------- Type ---------- */
.h1, .h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.025em; color: inherit; }
.h1 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.05; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; max-width: 20ch; }
.lead { font-size: 18px; line-height: 1.65; color: var(--body); max-width: 46ch; }
.lead--wide { max-width: 64ch; margin-top: 16px; }
.lead--on-dark { color: var(--on-dark); }
.lead--ink { color: var(--ink); max-width: 60ch; margin-top: 16px; }
.text-link { font-weight: 600; }
.link-on-dark { color: var(--white); }
.link-on-dark:hover { color: var(--saffron); }

/* Small category link used on posts */
.eyebrow { display: inline-block; font-size: 15px; font-weight: 600; color: var(--saffron-dark); text-decoration: none; }
.eyebrow:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 12px 22px;
	border-radius: 8px; border: 2px solid transparent;
	font-family: var(--f-body); font-size: 16px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--lg { min-height: 56px; padding: 14px 26px; font-size: 17px; }
.btn--saffron { background: var(--saffron); color: var(--ink); }
.btn--saffron:hover { background: #FF9230; color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #3A3834; color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 27px; letter-spacing: -0.02em; line-height: 1; }
.brand--dark, .brand--dark:hover { color: var(--white); }
.brand--custom img { max-height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav__menu .menu { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav__menu a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; padding-block: 8px; }
.site-nav__menu a:hover,
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current-page-ancestor > a,
.site-nav__menu .current-menu-ancestor > a { color: var(--saffron-dark); }
.site-nav__menu .sub-menu { display: none; }

.nav-toggle {
	display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
	border: 2px solid var(--ink); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle__close { display: none; }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none; position: fixed; inset: var(--header-h) 0 0 0;
		flex-direction: column; align-items: stretch; gap: 24px;
		padding: 16px var(--gutter) 40px; background: var(--white); overflow-y: auto;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { display: flex; }
	.nav-open { overflow: hidden; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline-flex; }
	.site-nav__menu .menu { flex-direction: column; gap: 0; }
	.site-nav__menu .menu a { display: block; padding: 16px 0; font-family: var(--f-display); font-size: 26px; font-weight: 700; border-bottom: 1px solid var(--line); }
	.site-nav__menu .sub-menu { display: block; list-style: none; margin: 0; padding: 0 0 0 16px; }
	.site-nav__menu .sub-menu a { font-size: 18px; font-family: var(--f-body); font-weight: 500; }
	.site-nav__cta { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(42px, 5.8vw, 76px); line-height: 1; letter-spacing: -0.035em; max-width: 14ch; }
.hero__text { font-size: 19px; line-height: 1.65; color: var(--body); max-width: 54ch; }

.hero__people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.person-tile img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--grey); }
.person-tile--2 { margin-top: 40px; }
.person-tile--3 { margin-top: 80px; }
.person-tile__name { margin-top: 12px; font-weight: 600; font-size: 16px; line-height: 1.3; }
.person-tile__meta { font-size: 14px; color: var(--muted); }

/* ---------- Trust ---------- */
.trust { padding-block: 36px; border-bottom: 1px solid var(--line); }
.trust__inner { display: flex; align-items: center; gap: 40px; }
.trust__label { flex: 0 0 auto; font-size: 15px; color: var(--muted); }
.trust__logos { flex: 1; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; margin: 0; padding: 0; list-style: none; }
.trust__logo { max-height: 40px; width: auto; display: block; filter: grayscale(1); opacity: 0.75; }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.compare th { text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 16px 12px 0; border-bottom: 2px solid var(--ink); }
.compare td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare td:first-child { font-weight: 600; width: 34%; }
.compare td:last-child { white-space: nowrap; font-weight: 600; }

/* ---------- Service rows ---------- */
.service-rows { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.service-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.service-row__name { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.service-row__name a { text-decoration: none; }
.service-row__name a:hover { text-decoration: underline; color: var(--ink); }
.service-row__text { font-size: 17px; color: var(--body); max-width: 60ch; }

/* ---------- Code panel ---------- */
.code-panel { margin: 0; border: 1px solid #3A3834; border-radius: 10px; overflow: hidden; background: #111112; }
.code-panel__file { padding: 12px 18px; font-family: var(--f-mono); font-size: 13px; color: var(--on-dark-2); border-bottom: 1px solid #3A3834; }
.code-panel pre { margin: 0; padding: 20px 18px 24px; overflow-x: auto; font-family: var(--f-mono); font-size: 14px; line-height: 1.7; color: #F1EEE9; white-space: pre-wrap; word-break: break-word; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.timeline__step { counter-increment: step; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--ink); }
.timeline__step::before { content: counter(step); font-family: var(--f-display); font-size: 44px; font-weight: 700; line-height: 1; color: var(--saffron); }
.timeline__step:last-child { border-top-color: var(--red); }
.timeline__when { font-size: 14px; font-weight: 600; color: var(--muted); }
.timeline__name { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.timeline__text { font-size: 15px; color: var(--body); }

/* ---------- Founders ---------- */
.founders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.founder { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.founder__photo { display: block; width: 140px; height: 140px; object-fit: cover; border-radius: 6px; }
.founder__body { display: flex; flex-direction: column; gap: 8px; }
.founder__name { font-family: var(--f-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.founder__role { font-size: 15px; font-weight: 600; color: var(--saffron-dark); }
.founder__bio { font-size: 16px; color: var(--body); }

/* ---------- Link list (academy, results) ---------- */
.link-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.link-list--wide { margin-top: 40px; }
.link-list__item { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.link-list__title { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.link-list__title a { text-decoration: none; }
.link-list__title a:hover { text-decoration: underline; color: var(--ink); }
.link-list__text { font-size: 16px; color: var(--body); max-width: 60ch; }
.result__num { font-family: var(--f-display); font-size: 36px; font-weight: 700; color: var(--saffron-dark); line-height: 1; }

/* ---------- Training ---------- */
.training { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.training .btn-row { justify-content: flex-end; }

/* ---------- FAQ ---------- */
.faq__list { margin: 0; border-top: 2px solid var(--ink); }
.faq__item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq__item dt { font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.faq__item dd { margin: 0; font-size: 16px; color: var(--body); max-width: 64ch; }

/* ---------- Closing ---------- */
.closing { border-top: 1px solid var(--line); }
.closing__inner { display: flex; flex-direction: column; gap: 8px; }
.closing .btn-row { margin-top: 28px; gap: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--white); padding: 72px 0 36px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand p { font-size: 15px; color: var(--on-dark); max-width: 300px; }
.footer-heading { margin-bottom: 14px; font-family: var(--f-body); font-size: 15px; font-weight: 600; color: var(--on-dark-2); }
.footer-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { color: var(--saffron); }
.footer-links--plain, .footer-links address { color: var(--on-dark); font-style: normal; }
.site-footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid #2E2C2A; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--on-dark-2); }
.legal-links { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.legal-links a { color: var(--on-dark-2); text-decoration: none; }
.legal-links a:hover { color: var(--white); }

/* ---------- Inner page header ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero .container { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.page-hero__intro, .page-hero .lead { font-size: 19px; color: var(--body); max-width: 60ch; }
.page-hero--center .container { align-items: center; text-align: center; }

/* ---------- Blog listing ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.post-card__link { display: flex; flex-direction: column; gap: 14px; height: 100%; color: var(--ink); text-decoration: none; }
.post-card__link:hover .post-card__title { text-decoration: underline; text-decoration-color: var(--saffron); }
.post-card__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.post-card__cat { font-size: 14px; font-weight: 600; color: var(--saffron-dark); }
.post-card__title { font-family: var(--f-display); font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.post-card__excerpt { font-size: 15px; color: var(--body); flex-grow: 1; }
.post-card__date { font-size: 14px; color: var(--muted); }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; padding: 0 14px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }

.empty-state { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; font-size: 18px; }

.search-form { display: flex; gap: 10px; width: min(520px, 100%); }
.search-form__input { flex: 1; min-height: 48px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 8px; background: var(--white); font: inherit; font-size: 16px; color: var(--ink); }
.search-form__input:focus { border-color: var(--saffron); outline: none; }

/* ---------- Single article ---------- */
.article__header { padding-block: clamp(48px, 7vw, 88px) 32px; }
.article__header .eyebrow { margin-bottom: 18px; }
.article__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.03em; }
.article__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; color: var(--muted); }
.article__media { margin: 8px auto 0; }
.article__media img { display: block; width: 100%; border-radius: 6px; }
.article .entry-content { padding-block: 48px; }

.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 24px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.author-box__avatar { border-radius: 50%; flex: 0 0 auto; }
.author-box__name { font-weight: 600; margin-bottom: 4px; }
.author-box__bio { font-size: 15px; color: var(--body); }

.inline-cta { background: var(--grey); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-bottom: 48px; }
.inline-cta__title { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }

.post-navigation { padding-bottom: 72px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-navigation a { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.post-navigation a:hover .nav-title { text-decoration: underline; text-decoration-color: var(--saffron); }
.post-navigation .nav-next { text-align: right; }
.nav-label { font-size: 14px; color: var(--muted); }
.nav-title { font-weight: 600; }

/* ---------- Entry content ---------- */
.entry-content { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--f-display); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; margin-top: 1.8em; }
.entry-content h2 { font-size: clamp(28px, 3vw, 36px); }
.entry-content h3 { font-size: clamp(21px, 2.3vw, 25px); }
.entry-content h4 { font-size: 20px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content li::marker { color: var(--saffron-dark); }
.entry-content blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--saffron); font-size: 20px; color: var(--ink); }
.entry-content img { border-radius: 6px; }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry-content code { font-family: var(--f-mono); font-size: 0.88em; background: var(--grey); padding: 2px 6px; border-radius: 4px; }
.entry-content pre { overflow-x: auto; background: var(--ink); color: #F1EEE9; padding: 20px; border-radius: 8px; font-size: 15px; }
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); }
.entry-content details { border-top: 1px solid var(--line); padding: 16px 0; }
.entry-content summary { font-weight: 600; cursor: pointer; }
.entry-content .alignwide { width: min(var(--container), 100vw - 2 * var(--gutter)); max-width: none; margin-inline: calc(50% - min(var(--container), 100vw - 2 * var(--gutter)) / 2); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.entry-content--full > * { margin-top: 0; }
.entry-content--full > :not(.alignfull):not(.alignwide) { width: min(var(--narrow), 100% - 2 * var(--gutter)); margin-inline: auto; }
.entry-content--full > .alignfull { margin-inline: 0; width: 100%; }
.entry-content .founders { grid-template-columns: 1fr; gap: 36px; }
.entry-content .founder { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; }
.page-links { margin-top: 2em; font-weight: 600; }

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
/* Required WordPress classes, intentionally unstyled. */
.sticky, .bypostauthor, .gallery-caption { outline: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.split { grid-template-columns: 1fr; }
	.split__side { position: static; }
	.hero__grid { grid-template-columns: 1fr; gap: 48px; }
	.hero__people { max-width: 560px; }
	.timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	.founders { grid-template-columns: 1fr; }
	.training { grid-template-columns: 1fr; align-items: start; }
	.training .btn-row { justify-content: flex-start; }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__brand { grid-column: 1 / -1; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.trust__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 720px) {
	:root { --header-h: 66px; }
	body { font-size: 16px; }
	.brand__name { font-size: 24px; }
	.hero__text { font-size: 17px; }
	.btn-row .btn { width: 100%; }
	.person-tile--2 { margin-top: 24px; }
	.person-tile--3 { margin-top: 48px; }
	.hero__people { gap: 10px; }
	.person-tile__meta { font-size: 13px; }
	.entry-content .founder { grid-template-columns: 96px minmax(0, 1fr); }
	.service-row { grid-template-columns: 1fr; gap: 8px; }
	.timeline, .post-grid { grid-template-columns: 1fr; }
	.founder__photo { width: 96px; height: 96px; }
	.compare td:first-child { width: auto; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.entry-content { font-size: 17px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
	.search-form { flex-direction: column; }
}

/* ---------- Development ---------- */
.stack-line { margin-top: 24px; font-size: 15px; color: var(--body); }
.stack-line__label { font-weight: 600; color: var(--ink); }

/* ---------- Contact Form 7 ---------- */
.wpcf7 { margin-top: 8px; }
.wpcf7 form > p { margin: 0 0 18px; }
.wpcf7 label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 2px solid var(--line);
	border-radius: 8px;
	background: var(--white);
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	color: var(--ink);
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { border-color: var(--saffron); outline: none; }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--body); }
.wpcf7 .wpcf7-acceptance input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--saffron); flex: 0 0 auto; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 input[type="submit"] {
	min-height: 52px;
	padding: 12px 28px;
	border: 0;
	border-radius: 8px;
	background: var(--saffron);
	color: var(--ink);
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: #FF9230; }
.wpcf7 .wpcf7-not-valid { border-color: var(--red) !important; }
.wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--red); }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 14px 16px; border: 2px solid var(--line); border-radius: 8px; font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2E7D32; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: var(--red); }
.wpcf7-spinner { margin-left: 12px; }

/* ---------- Blog (2.3) ---------- */
.container--mid { width: min(980px, 100% - 2 * var(--gutter)); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--saffron-dark); text-decoration: underline; }
.article__dek { margin-top: 18px; font-size: 20px; line-height: 1.55; color: var(--body); max-width: 60ch; }
.article__meta { align-items: center; }
.byline { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline:hover span { text-decoration: underline; text-decoration-color: var(--saffron); }

.article__layout { width: min(var(--narrow), 100% - 2 * var(--gutter)); }
.article__layout--toc { width: min(1100px, 100% - 2 * var(--gutter)); display: grid; grid-template-columns: 240px minmax(0, var(--narrow)); gap: 64px; justify-content: center; }
.article__body { min-width: 0; padding-top: 40px; }
.article__body .entry-content { padding-block: 0 48px; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; padding-top: 44px; font-size: 14px; }
.toc__title { font-weight: 600; margin-bottom: 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc li a:hover { color: var(--ink); border-left-color: var(--saffron); }

.key-points { margin-bottom: 36px; padding: 22px 24px; background: var(--grey); border-left: 4px solid var(--saffron); border-radius: 0 8px 8px 0; }
.key-points__title { font-weight: 600; margin-bottom: 10px; }
.key-points ul { margin: 0; padding-left: 1.2em; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.key-points li + li { margin-top: 6px; }

.author-box__avatar { width: 72px; height: 72px; object-fit: cover; }
.author-box__role { font-size: 14px; font-weight: 600; color: var(--saffron-dark); margin-bottom: 6px; }

.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.cat-filter a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); text-decoration: none; }
.cat-filter a:hover { border-color: var(--ink); }
.cat-filter a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.post-feature { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.post-feature__link { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; color: var(--ink); text-decoration: none; }
.post-feature__link:hover .post-feature__title { text-decoration: underline; text-decoration-color: var(--saffron); }
.post-feature__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.post-feature__body { display: flex; flex-direction: column; gap: 12px; }
.post-feature__title { font-family: var(--f-display); font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.02em; }
.post-feature__excerpt { font-size: 17px; color: var(--body); }
.post-card__date { margin: 0; }
.related .post-grid { margin-top: 32px; }

@media (max-width: 1080px) {
	.article__layout--toc { grid-template-columns: 1fr; width: min(var(--narrow), 100% - 2 * var(--gutter)); gap: 0; }
	.toc { position: static; padding-top: 32px; }
	.post-feature__link { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Content components (2.4): HTML charts, flows, terminal ---------- */
.entry-content .chart { margin: 2em 0; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.entry-content .chart__title { margin: 0; font-family: var(--f-display); font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--ink); letter-spacing: -0.01em; }
.entry-content .chart__sub { margin: 6px 0 18px; font-size: 14px; color: var(--muted); }
.entry-content .chart__rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.entry-content .chart__rows li + li { margin-top: 0; }
.entry-content .chart__row { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 15px; }
.entry-content .chart__label { color: var(--ink); font-weight: 500; line-height: 1.3; }
.entry-content .chart__track { height: 22px; background: var(--grey); border-radius: 4px; overflow: hidden; }
.entry-content .chart__bar { display: block; height: 100%; background: var(--saffron); border-radius: 4px; }
.entry-content .chart__bar--ink { background: var(--ink); }
.entry-content .chart__bar--red { background: var(--red); }
.entry-content .chart__value { font-weight: 700; color: var(--ink); min-width: 4.5em; text-align: right; font-variant-numeric: tabular-nums; }
.entry-content .chart__source { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.entry-content .flow { margin: 2em 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; counter-reset: flow; }
.entry-content .flow li { margin: 0; counter-increment: flow; padding: 18px; background: var(--grey); border-radius: 8px; font-size: 15px; line-height: 1.5; }
.entry-content .flow li::before { content: counter(flow); display: block; font-family: var(--f-display); font-size: 28px; font-weight: 700; color: var(--saffron); line-height: 1; margin-bottom: 8px; }
.entry-content .flow strong { display: block; color: var(--ink); margin-bottom: 4px; }

.entry-content pre.terminal { position: relative; padding: 52px 20px 20px; background: #111112; color: #F1EEE9; border-radius: 10px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.entry-content pre.terminal::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 34px; background: #232326; border-radius: 10px 10px 0 0; }
.entry-content pre.terminal::after { content: ""; position: absolute; top: 12px; left: 16px; width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; box-shadow: 16px 0 0 #FEBC2E, 32px 0 0 #28C840; }
.entry-content pre.terminal .t-cmd { color: #FF9A3D; }
.entry-content pre.terminal .t-bad { color: #FF6B6B; }
.entry-content pre.terminal .t-note { color: #8A857E; }

@media (max-width: 720px) {
	.entry-content .chart { padding: 18px; }
	.entry-content .chart__row { grid-template-columns: 1fr auto; }
	.entry-content .chart__label { grid-column: 1 / -1; }
}

/* ---------- Text cover for posts without a featured image ---------- */
.post-cover { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 9; padding: 22px; border-radius: 6px; background: var(--ink); color: var(--white); overflow: hidden; }
.post-cover__cat { font-size: 13px; font-weight: 600; color: var(--saffron); }
.post-cover__title { font-family: var(--f-display); font-size: clamp(18px, 2vw, 24px); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-cover__mark { align-self: flex-end; width: 28px; height: 28px; }
.post-feature__media .post-cover__title { font-size: clamp(24px, 3vw, 36px); }
