/*
Theme Name: SureMedia University
Theme URI: https://suremedia.university
Author: SureMedia
Author URI: https://suremedia.university
Description: Lightweight, zero-bloat dark-mode directory theme for Kenya's micro-learning library of practical business setup PDFs. Vanilla CSS and JS, no frameworks.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: suremedia-university
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--bg-canvas: #090D16;
	--bg-surface: #111827;
	--bg-surface-hover: #161F33;
	--border-subtle: #1F2937;
	--border-emerald: #10B981;
	--accent-emerald: #10B981;
	--accent-emerald-dark: #059669;
	--accent-gold: #F59E0B;
	--text-primary: #F9FAFB;
	--text-secondary: #9CA3AF;
	--on-emerald: #03130C;
	--glass: rgba(9, 13, 22, 0.85);
	--radius: 14px;
	--radius-sm: 10px;
	--max: 1200px;
	--header-h: 64px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg-canvas);
	background-image: radial-gradient(60rem 28rem at 50% -8rem, rgba(16, 185, 129, 0.09), transparent 70%);
	background-repeat: no-repeat;
	color: var(--text-primary);
	font: 400 16px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-emerald); outline-offset: 2px; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; z-index: 100; width: auto; height: auto;
	clip: auto; padding: 10px 14px; background: var(--accent-emerald); color: var(--on-emerald); border-radius: 8px;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
	font: 600 14px/1.2 var(--font-body); text-align: center; white-space: nowrap;
	transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn--buy {
	background: var(--accent-emerald); color: var(--on-emerald);
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
}
.btn--buy:hover { background: var(--accent-emerald-dark); color: #fff; box-shadow: 0 6px 22px rgba(16, 185, 129, 0.3); }
.btn--buy.is-disabled { background: var(--border-subtle); color: var(--text-secondary); pointer-events: none; box-shadow: none; }
.btn--ghost { background: transparent; border-color: var(--border-subtle); color: var(--text-primary); }
.btn--ghost:hover { border-color: var(--text-secondary); background: rgba(255, 255, 255, 0.04); }
.btn--lg { padding: 15px 20px; font-size: 16px; width: 100%; }

/* ==========================================================================
   4. Sticky glass header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--glass);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-subtle);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { font: 800 17px/1 var(--font-head); letter-spacing: 0.01em; white-space: nowrap; }
.brand span { color: var(--accent-emerald); }
.custom-logo { max-height: 36px; width: auto; }

.count-badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px;
	border: 1px solid var(--border-subtle); border-radius: 999px;
	font: 500 12px/1 var(--font-mono); color: var(--text-secondary); white-space: nowrap;
}
.count-badge::before {
	content: ''; width: 7px; height: 7px; border-radius: 50%;
	background: var(--accent-emerald); box-shadow: 0 0 8px var(--accent-emerald);
}

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__list a { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; color: var(--text-secondary); transition: color 0.2s, background-color 0.2s; }
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.header-cta { padding: 9px 14px; }

.nav-toggle {
	display: none; margin-left: auto; width: 42px; height: 42px; padding: 0;
	background: transparent; border: 1px solid var(--border-subtle); border-radius: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block; width: 18px; height: 2px; background: var(--text-primary); border-radius: 2px; margin: 0 auto; position: relative; content: '';
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }

@media (max-width: 900px) {
	.count-badge { display: none; }
	.nav-toggle { display: block; }
	.header-cta { display: none; }
	.nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px 1rem 16px;
		background: var(--bg-canvas); border-bottom: 1px solid var(--border-subtle);
	}
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; }
	.nav__list a { padding: 12px; font-size: 16px; }
	.nav .header-cta { display: flex; margin-top: 10px; }
}
@media (min-width: 901px) { .nav .header-cta { display: none; } .site-header__inner > .header-cta { display: inline-flex; } }

/* ==========================================================================
   5. Hero + search + filters
   ========================================================================== */
