/*
Theme Name: Spotlight Latest
Theme URI: https://spotlightlatest.com
Author: Spotlight Latest
Description: Custom magazine theme for Spotlight Latest — bold hero grid, highlights row, trending list and category sections. Uses your existing WordPress menus, widgets and Rank Math. Lightweight, no page builder required.
Version: 1.0.0
Requires at least: 6.0
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: spotlight
Tags: news, blog, magazine, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ---------- Tokens ---------- */
:root {
	--spl-accent: #e0144c;
	--spl-accent-dark: #b80f3c;
	--spl-ink: #111114;
	--spl-text: #2b2b31;
	--spl-muted: #6f6f78;
	--spl-line: #e7e7ea;
	--spl-bg: #ffffff;
	--spl-soft: #f6f6f7;
	--spl-pink: #fdecf1;
	--spl-black: #0a0a0b;
	--spl-radius: 10px;
	--spl-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--spl-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--spl-wrap: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--spl-bg);
	color: var(--spl-text);
	font-family: var(--spl-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--spl-accent); }
h1, h2, h3, h4, h5, h6 { color: var(--spl-ink); line-height: 1.25; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; }
.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; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: #fff; color: var(--spl-ink); padding: 10px 16px; border-radius: 6px;
}
.spl-wrap { max-width: var(--spl-wrap); margin: 0 auto; padding: 0 20px; }
.spl-main { padding: 18px 0 56px; }

/* ---------- Header ---------- */
.spl-header {
	background: var(--spl-black);
	color: #fff;
	position: sticky; top: 0; z-index: 100;
	box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.admin-bar .spl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .spl-header { top: 0; position: relative; } }
