/* FastDLS Finance – main stylesheet. Loaded after GeneratePress. */

:root {
	--fd-navy: #102A43;
	--fd-green: #15966B;
	--fd-green-ink: #0B7A55; /* darker emerald for small text on white (WCAG AA) */
	--fd-green-dark: #0E7C57;
	--fd-bg: #FFFFFF;
	--fd-light: #F5F8FA;
	--fd-text: #243447;
	--fd-muted: #64748B;
	--fd-border: #E2E8F0;
	--fd-radius: 16px;
	--fd-shadow: 0 10px 30px -14px rgba(16, 42, 67, .22);
	--fd-wrap: 1200px;
	--fd-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--fd-header-h: 78px;
}

/* ---------- Base (scoped to override GeneratePress defaults) ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body.fdls-theme {
	margin: 0;
	background: var(--fd-bg);
	color: var(--fd-text);
	font-family: var(--fd-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
.fdls-theme *, .fdls-theme *::before, .fdls-theme *::after { box-sizing: border-box; }
.fdls-theme img { max-width: 100%; height: auto; }
.fdls-theme h1, .fdls-theme h2, .fdls-theme h3, .fdls-theme h4 {
	color: var(--fd-navy);
	font-family: var(--fd-font);
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -.015em;
	margin: 0;
}
.fdls-theme a { color: var(--fd-green-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fdls-theme a:hover { color: var(--fd-navy); }
.fdls-theme :focus-visible { outline: 3px solid var(--fd-green); outline-offset: 3px; border-radius: 4px; }
.fdls-theme p { margin: 0 0 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 !important;
}
.fdls-theme .fd-skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; margin: 0; padding: .8rem 1.2rem;
	background: var(--fd-navy); color: #fff; z-index: 1000; left: 1rem; top: 1rem; border-radius: 8px; text-decoration: none;
}

.fd-wrap { width: min(100% - 2.5rem, var(--fd-wrap)); margin-inline: auto; }
.fd-wrap--article { width: min(100% - 2.5rem, 900px); }
.fd-wrap--narrow { width: min(100% - 2.5rem, 780px); }

/* ---------- Buttons ---------- */
.fdls-theme .fd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	min-height: 52px; padding: 0 1.8rem; border-radius: 999px; border: 2px solid transparent;
	font: 700 1.05rem/1 var(--fd-font); text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.fdls-theme .fd-btn--primary { background: var(--fd-green); color: #fff; box-shadow: 0 10px 22px -10px rgba(21, 150, 107, .8); }
.fdls-theme .fd-btn--primary:hover, .fdls-theme .fd-btn--primary:focus-visible { background: var(--fd-green-dark); color: #fff; transform: translateY(-1px); }
.fdls-theme .fd-btn--ghost { background: #fff; color: var(--fd-navy); border-color: var(--fd-navy); }
.fdls-theme .fd-btn--ghost:hover { background: var(--fd-navy); color: #fff; }

/* ---------- Header ---------- */
.fd-header { position: relative; z-index: 100; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--fd-border); transition: box-shadow .25s; }
.fdls-sticky .fd-header { position: sticky; top: 0; backdrop-filter: saturate(160%) blur(10px); }
.admin-bar.fdls-sticky .fd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.fdls-sticky .fd-header { top: 46px; } }
.fd-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(16, 42, 67, .35); }
.fd-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--fd-header-h); }
.fd-logo, .fd-header .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.fd-logo img, .fd-header .custom-logo { height: auto; width: auto; max-height: 56px; max-width: 220px; }
.fd-header__actions { display: flex; align-items: center; gap: .5rem; }

