/*
Theme Name:        UnitedRigs
Theme URI:         https://unitedrigs.com
Author:            UnitedRigs
Author URI:        https://unitedrigs.com
Description:       A light, modern news theme for the trucking community. Square news tiles on the homepage, a hero with a truck photo, and a pinned "important event" card that sits in the middle of the news grid. Mark any post as Sticky to pin it.
Version:           1.2.8
Requires at least: 6.5
Tested up to:      7.1
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:       unitedrigs
Tags:              news, blog, grid-layout, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready, accessibility-ready
*/

/* ==========================================================================
   Fonts (bundled, SIL Open Font License — see assets/fonts/)
   ========================================================================== */
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Barlow Condensed";
	src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Barlow Condensed";
	src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Tokens — every text/background pair below was contrast-checked (WCAG AA).
   White on --primary 6.7:1 · --muted on --bg 5.5:1 · --ink on --accent 7.1:1
   --accent (orange) is for fills behind DARK text only; for orange text use --accent-text.
   ========================================================================== */
:root {
	--bg: #f4f6f9;
	--surface: #ffffff;
	--ink: #0b1424;
	--ink-2: #1f2a3d;
	--muted: #5a6475;
	--line: #e3e7ed;
	--primary: #1d4ed8;
	--primary-soft: #eaf0fc;
	--accent: #f58220;
	--accent-text: #c2410c;
	--navy: #0b1424;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(11, 20, 36, .06), 0 8px 24px rgba(11, 20, 36, .06);
	--shadow-lg: 0 2px 4px rgba(11, 20, 36, .06), 0 24px 48px rgba(11, 20, 36, .14);
	--wrap: 1240px;
	--gap: clamp(14px, 2vw, 24px);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: "Barlow Condensed", "Inter", system-ui, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--surface); clip: auto !important; clip-path: none; color: var(--ink);
	display: block; font-weight: 700; height: auto; left: 12px; top: 12px;
	padding: 14px 20px; width: auto; z-index: 100000; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Buttons & chips
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.35em; border-radius: 999px; border: 2px solid transparent;
	font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1.1;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(29, 78, 216, .28); }
.btn--primary:hover { background: #1a44bd; color: #fff; }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 0 6px 18px rgba(245, 130, 32, .35); }
.btn--accent:hover { background: #ff9434; color: var(--ink); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); background: transparent; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; }

.chip {
	display: inline-block; padding: .35em .8em; border-radius: 999px;
	font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none; line-height: 1.2;
}
.chip--cat { background: var(--accent); color: var(--ink); }
.chip--soft { background: var(--primary-soft); color: var(--primary); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.topbar { background: var(--navy); color: #d6dce6; font-size: .8rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar a { color: #fff; }
.topbar__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; box-shadow: 0 0 0 4px rgba(245, 130, 32, .2); }

.header-row { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(10px, 1.2vw, 20px); min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 42px; height: 42px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 28px; height: 28px; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.65rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.brand__name span { color: var(--accent-text); }
.custom-logo-link img { max-height: 48px; width: auto; }

.primary-nav { min-width: 0; margin-right: clamp(6px, 1vw, 18px); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 2px; }
.primary-nav a {
	display: block; padding: .5em clamp(.45em, .15em + .5vw, .74em); border-radius: 999px; text-decoration: none;
	color: var(--ink-2); font-weight: 600; font-size: clamp(.8rem, .72rem + .2vw, .9rem);
	white-space: nowrap;
}
/* Sub-menu items are in a dropdown, so they may wrap normally. */
.primary-nav .sub-menu a { white-space: normal; font-size: .92rem; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: var(--primary-soft); color: var(--primary); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }
.primary-nav .sub-menu a { border-radius: 8px; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }

.header-search { border-top: 1px solid var(--line); background: var(--surface); }
.header-search[hidden] { display: none; }
.header-search .wrap { padding: 14px 0; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field {
	width: 100%; font: inherit; padding: .8em 1.1em; border-radius: 999px;
	border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.search-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: #fff; }

/* On a wide screen the content column stops at 1240px and leaves a few hundred
   pixels of empty margin either side. The header may use that room, so a menu
   with more items still fits across instead of collapsing into a button on a
   27-inch monitor. Content stays at its readable width. */
@media (min-width: 1360px) {
	.site-header .header-row { width: min(100% - 32px, 1560px); }
}

/* The menu bar collapses when it stops fitting, not at a width guessed in
   advance. theme.js measures the real gap between the last menu item and the
   account area and adds .is-crowded when there isn't one, so adding a menu item
   or renaming one to something longer can never make the header overlap.
   The media query below is the no-JavaScript floor. */
.site-header.is-crowded .header-row { position: relative; }
.site-header.is-crowded .nav-toggle { display: grid; }
.site-header.is-crowded .primary-nav {
	display: none; position: absolute; left: 0; right: 0; top: 100%;
	background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
	margin-right: 0;
}
.site-header.is-crowded .primary-nav.is-open { display: block; }
.site-header.is-crowded .primary-nav ul { flex-direction: column; flex-wrap: wrap; padding: 10px 16px 16px; }
.site-header.is-crowded .primary-nav a { padding: .8em 1em; white-space: normal; font-size: .95rem; }
.site-header.is-crowded .primary-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 14px; }

@media (max-width: 1200px) {
	.nav-toggle { display: grid; }
	.primary-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; padding: 10px 16px 16px; }
	.primary-nav a { padding: .8em 1em; }
	.primary-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 14px; }
	.header-row { position: relative; }
	.topbar__extra { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(16px, 3vw, 28px) 0 0; }
.hero__card {
	position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px);
	min-height: clamp(360px, 46vw, 520px); display: flex; align-items: center;
	background: #dfe8f5; box-shadow: var(--shadow);
	isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.hero__card::before {
	/* light scrim so dark text stays readable over ANY uploaded photo */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(244, 246, 249, .97) 0%, rgba(244, 246, 249, .9) 34%, rgba(244, 246, 249, .35) 60%, rgba(244, 246, 249, 0) 78%);
}
.hero__content { padding: clamp(28px, 5vw, 64px); max-width: 640px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.hero__title {
	font-family: var(--display); font-weight: 700; text-transform: uppercase;
	font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: .92; letter-spacing: 0; margin-bottom: .3em;
}
.hero__title em { font-style: normal; color: var(--primary); }
.hero__text { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 46ch; margin: 0 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero__stat strong { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.hero__stat span { font-size: .82rem; color: var(--muted); font-weight: 600; }

@media (max-width: 760px) {
	/* Phones: photo on top, text underneath, so the truck is actually visible. */
	.hero__card { flex-direction: column; align-items: stretch; min-height: 0; background: var(--surface); }
	.hero__card::before { display: none; }
	.hero__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
	.hero__media img { position: absolute; inset: 0; object-position: 78% 70%; }
	.hero__content { padding: 22px 20px 26px; }
	.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
	.hero__stat strong { font-size: 1.5rem; }
	.hero__stat span { font-size: .74rem; display: block; line-height: 1.3; margin-top: 4px; }
	.topbar .wrap > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}

/* ==========================================================================
   Section heads & category chips
   ========================================================================== */
.section { padding: clamp(32px, 5vw, 56px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-title {
	font-family: var(--display); font-weight: 700; text-transform: uppercase;
	font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0; line-height: 1;
	display: flex; align-items: center; gap: 12px;
}
.section-title::before { content: ""; width: 10px; height: 28px; border-radius: 3px; background: var(--accent); flex: none; }
.section-sub { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }

.cat-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 8px; scrollbar-width: thin; }
.cat-bar a {
	flex: none; padding: .55em 1em; border-radius: 999px; background: var(--surface);
	border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.cat-bar a:hover, .cat-bar a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   News grid — square tiles
   ========================================================================== */
.news-grid {
	display: grid; gap: var(--gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none; margin: 0; padding: 0;
}
@media (max-width: 1023px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .news-grid { grid-template-columns: minmax(0, 1fr); } }

.tile {
	position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
	background: var(--navy); box-shadow: var(--shadow); isolation: isolate;
	transition: transform .25s ease, box-shadow .25s ease;
}
@media (max-width: 559px) { .tile { aspect-ratio: 4 / 3.4; } }
.tile:hover, .tile:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile__media, .tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile__media { z-index: -2; }
.tile__media img { object-fit: cover; transition: transform .6s ease; }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(11, 20, 36, 0) 30%, rgba(11, 20, 36, .55) 58%, rgba(11, 20, 36, .94) 100%);
}
.tile__top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(16px, 2vw, 22px); color: #fff; }
.tile__title { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 800; line-height: 1.22; margin: 0 0 10px; color: #fff; letter-spacing: -.01em; }
.tile__title a { color: #fff; text-decoration: none; }
.tile__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole tile clickable */
.tile__title a:focus-visible { outline: none; }
.tile:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.tile__meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: #d6dce6; font-weight: 600; }
.tile__meta span + span::before { content: "•"; margin-right: 10px; color: var(--accent); }
.tile .chip { position: relative; z-index: 2; }
.tile__excerpt { display: none; }

/* Placeholder art when a post has no featured image */
.ph { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.ph svg.ph__truck { width: 78%; max-width: 360px; opacity: .9; transform: translateY(-12%); }
.ph--0 { background: linear-gradient(135deg, #1d4ed8, #0b1424); }
.ph--1 { background: linear-gradient(135deg, #f58220, #9a3412); }
.ph--2 { background: linear-gradient(135deg, #0f766e, #0b1424); }
.ph--3 { background: linear-gradient(135deg, #334155, #0b1424); }
.ph--4 { background: linear-gradient(135deg, #7c3aed, #1e1b4b); }
.ph::before {
	content: ""; position: absolute; inset: 0;
	background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 46px);
}

/* ==========================================================================
   Pinned / important card — spans the full grid row
   ========================================================================== */
.pinned { grid-column: 1 / -1; }
.section--pinned { padding-bottom: 0; }
.pinned__card {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	background: var(--navy); color: #fff; border-radius: calc(var(--radius) + 6px); overflow: hidden;
	box-shadow: var(--shadow-lg); isolation: isolate; min-height: 380px;
}
.pinned__card::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); z-index: 3;
}
.pinned__media { position: relative; min-height: 260px; }
.pinned__media img, .pinned__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pinned__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(11, 20, 36, 0) 60%, rgba(11, 20, 36, 1) 100%);
}
.pinned__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px; position: relative; }
.pinned__body::after {
	/* subtle road stripe texture */
	content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; z-index: -1;
	background: repeating-linear-gradient(-45deg, rgba(245, 130, 32, .12) 0 14px, transparent 14px 28px);
	border-radius: 50%;
}
.pin-badge {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
	background: var(--accent); color: var(--ink); font-weight: 800; font-size: .76rem;
	letter-spacing: .08em; text-transform: uppercase; padding: .5em .9em; border-radius: 999px;
}
.pin-badge svg { width: 14px; height: 14px; }
.pinned__title {
	font-family: var(--display); text-transform: uppercase; font-weight: 700;
	font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: .98; margin: 0; color: #fff; letter-spacing: 0;
}
.pinned__title a { color: #fff; text-decoration: none; }
.pinned__title a:hover { color: #ffd2ad; }
.pinned__excerpt { color: #c9d1de; margin: 0; font-size: 1.02rem; }
.pinned__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 6px; padding: 0; list-style: none; }
.pinned__facts li {
	display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .14); padding: .5em .85em; border-radius: 12px; font-weight: 600; font-size: .92rem;
}
.pinned__facts svg { width: 18px; height: 18px; color: #f7a24b; flex: none; }
.pinned__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown { font-size: .85rem; color: #f7a24b; font-weight: 700; letter-spacing: .02em; }

@media (max-width: 860px) {
	.pinned__card { grid-template-columns: minmax(0, 1fr); }
	.pinned__media { min-height: 0; aspect-ratio: 16 / 9; }
	.pinned__media::after { background: linear-gradient(180deg, rgba(11, 20, 36, 0) 55%, rgba(11, 20, 36, 1) 100%); }
	.pinned__card::before { width: auto; height: 6px; right: 0; bottom: auto; }
}

/* ==========================================================================
   What we stand against
   ========================================================================== */
.stand { padding-bottom: 0; }
.stand-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .stand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .stand-grid { grid-template-columns: minmax(0, 1fr); } }
.stand-card {
	position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 24px 22px 22px; box-shadow: var(--shadow); overflow: hidden;
}
.stand-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--accent); }
.stand-card__icon {
	width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
	background: #fff1e6; color: var(--accent-text); margin-bottom: 14px;
}
.stand-card__icon svg { width: 26px; height: 26px; }
.stand-card__title { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: 1.6rem; line-height: 1; margin: 0 0 8px; }
.stand-card__text { margin: 0; color: var(--muted); font-size: .96rem; }
.stand-card--us { background: var(--navy); border-color: var(--navy); }
.stand-card--us::before { background: var(--primary); }
.stand-card--us .stand-card__icon { background: rgba(255, 255, 255, .1); color: #f7a24b; }
.stand-card--us .stand-card__title { color: #fff; }
.stand-card--us .stand-card__text { color: #c9d1de; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center;
	border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
	text-decoration: none; color: var(--ink); font-weight: 700;
}
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); }

/* ==========================================================================
   CTA strip (app / community)
   ========================================================================== */
.cta-strip {
	border-radius: calc(var(--radius) + 6px); background: linear-gradient(120deg, var(--primary), #1740b0);
	color: #fff; padding: clamp(24px, 4vw, 44px); display: flex; align-items: center; justify-content: space-between;
	gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-strip::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
	border: 34px solid rgba(255, 255, 255, .08);
}
.cta-strip h2 { color: #fff; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 4px; line-height: 1; }
.cta-strip p { margin: 0; color: #dbe5fb; }

/* ==========================================================================
   Archive / page headers
   ========================================================================== */
.page-hero { padding: clamp(28px, 5vw, 56px) 0 8px; }
.page-hero h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; margin: 8px 0 8px; }
.page-hero p, .archive-description { color: var(--muted); max-width: 60ch; margin: 0; }

/* ==========================================================================
   Single post
   ========================================================================== */
.post-head { padding: clamp(28px, 5vw, 56px) 0 24px; }
.post-head .wrap { max-width: 860px; }
.post-head h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 14px 0 16px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.post-meta img { border-radius: 50%; width: 36px; height: 36px; }
.post-meta__author { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.post-cover { margin: 0 auto 36px; }
.post-cover img { width: 100%; border-radius: calc(var(--radius) + 6px); aspect-ratio: 16 / 8; object-fit: cover; box-shadow: var(--shadow); }
.post-cover figcaption { color: var(--muted); font-size: .85rem; margin-top: 8px; text-align: center; }

.event-box {
	max-width: 760px; margin: 0 auto 32px; background: var(--navy); color: #fff; border-radius: var(--radius);
	padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; border-left: 6px solid var(--accent);
}
.event-box .pinned__facts { margin: 0; }
.event-box .pin-badge { align-self: center; }

.entry-content { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.6em; font-weight: 800; }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.4em; font-weight: 800; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
	margin-left: 0; padding: 18px 24px; border-left: 5px solid var(--accent); background: var(--surface);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.15rem; font-weight: 600;
}
.entry-content pre { background: var(--navy); color: #e2e8f0; padding: 18px; border-radius: var(--radius-sm); overflow: auto; font-size: .9rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.entry-content .alignwide { max-width: 1100px; width: calc(100vw - 32px); margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { color: var(--muted); font-size: .85rem; text-align: center; }
.sticky, .gallery-caption, .bypostauthor { /* required by WordPress theme review */ }

.post-tags { max-width: 760px; margin: 28px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); padding: .4em .9em; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 600; }
.post-tags a:hover { border-color: var(--ink); }

.post-nav { max-width: 760px; margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-nav a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; text-decoration: none; color: var(--ink); font-weight: 700; }
.post-nav a:hover { border-color: var(--ink); }
.post-nav small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area { max-width: 760px; margin: 48px auto 0; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: clamp(14px, 4vw, 40px); }
.comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 12px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .82rem; }
.comment-metadata a { color: var(--muted); }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; padding: .75em 1em; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
}
.comment-form .submit { background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: .85em 1.5em; font-weight: 700; font: inherit; font-weight: 700; cursor: pointer; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: clamp(40px, 6vw, 72px); background: var(--navy); color: #aeb8c8; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #f7a24b; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 56px 0 36px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand__mark { background: #1a2640; }
.site-footer .brand__name span { color: #f7a24b; }
.footer-about { max-width: 34ch; }
.widget-title, .site-footer h2 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.social a { border: 1px solid rgba(255, 255, 255, .18); padding: .45em .9em; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.social a:hover { border-color: #f7a24b; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom ul { display: flex; gap: 18px; }
.road-line { height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 44px, transparent 44px 72px); opacity: .9; }

/* ==========================================================================
   Members: header links, social sign-in on comments, newsletter box
   ========================================================================== */
.account-links { display: flex; align-items: center; gap: 8px; }
.account-links__in { color: var(--ink-2); font-weight: 700; font-size: .92rem; text-decoration: none; padding: .55em .7em; border-radius: 999px; white-space: nowrap; }
.account-links__in:hover { background: var(--primary-soft); color: var(--primary); }
.account-links__join { padding: .6em 1.1em; font-size: .9rem; white-space: nowrap; }
.account-links { flex: none; }
.account-links__me { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.account-links__me img { width: 32px; height: 32px; border-radius: 50%; }
@media (max-width: 600px) {
	.account-links__in, .account-links__me span { display: none; }
	.account-links__join { padding: .55em .85em; font-size: .8rem; }
	.header-row { gap: 10px; }
}
@media (max-width: 380px) { .brand__name { font-size: 1.35rem; } }

.comment-social { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 18px; }
.comment-social__title { margin: 0 0 10px; font-weight: 800; }
.comment-social__or { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: .88rem; position: relative; }
.comment-social__or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.comment-social__or span { position: relative; background: var(--surface); padding: 0 10px; }
.must-log-in { font-weight: 600; }

.newsletter-box {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center;
	background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
	padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.newsletter-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.newsletter-box__title { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1; margin: 0 0 8px; }
.newsletter-box__text p { margin: 0; color: var(--muted); }
.newsletter-box__note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.newsletter-wrap { max-width: 760px; margin: 40px auto 0; }
.newsletter-box--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .newsletter-box { grid-template-columns: minmax(0, 1fr); } }
/* The Newsletter Plugin forms (tnp-*) — match the theme */
.newsletter-box .tnp-subscription, .newsletter-box .tnp-subscription-minimal { max-width: none; margin: 0; }
.newsletter-box input[type="email"], .newsletter-box input[type="text"] {
	width: 100%; font: inherit; padding: .8em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.newsletter-box input[type="email"]:focus, .newsletter-box input[type="text"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: #fff; }
.newsletter-box input[type="submit"], .newsletter-box button[type="submit"] {
	background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: .85em 1.4em; font: inherit; font-weight: 700; cursor: pointer;
}
.newsletter-box input[type="submit"]:hover, .newsletter-box button[type="submit"]:hover { background: #1a44bd; }
.newsletter-box .tnp-subscription-minimal form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-box .tnp-subscription-minimal input[type="email"] { flex: 1 1 220px; width: auto; }

/* ==========================================================================
   Share buttons
   ========================================================================== */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.share__label { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share__btn {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .88rem; font-weight: 700;
	text-decoration: none; cursor: pointer; line-height: 1; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.share__btn svg { width: 16px; height: 16px; }
.share__btn--native { background: var(--primary); border-color: var(--primary); color: #fff; }
.share__btn--native:hover { background: #1a44bd; color: #fff; }
.share__btn--net::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--net, var(--ink)); }
.share__btn--net:hover { background: var(--net, var(--ink)); border-color: var(--net, var(--ink)); color: #fff; }
.share__btn--net:hover::before { background: #fff; }
.share__btn--copy:hover { border-color: var(--ink); color: var(--ink); }
.share__status { font-size: .85rem; font-weight: 700; color: #0f7a3d; min-width: 1px; }
.post-head .share { margin-top: 18px; }
.share-end { max-width: 760px; margin: 36px auto 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.share-end__title { margin: 0; font-weight: 800; }
.share-end .share { margin-top: 12px; }
/* on the dark pinned card */
.pinned .share { margin: 0; gap: 8px; }
.pinned .share__btn { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.pinned .share__btn--native { background: rgba(255, 255, 255, .12); }
.pinned .share__btn:hover { border-color: #fff; background: rgba(255, 255, 255, .18); color: #fff; }
.pinned .share__status { color: #f7a24b; }
/* footer */
.footer-share { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; }
.footer-share .share { margin: 0; }
.footer-share .share__label { color: #aeb8c8; }
.footer-share .share__btn { background: transparent; border-color: rgba(255, 255, 255, .22); color: #fff; }
.footer-share .share__btn--native { background: var(--primary); border-color: var(--primary); }
.footer-share .share__btn--net::before { background: var(--net); box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.footer-share .share__status { color: #f7a24b; }

/* ==========================================================================
   Diesel tracker
   ========================================================================== */
.section--diesel { padding-bottom: 0; }
.diesel {
	display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: calc(var(--radius) + 6px);
	overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.diesel__main { background: var(--navy); color: #fff; padding: clamp(22px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 8px; position: relative; }
.diesel__eyebrow { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #f7a24b; }
.diesel__price { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(3.2rem, 7vw, 4.6rem); line-height: .95; }
.diesel__price span { font-size: .4em; color: #aeb8c8; margin-left: 4px; }
.diesel__sub { margin: 0; color: #c9d1de; font-size: .92rem; }
.diesel__changes { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.diesel__changes li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: .45em .75em; font-size: .88rem; color: #d6dce6; }
.diesel__changes li.is-up strong { color: #ff9a7a; }
.diesel__changes li.is-down strong { color: #6fdca6; }
.diesel__trend { margin: auto 0 0; padding-top: 16px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #aeb8c8; }
.diesel__spark { width: 100%; height: 64px; }
.diesel__regions { width: 100%; border-collapse: collapse; font-size: .95rem; align-self: start; }
.diesel__regions th, .diesel__regions td { padding: .62em 1.2em; border-bottom: 1px solid var(--line); text-align: left; }
.diesel__regions thead th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding-top: 1.1em; }
.diesel__regions tbody th { font-weight: 600; color: var(--ink-2); }
.diesel__regions td { font-variant-numeric: tabular-nums; font-weight: 700; }
.diesel__regions td.is-up { color: var(--accent-text); }
.diesel__regions td.is-down { color: #0f7a3d; }
.diesel__regions tbody tr:last-child th, .diesel__regions tbody tr:last-child td { border-bottom: 0; }
.diesel__source { grid-column: 1 / -1; margin: 0; padding: 12px 20px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.diesel--compact { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
@media (max-width: 860px) { .diesel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .diesel__regions th, .diesel__regions td { padding: .55em .8em; } }

/* ==========================================================================
   Breaking bar, sponsor, affiliate note, video chip, events
   ========================================================================== */
.topbar--breaking { background: #9f1d12; }
.topbar__breaking { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar__breaking:hover { text-decoration: underline; color: #fff; }
.topbar__flag { display: inline-block; background: #fff; color: #9f1d12; font-weight: 900; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .2em .55em; border-radius: 4px; margin-right: 6px; }

.sponsor { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.sponsor a { color: inherit; }
.sponsor__logo { max-height: 22px; width: auto; }
.pinned .sponsor { color: #aeb8c8; }
.pinned .sponsor a { color: #fff; }

.affiliate-note { max-width: 760px; margin: 0 auto 22px; padding: 12px 16px; border-radius: var(--radius-sm); background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; font-size: .92rem; }

.chip--video { display: inline-flex; align-items: center; gap: 4px; background: rgba(11, 20, 36, .85); color: #fff; }
.chip--video svg { width: 12px; height: 12px; }

.event-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.event-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) 120px; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.event-item__date { display: grid; place-items: center; background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 0; line-height: 1; text-align: center; }
.event-item__mon { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #f7a24b; }
.event-item__day { font-family: var(--display); font-weight: 700; font-size: 2.2rem; margin: 2px 0; }
.event-item__dow { font-size: .72rem; color: #aeb8c8; }
.event-item__title { margin: 0 0 4px; font-size: 1.15rem; font-weight: 800; }
.event-item__title a { color: var(--ink); text-decoration: none; }
.event-item__title a:hover { color: var(--primary); }
.event-item__meta { margin: 0 0 4px; color: var(--accent-text); font-weight: 700; font-size: .9rem; }
.event-item__excerpt { margin: 0; color: var(--muted); font-size: .92rem; }
.event-item__img img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.event-past .event-item { box-shadow: none; background: var(--bg); }
.event-past .event-item__date { background: #3b4557; }
.event-empty { color: var(--muted); }
@media (max-width: 640px) {
	.event-item { grid-template-columns: 64px minmax(0, 1fr); }
	.event-item__img { display: none; }
	.event-item__day { font-size: 1.8rem; }
}

/* ==========================================================================
   Contact Form 7 (contact + "send a tip" forms)
   ========================================================================== */
.wpcf7 form { max-width: 760px; }
.wpcf7 p { margin: 0 0 16px; }
.wpcf7 label { display: block; font-weight: 700; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; font: inherit; margin-top: 6px; padding: .75em 1em; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.wpcf7 input[type="file"] { margin-top: 6px; font: inherit; }
.wpcf7 .wpcf7-list-item { margin: 0; font-weight: 400; }
.wpcf7 input[type="submit"] { background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: .85em 1.6em; font: inherit; font-weight: 700; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: #1a44bd; }
.wpcf7 .wpcf7-not-valid-tip { color: #b91c1c; font-size: .88rem; font-weight: 600; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; border-radius: var(--radius-sm); padding: 12px 16px; }

/* ==========================================================================
   Misc
   ========================================================================== */
.empty-state { text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 56px 24px; }
.empty-state svg { width: 160px; margin: 0 auto 18px; color: var(--muted); }
.page-content-wrap { padding-bottom: 20px; }
.related { margin-top: 64px; }
.related .news-grid { margin-top: 18px; }