.hero { padding: 56px 0 28px; text-align: center; }
.hero__title { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 22ch; margin: 0 auto 14px; }
.hero__sub { color: var(--text-secondary); font-size: clamp(1rem, 2vw, 1.125rem); max-width: 60ch; margin: 0 auto 28px; }

.search {
	position: relative; display: flex; align-items: center; max-width: 760px; margin: 0 auto 22px;
	background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 18px;
	box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.06), 0 10px 40px rgba(16, 185, 129, 0.08);
	transition: border-color 0.25s, box-shadow 0.25s;
}
.search:focus-within { border-color: var(--border-emerald); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16), 0 0 48px rgba(16, 185, 129, 0.28); }
.search svg { position: absolute; left: 20px; width: 22px; height: 22px; color: var(--accent-emerald); pointer-events: none; }
.search input[type="search"] {
	width: 100%; padding: 20px 20px 20px 56px; background: transparent; border: 0; outline: 0;
	font-size: 1.125rem; color: var(--text-primary); -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--text-secondary); }

.filters { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill {
	padding: 8px 14px; background: transparent; border: 1px solid var(--border-subtle); border-radius: 999px;
	font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: all 0.2s;
}
.pill:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.pill.is-active { background: rgba(16, 185, 129, 0.12); border-color: var(--border-emerald); color: var(--accent-emerald); }

.selects { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.select {
	min-width: 170px; padding: 10px 36px 10px 14px; background-color: var(--bg-surface); color: var(--text-primary);
	border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); font-size: 14px;
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.select:focus { border-color: var(--border-emerald); outline: 0; }
.link-btn { background: none; border: 0; padding: 10px 6px; color: var(--accent-gold); font-size: 14px; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }

/* ==========================================================================
   6. Directory grid + cards
   ========================================================================== */
.directory { padding: 28px 0 72px; }
.directory__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.status { margin: 0; font: 500 13px/1.4 var(--font-mono); color: var(--text-secondary); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; transition: opacity 0.2s; }
.grid.is-loading { opacity: 0.5; pointer-events: none; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

/* Scroll reveal (only hidden when JS is active) */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.25s, box-shadow 0.25s, background-color 0.25s; }

.card {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius);
}
.card:hover, .card:focus-within {
	background: var(--bg-surface-hover); border-color: var(--border-emerald);
	box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15);
}
.js .card.is-visible:hover, .js .card.is-visible:focus-within { transform: translateY(-4px); }
.card:hover { transform: translateY(-4px); }

