/*
Theme Name: Sadhyam
Theme URI: https://www.sadhyam.com
Author: Gopi Krishna M
Author URI: https://www.sadhyam.com/about-me/
Description: Custom-built theme for Sadhyam — a digital marketing blog and consulting practice. Hybrid AI x Sadhyam design system (navy + violet + retained teal-green), Noto Sans, built for Core Web Vitals, SEO, AEO, GEO, and agentic-browsing readiness. No third-party frameworks, no premium plugins.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sadhyam
*/

/* ==========================================================================
   Fonts — Noto Sans, self-hosted (no external Google Fonts request)
   ========================================================================== */
@font-face{ font-family:'Noto Sans'; font-weight:400; font-style:normal; font-display:swap; src:url('assets/fonts/noto-sans-latin-400-normal.woff2') format('woff2'); }
@font-face{ font-family:'Noto Sans'; font-weight:600; font-style:normal; font-display:swap; src:url('assets/fonts/noto-sans-latin-600-normal.woff2') format('woff2'); }
@font-face{ font-family:'Noto Sans'; font-weight:700; font-style:normal; font-display:swap; src:url('assets/fonts/noto-sans-latin-700-normal.woff2') format('woff2'); }
@font-face{ font-family:'Noto Sans'; font-weight:800; font-style:normal; font-display:swap; src:url('assets/fonts/noto-sans-latin-800-normal.woff2') format('woff2'); }

/* ==========================================================================
   Design tokens — Hybrid AI x Sadhyam (Option C, approved)
   ========================================================================== */
:root {
	--navy-900: #0B0B12;
	--navy-850: #0F1020;
	--navy-800: #151626;
	--navy-700: #1B2740;
	--violet: #7C3AED;
	--violet-bright: #A78BFA;
	--teal-green: #0F766E;        /* accessible (AA) on light backgrounds — links, buttons */
	--teal-green-bright: #14B8A6; /* accessible (AAA) on dark backgrounds — badges, links on navy */
	--white: #FFFFFF;
	--off-white: #FAFAFA;
	--canvas: #F6F5FB;
	--ink: #0F172A;
	--grey: #52525B;
	--grey-light: #A1A1AA;
	--border: #E7E5F0;
	--border-dark: rgba(255,255,255,0.09);
	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 24px;
	--r-full: 999px;
	--shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.06);
	--shadow-md: 0 2px 6px rgba(15,23,42,.05), 0 10px 24px rgba(15,23,42,.07);
	--shadow-lg: 0 8px 24px rgba(15,23,42,.08), 0 24px 56px rgba(15,23,42,.10);
	--glow-violet: 0 10px 30px rgba(124,58,237,.30);
	--glow-teal: 0 10px 30px rgba(15,118,110,.28);
	--max-width: 1280px;
	--font-sans: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ==========================================================================
   Reset / base — 16px minimum font size everywhere (site requirement)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--ink);
	background: var(--off-white);
	line-height: 1.65;
	font-size: 1rem;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-green); text-decoration: none; font-size: 1rem; font-weight: 600; }
