/*
Theme Name:   Outdooreer
Theme URI:    https://www.outdooreer.com/
Description:  Lightweight classic theme for Outdooreer: gear spec sheets, comparisons and field guides. Requires the Outdooreer Core plugin for products, filters and affiliate buttons.
Version:      1.1.1
Requires at least: 6.4
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  outdooreer
*/

/* ------------------------------------------------------------------ fonts (Barlow, SIL OFL, self-hosted) */
@font-face { font-family: "Barlow"; src: url(assets/fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(assets/fonts/barlow-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(assets/fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(assets/fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; 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-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(assets/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* ------------------------------------------------------------------ tokens */
:root {
	--spruce: #1f3a2e;   /* primary dark: header text, footer, headings */
	--moss: #3e6b4f;     /* secondary green: contours, borders on dark */
	--lichen: #9db38a;   /* contour lines, quiet accents */
	--mist: #e6ece2;     /* surfaces: spec sheets, filter bar */
	--snow: #f5f7f2;     /* page background (cool, not cream) */
	--blaze: #e8a317;    /* trail-blaze yellow: the one action color */
	--glacier: #22617f;  /* links */
	--ink: #17241d;      /* body text */
	--granite: #4b5750;  /* secondary text (AA on snow) */
	--rule: #cdd6c8;

	--f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

	/* type scale: 1.250 major third from 17px */
	--t-sm: 0.875rem; --t-base: 1.0625rem; --t-md: 1.3rem; --t-lg: 1.66rem; --t-xl: 2.1rem; --t-2xl: 2.9rem; --t-3xl: clamp(2.6rem, 7vw, 4.6rem);
	--measure: 68ch;
	--wrap: 1180px;
	--gap: clamp(1rem, 3vw, 2rem);
	--radius-tag: 10px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--snow); color: var(--ink); font: 400 var(--t-base)/1.6 var(--f-body); font-feature-settings: "tnum" 0; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--glacier); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; color: var(--spruce); line-height: 1.08; letter-spacing: 0.005em; margin: 1.6em 0 0.5em; }
h1 { font-size: var(--t-2xl); margin-top: 0; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); font-weight: 600; }
p, ul, ol, table { margin: 0 0 1.1em; }
.visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 99; width: auto; height: auto; clip: auto; background: var(--blaze); color: var(--ink); padding: 0.6em 1em; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------------------------ header */
.site-header { background: var(--snow); border-bottom: 1px solid var(--rule); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 40px; width: auto; display: block; }
.nav-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4em; background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 0.45em 0.75em; font: 600 var(--t-sm)/1 var(--f-body); color: var(--spruce); cursor: pointer; }
.primary-nav { display: none; }
.primary-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--snow); border-bottom: 1px solid var(--rule); padding: 0.5rem var(--gap) 1rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 0.6em 0; font: 600 1.15rem/1.2 var(--f-display); color: var(--spruce); text-decoration: none; }
.primary-nav .sub-menu a { font: 500 var(--t-base)/1.3 var(--f-body); padding: 0.4em 0 0.4em 1rem; color: var(--granite); }
.header-search { display: none; }
@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.primary-nav, .primary-nav.is-open { display: block; position: static; padding: 0; border: 0; background: none; margin-left: auto; }
	.primary-nav > ul { display: flex; gap: 0.25rem; }
	.primary-nav > ul > li { position: relative; }
	.primary-nav > ul > li > a { padding: 0.5em 0.8em; font-size: 1.2rem; border-radius: 6px; }
	.primary-nav > ul > li > a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { background: var(--mist); }
	.primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 0.4rem 0; box-shadow: 0 10px 24px -12px rgba(23,36,29,.35); }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
	.primary-nav .sub-menu a { padding: 0.5em 1rem; color: var(--ink); }
	.primary-nav .sub-menu a:hover { background: var(--mist); }
	.header-search { display: block; }
}
.search-form { display: flex; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 0 0.3rem 0 0.8rem; }
.search-form input { border: 0; background: none; font: inherit; font-size: var(--t-sm); padding: 0.5em 0.2em; width: 11rem; color: var(--ink); }
.search-form input:focus { outline: none; }
.search-form:focus-within { outline: 3px solid var(--blaze); outline-offset: 1px; }
.search-form button { border: 0; background: none; color: var(--spruce); padding: 0.4em; cursor: pointer; display: inline-flex; }