.card__media { position: relative; aspect-ratio: 16 / 9; background: #0E1626; overflow: hidden; }
.card__media > a { display: block; width: 100%; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #0F1B2D, #0B3B2E); }

.badge {
	position: absolute; top: 10px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	padding: 4px 10px; border-radius: 999px; font-size: 12px; line-height: 1.4; font-weight: 600;
	background: rgba(9, 13, 22, 0.72); border: 1px solid rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	z-index: 2;
}
.badge--code { left: 10px; font-family: var(--font-mono); font-weight: 700; color: var(--accent-gold); }
.badge--faculty { right: 10px; color: var(--text-primary); }
a.badge--faculty:hover { border-color: var(--border-emerald); }

.card__body { padding: 16px 16px 6px; flex: 1; }
.card__title { font-size: 1.0625rem; margin-bottom: 12px; }
.card__title a:hover { color: var(--accent-emerald); }

.metrics { display: flex; flex-wrap: wrap; gap: 6px; }
.metrics li {
	padding: 4px 9px; border: 1px solid var(--border-subtle); border-radius: 999px;
	font: 500 12px/1.4 var(--font-mono); color: var(--text-secondary); white-space: nowrap;
}
.metrics .is-profit { color: var(--accent-emerald); border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.07); }

.card__cta { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; padding: 14px 16px 16px; }
.card__cta .btn { padding: 10px 8px; font-size: 13px; }

.empty { text-align: center; color: var(--text-secondary); padding: 48px 0; }
.more { display: flex; justify-content: center; margin-top: 32px; }

/* ==========================================================================
   7. Single guide
   ========================================================================== */
.crumbs { padding: 22px 0 8px; font-size: 14px; color: var(--text-secondary); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }
.crumbs a:hover { color: var(--accent-emerald); }
.crumbs [aria-current] { color: var(--text-primary); }

.single-layout { display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); gap: 32px; align-items: start; padding-bottom: 64px; }
.guide__code { display: inline-block; margin-bottom: 10px; font: 700 13px/1 var(--font-mono); color: var(--accent-gold); }
.guide__title { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.guide__media { margin: 18px 0 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-subtle); aspect-ratio: 16 / 9; background: #0E1626; }
.guide__media img { width: 100%; height: 100%; object-fit: cover; }

.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 28px; }
.glance div { padding: 14px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); }
.glance dt { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.glance dd { margin: 0; font: 700 15px/1.2 var(--font-mono); }
.glance .is-profit dd { color: var(--accent-emerald); }
@media (max-width: 640px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.entry-content { max-width: 70ch; }
.entry-content h2 { font-size: 1.5rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.5em; }
.entry-content p, .entry-content li { color: #D1D5DB; }
.entry-content a { color: var(--accent-emerald); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.entry-content ul { list-style: disc; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent-emerald); color: var(--text-secondary); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table { display: block; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 8px 12px; border: 1px solid var(--border-subtle); }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
body.admin-bar .sidebar { top: calc(var(--header-h) + 52px); }
.checkout {
	padding: 22px; background: var(--bg-surface); border: 1px solid var(--border-emerald); border-radius: var(--radius);
	box-shadow: 0 0 44px rgba(16, 185, 129, 0.16);
}
.checkout__label { margin: 0 0 4px; font-size: 13px; color: var(--text-secondary); }
.checkout__price { margin: 0 0 16px; font: 700 2.25rem/1 var(--font-mono); }
.checkout__price small { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }
.trust { margin-top: 18px; display: grid; gap: 10px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); }
.trust li::before { content: '\2713'; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

.related { padding: 8px 0 72px; }
.related h2 { font-size: 1.5rem; margin-bottom: 18px; }

.buybar { display: none; }
@media (max-width: 768px) {
	.single-layout { grid-template-columns: 1fr; }
	.sidebar, body.admin-bar .sidebar { position: static; }
	body.single { padding-bottom: 88px; }
	.buybar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
		padding: 12px 1rem calc(12px + env(safe-area-inset-bottom, 0px));
		background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
		border-top: 1px solid var(--border-emerald);
	}
	.buybar__price { font: 700 1.125rem/1.1 var(--font-mono); white-space: nowrap; }
	.buybar__price small { display: block; font: 400 11px/1.2 var(--font-body); color: var(--text-secondary); }
	.buybar .btn { flex: 1; }
}

/* ==========================================================================
   8. Archive / page
   ========================================================================== */
.page-head { padding: 44px 0 20px; }
.page-head h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 8px; }
.page-head p { color: var(--text-secondary); max-width: 60ch; }
.page-body { padding: 16px 0 72px; }
.page-body .entry-content { margin-inline: auto; }

.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.nav-links a, .nav-links span {
	padding: 9px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-secondary);
}
.nav-links a:hover { border-color: var(--border-emerald); color: var(--text-primary); }
.nav-links .current { background: rgba(16, 185, 129, 0.12); border-color: var(--border-emerald); color: var(--accent-emerald); }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border-subtle); background: #060910; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font-size: 14px; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text-secondary); font-size: 14px; transition: color 0.2s; }
.footer-grid a:hover { color: var(--accent-emerald); }
.footer-note { margin: 12px 0 0; max-width: 36ch; font-size: 14px; color: var(--text-secondary); }
.copyright { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-secondary); text-align: center; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ==========================================================================
   10. Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   11. v2 additions: eyebrow, trust strip, single extras, pages, forms, FAQ
   ========================================================================== */
.eyebrow {
	display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
	border: 1px solid rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.08);
	color: var(--accent-gold); font: 600 12px/1.3 var(--font-body); letter-spacing: 0.06em;
}
.btn--sm { padding: 10px 14px; font-size: 14px; }
.spacer { height: 72px; }

