/*
Theme Name: FinTech Deepak
Theme URI: https://fintechdeepak.com/
Author: FinTech Deepak
Description: A fast, editorial theme for FinTechDeepak.com. White background, navy type and teal accents; landing-page homepage with a hero, featured story, topics, latest articles, Finance and Tech sections and an about strip; comfortable reading-width articles with related posts. Built to work alongside Rank Math, Easy Table of Contents, BuddyPress, Elementor and Contact Form 7, with no jQuery dependency.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fintechdeepak
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--navy-900: #0b1b33;
	--navy-800: #13284a;
	--navy-600: #344a6e;
	--navy-500: #52637f;
	--navy-100: #e8edf5;
	--teal-700: #0f766e;
	--teal-600: #0d9488;
	--teal-400: #2dd4bf;
	--teal-50: #e8f7f4;
	--line: #e3e8ef;
	--surface: #f6f8fb;
	--white: #ffffff;
	--warn-50: #fff8e6;
	--warn-line: #f2d78b;

	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 20px;
	--shadow: 0 1px 2px rgba(11, 27, 51, .06), 0 6px 20px rgba(11, 27, 51, .06);
	--shadow-hover: 0 2px 4px rgba(11, 27, 51, .08), 0 14px 32px rgba(11, 27, 51, .10);

	--container: 1200px;
	--article: 720px;
	--wide: 960px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 68px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	background: var(--white);
	color: var(--navy-900);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }

:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--teal-50); color: var(--navy-900); }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--article { max-width: calc(var(--article) + var(--gutter) * 2); }
.container--wide { max-width: calc(var(--wide) + var(--gutter) * 2); }

.icon { flex: none; }

/* ==========================================================================
   3. Buttons, pills, chips
   ========================================================================== */
.btn,
.wp-block-button__link,
.wpcf7-submit,
input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px;
	border: 0; border-radius: 999px;
	background: var(--navy-900); color: var(--white);
	font: 600 .95rem/1.2 var(--font-body);
	text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}
.btn:hover,
.wp-block-button__link:hover,
.wpcf7-submit:hover,
input[type="submit"]:hover { background: var(--teal-700); color: var(--white); }
.btn .icon { width: 18px; height: 18px; }