.fd-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
	border-radius: 50%; border: 1px solid var(--fd-border); background: var(--fd-light); color: var(--fd-navy); cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.fd-icon-btn:hover, .fd-icon-btn[aria-expanded="true"] { background: var(--fd-navy); color: #fff; border-color: var(--fd-navy); }
.fd-nav-toggle { display: none; }
.fd-burger { display: grid; gap: 4px; width: 18px; }
.fd-burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.fd-nav-toggle[aria-expanded="true"] .fd-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fd-nav-toggle[aria-expanded="true"] .fd-burger span:nth-child(2) { opacity: 0; }
.fd-nav-toggle[aria-expanded="true"] .fd-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop navigation */
.fd-menu, .fd-menu ul { list-style: none; margin: 0; padding: 0; }
.fd-menu { display: flex; align-items: center; gap: .15rem; }
.fd-menu li { position: relative; margin: 0; }
.fdls-theme .fd-menu a {
	position: relative; display: block; padding: .6rem .85rem; color: var(--fd-navy);
	font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.fdls-theme .fd-menu > li > a::after {
	content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--fd-green);
	transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.fdls-theme .fd-menu > li > a:hover::after,
.fdls-theme .fd-menu > li.current-menu-item > a::after,
.fdls-theme .fd-menu > li.current-menu-ancestor > a::after,
.fdls-theme .fd-menu > li.current-menu-parent > a::after { transform: scaleX(1); }
.fdls-theme .fd-menu > li.current-menu-item > a,
.fdls-theme .fd-menu > li.current-menu-ancestor > a,
.fdls-theme .fd-menu > li.current-menu-parent > a { color: var(--fd-green-ink); }
.fd-menu .menu-item-has-children > a { padding-right: 1.9rem; }
.fd-menu .menu-item-has-children > a::before {
	content: ""; position: absolute; right: .8rem; top: 50%; width: 6px; height: 6px; margin-top: -5px;
	border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.fd-menu .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px; padding: .5rem; background: #fff;
	border: 1px solid var(--fd-border); border-radius: 12px; box-shadow: var(--fd-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.fd-menu li:hover > .sub-menu, .fd-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.fdls-theme .fd-menu .sub-menu a { padding: .55rem .8rem; border-radius: 8px; }
.fdls-theme .fd-menu .sub-menu a:hover { background: var(--fd-light); }
.fd-submenu-toggle { display: none; }

/* Search panel */
.fd-search-panel { border-top: 1px solid var(--fd-border); background: var(--fd-light); padding: 1.1rem 0; }
.fd-search-panel[hidden] { display: none; }
.fd-search-form { display: flex; gap: .6rem; max-width: 640px; }
.fd-search-form__input {
	flex: 1; min-width: 0; min-height: 52px; padding: 0 1.3rem; border: 1px solid var(--fd-border); border-radius: 999px;
	background: #fff; color: var(--fd-text); font: 500 1rem var(--fd-font);
}
.fd-search-form__input:focus { border-color: var(--fd-green); outline: 3px solid rgba(21, 150, 107, .25); }
.fdls-theme .fd-search-form__btn { min-height: 52px; padding: 0 1.5rem; }

@media (max-width: 1023px) {
	.fd-nav-toggle { display: inline-flex; }
	.fd-nav {
		position: absolute; left: 0; right: 0; top: 100%; display: none; max-height: calc(100vh - var(--fd-header-h));
		overflow-y: auto; background: #fff; border-bottom: 1px solid var(--fd-border); box-shadow: 0 24px 30px -20px rgba(16, 42, 67, .35); padding: .75rem 1.25rem 1.25rem;
	}
	.fd-nav.is-open { display: block; }
	.fd-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.fdls-theme .fd-menu a { padding: .95rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--fd-border); white-space: normal; }
	.fdls-theme .fd-menu > li > a::after { display: none; }
	.fd-menu .menu-item-has-children > a { padding-right: 3rem; }
	.fd-menu .menu-item-has-children > a::before { display: none; }
	.fd-submenu-toggle {
		display: block; position: absolute; right: 0; top: .35rem; width: 44px; height: 44px; border: 0; background: none; color: var(--fd-navy); cursor: pointer;
	}
	.fd-submenu-toggle::before {
		content: ""; display: block; width: 8px; height: 8px; margin: 0 auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s;
	}
	.fd-menu .is-open > .fd-submenu-toggle::before { transform: rotate(-135deg); }
	.fd-menu .sub-menu { position: static; display: none; min-width: 0; padding: 0 0 0 1rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.fd-menu .is-open > .sub-menu { display: block; }
	.fd-search-form { max-width: none; }
}
@media (max-width: 480px) {
	.fd-search-form { flex-direction: column; }
	.fd-logo img, .fd-header .custom-logo { max-width: 170px; }
}

/* ---------- Hero ---------- */
.fd-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(60% 80% at 92% 18%, rgba(21, 150, 107, .16), rgba(21, 150, 107, 0) 70%),
		linear-gradient(135deg, #FFFFFF 0%, #F5F8FA 58%, #E9F7F1 100%);
	padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2.75rem, 5vw, 4.5rem);
}
.fd-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.fdls-theme .fd-hero__title { font-size: clamp(2.35rem, 5.2vw, 3.9rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin-bottom: 1.4rem; }
.fd-hero__line { display: block; text-wrap: balance; }
.fdls-theme .fd-accent { color: var(--fd-green); }
.fd-hero__text { max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.7; color: var(--fd-muted); margin-bottom: 2rem; }
.fd-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.fd-hero__visual { justify-self: end; width: 100%; max-width: 620px; }
.fd-hero__visual img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 520; }

@media (max-width: 899px) {
	.fd-hero__grid { grid-template-columns: 1fr; }
	.fd-hero__visual { justify-self: center; max-width: 480px; order: 2; }
	.fd-hero__actions .fd-btn { flex: 1 1 14rem; }
}

/* ---------- Section headings ---------- */
.fd-section-head { display: flex; align-items: center; gap: 1rem; }
.fd-section-head__bar { width: 44px; height: 3px; border-radius: 3px; background: var(--fd-green); flex: none; }
.fdls-theme .fd-section-head__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.fd-section-head__text { margin: .6rem 0 0; color: var(--fd-muted); font-size: 1.05rem; }

/* ---------- Featured / grids / cards ---------- */
.fd-featured { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5.5rem); }
.fd-grid { display: grid; gap: 1.5rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .fd-grid--4, .fd-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.fd-card {
	position: relative; display: flex; flex-direction: column; height: 100%; margin: 0; background: #fff;
	border: 1px solid var(--fd-border); border-radius: var(--fd-radius); overflow: hidden; box-shadow: var(--fd-shadow);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.fd-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(16, 42, 67, .35); border-color: #CFE9DF; }
.fd-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fd-light); }
.fdls-theme .fd-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fd-card:hover .fd-card__img { transform: scale(1.04); }
.fd-card__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--fd-green); background: linear-gradient(135deg, #E9F7F1, #F5F8FA); }
.fd-pill {
	position: absolute; left: .9rem; bottom: .8rem; padding: .28rem .75rem; border-radius: 8px;
	background: var(--fd-green-ink); color: #fff; font-size: .8rem; font-weight: 650; line-height: 1.4;
}
.fdls-theme a.fd-pill--inline { position: static; display: inline-block; text-decoration: none; color: #fff; margin-bottom: 1rem; }
.fdls-theme a.fd-pill--inline:hover { background: var(--fd-navy); color: #fff; }
.fd-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem 1.35rem 1.45rem; }
.fdls-theme .fd-card__title { font-size: 1.2rem; line-height: 1.3; margin-bottom: .6rem; }
.fdls-theme .fd-card__title a { color: var(--fd-navy); text-decoration: none; }
.fdls-theme .fd-card__title a:hover { color: var(--fd-green-ink); }
.fd-card__excerpt {
	margin: 0 0 1.1rem; color: var(--fd-muted); font-size: .96rem; line-height: 1.6;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fdls-theme .fd-readmore { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--fd-green-ink); }
.fdls-theme .fd-readmore::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.fdls-theme .fd-card__title a { position: relative; z-index: 2; }
.fd-readmore svg { transition: transform .2s; }
.fd-card:hover .fd-readmore svg { transform: translateX(4px); }
.fd-empty { margin-top: 2rem; padding: 2rem; border: 1px dashed var(--fd-border); border-radius: var(--fd-radius); color: var(--fd-muted); text-align: center; }

/* ---------- Page hero (archives, search, pages) ---------- */
.fd-page-hero {
	padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.75rem, 3vw, 2.75rem); border-bottom: 1px solid var(--fd-border);
	background: linear-gradient(135deg, #FFFFFF 0%, #F5F8FA 60%, #E9F7F1 100%);
}
.fdls-theme .fd-page-hero__title { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
.fd-page-hero__desc { max-width: 42rem; margin: .9rem 0 0; color: var(--fd-muted); font-size: 1.1rem; line-height: 1.7; }
.fd-page-hero__desc p:last-child { margin-bottom: 0; }
.fd-page-hero .fd-search-form { margin-top: 1.5rem; }
.fd-listing { padding-top: .5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }

.fd-breadcrumbs { margin-bottom: 1rem; font-size: .9rem; color: var(--fd-muted); }
.fd-breadcrumbs__list { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; }
.fd-breadcrumbs__list li + li::before { content: "/"; margin-right: .5rem; color: #94A3B8; }
.fdls-theme .fd-breadcrumbs a { color: var(--fd-muted); text-decoration: none; }
.fdls-theme .fd-breadcrumbs a:hover { color: var(--fd-green-ink); text-decoration: underline; }

/* Pagination */
.fdls-theme .navigation.pagination { margin-top: 3rem; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.fdls-theme .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 44px; min-height: 44px; padding: 0 1rem;
	border: 1px solid var(--fd-border); border-radius: 999px; background: #fff; color: var(--fd-navy); font-weight: 650; text-decoration: none;
}
.fdls-theme a.page-numbers:hover { border-color: var(--fd-green); color: var(--fd-green-ink); }
.fdls-theme .page-numbers.current { background: var(--fd-navy); border-color: var(--fd-navy); color: #fff; }
.fdls-theme .page-numbers.dots { border-color: transparent; background: none; }

/* Empty / none */
.fd-none { max-width: 640px; margin: 3rem auto; text-align: center; }
.fd-none .fd-search-form { margin: 1.5rem auto; }
.fd-chip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.fdls-theme .fd-chip { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--fd-border); border-radius: 999px; background: #fff; color: var(--fd-navy); font-weight: 600; font-size: .92rem; text-decoration: none; }
.fdls-theme .fd-chip:hover { border-color: var(--fd-green); color: var(--fd-green-ink); }

/* ---------- Single article ---------- */
.fd-article__header { padding-top: clamp(1.75rem, 4vw, 3rem); }
.fdls-theme .fd-article__title { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; margin-bottom: 1.25rem; }
.fd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; color: var(--fd-muted); font-size: .93rem; }
.fd-meta__author { display: inline-flex; align-items: center; gap: .6rem; color: var(--fd-text); font-weight: 600; }
.fdls-theme .fd-meta__avatar { border-radius: 50%; }
.fdls-theme .fd-meta a { color: var(--fd-navy); font-weight: 700; text-decoration: none; }
.fdls-theme .fd-meta a:hover { color: var(--fd-green-ink); text-decoration: underline; }
.fd-figure { margin-top: 1.75rem; margin-bottom: 0; }
.fd-figure__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; }
.fd-figure figcaption { margin-top: .6rem; color: var(--fd-muted); font-size: .88rem; text-align: center; }

.fd-article__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 2.25rem; padding-bottom: 3rem; }
.fd-article__layout:not(.has-sidebar) { width: min(100% - 2.5rem, 780px); }
.fd-article__layout.has-sidebar { width: min(100% - 2.5rem, 1120px); }
@media (min-width: 1024px) { .fd-article__layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 3.5rem; } }
.fd-article__main { min-width: 0; max-width: 780px; width: 100%; margin-inline: auto; }
.fd-sidebar__inner { position: sticky; top: calc(var(--fd-header-h) + 1.5rem); display: grid; gap: 1.75rem; }
.fdls-theme .fd-widget__title { font-size: 1.05rem; margin-bottom: .75rem; }
.fd-widget ul { margin: 0; padding-left: 1.1rem; }

/* Prose */
.fdls-theme .fd-prose.entry-content { margin-top: 0; font-size: 1.125rem; line-height: 1.85; color: var(--fd-text); }
.fd-prose > * { max-width: 100%; }
.fd-prose p, .fd-prose ul, .fd-prose ol, .fd-prose blockquote, .fd-prose figure, .fd-prose table, .fd-prose .wp-block-image { margin: 0 0 1.5em; }
.fdls-theme .fd-prose h2 { font-size: clamp(1.55rem, 3vw, 1.95rem); margin: 2.2em 0 .7em; scroll-margin-top: calc(var(--fd-header-h) + 1.5rem); }
.fdls-theme .fd-prose h3 { font-size: clamp(1.25rem, 2.2vw, 1.45rem); margin: 1.9em 0 .6em; scroll-margin-top: calc(var(--fd-header-h) + 1.5rem); }
.fdls-theme .fd-prose h4 { font-size: 1.12rem; margin: 1.6em 0 .5em; }
.fd-prose ul, .fd-prose ol { padding-left: 1.4em; }
.fd-prose li { margin-bottom: .45em; }
.fd-prose li::marker { color: var(--fd-green); }
.fd-prose a { font-weight: 600; text-decoration: underline; }
.fd-prose img { border-radius: 12px; }
.fd-prose figcaption { margin-top: .5rem; color: var(--fd-muted); font-size: .9rem; text-align: center; }
.fd-prose blockquote { padding: 1.2rem 1.5rem; border-left: 4px solid var(--fd-green); background: var(--fd-light); border-radius: 0 12px 12px 0; color: var(--fd-navy); font-size: 1.1rem; }
.fd-prose blockquote p:last-child { margin-bottom: 0; }
.fd-prose table { width: 100%; border-collapse: collapse; font-size: .98rem; display: block; overflow-x: auto; }
.fd-prose th, .fd-prose td { padding: .75rem 1rem; border: 1px solid var(--fd-border); text-align: left; }
.fd-prose th { background: var(--fd-light); color: var(--fd-navy); }
.fd-prose code { padding: .12em .4em; border-radius: 6px; background: var(--fd-light); font-size: .92em; }
.fd-prose pre { overflow-x: auto; padding: 1.1rem; border-radius: 12px; background: var(--fd-navy); color: #E2E8F0; }
.fd-prose pre code { background: none; padding: 0; color: inherit; }
.fd-prose hr { border: 0; border-top: 1px solid var(--fd-border); margin: 2.5rem 0; }
.fd-prose .alignwide, .fd-prose .alignfull { max-width: 100%; }
.fd-prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.fd-prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.fd-prose .aligncenter { margin-inline: auto; display: block; }
.fd-prose .wp-block-button__link { background: var(--fd-green); color: #fff; border-radius: 999px; text-decoration: none; }
.fd-prose iframe, .fd-prose video { max-width: 100%; }
.fd-page-links { margin-top: 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }

/* Table of contents */
.fd-toc { margin: 0 0 2.2em; padding: 1.15rem 1.5rem; border: 1px solid var(--fd-border); border-radius: 14px; background: var(--fd-light); font-size: 1rem; line-height: 1.5; }
.fd-toc__title { cursor: pointer; color: var(--fd-navy); font-weight: 750; font-size: 1.05rem; }
.fd-toc__list { list-style: none; margin: .9rem 0 0 !important; padding: 0 !important; display: grid; gap: .1rem; }
.fd-toc__item { margin: 0 !important; }
.fd-toc__item--h3 { padding-left: 1.25rem; }
.fdls-theme .fd-toc a { display: block; padding: .35rem 0; color: var(--fd-text); font-weight: 500; text-decoration: none; }
.fdls-theme .fd-toc a:hover { color: var(--fd-green-ink); text-decoration: underline; }
.fd-toc__item--h3 a { font-size: .95rem; color: var(--fd-muted); }

/* Tags / author */
.fd-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; }
.fdls-theme .fd-tags a { padding: .3rem .8rem; border: 1px solid var(--fd-border); border-radius: 999px; font-size: .88rem; color: var(--fd-muted); text-decoration: none; }
.fdls-theme .fd-tags a:hover { border-color: var(--fd-green); color: var(--fd-green-ink); }
.fd-author { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--fd-border); border-radius: var(--fd-radius); background: var(--fd-light); }
.fdls-theme .fd-author__avatar { border-radius: 50%; flex: none; }
.fdls-theme .fd-author__title { font-size: .85rem; font-weight: 650; color: var(--fd-muted); letter-spacing: 0; margin-bottom: .2rem; }
.fd-author__name { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 750; }
.fdls-theme .fd-author__name a { color: var(--fd-navy); text-decoration: none; }
.fd-author__bio { margin: 0; color: var(--fd-text); font-size: .98rem; }
@media (max-width: 520px) { .fd-author { flex-direction: column; } }

/* Related */
.fd-related { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 5vw, 4.5rem); background: var(--fd-light); border-top: 1px solid var(--fd-border); }

/* Ads */
.fd-ad { clear: both; margin: 2rem auto; text-align: center; overflow: hidden; max-width: 100%; }
.fd-ad__label { display: block; margin-bottom: .35rem; color: var(--fd-muted); font-size: .72rem; }
.fd-ad__inner { max-width: 100%; }
.fd-ad--sidebar { margin: 0; }

/* Comments */
.fd-comments-wrap { padding-bottom: 4rem; }
.fd-comments { margin-top: 1rem; padding-top: 2rem; border-top: 1px solid var(--fd-border); }
.fdls-theme .fd-comments__title, .fdls-theme .comment-reply-title { font-size: 1.4rem; margin-bottom: 1.25rem; }
.fd-comments__list, .fd-comments__list .children { list-style: none; margin: 0 0 2rem; padding: 0; }
.fd-comments__list .children { margin: 1rem 0 0 1.5rem; padding-left: 1.25rem; border-left: 2px solid var(--fd-border); }
.fd-comments__list .comment-body { margin-bottom: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--fd-border); border-radius: 14px; }
.fd-comments__list .comment-author { display: flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--fd-navy); }
.fd-comments__list .comment-author img { border-radius: 50%; }
.fd-comments__list .comment-meta { font-size: .85rem; color: var(--fd-muted); margin: .25rem 0 .6rem; }
.comment-form label { display: block; font-weight: 650; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .8rem 1rem; border: 1px solid var(--fd-border); border-radius: 12px; font: inherit; background: #fff; color: var(--fd-text);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--fd-green); outline: 3px solid rgba(21, 150, 107, .25); }
.comment-form p { margin-bottom: 1rem; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* Standard pages */
.fd-page .fd-prose { padding: 2.25rem 0 4rem; }
.fd-page .fd-figure { margin-top: 2rem; }

/* 404 */
.fd-404__inner { padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }
.fd-404__code { margin: 0; font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: transparent; background: linear-gradient(135deg, var(--fd-navy), var(--fd-green)); -webkit-background-clip: text; background-clip: text; }
.fdls-theme .fd-404__title { margin: .5rem 0 1rem; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.fd-404__text { max-width: 34rem; margin: 0 auto 1.75rem; color: var(--fd-muted); font-size: 1.1rem; }
.fd-404__search { margin: 2rem auto 0; max-width: 640px; }
.fd-404__search .fd-search-form { margin-inline: auto; }

/* ---------- Footer ---------- */
.fd-footer { background: var(--fd-navy); color: #CBD5E1; }
.fd-footer__grid { display: grid; gap: 2.5rem 2rem; padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fd-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fd-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .fd-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .fd-footer__brand { grid-column: auto; } }
.fd-footer__brand p { margin: 1.1rem 0 0; max-width: 24rem; color: #CBD5E1; font-size: .98rem; }
.fd-footer .fd-logo img { max-height: 52px; }
.fdls-theme .fd-footer__title { margin-bottom: 1rem; color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.fd-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.fdls-theme .fd-footer a { color: #CBD5E1; text-decoration: none; font-size: .96rem; }
.fdls-theme .fd-footer a:hover { color: #fff; text-decoration: underline; }
.fdls-theme .fd-footer :focus-visible { outline-color: #34D399; }
.fd-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.fd-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.25rem 0; font-size: .9rem; color: #A8B5C6; }
.fd-footer__bottom p { margin: 0; }
