/* BasinVerdict content components — mobile first. Change the variables to re-theme every page. */
:root {
	--bv-ink: #13232E;
	--bv-muted: #5B6B75;
	--bv-line: #DCE4E9;
	--bv-soft: #F6F8F9;
	--bv-brand: #0E5A7A;
	--bv-brand-soft: #E5F0F5;
	--bv-deep: #0A2F40;
	--bv-cta: #E8A33D;
	--bv-cta-ink: #2A1B00;
	--bv-good: #1C7A45;
	--bv-good-soft: #E7F5EC;
	--bv-bad: #B3261E;
	--bv-bad-soft: #FCEBEA;
	--bv-radius: 12px;
}

/* Never let content push the page wider than the screen */
.bv-picks img, .bv-product img, .bv-figure img { max-width: 100%; }
.bv-toc, .bv-answer, .bv-product, .bv-pick, .bv-table-wrap, .bv-verdict, .bv-note, .bv-tested { box-sizing: border-box; }
.bv-pick, .bv-product, .bv-product-info, .bv-product-media { min-width: 0; }
.bv-pick img, .bv-product-media img { height: auto; }

/* Quick answer / key takeaways */
.bv-answer { background: var(--bv-brand-soft); border-left: 4px solid var(--bv-brand); border-radius: 0 var(--bv-radius) var(--bv-radius) 0; padding: 14px 16px; margin: 0 0 1.5em; }
.bv-answer-label { font-size: .78em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bv-brand); margin: 0 0 4px; }
.bv-answer p:last-child, .bv-answer ul:last-child { margin-bottom: 0; }