.pill {
	display: inline-block; margin-bottom: 10px; padding: 3px 10px;
	border-radius: 999px; background: var(--teal-50); color: var(--teal-700);
	font: 700 .72rem/1.6 var(--font-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.pill:hover { background: var(--teal-700); color: var(--white); }
.pill--finance { background: var(--navy-100); color: var(--navy-800); }
.pill--finance:hover { background: var(--navy-900); color: var(--white); }

.eyebrow { margin: 0 0 8px; color: var(--teal-700); font: 700 .78rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
	display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
	color: var(--navy-600); background: var(--white); font-size: .875rem; font-weight: 500; text-decoration: none;
}
.chip:hover { border-color: var(--teal-600); color: var(--teal-700); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
	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 { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-branding { flex: none; }
.site-branding .custom-logo { max-height: 44px; width: auto; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-900); text-decoration: none; }
.wordmark__mark { color: var(--navy-900); display: inline-flex; }
.wordmark__text { font: 800 1.2rem/1 var(--font-head); letter-spacing: -0.02em; }
.wordmark__text span { color: var(--teal-600); margin-left: 3px; }
.wordmark:hover { color: var(--navy-900); }

.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav .menu > li { position: relative; }
.primary-nav a {
	display: block; padding: 10px 14px; border-radius: 999px;
	color: var(--navy-900); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.primary-nav a:hover { background: var(--surface); color: var(--teal-700); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current-category-ancestor > a,
.primary-nav .current-post-ancestor > a { color: var(--teal-700); background: var(--teal-50); }

.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 8px; list-style: none;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.submenu-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { border-radius: var(--radius-sm); }
.submenu-toggle { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 6px; }
.primary-nav + .site-header__actions { margin-left: 4px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy-900); cursor: pointer;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: var(--teal-600); color: var(--teal-700); }
.menu-toggle { display: none; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline-flex; }

.header-search { border-top: 1px solid var(--line); background: var(--white); padding: 16px 0; }
.header-search .search-form { max-width: 720px; margin-inline: auto; }

@media (max-width: 899px) {
	.menu-toggle { display: inline-grid; }
	.site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.site-header__actions, .primary-nav + .site-header__actions { margin-left: auto; }
	.primary-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; margin: 0;
		padding: 16px var(--gutter) 32px; overflow-y: auto;
		background: var(--white); border-top: 1px solid var(--line);
		display: none;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
	.menu-open .primary-nav { display: block; }
	.menu-open { overflow: hidden; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.primary-nav .menu > li { border-bottom: 1px solid var(--line); }
	.primary-nav a { padding: 16px 4px; border-radius: 0; font-size: 1.15rem; font-family: var(--font-head); }
	.primary-nav a:hover { background: none; }
	.primary-nav .current-menu-item > a { background: none; }
	.primary-nav .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 8px 12px; }
	.primary-nav li.submenu-open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { padding: 10px 4px; font-size: 1rem; }
	.submenu-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--navy-900); cursor: pointer; }
	.submenu-open > .submenu-toggle svg { transform: rotate(180deg); }
}
@media (max-width: 380px) { .wordmark__text { font-size: 1.05rem; } .wordmark__mark svg { width: 30px; height: 30px; } }

/* ==========================================================================
   5. Search form
   ========================================================================== */
.search-form { position: relative; display: flex; gap: 8px; align-items: center; }
.search-form > .icon { position: absolute; left: 16px; color: var(--navy-500); pointer-events: none; }
.search-form__input {
	flex: 1; min-width: 0; height: 48px; padding: 0 16px 0 46px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--white);
	color: var(--navy-900); font: 400 1rem var(--font-body);
}
.search-form__input:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px var(--teal-50); }
.search-form__submit { height: 48px; }

/* ==========================================================================
   6. Homepage
   ========================================================================== */
/* Hero */
.hero {
	position: relative; overflow: hidden; color: #c9d3e3;
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(45, 212, 191, .22), transparent 60%),
		radial-gradient(40rem 24rem at -10% 110%, rgba(13, 148, 136, .18), transparent 60%),
		var(--navy-900);
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.hero__eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border: 1px solid rgba(45, 212, 191, .35); border-radius: 999px; background: rgba(45, 212, 191, .08); color: var(--teal-400); font: 700 .78rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.hero__title { margin: 0 0 18px; color: var(--white); font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.035em; }
.hero__lead { max-width: 52ch; margin: 0 0 28px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.btn--teal { background: var(--teal-600); }
.btn--teal:hover { background: var(--teal-400); color: var(--navy-900); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__stats li { display: grid; gap: 2px; }
.hero__stats strong { color: var(--white); font: 800 1.6rem/1.1 var(--font-head); letter-spacing: -0.02em; }
.hero__stats span { color: #93a3bd; font-size: .85rem; }

.hero__card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--white); color: var(--navy-900); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); transform: rotate(.6deg); transition: transform .3s ease; }
.hero__card:hover { transform: rotate(0) translateY(-3px); }
.hero__card-label { position: absolute; z-index: 1; top: 14px; left: 14px; margin: 0; padding: 5px 10px; border-radius: 999px; background: var(--navy-900); color: var(--white); font: 700 .72rem/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.hero__card-media { display: block; aspect-ratio: 1.9 / 1; background: var(--surface); }
.hero__card-media img { width: 100%; height: 100%; object-fit: cover; }
.hero__card-body { padding: 20px 22px 22px; }
.hero__card-title { margin: 0 0 10px; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.25; }
.hero__card-title a { color: var(--navy-900); text-decoration: none; }
.hero__card-title a:hover { color: var(--teal-700); }
@media (max-width: 960px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__card { transform: none; max-width: 620px; }
}
@media (prefers-reduced-motion: reduce) { .hero__card, .hero__card:hover { transform: none; } }

/* Topic tiles */
.section__head--plain { border-bottom: 0; padding-bottom: 0; }
.topics__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.topic-tile {
	display: flex; flex-direction: column; gap: 6px; padding: 22px;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
	color: var(--navy-900); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.topic-tile:hover { border-color: var(--teal-600); box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--navy-900); }
.topic-tile__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); }
.topic-tile--finance .topic-tile__icon { background: var(--navy-100); color: var(--navy-800); }
.topic-tile__icon .icon { width: 24px; height: 24px; }
.topic-tile__name { font: 700 1.2rem/1.25 var(--font-head); }
.topic-tile__desc { color: var(--navy-600); font-size: .92rem; line-height: 1.5; }
.topic-tile__count { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; color: var(--teal-700); font-weight: 600; font-size: .9rem; }
.topic-tile__count .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.topic-tile:hover .topic-tile__count .icon { transform: translateX(3px); }