.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 14px 0 6px; }
.trust-strip li { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }

/* Card image: dark gradient overlay so badges stay readable */
.card__media::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to bottom, rgba(9, 13, 22, 0.55) 0%, rgba(9, 13, 22, 0) 38%, rgba(9, 13, 22, 0.35) 100%);
}

/* Single guide extras */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.tag {
	display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
	background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.35); color: var(--accent-emerald);
}
.tag--county { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.35); color: var(--accent-gold); }
a.tag:hover { background: rgba(16, 185, 129, 0.18); }
.page-head .tag { margin-bottom: 12px; }

.checkout { border-top: 4px solid var(--accent-emerald); }
.code-badge {
	display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 6px;
	font: 700 13px/1.2 var(--font-mono); color: var(--accent-gold);
	background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.35);
}
.checkout__price { margin-top: 0; }
.checkout__sub { margin: 24px 0 12px; font-size: 14px; }
.secure { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.secure li {
	padding: 4px 10px; border: 1px solid var(--border-subtle); border-radius: 999px;
	font-size: 12px; color: var(--text-secondary);
}
.trust { margin-top: 0; }

/* Pulsing CTA: transform + opacity only (GPU friendly) */
.btn--pulse { position: relative; isolation: isolate; }
.btn--pulse::after {
	content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: var(--accent-emerald); animation: smu-pulse 2.2s ease-out infinite;
}
@keyframes smu-pulse {
	0% { transform: scale(1); opacity: 0.55; }
	70%, 100% { transform: scale(1.08, 1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .btn--pulse::after { animation: none; display: none; } }

/* Pages */
.page-wrap { max-width: 900px; margin-inline: auto; }
.page-wrap .entry-content, .page-body .entry-content { max-width: none; }
.entry-content--wide { max-width: none; }
.entry-content strong { color: var(--text-primary); }
.callout {
	margin: 1.4em 0; padding: 16px 18px; background: var(--bg-surface);
	border: 1px solid var(--border-subtle); border-left: 3px solid var(--accent-emerald); border-radius: var(--radius-sm);
}
.callout p:last-child { margin-bottom: 0; }

/* County grid ([smu_counties]) */
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 1.4em 0; padding: 0; list-style: none; }
.entry-content .county-grid { list-style: none; padding: 0; }
.county-grid a {
	display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-decoration: none;
	background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
	color: var(--text-primary); transition: border-color 0.2s, transform 0.2s;
}
.county-grid a:hover { border-color: var(--border-emerald); transform: translateY(-2px); }
.county-grid small { color: var(--text-secondary); font-size: 12px; }

/* FAQ accordions */
.faq { margin: 1.4em 0; }
.faq-item { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq-item summary {
	cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
	font: 500 20px/1 var(--font-mono); color: var(--accent-emerald);
}
.faq-item[open] { border-color: rgba(16, 185, 129, 0.45); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item > div { padding: 0 16px 6px; }

/* Forms */
.smu-form { display: grid; gap: 16px; margin: 1em 0; }
.smu-form .field { display: grid; gap: 6px; }
.smu-form label { font-size: 14px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.smu-form input[type="text"], .smu-form input[type="email"], .smu-form textarea, .smu-form select,
.search--inline input[type="search"] {
	width: 100%; padding: 12px 14px; background-color: var(--bg-surface); color: var(--text-primary);
	border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); font-size: 16px;
}
.smu-form select { -webkit-appearance: none; appearance: none; padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; }
.smu-form textarea { resize: vertical; min-height: 110px; }
.smu-form input:focus, .smu-form textarea:focus, .smu-form select:focus, .search--inline input:focus { outline: 0; border-color: var(--border-emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request-box { margin: 1.4em 0; padding: 22px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); }
.notice { margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; }
.notice--ok { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.45); color: #A7F3D0; }
.notice--err { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.45); color: #FCA5A5; }
.search--inline { max-width: 520px; margin: 16px 0 0; box-shadow: none; background: transparent; border: 0; }