a:hover { color: var(--violet); }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.18; color: var(--navy-900); margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.2em; font-size: 1rem; color: var(--grey); }
ul, ol { padding-left: 1.3em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grad-text { background: linear-gradient(90deg, var(--violet), var(--teal-green-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   Ambient aurora glow — used behind hero/CTA/newsletter dark sections
   ========================================================================== */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.aurora .o1 { width: 420px; height: 420px; background: var(--violet); top: -140px; left: -80px; }
.aurora .o2 { width: 380px; height: 380px; background: var(--teal-green-bright); bottom: -160px; right: -60px; opacity: 0.32; }

/* Placeholder image block (used until real photos/screenshots are added) */
.ph-block { position: relative; background: linear-gradient(135deg,#EDEBF7,#E4F2F0); border-radius: var(--r-md); overflow: hidden; }
.ph-block::after { content:''; position:absolute; inset:0; background:
	radial-gradient(circle at 30% 20%, rgba(124,58,237,0.14), transparent 55%),
	radial-gradient(circle at 75% 75%, rgba(15,118,110,0.14), transparent 55%); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: var(--r-sm);
	font-weight: 700;
	font-size: 1rem;
	border: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: linear-gradient(90deg, var(--violet), var(--teal-green)); color: var(--white); box-shadow: var(--glow-violet); }
.btn-primary:hover { transform: translateY(-1px); color: var(--white); }
.btn-outline { background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.28); color: var(--white); backdrop-filter: blur(6px); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-outline-dark { background: var(--white); border: 1.5px solid var(--border); color: var(--ink); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
	background: var(--navy-900); /* solid — a translucent header was picking up whatever sat behind it and reading as washed-out gray */
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--border-dark);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 40px; width: auto; }
.site-logo a { font-size: 1.35rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.site-logo span { color: var(--violet-bright); }
.primary-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.primary-nav a { color: rgba(255,255,255,0.82); font-weight: 600; font-size: 0.98rem; }
.primary-nav a:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
	.primary-nav { display: none; }
	.primary-nav.is-open { display: block; position: absolute; top: 76px; left: 0; right: 0; background: var(--navy-900); padding: 16px 24px; border-bottom: 1px solid var(--border-dark); }
	.primary-nav.is-open ul { flex-direction: column; gap: 16px; }
	.nav-toggle { display: block; }
	.header-cta { display: none; }
}

/* Ticker bar — rotates one headline at a time through the latest 3 posts */
.ticker-bar { background: var(--navy-850); color: var(--grey-light); font-size: 0.9rem; padding: 10px 0; border-bottom: 1px solid var(--border-dark); }
.ticker-bar .container { display: flex; align-items: center; gap: 12px; }
.ticker-bar strong { color: var(--teal-green-bright); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; flex-shrink: 0; }
.ticker-track { position: relative; flex: 1; min-width: 0; height: 1.4em; overflow: hidden; }
.ticker-item {
	position: absolute; top: 0; left: 0; right: 0;
	display: block; color: var(--grey-light); font-weight: 500;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	opacity: 0;
	animation: ticker-rotate 12s infinite;
}
.ticker-item:hover { color: var(--white); }
.ticker-item:nth-child(1) { animation-delay: 0s; }
.ticker-item:nth-child(2) { animation-delay: 4s; }
.ticker-item:nth-child(3) { animation-delay: 8s; }
.ticker-bar:hover .ticker-item,
.ticker-bar:focus-within .ticker-item { animation-play-state: paused; }

@keyframes ticker-rotate {
	0%   { opacity: 0; transform: translateY(6px); }
	4%   { opacity: 1; transform: translateY(0); }
	28%  { opacity: 1; transform: translateY(0); }
	33%  { opacity: 0; transform: translateY(-6px); }
	100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ticker-track { height: auto; display: flex; flex-direction: column; gap: 4px; }
	.ticker-item { position: static; opacity: 1; transform: none; animation: none; }
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero { position: relative; background: linear-gradient(175deg, var(--navy-900) 0%, var(--navy-850) 55%, var(--navy-700) 100%); color: var(--white); padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) {
	.hero { padding: 48px 0 40px; }
	.hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.hero-featured .ph-block, .hero-featured img { height: 200px; }
}
.hero h1, .hero h2 { color: var(--white); }
.hero p.hero-lead { color: var(--grey-light); font-size: 1.15rem; max-width: 520px; margin-bottom: 24px; }
.newsletter-inline { display: flex; gap: 10px; margin: 0 0 20px; max-width: 460px; }
.newsletter-inline input { flex: 1; min-width: 0; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color: var(--white); font-size: 1rem; font-family: inherit; }
.newsletter-inline input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-widget .newsletter-inline input { background: var(--white); border-color: var(--border); color: var(--ink); }
@media (max-width: 480px) {
	.newsletter-inline { flex-direction: column; max-width: 100%; }
	.newsletter-inline .btn-primary { width: 100%; justify-content: center; }
}
.testimonial-inline { display: flex; gap: 12px; align-items: center; padding-top: 16px; border-top: 1px solid var(--border-dark); }
.avatar-chip { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--teal-green)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: var(--white); flex-shrink: 0; }
.testimonial-inline p { color: var(--grey-light); font-style: italic; font-size: 0.95rem; margin: 0; }
.stars { color: #FBBF24; letter-spacing: 2px; font-size: 0.9rem; }

.hero-featured { background: rgba(255,255,255,0.045); border: 1px solid var(--border-dark); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); }
.hero-featured .ph-block { height: 230px; border-radius: 0; background: linear-gradient(135deg, rgba(124,58,237,0.35), rgba(15,118,110,0.30)); }
.hero-featured .ph-block::after { display: none; }
.hero-featured img { width: 100%; height: 230px; object-fit: cover; }
.hero-featured .body { padding: 26px; }
.hero-featured h3 { color: var(--white); margin: 14px 0 10px; }
.hero-featured p { color: var(--grey-light); margin: 0; }
.badge { display: inline-block; background: linear-gradient(90deg, var(--violet), var(--teal-green)); color: var(--white); font-size: 0.85rem; font-weight: 700; padding: 6px 14px; border-radius: var(--r-full); }
.eyebrow { color: var(--violet); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 10px; }

.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-side-item { display: flex; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border-dark); }
.hero-side-item img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.hero-side-item h4 { color: var(--white); font-size: 1rem; margin: 0 0 4px; }
.hero-side-item a { color: var(--white); }
.hero-side-item a:hover { color: var(--teal-green-bright); }

/* Stat strip */
.stat-strip { position: relative; background: var(--navy-850); padding: 36px 0; overflow: hidden; }
.stat-strip .container > div, .stats-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; position: relative; z-index: 1; }
.stat-item { text-align: center; flex: 1; min-width: 150px; }
.stat-item .num { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(90deg, var(--violet-bright), var(--teal-green-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-item .label { color: var(--grey-light); font-size: 0.95rem; }

/* ==========================================================================
   Category nav
   ========================================================================== */
.category-nav { background: var(--white); border-bottom: 1px solid var(--border); }
.category-nav ul { list-style: none; display: flex; gap: 10px; margin: 0; padding: 14px 0; overflow-x: auto; }
.category-nav a { font-weight: 600; font-size: 0.95rem; color: var(--grey); white-space: nowrap; padding: 8px 16px; border-radius: var(--r-full); }
.category-nav a.active, .category-nav a:hover { color: var(--white); background: linear-gradient(90deg, var(--violet), var(--teal-green)); font-weight: 700; }

/* Section rhythm */
section, .site-section { padding: 64px 0; }
.section-alt { background: var(--canvas); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 520px; }

/* ==========================================================================
   Content layout (homepage feed + sidebar)
   ========================================================================== */
.content-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; padding: 0; }
.feed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) {
	.feed-grid, .content-layout, .grid-3 { grid-template-columns: 1fr; }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Post card */
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card__media { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--canvas); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__badge { position: absolute; top: 12px; left: 12px; background: linear-gradient(90deg, var(--violet), var(--teal-green)); color: var(--white); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-full); }
.post-card__body { padding: 20px; }
.post-card__title { font-size: 1.05rem; margin-bottom: 8px; }
.post-card__title a { color: var(--navy-900); font-weight: 700; }
.post-card__meta { color: var(--grey); font-size: 0.9rem; margin: 0; }

/* Editor's Picks / generic article card (used inline via .post-card too) */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.card .ph-block { height: 180px; border-radius: 0; }
.card .body { padding: 22px; }
.card .cat { color: var(--violet); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* Free Tools grid */
.tool-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.tool-card .icon { width: 56px; height: 56px; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--violet), var(--teal-green)); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-violet); }
.tool-card .icon svg { width: 26px; height: 26px; stroke: var(--white); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool-card h4 { margin-bottom: 6px; }
.tool-card p { font-size: 0.92rem; margin: 0; }

/* Resource hubs / pillar cards */
.pillar-card { position: relative; background: var(--navy-900); color: var(--white); border: 1px solid var(--border-dark); border-radius: var(--r-md); padding: 28px; overflow: hidden; }
.pillar-card h3 { color: var(--white); }
.pillar-card p { color: var(--grey-light); }
.pillar-card a { color: var(--teal-green-bright); font-weight: 700; }
.pillar-card .pill-dot { width: 40px; height: 40px; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--violet), var(--teal-green-bright)); margin-bottom: 16px; }

/* Author spotlight (homepage) */
.author-spotlight { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: center; }
.author-spotlight img, .author-spotlight .ph-block { width: 210px; height: 210px; border-radius: 50%; box-shadow: var(--shadow-lg); object-fit: cover; }
@media (max-width: 900px) { .author-spotlight { grid-template-columns: 1fr; text-align: center; } .author-spotlight img, .author-spotlight .ph-block { margin: 0 auto; } }

/* Testimonials (homepage, dummy until consulting launches) */
.testimonial-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px 24px 24px; box-shadow: var(--shadow-sm); }
.testimonial-card .quote-mark { font-size: 3rem; font-family: Georgia, serif; color: var(--border); line-height: 0.5; display: block; margin-bottom: 12px; }
.testimonial-card p.quote { font-style: italic; color: var(--ink); font-size: 1rem; }
.testimonial-card .person { display: flex; gap: 12px; align-items: center; margin-top: 16px; }

