/*
Theme Name: FashionPilates
Theme URI: https://fashionpilates.com
Author: FashionPilates.com
Description: Editorial theme for FashionPilates.com. Category-driven dropdown navigation, a full-width homepage without a sidebar, visible SEO category descriptions with subcategory links, and a footer with a plain copyright bar. Built on the approved FashionPilates palette with WCAG AA text pairings.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: fashionpilates
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--ink: #242424;
	--ivory: #FAF7F2;
	--white: #FFFFFF;
	--teal: #245C54;
	--berry: #843D56;
	--sage: #E5EEE8;
	--blush: #F4E3E8;
	--gold: #E3B65A;
	--slate: #5E6260;
	--line: #E6DFD3;

	--font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(36, 36, 36, .06), 0 8px 24px rgba(36, 36, 36, .07);
	--shadow-lg: 0 2px 4px rgba(36, 36, 36, .06), 0 18px 44px rgba(36, 36, 36, .12);
	--header-h: 76px;
}

/* Colour tones, one per top-level category family */
.fp-tone-1 { --tone: #245C54; --tone-ink: #FFFFFF; --tone-soft: #E5EEE8; }
.fp-tone-2 { --tone: #843D56; --tone-ink: #FFFFFF; --tone-soft: #F4E3E8; }
.fp-tone-3 { --tone: #E3B65A; --tone-ink: #242424; --tone-soft: #FAF7F2; }
.fp-tone-4 { --tone: #242424; --tone-ink: #FFFFFF; --tone-soft: #F4E3E8; }
.fp-tone-5 { --tone: #5E6260; --tone-ink: #FFFFFF; --tone-soft: #E5EEE8; }
.fp-tone-6 { --tone: #245C54; --tone-ink: #FFFFFF; --tone-soft: #F4E3E8; }

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--berry); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 1000;
	background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 8px; text-decoration: none;
}

.fp-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.fp-container--narrow { max-width: 820px; }
.fp-eyebrow {
	font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--berry); margin: 0 0 14px;
}
.fp-eyebrow a { color: inherit; text-decoration: none; }
.fp-eyebrow a:hover { text-decoration: underline; }

/* Buttons */
.fp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: 600 16px/1 var(--font-body); padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.fp-btn--primary { background: var(--teal); color: var(--white); }
.fp-btn--primary:hover { background: var(--berry); color: var(--white); transform: translateY(-1px); }
.fp-btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.fp-btn--ghost:hover { background: var(--teal); color: var(--white); }

.fp-link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.fp-link-arrow:hover { text-decoration: underline; }

/* ==========================================================================
   3. Header + navigation
   ========================================================================== */
.fp-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(250, 247, 242, .96); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s;
}
.fp-header.is-stuck { box-shadow: 0 6px 24px rgba(36, 36, 36, .08); }
.admin-bar .fp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fp-header { top: 46px; } }

.fp-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.fp-brand { flex: 0 0 auto; }
.fp-brand__link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.fp-brand__text { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.fp-brand__text em { font-style: italic; color: var(--berry); font-weight: 500; }
.custom-logo { max-height: 48px; width: auto; }

.fp-nav { flex: 1 1 auto; }
.fp-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.fp-menu > li { position: relative; display: flex; align-items: center; }
.fp-menu > li > a {
	display: block; padding: 28px 11px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
	position: relative;
}
.fp-menu > li > a::after {
	content: ""; position: absolute; left: 11px; right: 11px; bottom: 20px; height: 2px; background: var(--berry);
	transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.fp-menu > li:hover > a::after,
.fp-menu > li:focus-within > a::after,
.fp-menu > li.current-menu-ancestor > a::after,
.fp-menu > li.current-menu-item > a::after { transform: scaleX(1); }

.fp-sub-toggle {
	display: none; background: none; border: 0; padding: 10px; margin-left: -6px; color: var(--ink); cursor: pointer; border-radius: 8px;
}
.fp-sub-toggle .fp-chevron { transition: transform .2s; display: block; }
.fp-menu li.is-open > .fp-sub-toggle .fp-chevron { transform: rotate(180deg); }

/* Desktop dropdown panel */
@media (min-width: 1081px) {
	.fp-menu > li.menu-item-has-children > a { padding-right: 4px; }
	.fp-sub-toggle { display: flex; padding: 8px 8px 8px 0; margin-left: 0; }

	.fp-menu .sub-menu {
		position: absolute; top: 100%; left: -8px; width: 420px; margin: 0; padding: 18px 18px 14px;
		list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
		box-shadow: var(--shadow-lg);
		opacity: 0; visibility: hidden; transform: translateY(8px);
		transition: opacity .18s, transform .18s, visibility .18s;
	}
	.fp-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
	.fp-menu > li:nth-last-child(-n+3) .sub-menu { left: auto; right: -8px; }
	.fp-menu > li:hover > .sub-menu,
	.fp-menu > li:focus-within > .sub-menu,
	.fp-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}
.fp-mega__head {
	font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--berry); margin: 0 0 10px 12px;
}
.fp-mega__list, .fp-menu .sub-menu:not(.fp-mega--div) > li { list-style: none; margin: 0; padding: 0; }
.fp-mega__list { display: grid; gap: 2px; }
.fp-mega__list a,
.fp-menu .sub-menu > li > a {
	display: block; padding: 11px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink);
	transition: background .15s;
}
.fp-mega__list a:hover, .fp-mega__list a:focus-visible,
.fp-menu .sub-menu > li > a:hover { background: var(--sage); color: var(--ink); }
.fp-mega__list a[aria-current="page"] { background: var(--blush); }
.fp-mega__title { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.fp-mega__desc { display: block; font-size: 13.5px; line-height: 1.4; color: var(--slate); margin-top: 2px; }
.fp-mega__all {
	display: block; margin: 8px 0 0; padding: 12px 12px 4px; border-top: 1px solid var(--line);
	font-size: 14px; font-weight: 700; text-decoration: none; color: var(--teal);
}
.fp-mega__all:hover { color: var(--berry); }

.fp-search-toggle {
	flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
	color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s;
}
.fp-search-toggle:hover { background: var(--teal); color: var(--white); }
.fp-search-panel { background: var(--white); border-top: 1px solid var(--line); padding: 18px 0; }
.fp-search-panel[hidden] { display: none; }

.fp-searchform { display: flex; gap: 10px; }
.fp-searchform__input {
	flex: 1; min-width: 0; font: 400 16px var(--font-body); padding: 14px 20px; border-radius: 999px;
	border: 1px solid #b9b2a6; background: var(--white); color: var(--ink);
}
.fp-searchform__input:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.fp-searchform .fp-btn { padding: 14px 24px; }

.fp-nav-toggle { display: none; }

/* Mobile navigation */
@media (max-width: 1080px) {
	.fp-header__inner { gap: 12px; }
	.fp-brand { margin-right: auto; }
	.fp-nav-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; order: 3;
		border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer;
	}
	.fp-search-toggle { order: 2; }
	.fp-burger { display: grid; gap: 5px; width: 20px; }
	.fp-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
	.fp-nav-toggle[aria-expanded="true"] .fp-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.fp-nav-toggle[aria-expanded="true"] .fp-burger span:nth-child(2) { opacity: 0; }
	.fp-nav-toggle[aria-expanded="true"] .fp-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.fp-nav {
		position: fixed; inset: var(--header-h) 0 0 0; background: var(--ivory); padding: 12px 24px 40px;
		overflow-y: auto; display: none; border-top: 1px solid var(--line);
	}
	.admin-bar .fp-nav { top: calc(var(--header-h) + 46px); }
	.fp-nav.is-open { display: block; }
	.fp-menu { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
	.fp-menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.fp-menu > li > a { flex: 1; padding: 18px 0; font-size: 18px; font-family: var(--font-display); }
	.fp-menu > li > a::after { display: none; }
	.fp-sub-toggle { display: flex; padding: 14px; margin: 0; }
	.fp-menu .sub-menu { display: none; flex-basis: 100%; padding: 0 0 14px; margin: 0; list-style: none; }
	.fp-menu li.is-open > .sub-menu { display: block; }
	.fp-mega__head { display: none; }
	.fp-mega__list a, .fp-menu .sub-menu > li > a { padding: 10px 12px; }
	.fp-mega__all { border-top: 0; padding-top: 8px; }
	body.fp-menu-open { overflow: hidden; }
}

/* ==========================================================================
   4. Homepage
   ========================================================================== */
.fp-main { min-height: 50vh; }

.fp-hero { position: relative; overflow: hidden; background: var(--ivory); padding: 72px 0 64px; }
.fp-hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; }
.fp-hero__title {
	font-size: clamp(42px, 6vw, 78px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 26px; font-weight: 600;
}
.fp-hero__title span { display: block; color: var(--teal); }
.fp-hero__title em { display: block; font-style: italic; font-weight: 500; color: var(--berry); }
.fp-hero__lede { font-size: 20px; line-height: 1.6; color: var(--slate); max-width: 34em; margin-bottom: 34px; }
.fp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fp-hero__art { position: relative; }
.fp-hero__svg { width: 100%; max-width: 560px; margin-inline: auto; display: block; filter: drop-shadow(0 22px 28px rgba(36, 36, 36, .08)); }

.fp-strip { background: var(--teal); color: var(--white); }
.fp-strip__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 22px; }
.fp-strip p { margin: 0; display: flex; flex-direction: column; font-size: 15px; line-height: 1.4; }
.fp-strip strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.fp-strip span { opacity: .92; }

.fp-section { padding: 96px 0; }
.fp-section--tint { background: var(--white); border-block: 1px solid var(--line); }
.fp-section--sage { background: var(--sage); }
.fp-section__head { max-width: 720px; margin: 0 0 48px; }
.fp-section__head h2 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -.02em; margin-bottom: 14px; }
.fp-section__head p:last-child { margin-bottom: 0; color: var(--slate); font-size: 18px; }
.fp-section__head--light h2 { color: var(--white); }
.fp-section__head--light .fp-eyebrow { color: var(--gold); }