/* Table of contents */
.bv-toc { border: 1px solid var(--bv-line); border-radius: var(--bv-radius); padding: 12px 16px; margin: 0 0 1.75em; background: #fff; }
.bv-toc-title { font-weight: 700; margin: 0 0 6px; }
.bv-toc ol { margin: 0; padding-left: 1.2em; }
.bv-toc li { margin: 4px 0; }

/* Buttons */
.bv-btn { display: block; text-align: center; background: var(--bv-cta); color: var(--bv-cta-ink) !important; font-weight: 700; text-decoration: none !important; padding: 12px 18px; border-radius: 999px; line-height: 1.2; margin: 10px 0 0; transition: filter .15s; }
.bv-btn:hover, .bv-btn:focus { filter: brightness(.94); }
.bv-btn-outline { background: transparent; color: var(--bv-brand) !important; border: 2px solid var(--bv-brand); }

/* Quick picks */
.bv-picks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0 0 2em; }
.bv-pick { border: 1px solid var(--bv-line); border-radius: var(--bv-radius); padding: 16px; background: #fff; display: flex; flex-direction: column; }
.bv-pick img { width: 100%; aspect-ratio: 4 / 3; height: auto; max-height: 190px; object-fit: contain; margin: 6px 0 10px; }
.bv-pick-label { align-self: flex-start; background: var(--bv-brand); color: #fff; font-size: .75em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.bv-pick-name { font-weight: 700; margin: 4px 0; line-height: 1.3; }
.bv-pick-why { color: var(--bv-muted); font-size: .92em; margin: 0 0 4px; flex: 1; }
.bv-pick-jump { font-size: .88em; text-align: center; margin-top: 8px; display: block; }

/* Comparison tables: scroll sideways on phones, first column stays visible */
.bv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.75em; border: 1px solid var(--bv-line); border-radius: var(--bv-radius); background: #fff; }
.bv-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92em; margin: 0; }
.bv-table th, .bv-table td { padding: 10px 12px; border-bottom: 1px solid var(--bv-line); text-align: left; vertical-align: top; }
.bv-table thead th { background: var(--bv-soft); font-weight: 700; white-space: nowrap; }
.bv-table tbody tr:last-child td, .bv-table tbody tr:last-child th { border-bottom: 0; }
.bv-table th:first-child, .bv-table td:first-child { position: sticky; left: 0; background: #fff; font-weight: 600; box-shadow: 1px 0 0 var(--bv-line); min-width: 120px; max-width: 170px; }
.bv-table thead th:first-child { background: var(--bv-soft); }
.bv-table .bv-yes { color: var(--bv-good); font-weight: 700; }
.bv-table .bv-no { color: var(--bv-bad); font-weight: 700; }
.bv-table-note { font-size: .82em; color: var(--bv-muted); margin: -1.25em 0 1.75em; }

/* Product review card */
.bv-product { border: 1px solid var(--bv-line); border-radius: var(--bv-radius); padding: 18px 16px; margin: 0 0 2em; background: #fff; scroll-margin-top: 80px; }
.bv-product-head { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.bv-rank { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--bv-brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bv-product-head h3 { margin: 2px 0 0 !important; font-size: 1.2em; line-height: 1.3; }
.bv-product-badge { display: inline-block; font-size: .72em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--bv-brand); background: var(--bv-brand-soft); padding: 3px 9px; border-radius: 999px; margin: 0 !important; }
.bv-product-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 14px; }
.bv-product-media { margin: 0; background: var(--bv-soft); border-radius: 10px; padding: 12px; text-align: center; }
.bv-product-media img { width: 100%; max-height: 260px; object-fit: contain; }
.bv-product-media figcaption { font-size: .8em; color: var(--bv-muted); margin-top: 6px; }
.bv-specs { list-style: none; margin: 0 !important; padding: 0 !important; border-top: 1px solid var(--bv-line); }
.bv-specs li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--bv-line); font-size: .92em; margin: 0 !important; }
.bv-specs li span { color: var(--bv-muted); }
.bv-specs li strong { text-align: right; }
.bv-score { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 0; }
.bv-score span { color: var(--bv-muted); font-size: .9em; }
.bv-score strong { font-size: 1.6em; color: var(--bv-brand); }
.bv-bestfor { background: var(--bv-soft); border-radius: 10px; padding: 10px 14px; font-size: .95em; }

/* Pros / cons */
.bv-proscons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 14px 0; }
.bv-pros, .bv-cons { border-radius: 10px; padding: 12px 14px; }
.bv-pros { background: var(--bv-good-soft); }
.bv-cons { background: var(--bv-bad-soft); }
.bv-pc-title { font-weight: 700; margin: 0 0 6px !important; }
.bv-pros .bv-pc-title { color: var(--bv-good); }
.bv-cons .bv-pc-title { color: var(--bv-bad); }
.bv-pros ul, .bv-cons ul { margin: 0 !important; padding-left: 0 !important; list-style: none; }
.bv-pros li, .bv-cons li { position: relative; padding-left: 22px; margin: 5px 0; }
.bv-pros li::before { content: "✓"; position: absolute; left: 0; color: var(--bv-good); font-weight: 800; }
.bv-cons li::before { content: "✕"; position: absolute; left: 0; color: var(--bv-bad); font-weight: 800; }

/* Rating bars (review pages) */
.bv-ratings { list-style: none; padding: 0 !important; margin: 0 0 1.5em !important; }
.bv-ratings li { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; align-items: center; margin: 8px 0; font-size: .92em; }
.bv-bar { height: 8px; background: var(--bv-line); border-radius: 999px; overflow: hidden; }
.bv-bar i { display: block; height: 100%; background: var(--bv-brand); border-radius: 999px; }

/* Verdict, notes, tested box */
.bv-verdict { border: 2px solid var(--bv-brand); border-radius: var(--bv-radius); padding: 16px; margin: 1.5em 0; }
.bv-verdict-label { font-size: .78em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bv-brand); margin: 0 0 4px !important; }
.bv-note { border-radius: 10px; padding: 12px 14px; margin: 1.25em 0; background: var(--bv-soft); border-left: 4px solid var(--bv-muted); }
.bv-note-tip { background: var(--bv-good-soft); border-left-color: var(--bv-good); }
.bv-note-warn { background: var(--bv-bad-soft); border-left-color: var(--bv-bad); }
.bv-note p:last-child { margin-bottom: 0; }
.bv-tested { display: flex; gap: 12px; align-items: flex-start; border: 1px dashed var(--bv-brand); border-radius: var(--bv-radius); padding: 14px; margin: 1.5em 0; font-size: .95em; }
.bv-tested-icon { font-size: 1.4em; line-height: 1; }

