/*
Theme Name: EV Pulse
Theme URI: https://www.evpulse.com
Author: Wrecked Media Group
Description: EV Pulse theme — a page-for-page replacement for the old headless Next.js front end. Works with the existing CPT UI post types and ACF fields.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: evpulse
*/

/* Figtree (SIL Open Font License), self-hosted: Latin + Latin Extended, variable weight 300-800. */
@font-face { font-family: 'Figtree'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('assets/fonts/figtree-latin-ext-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('assets/fonts/figtree-latin-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('assets/fonts/figtree-latin-ext-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('assets/fonts/figtree-latin-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--black: #000;
	--ink: #212529;
	--white: #fff;
	--band: #1d1d1d;
	--row: #333;
	--line: #d9d9d9;
	--muted: #a2a2a2;
	--muted-light: #6c757d;
	--accent: #bbc719;
	--accent-ink: #000;
	--link: #007bff;
	--wrap: 1232px;
	--font: "Figtree", "Azo Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--black); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5em 1em; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

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

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; line-height: 24px; text-decoration: none; padding: 6px 1.2em; border: 2px solid transparent; cursor: pointer; min-width: 350px; max-width: 100%; text-align: center; transition: .2s ease-in; }
.btn:hover { background: transparent; border-color: currentColor; color: inherit; }
.light .btn:hover, .blog-wrap .btn:hover { color: #000; }
.dark .btn:hover, .site-footer .btn:hover { color: #fff; }
.btn:disabled { background: #7f7f7f; color: #ccc; cursor: not-allowed; border-color: transparent; }
.btn-sm { min-width: 0; padding: 2px 10px; }
.more-wrap { text-align: center; margin: 1.5rem 0 0; }

/* ---------- Header ---------- */
.site-header { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 82px; }
.brand { display: block; width: 293px; flex-shrink: 0; }
.brand svg { width: 100%; height: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav .menu { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.site-nav .menu a { text-decoration: none; font-weight: 500; font-size: 20px; line-height: 30px; }
.site-nav .menu a:hover, .site-nav .menu .current-menu-item > a { color: var(--accent); }
.sub-toggle { background: none; border: 0; color: inherit; width: 20px; height: 20px; padding: 0; margin-left: 4px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sub-toggle::after { content: ""; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid currentColor; }
.sub-menu { list-style: none; margin: 0; padding: .5rem 0; position: absolute; top: 100%; left: -1rem; min-width: 210px; background: var(--white); color: #000; box-shadow: 0 8px 24px rgba(0,0,0,.25); display: none; }
.sub-menu a { display: block; padding: .35rem 1rem; font-size: 16px !important; line-height: 24px !important; }
.sub-menu a:hover { background: #f1f1f1; color: #000 !important; }
.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu, .menu-item-has-children.open > .sub-menu { display: block; }
.nav-search { display: flex; align-items: center; border: 1px solid var(--white); }
.nav-search input { width: 0; padding: 0; border: 0; background: transparent; color: var(--white); transition: width .2s, padding .2s; }
.nav-search:focus-within input, .nav-search.open input { width: 180px; padding: .3rem .5rem; }
.nav-search input:focus { outline: none; }
.nav-search button { background: none; border: 0; color: var(--white); width: 34px; height: 34px; padding: 7px; cursor: pointer; }
.nav-search .icon { width: 100%; height: 100%; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; }

/* ---------- Bands ---------- */
.band { padding: 2rem 0 2.5rem; }
.band.dark { background: var(--black); color: var(--white); }
.band.light { background: var(--white); color: #000; }
.dark-band { background: var(--band); color: var(--white); padding: 2.5rem 0; }
.dark-band.center { text-align: center; }
.band-title { font-size: 20px; font-weight: 400; margin: 0 0 .75rem; }
.band-title.small { font-size: 18px; font-weight: 700; }
.band-text { font-size: 15px; line-height: 1.6; max-width: 70ch; }
.dark-band.center .band-text { margin: 0 auto; }
.band-text p { margin: 0 0 .5rem; }
.section-title { font-size: 23px; font-weight: 300; text-transform: uppercase; margin: 0 0 1.25rem; line-height: 1.3; }
.section-title-lg { font-size: 30px; }
.section-rule { border: 0; border-top: 2px solid #9a9a9a; margin: 1.5rem 0; }
.light .section-rule { border-top-color: #bdbdbd; }
.breadcrumb { font-size: 16px; margin: 0 0 1rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 1.5rem; align-items: start; }
.empty { color: var(--muted); }

.meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 15px; line-height: 22.5px; color: var(--muted); margin-top: .35rem; }
.light .meta { color: var(--muted-light); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 980px; }
.card-grid-2 { max-width: none; margin-bottom: 2rem; }

.card-large .card-image { position: relative; display: block; overflow: hidden; background: #222; color: var(--white); text-decoration: none; }
.card-large .card-image img, .card-overlay img, .related-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-large .card-image:hover img, .card-overlay a:hover img, .related-tile:hover img { transform: scale(1.03); }
.card-gradient { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 3rem .6rem .5rem; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: var(--white); }
.card-title { display: block; font-size: 20px; font-weight: 700; line-height: 30px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.card-details { padding: .6rem .6rem 0; }
.card-excerpt { font-size: 16px; line-height: 28px; }
.card-excerpt p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review-tag { position: absolute; top: 0; left: 0; background: var(--black); color: var(--white); font-weight: 700; font-size: 16px; padding: .25rem .8rem; }

.card-overlay a { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #222; color: var(--white); text-decoration: none; }
.card-overlay .meta { color: #d0d0d0; }

.small-list { display: flex; flex-direction: column; gap: 1.5rem; }
.card-small { display: grid; grid-template-columns: 107px minmax(0, 1fr); gap: 1rem; }
.small-article-image { display: block; aspect-ratio: 1; overflow: hidden; background: #222; }
.small-article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-title2 { margin: 0; font-size: 18px; font-weight: 700; line-height: 27px; }
.article-title2 a { text-decoration: none; }
.article-title2 a:hover { color: var(--accent); }
.light .article-title2 a:hover { color: #6b7200; }
.article-hide-body { font-size: 16px; line-height: 32px; }
.article-hide-body p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Home */
.mixed-layout .card-large { max-width: 980px; }
.home-top .slider { position: relative; }
.slider-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.slider-tabs button { flex: 1; height: 16px; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.slider-tabs span { display: block; height: 3px; background: #555; }
.slider-tabs [aria-selected="true"] span { background: var(--white); }
.slide { display: none; }
.slide.is-active { display: block; animation: fade .6s ease; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }
.slider-arrow { position: absolute; top: 190px; width: 44px; height: 44px; border: 0; background: rgba(0,0,0,.35); cursor: pointer; opacity: 0; transition: opacity .2s; }
.slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow.prev { left: 8px; }
.slider-arrow.next { right: 8px; }
.slider-arrow::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; }
.slider-arrow.prev::after { transform: translateX(3px) rotate(135deg); }
.slider-arrow.next::after { transform: translateX(-3px) rotate(-45deg); }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: .75rem; }
.side-box { background: var(--white); color: #000; padding: .5rem .6rem; }
.side-box h3 { margin: 0 0 .25rem; font-size: 18px; line-height: 27px; font-weight: 700; }
.side-box .follow-title { font-weight: 400; }
.side-list, .side-social { list-style: none; margin: 0; padding: 0; }
.side-list a { display: block; border-bottom: 2px solid #777; padding: .1rem 0; text-decoration: none; font-size: 16px; line-height: 24px; }
.side-list a:hover, .side-list a.side-menu-active { color: #8c9412; }
.side-social a { display: flex; align-items: center; gap: 1rem; padding: .4rem .25rem; text-decoration: none; font-size: 16px; }
.side-social .icon { width: 24px; height: 24px; }
.side-social a:hover { color: #6b7200; }
.agenda .agenda-row { display: grid; grid-template-columns: 50px 1fr; gap: .5rem; font-size: 13px; }
.agenda hr { border: 0; border-top: 1px solid #ccc; margin: .35rem 0; }

/* ---------- Listing ---------- */
.listing-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.listing-head .section-title { margin-bottom: 1rem; }
.listing-subtitle { color: var(--muted); margin: -0.75rem 0 1.25rem; font-size: 15px; }
.section-dropdown { position: relative; margin-bottom: 1rem; }
.section-dropdown summary { list-style: none; cursor: pointer; background: #333; color: #fff; padding: .25rem .9rem; font-size: 15px; }
.section-dropdown summary::-webkit-details-marker { display: none; }
.section-dropdown summary::after { content: ""; display: inline-block; margin-left: .5rem; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; vertical-align: middle; }
.section-dropdown ul { position: absolute; z-index: 5; top: 100%; left: 0; list-style: none; margin: .25rem 0 0; padding: .4rem 0; background: #fff; color: #000; min-width: 190px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.section-dropdown a { display: block; padding: .3rem 1rem; text-decoration: none; }
.section-dropdown a:hover { background: #f1f1f1; }
.section-dropdown a.active { font-weight: 700; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2.5rem; }
.pagination .page-numbers { min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; text-decoration: none; font-size: 15px; padding: 0 .35rem; }
.pagination .current { color: var(--accent); }
.pagination .dots { border: 0; }
.pagination .disabled { opacity: .4; }

.table-list { list-style: none; margin: 0; padding: 0; }
.table-item a { display: block; padding: 1rem 1.25rem; font-size: 20px; text-decoration: none; }
.table-item.odd { background: var(--row); }
.table-item a:hover { color: var(--accent); }
.event-row { display: flex !important; align-items: center; gap: 1.5rem; }
.event-dates { display: flex; align-items: center; gap: .5rem; min-width: 110px; }
.event-date { display: flex; flex-direction: column; align-items: center; font-size: 11px; line-height: 1.3; }
.event-date strong { font-size: 20px; font-weight: 400; }
.event-dash { font-size: 16px; }

/* Author / event bands */
.author-band-inner { display: flex; justify-content: space-between; gap: 2rem; flex-direction: row-reverse; align-items: flex-start; }
.author-avatar { width: 200px; height: 200px; flex-shrink: 0; background-size: cover; background-position: center; }
.author-name-row { display: flex; align-items: center; gap: .6rem; }
.author-name-row .band-title { margin: 0; }
.rss-image { width: 22px; height: 22px; }
.author-socials { display: flex; gap: .75rem; margin-top: .75rem; }
.author-socials .icon { width: 26px; height: 26px; }
.event-band-inner { display: flex; justify-content: space-between; gap: 2rem; }
.band-dates { margin: 0 0 .5rem; }
.event-date-2 { font-size: 20px; text-align: right; white-space: nowrap; }

/* Pulse */
.pulse-banner { background-size: cover; background-position: center; color: #fff; }
.pulse-banner-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 110px; padding-left: 8%; }
.pulse-wordmark { font-size: 34px; letter-spacing: .12em; font-weight: 300; }
.pulse-divider { width: 2px; height: 56px; background: #fff; }
.pulse-tagline { width: 230px; font-size: 17px; line-height: 1.35; }
.pulse-page { background: #fff; color: #000; }
.pulse-page .section-title { text-transform: none; font-size: 20px; color: #555; }
.pulse-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.pulse-convo { margin-top: 3rem !important; }

/* Newsletter page */
.newsletter-page { background: #fff; color: #000; }
.newsletter-page-inner { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 2.5rem; align-items: start; max-width: 1000px; }
.newsletter-page-text h1, .newsletter-page-text h2 { font-size: 40px; margin: 0 0 .5rem; }
.newsletter-page-text ul { list-style: none; padding: 0; margin: 0; }
.newsletter-page-text li::before { content: "• "; }

/* Policy / generic pages */
.legal-page { background: #fff; color: #000; padding: 2.5rem 0 3rem; }
.legal-text { max-width: 820px; margin: 0 auto; font-size: 16px; line-height: 1.75; }
.legal-text h1 { font-size: 30px; margin: 0 0 1rem; }
.legal-text h2 { font-size: 26px; margin: 2rem 0 .75rem; }
.legal-text a { color: var(--link); }

/* ---------- Article ---------- */
.blog-post-page { background: #fff; color: var(--ink); padding: 1.25rem 0 2.5rem; }
.article-stream .blog-post-page + .blog-post-page { border-top: 8px solid #000; }
.article-container { max-width: 1000px; }
.blog-wrap { background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.15); padding: 1.5rem 1.5rem 2rem; }
.blog-title { font-size: 30px; font-weight: 600; line-height: 1.15; margin: .5rem 0 .75rem; }
.blog-author-date-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; font-size: 16px; font-weight: 300; }
.blog-author-date-wrap .date { display: inline-flex; align-items: center; gap: .35rem; }
.info-tip { position: relative; display: inline-flex; color: #9a9a9a; cursor: help; }
.info-tip .icon { width: 15px; height: 15px; }
.info-tip-text { position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); background: #000; color: #fff; font-size: 13px; padding: .3rem .6rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.info-tip:hover .info-tip-text, .info-tip:focus .info-tip-text { opacity: 1; }
.blog-source a { color: var(--link); }
.blog-source a.publication { font-style: italic; }
.share { display: flex; gap: .4rem; margin: .7rem 0 1rem; }
.share a { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.share a:hover { filter: brightness(.85); }
.share .icon { width: 16px; height: 16px; }
.blog-post-hero { position: relative; margin: 0 -1.5rem; }
.blog-post-hero img { width: 100%; }
.feature-video { position: relative; aspect-ratio: 16 / 9; }
.feature-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.graydient { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .75rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); display: flex; gap: .5rem; }
.badge-sponsored, .badge-ad { background: #444; color: #fff; font-weight: 700; font-size: 14px; padding: .15rem .6rem; letter-spacing: .04em; }
.badge-ad { background: transparent; border: 2px solid #fff; }
.featured-media-caption { font-size: 14px; color: #6c757d; margin: .5rem 0 0; }
.featured-media-caption p { margin: 0; }
.event-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.25rem 0 0; padding: .75rem 1rem; background: #1d1d1d; color: #fff; text-decoration: none; }
.event-header:hover { background: #000; }
.disclaimer { margin: 1.25rem 0 0; font-size: 15px; color: #444; }
.read-more-link { color: var(--link); margin-left: .25rem; }
.toc { margin-top: 1.5rem; }
.toc h2 { font-size: 26px; margin: 0 0 .5rem; }
.toc ul { margin: 0; padding-left: 1.25rem; }
.toc a { color: var(--link); font-size: 18px; line-height: 1.6; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.article-body { font-size: 20px; line-height: 40px; margin-top: 1.5rem; }
.article-body > :first-child { margin-top: 0; }
.article-body a { color: var(--link); }
.article-body h2 { font-size: 32px; font-weight: 600; line-height: 1.2; margin: 2rem 0 .75rem; scroll-margin-top: 147px; }
.article-body h3 { font-size: 24px; line-height: 1.3; margin: 1.5rem 0 .5rem; }
.article-body img, .article-body figure { margin: 1.5rem auto; }
.article-body figure, .article-body .wp-caption { max-width: 100%; }
.article-body figcaption, .article-body .wp-caption-text { font-size: 14px; line-height: 1.5; color: #6c757d; }
.article-body blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 4px solid var(--accent); background: #f6f6f6; }
.article-body iframe { max-width: 100%; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: .4rem .6rem; }
.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* In-content CTA buttons (classes used in article HTML from the old site) */
.article-body .body-button { display: inline-block; min-width: fit-content; width: 350px; max-width: 75%; height: 40px; padding: 0; margin-top: 5px; background-color: var(--accent); color: #000; border: 2px solid transparent; font: inherit; font-weight: 700; text-align: center; cursor: pointer; transition: .2s ease-in; vertical-align: middle; }
.article-body .body-button:hover { background-color: transparent; transition: .2s ease-out; }
.article-body .body-button:focus { outline: none; }
.article-body .body-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.article-body .body-button.black:hover { border-color: #000; color: #000; }
.article-body .body-button.white:hover { border-color: #fff; color: #fff; }
.article-body .body-button-text { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; padding: 0 1rem; color: #000; text-decoration: none; line-height: 1.2; cursor: pointer; }
.article-body .body-button-text:hover { color: #000; }
.article-body .black { color: #000; }
.article-body .mb-4 { margin-bottom: 1.5rem; }

/* Gallery slider + photo grid */
.carousel-wrap { margin-top: 2rem; }
.carousel-wrap h2, .related-title { font-size: 32px; font-weight: 600; margin: 0 0 1rem; }
.gallery-slider { position: relative; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 1rem) / 3); gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.carousel-image { scroll-snap-align: start; aspect-ratio: 3 / 2; overflow: hidden; background: #eee; }
.carousel-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slider .slider-arrow { top: calc(50% - 30px); opacity: 1; }
.gallery-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: .75rem; }
.gallery-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #c4c4c4; cursor: pointer; }
.gallery-dots button[aria-current="true"] { background: #000; }
.photo-gallery { margin-top: 2rem; text-align: center; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.photo-grid img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.load-btn { margin-top: 1rem; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.lightbox img { max-height: 90vh; width: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: .5rem 1rem; }
.lightbox .lb-close { top: 8px; right: 8px; }
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }

.blog-author-wrap { padding-top: 4em; }
.written-by { margin: 0 0 .5rem; font-size: 18px; }
.follow-author { display: flex; align-items: center; gap: .6rem; }
.follow-author a { color: var(--link); }
.follow-author .icon { width: 33px; height: 33px; }

.related { margin-top: 2.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.related-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #222; text-decoration: none; }
.related-tile .card-title { font-size: 16px; line-height: 1.3; }

.review-digest-wrap { margin-top: 2rem; }
.review-card { border: 2px solid #000; }
.review-card-head { background-size: cover; background-position: center; min-height: 180px; display: flex; align-items: flex-end; }
.review-card-head h2 { margin: 0; width: 100%; padding: 2rem 1rem .75rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-size: 26px; }
.review-card > :not(.review-card-head) { margin-left: 1rem; margin-right: 1rem; }
.review-scores { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; margin-top: 1rem; }
.overall { display: flex; flex-direction: column; align-items: center; }
.overall strong { font-size: 48px; line-height: 1; }
.ratings { margin: 0; display: grid; gap: .4rem; }
.ratings div { display: grid; grid-template-columns: 110px 1fr; align-items: center; }
.ratings dt { font-weight: 700; }
.ratings dd { margin: 0; display: flex; align-items: center; gap: .5rem; }
.ratings .bar { height: 10px; background: var(--accent); }
.review-card h3 { margin-top: 1.25rem; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem 1rem; margin: 0; }
.specs dt { font-size: 13px; text-transform: uppercase; color: #6c757d; }
.specs dd { margin: 0; font-weight: 700; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.pros-cons ul { list-style: none; padding: 0; }
.pros-cons li { display: flex; gap: .4rem; align-items: flex-start; }
.pros-cons .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }

.article-newsletter { background: #000; color: #fff; padding: 2rem 0; }
.comments { margin-top: 2rem; }
.load-more-background { background: #fff; padding: 1.5rem 0 3rem; text-align: center; }
.load-more { background: none; border: 2px solid #000; padding: .6rem 2rem; font-weight: 700; cursor: pointer; }
.load-more:hover { background: #000; color: #fff; }

/* ---------- Newsletter form ---------- */
.newsletter { color: #fff; }
.newsletter h2 { font-size: 23px; text-transform: uppercase; font-weight: 700; margin: 0 0 .25rem; }
.newsletter-sub { margin: 0 0 1rem; }
.newsletter-form { display: grid; gap: .5rem; max-width: 420px; }
.newsletter-form label { display: block; }
.newsletter-form input { width: 100%; padding: .45rem .7rem; border: 1px solid #ccc; background: #fff; color: #000; font-size: 16px; }
.newsletter-form .btn { min-width: 0; width: 100%; }
.newsletter-error { color: #ff6b6b; margin: 0; min-height: 1.2em; font-size: 14px; }
.article-newsletter .newsletter { text-align: center; }
.article-newsletter .newsletter-form { margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: #111 url('assets/img/carbon-fiber.jpg') center / cover; color: #fff; padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; }
.footer-brand .brand { width: 260px; }
.footer-social { list-style: none; display: flex; align-items: center; gap: 1.25rem; margin: 1rem 0; padding: 0; }
.social-logo { color: #8f8f8f; display: block; width: 32px; height: 32px; transition: .2s ease-in; }
.social-logo:hover { color: #fff; transform: scale(1.1); }
.social-logo .icon { width: 100%; height: 100%; }
.one-tree img { height: 3.5em; width: auto; }
.footer-email { color: #bdbdbd; text-decoration: none; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { line-height: 1.9; }
.footer-cols a { text-decoration: none; color: #9a9a9a; }
.footer-cols a:hover { color: #fff; }
.footer-head { font-size: 20px; letter-spacing: .06em; margin-top: .75rem; color: #fff; }
.footer-head:first-child { margin-top: 0; }
.footer-head a { color: #fff; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-top: 2rem; text-align: center; }
.footer-vlogo { width: 60px; height: auto; }
.footer-note, .copyright { margin: 0; font-size: 15px; color: #bdbdbd; }
.copyright a { color: #5b5b5b; text-decoration: none; }
.footer-links ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; margin: .5rem 0 0; padding: 0; font-size: 15px; }
.footer-links a { color: #bdbdbd; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.modal-box { position: relative; background: #fff; color: #000; width: min(520px, 100%); max-height: 90vh; overflow: auto; padding: 2rem; }
.modal-close { position: absolute; top: 8px; right: 8px; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; }
.modal-close .icon { width: 100%; height: 100%; }
.auth-modal h2 { margin: 0 0 .25rem; }
.contact-form { display: grid; gap: .75rem; margin-top: 1rem; }
.contact-form label { display: grid; gap: .25rem; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: .5rem .7rem; border: 1px solid #999; font-weight: 400; }
.contact-form .btn { min-width: 0; }
.form-error { color: #c00; margin: 0; min-height: 1.2em; }
.form-success { font-size: 20px; font-weight: 700; }
.newsletter-modal-box { background: #000; }
.newsletter-modal-box .modal-close { color: #fff; }

/* ---------- Cookie banner (Complianz) ---------- */
.cmplz-cookiebanner .cmplz-header .cmplz-title { font-size: 24px !important; font-weight: 700 !important; text-align: left !important; }
.cmplz-cookiebanner .cmplz-message { font-size: 16px !important; }

/* ---------- 404 ---------- */
.search-form { display: flex; gap: .5rem; justify-content: center; margin: 1rem 0; }
.search-form input[type="search"] { padding: .5rem .75rem; min-width: 0; width: 260px; border: 1px solid #555; background: #111; color: #fff; }
.search-form .search-submit { background: var(--accent); color: #000; border: 0; font-weight: 700; padding: .5rem 1rem; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.nav-toggle { display: block; }
	.site-nav { position: fixed; top: 82px; right: 0; bottom: 0; width: min(320px, 100%); background: #111; flex-direction: column; align-items: stretch; padding: 1rem 16px; gap: 1rem; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
	.site-nav.open { transform: none; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid #333; padding: .5rem 0; }
	.sub-toggle { width: 32px; height: 32px; }
	.sub-menu { position: static; width: 100%; box-shadow: none; background: transparent; color: #fff; padding: 0 0 0 .75rem; }
	.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { display: none; }
	.menu-item-has-children.open > .sub-menu { display: block; }
	.sub-menu a:hover { background: transparent; color: var(--accent) !important; }
	.nav-search { border-color: #555; }
	.nav-search input { width: 100% !important; padding: .4rem .5rem !important; }
	.nav-newsletter { text-align: center; }
	.with-sidebar { grid-template-columns: 1fr; }
	.sidebar { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-newsletter { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
	.newsletter-page-inner { grid-template-columns: 1fr; }
	.related-grid { grid-template-columns: repeat(2, 1fr); }
	.photo-grid { grid-template-columns: repeat(2, 1fr); }
	.gallery-track { grid-auto-columns: 100%; }
	.author-band-inner, .event-band-inner { flex-direction: column; }
}
@media (max-width: 700px) {
	.brand { width: 190px; }
	.header-inner { min-height: 64px; }
	.site-nav { top: 64px; }
	.section-title { font-size: 21px; }
	.section-title-lg { font-size: 24px; }
	.card-grid { grid-template-columns: 1fr; }
	.card-small { grid-template-columns: 88px minmax(0, 1fr); gap: .75rem; }
	.article-hide-body { display: none; }
	.meta { flex-direction: column; gap: 0; }
	.blog-wrap { padding: 1rem 1rem 1.5rem; box-shadow: none; }
	.blog-post-hero { margin: 0 -1rem; }
	.blog-title { font-size: 26px; }
	.article-body { font-size: 18px; line-height: 34px; }
	.article-body h2 { font-size: 26px; }
	.card-title { font-size: 18px; line-height: 26px; }
	.btn { min-width: 0; width: 100%; }
	.article-body .body-button { width: 100%; max-width: 100%; }
	.pros-cons, .review-scores { grid-template-columns: 1fr; }
	.alignleft, .alignright { float: none; margin: 1rem auto; }
	.footer-grid { grid-template-columns: 1fr; }
	.pulse-banner-inner { padding-left: 0; flex-wrap: wrap; }
	.table-item a { font-size: 18px; }
}

/* ---------- Parity fixes (from side-by-side review) ---------- */
.section-title { text-transform: none; }
.listing-head { align-items: baseline; }
.listing-subtitle { margin: 0 0 1rem; color: var(--white); font-size: 13px; }
@media (min-width: 1101px) { .section-dropdown { display: none; } }
.event-band-inner { align-items: flex-start; }
.event-date-2 { display: flex; align-items: center; gap: .75rem; font-size: 20px; }
.event-date-big { display: flex; flex-direction: column; line-height: 1.3; }
.event-date-big strong { font-weight: 700; }
.table-item a { padding: 1.35rem 1.25rem; }
.event-date { font-size: 12px; }
.event-date strong { font-size: 22px; }
.footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 3rem; }
.footer-left { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-cols { max-width: 360px; }
.footer-head { font-size: 22px; }
.site-footer .newsletter h2 { font-size: 26px; line-height: 1.3; }
.nl-label { display: block; font-size: 13px; margin-bottom: 2px; }
.newsletter:not(.newsletter-alt) .nl-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.newsletter-page .newsletter-page-text h1 { font-size: 40px; font-weight: 600; margin: 0 0 .5rem; }
.newsletter-page { padding: 2rem 0 3rem; }
.event-header { font-size: 20px; }
.event-header-dates { display: flex; align-items: center; gap: .75rem; text-align: right; }
.carousel-wrap h2 { scroll-margin-top: 147px; }
.info-tip::after { content: attr(data-tip); position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); background: #000; color: #fff; font-size: 13px; padding: .3rem .6rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.info-tip:hover::after, .info-tip:focus::after { opacity: 1; }

/* Article parity */
.blog-author-date-wrap .blog-source { margin-left: auto; }
.featured-media-caption { text-align: right; font-style: italic; font-size: 13px; }
.article-body img.size-large, .article-body img.size-full, .article-body .wp-caption img, .article-body figure img { width: 100%; height: auto; }
.article-body .wp-caption { width: 100% !important; }
.article-body .wp-caption-text, .article-body figcaption { text-align: right; font-style: italic; font-size: 13px; }
.event-header { background: #f1f1f1; color: #000; padding: 1rem 1.25rem; }
.event-header:hover { background: #e6e6e6; }
.event-header-dates { flex-direction: row; align-items: flex-start; }
.event-header .event-date-big { display: flex; flex-direction: column; text-align: center; }
.related-title { font-size: 14px; font-weight: 400; letter-spacing: .04em; }
.related-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.related-tile { aspect-ratio: 16 / 9; }
.related-tile .card-title { font-size: 20px; line-height: 1.3; }
.cmplz-cookiebanner .cmplz-header .cmplz-title { display: block !important; }

/* Contact Form 7 inside the contact modal */
.contact-form .wpcf7-form { display: grid; gap: .75rem; margin-top: 1rem; }
.contact-form .wpcf7-form p { margin: 0; }
.contact-form label { display: grid; gap: .25rem; font-weight: 700; }
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { width: 100%; padding: .5rem .7rem; border: 1px solid #999; font-weight: 400; }
.contact-form .wpcf7-submit { min-width: 0; width: 100%; }
.contact-form .wpcf7-not-valid-tip { color: #c00; font-size: 14px; font-weight: 400; }
.contact-form .wpcf7-response-output { margin: .5rem 0 0 !important; padding: .5rem .75rem !important; }
.contact-form .wpcf7-spinner { display: none; }

/* ===================================================================
   Design parity pass 2 (measured against the live site with tools/design_diff.js)
   =================================================================== */

/* Section content sits in a 980px column (headings, cards, lists, "More" buttons). */
.band > .container:not(.with-sidebar) > *, .home-top .container > * { max-width: 980px; }
.with-sidebar { grid-template-columns: minmax(0, 980px) minmax(0, 185px); justify-content: space-between; }
.card-grid, .card-grid-2 { max-width: 980px; }
.more-wrap { max-width: 980px; }
.section-title { line-height: 2; }
.section-title-lg { line-height: 2; }

/* Card text colours */
.meta, .light .meta, .dark .meta, .card-overlay .meta { color: #a2a2a2; }
.light .article-title2 a, .light .article-hide-body, .light .card-excerpt { color: #212529; }
.light .card-large .card-details { background: #000; color: #fff; }
.light .card-large .card-excerpt { color: #fff; }
.card-large .card-details { padding: .6rem .6rem .5rem; }
.review-tag { font-size: 18px; }

/* Overlay and large card images are a fixed 226px tall (350px where set inline). */
.card-overlay a { aspect-ratio: auto; height: 226px; }

/* Footer */
.footer-cols li a, .footer-cols li { font-size: 18px; color: #8f8f8f; }
.footer-cols .footer-head, .footer-cols .footer-head a { font-size: 24px; color: #fff; }
.footer-email { font-size: 18px; color: #8f8f8f; }
.footer-grid { grid-template-columns: minmax(0, 640px) minmax(0, 525px); justify-content: space-between; }
.site-footer .newsletter h2 { font-size: 30px; line-height: 45px; text-transform: none; }
.site-footer .newsletter-sub { font-size: 20px; line-height: 30px; }
.footer-note, .copyright, .footer-links a { color: #5b5b5b; }
.footer-bottom { max-width: var(--wrap); }

@media (max-width: 1100px) {
	.with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.container { padding: 0 31px; }
	.section-title { font-size: 23px; }
	.home .site-main > .band:first-child .section-title, .section-title-lg { font-size: 30px; }
	.card-title { font-size: 20px; line-height: 30px; }
	.meta { flex-direction: row; justify-content: space-between; gap: .5rem; }
	.blog-post-page .container { padding: 0 16px; }
}
.home-top .container > * { max-width: none; }
.with-sidebar { grid-template-columns: minmax(0, 980px) 178px; justify-content: start; column-gap: 35px; }
.pagination { gap: 18px; }
.footer-grid { grid-template-columns: minmax(0, 640px) minmax(0, 450px); }
.footer-bottom { align-items: stretch; }
.footer-links a { padding: 0 22px; display: inline-block; }
.footer-links ul { gap: .25rem 0; }
@media (max-width: 1100px) { .with-sidebar { grid-template-columns: 1fr; } }

/* Article parity (measured) */
.article-container { max-width: 1032px; }
.blog-wrap { padding: 0 0 2rem; }
.blog-wrap > .blog-post, .blog-wrap > .disclaimer, .blog-wrap > .toc, .blog-wrap > .article-body, .blog-wrap > .carousel-wrap,
.blog-wrap > .photo-gallery, .blog-wrap > .blog-author-wrap, .blog-wrap > .review-digest-wrap { padding-left: 32px; padding-right: 32px; }
.blog-post-hero { margin: 0; }
.blog-title { font-weight: 800; line-height: 30px; margin: 0; padding-top: 30px; }
.blog-author-date-wrap { padding: 16px 0 4px; }
.blog-author-date-wrap .date { font-weight: 600; color: #5e5e5e; }
.featured-media-caption, .featured-media-caption p { font-size: 14px; line-height: 28px; color: #212529; font-style: normal; text-align: left; margin: 0; padding: 0 5px; }
.event-header { margin: 1.25rem 0 0; padding: 16px 32px; background: #f7f7f7; font-size: 16px; }
.event-header strong, .event-header > span:first-child { font-size: 20px; }
.toc h2, .article-body h2 { font-size: 32px; line-height: 38.4px; font-weight: 800; }
.toc a { font-size: 20px; }
.article-body .wp-caption { line-height: 30px; }
.article-body img.size-large, .article-body img.size-full, .article-body .wp-caption img { width: 100%; height: 374px; object-fit: cover; }
.article-body .wp-caption-text, .article-body figcaption { color: #5e5e5e; font-size: 14px; line-height: 21px; font-style: italic; text-align: left; }
.written-by { font-size: 16px; }
.related { padding: 0 33px 40px; }
.related-title { font-size: 16px; }
.related-tile { aspect-ratio: 3 / 2; }
.related-tile .card-title { font-size: 18px; font-weight: 400; }
.breadcrumb.article-crumbs { line-height: 43px; color: #000; margin: 0; }
.breadcrumb.article-crumbs a { color: #000; }
@media (max-width: 700px) {
	.blog-wrap > .blog-post, .blog-wrap > .disclaimer, .blog-wrap > .toc, .blog-wrap > .article-body, .blog-wrap > .carousel-wrap,
	.blog-wrap > .photo-gallery, .blog-wrap > .blog-author-wrap, .blog-wrap > .review-digest-wrap { padding-left: 16px; padding-right: 16px; }
	.article-body img.size-large, .article-body img.size-full, .article-body .wp-caption img { height: auto; }
	.related { padding: 0 16px 32px; }
}
/* Parity pass 3 */
.event-date span, .event-date strong { font-size: 16px; line-height: 24px; }
.event-date strong { font-size: 20px; font-weight: 400; }
.event-header-dates, .event-header-dates span { font-size: 20px; line-height: 30px; }
.carousel-wrap h2 { font-weight: 800; line-height: 38.4px; }
.breadcrumb.article-crumbs, .breadcrumb.article-crumbs a { color: #212529; }
/* Parity pass 4 */
.article-body h3 { font-size: 28px; line-height: 1.2; }
.article-body li { line-height: 30px; }
.newsletter-page .newsletter-page-text h1 { font-weight: 800; line-height: 48px; }
.legal-text h1 { font-size: 28px; line-height: 33.6px; }
.legal-text h2 { font-size: 28px; line-height: 33.6px; }
@media (max-width: 700px) {
	.card-small .meta { flex-direction: column; gap: 0; }
	.btn { width: auto; min-width: 230px; }
	.table-item a { font-size: 20px; }
}

/* ===================================================================
   Layout pass 5 (measured on the live homepage at 390–1920px)
   Live: 1200px content at 1440px+, 8% side padding below that. Section
   columns are the content width minus the 220px sidebar, which shows from
   760px up. Top Stories spans the full content width.
   =================================================================== */
.header-inner, .band > .container { max-width: 1232px; }
@media (max-width: 1439px) {
	.header-inner, .band > .container { max-width: none; padding-left: 8%; padding-right: 8%; }
}
.band > .container:not(.with-sidebar) > * { max-width: calc(100% - 220px); }
.band.home-top > .container > * { max-width: none; }
.with-sidebar { grid-template-columns: minmax(0, 1fr) 220px; column-gap: 0; justify-content: stretch; }
.with-sidebar > .sidebar { padding-left: 35px; padding-right: 7px; }
@media (max-width: 1100px) {
	.with-sidebar { grid-template-columns: minmax(0, 1fr) 220px; }
	.with-sidebar > .sidebar { display: flex; }
}
@media (max-width: 759px) {
	.band > .container:not(.with-sidebar) > * { max-width: none; }
	.with-sidebar { grid-template-columns: minmax(0, 1fr); }
	.with-sidebar > .sidebar { display: none; }
}
/* Live wraps the byline/date pair as whole items rather than breaking words. */
.meta { flex-wrap: wrap; white-space: nowrap; column-gap: 1rem; row-gap: 0; }
/* The section dropdown only replaces the sidebar, which now shows from 760px. */
@media (min-width: 760px) { .section-dropdown { display: none; } }

/* ===================================================================
   Mobile audit fixes (tools/mobile_audit.js, 320–1366px)
   =================================================================== */
/* The "Published On" tooltip is laid out even while invisible; centred on the icon
   it ran past the right edge on phones and zoomed the whole article page out.
   Only render it while shown, and on narrow screens anchor it to the icon's right. */
.info-tip::after { display: none; }
.info-tip:hover::after, .info-tip:focus::after { display: block; }
@media (max-width: 700px) {
	.info-tip::after { left: auto; right: -6px; transform: none; }
}
/* Newsletter page: a plain 1fr track sized to the image's 764px intrinsic width. */
@media (max-width: 800px) {
	.newsletter-page-inner { grid-template-columns: minmax(0, 1fr); }
}
/* Layout pass 5 clears max-width on section children below 760px, which also
   removed the image's max-width: 100%. */
.band > .container.newsletter-page-inner > img { max-width: 100%; }

/* Mobile menu: dimmed backdrop, page scroll locked, burger turns into a close X,
   and the closed drawer is hidden from keyboard/screen readers (not just slid away). */
@media (max-width: 1100px) {
	.site-nav { visibility: hidden; transition: transform .25s, visibility 0s .25s; }
	.site-nav.open { visibility: visible; transition: transform .25s; }
	body.nav-open { overflow: hidden; }
	body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.5); }
	.nav-toggle span { transition: transform .2s, opacity .2s; }
	.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Bigger touch areas for the carousel controls without changing how they look. */
.slider-tabs button, .gallery-dots button { position: relative; }
.slider-tabs button::after { content: ""; position: absolute; inset: -8px 0; }
.gallery-dots button::after { content: ""; position: absolute; inset: -8px -3px; }

/* Article column on phones/tablets (measured on live at 320–1280px):
   the column is 90% wide up to 1000px (same 1000px as before on desktop);
   the 32px text inset only applies from 1000px; phone type sizes apply up to 600px. */
.blog-post-page .article-container { width: 90%; max-width: 1000px; padding-left: 0; padding-right: 0; }
@media (max-width: 999px) {
	.blog-wrap > .blog-post, .blog-wrap > .disclaimer, .blog-wrap > .toc, .blog-wrap > .article-body, .blog-wrap > .carousel-wrap,
	.blog-wrap > .photo-gallery, .blog-wrap > .blog-author-wrap, .blog-wrap > .review-digest-wrap, .related { padding-left: 0; padding-right: 0; }
}
@media (min-width: 601px) and (max-width: 700px) {
	.blog-title { font-size: 30px; line-height: 30px; }
	.article-body { font-size: 20px; line-height: 40px; }
	.toc h2, .article-body h2 { font-size: 32px; line-height: 38.4px; }
}
@media (max-width: 600px) {
	.blog-title { font-size: 20px; line-height: 20px; }
	.article-body { font-size: 16px; line-height: 28px; }
	.toc h2, .article-body h2, .carousel-wrap h2 { font-size: 24px; line-height: 28.8px; }
	.toc a, .toc li { font-size: 20px; line-height: 30px; }
}

/* Small cards (measured on live 320–1440px): 118px image (100px up to 600px) stretched
   to the card height (max 150px), 10px gap, title clamped to two lines, byline/date
   on one row that wraps when it doesn't fit. */
.card-small { grid-template-columns: 118px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.card-small .small-article-image { aspect-ratio: auto; min-height: 100px; max-height: 150px; }
.card-small-body { display: flex; flex-direction: column; justify-content: space-between; }
.card-small .article-title2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-small .meta { flex-direction: row; flex-wrap: wrap; justify-content: space-between; column-gap: 1.5rem; }
@media (max-width: 600px) {
	.card-small { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
}

/* "More …" buttons: 70% of the column, at most 334px, 34px tall. */
.more-wrap .btn { min-width: fit-content; width: 70%; max-width: 334px; padding-top: 3px; padding-bottom: 3px; white-space: nowrap; }

/* Below 760px live hides every breadcrumb except the article one, and the
   "Articles" section picker is plain text at the right end of the heading row,
   opening a bordered white menu aligned to its right edge. */
@media (max-width: 759px) {
	.breadcrumb:not(.article-crumbs) { display: none; }
	.listing-head { align-items: center; }
	.section-dropdown { margin-left: auto; }
	.listing-head .section-title, .section-dropdown { margin-bottom: 0; }
	.section-dropdown summary { background: transparent; font-size: 16px; line-height: 24px; padding: 11px 12px; }
	.section-dropdown summary::after { border-left-width: 4px; border-right-width: 4px; border-top-width: 5px; margin-left: .35rem; }
	.section-dropdown ul { left: auto; right: 6px; margin-top: 0; padding: 8px 0; min-width: 160px; border: 1px solid rgba(0,0,0,.15); box-shadow: none; }
	.section-dropdown a { font-size: 16px; line-height: 46px; padding: 4px 24px; font-weight: 300; color: #212529; white-space: nowrap; }
	.section-dropdown a.active { font-weight: 700; color: #737a0f; }
}

/* Events list: a single-day date is centred in the date column, like live. */
.event-dates { justify-content: center; min-width: 98px; }

/* ===================================================================
   Footer (measured on live at 375–1440px). One column below 1150px:
   logo, social, email, newsletter, links. From 1150px: two equal halves,
   logo/social/email/links on the left and the newsletter centred on the right.
   =================================================================== */
.site-footer { padding: 5vw 0 0; }
.site-footer > .container { max-width: none; padding-left: 8%; padding-right: 8%; }
.footer-grid { display: flex; flex-direction: column; gap: 0; }
.footer-brand .brand { display: block; width: clamp(250px, 50vw, 430px); }
.footer-brand .brand svg { width: 100%; height: auto; display: block; }
.footer-social { flex-wrap: wrap; gap: 0; margin: 16px 0 0 -12px; }
.footer-social li { width: 85px; height: 60px; display: flex; align-items: flex-start; padding: 4px 0 0 9px; }
.social-logo { width: 40px; height: 40px; }
.one-tree img { width: 56px; height: 56px; margin-top: -4px; }
.footer-email { display: inline-block; font-size: 18px; line-height: 27px; margin: 0 0 13.5px; }
.footer-newsletter { margin-top: 15px; }
.site-footer .newsletter { max-width: 450px; }
.site-footer .newsletter-form { max-width: 450px; }
.footer-cols { display: flex; flex-wrap: wrap; column-gap: 12px; justify-content: space-between; max-width: 400px; margin-top: 46px; }
.footer-cols ul { flex: 0 0 auto; }
.footer-cols li { line-height: normal; }
.footer-cols .footer-head, .footer-cols .footer-head a { font-size: 24px; letter-spacing: 3px; color: #fff; }
.footer-cols .footer-head { margin: 0; padding: 18px 0 8px; }
.footer-cols .footer-head:has(+ .footer-head), .footer-cols .footer-head:last-child { padding-bottom: 18px; }
.footer-cols li:not(.footer-head) a { display: block; font-size: 18px; padding: 4.5px 0 9px; color: #8f8f8f; }
.footer-bottom { max-width: none; gap: 0; margin-top: 18px; align-items: center; }
.footer-vlogo { width: 60px; height: 55px; margin: 8px 0; }
.footer-note, .copyright { font-size: 16px; line-height: 24px; font-weight: 500; padding: 8px 4px; color: #5b5b5b; }
.footer-links { width: 100%; }
.footer-links ul { flex-wrap: nowrap; justify-content: center; align-items: center; gap: 0; margin: 0; font-size: 16px; }
.footer-links a { display: block; padding: 8px 16px 16px; font-size: 16px; line-height: 24px; text-decoration: underline; text-align: center; color: #5b5b5b; }
@media (max-width: 575px) {
	.footer-links ul { flex-direction: column; }
}
@media (min-width: 1150px) {
	.site-footer { padding-top: 48px; }
	.footer-cols ul { flex: 1 1 0; }
	.footer-cols ul:last-child li:nth-child(2) { margin-top: 29px; }
	.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "brand nl" "cols nl"; align-items: start; }
	.footer-brand { grid-area: brand; }
	.footer-cols { grid-area: cols; margin-top: 11px; }
	.footer-newsletter { grid-area: nl; display: flex; justify-content: center; }
	.footer-newsletter .newsletter { width: 450px; }
}
@media (min-width: 1440px) {
	.site-footer > .container { max-width: 1232px; padding-left: 16px; padding-right: 16px; }
}

/* Header is 74px tall wherever the burger menu shows (live). */
@media (max-width: 1100px) {
	.header-inner { min-height: 74px; }
	.site-nav { top: 74px; }
}

/* Author / event / manufacturer bands (measured on live 375–1440px). */
.dark-band { padding: 48px 0; }
.dark-band > .container { max-width: 1232px; }
@media (max-width: 1439px) {
	.dark-band > .container { max-width: none; padding-left: 8%; padding-right: 8%; }
}
.dark-band.center .band-title { font-size: 23px; line-height: 46px; font-weight: 300; margin: 0 0 14px; }

/* Author: 30px RSS icon, 23px light name, 16px bio; photo right from 577px, below the bio under that. */
.author-name-row { gap: 0; align-items: flex-start; min-height: 52px; }
.author-name-row > a { flex: 0 0 47px; }
.rss-image { width: 30px; height: 30px; }
.author-name-row .band-title { font-size: 23px; line-height: 46px; font-weight: 300; }
.author-band .band-text { font-size: 16px; line-height: 24px; margin-top: 8px; max-width: 676px; }
.author-band-inner { flex-direction: row-reverse; gap: 0; }
.author-band-inner > div:last-child { flex: 1 1 auto; padding-right: 24px; max-width: 700px; }
@media (max-width: 576px) {
	.author-band-inner { flex-direction: column-reverse; align-items: flex-start; }
	.author-band-inner > div:last-child { padding-right: 24px; }
	.author-avatar { margin-top: 24px; }
}

/* Event: title, then the date on one line, then the description; from 850px the
   date moves to a column on the right (24px/36px). */
.event-band .band-title.small { font-size: 18px; line-height: 21.6px; font-weight: 800; margin: 0; }
.event-band .band-text { font-size: 16px; line-height: 24px; margin: 28px 0 0; }
.event-band .event-date-big strong { font-weight: 400; }
@media (max-width: 849px) {
	.event-band-inner { flex-direction: column; gap: 0; }
	.event-band-inner > div:first-child { display: contents; }
	.event-band .band-title { order: 1; }
	.event-band .event-date-2 { order: 2; margin-top: 4px; }
	.event-band .band-text { order: 3; margin-top: 24px; }
	.event-band .band-title, .event-band .band-text { padding-right: 48px; }
	.event-band .event-date-big { flex-direction: row; gap: 4px; }
	.event-band .event-date-big > * { font-size: 16px; line-height: 24px; }
}
@media (min-width: 850px) {
	.event-band-inner > div:first-child { flex: 1 1 auto; max-width: 700px; padding-right: 24px; }
	.event-band .event-date-2 { margin-right: 48px; }
	.event-band .event-date-big { text-align: left; }
	.event-band .event-date-big > * { font-size: 24px; line-height: 36px; }
}

/* List spacing (live): breadcrumb 24px under the header on plain listings from 760px;
   after an author/event/manufacturer band the list starts 48px (phones) / 64px lower,
   and its heading is 20px/30px regular. */
@media (min-width: 760px) {
	.band.listing { padding-top: 24px; }
	.dark-band + .band.listing { padding-top: 64px; }
}
@media (max-width: 759px) {
	.dark-band + .band.listing { padding-top: 48px; }
}
.dark-band + .band.listing .section-title { font-size: 20px; line-height: 30px; font-weight: 400; margin-bottom: 24px; }
.author-avatar { margin-bottom: 8px; }

/* Search: "1-10 of 491 Results" next to the heading is 16px grey on live. */
.listing-subtitle { font-size: 16px; line-height: 46px; font-weight: 300; color: #a2a2a2; margin: 0 0 0 -8px; }
.listing-head:has(.listing-subtitle) .section-title { font-size: 22px; }