/* Trust */
.trust__box { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--surface); }
.trust__head { max-width: 640px; margin-bottom: 28px; }
.trust__title { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.trust__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.trust__list h3 { margin: 12px 0 6px; font-size: 1.08rem; }
.trust__list p { margin: 0; color: var(--navy-600); font-size: .95rem; }
.trust__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-600); color: var(--white); }
.trust__icon .icon { width: 20px; height: 20px; }
@media (max-width: 760px) { .trust__list { grid-template-columns: 1fr; } }

/* Meet Deepak */
.about-strip__box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.about-strip__photo img { width: clamp(110px, 14vw, 160px); height: clamp(110px, 14vw, 160px); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--teal-50); }
.about-strip__title { margin: 0 0 10px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.about-strip__copy p:not(.eyebrow) { max-width: 66ch; margin: 0 0 20px; color: var(--navy-600); font-size: 1.05rem; }
@media (max-width: 600px) { .about-strip__box { grid-template-columns: 1fr; } }

/* Search + advertise */
.cta-pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.partner-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--teal-50); }
.partner-card__icon { color: var(--teal-700); }
.partner-card__icon .icon { width: 28px; height: 28px; }
.partner-card__title { margin: 4px 0 0; font-size: 1.3rem; }
.partner-card p { margin: 0 0 6px; color: var(--navy-600); font-size: .95rem; }
.partner-card .section__more { margin-left: 0; margin-top: auto; }
.cta-pair .cta-band { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.search-form { min-width: 0; }
@media (max-width: 900px) { .cta-pair { grid-template-columns: 1fr; } }

.section { padding-block: clamp(32px, 5vw, 56px); }
.section + .section { padding-block-start: 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--navy-900); }
.section__title { position: relative; margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
.section__title::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 3px; background: var(--teal-600); vertical-align: 2px; }
.section__desc { flex-basis: 100%; order: 3; margin: 0; color: var(--navy-500); }
.section__more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.section__more .icon { width: 18px; height: 18px; transition: transform .15s ease; }
.section__more:hover .icon { transform: translateX(3px); }

.section--topic .section__head { border-bottom-color: var(--teal-600); }
.section--finance .section__head { border-bottom-color: var(--navy-900); }

.topic { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
.topic__list { display: grid; gap: 4px; align-content: start; }
@media (max-width: 860px) { .topic { grid-template-columns: 1fr; } }

.cta-band {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center;
	padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
	background: var(--navy-900); color: var(--navy-100);
}
.cta-band__title { color: var(--white); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 6px; }
.cta-band p { margin: 0; }
.cta-band .search-form__input { border-color: transparent; }
.cta-band .btn { background: var(--teal-600); }
.cta-band .btn:hover { background: var(--teal-400); color: var(--navy-900); }
@media (max-width: 760px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

.widget-band { margin: 8px auto 24px; text-align: center; }

/* ==========================================================================
   7. Cards & grids
   ========================================================================== */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media {
	display: block; overflow: hidden; margin-bottom: 14px;
	border-radius: var(--radius); background: var(--surface); aspect-ratio: 1.9 / 1;
	box-shadow: 0 0 0 1px var(--line);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__media--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-900), var(--teal-700)); text-decoration: none; }