/* Steps (how-to pages) */
.bv-steps { counter-reset: bvstep; list-style: none; padding: 0 !important; margin: 0 0 1.75em !important; }
.bv-steps > li { counter-increment: bvstep; position: relative; padding: 0 0 16px 48px; margin: 0; }
.bv-steps > li::before { content: counter(bvstep); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bv-brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bv-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--bv-line); }

/* Figures */
.bv-figure { margin: 1.5em 0; }
.bv-figure img { width: 100%; height: auto; border-radius: 10px; }
.bv-figure figcaption { font-size: .85em; color: var(--bv-muted); margin-top: 6px; text-align: center; }

/* FAQ */
.bv-faq { border-top: 1px solid var(--bv-line); margin: 0 0 1.75em; }
.bv-faq h3 { font-size: 1.05em !important; margin: 0 !important; padding: 14px 0 6px; }
.bv-faq p { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--bv-line); }

/* Tablet */
@media (min-width: 600px) {
	.bv-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bv-proscons { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.bv-btn { display: inline-block; }
	.bv-pick .bv-btn { display: block; }
	.bv-product { padding: 22px; }
}
/* Large tablet and desktop */
@media (min-width: 720px) {
	.bv-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bv-picks:has(> .bv-pick:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bv-product-body { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
}
@media (min-width: 1000px) {
	.bv-picks:has(> .bv-pick:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.bv-table { min-width: 0; }
}

/* Homepage hero and pill links */
.bv-hero { padding: 8px 0 24px; }
.bv-eyebrow { display: inline-block; font-size: .78em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bv-brand); background: var(--bv-brand-soft); padding: 5px 12px; border-radius: 999px; margin: 0 0 14px !important; }
.bv-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em; }
.bv-hero-lead { font-size: 1.12em; color: var(--bv-muted); max-width: 640px; }
.bv-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.bv-pills li { margin: 0; }
.bv-pills a { display: inline-block; padding: 8px 14px; border: 1px solid var(--bv-line); border-radius: 999px; background: #fff; color: var(--bv-ink); text-decoration: none; font-weight: 600; font-size: .92em; }
.bv-pills a:hover, .bv-pills a:focus { border-color: var(--bv-brand); color: var(--bv-brand); }

/* Guide link cards (homepage and hubs) */
.bv-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0 0 2em; }
.bv-card-link { display: block; border: 1px solid var(--bv-line); border-radius: var(--bv-radius); padding: 18px; background: #fff; color: var(--bv-ink) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.bv-card-link:hover, .bv-card-link:focus { border-color: var(--bv-brand); transform: translateY(-2px); }
.bv-card-kicker { font-size: .75em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bv-brand); margin: 0 0 6px !important; }
.bv-card-title { font-weight: 700; font-size: 1.08em; margin: 0 0 6px !important; line-height: 1.3; }
.bv-card-text { color: var(--bv-muted); font-size: .94em; margin: 0 !important; }
@media (min-width: 600px) { .bv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .bv-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Links to pages that aren't published yet: plain text, and whole buttons/cards/pills hidden. */
.bv-pending-link { color: inherit; text-decoration: none; }
.bv-pending-hide { display: none !important; }
.bv-pills li:has(> .bv-pending-link) { display: none; }
.bv-pills:not(:has(a)), .bv-cards:not(:has(a)) { display: none; }
.bv-product-body.bv-no-media { grid-template-columns: minmax(0, 1fr) !important; }
