/*
Theme Name: GamersAndTechBros
Theme URI: https://gamersandtechbros.com/
Author: GamersAndTechBros
Description: A light, image-led magazine theme for GamersAndTechBros: PC and phone gaming fixes and explainers. Lead story with side stories, card grid with category labels, sidebar, numbered pages, author boxes and a "How we researched this" note on every guide.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.8
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: gamersandtechbros
*/

/* ---------- Design tokens ---------- */
:root {
	--accent: #D62828;          /* overridden from Customizer */
	--accent-ink: #FFFFFF;      /* text on accent */
	--accent-soft: #FBE9E9;
	--accent-2: #FFC300;        /* yellow highlight */
	--bg: #F6F7F9;
	--surface: #FFFFFF;
	--subtle: #EEF1F5;
	--line: #E4E8EE;
	--line-strong: #DDE2EA;
	--ink: #12151B;
	--ink-2: #2E3440;
	--muted: #5B6472;
	--good: #0B8A4B;
	--bad: #C0392B;
	--radius: 16px;
	--radius-lg: 24px;
	--shadow: 0 1px 2px rgba(18,21,27,.04), 0 8px 24px -12px rgba(18,21,27,.14);
	--shadow-hover: 0 2px 4px rgba(18,21,27,.05), 0 18px 36px -14px rgba(18,21,27,.22);
	--font-head: 'Outfit', 'Segoe UI', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1320px;
}

/* ---------- Fonts (self-hosted, Latin subset, variable weight) ---------- */
@font-face {
	font-family: 'Outfit';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/outfit.woff2') format('woff2-variations'), url('assets/fonts/outfit.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/inter.woff2') format('woff2-variations'), url('assets/fonts/inter.woff2') format('woff2');
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); letter-spacing: -0.01em; text-wrap: balance; line-height: 1.15; }
.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:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
	background: var(--surface); padding: 10px 16px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.label {
	font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	color: var(--accent); text-decoration: none;
}
.label a { color: inherit; text-decoration: none; }
.meta { font-size: 13px; color: var(--muted); }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--accent); color: var(--accent-ink);
	font-family: var(--font-head); font-weight: 700; font-size: 15px; text-decoration: none;
}
.btn:hover { color: var(--accent-ink); filter: brightness(.92); }