.card__media--empty span { color: rgba(255, 255, 255, .9); font: 800 2.5rem/1 var(--font-head); }
.card:hover .card__media img { transform: scale(1.03); }
.card__title { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.card__title a { color: var(--navy-900); text-decoration: none; background-image: linear-gradient(var(--teal-400), var(--teal-400)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s ease; }
.card__title a:hover { background-size: 100% 2px; }
.card__excerpt { margin: 0 0 10px; color: var(--navy-600); font-size: .95rem; line-height: 1.55; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; }

.topic__lead .card__title { font-size: 1.45rem; }

.card--row { flex-direction: row; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.card--row:last-child { border-bottom: 0; }
.card--row .card__media { flex: none; width: 112px; aspect-ratio: 1; margin: 0; border-radius: var(--radius-sm); }
.card--row .card__title { font-size: 1.02rem; margin-bottom: 4px; }
.card--row .meta { font-size: .8rem; }

.card--compact .card__title { font-size: 1.05rem; }

/* ==========================================================================
   8. Meta
   ========================================================================== */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--navy-500); font-size: .85rem; }
.meta a { color: var(--navy-900); font-weight: 600; text-decoration: none; }
.meta a:hover { color: var(--teal-700); }
.meta__author { display: inline-flex; align-items: center; gap: 8px; }
.meta__avatar { border-radius: 50%; }
.meta__read { display: inline-flex; align-items: center; gap: 5px; }
.meta__read .icon { width: 15px; height: 15px; }
.meta > * + *::before { content: none; }

/* ==========================================================================
   9. Archive header
   ========================================================================== */
.archive-head { padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); background: linear-gradient(180deg, var(--surface), var(--white)); border-bottom: 1px solid var(--line); }
.archive-head__title { margin: 0 0 10px; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.03em; }
.archive-head__desc { max-width: 68ch; color: var(--navy-600); font-size: 1.05rem; }
.archive-head__desc p { margin: 0 0 8px; }
.archive-head .chip-list { margin-top: 16px; }
.archive-head .search-form { max-width: 620px; margin-top: 16px; }

.breadcrumbs { margin-bottom: 14px; color: var(--navy-500); font-size: .85rem; }
.breadcrumbs a { color: var(--navy-600); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-700); text-decoration: underline; }
.breadcrumbs .separator { margin: 0 6px; color: #9aa7bb; }

.pagination, .navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 999px; color: var(--navy-900); font-weight: 600; text-decoration: none;
}
.page-numbers:hover { border-color: var(--teal-600); color: var(--teal-700); }
.page-numbers.current { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.page-numbers.dots { border: 0; }

.empty-state { max-width: 620px; margin: 0 auto; padding: 40px 0; text-align: center; }
.empty-state .search-form { margin-top: 20px; }

/* ==========================================================================
   10. Article
   ========================================================================== */
.article__head { padding: clamp(28px, 5vw, 48px) 0 24px; }
.article__head--page { padding-bottom: 8px; }
.article__title { margin: 0 0 14px; font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.12; letter-spacing: -0.03em; }
.article__dek { margin: 0 0 18px; color: var(--navy-600); font-size: 1.2rem; line-height: 1.5; }
.article__head .meta { padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }

.article__hero { margin: 0 auto 32px; }
.article__hero img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); }
.article__hero figcaption { margin-top: 8px; color: var(--navy-500); font-size: .85rem; text-align: center; }
.page-hero { margin: 0 0 28px; }
.page-hero img { border-radius: var(--radius); }

.disclosure {
	margin: 0 0 28px; padding: 12px 16px;
	border: 1px solid var(--warn-line); border-radius: var(--radius-sm); background: var(--warn-50);
	color: var(--navy-800); font-size: .875rem; line-height: 1.55;
}