/* Topics */
.fp-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fp-topic {
	display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.fp-topic:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fp-topic__top {
	background: var(--tone); color: var(--tone-ink); padding: 20px 26px 18px; position: relative; min-height: 92px;
	display: flex; align-items: flex-end;
}
.fp-topic__top::after {
	content: ""; position: absolute; right: 26px; bottom: 0; width: 64px; height: 44px;
	background: var(--tone-soft); border-radius: 64px 64px 0 0;
}
.fp-topic__num { font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 500; }
.fp-topic__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.fp-topic__title { font-size: 26px; margin-bottom: 10px; }
.fp-topic__title a { color: var(--ink); text-decoration: none; }
.fp-topic__title a:hover { color: var(--berry); }
.fp-topic__body > p { color: var(--slate); font-size: 16px; margin-bottom: 18px; }
.fp-topic .fp-link-arrow { margin-top: auto; }

.fp-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; }
.fp-pills a {
	display: inline-block; padding: 7px 13px; border-radius: 999px; background: var(--tone-soft, var(--sage)); color: var(--ink);
	font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: border-color .15s, background .15s;
}
.fp-pills a:hover { border-color: var(--ink); background: var(--white); color: var(--ink); }
.fp-pills--lg a { font-size: 16px; padding: 12px 20px; background: var(--sage); }

