/*
Theme Name: SociologyNET
Theme URI: https://sociologynet.in/
Author: SociologyNET
Author URI: https://sociologynet.in/
Description: A premium academic study-notes theme for UGC NET Sociology — point-wise notes, practice questions, MCQs and solved PYQs mapped to the official syllabus.
Version: 3.2.14
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sociologynet
Tags: education, blog, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready, one-column, two-columns, right-sidebar
*/

/* ================= Design tokens — Oxford navy & gold ================= */
:root{
	--ink:#1d2436;
	--ink-soft:#414b64;
	--muted:#71778e;
	--paper:#faf7f0;
	--card:#ffffff;
	--wash:#f4efe3;
	--wash-2:#ece4d0;
	--line:#e3dac2;
	--brand:#0b2447;
	--brand-deep:#071831;
	--brand-ink:#0b2447;
	--navy:#0a1f3d;
	--navy-2:#122e57;
	--gold:#b9902f;
	--gold-deep:#96741f;
	--gold-ink:#7c5c10;
	--gold-light:#e9d193;
	--gold-soft:#f8f0da;
	--radius:14px;
	--radius-s:10px;
	--shadow:0 12px 34px rgba(84,66,14,.10);
	--shadow-s:0 4px 16px rgba(84,66,14,.08);
	--font-ui:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
	--font-display:'Playfair Display',Georgia,'Times New Roman',serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font-ui);background:var(--paper);color:var(--ink);line-height:1.7;font-size:16.5px;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
a{color:var(--brand);text-decoration:none}
a:hover{color:var(--gold-deep);text-decoration:underline}
h1,h2,h3,h4{line-height:1.25}
.wrap{max-width:1140px;margin:0 auto;padding:0 22px}
.skip{position:absolute;left:-9999px;top:0;background:var(--brand);color:#fff;padding:10px 18px;z-index:300;border-radius:0 0 10px 0;font-weight:600}
.skip:focus{left:0}
.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!important;width:1px;word-wrap:normal!important}