/* Consulting CTA (homepage teaser) */
.consulting-cta { position: relative; background: linear-gradient(135deg, var(--navy-900), var(--violet) 120%); color: var(--white); border-radius: var(--r-lg); padding: 56px 40px; text-align: center; overflow: hidden; }
.consulting-cta h2 { color: var(--white); position: relative; z-index: 1; }
.consulting-cta p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 24px; position: relative; z-index: 1; }
.consulting-cta .btn { position: relative; z-index: 1; }

/* Newsletter band (homepage) */
.newsletter-band { position: relative; background: var(--navy-900); color: var(--white); padding: 64px 0; text-align: center; overflow: hidden; }
.newsletter-band h2 { color: var(--white); position: relative; z-index: 1; }
.newsletter-band p { position: relative; z-index: 1; }
.newsletter-band .newsletter-inline { margin: 24px auto 0; position: relative; z-index: 1; justify-content: center; display: inline-flex; }

/* Sidebar */
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.widget-title, .widget h3, .widget h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 12px; margin-bottom: 16px; position: relative; }
.widget-title::after, .widget h3::after, .widget h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--violet), var(--teal-green)); }
.author-widget { text-align: center; }
.author-widget img { border-radius: 50%; width: 84px; height: 84px; object-fit: cover; margin: 0 auto 14px; }
.pop-item { display: flex; gap: 12px; align-items: baseline; margin-bottom: 14px; }
.pop-item .n { font-weight: 800; color: var(--border); font-size: 1.3rem; flex-shrink: 0; }
.pop-item a { color: var(--ink); font-weight: 600; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: var(--canvas); color: var(--grey); font-size: 0.9rem; font-weight: 600; padding: 7px 14px; border-radius: var(--r-full); }
.tag-cloud a:hover { background: var(--violet); color: var(--white); }
.newsletter-widget .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   Single post
   ========================================================================== */