/* Latest */
.fp-latest { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; margin-bottom: 32px; }
.fp-latest__side { display: grid; gap: 16px; align-content: start; }
.fp-grid { display: grid; gap: 28px; }
.fp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fp-grid--2 { grid-template-columns: repeat(2, 1fr); }

.fp-card {
	display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; transition: transform .25s, box-shadow .25s; height: 100%; margin: 0;
}
.fp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fp-section--tint .fp-card { background: var(--ivory); }
.fp-card__media { display: block; aspect-ratio: 16 / 10; background: var(--tone-soft); position: relative; overflow: hidden; }
.fp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.fp-card:hover .fp-card__media img { transform: scale(1.03); }
.fp-card__ph { position: absolute; inset: 0; }
.fp-card__ph::after {
	content: ""; position: absolute; left: 50%; bottom: 0; width: 34%; height: 68%; transform: translateX(-50%);
	background: var(--tone); border-radius: 999px 999px 0 0;
}
.fp-card__ph::before {
	content: ""; position: absolute; left: 22%; bottom: 0; width: 18%; height: 36%;
	background: var(--white); border-radius: 999px 999px 0 0; opacity: .8;
}
.fp-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.fp-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.fp-card__cat a { color: var(--berry); text-decoration: none; }
.fp-card__cat a:hover { text-decoration: underline; }
.fp-card__title { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.fp-card__title a { color: var(--ink); text-decoration: none; }
.fp-card__title a:hover { color: var(--berry); }
.fp-card__excerpt { color: var(--slate); font-size: 15.5px; margin-bottom: 16px; }
.fp-card__meta { margin: auto 0 0; font-size: 13.5px; color: var(--slate); display: flex; gap: 8px; }
.fp-card--feature .fp-card__title { font-size: clamp(26px, 3vw, 36px); }
.fp-card--feature .fp-card__body { padding: 28px 30px 30px; }
.fp-card--compact { flex-direction: row; border-left: 5px solid var(--tone); }
.fp-card--compact .fp-card__body { padding: 18px 22px; }
.fp-card--compact .fp-card__title { font-size: 19px; margin-bottom: 8px; }

.fp-empty { background: var(--white); border: 1px dashed #b9b2a6; border-radius: var(--radius); padding: 40px; text-align: center; color: var(--slate); }
.fp-empty p { margin: 0; font-size: 18px; }

/* Approach */
.fp-approach { background: var(--teal); color: var(--white); padding: 96px 0; position: relative; overflow: hidden; }
.fp-approach::after {
	content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%;
	background: rgba(250, 247, 242, .07);
}
.fp-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; z-index: 1; }
.fp-pillar { border-top: 2px solid rgba(255, 255, 255, .5); padding-top: 26px; }
.fp-pillar__num { display: block; font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--gold); margin-bottom: 14px; }
.fp-pillar h3 { color: var(--white); font-size: 26px; }
.fp-pillar p { color: var(--white); margin: 0; font-size: 17px; opacity: .95; }