.article__foot { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { margin-right: 4px; color: var(--navy-500); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--surface); }
.author-box img { border-radius: 50%; flex: none; }
.author-box .eyebrow { margin-bottom: 2px; }
.author-box__name { margin: 0 0 6px; font: 700 1.15rem var(--font-head); }
.author-box__name a { color: var(--navy-900); text-decoration: none; }
.author-box__bio { margin: 0; color: var(--navy-600); font-size: .95rem; }

.related { margin-top: 24px; background: var(--surface); padding-top: clamp(32px, 5vw, 56px) !important; }

/* ==========================================================================
   11. Prose (post & page content)
   ========================================================================== */
.prose { font-size: 1.125rem; line-height: 1.75; color: var(--navy-900); overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 1.25em; }
.prose h2 { margin-top: 2em; margin-bottom: .6em; font-size: clamp(1.5rem, 3vw, 1.85rem); line-height: 1.25; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin-top: 1.7em; margin-bottom: .5em; font-size: clamp(1.2rem, 2.4vw, 1.4rem); line-height: 1.3; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h4 { margin-top: 1.5em; font-size: 1.1rem; }
.prose h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 12px; border-radius: 3px; background: var(--teal-600); }
.prose a { color: var(--teal-700); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(13, 148, 136, .45); }
.prose a:hover { color: var(--navy-900); text-decoration-color: currentColor; }
.prose strong { color: var(--navy-900); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal-600); font-weight: 700; }
.prose img { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { margin-top: 8px; color: var(--navy-500); font-size: .85rem; text-align: center; }
.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.prose code { padding: .15em .4em; border-radius: 6px; background: var(--surface); font-family: var(--font-mono); font-size: .9em; }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--radius-sm); background: var(--navy-900); color: var(--navy-100); font-size: .9rem; }
.prose pre code { padding: 0; background: none; }
.prose blockquote, .prose .wp-block-quote {
	margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--teal-600);
	color: var(--navy-800); font-size: 1.15rem; font-style: normal;
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* Tables: scroll on mobile, zebra rows */
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.prose .wp-block-table { overflow-x: auto; margin-inline: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose .wp-block-table table { margin: 0; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th, .prose tr:first-child th { background: var(--navy-900); color: var(--white); font-weight: 600; border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: var(--surface); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--white); }
.prose .wp-block-table.is-style-stripes { border-bottom: 1px solid var(--line); }

/* Buttons inside content (referral CTAs) */
.prose .wp-block-button__link { text-decoration: none; font-weight: 600; }
.prose .wp-block-button__link:not(.has-background) { background: var(--teal-600); }
.prose .wp-block-button__link:not(.has-text-color) { color: var(--white); }
.prose .wp-block-button__link:hover { filter: brightness(.92); }
.prose .wp-block-button__link:not(.has-text-color):hover { color: var(--white); }
.prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--navy-900); box-shadow: inset 0 0 0 2px var(--navy-900); }

/* Alignments */
.prose .alignwide { max-width: var(--wide); margin-inline: calc((min(var(--wide), 100vw - var(--gutter) * 2) - 100%) / -2); }
.prose .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.prose .alignfull img { border-radius: 0; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin-inline: 0; } }

.prose :where(p, div, section, ul, ol, blockquote).has-background { padding: 1.25em 1.5em; border-radius: var(--radius); }