/* ================= Header ================= */
.site-header{background:#fff;position:relative;z-index:200;border-top:4px solid var(--gold);border-bottom:1px solid var(--line);box-shadow:0 2px 14px rgba(84,66,14,.06)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0}
.brand{display:flex;align-items:center;gap:13px;color:var(--ink)}
.brand:hover{text-decoration:none}
.custom-logo{max-height:48px;width:auto}
.brand-name{font-family:var(--font-display);font-weight:700;font-size:1.42rem;letter-spacing:.01em;line-height:1.1;color:var(--brand)}
.brand-name small{display:block;font-family:var(--font-ui);font-weight:700;font-size:.6rem;letter-spacing:.22em;color:var(--gold-deep);text-transform:uppercase;margin-top:4px}
.main-nav{flex:1 1 auto;min-width:0}
.main-nav ul{display:none;gap:2px;list-style:none;margin:0;padding:0;flex-wrap:nowrap;align-items:center;justify-content:flex-end}
.main-nav li{flex:0 0 auto}
.main-nav a{display:block;color:var(--ink-soft);font-weight:600;font-size:.76rem;letter-spacing:.05em;text-transform:uppercase;padding:9px 10px;border-radius:8px;white-space:nowrap}
.brand{flex:0 0 auto}
.site-header .wrap{max-width:1320px}
@media(min-width:900px) and (max-width:1180px){.main-nav a{font-size:.72rem;letter-spacing:.03em;padding:8px 7px}.brand-name{font-size:1.28rem}.custom-logo{max-height:44px}}
.main-nav a:hover{background:var(--gold-soft);color:var(--brand);text-decoration:none}
.main-nav .current-menu-item>a{color:var(--gold-deep)}
.nav-toggle{display:inline-flex;align-items:center;justify-content:center;background:var(--gold-soft);border:1px solid var(--line);color:var(--brand);border-radius:10px;width:44px;height:44px;font-size:1.25rem;cursor:pointer}
@media(min-width:900px){.main-nav ul{display:flex}.nav-toggle{display:none}}
.mobile-nav{display:none;border-top:1px solid var(--line);background:#fff;padding:10px 22px 18px}
.mobile-nav.open{display:block}
.mobile-nav ul{list-style:none;margin:0;padding:0}
.mobile-nav a{display:block;padding:12px 4px;border-bottom:1px solid var(--wash);font-weight:600;color:var(--ink)}
.mobile-nav a:hover{color:var(--gold-deep);text-decoration:none}

/* ================= Breadcrumbs ================= */
.crumbs{font-size:.85rem;color:var(--muted);padding:22px 0 0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.crumbs a{color:var(--muted);font-weight:500}
.crumbs a:hover{color:var(--gold-deep)}
.crumbs .sep{opacity:.5}
.crumbs [aria-current]{color:var(--ink);font-weight:600}

/* ================= Hero (front page) ================= */
.hero{background:linear-gradient(160deg,var(--brand-deep) 0%,var(--navy) 55%,var(--navy-2) 100%);color:#fff;position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:14px;border:1px solid rgba(185,144,47,.45);pointer-events:none}
.hero::after{content:"";position:absolute;inset:0;background:radial-gradient(720px 360px at 50% -10%,rgba(185,144,47,.20),transparent 62%)}
.hero-inner{position:relative;z-index:1;max-width:1140px;margin:0 auto;padding:84px 22px 72px;text-align:center}
.hero-kicker{display:inline-flex;align-items:center;gap:14px;color:var(--gold-light);font-weight:700;font-size:.78rem;letter-spacing:.24em;text-transform:uppercase;margin-bottom:24px}
.hero-kicker::before,.hero-kicker::after{content:"";width:42px;height:1px;background:linear-gradient(90deg,transparent,var(--gold));display:block}
.hero-kicker::after{background:linear-gradient(90deg,var(--gold),transparent)}
.hero h1{font-family:var(--font-display);font-weight:700;font-size:2.6rem;line-height:1.16;max-width:800px;margin:0 auto 18px;letter-spacing:.005em}
.hero h1 em{font-style:italic;color:var(--gold-light)}
.hero .sub{color:#c3cee6;max-width:620px;margin:0 auto 32px;font-size:1.07rem}
.hero-search{display:flex;max-width:580px;margin:0 auto;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 20px 46px rgba(0,0,0,.35);border:2px solid rgba(185,144,47,.55)}
.hero-search input[type="search"]{flex:1;border:0;padding:17px 20px;font-size:1rem;font-family:inherit;color:var(--ink);outline:none;min-width:0;background:#fff}
.hero-search button{background:var(--gold);border:0;color:#221a02;font-weight:800;padding:0 30px;font-size:1rem;cursor:pointer;font-family:inherit}
.hero-search button:hover{background:#cda63e}
.hero-stats{display:flex;flex-wrap:wrap;gap:16px 48px;justify-content:center;margin-top:38px}
.hero-stats .stat{text-align:center}
.hero-stats strong{display:block;font-family:var(--font-display);font-size:1.85rem;color:var(--gold-light);font-weight:700}
.hero-stats span{font-size:.76rem;color:#9db1d9;letter-spacing:.16em;text-transform:uppercase;font-weight:600}
@media(min-width:720px){.hero h1{font-size:3.5rem}.hero-inner{padding:104px 22px 88px}}

/* ================= Sections ================= */
.section{padding:70px 0}
.section.alt{background:var(--wash)}
.sec-head{max-width:720px;margin:0 auto 42px;text-align:center}
.sec-kicker{display:inline-flex;align-items:center;gap:12px;color:var(--gold-deep);font-weight:800;font-size:.74rem;letter-spacing:.22em;text-transform:uppercase;margin-bottom:14px}
.sec-kicker::before,.sec-kicker::after{content:"";width:30px;height:1px;background:var(--gold);display:block}
.sec-head h2{font-family:var(--font-display);font-size:2.15rem;margin-bottom:12px;color:var(--brand)}
.sec-head p{color:var(--muted);font-size:1.02rem}

/* Feature cards */
.features{display:grid;gap:18px;grid-template-columns:1fr}
@media(min-width:640px){.features{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.features{grid-template-columns:repeat(4,1fr)}}
.feature{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:30px 24px;box-shadow:var(--shadow-s);text-align:center;transition:transform .18s ease,box-shadow .18s ease}
.feature:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.feature .icon{width:54px;height:54px;border-radius:50%;background:var(--brand);border:2px solid var(--gold);display:flex;align-items:center;justify-content:center;font-size:1.35rem;margin:0 auto 16px}
.feature h3{font-family:var(--font-display);font-size:1.12rem;margin-bottom:8px;color:var(--brand)}
.feature p{color:var(--muted);font-size:.92rem}

/* Unit cards */
.unit-grid{display:grid;gap:18px;grid-template-columns:1fr}
@media(min-width:640px){.unit-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.unit-grid{grid-template-columns:repeat(3,1fr)}}
.unit-card{position:relative;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:34px 28px 30px;box-shadow:var(--shadow-s);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.unit-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:var(--gold);text-decoration:none}
.unit-card .num{font-family:var(--font-display);font-size:1rem;font-weight:700;color:var(--gold-deep);letter-spacing:.28em;text-transform:uppercase;margin-bottom:12px}
.unit-card h3{font-family:var(--font-display);font-size:1.38rem;color:var(--brand);margin-bottom:10px}
.unit-card p{color:var(--muted);font-size:.92rem;flex:1}
.unit-card .go{margin-top:20px;font-weight:700;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--brand);display:inline-flex;align-items:center;gap:8px}
.unit-card .go::after{content:"→";color:var(--gold-deep);transition:transform .18s ease}
.unit-card:hover .go::after{transform:translateX(4px)}
.unit-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--gold),var(--gold-light),var(--gold))}

/* ================= PYQ banner ================= */
.pyq-banner{background:linear-gradient(130deg,var(--brand-deep),var(--navy) 60%,var(--navy-2));border:1px solid var(--gold);border-radius:18px;color:#fff;padding:46px 42px;display:flex;flex-wrap:wrap;gap:26px;align-items:center;justify-content:space-between;box-shadow:var(--shadow);position:relative;overflow:hidden}
.pyq-banner::after{content:"§";position:absolute;right:30px;top:-30px;font-family:var(--font-display);font-size:10rem;font-weight:700;color:rgba(233,209,147,.10);line-height:1;font-style:italic}
.pyq-banner h2{font-family:var(--font-display);font-size:1.75rem;margin-bottom:8px}
.pyq-banner p{color:#c3cee6;max-width:520px;font-size:.98rem}
.btn{display:inline-block;background:linear-gradient(180deg,#cda63e,var(--gold));color:#221a02;font-weight:800;padding:14px 30px;border-radius:10px;font-size:.95rem;border:1px solid #8a6a1d;cursor:pointer;box-shadow:0 10px 22px rgba(185,144,47,.35);transition:transform .15s ease,box-shadow .15s ease;letter-spacing:.02em}
.btn:hover{background:linear-gradient(180deg,#dbb654,#c29c33);color:#221a02;text-decoration:none;transform:translateY(-2px);box-shadow:0 14px 28px rgba(185,144,47,.42)}
.btn-ghost{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(233,209,147,.5);box-shadow:none}
.btn-ghost:hover{background:rgba(255,255,255,.16);color:#fff}

/* ================= Latest posts ================= */
.post-grid{display:grid;gap:18px;grid-template-columns:1fr}
@media(min-width:640px){.post-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.post-grid{grid-template-columns:repeat(3,1fr)}}
.post-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow-s);display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.post-card .chip{align-self:flex-start}
.post-card h3{font-family:var(--font-display);font-size:1.22rem;margin:12px 0 8px}
.post-card h3 a{color:var(--brand)}
.post-card h3 a:hover{color:var(--gold-deep);text-decoration:none}
.post-card p{color:var(--muted);font-size:.9rem;flex:1}
.post-card .meta{margin-top:14px;font-size:.8rem;color:var(--muted);display:flex;gap:10px;align-items:center}

/* Media cards (archive / search / index listings only — homepage cards unchanged) */
.post-card.card-media{padding:0;overflow:hidden}
.card-thumb{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(140deg,var(--brand-deep),var(--navy-2));flex:none}
.card-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.card-media:hover .card-thumb img{transform:scale(1.05)}
.card-thumb .chip{position:absolute;left:14px;bottom:14px;margin:0;background:rgba(255,255,255,.96);box-shadow:var(--shadow-s);z-index:2}
.thumb-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:radial-gradient(420px 200px at 50% 0%,rgba(185,144,47,.28),transparent 65%),linear-gradient(140deg,var(--brand-deep),var(--navy-2))}
.thumb-fallback .tf-mark{font-family:var(--font-display);font-style:italic;font-weight:700;font-size:3rem;line-height:1;color:var(--gold-light)}
.thumb-fallback .tf-cat{font-size:.72rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:#c3cee6;padding:0 16px;text-align:center}
.card-body{padding:22px 24px 24px;display:flex;flex-direction:column;flex:1}
.card-media h3{margin-top:0}

/* Pagination (archive / search listings) */
.pagination{margin:14px 0 8px}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:46px;padding:0 15px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--brand);font-weight:700;font-size:.94rem;box-shadow:var(--shadow-s);transition:border-color .15s ease,color .15s ease,transform .15s ease,background .15s ease}
.pagination a.page-numbers:hover{border-color:var(--gold);color:var(--gold-deep);text-decoration:none;transform:translateY(-2px)}
.pagination .page-numbers.current{background:var(--brand);border-color:var(--brand);color:var(--gold-light)}
.pagination .page-numbers.dots{border:0;background:transparent;box-shadow:none;color:var(--muted);min-width:28px;padding:0 4px}
.pagination .prev,.pagination .next{padding:0 22px;letter-spacing:.03em}
@media(max-width:480px){.pagination .page-numbers{min-width:42px;height:42px;padding:0 11px;font-size:.9rem}.pagination .prev,.pagination .next{padding:0 16px}}

/* ================= Homepage v3.1 (approved preview design) ================= */
.section[id]{scroll-margin-top:20px}

/* Hero */
.home-hero{background:linear-gradient(160deg,var(--brand-deep) 0%,var(--navy) 55%,var(--navy-2) 100%);color:#fff;position:relative;overflow:hidden}
.home-hero::before{content:"";position:absolute;inset:14px;border:1px solid rgba(185,144,47,.45);pointer-events:none}
.home-hero::after{content:"";position:absolute;inset:0;background:radial-gradient(720px 360px at 22% -10%,rgba(185,144,47,.20),transparent 62%)}
.hero-grid{position:relative;z-index:1;display:grid;gap:38px;grid-template-columns:1fr;align-items:center;padding-top:58px;padding-bottom:54px}
@media(min-width:960px){.hero-grid{grid-template-columns:1.12fr .88fr;padding-top:72px;padding-bottom:66px}}
.hero-copy h1{font-family:var(--font-display);font-weight:700;font-size:2.35rem;line-height:1.16;letter-spacing:.005em;margin-bottom:16px}
.hero-copy h1 em{font-style:italic;color:var(--gold-light)}
@media(min-width:720px){.hero-copy h1{font-size:3.05rem}}
.hero-sub{color:#c3cee6;font-size:1.05rem;max-width:520px;margin-bottom:26px}
.hero-copy .hero-search{max-width:540px;margin:0}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 28px}
.hero-stats2{display:flex;flex-wrap:wrap}
@media(min-width:720px){.hero-stats2{flex-wrap:nowrap}}
.hstat{padding:2px 15px;border-left:1px solid rgba(233,209,147,.35);display:flex;align-items:center;gap:10px}
.hstat:first-child{padding-left:0;border-left:0}
.hstat-ico{color:var(--gold);display:flex;flex:none}
.hstat-ico svg{width:25px;height:25px}
.hstat-txt strong{display:block;font-family:var(--font-body);font-size:1.22rem;line-height:1.15;color:#fff;font-weight:800}
.hstat-txt span{font-size:.8rem;color:#9db1d9;font-weight:500;display:block;white-space:nowrap}
.hero-search{position:relative}
.hero-search-ico{position:absolute;left:20px;top:50%;transform:translateY(-50%);color:var(--gold-deep);display:flex;pointer-events:none;z-index:2}
.hero-search-ico svg{width:20px;height:20px}
.home-hero .hero-search input{padding-left:50px}
.hero-art img{display:block;width:100%;height:auto;border-radius:16px;border:1px solid rgba(185,144,47,.55);box-shadow:0 24px 50px rgba(0,0,0,.35)}
@media(max-width:640px){
	.hero-grid{padding-top:44px;padding-bottom:42px;gap:28px}
	.hero-stats2{display:grid;grid-template-columns:1fr 1fr;gap:16px 10px}
	.hstat{border-left:0;padding:0}
	.hero-cta .btn{flex:1 1 auto;text-align:center}
}

/* Unit tiles */
.units-head{position:relative;margin-bottom:40px}
.view-all-link{font-weight:700;font-size:.92rem;color:var(--brand);display:block;text-align:center;margin-top:12px}
@media(min-width:900px){.view-all-link{position:absolute;right:0;top:36px;margin-top:0}}
.unit-tiles{display:grid;gap:30px 14px;grid-template-columns:repeat(2,1fr);margin-top:14px}
@media(min-width:720px){.unit-tiles{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1024px){.unit-tiles{grid-template-columns:repeat(5,1fr);gap:32px 16px}}
.unit-tile{position:relative;display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px 16px 16px;box-shadow:var(--shadow-s);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.unit-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--gold);text-decoration:none}
.unit-tiles .unit-chip,.unit-tiles .unit-badge{position:absolute;top:-14px;left:12px;z-index:2;background:var(--brand);color:var(--gold-light);border:2px solid var(--gold);font-size:.8rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;padding:6px 15px;border-radius:999px;box-shadow:0 6px 16px rgba(7,24,51,.35);white-space:nowrap;margin:0;display:inline-block;line-height:1.25}
.unit-ico{width:46px;height:46px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center}
.unit-ico svg{width:24px;height:24px}
.tint-a{background:var(--gold-soft);color:var(--gold-deep)}
.tint-b{background:#e9eef6;color:var(--navy-2)}
.tint-c{background:#f0e3bd;color:var(--gold-deep)}
.unit-name{font-weight:700;color:var(--brand);font-size:.94rem;line-height:1.35}
@media(max-width:640px){
	.unit-tile{flex-direction:column;text-align:center;padding:42px 12px 16px;gap:9px}
	.unit-tiles .unit-chip,.unit-tiles .unit-badge{top:10px;font-size:.76rem;padding:5px 13px}
	.unit-name{font-size:.9rem}
}

/* Prepare cards */
.prep-grid{display:grid;gap:16px;grid-template-columns:1fr}
@media(min-width:900px){.prep-grid{grid-template-columns:repeat(3,1fr)}}
.prep-card{display:flex;align-items:center;gap:16px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow-s);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.prep-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--gold);text-decoration:none}
.prep-ico{width:54px;height:54px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center}
.prep-ico svg{width:27px;height:27px}
.prep-txt{flex:1;min-width:0}
.prep-txt strong{display:block;font-weight:800;color:var(--brand);font-size:1.05rem;line-height:1.3}
.prep-txt small{color:var(--muted);font-size:.88rem}
.prep-arrow{width:42px;height:42px;flex:none;border-radius:50%;background:var(--brand);color:var(--gold-light);display:flex;align-items:center;justify-content:center;font-size:1.1rem;font-weight:700}

/* Latest posts (horizontal cards) */
.lpost-grid{display:grid;gap:16px;grid-template-columns:1fr}
@media(min-width:640px){.lpost-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.lpost-grid{grid-template-columns:repeat(3,1fr)}}
.lpost{display:flex;gap:16px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow-s);align-items:flex-start;transition:transform .18s ease,box-shadow .18s ease}
.lpost:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.lpost-thumb{position:relative;width:118px;height:88px;flex:none;border-radius:10px;overflow:hidden;background:linear-gradient(140deg,var(--brand-deep),var(--navy-2));display:block}
.lpost-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.lpost-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-style:italic;font-weight:700;font-size:1.9rem;color:var(--gold-light)}
.lpost-body{min-width:0}
.lpost-body h3{font-family:var(--font-display);font-size:1.02rem;line-height:1.35;margin-bottom:8px}
.lpost-body h3 a{color:var(--brand)}
.lpost-body h3 a:hover{color:var(--gold-deep);text-decoration:none}
.lpost-date{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.8rem}
.lpost-date svg{width:15px;height:15px;color:var(--gold-deep);flex:none}
@media(max-width:480px){.lpost-thumb{width:96px;height:78px}.lpost-body h3{font-size:.95rem}}

/* Why Choose + FAQ (homepage) */
.why-grid{display:grid;gap:16px;grid-template-columns:1fr}
@media(min-width:640px){.why-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.why-grid{grid-template-columns:repeat(4,1fr)}}
.why-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:26px 24px;box-shadow:var(--shadow-s);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.why-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--gold)}
.why-ico{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.why-ico svg{width:27px;height:27px}
.why-card h3{font-family:var(--font-display);font-size:1.12rem;color:var(--brand);margin-bottom:9px}
.why-card p{color:var(--muted);font-size:.93rem}
.faq-list{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.faq-item{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-s);overflow:hidden}
.faq-item summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;font-weight:700;color:var(--brand);font-size:1rem}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";flex:none;width:30px;height:30px;border-radius:50%;background:var(--gold-soft);color:var(--gold-deep);display:flex;align-items:center;justify-content:center;font-size:1.15rem;font-weight:800;transition:transform .2s ease}
.faq-item[open ] summary::after{transform:rotate(45deg)}
.faq-item summary:hover{color:var(--gold-deep)}
.faq-item p{padding:0 22px 20px;color:var(--muted);font-size:.95rem}
.center{text-align:center;margin-top:34px}

/* ================= Unit page ================= */
.unit-hero{background:linear-gradient(150deg,var(--brand-deep),var(--navy) 60%,var(--navy-2));color:#fff;border:1px solid var(--gold);border-radius:20px;padding:56px 46px;margin:26px 0 10px;position:relative;overflow:hidden;box-shadow:var(--shadow)}
.unit-hero::before{content:"";position:absolute;inset:10px;border:1px solid rgba(185,144,47,.4);border-radius:14px;pointer-events:none}
.unit-hero .inner{position:relative}
.unit-chip{display:inline-block;background:rgba(185,144,47,.14);border:1px solid var(--gold);color:var(--gold-light);font-weight:800;font-size:.74rem;letter-spacing:.22em;padding:8px 18px;border-radius:999px;margin-bottom:18px}
.unit-hero h1{font-family:var(--font-display);font-size:2.2rem;margin-bottom:12px;max-width:720px}
.unit-hero .lede{color:#c3cee6;font-size:1.05rem;max-width:680px}
.unit-meta{display:flex;flex-wrap:wrap;gap:10px 30px;margin-top:22px;font-size:.9rem;color:#9db1d9}
.unit-meta strong{color:var(--gold-light);font-family:var(--font-display);font-size:1.05rem}
@media(min-width:720px){.unit-hero h1{font-size:2.8rem}}

/* Topics list (unit pages) */
.unit-topics{margin:36px 0 12px}
.unit-topics>h3{font-family:var(--font-display);font-size:1.55rem;color:var(--brand);margin-bottom:20px;padding-bottom:12px;border-bottom:4px double var(--gold)}
.unit-topics>h4{font-family:var(--font-display);font-size:1.08rem;color:var(--brand);margin:0;display:flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:12px 12px 0 0;padding:17px 22px;box-shadow:var(--shadow-s);border-bottom:0}
.unit-topics>h4::before{content:"";width:10px;height:10px;background:var(--gold);transform:rotate(45deg);border-radius:2px;flex:none}
.unit-topics>h4+ul{list-style:none;margin:0 0 20px;padding:6px 22px 16px;background:var(--card);border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;box-shadow:var(--shadow-s);display:grid;gap:2px}
@media(min-width:640px){.unit-topics>h4+ul{grid-template-columns:1fr 1fr}}
.unit-topics>h4+ul li{padding:9px 4px;border-bottom:1px dashed var(--line);font-size:.95rem;color:var(--ink-soft)}
.unit-topics>h4+ul li:last-child{border-bottom:0}
.unit-topics>h4+ul li a{font-weight:600;color:var(--ink);display:inline-flex;align-items:center;gap:8px}
.unit-topics>h4+ul li a::before{content:"→";color:var(--gold-deep);font-weight:800}
.unit-topics>h4+ul li a:hover{color:var(--gold-deep);text-decoration:none}
.unit-topics>h3+ul{list-style:none;margin:0 0 20px;padding:14px 22px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-s);display:grid;gap:2px}
@media(min-width:640px){.unit-topics>h3+ul{grid-template-columns:1fr 1fr}}
.unit-topics>h3+ul li{padding:9px 4px;border-bottom:1px dashed var(--line);font-size:.95rem;color:var(--ink-soft)}
.unit-topics>h3+ul li:last-child{border-bottom:0}
.unit-topics>h3+ul li a{font-weight:600;color:var(--ink);display:inline-flex;align-items:center;gap:8px}
.unit-topics>h3+ul li a::before{content:"→";color:var(--gold-deep);font-weight:800}
.unit-topics>h3+ul li a:hover{color:var(--gold-deep);text-decoration:none}
.unit-topics>p{background:var(--gold-soft);border:1px solid var(--line);border-left:4px solid var(--gold);border-radius:10px;padding:16px 20px;color:var(--gold-ink);font-size:.92rem;margin:8px 0 30px}
.unit-note{background:var(--gold-soft);border:1px solid var(--line);border-radius:10px;padding:16px 20px;color:var(--gold-ink);font-size:.92rem;margin:8px 0 30px}

/* ================= Single post ================= */
.article-head{max-width:800px;margin:10px auto 0;padding:0 22px;text-align:center}
.chip{display:inline-block;background:var(--gold-soft);border:1px solid var(--gold);color:var(--gold-ink);font-weight:700;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;padding:7px 16px;border-radius:999px;margin-bottom:18px}
a.chip:hover{text-decoration:none;background:#f3e7c8}
.article-head h1{font-family:var(--font-display);font-size:2.25rem;line-height:1.2;margin-bottom:16px;color:var(--brand)}
.article-meta{display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:center;color:var(--muted);font-size:.88rem;padding-bottom:24px;border-bottom:4px double var(--gold);margin-bottom:6px}
.article-meta .dot{color:var(--gold)}
.layout{display:grid;gap:36px;grid-template-columns:1fr;margin-top:28px}
@media(min-width:1024px){.layout{grid-template-columns:minmax(0,1fr) 320px}}
.article{min-width:0}
.sidebar{align-self:start}
@media(min-width:1024px){.sidebar{position:sticky;top:24px}}
.side-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow-s);margin-bottom:18px}
.side-card h2{font-family:var(--font-display);font-size:1.15rem;color:var(--brand);margin-bottom:12px;padding-bottom:10px;border-bottom:2px solid var(--gold-soft)}
.side-card p{color:var(--muted);font-size:.9rem;margin-bottom:12px}
.side-card ol{margin:0 0 4px 20px;color:var(--ink-soft);font-size:.9rem}
.side-card li{margin:8px 0}
.side-card li a{font-weight:600}
.side-card .btn{width:100%;text-align:center;padding:12px}

/* Point-wise notes (article body) */
.notes{font-size:1.03rem;color:var(--ink-soft)}
.notes>*:first-child{margin-top:0}
.notes p{margin:0 0 14px}
.notes>p:first-of-type::first-letter{font-family:var(--font-display);font-size:3.1rem;font-weight:700;color:var(--gold-deep);float:left;line-height:.85;padding:4px 10px 0 0}
.notes h2{font-family:var(--font-display);font-size:1.65rem;color:var(--brand);margin:44px 0 14px;padding-bottom:10px;border-bottom:4px double var(--gold)}
.notes h2:first-of-type{margin-top:26px}
.notes h3{font-family:var(--font-display);font-size:1.3rem;color:var(--brand);margin:30px 0 10px;font-weight:700}
.notes h4{font-size:1.02rem;margin:20px 0 8px;font-weight:700;color:var(--ink)}
.notes ul{list-style:none;margin:0 0 8px;padding:0}
.notes ul>li{position:relative;padding:8px 0 8px 32px;border-bottom:1px dotted var(--line)}
.notes ul>li:last-child{border-bottom:0}
.notes ul>li::before{content:"";position:absolute;left:6px;top:17px;width:9px;height:9px;background:var(--gold);transform:rotate(45deg);border-radius:2px}
.notes ul strong{color:var(--ink)}
.notes ol{margin:0 0 14px 24px}
.notes ol>li{margin-bottom:14px;line-height:1.7;padding-left:4px}
.notes ol>li::marker{font-weight:700;color:var(--gold-deep)}
.notes table{width:100%;border-collapse:collapse;margin:18px 0 26px;font-size:.94rem;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:var(--shadow-s)}
.notes th{background:var(--brand);color:var(--gold-light);text-align:left;padding:13px 16px;font-weight:700;letter-spacing:.02em}
.notes td{padding:10px 16px;border-bottom:1px solid var(--line)}
.notes tr:last-child td{border-bottom:0}
.notes tbody tr:nth-child(even) td{background:#fbf8f0}

/* Prev / next */
.prevnext{display:grid;gap:14px;grid-template-columns:1fr;margin:42px 0 8px}
@media(min-width:640px){.prevnext{grid-template-columns:1fr 1fr}}
.pn{display:block;border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;background:var(--card);box-shadow:var(--shadow-s);transition:border-color .15s ease,transform .15s ease}
.pn:hover{border-color:var(--gold);transform:translateY(-2px);text-decoration:none}
.pn.next{text-align:right}
.pn .dir{font-size:.74rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-deep);margin-bottom:6px}
.pn .ttl{font-weight:700;color:var(--brand);font-size:.96rem;font-family:var(--font-display)}

/* Comments */
.comments{margin:38px 0}
.comments h2{font-family:var(--font-display);font-size:1.45rem;color:var(--brand);margin-bottom:18px}
.comment-list{list-style:none;margin:0 0 24px;padding:0}
.comment-list li{border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:14px;background:var(--card)}
.comment-meta{font-size:.85rem;color:var(--muted);margin-bottom:8px}
.comment-respond{border:1px solid var(--line);border-radius:var(--radius);padding:26px;background:var(--wash)}
.comment-respond h3{font-family:var(--font-display);color:var(--brand);margin-bottom:14px}
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form input[type="url"],.comment-form textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-family:inherit;font-size:.95rem;margin-bottom:12px;background:#fff;color:var(--ink)}
.comment-form textarea{min-height:130px;resize:vertical}
.form-submit input{background:var(--brand);color:#fff;border:0;border-radius:10px;padding:13px 28px;font-weight:700;cursor:pointer;font-size:.95rem}
.form-submit input:hover{background:var(--navy-2)}

/* ================= Generic page ================= */
.page-head{max-width:800px;margin:0 auto;padding:36px 22px 0}
.page-head h1{font-family:var(--font-display);font-size:2.3rem;color:var(--brand);margin-bottom:10px}
.page-body{max-width:800px;margin:0 auto;padding:18px 22px 60px;color:var(--ink-soft)}
.page-body h2{font-family:var(--font-display);font-size:1.55rem;color:var(--brand);margin:34px 0 12px;padding-bottom:8px;border-bottom:4px double var(--gold)}
.page-body h3{font-size:1.15rem;margin:24px 0 10px}
.page-body p{margin-bottom:14px}
.page-body ul,.page-body ol{margin:0 0 14px 22px}
.page-body li{margin-bottom:8px}

/* ================= Archive / search ================= */
.archive-head{background:var(--wash);border-bottom:1px solid var(--line);padding:46px 0;margin-bottom:36px}
.archive-head h1{font-family:var(--font-display);font-size:2.1rem;color:var(--brand);margin-bottom:8px}
.archive-head p{color:var(--muted)}
.archive-head .count{display:inline-block;background:#fff;border:1px solid var(--gold);border-radius:999px;padding:5px 16px;font-size:.82rem;font-weight:700;color:var(--gold-ink);margin-top:12px}
.search-form{display:flex;max-width:520px;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-top:18px}
.search-form input[type="search"]{flex:1;border:0;padding:13px 16px;font-size:.95rem;font-family:inherit;outline:none;min-width:0;color:var(--ink)}
.search-form button{background:var(--gold);color:#221a02;border:0;padding:0 24px;font-weight:800;cursor:pointer}
.search-form button:hover{background:#cda63e}
.nothing{padding:60px 0;text-align:center;color:var(--muted)}
.nothing h2{font-family:var(--font-display);color:var(--brand);margin-bottom:10px}

/* ================= 404 ================= */
.e404{text-align:center;padding:90px 22px}
.e404 .code{font-family:var(--font-display);font-size:6rem;font-weight:700;color:var(--wash-2);line-height:1}
.e404 h1{font-family:var(--font-display);font-size:2rem;color:var(--brand);margin:10px 0 12px}
.e404 p{color:var(--muted);margin-bottom:26px}

/* ================= Footer ================= */
.site-footer{background:var(--brand-deep);color:#aebdd8;margin-top:56px;border-top:4px solid var(--gold)}
.footer-grid{display:grid;gap:36px;grid-template-columns:1fr;padding:60px 0 42px}
@media(min-width:720px){.footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr}}
.footer-brand .brand-name{color:#fff}
.footer-brand p{font-size:.9rem;margin:14px 0 0;max-width:300px}
.footer-col h3{color:var(--gold-light);font-size:.8rem;letter-spacing:.18em;text-transform:uppercase;margin-bottom:18px;font-weight:800}
.footer-col h3::after{content:"";display:block;width:34px;height:2px;background:var(--gold);margin-top:8px}
.footer-col ul{list-style:none;margin:0;padding:0}
.footer-col li{margin:10px 0}
.footer-col a{color:#aebdd8;font-size:.92rem}
.footer-col a:hover{color:#fff;text-decoration:none}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:22px 0;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;font-size:.84rem;color:#7e90b5}

/* ================= Ad slots (silent until configured) ================= */
.ad-slot.has-ad{margin:30px auto;text-align:center}

/* ================= Utilities / responsive ================= */
.mt-0{margin-top:0}
@media(max-width:640px){
	.hero-inner{padding:64px 22px 56px}
	.hero h1{font-size:2.2rem}
	.section{padding:52px 0}
	.unit-hero{padding:40px 26px}
	.pyq-banner{padding:36px 26px}
	.article-head h1{font-size:1.75rem}
	.unit-topics>h4+ul,.unit-topics>h3+ul{grid-template-columns:1fr}
	.notes>p:first-of-type::first-letter{font-size:2.6rem}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}html{scroll-behavior:auto}}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* TOC links (wired up by theme.js) */
.notes ul>li a{color:var(--ink);font-weight:600}
.notes ul>li a:hover{color:var(--gold-deep);text-decoration:none}
.notes h2{scroll-margin-top:20px}

/* ================= Mobile hardening ================= */
.notes,.page-body,.article{overflow-wrap:break-word}
@media(max-width:640px){
	.notes table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
	.brand-name{font-size:1.16rem}
	.brand-name small{font-size:.54rem}
	.custom-logo{max-height:38px}
	.hero-search button{padding:0 20px}
	.unit-hero h1{font-size:1.85rem}
	.hero-stats{gap:14px 26px}
	.side-card{padding:22px}
	.comment-respond{padding:20px}
}
@media(max-width:380px){
	.hero-search input[type="search"]{padding:15px 14px;font-size:.95rem}
	.hero-search button{padding:0 16px;font-size:.95rem}
	.main-nav a{padding:10px 10px}
}

/* Hero search: full round capsule (preview style) + remove inset frame */
.home-hero::before{display:none}
.home-hero .hero-search{display:flex;align-items:center;background:#fff;border-radius:999px;padding:6px;box-shadow:0 14px 34px rgba(0,0,0,.28);max-width:560px;position:relative}
.home-hero .hero-search input{flex:1;min-width:0;border:0;background:transparent;padding:12px 8px 12px 52px;font-size:1rem;color:var(--ink)}
.home-hero .hero-search input:focus{outline:none}
.home-hero .hero-search button{flex:none;border-radius:999px;padding:13px 34px;font-size:1rem;font-weight:700;background:linear-gradient(180deg,var(--gold-light),var(--gold));color:var(--brand-deep);border:0;cursor:pointer;box-shadow:0 4px 12px rgba(185,144,47,.35)}
.home-hero .hero-search button:hover{filter:brightness(1.05)}
.home-hero .hero-search-ico{left:22px}
@media(max-width:480px){.home-hero .hero-search button{padding:12px 24px}}

/* Hero without image: centred, clean (v3.1.7) */
.hero-grid{grid-template-columns:1fr;max-width:880px;margin:0 auto;text-align:center}
@media(min-width:960px){.hero-grid{grid-template-columns:1fr}}
.hero-copy h1{margin-left:auto;margin-right:auto}
.hero-sub{margin-left:auto;margin-right:auto;max-width:640px}
.home-hero .hero-search{margin:0 auto}
.hero-cta{justify-content:center}
.hero-stats2{justify-content:center}
.hstat{text-align:left}

/* Mobile overflow hardening (v3.1.9): no text may leave the screen */
html,body{overflow-x:hidden}
@supports(overflow:clip){html,body{overflow-x:clip}}
img,video{max-width:100%;height:auto}
.unit-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:720px){.unit-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1024px){.unit-tiles{grid-template-columns:repeat(5,minmax(0,1fr))}}
.why-grid{grid-template-columns:minmax(0,1fr)}
@media(min-width:640px){.why-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.why-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.unit-tile,.prep-card,.why-card,.lpost-card,.hstat,.faq-item{min-width:0}
.unit-tile h3,.prep-card h3,.why-card h3,.faq-item summary{overflow-wrap:break-word}
@media(max-width:720px){
	.hero-copy h1{font-size:2rem;line-height:1.18;overflow-wrap:break-word}
	.hero-stats2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
	.hstat-txt span{white-space:normal}
	.hstat-txt strong{font-size:1.08rem}
	.hstat{padding:2px 10px}
}
@media(max-width:380px){.hero-copy h1{font-size:1.8rem}}

/* Hero mobile lockdown (v3.2.0): hero can never exceed the screen */
.hero-grid{grid-template-columns:minmax(0,1fr)}
@media(min-width:960px){.hero-grid{grid-template-columns:minmax(0,1fr)}}
.hero-copy{min-width:0;width:100%}
.home-hero .hero-search{width:100%}
@media(max-width:720px){
	.hero-cta{flex-direction:column;align-items:stretch}
	.hero-cta .btn{width:100%;flex:none}
	.home-hero .hero-search button{padding:12px 22px}
}

/* Article mobile fit (v3.2.1): notes/blog content must fit the phone screen */
.layout{grid-template-columns:minmax(0,1fr)}
@media(min-width:1024px){.layout{grid-template-columns:minmax(0,1fr) 320px}}
.notes{min-width:0}
.notes iframe,.notes embed,.notes object,.notes video{max-width:100%}
.notes pre{max-width:100%;overflow-x:auto}
.notes figure,.notes .wp-block-image,.notes .wp-block-embed{max-width:100%}
@media(max-width:860px){
	.notes table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
.prevnext{grid-template-columns:minmax(0,1fr)}
@media(min-width:640px){.prevnext{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sidebar{min-width:0}

/* ==========================================================================
   v3.2.12 — Homepage as a Page
   The homepage is now a normal WordPress Page ("Home", ID 672); its content
   is the blocks in that page, rendered by front-page.php. These rules style
   the block output the theme's own templates used to produce.
   ========================================================================== */

/* The Group block wrapping the whole homepage content — no extra margins. */
.sn-home.wp-block-group{margin-top:0;margin-bottom:0}

/* Latest — Query Loop (Gutenberg markup) styled like the theme's .lpost cards.
   Scoped to .sn-home so it applies wherever the loop sits inside the page. */
.sn-home .wp-block-query .wp-block-post-template{display:grid;gap:16px;grid-template-columns:1fr;list-style:none;margin:0;padding:0}
@media(min-width:640px){.sn-home .wp-block-query .wp-block-post-template{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.sn-home .wp-block-query .wp-block-post-template{grid-template-columns:repeat(3,1fr)}}
.sn-home .wp-block-post{display:flex;gap:16px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow-s);align-items:flex-start;transition:transform .18s ease,box-shadow .18s ease;min-width:0}
.sn-home .wp-block-post:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.sn-home .wp-block-post-featured-image{flex:none;width:118px;height:88px;border-radius:10px;overflow:hidden;margin:0;background:linear-gradient(140deg,var(--brand-deep),var(--navy-2))}
.sn-home .wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover;display:block}
.sn-home .wp-block-post-featured-image a{display:block;height:100%}
.sn-home .wp-block-post-title{font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-size:1.02rem;line-height:1.35;margin:0 0 8px}
.sn-home .wp-block-post-title a{color:var(--brand)}
.sn-home .wp-block-post-title a:hover{color:var(--gold-deep);text-decoration:none}
.sn-home .wp-block-post-date{color:var(--muted);font-size:.8rem}
@media(max-width:480px){
	.sn-home .wp-block-post-featured-image{width:96px;height:78px}
	.sn-home .wp-block-post-title{font-size:.95rem}
}

/* Homepage info tables — navy header row, ivory body, gold accents. */
.sn-table{width:100%;border-collapse:separate;border-spacing:0;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-s);font-size:.96rem}
.sn-table th,.sn-table td{padding:13px 18px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.sn-table tr:last-child th,.sn-table tr:last-child td{border-bottom:0}
.sn-table thead th{background:var(--brand);color:#fff;font-weight:800}
.sn-table tbody th{width:32%;color:var(--brand);font-weight:700;background:var(--wash)}
.sn-table td strong{color:var(--brand)}
@media(max-width:640px){.sn-table th,.sn-table td{padding:11px 13px;font-size:.9rem}.sn-table tbody th{width:38%}}

/* Numbered preparation steps — gold-numbered cards. */
.prep-steps{counter-reset:step;list-style:none;margin:0;padding:0;display:grid;gap:14px}
@media(min-width:900px){.prep-steps{grid-template-columns:repeat(2,1fr)}}
.prep-steps li{counter-increment:step;position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px 20px 20px 66px;box-shadow:var(--shadow-s);min-width:0}
.prep-steps li::before{content:counter(step);position:absolute;left:18px;top:18px;width:34px;height:34px;border-radius:50%;background:var(--brand);color:var(--gold-light);font-weight:800;display:flex;align-items:center;justify-content:center}
.prep-steps li strong{display:block;color:var(--brand);font-size:1.02rem;margin-bottom:5px}
.prep-steps li p{color:var(--muted);font-size:.94rem;margin:0}

/* Quick tips — checked cards. */
.sn-tips{list-style:none;margin:0 auto;max-width:820px;padding:0;display:grid;gap:12px}
@media(min-width:900px){.sn-tips{grid-template-columns:repeat(2,1fr)}}
.sn-tips li{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px 16px 44px;position:relative;box-shadow:var(--shadow-s);font-size:.95rem;color:var(--ink-soft);min-width:0}
.sn-tips li::before{content:"✓";position:absolute;left:16px;top:15px;color:var(--gold-deep);font-weight:800}

/* Homepage only (v3.2.12): Inter headings, copied from the reference site.
   Scoped to .sn-home so NO other page changes — the rest of the site keeps
   its Playfair Display headings. Placed last so it wins equal-specificity
   ties with the theme's .sec-head h2 / .hero-copy h1 / .why-card h3 rules. */
.sn-home h1,.sn-home h2,.sn-home h3{font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}

/* v3.2.12 — Unit-tile label clipping fix (desktop 5-column grid): the tile
   name is a flex item that refused to shrink, so long names ("Research
   Methodology", "Culture & Symbolic Transformations") were cut at the tile
   edge. Let it shrink and wrap. */
.unit-tile .unit-name{flex:1;min-width:0;overflow-wrap:break-word}

/* ================= v3.2.12 — homepage fixes (user-reported, 2026-12-04) ================= */

/* 1. Homepage prose paragraphs had NO spacing: the theme's global *{margin:0}
   reset leaves every <p> with no bottom margin, and no rule covered the
   homepage sections, so the "How to use SociologyNET" paragraphs ran together
   as one block. Give every homepage paragraph a gap; the last one in each
   block needs none; empty <p> wrappers left by the block conversion around
   HTML comments are hidden. FAQ answers keep their own padding-only spacing. */
.sn-home p{margin:0 0 16px}
.sn-home p:last-child{margin-bottom:0}
.sn-home p:empty{display:none}
.sn-home .faq-item p{margin:0}

/* 2. Unit tiles: the Custom HTML -> blocks conversion left <br> elements as
   direct children of .unit-tiles (they became grid items and occupied cells,
   pushing the layout into a 3-2-3-2 stagger) and inside .unit-tile (flex
   items). Hide them so only the 10 tiles lay out (5+5 at desktop). */
.unit-tiles>br,.unit-tile>br{display:none}

/* 3. Tile labels must NEVER split a word mid-word (the v3.2.4
   overflow-wrap:break-word did exactly that: "Sociolog/ical"). Wrap only at
   word boundaries, and give the label a wider column (smaller icon, tighter
   padding/gap) so long names fit cleanly. */
.unit-tile .unit-name{overflow-wrap:normal;word-break:normal;hyphens:none}
@media(min-width:1024px){.unit-tile{padding:18px 14px 14px;gap:10px}.unit-ico{width:40px;height:40px}.unit-ico svg{width:22px;height:22px}}

/* 4. Primary menu: user asked for NO capitals — the nav links were forced
   uppercase by the theme. Normal case, slightly larger so the menu still
   reads clearly, tracking reset. */
.main-nav a{text-transform:none;font-size:.88rem;letter-spacing:0}

/* ================= v3.2.12 — Latest cards + mobile polish (user-reported, 2026-12-04) ================= */

/* 1. Latest cards: the Query Loop post was a row flex (image | title | date
   side by side), so the title was squeezed into a narrow middle column,
   ran to 6-9 lines, and every card stretched to the tallest one — big dead
   gaps inside the shorter cards. Rebuild as a grid: image left spanning both
   rows, title top-right, date pinned to the card bottom, so the space reads
   as deliberate spacing instead of a hole. */
.sn-home .wp-block-post{display:grid;grid-template-columns:118px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:14px}
.sn-home .wp-block-post-featured-image{grid-column:1;grid-row:1/3}
.sn-home .wp-block-post-title{grid-column:2;grid-row:1;margin:0 0 6px}
.sn-home .wp-block-post-date{grid-column:2;grid-row:2;align-self:end;margin:0}

/* 2. Latest cards on phones: a 118px image + side-by-side title/date in a
   ~320px card squeezed the title into ~100px (10+ lines). Stack instead —
   image on top full-width, title and date below it. */
@media(max-width:640px){
  .sn-home .wp-block-post{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto}
  .sn-home .wp-block-post-featured-image{grid-column:1;grid-row:1}
  .sn-home .wp-block-post-featured-image img{width:100%;height:auto;aspect-ratio:16/9}
  .sn-home .wp-block-post-title{grid-column:1;grid-row:2;margin:12px 0 6px}
  .sn-home .wp-block-post-date{grid-column:1;grid-row:3}
}

/* 3. Hero search on phones: the button covered the placeholder text
   ("Search to…"). Stack the search vertically so the input gets the full
   width and the button sits below it. */
@media(max-width:640px){
  .hero-search{flex-direction:column}
  .hero-search button{padding:13px 20px;width:100%}
}

/* 4. Unit tiles on phones: "Transformations" sat tight to the tile edge.
   Slightly smaller label so the longest names breathe. */
@media(max-width:640px){
  .unit-name{font-size:.85rem}
}

/* ================= v3.2.12 — prep cards 2+1 stagger (same <br> artifact as the tiles) ================= */

/* The Custom HTML -> blocks conversion left <br> elements as direct children
   of .prep-grid (they became grid items and occupied cells, so the 3 prep
   cards laid out 2+1 with "Solved PYQs" centred on row 2) and of
   .prep-steps, and as flex items inside .prep-card. The live HTML shows 14
   <br>s around .prep-grid and 11 around .prep-steps, plus 12 <br>s directly
   after closing </a> tags. Hide them so only the real cards lay out. */
.prep-grid>br,.prep-card>br,.prep-steps>br,.prep-steps li>br,.sn-tips>br,.faq-list>br{display:none}

/* ================= v3.2.12 (continued) — Latest cards residual gaps + mobile thumbnail ================= */

/* 1. Latest cards: equal-height rows left a blank band between the title and
   the bottom-pinned date in the shorter cards. Let each card be exactly as
   tall as its own content instead — no dead space inside any card. */
.sn-home .wp-block-post-template{align-items:start}

/* 2. Mobile Latest thumbnails stayed small (~40% wide): the image's <a>
   wrapper is inline, so width:100% on the img had no full-width block to
   fill. Make the link a block and the figure full width. */
@media(max-width:640px){
  .sn-home .wp-block-post-featured-image{width:100%}
  .sn-home .wp-block-post-featured-image a{display:block}
}

/* 3. Hero search placeholder clipped on phones ("Search topics, thinkers,
   conc"): give the input a little more room (smaller left padding for the
   icon) and slightly smaller text. The placeholder wording itself is
   shortened separately in the page content (pending live edit). */
@media(max-width:640px){
  .home-hero .hero-search input{padding-left:44px;font-size:.95rem}
  .hero-search-ico{left:14px}
}

/* ================= v3.2.12 — hero search repair on phones (v3.2.7 + search fix only) ================= */

/* v3.2.6 stacked the pill vertically, which broke it into a tall oval, and
   the conversion left <br> elements as direct children of the form, which
   became flex items and added dead bands above the input and below the
   button. Revert to the horizontal pill and hide the stray <br>s.
   Everything else stays exactly as v3.2.7 (no prep-card or section changes). */
.hero-search>br{display:none}
@media(max-width:640px){
  .home-hero .hero-search{flex-direction:row}
  .home-hero .hero-search button{width:auto;padding:12px 20px;font-size:.95rem}
  .home-hero .hero-search input{padding:12px 8px 12px 46px;font-size:.95rem}
  .home-hero .hero-search-ico{left:16px}
}

/* ================= v3.2.12 — policy links moved from Quick Links to the footer bottom bar ================= */

/* Privacy Policy and Disclaimer now live in the bottom bar beside the
   copyright, so they read as legal links, not navigation. */
.footer-bottom a{color:#b9c4da;text-decoration:none}
.footer-bottom a:hover{color:var(--gold-light);text-decoration:underline}
.footer-bottom .footer-legal-sep{color:#55678c;margin:0 2px}

/* ================= v3.2.12 — copyright last on phones ================= */

/* On phones the copyright line must sit at the very bottom of the footer
   bar, below the legal links and the tagline. The bar is split into three
   spans (copy / legal links / tagline) and reordered on mobile. On desktop
   the copy and the links stay clustered on the left, tagline on the right. */
.footer-legal{margin-right:auto}
.footer-legal::before{content:"·";color:#55678c;margin-right:10px}
@media(max-width:640px){
  .footer-bottom{flex-direction:column;align-items:center;text-align:center;gap:6px}
  .footer-bottom .footer-legal{order:1;margin-right:0}
  .footer-bottom .footer-legal::before{display:none}
  .footer-bottom .footer-made{order:2}
  .footer-bottom .footer-copy{order:3}
}

/* ================= v3.2.13 — Rank Math FAQ block styled like the old FAQ section (band selectors fixed in v3.2.14) =================
   The homepage FAQ is now the Rank Math FAQ block (the old <details> section was
   removed with the broken script). These rules make the block look like the old
   section: wash band, centred kicker + heading, white cards, gold "+" circle
   that rotates when open, answers hidden until clicked (JS in js/theme.js). */

/* 1. The wash band: kicker paragraph + H2 + FAQ block, one continuous band.
   v3.2.14 fix: the Group block renders an inner-container div, so the kicker,
   heading and FAQ block are NOT direct children of .sn-home. The v3.2.13 ">"
   selectors never matched. Use descendant/adjacent selectors instead. */
.sn-home p.sec-kicker{display:flex;justify-content:center;margin:0;padding:56px 0 14px;background:var(--wash)}
.sn-home p.sec-kicker + h2,
.sn-home h2:has(+ #rank-math-faq){margin:0;padding:56px 0 42px;background:var(--wash);text-align:center;font-size:2.15rem}
.sn-home p.sec-kicker + h2{padding-top:0}
.sn-home #rank-math-faq{margin:0;padding:0 0 56px;background:var(--wash)}
@media(max-width:720px){
	.sn-home p.sec-kicker{padding:52px 0 14px}
	.sn-home p.sec-kicker + h2,
	.sn-home h2:has(+ #rank-math-faq){padding:52px 0 42px}
	.sn-home #rank-math-faq{padding:0 0 52px}
}

/* 2. The list: like .faq-list. */
.sn-home #rank-math-faq .rank-math-list{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:12px}

/* 3. Each item: like .faq-item. */
.sn-home .rank-math-list-item{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-s);overflow:hidden}

/* 4. The question: like .faq-item summary, with the gold "+" circle. */
.sn-home .rank-math-question{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;font-weight:700;color:var(--brand);font-size:1rem;margin:0;overflow-wrap:break-word}
.sn-home .rank-math-question::after{content:"+";flex:none;width:30px;height:30px;border-radius:50%;background:var(--gold-soft);color:var(--gold-deep);display:flex;align-items:center;justify-content:center;font-size:1.15rem;font-weight:800;transition:transform .2s ease}
.sn-home .rank-math-list-item.open .rank-math-question::after{transform:rotate(45deg)}
.sn-home .rank-math-question:hover{color:var(--gold-deep)}

/* 5. The answer: hidden until its question is clicked (JS toggles .open). */
.sn-home .rank-math-answer{display:none}
.sn-home .rank-math-list-item.open .rank-math-answer{display:block}
.sn-home .rank-math-answer p{margin:0;padding:0 22px 20px;color:var(--muted);font-size:.95rem}