/* Paths */
.fp-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fp-path {
	display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--ink); border-radius: var(--radius);
	padding: 30px; text-decoration: none; color: var(--ink); transition: transform .25s, background .25s, color .25s;
}
.fp-path:hover { transform: translateY(-4px); background: var(--ink); color: var(--white); }
.fp-path__label { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.15; }
.fp-path__text { font-size: 16px; opacity: .9; }
.fp-path__go { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 15px; color: var(--teal); }
.fp-path:hover .fp-path__go { color: var(--gold); }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   5. Category pages
   ========================================================================== */
.fp-cat-hero { background: var(--tone-soft, var(--sage)); padding: 56px 0 52px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.fp-cat-hero::after {
	content: ""; position: absolute; right: max(24px, calc((100vw - 1200px) / 2 + 24px)); bottom: 0; width: 150px; height: 96px;
	background: var(--tone); border-radius: 150px 150px 0 0; opacity: .95;
}
.fp-cat-hero .fp-container { position: relative; z-index: 1; }
.fp-cat-hero__title { font-size: clamp(36px, 5vw, 62px); letter-spacing: -.025em; margin-bottom: 12px; max-width: 14em; }
.fp-cat-hero__lede { font-size: 20px; color: var(--ink); max-width: 36em; margin: 0; }
.fp-hero-search { max-width: 560px; margin-top: 24px; }

.fp-breadcrumbs { margin-bottom: 26px; font-size: 14px; }
.fp-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; }
.fp-breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--slate); }
.fp-breadcrumbs a { color: var(--ink); }
.fp-breadcrumbs [aria-current] { color: var(--slate); }

.fp-cat-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 64px 24px; }
.fp-cat-intro.has-panel { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.fp-prose { font-size: 18px; line-height: 1.8; }
.fp-cat-intro__text { max-width: 760px; }
.fp-cat-intro__text p { margin-bottom: 1.3em; }
.fp-cat-intro__text a { font-weight: 600; }

.fp-panel {
	background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--tone); border-radius: var(--radius);
	padding: 26px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 24px);
}
.admin-bar .fp-panel { top: calc(var(--header-h) + 56px); }
.fp-panel__title { font-size: 22px; margin-bottom: 14px; }
.fp-panel__list { list-style: none; margin: 0 0 12px; padding: 0; }
.fp-panel__list li + li { border-top: 1px solid var(--line); }
.fp-panel__list a { display: block; padding: 14px 4px; text-decoration: none; color: var(--ink); transition: background .15s, padding .15s; border-radius: 8px; }
.fp-panel__list a:hover { background: var(--tone-soft); padding-inline: 12px; }
.fp-panel__name { display: block; font-weight: 700; font-size: 16px; color: var(--teal); }
.fp-panel__desc { display: block; font-size: 14.5px; color: var(--slate); line-height: 1.45; margin-top: 2px; }
.fp-panel__count { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--berry); margin-top: 6px; }

.fp-cat-posts { padding-block: 56px 96px; }
.fp-cat-posts__title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 28px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Pagination */
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.page-numbers.current, .page-numbers:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ==========================================================================
   6. Articles, pages, sidebar
   ========================================================================== */
.fp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-block: 56px 96px; align-items: start; }
.fp-index .fp-layout { padding-top: 56px; }
.fp-article-wrap { min-width: 0; }
.fp-article-head { max-width: 760px; margin-bottom: 32px; }
.fp-article-title { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.025em; line-height: 1.08; margin-bottom: 18px; }
.fp-article-meta { font-size: 14.5px; color: var(--slate); display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.fp-article-hero { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; }
.fp-article-hero img { display: block; width: 100%; }

.entry-content { max-width: 760px; }
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 2.1em 0 .6em; scroll-margin-top: calc(var(--header-h) + 16px); }
.entry-content h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 1.7em 0 .5em; scroll-margin-top: calc(var(--header-h) + 16px); }
.entry-content h4 { font-size: 20px; margin: 1.5em 0 .4em; }
.entry-content a { color: var(--teal); text-decoration: underline; }
.entry-content a:hover { color: var(--berry); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: .5em; }
.entry-content strong { font-weight: 700; }
.entry-content blockquote { margin: 1.6em 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--berry); font-family: var(--font-display); font-size: 1.15em; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: 14px; color: var(--slate); margin-top: 8px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.entry-content caption { text-align: left; font-weight: 700; padding-bottom: 8px; caption-side: top; }
.entry-content th, .entry-content td { padding: 12px 14px; text-align: left; vertical-align: top; }
.fp-table-wrap { overflow-x: auto; margin: 1.8em 0; }
.fp-introduction { font-size: 20px; line-height: 1.65; }
.fp-infographic { margin: 2.2em 0; }
.fp-infographic-text { font-size: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; }
.fp-callout, .fp-tip {
	background: var(--sage); border-left: 5px solid var(--teal); color: var(--ink); padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 2em 0;
}
.fp-callout--style { background: var(--blush); border-left-color: var(--berry); }
.fp-callout > :last-child, .fp-tip > :last-child { margin-bottom: 0; }

.fp-article-foot { margin-top: 40px; max-width: 760px; }
.fp-tags a {
	display: inline-block; margin: 0 6px 8px 0; padding: 6px 14px; border-radius: 999px; background: var(--sage); color: var(--ink);
	text-decoration: none; font-size: 14px; font-weight: 600;
}
.fp-tags a:hover { background: var(--teal); color: var(--white); }

.post-navigation { max-width: 760px; margin: 48px 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; justify-content: stretch; }
.post-navigation a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 18px; line-height: 1.3; }
.post-navigation a:hover { border-color: var(--teal); }
.post-navigation .nav-next { text-align: right; }
.fp-nav-label { display: block; font: 700 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--berry); margin-bottom: 6px; }
.fp-related { margin-top: 64px; }
.fp-related h2 { font-size: 32px; }
.fp-single .fp-related .fp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.fp-sidebar { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.admin-bar .fp-sidebar { top: calc(var(--header-h) + 56px); }
.fp-widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fp-widget__title { font-size: 20px; margin-bottom: 14px; }
.fp-widget .fp-searchform { flex-direction: column; }
.fp-widget .fp-searchform .fp-btn { width: 100%; }
.fp-topiclist, .fp-latestlist, .fp-widget ul { list-style: none; margin: 0; padding: 0; }
.fp-topiclist li { border-top: 1px solid var(--line); }
.fp-topiclist li:first-child { border-top: 0; }
.fp-topiclist a { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.fp-topiclist a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); flex: 0 0 auto; }
.fp-topiclist a:hover { color: var(--berry); }
.fp-latestlist li { padding: 12px 0; border-top: 1px solid var(--line); }
.fp-latestlist li:first-child { border-top: 0; padding-top: 0; }
.fp-latestlist a { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.fp-latestlist a:hover { color: var(--berry); }
.fp-latestlist__date { display: block; font-size: 13px; color: var(--slate); margin-top: 4px; }
.fp-widget li { padding: 6px 0; }
.fp-widget a { color: var(--teal); }

/* Comments (kept simple) */
.fp-comments { max-width: 760px; margin-top: 64px; }
.fp-comments__title { font-size: 28px; }
.fp-comments__list { list-style: none; padding: 0; }
.fp-comments__list .comment-body { padding: 18px 0; border-top: 1px solid var(--line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 16px; border: 1px solid #b9b2a6; border-radius: var(--radius-sm); font: inherit; background: var(--white);
}
.comment-form .submit { background: var(--teal); color: var(--white); border: 0; padding: 14px 28px; border-radius: 999px; font: 600 16px var(--font-body); cursor: pointer; }
.comment-form .submit:hover { background: var(--berry); }

/* ==========================================================================
   7. Footer (flat colour, no patterned divider, no social icons)
   ========================================================================== */
.fp-footer { background: var(--teal); color: var(--white); margin-top: 0; }
.fp-footer__top { padding: 80px 0 64px; }
.fp-footer__brand { max-width: 520px; margin-bottom: 56px; }
.fp-footer__logo { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -.02em; color: var(--white); text-decoration: none; display: inline-block; margin-bottom: 14px; }
.fp-footer__logo em { font-style: italic; font-weight: 500; }
.fp-footer__brand p { font-size: 18px; line-height: 1.55; margin: 0; color: var(--white); }
.fp-footer__cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px 28px; }
.fp-footer__title { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.fp-footer__title a { color: var(--gold); text-decoration: none; }
.fp-footer__title a:hover { text-decoration: underline; color: var(--gold); }
.fp-footer__col ul { list-style: none; margin: 0; padding: 0; }
.fp-footer__col li { margin-bottom: 10px; }
.fp-footer__col li a { color: var(--white); text-decoration: none; font-size: 15px; line-height: 1.4; display: inline-block; }
.fp-footer__col li a:hover { text-decoration: underline; color: var(--white); }
.fp-footer a:focus-visible { outline-color: var(--white); }

.fp-footer__bar { background: var(--ink); color: var(--white); border: 0; }
.fp-footer__bar .fp-container { padding-block: 22px; }
.fp-footer__copy { margin: 0; font-size: 14.5px; text-align: center; color: var(--white); }

/* ==========================================================================
   8. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.fp-footer__cols { grid-template-columns: repeat(3, 1fr); }
	.fp-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.fp-sidebar { position: static; }
	.fp-cat-intro.has-panel { grid-template-columns: minmax(0, 1fr); }
	.fp-panel { position: static; }
}
@media (max-width: 960px) {
	.fp-hero { padding: 48px 0 40px; }
	.fp-hero__inner { grid-template-columns: 1fr; gap: 32px; }
	.fp-hero__art { order: -1; max-width: 380px; margin-inline: auto; }
	.fp-topics, .fp-paths, .fp-pillars, .fp-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.fp-latest { grid-template-columns: 1fr; }
	.fp-strip__inner { grid-template-columns: 1fr; gap: 12px; }
	.fp-section, .fp-approach { padding: 72px 0; }
}
@media (max-width: 640px) {
	body { font-size: 16.5px; }
	.fp-container { padding-inline: 20px; }
	.fp-topics, .fp-paths, .fp-pillars, .fp-grid--3, .fp-grid--2 { grid-template-columns: 1fr; }
	.fp-footer__cols { grid-template-columns: repeat(2, 1fr); }
	.fp-hero__lede { font-size: 18px; }
	.fp-cat-hero::after { width: 90px; height: 58px; }
	.fp-card--compact { flex-direction: column; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.fp-searchform { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
	.fp-header, .fp-footer, .fp-sidebar { display: none; }
}