.breadcrumbs { max-width: var(--max-width); margin: 0 auto; padding: 18px 24px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--grey); }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--border); font-weight: 600; }
.breadcrumbs a { color: var(--grey); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.breadcrumbs a:hover { color: var(--violet); }
.breadcrumbs li[aria-current="page"] { color: var(--grey-light); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }

.post-header { padding: 48px 0 24px; background: var(--white); border-bottom: 1px solid var(--border); }
.post-header .category-tag { color: var(--violet); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.post-header .post-meta { color: var(--grey); font-size: 0.95rem; margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.post-featured-image { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 32px; }
.post-featured-image img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.single-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 40px; padding: 0 0 64px; align-items: start; }
@media (max-width: 1024px) { .single-layout { grid-template-columns: 1fr; } .toc-rail { display: none; } }

.toc-rail { position: sticky; top: 140px; font-size: 0.9rem; }
.toc-rail nav ul { list-style: none; padding: 0; border-left: 2px solid var(--border); }
.toc-rail nav a { display: block; padding: 6px 0 6px 14px; color: var(--grey); font-weight: 500; font-size: 0.9rem; }
.toc-rail nav a:hover, .toc-rail nav a.is-active { color: var(--violet); border-left: 2px solid var(--violet); margin-left: -2px; }

.post-lead { font-size: 1.2rem; color: var(--grey); margin-bottom: 24px; }

.key-takeaways { background: linear-gradient(135deg, var(--navy-900), var(--violet) 150%); color: var(--white); border-radius: var(--r-lg); padding: 28px; margin: 32px 0; }
.key-takeaways h2 { color: var(--white); font-size: 1.15rem; margin-bottom: 12px; }
.key-takeaways ul { margin: 0; padding-left: 1.2em; }
.key-takeaways li { margin-bottom: 8px; color: var(--off-white); }

/* Mid-content newsletter CTA — inserted once per post body */
.post-newsletter-cta {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--teal-green) 160%);
	border-radius: var(--r-lg);
	padding: 36px 40px;
	margin: 40px 0;
	text-align: center;
	color: var(--white);
}
.post-newsletter-cta::before {
	content: '';
	position: absolute; top: -60px; right: -60px;
	width: 220px; height: 220px; border-radius: 50%;
	background: var(--violet); filter: blur(60px); opacity: .45;
}
.post-newsletter-cta::after {
	content: '';
	position: absolute; bottom: -70px; left: -50px;
	width: 200px; height: 200px; border-radius: 50%;
	background: var(--teal-green-bright); filter: blur(60px); opacity: .3;
}
.post-newsletter-cta .nl-eyebrow {
	position: relative; z-index: 1;
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 0.8rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
	color: var(--teal-green-bright); margin-bottom: 10px;
}
.post-newsletter-cta h3 {
	position: relative; z-index: 1;
	color: var(--white); font-size: 1.4rem; margin: 0 0 8px;
}
.post-newsletter-cta p {
	position: relative; z-index: 1;
	color: rgba(255,255,255,.75); font-size: 1rem; max-width: 480px; margin: 0 auto 20px;
}
.post-newsletter-cta .newsletter-inline {
	position: relative; z-index: 1;
	margin: 0 auto; justify-content: center; max-width: 420px;
}
@media (max-width: 600px) {
	.post-newsletter-cta { padding: 28px 22px; }
	.post-newsletter-cta .newsletter-inline { flex-direction: column; max-width: 100%; }
}