/* Rank Math FAQ / How-to blocks */
.prose .rank-math-list-item, .prose .rank-math-faq-item { margin-bottom: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.prose .rank-math-question { margin: 0 0 8px; font-size: 1.1rem; }
.prose .rank-math-question::after { display: none; }
.prose .rank-math-answer p:last-child { margin-bottom: 0; }

/* Easy Table of Contents */
.prose #ez-toc-container, .prose div.ez-toc-v2_0_82_2, .prose .ez-toc-v2_0_82_2 {
	width: 100% !important; margin: 0 0 2em; padding: 18px 22px !important;
	border: 1px solid var(--line) !important; border-radius: var(--radius) !important;
	background: var(--surface) !important; box-shadow: none !important;
}
.prose #ez-toc-container .ez-toc-title { color: var(--navy-900); font: 700 1rem var(--font-head) !important; }
.prose #ez-toc-container ul { margin: 10px 0 0; padding-left: 0; }
.prose #ez-toc-container ul ul { padding-left: 1.1em; margin-top: 4px; }
.prose #ez-toc-container li { margin-bottom: 4px; font-size: .95rem; line-height: 1.5; }
.prose #ez-toc-container a { color: var(--navy-800); font-weight: 500; text-decoration: none; }
.prose #ez-toc-container a:hover { color: var(--teal-700); text-decoration: underline; }
.prose #ez-toc-container .ez-toc-title-toggle a, .prose .ez-toc-js-icon-con { border-color: var(--line) !important; background: var(--white) !important; color: var(--navy-900) !important; }

/* Forms (Contact Form 7, Gutena, comments) */
.prose input[type="text"], .prose input[type="email"], .prose input[type="tel"], .prose input[type="url"], .prose textarea, .prose select,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--white); color: var(--navy-900); font: 400 1rem var(--font-body);
}
.prose input:focus, .prose textarea:focus, .prose select:focus, .comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px var(--teal-50); }
.wpcf7-not-valid-tip { font-size: .85rem; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; border-radius: var(--radius-sm); }

/* Full-width / Elementor template */
.full-width-content { min-height: 40vh; }

/* ==========================================================================
   12. Comments
   ========================================================================== */
.comments { margin: 48px 0 24px; }
.comments__title { font-size: 1.4rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: clamp(16px, 4vw, 40px); }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 2px 0 8px 50px; font-size: .8rem; }
.comment-metadata a { color: var(--navy-500); text-decoration: none; }
.comment-content { margin-left: 50px; }
.comment-content p { margin: 0 0 .8em; }
.reply { margin-left: 50px; font-size: .85rem; font-weight: 600; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: .9rem; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer { margin-top: clamp(40px, 6vw, 72px); background: var(--navy-900); color: #c9d3e3; font-size: .95rem; }
.related + .site-footer, .section + .site-footer { margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer .wordmark, .site-footer .wordmark:hover { color: var(--white); }
.site-footer .wordmark__mark { color: #1f3a66; }
.site-footer .custom-logo { max-height: 44px; width: auto; }
.site-footer__about p { max-width: 36ch; margin: 16px 0 0; line-height: 1.6; }
.site-footer__title { margin: 0 0 14px; color: var(--white); font: 700 .8rem/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.site-footer .menu { margin: 0; padding: 0; list-style: none; }
.site-footer .menu li { margin-bottom: 10px; }
.site-footer a { color: #c9d3e3; text-decoration: none; }
.site-footer a:hover { color: var(--teal-400); text-decoration: underline; }
.site-footer__email { color: var(--teal-400) !important; font-weight: 600; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; font-size: .85rem; color: #93a3bd; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ==========================================================================
   14. Misc / plugin compatibility
   ========================================================================== */
.error-404 { padding-top: clamp(40px, 7vw, 80px); padding-bottom: 24px; }
.error-404 .search-form { margin-top: 24px; }
.sticky { position: relative; }
.bypostauthor > .comment-body .fn::after { content: " · Author"; color: var(--teal-700); font-weight: 600; font-size: .8rem; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }

/* BuddyPress screens inherit page layout */
#buddypress { font-size: 1rem; }
#buddypress .bp-navs a { color: var(--navy-900); }
#buddypress input[type="submit"], #buddypress button { border-radius: 999px; }

/* Elementor pages shown in the reading container should not overflow */
.prose .elementor-section.elementor-section-stretched { left: 0 !important; width: 100% !important; }

@media print {
	.site-header, .site-footer, .related, .share, .comments, .disclosure, .widget-band { display: none !important; }
	.prose { font-size: 12pt; }
}