.spl-header__inner {
	display: flex; align-items: center; gap: 36px; height: 68px;
}
.spl-logo { display: flex; align-items: center; flex-shrink: 0; }
.spl-logo img { max-height: 42px; width: auto; }
.spl-logo__text {
	font-family: var(--spl-sans); font-weight: 900; font-size: 26px;
	letter-spacing: -.5px; text-transform: uppercase; color: #fff; line-height: 1;
}
.spl-logo__text span { color: var(--spl-accent); }
.spl-logo:hover .spl-logo__text { color: #fff; }

.spl-nav { flex: 1; min-width: 0; }
.spl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.spl-nav li { position: relative; }
.spl-nav a {
	display: block; padding: 23px 0; font-size: 14.5px; font-weight: 600; color: #e8e8ea;
	position: relative; white-space: nowrap;
}
.spl-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 2px;
	background: var(--spl-accent); transform: scaleX(0); transition: transform .2s;
}
.spl-nav a:hover { color: #fff; }
.spl-nav a:hover::after,
.spl-nav .current-menu-item > a::after,
.spl-nav .current-menu-parent > a::after,
.spl-nav .current-post-ancestor > a::after,
.spl-nav .current-category-ancestor > a::after { transform: scaleX(1); }
.spl-nav .current-menu-item > a,
.spl-nav .current-menu-parent > a,
.spl-nav .current-post-ancestor > a { color: var(--spl-accent); }
/* dropdowns */
.spl-nav .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 210px; display: block;
	background: #161618; border-radius: 0 0 8px 8px; padding: 8px 0;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
	box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.spl-nav .sub-menu li { width: 100%; }
.spl-nav .sub-menu a { padding: 9px 16px; font-weight: 500; }
.spl-nav .sub-menu a::after { display: none; }
.spl-nav li:hover > .sub-menu, .spl-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.spl-header__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.spl-icon-btn {
	background: none; border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.spl-icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.spl-icon-btn svg { width: 21px; height: 21px; }

/* search bar */
.spl-searchbar { background: #141416; border-top: 1px solid #222; display: none; }
.spl-searchbar.is-open { display: block; }
.spl-searchbar form { display: flex; gap: 10px; padding: 14px 0; }
.spl-searchbar input[type=search] {
	flex: 1; background: #fff; border: 0; border-radius: 6px; padding: 12px 16px; font-size: 16px; color: var(--spl-ink);
}
.spl-btn {
	display: inline-flex; align-items: center; gap: 8px; background: var(--spl-accent); color: #fff;
	border: 0; border-radius: 6px; padding: 11px 20px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.spl-btn:hover { background: var(--spl-accent-dark); color: #fff; }

/* drawer */
.spl-drawer {
	position: fixed; inset: 0; z-index: 200; visibility: hidden;
}
.spl-drawer.is-open { visibility: visible; }
.spl-drawer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; }
.spl-drawer.is-open .spl-drawer__overlay { opacity: 1; }
.spl-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
	background: var(--spl-black); color: #fff; padding: 20px 24px 32px; overflow-y: auto;
	transform: translateX(100%); transition: transform .28s ease;
}
.spl-drawer.is-open .spl-drawer__panel { transform: none; }
.spl-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.spl-drawer ul { list-style: none; margin: 0; padding: 0; }
.spl-drawer li a {
	display: block; padding: 13px 0; border-bottom: 1px solid #222; font-weight: 600; font-size: 17px; color: #eee;
}
.spl-drawer .sub-menu a { padding-left: 16px; font-size: 15px; font-weight: 500; color: #bbb; }
.spl-drawer .current-menu-item > a { color: var(--spl-accent); }
.spl-drawer__search { margin: 22px 0; }
.spl-drawer__search form { display: flex; gap: 8px; }
.spl-drawer__search input[type=search] { flex: 1; min-width: 0; border: 0; border-radius: 6px; padding: 11px 14px; }
.spl-drawer__foot-menu a { font-size: 14px !important; font-weight: 500 !important; color: #999 !important; padding: 9px 0 !important; }
body.spl-lock { overflow: hidden; }

/* header ad */
.spl-ad { text-align: center; margin: 18px auto; }
.spl-ad--header { margin-top: 18px; }
.spl-ad .widget { margin: 0; }

/* ---------- Badges / meta ---------- */
.spl-badge {
	display: inline-block; background: var(--spl-accent); color: #fff !important;
	font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
	padding: 4px 9px; border-radius: 3px; line-height: 1.3;
}
.spl-badge:hover { background: var(--spl-accent-dark); }
.spl-time { font-size: 12.5px; color: var(--spl-muted); }
.spl-cat-link { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--spl-accent); }

/* thumbnail placeholder */
.spl-ph {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #2a0a14, #0b0b0d 70%); color: rgba(255,255,255,.18);
	font-family: var(--spl-serif); font-size: 48px; font-weight: 800;
}

/* ---------- Hero ---------- */
.spl-hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; margin-bottom: 40px; }
.spl-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.spl-tile {
	position: relative; display: block; overflow: hidden; border-radius: var(--spl-radius);
	background: #111; color: #fff; isolation: isolate;
}
.spl-tile__img { position: absolute; inset: 0; z-index: -2; }
.spl-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.spl-tile:hover .spl-tile__img img { transform: scale(1.04); }
.spl-tile::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.92) 100%);
}
.spl-tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; }
.spl-tile__title { color: #fff; margin: 12px 0 0; }
.spl-tile:hover .spl-tile__title { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.spl-tile--lg { min-height: 520px; }
.spl-tile--lg .spl-tile__title { font-family: var(--spl-serif); font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.12; max-width: 92%; }
.spl-tile--lg .spl-tile__excerpt { color: rgba(255,255,255,.82); margin: 12px 0 0; font-size: 15.5px; max-width: 80%; }
.spl-tile--sm { min-height: 253px; }
.spl-tile--sm .spl-tile__body { padding: 20px 64px 20px 22px; }
.spl-tile--sm .spl-tile__title { font-size: 20px; font-weight: 700; line-height: 1.25; }
.spl-tile__arrow {
	position: absolute; right: 18px; bottom: 20px; width: 34px; height: 34px; border-radius: 50%;
	border: 1.5px solid rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center;
	transition: background .2s, border-color .2s;
}
.spl-tile__arrow svg { width: 16px; height: 16px; }
.spl-tile:hover .spl-tile__arrow { background: var(--spl-accent); border-color: var(--spl-accent); }

/* ---------- Section heads ---------- */
.spl-section { margin-bottom: 44px; }
.spl-sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.spl-sec-head h2 { font-family: var(--spl-serif); font-size: 30px; font-weight: 700; margin: 0; white-space: nowrap; }
.spl-sec-head__line { flex: 1; height: 1px; background: var(--spl-line); }
.spl-sec-head__more { color: var(--spl-accent); font-weight: 700; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.spl-sec-head__more svg { width: 14px; height: 14px; }

/* ---------- Cards ---------- */
.spl-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.spl-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.spl-card { display: flex; flex-direction: column; }
.spl-card__img {
	display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #111; margin-bottom: 12px; position: relative;
}
.spl-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.spl-card:hover .spl-card__img img { transform: scale(1.05); }
.spl-card__img .spl-badge { position: absolute; left: 10px; top: 10px; }
.spl-card__title { font-size: 16.5px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.spl-card__title a:hover { color: var(--spl-accent); }
.spl-card__excerpt { font-size: 14.5px; color: var(--spl-muted); margin: 0 0 8px; }
.spl-grid-3 .spl-card__img { aspect-ratio: 16 / 10; }
.spl-grid-3 .spl-card__title { font-size: 19px; }

/* ---------- Promo banner ---------- */
.spl-promo {
	position: relative; overflow: hidden; border-radius: var(--spl-radius);
	background: radial-gradient(ellipse at 50% -20%, rgba(255,196,120,.35), transparent 55%),
		radial-gradient(ellipse at 90% 120%, rgba(224,20,76,.35), transparent 50%),
		linear-gradient(120deg, #120b06, #2a1b0e 45%, #0b0705);
	color: #fff; text-align: center; padding: 46px 24px; margin-bottom: 44px; isolation: isolate;
}
.spl-promo--img { background-size: cover; background-position: center; }
.spl-promo--img::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: -1; }
.spl-promo::after {
	content: ""; position: absolute; top: -40%; left: 50%; width: 520px; height: 180%; z-index: -1;
	transform: translateX(-50%) rotate(8deg);
	background: linear-gradient(180deg, rgba(255,230,180,.16), rgba(255,230,180,0) 70%);
	clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}
.spl-promo__eyebrow { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #e9c98f; font-weight: 600; }
.spl-promo__title {
	font-family: var(--spl-serif); color: #fff; font-size: clamp(30px, 4vw, 46px); font-weight: 700;
	letter-spacing: 1px; text-transform: uppercase; margin: 6px 0 6px;
	background: linear-gradient(180deg, #fff6e4, #e2b866); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.spl-promo__sub { font-size: 17px; color: #eee; margin: 0 0 20px; }
.spl-promo__btn {
	display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255,255,255,.85);
	color: #fff; border-radius: 999px; padding: 10px 26px; font-weight: 700; font-size: 14.5px; transition: .2s;
}
.spl-promo__btn:hover { background: #fff; color: var(--spl-ink); }
.spl-promo__btn svg { width: 15px; height: 15px; }

/* ---------- Latest + Trending ---------- */
.spl-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; margin-bottom: 48px; }
.spl-split .spl-sec-head h2 { font-size: 26px; }
.spl-list { list-style: none; margin: 0; padding: 0; }
.spl-list__item { display: flex; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--spl-line); }
.spl-list__item:first-child { padding-top: 0; }
.spl-list__img { flex: 0 0 150px; aspect-ratio: 16 / 10; border-radius: 7px; overflow: hidden; background: #111; }
.spl-list__img img { width: 100%; height: 100%; object-fit: cover; }
.spl-list__title { font-size: 16.5px; font-weight: 700; line-height: 1.35; margin: 4px 0 4px; }
.spl-list__title a:hover { color: var(--spl-accent); }

.spl-trending { background: var(--spl-pink); border-radius: var(--spl-radius); padding: 24px 22px 10px; }
.spl-trending h2 { font-family: var(--spl-serif); color: var(--spl-accent); font-size: 24px; margin: 0 0 14px; }
.spl-trending ol { list-style: none; margin: 0; padding: 0; counter-reset: spl; }
.spl-trending li {
	display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(224,20,76,.12);
	counter-increment: spl;
}
.spl-trending li:last-child { border-bottom: 0; }
.spl-trending li::before {
	content: counter(spl); flex: 0 0 34px; text-align: center;
	font-family: var(--spl-serif); font-size: 34px; font-weight: 800; color: var(--spl-accent); line-height: 1;
}
.spl-trending__img { flex: 0 0 72px; width: 72px; height: 60px; border-radius: 6px; overflow: hidden; background: #111; }
.spl-trending__img img { width: 100%; height: 100%; object-fit: cover; }
.spl-trending__title { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0; }
.spl-trending__title a:hover { color: var(--spl-accent); }
.spl-trending--side { padding: 22px 18px 8px; }
.spl-trending--side li::before { font-size: 28px; flex-basis: 26px; }

/* ---------- Category blocks ---------- */
.spl-catblock__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: start; }
.spl-catblock__lead .spl-card__img { aspect-ratio: 16 / 10; }
.spl-catblock__lead .spl-card__title { font-family: var(--spl-serif); font-size: 26px; line-height: 1.22; }
.spl-catblock__list .spl-list__img { flex-basis: 130px; }

/* ---------- Archive ---------- */
.spl-archive-head { padding: 34px 0 26px; border-bottom: 1px solid var(--spl-line); margin-bottom: 30px; }
.spl-archive-head__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--spl-accent); }
.spl-archive-head h1 { font-family: var(--spl-serif); font-size: clamp(32px, 4vw, 46px); margin: 6px 0 8px; }
.spl-archive-head__desc { color: var(--spl-muted); max-width: 760px; margin: 0; }
.spl-archive-head__desc p { margin: 0; }
.spl-pagination { margin-top: 44px; display: flex; justify-content: center; }
.spl-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.spl-pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--spl-line); border-radius: 6px; font-weight: 600; font-size: 14px;
}
.spl-pagination .page-numbers.current { background: var(--spl-accent); border-color: var(--spl-accent); color: #fff; }

/* ---------- Single ---------- */
.spl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.spl-crumbs { font-size: 13px; color: var(--spl-muted); margin: 8px 0 18px; }
.spl-crumbs a:hover { color: var(--spl-accent); }
.spl-article__head { margin-bottom: 22px; }
.spl-article__title { font-family: var(--spl-serif); font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.15; margin: 14px 0 14px; }
.spl-article__dek { font-size: 19px; color: #4a4a52; line-height: 1.5; margin: 0 0 18px; }
.spl-byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--spl-muted); flex-wrap: wrap; }
.spl-byline img { border-radius: 50%; width: 40px; height: 40px; }
.spl-byline strong a { color: var(--spl-ink); }
.spl-byline__sep { width: 4px; height: 4px; border-radius: 50%; background: #c4c4c9; }
.spl-article__figure { margin: 0 0 28px; }
.spl-article__figure img { width: 100%; border-radius: var(--spl-radius); }
.spl-article__figure figcaption { font-size: 13px; color: var(--spl-muted); margin-top: 8px; }

.spl-content { font-size: 18px; line-height: 1.75; color: #24242a; }
.spl-content > * { margin-top: 0; margin-bottom: 1.25em; }
.spl-content h2 { font-family: var(--spl-serif); font-size: 30px; margin: 1.6em 0 .6em; }
.spl-content h3 { font-size: 23px; margin: 1.5em 0 .5em; }
.spl-content h4 { font-size: 19px; }
.spl-content a { color: var(--spl-accent); text-decoration: underline; text-underline-offset: 3px; }
.spl-content ul, .spl-content ol { padding-left: 1.3em; }
.spl-content li { margin-bottom: .45em; }
.spl-content blockquote {
	margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--spl-accent);
	font-family: var(--spl-serif); font-size: 22px; font-style: italic; color: var(--spl-ink);
}
.spl-content blockquote p { margin: 0 0 .4em; }
.spl-content blockquote cite { font-family: var(--spl-sans); font-size: 14px; font-style: normal; color: var(--spl-muted); }
.spl-content img, .spl-content figure img { border-radius: 8px; }
.spl-content figure { margin-left: 0; margin-right: 0; }
.spl-content figcaption, .spl-content .wp-caption-text { font-size: 13px; color: var(--spl-muted); margin-top: 6px; }
.spl-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spl-content th, .spl-content td { border: 1px solid var(--spl-line); padding: 10px 12px; text-align: left; }
.spl-content th { background: var(--spl-soft); }
.spl-content iframe, .spl-content embed, .spl-content video { max-width: 100%; }
.spl-content .wp-block-embed iframe { width: 100%; }
.spl-content #rank-math-faq .rank-math-list-item, .spl-content .rank-math-faq-item { border-bottom: 1px solid var(--spl-line); padding: 6px 0 10px; }
.spl-content #ez-toc-container, .spl-content .wp-block-rank-math-toc-block {
	background: var(--spl-soft); border: 1px solid var(--spl-line); border-radius: 8px; padding: 18px 22px;
}
.spl-content .wp-block-rank-math-toc-block h2 { font-size: 20px; margin-top: 0; }
.spl-content .alignwide, .spl-content .alignfull { max-width: 100%; }
.spl-content .aligncenter { margin-left: auto; margin-right: auto; }
.spl-content .alignleft { float: left; margin: 0 1.2em 1em 0; }
.spl-content .alignright { float: right; margin: 0 0 1em 1.2em; }
.spl-ad--inarticle { margin: 28px 0; clear: both; }

.spl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.spl-tags a { background: var(--spl-soft); border: 1px solid var(--spl-line); border-radius: 999px; padding: 5px 14px; font-size: 13.5px; font-weight: 600; }
.spl-tags a:hover { border-color: var(--spl-accent); }

.spl-share { display: flex; align-items: center; gap: 8px; margin: 22px 0; flex-wrap: wrap; }
.spl-share__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--spl-muted); margin-right: 4px; }
.spl-share a {
	width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--spl-soft); border: 1px solid var(--spl-line); color: var(--spl-ink);
}
.spl-share a:hover { background: var(--spl-accent); border-color: var(--spl-accent); color: #fff; }
.spl-share svg { width: 17px; height: 17px; }

.spl-authorbox { display: flex; gap: 18px; background: var(--spl-soft); border-radius: var(--spl-radius); padding: 22px; margin: 34px 0; }
.spl-authorbox img { border-radius: 50%; width: 72px; height: 72px; flex-shrink: 0; }
.spl-authorbox__label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--spl-muted); }
.spl-authorbox h3 { font-size: 19px; margin: 2px 0 6px; }
.spl-authorbox p { margin: 0; font-size: 15px; color: #4a4a52; }

.spl-related { margin-top: 44px; }
.spl-related .spl-sec-head h2 { font-size: 26px; }

.spl-sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 28px; }
.spl-sidebar .widget { margin: 0; }
.spl-sidebar .widget-title, .spl-sidebar .wp-block-heading {
	font-family: var(--spl-serif); font-size: 21px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--spl-ink);
}
.spl-sidebar .wp-block-search__inside-wrapper, .spl-sidebar .search-form { display: flex; gap: 8px; }
.spl-sidebar input[type=search] { flex: 1; min-width: 0; border: 1px solid var(--spl-line); border-radius: 6px; padding: 10px 12px; }
.spl-sidebar .wp-block-search__button, .spl-sidebar .search-submit { background: var(--spl-accent); color: #fff; border: 0; border-radius: 6px; padding: 10px 16px; font-weight: 700; cursor: pointer; margin: 0; }
.spl-sidebar .wp-block-search__label { font-family: var(--spl-serif); font-size: 21px; font-weight: 700; color: var(--spl-ink); display: block; margin-bottom: 10px; }
.spl-sidebar ul { list-style: none; padding: 0; margin: 0; }
.spl-sidebar ul li { padding: 8px 0; border-bottom: 1px solid var(--spl-line); }

/* ---------- Pages ---------- */
.spl-page { max-width: 820px; margin: 0 auto; }
.spl-page__title { font-family: var(--spl-serif); font-size: clamp(32px, 4vw, 46px); margin: 30px 0 24px; }

/* ---------- Comments ---------- */
.spl-comments { margin-top: 40px; border-top: 1px solid var(--spl-line); padding-top: 30px; }
.spl-comments h2, .spl-comments .comment-reply-title { font-family: var(--spl-serif); font-size: 24px; }
.spl-comments ol { list-style: none; padding: 0; }
.spl-comments .children { padding-left: 28px; list-style: none; }
.spl-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--spl-line); }
.spl-comments .comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.spl-comments .comment-meta { font-size: 13px; color: var(--spl-muted); }
.spl-comments textarea, .spl-comments input[type=text], .spl-comments input[type=email], .spl-comments input[type=url] {
	width: 100%; border: 1px solid var(--spl-line); border-radius: 6px; padding: 11px 13px;
}
.spl-comments .submit { background: var(--spl-accent); color: #fff; border: 0; border-radius: 6px; padding: 12px 22px; font-weight: 700; cursor: pointer; }

/* ---------- Search / 404 ---------- */
.spl-search-form { display: flex; gap: 10px; max-width: 560px; }
.spl-search-form input[type=search] { flex: 1; border: 1px solid var(--spl-line); border-radius: 6px; padding: 12px 15px; }
.spl-empty { text-align: center; padding: 60px 0; }
.spl-empty .spl-search-form { margin: 24px auto 0; }
.spl-404 { font-family: var(--spl-serif); font-size: 120px; color: var(--spl-accent); line-height: 1; margin: 0; }

/* ---------- Footer ---------- */
.spl-footer { background: var(--spl-black); color: #b9b9c0; padding: 54px 0 0; font-size: 15px; }
.spl-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.spl-footer .spl-logo__text { font-size: 28px; }
.spl-footer__about { margin: 16px 0 20px; max-width: 420px; line-height: 1.65; }
.spl-footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; margin: 4px 0 16px; }
.spl-footer ul { list-style: none; margin: 0; padding: 0; }
.spl-footer li { margin-bottom: 10px; }
.spl-footer a:hover { color: #fff; }
.spl-social { display: flex; gap: 10px; }
.spl-social a {
	width: 40px; height: 40px; border-radius: 50%; background: #1b1b1e; display: inline-flex; align-items: center; justify-content: center; color: #ddd;
}
.spl-social a:hover { background: var(--spl-accent); color: #fff; }
.spl-social svg { width: 18px; height: 18px; }
.spl-footer__bottom { border-top: 1px solid #222; padding: 20px 0; font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.spl-nav ul { gap: 20px; }
	.spl-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 34px; }
}
@media (max-width: 960px) {
	.spl-nav { display: none; }
	.spl-hero { grid-template-columns: 1fr; }
	.spl-hero__side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
	.spl-tile--lg { min-height: 440px; }
	.spl-tile--sm { min-height: 230px; }
	.spl-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.spl-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.spl-split, .spl-catblock__grid { grid-template-columns: 1fr; }
	.spl-layout { grid-template-columns: 1fr; }
	.spl-sidebar { position: static; }
	.spl-footer__top { grid-template-columns: 1fr 1fr; }
	.spl-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.spl-wrap { padding: 0 16px; }
	.spl-header__inner { height: 60px; }
	.spl-logo__text { font-size: 22px; }
	.spl-main { padding-top: 14px; }
	.spl-hero { gap: 12px; margin-bottom: 32px; }
	.spl-hero__side { grid-template-columns: 1fr; gap: 12px; }
	.spl-tile--lg { min-height: 400px; }
	.spl-tile--lg .spl-tile__body { padding: 20px; }
	.spl-tile--lg .spl-tile__excerpt { display: none; }
	.spl-tile--sm { min-height: 210px; }
	.spl-sec-head h2 { font-size: 24px; }
	.spl-grid-4 { gap: 16px; }
	.spl-card__title { font-size: 15px; }
	.spl-grid-3 { grid-template-columns: 1fr; }
	.spl-list__img { flex-basis: 110px; }
	.spl-list__title { font-size: 15px; }
	.spl-promo { padding: 34px 18px; }
	.spl-content { font-size: 17px; }
	.spl-content h2 { font-size: 25px; }
	.spl-authorbox { flex-direction: column; }
	.spl-footer__top { grid-template-columns: 1fr; gap: 30px; }
}