.entry-content h2 { margin-top: 2em; scroll-margin-top: 140px; }
.entry-content h3 { margin-top: 1.5em; scroll-margin-top: 140px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-size: 1rem; }
.entry-content th { background: var(--canvas); }
@media (max-width: 600px) {
	.entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}
mark.hl-yellow { background: #FEF3C7; padding: 0 4px; }
mark.hl-blue { background: #E0E7FF; padding: 0 4px; }
mark.hl-red { background: #FEE2E2; padding: 0 4px; }
blockquote { border-left: 4px solid var(--violet); margin: 1.5em 0; padding: 0.5em 1.5em; background: var(--canvas); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.faq-section { margin: 40px 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-answer { color: var(--grey); margin-top: 10px; }

.author-box { display: flex; gap: 20px; background: var(--canvas); border-radius: var(--r-lg); padding: 24px; margin: 40px 0; align-items: center; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.related-articles { padding: 20px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } }

.references-list { font-size: 0.95rem; color: var(--grey); }

/* ==========================================================================
   About Me / profile page
   ========================================================================== */
.profile-hero { position: relative; background: linear-gradient(175deg, var(--navy-900) 0%, var(--navy-850) 55%, var(--navy-700) 100%); color: var(--white); padding: 64px 0; text-align: center; overflow: hidden; }
.profile-hero img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 4px solid rgba(255,255,255,0.15); position: relative; z-index: 1; }
.profile-hero h1 { color: var(--white); position: relative; z-index: 1; }
.profile-hero .role { color: var(--teal-green-bright); font-weight: 700; position: relative; z-index: 1; }
.profile-hero .location { color: var(--grey-light); font-size: 0.95rem; position: relative; z-index: 1; }
.profile-social { display: flex; gap: 14px; justify-content: center; margin-top: 18px; position: relative; z-index: 1; }
.profile-social a { background: rgba(255,255,255,0.08); padding: 10px 16px; border-radius: var(--r-sm); color: var(--white); font-weight: 600; font-size: 0.9rem; }
.profile-social a:hover { background: var(--violet); color: var(--white); }

.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 32px 0; }
.expertise-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-sm); text-align: center; font-weight: 700; color: var(--navy-900); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-form { max-width: 620px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-md); }
.contact-form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); font-family: inherit; font-size: 1rem; margin-bottom: 20px; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-notice { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 20px; font-weight: 600; }
.form-notice.success { background: #DCFCE7; color: #166534; }
.form-notice.error { background: #FEE2E2; color: #991B1B; }
.contact-social { display: flex; gap: 14px; justify-content: center; margin-top: 28px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--navy-900); color: var(--grey-light); padding: 52px 0 26px; margin-top: 0; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--violet), var(--teal-green-bright), transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; margin-bottom: 36px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: var(--grey-light); font-weight: 500; }
.footer-grid a:hover { color: var(--white); }
.footer-logo { color: var(--white); font-weight: 800; font-size: 1.3rem; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; }

/* ==========================================================================
   Skip link / accessibility
   ========================================================================== */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--violet); color: var(--white); padding: 12px 20px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }
