/*
Theme Name: Discount LTD
Theme URI: https://discount.ltd/
Author: Discount LTD
Author URI: https://discount.ltd/
Description: A fast, SEO-first WordPress theme built for coupon and deal websites. Ships with coupon stub cards, one-click code copying, automatic FAQ and Article schema, breadcrumbs, Open Graph tags and a one-click page setup for privacy policy, terms, contact and disclosure pages.
Version: 2.5.0
Requires at least: 6.0
Tested up to: 6.6
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: discount-ltd
Tags: coupons, deals, seo, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--ink: #101426;
	--ink-2: #2a3352;
	--ink-3: #5b6484;
	--paper: #ffffff;
	--mist: #f3f5fa;
	--mist-2: #e9edf7;
	--line: #e2e7f2;
	--signal: #ff5a1f;
	--signal-dark: #e04409;
	--signal-soft: #fff1ea;
	--mint: #0e8a6a;
	--mint-soft: #e6f5f0;
	--gold: #ffc53d;
	--gold-soft: #fff7e2;

	--font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Consolas", monospace;

	--wrap: 1160px;
	--wrap-narrow: 760px;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(16, 20, 38, .06), 0 2px 8px rgba(16, 20, 38, .04);
	--shadow-md: 0 6px 24px rgba(16, 20, 38, .09);
	--shadow-lg: 0 18px 50px rgba(16, 20, 38, .14);
	--speed: .18s;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

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

a { color: var(--signal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.2;
	letter-spacing: -.02em;
	margin: 0 0 .6em;
	font-weight: 700;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
h4 { font-size: 1.13rem; }

p, ul, ol, table, figure, pre, blockquote { margin: 0 0 1.15em; }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: .45em; }

blockquote {
	margin-left: 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--signal);
	background: var(--mist);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: 1.02rem;
}

code, kbd, pre { font-family: var(--font-mono); font-size: .92em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--ink);
	color: #fff;
	padding: .75rem 1.25rem;
	border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

/* ==========================================================================
   3. Buttons & chips
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	padding: .95rem 1.6rem;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	text-align: center;
	transition: transform var(--speed) ease, background var(--speed) ease, box-shadow var(--speed) ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--signal); color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 31, .28); }
.btn-primary:hover { background: var(--signal-dark); color: #fff; }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-block { width: 100%; }
.btn-sm { padding: .65rem 1.15rem; font-size: .9rem; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: .32rem .7rem;
	border-radius: 999px;
	background: var(--mist);
	color: var(--ink-2);
	font-family: var(--font-display);
}
.chip-verified { background: var(--mint-soft); color: var(--mint); }
.chip-hot { background: var(--signal-soft); color: var(--signal-dark); }
.chip-gold { background: var(--gold-soft); color: #8a6100; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.topbar {
	background: var(--ink);
	color: #cfd6ea;
	font-size: .85rem;
	padding: .55rem 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar strong { color: #fff; }
.topbar .topbar-note { display: flex; align-items: center; gap: .5rem; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(14, 138, 106, .25); flex: none; }

.site-header {
	position: sticky;
	top: 0;
	/* The admin bar is fixed on screens above 600px, so the header has to sit under it. */
	z-index: 90;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }

.admin-bar .site-header { top: 32px; }
.admin-bar .sticky-side { top: 124px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Anchor links land below the sticky header instead of behind it. */
[id] { scroll-margin-top: 96px; }

.site-brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; }
.brand-mark {
	width: 38px; height: 38px;
	border-radius: 11px;
	background: linear-gradient(140deg, var(--signal), #ff8a4c);
	color: #fff;
	display: grid; place-items: center;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.1rem;
	flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-title { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; margin: 0; letter-spacing: -.02em; }
.site-title a { color: var(--ink); }
.site-title a:hover { text-decoration: none; color: var(--signal-dark); }
.site-tagline { font-size: .76rem; color: var(--ink-3); }

.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; position: relative; }
.main-nav a {
	display: block;
	padding: .55rem .8rem;
	border-radius: 8px;
	font-size: .95rem;
	font-weight: 600;
	color: var(--ink-2);
}
.main-nav a:hover { background: var(--mist); color: var(--ink); text-decoration: none; }
.main-nav .current-menu-item > a { color: var(--signal-dark); }

.main-nav .sub-menu {
	position: absolute;
	top: 100%; left: 0;
	min-width: 210px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	padding: .4rem;
	display: none;
	flex-direction: column;
	z-index: 20;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: flex; }

.nav-toggle {
	display: none;
	background: var(--mist);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: .55rem .7rem;
	cursor: pointer;
	color: var(--ink);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px 0; border-radius: 2px; }

.header-cta { flex: none; }

@media (max-width: 900px) {
	.nav-toggle { display: block; order: 3; }
	.header-cta { display: none; }
	.main-nav {
		order: 4;
		flex-basis: 100%;
		display: none;
		padding-bottom: 1rem;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 1rem; }
	.header-inner { flex-wrap: wrap; }
}

/* ==========================================================================
   5. Coupon stub — the signature element
   ========================================================================== */
.stub {
	container-type: inline-size;
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.stub::before,
.stub::after {
	content: "";
	position: absolute;
	width: 26px; height: 26px;
	background: var(--notch, #fff);
	border: 1px solid var(--line);
	border-radius: 50%;
	top: 50%;
	transform: translateY(-50%);
}
.stub::before { left: -14px; border-right-color: transparent; }
.stub::after { right: -14px; border-left-color: transparent; }

.stub-featured { border-color: var(--signal); box-shadow: 0 18px 44px rgba(255, 90, 31, .18); }
.stub-featured::before,
.stub-featured::after { border-color: var(--signal); }

.stub-head {
	padding: 1.4rem 1.5rem 1.1rem;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}
.stub-value {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 2.35rem;
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--signal-dark);
}
.stub-value small { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: .4rem; }

.stub-body { padding: 0 1.5rem 1.1rem; flex: 1 1 auto; }
p.stub-title, h3.stub-title, h4.stub-title { font-family: var(--font-display); font-weight: 700; line-height: 1.25; font-size: 1.08rem; margin: 0 0 .4rem; color: var(--ink); }
.stub-desc { font-size: .93rem; color: var(--ink-3); margin: 0; }

.stub-perf {
	border-top: 2px dashed var(--line);
	margin: 0 1rem;
}

.stub-foot { padding: 1.1rem 1.5rem 1.5rem; }

.code-row { display: flex; gap: .6rem; align-items: stretch; }

/* In a narrow card the code takes the full width and the button drops below it,
   so the characters are never cut off. */
@container (max-width: 380px) {
	.code-row { flex-direction: column; }
	.copy-btn { width: 100%; padding: .75rem; }
	.code-chip { font-size: 1rem; letter-spacing: .08em; }
}
.code-chip {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 1.12rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	white-space: nowrap;
	background: var(--mist);
	border: 2px dashed var(--ink-3);
	border-radius: 12px;
	padding: .8rem .6rem;
	color: var(--ink);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
.copy-btn {
	flex: none;
	background: var(--ink);
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 0 1.15rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .92rem;
	cursor: pointer;
	transition: background var(--speed) ease;
}
.copy-btn:hover { background: var(--signal); }
.copy-btn.is-copied { background: var(--mint); }

.stub-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-top: .85rem;
	font-size: .8rem;
	color: var(--ink-3);
	flex-wrap: wrap;
}
.stub-actions { margin-top: .9rem; }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
	--notch: var(--mist);
	background: linear-gradient(180deg, var(--mist) 0%, #fff 78%);
	padding: 3.2rem 0 3rem;
	border-bottom: 1px solid var(--line);
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 3rem;
	align-items: center;
}
.hero h1 { margin-bottom: .7rem; }
.hero h1 .accent { color: var(--signal-dark); }
.hero-lede { font-size: 1.1rem; color: var(--ink-2); max-width: 55ch; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 1.1rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .86rem; color: var(--ink-3); }
.hero-trust span { display: flex; align-items: center; gap: .4rem; }
.hero-trust svg { color: var(--mint); flex: none; }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; gap: 2rem; }
	.hero { padding: 2.2rem 0 2.4rem; }
}

/* ==========================================================================
   7. Sections & layout
   ========================================================================== */
.section { padding: 3.4rem 0; }
.section-mist { background: var(--mist); --notch: var(--mist); }
.section-ink { background: var(--ink); color: #d7dcee; }
.section-ink h2, .section-ink h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 2.2rem; text-align: center; }
.section-head p { color: var(--ink-3); margin: 0; }
.section-ink .section-head p { color: #a9b2cd; }
.eyebrow {
	display: inline-block;
	font-family: var(--font-display);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--signal-dark);
	margin-bottom: .6rem;
}

.grid { display: grid; gap: 1.5rem; }
.grid-1 { grid-template-columns: minmax(0, 1fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; padding: 2.8rem 0 3.5rem; }
.content-area.no-sidebar { grid-template-columns: minmax(0, 1fr); max-width: var(--wrap-narrow); }
@media (max-width: 940px) { .content-area { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   8. Steps, cards, tables
   ========================================================================== */
.step-list { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.step-list li {
	counter-increment: step;
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.15rem 1.3rem 1.15rem 4rem;
	margin: 0;
	box-shadow: var(--shadow-sm);
}
.step-list li::before {
	content: counter(step);
	position: absolute;
	left: 1.15rem; top: 1.15rem;
	width: 34px; height: 34px;
	border-radius: 10px;
	background: var(--ink);
	color: #fff;
	display: grid; place-items: center;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .95rem;
}
.step-list strong { display: block; font-family: var(--font-display); margin-bottom: .15rem; }

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.4rem;
	box-shadow: var(--shadow-sm);
	height: 100%;
}
.card h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.card p { margin: 0; font-size: .95rem; color: var(--ink-3); }
.card-icon {
	width: 42px; height: 42px;
	border-radius: 12px;
	background: var(--signal-soft);
	color: var(--signal-dark);
	display: grid; place-items: center;
	margin-bottom: .9rem;
}

.stat-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1rem; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stat-label { font-size: .85rem; color: var(--ink-3); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; margin: 0; font-size: .95rem; }
th, td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { background: var(--ink); color: #fff; font-family: var(--font-display); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fbfcfe; }
td .code-inline {
	font-family: var(--font-mono);
	font-weight: 700;
	letter-spacing: .08em;
	background: var(--mist);
	border: 1px dashed var(--ink-3);
	border-radius: 8px;
	padding: .3rem .55rem;
	display: inline-block;
	text-transform: uppercase;
}

/* ==========================================================================
   9. FAQ
   ========================================================================== */
.faq { display: grid; gap: .75rem; }
.faq-item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.faq-item summary {
	cursor: pointer;
	padding: 1.05rem 3rem 1.05rem 1.25rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.02rem;
	position: relative;
	list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+";
	position: absolute;
	right: 1.15rem; top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	color: var(--signal);
	line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { background: var(--mist); }
.faq-answer { padding: 1.05rem 1.25rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .97rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ==========================================================================
   10. Posts & archive
   ========================================================================== */
.post-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-sm);
	transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card .thumb { display: block; aspect-ratio: 16 / 9; background: var(--mist-2); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card h3 { font-size: 1.08rem; margin: 0; }
.post-card h3 a { color: var(--ink); }
.post-card p { margin: 0; font-size: .93rem; color: var(--ink-3); }
.post-meta { font-size: .8rem; color: var(--ink-3); display: flex; gap: .75rem; flex-wrap: wrap; }

.entry-header { margin-bottom: 1.6rem; }
.entry-title { margin-bottom: .5rem; }
.entry-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.6rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.2rem; }
.entry-content h3 { margin-top: 1.7rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content ul li::marker { color: var(--signal); }

.toc {
	background: var(--mist);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.15rem 1.35rem;
	margin-bottom: 1.8rem;
}
.toc h2 { font-size: 1rem; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .08em; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .95rem; }
.toc li { margin-bottom: .3rem; }

.breadcrumbs { font-size: .84rem; color: var(--ink-3); padding: .9rem 0; }
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--signal-dark); }
.breadcrumbs .sep { margin: 0 .45rem; opacity: .6; }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
	display: grid; place-items: center;
	min-width: 42px; height: 42px;
	padding: 0 .6rem;
	border-radius: 10px;
	border: 1px solid var(--line);
	color: var(--ink-2);
	font-weight: 600;
	background: #fff;
}
.pagination .page-numbers:hover { border-color: var(--ink); text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.share-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 2rem 0 0;
	padding: 1rem 1.15rem;
	background: var(--mist);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.share-label { font-family: var(--font-display); font-weight: 700; font-size: .9rem; margin-right: .35rem; }
.share-link {
	display: inline-block;
	font-size: .85rem;
	font-weight: 600;
	padding: .4rem .85rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--ink-2);
}
.share-link:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }

.section-ink .share-row { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); justify-content: center; }
.section-ink .share-label { color: #fff; }
.section-ink .share-link { background: transparent; border-color: rgba(255, 255, 255, .24); color: #d7dcee; }
.section-ink .share-link:hover { border-color: #fff; color: #fff; }

.author-box { display: flex; gap: 1rem; background: var(--mist); border-radius: var(--radius); padding: 1.25rem; margin-top: 2.5rem; }
.author-box img { border-radius: 50%; flex: none; }
.author-box h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.author-box p { margin: 0; font-size: .92rem; color: var(--ink-3); }

/* ==========================================================================
   11. Sidebar & widgets
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.widget {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.25rem;
	box-shadow: var(--shadow-sm);
}
.widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 2px solid var(--signal); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { border-bottom: 1px solid var(--line); padding: .5rem 0; margin: 0; font-size: .94rem; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink-2); }
.sticky-side { position: sticky; top: 92px; }

.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
	flex: 1;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: .7rem .9rem;
	font: inherit;
	font-size: .95rem;
	min-width: 0;
}
.search-form button { flex: none; }

/* ==========================================================================
   12. Callouts
   ========================================================================== */
.callout {
	border-radius: var(--radius);
	padding: 1.15rem 1.35rem;
	border: 1px solid var(--line);
	background: var(--mist);
	font-size: .96rem;
	margin: 1.6rem 0;
}
.callout strong { font-family: var(--font-display); }
.callout-tip { background: var(--mint-soft); border-color: rgba(14, 138, 106, .3); }
.callout-warn { background: var(--gold-soft); border-color: rgba(255, 197, 61, .55); }
.callout-note { background: var(--signal-soft); border-color: rgba(255, 90, 31, .3); }

.disclosure {
	font-size: .84rem;
	color: var(--ink-3);
	background: var(--mist);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	padding: .85rem 1.1rem;
	margin: 1.5rem 0;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #a9b2cd; padding: 3rem 0 1.5rem; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3,
.site-footer .footer-title {
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .92rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin: 0 0 .9rem;
}
.site-footer a { color: #a9b2cd; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand p { max-width: 42ch; }
.widget-footer { margin-bottom: 1.5rem; }
.widget-footer:last-child { margin-bottom: 0; }
.widget-footer ul { list-style: none; padding: 0; margin: 0; }
.widget-footer li { margin-bottom: .5rem; }
.site-footer .search-form { flex-direction: column; align-items: stretch; gap: .6rem; }
.site-footer .search-form input[type="search"] { width: 100%; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.site-footer .search-form .btn { width: 100%; background: var(--signal); color: #fff; border-color: transparent; }
.site-footer .search-form .btn:hover { background: var(--signal-dark); color: #fff; }
.widget-footer .search-form input[type="search"]::placeholder { color: #7f89a8; }

.comments-area { margin-top: 2.5rem; }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	margin-top: 2.2rem;
	padding-top: 1.2rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: .85rem;
}

/* ==========================================================================
   14. Utilities & motion
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.5rem; }
.lead { font-size: 1.08rem; color: var(--ink-2); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.toast {
	position: fixed;
	left: 50%; bottom: 24px;
	transform: translateX(-50%) translateY(12px);
	background: var(--ink);
	color: #fff;
	padding: .7rem 1.2rem;
	border-radius: 999px;
	font-size: .9rem;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
	z-index: 200;
}
.toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }

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

/* ==========================================================================
   15. WordPress core classes
   ========================================================================== */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { margin: 0 auto 1.5rem; display: block; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption { font-size: .85rem; color: var(--ink-3); text-align: center; }
.sticky .entry-title::before { content: "\2605 "; color: var(--gold); }
.bypostauthor > article { border-color: var(--signal); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.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: .7rem .9rem;
	font: inherit;
	font-size: .95rem;
}
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .submit { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: .85rem 1.6rem; font-family: var(--font-display); font-weight: 700; cursor: pointer; }

/* ==========================================================================
   16. 404 & search results
   ========================================================================== */
.page-404 { text-align: center; padding: 4rem 0; }
.page-404 .code-404 { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--mist-2); line-height: 1; letter-spacing: -.05em; }
.helpful-links { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }

/* ==========================================================================
   17. Print
   ========================================================================== */
@media print {
	.site-header, .site-footer, .topbar, .sidebar, .btn, .copy-btn { display: none !important; }
	body { font-size: 12pt; color: #000; }
	.code-chip { border: 1px solid #000; }
}