.social { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-main { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; padding-block: 14px; }
.site-brand { display: flex; align-items: center; text-decoration: none; margin: 0; }
.site-brand img, .custom-logo { max-height: 52px; width: auto; }
.site-brand .site-name { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--ink); text-decoration: none; }
.primary-nav { flex: 1 1 auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.primary-nav a { font-family: var(--font-head); font-size: 16px; font-weight: 600; text-decoration: none; display: inline-block; padding-block: 8px; }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav a:hover { color: var(--accent); }
.primary-nav .sub-menu { display: none; }
.header-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-form { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 6px 0 14px; min-height: 44px; }
.search-form input[type="search"] { background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 14px; width: 170px; min-width: 0; outline-offset: 6px; }
.search-form button { background: transparent; border: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); }
.menu-toggle { display: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; min-width: 44px; min-height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.hotbar { border-top: 1px solid var(--line); background: var(--surface); }
.hotbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 46px; font-size: 14px; }
.hotbar-label { flex: none; font-family: var(--font-head); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
.hotbar-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hotbar nav { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.hotbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; overflow: hidden; min-width: 0; }
.hotbar li { flex: none; white-space: nowrap; }
.hotbar li + li::before { content: "\00B7"; color: var(--line-strong); margin: 0 12px; }
.hotbar a { color: var(--ink-2); font-weight: 500; text-decoration: none; }
.hotbar a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Image placeholder (posts without a featured image) ---------- */
.thumb { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; max-width: 100%; background: var(--subtle); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.tone-1 { background: linear-gradient(135deg,#3B1F6E,#C2410C); }
.tone-2 { background: linear-gradient(135deg,#0F3D57,#14B8A6); }
.tone-3 { background: linear-gradient(135deg,#4A1D1D,#B91C1C 60%,#F59E0B); }
.tone-4 { background: linear-gradient(135deg,#1E293B,#475569 50%,#22D3EE); }
.tone-5 { background: linear-gradient(135deg,#1F2937,#7C3AED); }
.tone-6 { background: linear-gradient(135deg,#14321F,#65A30D); }

/* ---------- Home: featured block ---------- */
.site-main { padding-block: 32px 72px; }
.featured { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; margin-bottom: 48px; }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-title { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 700; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card--lead { gap: 16px; }
.card--lead .thumb { border-radius: 16px; }
.card--lead .card-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 800; }
.side-stories { display: flex; flex-direction: column; gap: 20px; }
.card--side { flex-direction: row; gap: 16px; align-items: flex-start; }
.card--side .thumb { flex: none; width: 150px; aspect-ratio: 16 / 10; border-radius: 10px; }
.card--side .card-title { font-size: 18px; }
.card--side .label { font-size: 11px; }
.promo {
	display: flex; flex-direction: column; gap: 6px; text-decoration: none;
	background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 18px;
}
.promo strong { font-family: var(--font-head); font-size: 20px; line-height: 1.2; }
.promo .promo-link { color: var(--accent); font-weight: 600; }
.promo--big { min-height: 200px; justify-content: flex-end; padding: 22px; border-radius: 16px; background: linear-gradient(160deg, var(--accent-soft), var(--surface)); }
.promo--big strong { font-size: 26px; line-height: 1.1; }
.promo p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Main + sidebar layout ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.content-area { flex: 999 1 640px; min-width: 0; }
.sidebar { flex: 1 1 300px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h1, .section-head h2 { margin: 0; font-size: 28px; font-weight: 800; }
.archive-desc { color: var(--muted); max-width: 70ch; margin: -12px 0 24px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.card .label { font-size: 11px; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pagination .page-numbers.dots { background: transparent; border: 0; color: var(--muted); }

/* ---------- Sidebar widgets ---------- */
.widget { display: flex; flex-direction: column; gap: 10px; }
.widget-title, .widget h2, .widget .wp-block-heading {
	margin: 0; font-size: 20px; font-weight: 800; border-bottom: 2px solid var(--accent); padding-bottom: 8px; align-self: flex-start;
}
.widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.widget li { border-bottom: 1px solid var(--line); }
.widget li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; text-decoration: none; font-size: 15px; }
.widget li a:hover { color: var(--accent); }
.widget .count { color: var(--muted); }
.widget-links a { text-decoration: none; font-weight: 600; }
.author-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px; }
.author-card img { border-radius: 50%; flex: none; }
.author-card .author-text { display: flex; flex-direction: column; gap: 4px; font-size: 14px; min-width: 0; }
.author-card strong { font-size: 16px; }
.author-card p { margin: 0; color: var(--muted); }
.author-card a.more { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Core widgets (search, latest comments, archives) */
.widget .wp-block-search__label { font-family: var(--font-head); font-size: 20px; font-weight: 800; }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.widget .wp-block-search__input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; font: inherit; font-size: 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.widget .wp-block-search__button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; margin: 0; }
.widget .wp-block-latest-comments { padding: 0; }
.widget .wp-block-latest-comments li { padding: 10px 0; font-size: 14px; }
.widget .wp-block-latest-comments__comment-meta { display: inline; }
.widget .wp-block-latest-comments li a { display: inline; padding: 0; }
.widget select { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; background: var(--surface); font: inherit; }

/* ---------- Single post ---------- */
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--muted); }
.hero-image { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 32px; aspect-ratio: 21 / 9; max-width: 100%; background: var(--surface); border: 1px solid var(--line); }
.hero-image img { width: 100%; height: 100%; object-fit: contain; }
.entry { max-width: 820px; display: flex; flex-direction: column; gap: 28px; }
.entry-header { display: flex; flex-direction: column; gap: 16px; }
.entry-title { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 800; }
.byline {
	display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
	border-block: 1px solid var(--line); padding-block: 14px;
}
.byline .who { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.byline .who img { border-radius: 50%; }
.byline .who a { font-weight: 600; }
.byline .dates { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.notice { margin: 0; font-size: 14px; color: var(--muted); }
.notice a { color: var(--accent); }
.notice--box { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 16px; }
.notice--box strong { color: var(--ink); }

/* Post content */
.entry-content { font-size: 17px; line-height: 1.75; color: var(--ink-2); min-width: 0; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content h2 { font-size: 30px; font-weight: 800; color: var(--ink); margin-top: 1.6em; scroll-margin-top: 24px; }
.entry-content h3 { font-size: 24px; font-weight: 700; color: var(--ink); margin-top: 1.4em; scroll-margin-top: 24px; }
.entry-content h4 { font-size: 19px; color: var(--ink); }
.entry-content a { color: var(--accent); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content img, .entry-content figure img { border-radius: var(--radius); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry-content blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); }
.entry-content .wp-block-table, .entry-content .table-scroll { margin-inline: 0; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content .wp-block-table table { min-width: 520px; }
.entry-content th { text-align: left; background: var(--subtle); color: var(--muted); font-weight: 600; }
.entry-content th, .entry-content td { padding: 12px 16px; border: 0; border-top: 1px solid var(--line); vertical-align: top; }
.entry-content thead th { border-top: 0; }
.entry-content .wp-block-table thead { border-bottom: 0; }
.entry-content .wp-block-table th, .entry-content .wp-block-table td { border: 0; border-top: 1px solid var(--line); }
.entry-content .wp-block-table thead th { border-top: 0; }
.entry-content .wp-block-button__link, .entry-content .button {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
	background: var(--accent); color: var(--accent-ink); font-family: var(--font-head); font-weight: 700; text-decoration: none; font-size: 16px;
}
.entry-content .wp-block-button__link:hover { color: var(--accent-ink); filter: brightness(.92); }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }

/* Block patterns that ship with the theme */
.entry-content .gtf-pick { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 28px; }
.entry-content .gtf-pick > *:last-child { margin-bottom: 0; }
.entry-content .gtf-pick h2, .entry-content .gtf-pick h3 { margin-top: 0; }
.entry-content .gtf-pick .gtf-award { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.entry-content .gtf-proscons { gap: 16px; }
.entry-content .gtf-proscons > .wp-block-column { background: var(--bg); border-radius: var(--radius); padding: 16px 18px; }
.entry-content .gtf-proscons h4 { margin: 0 0 6px; font-size: 16px; }
.entry-content .gtf-proscons .gtf-pros h4 { color: var(--good); }
.entry-content .gtf-proscons .gtf-cons h4 { color: var(--bad); }
.entry-content .gtf-proscons ul { margin: 0; }

.entry-footer .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-footer .tags a { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); text-decoration: none; }
.author-intro { margin-bottom: 32px; }
.author-box { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.author-box img { border-radius: 50%; flex: none; }
.author-box > div { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }
.author-box .label { color: var(--muted); }
.author-box strong { font-family: var(--font-head); font-size: 22px; }
.author-box p { margin: 0; color: var(--ink-2); }
.author-box a.more { color: var(--accent); font-weight: 600; }

.toc { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.toc .label { color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--accent); }

.related { margin-top: 64px; }
.related h2 { margin: 0 0 20px; font-size: 28px; font-weight: 800; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Pages, 404, comments */
.page-entry { max-width: 820px; }
.empty-state { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.empty-state h1 { margin: 0; }
.comments-area { border-top: 1px solid var(--line); padding-top: 28px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
}
.comment-form input[type="submit"] { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--subtle); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-block: 48px 32px; display: flex; flex-direction: column; gap: 32px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; }
.footer-cols .col { display: flex; flex-direction: column; gap: 8px; }
.footer-cols .col-title { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0; font-family: var(--font-body); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--ink); }
.footer-brand img { max-height: 44px; width: auto; }
.footer-bottom { margin: 0; border-top: 1px solid var(--line); padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.featured { grid-template-columns: minmax(0, 1fr); }
	.grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
	.menu-toggle { display: inline-flex; margin-left: auto; }
	.site-brand { order: 0; }
	.primary-nav { order: 3; flex-basis: 100%; display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 0; }
	.primary-nav li { border-top: 1px solid var(--line); }
	.primary-nav a { padding-block: 12px; display: block; }
	.header-tools { order: 4; flex-basis: 100%; flex-wrap: nowrap; }
	.header-tools .btn { flex: none; padding: 0 16px; }
	.header-tools .search-form { flex: 1 1 auto; }
	.header-tools .search-form input[type="search"] { width: 100%; }
	.hotbar ul { overflow-x: auto; scrollbar-width: none; }
	.hotbar-label span { display: none; }
	.hero-image { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
	.grid, .grid--3, .footer-cols { grid-template-columns: minmax(0, 1fr); }
	.card--side .thumb { width: 110px; }
	.entry-content .gtf-pick { padding: 20px; }
}

/* =========================================================
   Friendly touches (v1.1): soft cards, pill labels, check marks
   ========================================================= */

/* Pill-shaped category labels */
.card .label, .entry-header > .label {
	align-self: flex-start; background: var(--accent-soft); color: var(--accent);
	padding: 4px 10px; border-radius: 999px; font-size: 11px; line-height: 1.4;
}

/* Grid cards become soft white tiles that lift on hover */
.grid .card {
	background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
	padding: 10px 10px 18px; box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.grid .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.grid .card .thumb { border-radius: 14px; }
.grid .card .card-body { padding: 0 8px; }
.card--lead .thumb { border-radius: 24px; box-shadow: var(--shadow); }
.card--side .thumb { border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .grid .card, .grid .card:hover { transition: none; transform: none; } }

/* Buttons get a friendly arrow */
.btn--arrow::after { content: " →"; }
.btn { box-shadow: 0 6px 16px -8px var(--accent); }

/* Deals banner: soft tinted card */
.promo { border-radius: 20px; box-shadow: var(--shadow); border-color: var(--line); }
.promo--big { background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }


/* Softer white surfaces everywhere */
.author-card, .toc, .notice--box, .empty-state { box-shadow: var(--shadow); border-color: var(--line); border-radius: 20px; }
.entry-content .gtf-pick { box-shadow: var(--shadow); border-color: var(--line); }
.pagination .page-numbers { border-radius: 999px; }

/* Check / cross lists inside posts (pattern: "Who should buy / skip") */
.entry-content .gtf-checks ul, .entry-content ul.gtf-checks { list-style: none; padding-left: 0; }
.entry-content .gtf-checks li, .entry-content ul.gtf-checks li { position: relative; padding-left: 32px; }
.entry-content .gtf-checks li::before, .entry-content ul.gtf-checks li::before {
	content: "✓"; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800;
	display: flex; align-items: center; justify-content: center; line-height: 1;
}
.entry-content .gtf-crosses li::before, .entry-content ul.gtf-crosses li::before { content: "✕"; background: rgba(192,57,43,.1); color: var(--bad); }
.entry-content .gtf-crosses li, .entry-content ul.gtf-crosses li { color: var(--muted); }
.entry-content .gtf-compare ul { margin-bottom: 0; }
.entry-content .gtf-compare { gap: 16px; }
.entry-content .gtf-compare > .wp-block-column { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.entry-content .gtf-compare > .wp-block-column.gtf-yes { border: 2px solid var(--accent); }
.entry-content .gtf-compare h3 { margin-top: 0; font-size: 18px; }

/* FAQ accordion (Details block) */
.entry-content .wp-block-details {
	background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px;
}
.entry-content .wp-block-details summary { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.entry-content .wp-block-details[open] summary::after { content: "−"; }
.entry-content .wp-block-details > :not(summary) { margin: 10px 0 0; }

/* =========================================================
   v1.2: homepage sections, compact sidebar, fixes
   ========================================================= */

/* Main story: show the whole image instead of zooming in */
.card--lead .thumb { background: var(--surface); border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.card--lead .thumb img { object-fit: contain; }

/* Four side stories next to the main story */
.side-stories { gap: 16px; }
.card--side .meta { display: none; }

/* Search: an oval highlight around the whole pill instead of a square on the button */
.search-form:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.search-form input[type="search"]:focus, .search-form input[type="search"]:focus-visible,
.search-form button:focus, .search-form button:focus-visible { outline: none; }
.search-form button { border-radius: 999px; }
.search-form button:active { background: var(--accent-soft); }

/* Homepage category sections */
.home-section { margin-top: 88px; }
.home-section .section-head--rule { margin-bottom: 28px; }
.section-head--rule { border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section-head--rule h2 { font-size: 26px; }
.view-all { font-weight: 600; color: var(--accent); text-decoration: none; }
.view-all::after { content: " →"; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lead-list { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.lead-list__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; align-content: start; }
.card--section-lead .card-title { font-size: 28px; line-height: 1.15; font-weight: 800; }
.card--section-lead .thumb { border-radius: 20px; aspect-ratio: 16 / 9; }
.featured .side-stories { justify-content: space-between; }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lead-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* Compact sidebar: numbered Trending list and topic chips */
.trending ol { list-style: none; margin: 0; padding: 0; counter-reset: trend; display: flex; flex-direction: column; }
.trending li { counter-increment: trend; display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.trending li::before { content: counter(trend); font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1; color: var(--accent); min-width: 20px; }
.trending li a { display: block; padding: 0; font-weight: 600; font-size: 15px; line-height: 1.35; }
.chips, .widget_categories ul, .wp-block-categories-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .widget_categories li a, .wp-block-categories-list li a {
	display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong);
	font-size: 13px; font-weight: 500; text-decoration: none;
}
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.widget_categories li, .wp-block-categories-list li { border: 0; }

/* Footer: no logo column, one tidy bottom line */
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-bottom .social a { color: var(--muted); }

/* Affiliate disclosure on posts: quiet, small */
.entry-header .notice:not(.notice--box) { font-size: 13px; }

/* =========================================================
   v1.3: no image zoom, 2x2 section cards, 3-column rows
   ========================================================= */

/* Section-lead shows the whole image too */
.card--section-lead .thumb { background: var(--surface); border: 1px solid var(--line); }
.card--section-lead .thumb img { object-fit: contain; }

/* Small cards in the 2x2 grid beside a section's main story */
.card--mini { display: flex; flex-direction: column; gap: 10px; }
.card--mini .thumb { border-radius: 14px; }
.card--mini .card-title { font-size: 16px; line-height: 1.3; }
.card--mini .label { font-size: 11px; }
.card--mini .meta { display: none; }

/* Sidebar: "Worth a read" list with small pictures */
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mini-list a { display: flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--ink); }
.mini-list a:hover { color: var(--accent); }
.mini-list .thumb { flex: none; width: 76px; aspect-ratio: 1; border-radius: 10px; }

@media (max-width: 1000px) { .home-section { margin-top: 64px; } }
@media (max-width: 420px) { .lead-list__side { grid-template-columns: minmax(0, 1fr); } }

/* v1.3.1: article image sits on a soft blurred copy of itself, so there is no white space beside it */
.hero-image { position: relative; isolation: isolate; background: var(--ink); border: 0; }
.hero-image::before { content: ""; position: absolute; inset: -60px; z-index: -1; background: var(--hero-bg, none) center / cover no-repeat; filter: blur(40px) saturate(1.15) brightness(.85); }
.hero-image img { position: relative; }
.footer-cols .col-title { margin-bottom: 6px; }
.footer-cols li a { text-decoration: none; }
.footer-cols li a:hover { text-decoration: underline; }
/* v1.3.1: white header so a logo with a white background blends in (multiply hides any leftover white edge) */
.site-header { background: var(--surface); }
.site-brand img, .custom-logo { mix-blend-mode: multiply; }
.hotbar { background: var(--bg); }
/* v1.3.2: "Worth a read" titles sit right next to their pictures, left-aligned */
.widget .mini-list li a { justify-content: flex-start; padding: 0; text-align: left; }
.mini-list li { border: 0; }
.mini-list a > span:last-child { flex: 1 1 auto; min-width: 0; }
/* "Just updated": three titles share the width; a long one ends in "…" instead of being cut */
.hotbar ul { flex: 1 1 auto; }
.hotbar li { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: flex; }
.hotbar li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hotbar li + li::before { flex: none; }
@media (max-width: 780px) {
	.hotbar li { flex: none; max-width: 75vw; }
}
/* v1.3.2: lists (categories, authors, search) never end with a lonely card.
   One card left over -> it becomes a wide card across the row; two left over -> they share the row. */
@media (min-width: 1001px) {
	.content-area > .grid:not(.grid--3) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.content-area > .grid:not(.grid--3) > .card { grid-column: span 2; }
	.content-area > .grid:not(.grid--3) > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
	.content-area > .grid:not(.grid--3) > .card:last-child:nth-child(3n+1) .card-title { font-size: 26px; }
	.content-area > .grid:not(.grid--3) > .card:nth-last-child(2):nth-child(3n+1),
	.content-area > .grid:not(.grid--3) > .card:last-child:nth-child(3n+2) { grid-column: span 3; }
}
@media (min-width: 561px) and (max-width: 1000px) {
	.content-area > .grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* v1.3.4: hide any empty paragraph that slips through */
.entry-content p:empty { display: none; }

/* =========================================================
   v1.3.5: site name beside the logo, swipeable tables, page images
   ========================================================= */
.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.brand-name b { font-weight: 800; color: var(--accent); }
@media (max-width: 1100px) and (min-width: 781px) { .brand-name { font-size: 20px; } }
@media (max-width: 400px) { .brand-name { font-size: 19px; } .brand-link { gap: 8px; } .site-brand img, .custom-logo { max-height: 44px; } }

/* Tables: keep columns readable on phones and show that the table scrolls sideways */
.entry-content .wp-block-table, .entry-content .table-scroll {
	-webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--accent) var(--subtle);
	background:
		linear-gradient(to right, var(--surface) 30%, rgba(255,255,255,0)) left center / 40px 100% no-repeat local,
		linear-gradient(to left, var(--surface) 30%, rgba(255,255,255,0)) right center / 40px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(18,21,27,.18), transparent) left center / 14px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(18,21,27,.18), transparent) right center / 14px 100% no-repeat scroll,
		var(--surface);
}
.entry-content .wp-block-table::-webkit-scrollbar, .entry-content .table-scroll::-webkit-scrollbar { height: 6px; }
.entry-content .wp-block-table::-webkit-scrollbar-thumb, .entry-content .table-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.entry-content .wp-block-table::-webkit-scrollbar-track, .entry-content .table-scroll::-webkit-scrollbar-track { background: var(--subtle); }
.entry-content td { background-color: transparent; }
.entry-content .is-scrollable::before {
	content: "Swipe to see all columns \2192"; display: block; position: sticky; left: 0;
	width: max-content; padding: 8px 14px 0; font-size: 12px; font-weight: 600; color: var(--accent);
}
@media (max-width: 700px) {
	.entry-content .table-scroll table, .entry-content .wp-block-table table { min-width: 560px; }
	.entry-content th, .entry-content td { padding: 10px 12px; font-size: 14px; }
}

/* Featured image on pages (About, Contact...): shown whole at its natural shape, never cropped */
.page-image { margin: 0 0 32px; text-align: center; }
.page-image img { display: inline-block; max-width: 100%; max-height: 420px; width: auto; height: auto; border-radius: var(--radius); }
@media (max-width: 780px) {
	.site-brand { flex: 1 1 auto; min-width: 0; }
	.brand-link { min-width: 0; }
	.site-brand img, .custom-logo { max-height: 44px; max-width: 120px; object-fit: contain; }
	.brand-name { font-size: 20px; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Red + yellow brand touches (GamersAndTechBros) ---------- */
.site-header { border-bottom: 3px solid var(--accent-2); }
.hotbar-label::before { background: var(--accent-2); box-shadow: 0 0 0 4px rgba(255,195,0,.25); }
.widget-title, .widget h2 { border-bottom-color: var(--accent-2) !important; }
.entry-content blockquote { border-left-color: var(--accent-2); }
.entry-content h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--accent-2); margin-bottom: 10px; }
::selection { background: var(--accent-2); color: var(--ink); }