/* staging ribbon */
.staging-bar { background: var(--blaze); color: var(--ink); font: 600 var(--t-sm)/1.3 var(--f-body); text-align: center; padding: 0.35em 1em; }

/* ------------------------------------------------------------------ contour motif */
.topo { position: relative; isolation: isolate; overflow: hidden; }
.topo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(assets/img/contours.svg) right -120px center / 900px auto no-repeat; opacity: 0.9; }

/* ------------------------------------------------------------------ hero (home) */
.hero { background: var(--mist); border-bottom: 1px solid var(--rule); padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero h1 { font-size: var(--t-3xl); line-height: 0.95; max-width: 11ch; margin: 0 0 0.35em; letter-spacing: -0.005em; }
.hero p.lede { font-size: var(--t-md); max-width: 36ch; color: var(--granite); margin-bottom: 1.6rem; }
.finder { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 1rem; max-width: 760px; display: grid; gap: 0.75rem; grid-template-columns: 1fr; box-shadow: 0 18px 40px -28px rgba(23,36,29,.45); }
.finder legend { font: 600 var(--t-md)/1 var(--f-display); color: var(--spruce); padding: 0; margin-bottom: 0.25rem; }
.finder fieldset { border: 0; margin: 0; padding: 0; display: contents; }
.finder label { display: grid; gap: 0.25rem; font-size: var(--t-sm); font-weight: 600; color: var(--granite); }
.finder .btn { align-self: end; }
@media (min-width: 720px) { .finder { grid-template-columns: repeat(3, 1fr) auto; align-items: end; padding: 1.1rem 1.25rem; } .finder legend { grid-column: 1 / -1; } }
.hero__alt { margin-top: 1rem; font-size: var(--t-sm); color: var(--granite); }

select, input[type="text"], input[type="search"], input[type="email"] { font: inherit; font-size: var(--t-base); color: var(--ink); background: #fff; border: 1px solid #b9c4b4; border-radius: 6px; padding: 0.55em 0.7em; min-height: 44px; width: 100%; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231f3a2e' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.6em center; background-size: 1em; padding-right: 2em; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; min-height: 44px; padding: 0.6em 1.2em; border-radius: 6px; border: 2px solid var(--spruce); background: var(--spruce); color: var(--snow); font: 600 1.05rem/1 var(--f-body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--moss); border-color: var(--moss); }
.btn--quiet { background: transparent; color: var(--spruce); }
.btn--quiet:hover { background: var(--mist); color: var(--spruce); }
.btn--buy, .btn--amazon { background: var(--blaze); border-color: var(--blaze); color: var(--ink); }
.btn--buy:hover, .btn--amazon:hover { background: #d29213; border-color: #d29213; }
.buy { display: grid; gap: 0.35rem; justify-items: start; }
.buy__note { font-size: 0.8rem; color: var(--granite); }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(2.25rem, 6vw, 4rem) 0; }
.section + .section { padding-top: 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
.section__head h2 { margin: 0; }
.section__head a { font-weight: 600; }

/* guides list: text-led, two columns, no cards */
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 var(--gap); grid-template-columns: 1fr; }
@media (min-width: 800px) { .guide-list { grid-template-columns: 1fr 1fr; } }
.guide-list li { border-top: 1px solid var(--rule); padding: 1.1rem 0 1.2rem; }
.guide-list h3 { margin: 0 0 0.3rem; font-size: var(--t-md); }
.guide-list h3 a { color: var(--spruce); text-decoration: none; }
.guide-list h3 a:hover { text-decoration: underline; }
.guide-list p { margin: 0; color: var(--granite); max-width: 56ch; }
.guide-list .kicker { font-size: var(--t-sm); color: var(--moss); font-weight: 600; margin-bottom: 0.2rem; display: block; }

/* ------------------------------------------------------------------ hang-tag product card (signature element) */
.tags { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tag { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-tag) var(--radius-tag) var(--radius-tag) 28px; padding: 1.4rem 1.25rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.tag::before { /* punched eyelet */ content: ""; position: absolute; top: 14px; right: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--snow); border: 2px solid var(--lichen); }
.tag__brand { font-size: var(--t-sm); font-weight: 600; color: var(--moss); }
.tag__name { font: 700 var(--t-lg)/1.02 var(--f-display); margin: 0; padding-right: 1.5rem; }
.tag__name a { color: var(--spruce); text-decoration: none; }
.tag__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.tag__name a:focus-visible { outline: none; }
.tag:focus-within { outline: 3px solid var(--blaze); outline-offset: 2px; }
.tag__specs { margin: 0.2rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.9rem; font-size: var(--t-sm); border-top: 1px dashed var(--lichen); padding-top: 0.7rem; }
.tag__specs dt { color: var(--granite); }
.tag__specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.tag__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-top: 0.4rem; position: relative; z-index: 1; }
.tag .buy { position: relative; z-index: 1; }
.label { display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.8rem; font-weight: 600; padding: 0.2em 0.6em; border-radius: 999px; background: var(--mist); color: var(--spruce); }
.label--hands-on { background: #fbe7bd; }
.label--partial { background: #fff; border: 1px dashed var(--granite); color: var(--granite); }
.label--discontinued { background: #f3d9d4; color: #6b231a; }

/* ------------------------------------------------------------------ method strip (home) */
.method { background: var(--spruce); color: var(--snow); }
.method h2 { color: var(--snow); margin-top: 0; }
.method ol { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .method ol { grid-template-columns: repeat(3, 1fr); } }
.method li { counter-increment: step; border-top: 2px solid var(--moss); padding-top: 0.9rem; }
.method li::before { content: counter(step); font: 700 var(--t-xl)/1 var(--f-display); color: var(--blaze); display: block; margin-bottom: 0.3rem; }
.method strong { display: block; font: 600 var(--t-md)/1.2 var(--f-display); margin-bottom: 0.2rem; }
.method p { color: #d5ddd1; margin: 0; }
.method a { color: #fff; }

/* ------------------------------------------------------------------ page heads, breadcrumbs */
.page-head { padding: clamp(1.75rem, 5vw, 3rem) 0 1.25rem; border-bottom: 1px solid var(--rule); background: var(--mist); }
.page-head h1 { margin-bottom: 0.3rem; }
.page-head .dek { font-size: var(--t-md); color: var(--granite); max-width: 60ch; margin: 0.4rem 0 0; }
.crumbs { font-size: var(--t-sm); margin-bottom: 0.75rem; color: var(--granite); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: var(--lichen); }
.crumbs a { color: var(--granite); }
.meta-line { font-size: var(--t-sm); color: var(--granite); display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 0.8rem; }

/* ------------------------------------------------------------------ prose */
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--t-xl); }
.prose li { margin-bottom: 0.35em; }
.prose table, .spec-compare { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.55em 0.7em; border-bottom: 1px solid var(--rule); }
.prose thead th { font-family: var(--f-display); font-size: 1.05rem; color: var(--spruce); border-bottom: 2px solid var(--spruce); }
.prose .tag { margin: 1.5rem 0; max-width: 460px; }
.layout { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); padding: clamp(1.75rem, 5vw, 3rem) 0; }
@media (min-width: 1000px) { .layout--aside { grid-template-columns: minmax(0, 1fr) 320px; } }
.aside > * + * { margin-top: 2rem; }
.aside h2 { font-size: var(--t-lg); margin-top: 0; }
.aside ul { padding-left: 1.1rem; }

/* disclosure + editor flags */
.disclosure { font-size: var(--t-sm); color: var(--granite); border-left: 3px solid var(--blaze); background: #fff; padding: 0.7rem 0.9rem; margin: 0 0 1.5rem; max-width: var(--measure); }
.disclosure p { margin: 0; }
.editor-flag { display: flex; gap: 0.5rem; align-items: flex-start; font-size: var(--t-sm); background: #fff7e3; border: 1px dashed #b07a06; color: #5c4003; padding: 0.55rem 0.75rem; border-radius: 6px; margin: 0.5rem 0; position: relative; z-index: 1; }
.placeholder { background: #fff7e3; outline: 1px dashed #b07a06; padding: 0 0.25em; }
.callout { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 0.9rem 1rem; margin: 0 0 1.5rem; font-size: 0.97rem; }
.callout strong { color: var(--spruce); }
.callout--warn { border-color: #d9a9a0; background: #fcf1ee; }

/* ------------------------------------------------------------------ product page */
.product-head { display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding: clamp(1.75rem, 5vw, 3rem) 0 0; }
@media (min-width: 1000px) { .product-head { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; } }
.product-head h1 { margin: 0.1rem 0 0.6rem; }
.product-head .brand-link { font-weight: 600; color: var(--moss); text-decoration: none; }
.product-head .summary { font-size: var(--t-md); color: var(--granite); max-width: 48ch; }
.sheet { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-tag) var(--radius-tag) var(--radius-tag) 36px; padding: 1.25rem 1.25rem 1rem; position: relative; }
.sheet::before { content: ""; position: absolute; top: 18px; right: 20px; width: 16px; height: 16px; border-radius: 50%; background: var(--snow); border: 2px solid var(--lichen); }
.sheet h2 { font-size: var(--t-lg); margin: 0 0 0.75rem; }
.sheet dl { display: grid; grid-template-columns: minmax(8.5rem, auto) 1fr; margin: 0; font-size: 0.95rem; }
.sheet dt, .sheet dd { padding: 0.45em 0; border-top: 1px solid var(--mist); margin: 0; }
.sheet dt { color: var(--granite); padding-right: 0.8rem; }
.sheet dd { font-variant-numeric: tabular-nums; }
.sheet sup a { text-decoration: none; font-size: 0.75em; padding: 0 0.15em; }
.sheet .na { color: var(--granite); font-style: italic; }
.sheet__foot { font-size: var(--t-sm); color: var(--granite); margin-top: 0.75rem; }
.pair { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin: 0 0 1.5rem; }
@media (min-width: 700px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair h2 { font-size: var(--t-lg); margin: 0 0 0.5rem; }
.pair ul { padding-left: 1.1rem; margin: 0; }
.sources { font-size: var(--t-sm); counter-reset: none; padding-left: 1.4rem; }
.sources li { margin-bottom: 0.5rem; }
.sources .type { color: var(--granite); }

/* ------------------------------------------------------------------ filter bar */
.filters { background: var(--mist); border: 1px solid var(--rule); border-radius: 10px; padding: 1rem; margin: 0 0 1.5rem; }
.filters form { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.filters label { display: grid; gap: 0.25rem; font-size: var(--t-sm); font-weight: 600; color: var(--granite); }
.filters .actions { display: flex; gap: 0.5rem; align-items: center; }
.results-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; align-items: baseline; margin-bottom: 1rem; color: var(--granite); }
.empty { background: #fff; border: 1px dashed var(--lichen); border-radius: 10px; padding: 1.25rem; color: var(--granite); max-width: var(--measure); }

/* ------------------------------------------------------------------ compare */
.compare__types { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.compare__types a { padding: 0.45em 0.9em; border-radius: 999px; border: 1px solid var(--rule); text-decoration: none; color: var(--spruce); font-weight: 600; }
.compare__types a[aria-current] { background: var(--spruce); color: var(--snow); border-color: var(--spruce); }
.compare__picker fieldset { border: 0; padding: 0; margin: 0 0 0.75rem; }
.compare__picker legend { font-weight: 600; margin-bottom: 0.5rem; }
.compare__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 0.4em 0.9em; font-size: var(--t-sm); cursor: pointer; }
.chip:has(input:checked) { border-color: var(--spruce); background: var(--mist); }
.table-scroll { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.spec-compare { min-width: 620px; }
.spec-compare th, .spec-compare td { padding: 0.65em 0.85em; border-bottom: 1px solid var(--mist); text-align: left; vertical-align: top; }
.spec-compare thead th { font: 700 1.2rem/1.1 var(--f-display); color: var(--spruce); border-bottom: 2px solid var(--spruce); background: #fff; }
.spec-compare thead th a { color: var(--spruce); }
.spec-compare__brand { display: block; font: 600 var(--t-sm)/1.3 var(--f-body); color: var(--moss); }
.spec-compare tbody th { color: var(--granite); font-weight: 500; white-space: nowrap; position: sticky; left: 0; background: #fff; }
.spec-compare td { font-variant-numeric: tabular-nums; }
.badge--lightest { display: inline-block; font-size: 0.75rem; font-weight: 600; background: #fbe7bd; color: var(--ink); border-radius: 4px; padding: 0.05em 0.4em; margin-left: 0.3em; }
.na { color: var(--granite); font-style: italic; }
.compare__note { font-size: var(--t-sm); color: var(--granite); max-width: var(--measure); }

/* ------------------------------------------------------------------ directory pages */
.dir { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; padding: 0; }
.dir li { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 1.1rem 1.2rem; }
.dir h2, .dir h3 { margin: 0 0 0.3rem; font-size: var(--t-lg); }
.dir h2 a, .dir h3 a { color: var(--spruce); text-decoration: none; }
.dir p { margin: 0 0 0.5rem; color: var(--granite); font-size: 0.97rem; }
.dir .count { font-size: var(--t-sm); font-weight: 600; color: var(--moss); }
.dir ul { padding-left: 1.1rem; margin: 0.4rem 0 0; font-size: 0.97rem; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--spruce); color: #d5ddd1; margin-top: clamp(3rem, 8vw, 5rem); padding: 3rem 0 2rem; font-size: 0.95rem; }
body.home .site-footer { margin-top: 0; }
.site-footer.topo::before { background-image: url(assets/img/contours-dark.svg); opacity: 1; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer img { height: 40px; width: auto; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer h2 { color: var(--snow); font-size: var(--t-md); margin: 0 0 0.75rem; }
.footer-legal { border-top: 1px solid var(--moss); margin-top: 2rem; padding-top: 1.25rem; font-size: var(--t-sm); color: #b9c6b4; }
.footer-legal p { margin: 0 0 0.4rem; }

/* pagination */
.pagination { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 2rem; }
.pagination a, .pagination span { padding: 0.45em 0.8em; border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; background: #fff; }
.pagination .current { background: var(--spruce); color: var(--snow); border-color: var(--spruce); }

/* ------------------------------------------------------------------ Amazon placements */
.amazon-box { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--blaze); border-radius: 10px; padding: 1rem 1.2rem; margin: 1.75rem 0; max-width: var(--measure); }
.amazon-box__title { font-size: var(--t-lg); margin: 0 0 0.4rem; }
.amazon-box p { color: var(--granite); margin: 0 0 0.6rem; }
.amazon-box ul { list-style: none; padding: 0; margin: 0 0 0.6rem; display: grid; gap: 0.4rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.amazon-box li a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 44px; padding: 0.5em 0.8em; border: 1px solid var(--rule); border-radius: 6px; font-weight: 600; color: var(--spruce); text-decoration: none; background: var(--snow); }
.amazon-box li a::after { content: "Shop"; font-size: 0.75rem; font-weight: 600; color: var(--ink); background: var(--blaze); border-radius: 4px; padding: 0.1em 0.45em; flex: none; }
.amazon-box li a:hover { border-color: var(--spruce); }
.amazon-box__note { font-size: 0.8rem; }
.section .amazon-box { max-width: none; }
.buy--sheet { margin-top: 0.9rem; }
.buy-sticky { display: none; }
@media (max-width: 899px) {
	.buy-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(245,247,242,.97); border-top: 1px solid var(--rule); padding: 0.55rem var(--gap) calc(0.55rem + env(safe-area-inset-bottom)); }
	.buy-sticky .buy { grid-template-columns: auto 1fr; align-items: center; gap: 0.6rem; }
	.buy-sticky .buy__note { font-size: 0.72rem; }
	body.single-gear { padding-bottom: 72px; }
}

/* ------------------------------------------------------------------ cookie consent */
.consent { position: fixed; z-index: 50; left: var(--gap); right: var(--gap); bottom: var(--gap); max-width: 640px; margin-left: auto; background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 24px 48px -24px rgba(23,36,29,.5); }
.consent[hidden], .consent [hidden] { display: none !important; }
.consent__inner { padding: 1.1rem 1.2rem; max-height: 80vh; overflow: auto; }
.consent__title { font-size: var(--t-md); margin: 0 0 0.4rem; }
.consent p { font-size: 0.92rem; margin: 0 0 0.8rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent__actions .btn { flex: 1 1 auto; }
.consent__prefs { display: grid; gap: 0.6rem; margin: 0 0 0.9rem; }
.consent__row { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; }
.consent__row input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--spruce); flex: none; }
body.has-consent-banner .buy-sticky { display: none; }

/* ------------------------------------------------------------------ photos (licensed stock / own photos, with credit) */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: var(--mist); }
.photo-credit { font-size: 0.75rem; color: var(--granite); margin-top: 0.35rem; }
.photo-credit a { color: inherit; }

/* homepage hero with photo */
.hero--media .wrap { display: grid; gap: 1.75rem; align-items: center; }
.hero__photo img { aspect-ratio: 4 / 3; box-shadow: 0 24px 48px -30px rgba(23,36,29,.55); }
@media (min-width: 1000px) {
	.hero--media .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 3rem; }
	.hero--media .hero__photo img { aspect-ratio: 4 / 5; }
	.hero--media .finder { grid-template-columns: repeat(3, 1fr); }
	.hero--media .finder .btn { grid-column: 1 / -1; justify-self: start; }
}

/* page headers with photo */
.page-head--media .wrap { display: grid; gap: 1.25rem; align-items: center; }
.page-head__photo img { aspect-ratio: 16 / 9; }
@media (min-width: 1000px) {
	.page-head--media .wrap { grid-template-columns: minmax(0, 1fr) 460px; gap: 2.5rem; }
	.page-head--media .page-head__photo img { aspect-ratio: 4 / 3; }
}

/* article lead photo */
.article-photo { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.article-photo img { aspect-ratio: 21 / 9; max-height: 520px; }
@media (max-width: 699px) { .article-photo img { aspect-ratio: 3 / 2; } }

/* guide list thumbnails */
.guide-thumb { display: block; margin-bottom: 0.75rem; }
.guide-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--mist); }

/* several retailers on one product */
.buy--multi { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.buy--multi .buy__note { flex-basis: 100%; }

/* ---------- Quick picks comparison grid ---------- */
.picks { margin: 0 0 2rem; }
.prose .picks { margin: 2rem 0; }
.picks__head h2, .picks__head h3 { margin: 0 0 0.25rem; }
.picks__head p { margin: 0 0 0.9rem; color: var(--granite); font-size: var(--t-sm); max-width: var(--measure); }
.picks__scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-tag); background: #fff; }
.picks__table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.picks__table thead th { background: var(--spruce); color: var(--snow); text-align: left; font-family: var(--f-display); font-weight: 600; letter-spacing: .02em; padding: 0.6rem 0.75rem; white-space: nowrap; }
.picks__table tbody tr + tr { border-top: 1px solid var(--rule); }
.picks__table tbody tr:nth-child(even) { background: #fafbf8; }
.picks__table th[scope="row"], .picks__table td { padding: 0.75rem; vertical-align: middle; text-align: left; }
.picks__table th[scope="row"] { min-width: 13rem; font-weight: 400; }
.picks__brand { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--granite); }
.picks__name { display: block; font-weight: 700; color: var(--spruce); text-decoration: none; line-height: 1.25; }
.picks__name:hover { text-decoration: underline; }
.picks__buy { white-space: nowrap; }
.picks__buy .buy__note { font-size: 0.72rem; }
.picks__table .na { color: var(--granite); font-style: italic; }
.picks__foot { margin: 0.6rem 0 0; font-size: var(--t-sm); }
.pick-label { display: inline-block; margin-top: 0.3rem; font-size: 0.75rem; font-weight: 700; line-height: 1.3; color: var(--spruce); background: #fbe7bd; border-left: 3px solid var(--blaze); padding: 0.1em 0.5em; border-radius: 0 4px 4px 0; }
.pick-label--lg { font-size: 0.875rem; margin: -0.25rem 0 0.75rem; }
.tag .pick-label { margin: 0 0 0.5rem; justify-self: start; align-self: flex-start; width: max-content; max-width: 100%; }
.skip-if { margin: 1rem 0 0; padding: 0.6rem 0.8rem; background: var(--mist); border-radius: 6px; font-size: 0.95rem; }
.jump { display: inline-block; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--blaze); color: var(--spruce); }
/* Narrow containers (guides, phones): each row becomes a card so nothing overflows. */
.picks { container-type: inline-size; }
.picks__buy .btn { min-height: 40px; padding: 0.5em 0.95em; font-size: 0.95rem; white-space: nowrap; }
.picks__buy { width: 1%; }
@container (max-width: 900px) {
	.picks__scroll { border: 0; background: none; overflow: visible; }
	.picks__table, .picks__table tbody, .picks__table tr, .picks__table th, .picks__table td { display: block; }
	.picks__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.picks__table tbody tr { background: #fff !important; border: 1px solid var(--rule) !important; border-radius: var(--radius-tag); margin-bottom: 0.75rem; padding: 0.85rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 0.5rem 1rem; align-items: start; }
	.picks__table th[scope="row"] { grid-column: 1 / -1; padding: 0 0 0.25rem; min-width: 0; }
	.picks__table td { padding: 0; font-size: 0.9rem; border: 0; }
	.picks__table th[scope="row"] { border: 0; }
	.picks__table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--granite); }
	.picks__buy { grid-column: 1 / -1; width: auto; padding-top: 0.35rem !important; }
	.picks__buy .buy { grid-template-columns: auto 1fr; align-items: center; gap: 0.75rem; }
}

/* ---------- Click-to-load video ---------- */
.video { margin: 1.5rem 0 2rem; }
.product-head .video h2 { font-size: var(--t-md); margin-bottom: 0.5rem; }
.video h2 { margin-top: 0; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-tag); overflow: hidden; background: var(--spruce) url("assets/img/contours-dark.svg") center / cover; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.6rem; padding: 1rem; text-align: center; color: var(--snow); text-decoration: none; background: linear-gradient(160deg, rgba(31,58,46,.92), rgba(23,36,29,.96)); }
.video__icon svg { transition: transform .15s ease; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.video__icon path:first-child { fill: var(--snow); }
.video__play:hover .video__icon svg, .video__play:focus-visible .video__icon svg { transform: scale(1.08); }
.video__title { font-family: var(--f-display); font-size: var(--t-md); font-weight: 600; max-width: 32ch; }
.video__hint { font-size: 0.8rem; opacity: .85; }
.video__cap { font-size: var(--t-sm); color: var(--granite); margin: 0.4rem 0 0; }

/* price tier ($ / $$ / $$$ from the maker's list price) */
.tier { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; color: var(--spruce); white-space: nowrap; }
.head-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: -0.25rem 0 0.75rem; }
.head-tags .pick-label--lg { margin: 0; }
.price-chip { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.8rem; font-weight: 600; color: var(--granite); background: var(--mist); border-radius: 4px; padding: 0.1em 0.5em; }
.price-chip .tier { font-size: 0.95rem; }
.spec-compare__hint { display: block; font-size: 0.75rem; font-weight: 400; color: var(--granite); }
.tier-note { font-size: 0.8rem; color: var(--granite); }
.picks__price, .picks__table td[data-label="Weight"] { white-space: nowrap; }
.picks__key { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--granite); }
.picks__table abbr { text-decoration: none; cursor: help; }
