/*
Theme Name: SoleAwesome Magazine (sa-mag)
Theme URI: https://soleawesome.com/
Author: SoleAwesome Editors
Description: Lightweight hand-written magazine theme for SoleAwesome (redesign 2026-12). Frame only: post content, titles, URLs and SEO output are rendered untouched by WordPress and Rank Math.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: sa-mag
*/

/* ======================================================================
   1. Tokens
   ====================================================================== */
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-wght.woff2") format("woff2-variations"), url("assets/fonts/archivo-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("assets/fonts/source-sans-3-wght.woff2") format("woff2-variations"), url("assets/fonts/source-sans-3-wght.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("assets/fonts/source-sans-3-wght-italic.woff2") format("woff2-variations"), url("assets/fonts/source-sans-3-wght-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

:root {
	/* colour (from the logo: navy #00365e, red #e91d26) */
	--sa-ink: #0b2540;          /* body text: deep navy-ink, 14.65:1 on paper */
	--sa-navy: #00365e;         /* brand navy, headings, header */
	--sa-navy-2: #0d4a7a;       /* links */
	--sa-red: #c8161f;          /* editorial labels only (darkened logo red, 5.52:1 on paper) */
	--sa-red-soft: #fdecec;
	--sa-paper: #fbf8f3;        /* warm white page */
	--sa-white: #ffffff;
	--sa-sand: #f1ece3;         /* panels */
	--sa-line: #e3dccf;         /* hairlines */
	--sa-muted: #55606e;        /* secondary text, 6.04:1 on paper */
	--sa-buy: #0fbf00;          /* portfolio buy-button standard */
	--sa-buy-hover: #0da000;
	--sa-buy-ink: #08130a;      /* text on the green button: 7.65:1 (hover 5.46:1) */

	/* type */
	--sa-font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--sa-font-body: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sa-fs-body: 1.125rem;     /* 18px */
	--sa-lh-body: 1.65;

	/* layout */
	--sa-wide: 1180px;
	--sa-text: 720px;
	--sa-side: 336px;
	--sa-gutter: 20px;
	--sa-radius: 10px;
	--sa-shadow: 0 1px 2px rgba(11, 37, 64, .06), 0 6px 18px rgba(11, 37, 64, .06);
}

/* ======================================================================
   2. Base
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.sa {
	margin: 0;
	background: var(--sa-paper);
	color: var(--sa-ink);
	font-family: var(--sa-font-body);
	font-size: var(--sa-fs-body);
	line-height: var(--sa-lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.sa img { max-width: 100%; height: auto; }
.sa a { color: var(--sa-navy-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.sa a:hover { color: var(--sa-red); }
.sa h1, .sa h2, .sa h3, .sa h4 { font-family: var(--sa-font-head); color: var(--sa-navy); line-height: 1.2; letter-spacing: -.01em; }
.sa :focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.sa-wrap { max-width: var(--sa-wide); margin: 0 auto; padding: 0 var(--sa-gutter); }
.screen-reader-text, .sa-sr {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.sa-skip:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ======================================================================
   3. Header (static on every viewport: never sticky / fixed)
   ====================================================================== */
.sa-hd { background: var(--sa-white); border-bottom: 1px solid var(--sa-line); position: static; }
.sa-hd-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.sa-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sa-navy) !important; flex: 0 0 auto; }
.sa-logo img { width: 40px; height: 40px; display: block; }
.sa-logo-txt { font-family: var(--sa-font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.sa-logo-txt b { color: var(--sa-red); font-weight: 800; }
.sa-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.sa-nav a {
	font-family: var(--sa-font-head); font-weight: 600; font-size: .95rem; color: var(--sa-ink);
	text-decoration: none; padding: 8px 10px; border-radius: 6px; white-space: nowrap;
}
.sa-nav a:hover, .sa-nav a[aria-current="page"] { background: var(--sa-sand); color: var(--sa-navy); }
/* Dropdowns (stage 2): hover or click on desktop, accordion in the mobile menu */
.sa-nav-i { position: relative; display: flex; align-items: center; }
.sa-has-sub .sa-nav-top { padding-right: 2px; }
.sa-dd-btn { background: transparent; border: 0; padding: 0 8px 0 2px; height: 36px; color: var(--sa-muted); cursor: pointer; border-radius: 6px; display: inline-flex; align-items: center; }
.sa-dd-btn:hover, .sa-dd-btn[aria-expanded="true"] { color: var(--sa-navy); }
.sa-dd-btn svg { transition: transform .15s ease; }
.sa-dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.sa-sub { list-style: none; margin: 0; padding: 8px; display: none; }
.sa-sub a { display: block; white-space: nowrap; font-weight: 500; }
.sa-sub-all a { font-weight: 700; color: var(--sa-navy-2); }
@media (min-width: 1024px) {
	.sa-sub { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 54, 94, .14); z-index: 60; }
	.sa-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
	.sa-nav-i.is-open > .sa-sub { display: block; }
	.sa-sub a { padding: 9px 12px; border-radius: 6px; }
	.sa-sub-all { border-top: 1px solid var(--sa-line); margin-top: 6px; padding-top: 6px; }
	.sa-nav-i:last-child .sa-sub, .sa-nav-i:nth-last-child(2) .sa-sub { left: auto; right: 0; }
}
.sa-search { position: relative; }
.sa-search input[type="search"] {
	font: inherit; font-size: .95rem; width: 170px; padding: 8px 12px 8px 34px; border: 1px solid var(--sa-line);
	border-radius: 999px; background: var(--sa-paper); color: var(--sa-ink);
}
.sa-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--sa-muted); pointer-events: none; }
.sa-burger {
	display: none; margin-left: auto; background: transparent; border: 1px solid var(--sa-line); border-radius: 8px;
	width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--sa-navy); font: inherit;
}
.sa-burger span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; }

@media (max-width: 1120px) {
	.sa-nav a { padding: 8px 7px; font-size: .9rem; }
	.sa-search input[type="search"] { width: 130px; }
}
@media (max-width: 1023px) {
	.sa-hd-in { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
	.sa-burger { display: block; }
	.sa-nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 6px 0 10px; border-top: 1px solid var(--sa-line); }
	.sa-nav a { padding: 12px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--sa-sand); border-radius: 0; }
	.sa-nav-i { flex-wrap: wrap; align-items: stretch; }
	.sa-nav-top { flex: 1 1 auto; }
	.sa-dd-btn { width: 48px; height: auto; min-height: 48px; justify-content: center; border-bottom: 1px solid var(--sa-sand); border-radius: 0; }
	.sa-sub { width: 100%; padding: 0 0 6px 14px; background: var(--sa-paper); }
	.sa-nav-i.is-open > .sa-sub { display: block; }
	.sa-sub a { padding: 11px 6px; font-size: 1rem; }
	.sa-menu-open .sa-nav { display: flex; }
	.sa-search { order: 4; width: 100%; display: none; padding-bottom: 12px; }
	.sa-menu-open .sa-search { display: block; }
	.sa-search input[type="search"] { width: 100%; font-size: 1rem; padding: 11px 14px 11px 36px; }
}

/* ======================================================================
   4. Buttons (scoped: no global `button` painting)
   ====================================================================== */
.sa-btn-buy, a.sa-btn-buy {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: var(--sa-buy); color: var(--sa-buy-ink) !important; text-decoration: none !important;
	font-family: var(--sa-font-head); font-weight: 700; font-size: .95rem; line-height: 1.2;
	padding: 11px 16px; border-radius: 8px; border: 0; min-height: 44px; text-align: center;
	transition: background-color .15s ease;
}
.sa-btn-buy:hover, a.sa-btn-buy:hover { background: var(--sa-buy-hover); color: var(--sa-buy-ink) !important; }
.sa-btn-ghost {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px;
	border: 1.5px solid var(--sa-navy); color: var(--sa-navy) !important; border-radius: 8px; text-decoration: none !important;
	font-family: var(--sa-font-head); font-weight: 700; font-size: .95rem; background: transparent;
}
.sa-btn-ghost:hover { background: var(--sa-navy); color: #fff !important; }
.sa-label {
	display: inline-block; font-family: var(--sa-font-head); font-weight: 700; font-size: .72rem; letter-spacing: .07em;
	text-transform: uppercase; color: var(--sa-red); line-height: 1.3;
}

/* ======================================================================
   5. Single post frame
   ====================================================================== */
.sa-main { padding: 18px 0 48px; }
.sa-crumbs { font-size: .9rem; color: var(--sa-muted); margin: 0 0 10px; }
.sa-crumbs a { color: var(--sa-muted); text-decoration: none; }
.sa-crumbs a:hover { color: var(--sa-red); text-decoration: underline; }
.sa-crumbs .separator { margin: 0 6px; color: #9aa3ad; }
.sa-crumbs .last { color: var(--sa-ink); }

.sa-post-head { max-width: 860px; }
.sa-post-head .entry-title { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -.02em; }
.sa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .95rem; color: var(--sa-muted); margin: 0 0 12px; }
.sa-meta > *:not(:last-child)::after { content: "\00B7"; margin: 0 9px; color: #9aa3ad; }
.sa-meta a { color: var(--sa-navy-2); font-weight: 600; }
.sa-disclosure {
	font-size: .9rem; line-height: 1.5; color: var(--sa-muted); margin: 0 0 18px; padding: 8px 12px;
	background: var(--sa-sand); border-radius: 8px; max-width: 860px;
}
.sa-disclosure a { color: var(--sa-muted); }

/* Quick picks */
.sa-qp { margin: 6px 0 26px; }
.sa-qp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.sa-qp-h h2 { font-size: 1.15rem; margin: 0; text-transform: none; }
.sa-qp-h a { font-size: .9rem; }
.sa-qp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sa-qp-card {
	background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); box-shadow: var(--sa-shadow);
	display: flex; flex-direction: column; overflow: hidden; min-width: 0;
}
.sa-qp-img { display: block; height: 180px; background: #fff; padding: 12px; border-bottom: 1px solid var(--sa-sand); }
.sa-qp-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sa-qp-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sa-qp-name { font-family: var(--sa-font-head); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--sa-ink); margin: 0; }
.sa-qp-name a { color: inherit; text-decoration: none; }
.sa-qp-name a:hover { text-decoration: underline; }
.sa-qp-body .sa-btn-buy { margin-top: auto; width: 100%; }
.sa-qp-more { font-size: .88rem; text-align: center; }
@media (max-width: 767px) {
	.sa-qp-list { grid-template-columns: 1fr; gap: 10px; }
	.sa-qp-card { flex-direction: row; align-items: stretch; }
	.sa-qp-img { aspect-ratio: auto; height: auto; width: 104px; flex: 0 0 104px; padding: 8px; border-bottom: 0; border-right: 1px solid var(--sa-sand); display: flex; align-items: center; }
	.sa-qp-img img { height: auto; max-height: 92px; }
	.sa-qp-body { padding: 10px 12px; gap: 4px; }
	.sa-qp-name { font-size: .95rem; }
	.sa-qp-body .sa-btn-buy { min-height: 40px; padding: 8px 12px; font-size: .9rem; }
	.sa-qp-more { display: none; }
}

/* Post grid from the breadcrumb row down: one main column (head, hero, disclosure, quick picks, body share its edges)
   + the sticky aside level with the title (desktop only). */
.sa-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--sa-side); gap: 52px; align-items: start; }
.sa-article-main .sa-post-head, .sa-article-main .sa-disclosure, .sa-article-main .sa-hero-img { max-width: none; }
@media (min-width: 1024px) and (max-width: 1199px) { .sa-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; } }
.sa-aside { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain; }
@media (max-width: 1023px) {
	.sa-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.sa-aside { position: static; max-height: none; overflow: visible; }
	.sa-aside .sa-top-pick { display: none; }
}
.sa-top-pick { background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); padding: 14px; margin-bottom: 18px; box-shadow: var(--sa-shadow); }
.sa-top-pick .sa-qp-img { padding: 6px; border: 0; height: 150px; }
.sa-top-pick .sa-qp-name { margin: 6px 0 10px; }
.sa-top-pick .sa-btn-buy { width: 100%; }

/* LuckyWP TOC inside our aside (plugin markup unchanged) */
.sa-aside .widget { margin: 0 0 18px; }
.sa-aside .lwptoc { margin: 0 !important; }
.sa-aside .lwptoc_i { background: var(--sa-white) !important; padding: 14px 16px !important; width: 100%; box-shadow: none; }
.sa-aside .lwptoc_header { margin-bottom: 8px; font-family: var(--sa-font-head); font-size: .95rem; }
.sa-aside .lwptoc_title { color: var(--sa-navy); }
.sa-aside .lwptoc_item { font-size: .92rem; line-height: 1.35; margin-top: 7px !important; }
.sa-aside .lwptoc_item a, .sa-toc-m .lwptoc_item a { color: var(--sa-ink) !important; text-decoration: none; }
.sa-aside .lwptoc_toggle a { color: var(--sa-muted) !important; }
.sa-aside .lwptoc_item a:hover, .sa-toc-m .lwptoc_item a:hover { color: var(--sa-red) !important; }
.sa-aside .lwptoc_item_number { color: var(--sa-muted); }
/* mobile: TOC is moved by JS into a closed <details> above the article */
.sa-toc-m { display: none; }
@media (max-width: 1023px) {
	.sa-toc-m { display: block; margin: 0 0 22px; background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); }
	.sa-toc-m > summary { cursor: pointer; padding: 12px 14px; font-family: var(--sa-font-head); font-weight: 700; color: var(--sa-navy); list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
	.sa-toc-m > summary::-webkit-details-marker { display: none; }
	.sa-toc-m > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--sa-muted); }
	.sa-toc-m[open] > summary::after { content: "\2212"; }
	.sa-toc-m .lwptoc_i { border: 0 !important; padding: 0 14px 12px !important; }
	.sa-toc-m .lwptoc_header { display: none; }
	.sa-toc-m .lwptoc_item { font-size: 1rem; margin-top: 10px !important; }
	.sa-toc-m .lwptoc_item a { color: var(--sa-ink); text-decoration: none; }
}

/* ======================================================================
   6. Article content (WordPress output, untouched markup)
   ====================================================================== */
.entry-content { font-size: var(--sa-fs-body); line-height: var(--sa-lh-body); overflow-wrap: anywhere; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.75rem); font-weight: 800; margin: 1.9em 0 .6em; scroll-margin-top: 16px; }
.entry-content h3 { font-size: 1.25rem; font-weight: 700; margin: 1.6em 0 .5em; scroll-margin-top: 16px; }
.entry-content h4 { font-size: 1.08rem; font-weight: 700; margin: 1.4em 0 .4em; }
.entry-content [id] { scroll-margin-top: 16px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--sa-red); color: var(--sa-ink); font-style: italic; }
.entry-content figure { margin: 1.4em 0; max-width: 100%; }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: .88rem; color: var(--sa-muted); margin-top: 6px; }
.entry-content img { border-radius: 6px; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.entry-content table:not(.btie-style-short) th, .entry-content table:not(.btie-style-short) td { border: 1px solid var(--sa-line); padding: 8px 10px; vertical-align: top; text-align: left; }
.entry-content table:not(.btie-style-short) th, .entry-content table:not(.btie-style-short) thead td { background: var(--sa-sand); font-weight: 700; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content hr { border: 0; border-top: 1px solid var(--sa-line); margin: 2em 0; }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-embed__wrapper iframe, .entry-content iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.entry-content .has-text-align-center { text-align: center; }
.entry-content .wp-block-button__link { display: inline-block; text-decoration: none; padding: 10px 18px; border-radius: 8px; }
/* btie green buttons: the inline post CSS sets white text on #0fbf00 (2.48:1). Dark ink at rest = 7.65:1. */
body.sa .entry-content table.btie-style-short td.toc-but a,
body.sa .entry-content ol.btie-style-reviews a.btie-style-box-button { color: var(--sa-buy-ink) !important; }
/* the WPCode "Last updated" line is hand-entered and stale (audit D4): the frame shows the real modified date instead */
.sa-single .entry-content > p.sa-last-updated:first-child { display: none; }

/* ======================================================================
   7. After-article modules
   ====================================================================== */
.sa-author { display: flex; gap: 16px; align-items: flex-start; margin: 40px 0 0; padding: 20px; background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); }
.sa-author img { width: 56px; height: 56px; flex: 0 0 56px; }
.sa-author h2 { font-size: 1.1rem; margin: 0 0 4px; }
.sa-author p { margin: 0 0 8px; font-size: 1rem; color: var(--sa-ink); }
.sa-author .sa-author-links { font-size: .95rem; }
.sa-author .sa-author-links a + a { margin-left: 14px; }

.sa-section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sa-section-h h2 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.sa-section-h a { font-size: .95rem; font-weight: 600; }
.sa-related { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--sa-line); }

.sa-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.sa-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sa-card { background: var(--sa-white); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .15s ease, transform .15s ease; }
.sa-card:hover { box-shadow: var(--sa-shadow); transform: translateY(-2px); }
.sa-card-img { display: block; aspect-ratio: 4 / 3; background: var(--sa-sand); overflow: hidden; }
.sa-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-card-img--blank { display: flex; align-items: center; justify-content: center; }
.sa-card-img--blank img { width: 56px; height: 56px; object-fit: contain; opacity: .55; }
.sa-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.sa-card-t { font-family: var(--sa-font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.3; margin: 0; color: var(--sa-ink); }
.sa-card-t a { color: inherit; text-decoration: none; }
.sa-card-t a::after { content: ""; position: absolute; inset: 0; }
.sa-card { position: relative; }
.sa-card-t a:hover { color: var(--sa-navy-2); }
.sa-card-d { font-size: .95rem; color: var(--sa-muted); margin: 0; line-height: 1.45; }
@media (max-width: 1023px) { .sa-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sa-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.sa-cards, .sa-cards--3 { grid-template-columns: 1fr; gap: 12px; }
	.sa-card { flex-direction: row; }
	.sa-card-img { aspect-ratio: 4 / 3; width: 120px; flex: 0 0 120px; }
	.sa-card-body { padding: 10px 12px; justify-content: center; }
	.sa-card-t { font-size: .98rem; }
	.sa-card-d { display: none; }
}

/* Comments */
.sa-comments { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--sa-line); font-size: 1rem; }
.sa-comments h2 { font-size: 1.25rem; }
.sa-comments ol { list-style: none; padding: 0; }
.sa-comments .children { padding-left: 22px; }
.sa-comments .comment-body { padding: 12px 0; border-bottom: 1px solid var(--sa-sand); }
.sa-comments .comment-meta { font-size: .9rem; color: var(--sa-muted); }
.sa-comments .comment-meta a { color: var(--sa-muted); }
.sa-comments .avatar { display: none; }
.sa-comments label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.sa-comments input[type="text"], .sa-comments input[type="email"], .sa-comments input[type="url"], .sa-comments textarea {
	width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--sa-line); border-radius: 8px; background: #fff; color: var(--sa-ink);
}
.sa-comments .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.sa-comments .form-submit input[type="submit"] {
	font: inherit; font-weight: 700; background: var(--sa-navy); color: #fff; border: 0; border-radius: 8px; padding: 11px 18px; cursor: pointer; min-height: 44px;
}
.sa-comments .form-submit input[type="submit"]:hover { background: var(--sa-navy-2); }

/* ======================================================================
   8. Pages, archives, search, 404
   ====================================================================== */
.sa-page { max-width: var(--sa-text); }
.sa-page--wide { max-width: 980px; }
.sa-page .entry-title, .sa-archive-h h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; margin: 0 0 16px; }
.sa-archive-h { max-width: 820px; margin-bottom: 24px; }
.sa-archive-h p { color: var(--sa-muted); }
.sa-pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.sa-pager .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--sa-line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--sa-ink); }
.sa-pager .page-numbers.current { background: var(--sa-navy); color: #fff; border-color: var(--sa-navy); }
.sa-searchform { display: flex; gap: 8px; max-width: 520px; }
.sa-searchform input[type="search"] { flex: 1; font: inherit; padding: 11px 14px; border: 1px solid var(--sa-line); border-radius: 8px; background: #fff; min-width: 0; }
.sa-searchform button { font: inherit; font-weight: 700; background: var(--sa-navy); color: #fff; border: 0; border-radius: 8px; padding: 0 18px; min-height: 46px; cursor: pointer; }

/* ======================================================================
   9. Homepage (v2, HelmetsAdvisor-style hero on a light palette)
   ====================================================================== */
.sa-eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--sa-font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sa-red); margin: 0 0 14px; }
.sa-eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; flex: 0 0 32px; }
.sa-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-family: var(--sa-font-head); font-weight: 700; font-size: 1rem; text-decoration: none !important; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.sa-pill--solid { background: var(--sa-red); color: #fff !important; box-shadow: 0 8px 22px rgba(200, 22, 31, .25); }
.sa-pill--solid:hover { background: #a51118; color: #fff !important; }
.sa-pill--line { border: 1.5px solid var(--sa-navy); color: var(--sa-navy) !important; background: rgba(255, 255, 255, .7); }
.sa-pill--line:hover { background: var(--sa-navy); color: #fff !important; }
.sa-pill--ghost { border: 1.5px solid rgba(255, 255, 255, .45); color: #fff !important; min-height: 46px; padding: 0 20px; font-size: .95rem; }
.sa-pill--ghost:hover { background: #fff; color: var(--sa-navy) !important; }

.sa-hero2 { position: relative; overflow: hidden; background: #fbf6ec; border-bottom: 1px solid var(--sa-line); }
.sa-hero2-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.sa-hero2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fbf6ec 0%, rgba(251, 246, 236, .96) 34%, rgba(251, 246, 236, .55) 52%, rgba(251, 246, 236, 0) 66%); pointer-events: none; }
.sa-hero2-in { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 80px; }
.sa-hero2 h1 { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; color: var(--sa-navy); margin: 0 0 20px; max-width: 640px; }
.sa-hero2 h1 span { color: var(--sa-red); }
.sa-hero2-sub { font-size: 1.2rem; line-height: 1.55; color: #2b3d52; max-width: 560px; margin: 0 0 28px; }
.sa-hero2-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.sa-hero2-search { display: flex; max-width: 520px; background: #fff; border: 1px solid var(--sa-line); border-radius: 999px; padding: 5px; box-shadow: var(--sa-shadow); margin-bottom: 18px; }
.sa-hero2-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 0 18px; color: var(--sa-ink); outline: none; }
.sa-hero2-search button { border: 0; background: var(--sa-navy); color: #fff; font-family: var(--sa-font-head); font-weight: 700; font-size: .95rem; border-radius: 999px; padding: 0 22px; min-height: 44px; cursor: pointer; }
.sa-hero2-search button:hover { background: var(--sa-navy-2); }
.sa-hero2-meta { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: .95rem; color: var(--sa-muted); margin: 0; }
.sa-hero2-meta > * + *::before { content: "\00B7"; margin: 0 10px; color: #a3abb5; }
.sa-hero2-meta b { color: var(--sa-ink); font-weight: 700; }

.sa-band { background: #fff; border-bottom: 1px solid var(--sa-line); }
.sa-band-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sa-band-in > div { padding: 26px 24px; border-left: 1px solid var(--sa-line); }
.sa-band-in > div:first-child { border-left: 0; padding-left: 0; }
.sa-band h2 { font-size: 1.02rem; margin: 0 0 6px; color: var(--sa-ink); }
.sa-band p { margin: 0; font-size: .95rem; color: var(--sa-muted); line-height: 1.5; }

.sa-sec { padding: 76px 0; }
.sa-sec--tint { background: #f6f1e8; }
.sa-sec-h { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; margin: 0 0 12px; color: var(--sa-ink); }
.sa-sec-sub { font-size: 1.1rem; color: var(--sa-muted); margin: 0 0 32px; max-width: 640px; }
.sa-sec .sa-section-h { margin-bottom: 26px; }
.sa-sec .sa-section-h .sa-sec-h { margin: 0; }
.sa-more { font-family: var(--sa-font-head); font-weight: 700; font-size: .95rem; color: var(--sa-red); margin-top: auto; }

.sa-tool2-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sa-tool2 { position: relative; background: #fff; border: 1px solid var(--sa-line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s ease, transform .15s ease; }
.sa-tool2:hover { box-shadow: 0 12px 30px rgba(11, 37, 64, .1); transform: translateY(-2px); }
.sa-tool2-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--sa-red-soft); color: var(--sa-red); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.sa-tool2 h3 { font-size: 1.2rem; margin: 0; }
.sa-tool2 h3 a { color: var(--sa-ink); text-decoration: none; }
.sa-tool2 h3 a::after { content: ""; position: absolute; inset: 0; }
.sa-tool2 p { margin: 0 0 8px; color: var(--sa-muted); font-size: 1rem; line-height: 1.5; }

.sa-need-grid { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sa-need { position: relative; background: #fff; border: 1px solid var(--sa-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s ease, transform .15s ease; }
.sa-need:hover { box-shadow: 0 12px 30px rgba(11, 37, 64, .1); transform: translateY(-2px); }
.sa-need-n { font-family: var(--sa-font-head); font-weight: 800; font-size: .85rem; color: var(--sa-red); letter-spacing: .08em; }
.sa-need h3 { font-size: 1.12rem; margin: 0; }
.sa-need h3 a { color: var(--sa-ink); text-decoration: none; }
.sa-need h3 a::after { content: ""; position: absolute; inset: 0; }
.sa-need p { margin: 0 0 8px; color: var(--sa-muted); font-size: .98rem; line-height: 1.5; }
.sa-chips-h { font-family: var(--sa-font-head); font-weight: 700; font-size: 1rem; color: var(--sa-navy); margin: 0 0 12px; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sa-chips a { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--sa-line); color: var(--sa-ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.sa-chips a:hover { border-color: var(--sa-red); color: var(--sa-red); }

.sa-how { background: var(--sa-navy); color: #dce6ef; padding: 76px 0; }
.sa-how-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.sa-how .sa-eyebrow { color: #ff9aa0; }
.sa-how h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; margin: 0 0 16px; }
.sa-how p { font-size: 1.08rem; line-height: 1.65; margin: 0 0 22px; }
.sa-how-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.sa-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sa-stats li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 22px; }
.sa-stats b { display: block; font-family: var(--sa-font-head); font-size: 2.3rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 8px; }
.sa-stats span { font-size: .95rem; color: #c3d1de; }

.sa-faq { max-width: 860px; }
.sa-faq details { border-bottom: 1px solid var(--sa-line); }
.sa-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--sa-font-head); font-weight: 700; font-size: 1.12rem; color: var(--sa-ink); min-height: 44px; }
.sa-faq summary::-webkit-details-marker { display: none; }
.sa-faq summary::after { content: "+"; color: var(--sa-red); font-size: 1.5rem; line-height: 1; }
.sa-faq details[open] summary::after { content: "\2212"; }
.sa-faq details p { margin: 0 0 20px; color: #2b3d52; font-size: 1.05rem; }

@media (max-width: 1023px) {
	.sa-hero2::after { background: linear-gradient(90deg, #fbf6ec 0%, rgba(251, 246, 236, .94) 50%, rgba(251, 246, 236, .4) 78%, rgba(251, 246, 236, 0) 100%); }
	.sa-band-in, .sa-need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sa-band-in > div:nth-child(3) { border-left: 0; padding-left: 0; }
	.sa-band-in > div { border-top: 1px solid var(--sa-line); }
	.sa-band-in > div:nth-child(-n+2) { border-top: 0; }
	.sa-tool2-grid { grid-template-columns: 1fr; }
	.sa-how-in { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
	.sa-hero2 { display: flex; flex-direction: column-reverse; }
	.sa-hero2::after { display: none; }
	.sa-hero2-bg { display: block; }
	.sa-hero2-bg img { position: static; width: 100%; height: auto; aspect-ratio: 800 / 597; max-height: 240px; object-fit: cover; object-position: center 70%; }
	.sa-hero2-in { padding-top: 30px; padding-bottom: 6px; }
	.sa-hero2 h1 { font-size: 2.15rem; }
	.sa-hero2-sub { font-size: 1.05rem; margin-bottom: 20px; }
	.sa-pill { min-height: 48px; padding: 0 20px; font-size: .95rem; }
	.sa-hero2-search input { font-size: 16px; }
	.sa-sec, .sa-how { padding: 48px 0; }
	.sa-band-in, .sa-need-grid { grid-template-columns: 1fr; }
	.sa-band-in > div, .sa-band-in > div:nth-child(3) { border-left: 0; padding: 16px 0; border-top: 1px solid var(--sa-line); }
	.sa-band-in > div:first-child { border-top: 0; }
	.sa-stats b { font-size: 1.9rem; }
}

/* ======================================================================
   10. Footer
   ====================================================================== */
.sa-ft { background: var(--sa-navy); color: #d6e0ea; margin-top: 0; font-size: 1rem; }
.sa-ft a { color: #fff; }
.sa-ft a:hover { color: #ffd9db; }
.sa-ft-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; padding: 44px 0 28px; }
.sa-ft .sa-logo { color: #fff !important; margin-bottom: 12px; }
.sa-ft .sa-logo-txt b { color: #ff8a8f; }
.sa-ft .sa-logo img { background: #fff; border-radius: 50%; padding: 2px; }
.sa-ft p { margin: 0 0 10px; line-height: 1.55; }
.sa-ft h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #a9bccd; margin: 4px 0 12px; font-weight: 700; }
.sa-ft ul { list-style: none; padding: 0; margin: 0; }
.sa-ft li { margin: 0 0 8px; }
.sa-ft li a { text-decoration: none; }
.sa-ft li a:hover { text-decoration: underline; }
.sa-ft-disc { border-top: 1px solid rgba(255, 255, 255, .15); padding: 18px 0; font-size: .92rem; color: #c3d1de; }
.sa-ft-bar { border-top: 1px solid rgba(255, 255, 255, .15); padding: 14px 0 22px; font-size: .9rem; color: #a9bccd; }
@media (max-width: 767px) { .sa-ft-top { grid-template-columns: 1fr 1fr; } .sa-ft-brand { grid-column: 1 / -1; } }

/* ======================================================================
   11. Print
   ====================================================================== */
@media print {
	.sa-hd, .sa-ft, .sa-aside, .sa-toc-m, .sa-related, .sa-comments, .sa-qp { display: none !important; }
	.sa-grid { display: block; }
}

/* ======================================================================
   12. Small-phone tweaks
   ====================================================================== */
@media (max-width: 520px) {
	.sa-meta { font-size: .9rem; }
	.sa-meta > span:last-child { display: none; }               /* "How we choose" lives in the author box on phones */
	.sa-meta > span:nth-last-child(2)::after { content: none; }
	.sa-disclosure { font-size: .85rem; padding: 8px 10px; }
	.sa-crumbs { margin-bottom: 6px; font-size: .85rem; }
}

/* Tap targets (WCAG 2.5.8 / 44px on phones) without changing the visual rhythm */
.sa-crumbs a, .sa-meta a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.sa-ft li { margin: 0; }
.sa-ft li a { display: inline-block; padding: 10px 0; }
.sa-section-h a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.sa-author .sa-author-links a { display: inline-block; padding: 10px 0; }
.sa-toc-m .lwptoc_item a { display: block; padding: 8px 0; }
.sa-toc-m .lwptoc_item { margin-top: 0 !important; }
@media (max-width: 767px) {
	/* iOS Safari zooms into form controls under 16px (the tool embeds use .95rem) */
	.sa .entry-content input, .sa .entry-content select, .sa .entry-content textarea { font-size: 16px !important; }
	.sa-qp-name a { display: inline-block; padding: 4px 0; }
}
/* btie table buy cell: make the whole green cell clickable (the inline post CSS pads the <td>, not the <a>) */
body.sa .entry-content table.btie-style-short td.toc-but { padding: 0 !important; }
body.sa .entry-content table.btie-style-short td.toc-but a { display: block; padding: 10px 18px; }
body.sa .entry-content table.btie-style-short td.toc-rev a { display: inline-block; padding: 8px 0; }
.sa-qp-more { display: inline-block; padding: 8px 0 2px; align-self: center; }
.sa .entry-content input, .sa .entry-content select, .sa .entry-content textarea { font-size: max(16px, 1em); }

/* ======================================================================
   13. Sidebar essentials (BYR-style top list) + collapsed TOC
   ====================================================================== */
.sa-ess { background: #fff; border: 1px solid var(--sa-line); border-radius: 14px; padding: 16px 16px 12px; margin-bottom: 16px; box-shadow: var(--sa-shadow); }
.sa-ess-h { font-size: 1.08rem; margin: 4px 0 2px; color: var(--sa-ink); }
.sa-ess-s { font-size: .88rem; color: var(--sa-muted); margin: 0 0 10px; line-height: 1.4; }
.sa-ess ul { list-style: none; margin: 0; padding: 0; }
.sa-ess li + li { border-top: 1px solid var(--sa-sand); }
.sa-ess-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; text-decoration: none !important; color: var(--sa-ink) !important; }
.sa-ess-row * { text-decoration: none !important; }
.sa-ess-img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; background: #fff; border: 1px solid var(--sa-sand); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sa-ess-img img { width: 46px; height: 46px; object-fit: contain; }
.sa-ess-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sa-ess-t b { font-family: var(--sa-font-head); font-size: .92rem; line-height: 1.25; font-weight: 700; }
.sa-ess-t small { font-size: .82rem; color: var(--sa-muted); line-height: 1.3; }
.sa-ess-go { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--sa-buy); color: var(--sa-buy-ink); display: flex; align-items: center; justify-content: center; transition: background-color .15s ease; }
.sa-ess-row:hover .sa-ess-go { background: var(--sa-buy-hover); }
.sa-ess-row:hover b { color: var(--sa-navy-2); }
.sa-ess-d { font-size: .76rem; color: var(--sa-muted); margin: 8px 0 0; line-height: 1.4; }

/* In-post product card (2026-12-02 pilot): same look as the sidebar "Research desk picks". Markup lives in
   post_content as a wp:html block: .sa-pick > .sa-pick-img + .sa-pick-b (label, name, for, points, note, button). */
.entry-content .sa-pick { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; background: #fff; border: 1px solid var(--sa-line); border-radius: 14px; padding: 20px; margin: 1.4em 0 1.6em; box-shadow: var(--sa-shadow); }
.sa-pick-img { display: flex; align-items: center; justify-content: center; width: 240px; height: 240px; border-radius: 10px; border: 1px solid var(--sa-sand); background: #fff; overflow: hidden; text-decoration: none !important; }
.entry-content .sa-pick-img img { width: 220px; height: 220px; object-fit: contain; margin: 0; border-radius: 0; }
.entry-content .sa-pick-b > * { margin: 0; }
.sa-pick-n { font-family: var(--sa-font-head); font-weight: 800; font-size: 1.2rem; line-height: 1.25; color: var(--sa-ink); margin: 2px 0 8px !important; }
.sa-pick-for { font-size: .98rem; line-height: 1.5; margin-bottom: 8px !important; }
.entry-content .sa-pick-pts { padding-left: 1.15em; margin-bottom: 8px; font-size: .96rem; line-height: 1.5; }
.entry-content .sa-pick-pts li { margin-bottom: .3em; }
.sa-pick-note { font-size: .92rem; line-height: 1.45; color: var(--sa-muted); margin-bottom: 14px !important; }
.sa-pick-note b, .sa-pick-for b { color: var(--sa-ink); }
.sa-pick-btn { min-width: 220px; }
@media (max-width: 600px) {
	.entry-content .sa-pick { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
	.sa-pick-img { width: 100%; height: 190px; }
	.entry-content .sa-pick-img img { width: 172px; height: 172px; }
	.sa-pick-btn { display: flex; width: 100%; }
}
.sa-pick-btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* compact card: the same product again later in the post (image, name, button) */
.entry-content .sa-pick--mini { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 16px; margin: 1.2em 0 1.4em; }
.sa-pick--mini .sa-pick-img { width: 96px; height: 96px; }
.entry-content .sa-pick--mini .sa-pick-img img { width: 84px; height: 84px; }
.sa-pick--mini .sa-pick-n { font-size: 1.02rem; margin: 0 0 8px !important; }
.sa-pick--mini .sa-pick-btn { min-width: 0; font-size: .9rem; }
@media (max-width: 600px) {
	.entry-content .sa-pick--mini { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; }
	.sa-pick--mini .sa-pick-img { width: 72px; height: 72px; }
	.entry-content .sa-pick--mini .sa-pick-img img { width: 64px; height: 64px; }
	.sa-pick-btns { flex-direction: column; gap: 8px; }
}
.sa-toc-d { background: #fff; border: 1px solid var(--sa-line); border-radius: 12px; }
.sa-toc-d > summary { cursor: pointer; list-style: none; padding: 12px 16px; font-family: var(--sa-font-head); font-weight: 700; color: var(--sa-navy); display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.sa-toc-d > summary::-webkit-details-marker { display: none; }
.sa-toc-d > summary::after { content: "+"; color: var(--sa-muted); font-size: 1.3rem; line-height: 1; }
.sa-toc-d[open] > summary::after { content: "\2212"; }
.sa-toc-d .widget { margin: 0; }
.sa-toc-d .lwptoc_i { border: 0 !important; padding: 0 16px 12px !important; box-shadow: none; }
.sa-toc-d .lwptoc_header { display: none; }
@media (max-width: 1023px) {
	.sa-toc-d { display: none; }
	.sa-aside { margin-top: 32px; }
	.sa-ess { max-width: 560px; }
}

/* hero: keep the illustration in the right 60% on wide screens so it never sits behind the headline */
@media (min-width: 1024px) {
	.sa-hero2-bg img { left: 40%; width: 60%; object-position: 85% center; }
	.sa-hero2::after { background: linear-gradient(90deg, #fbf6ec 0%, #fbf6ec 40%, rgba(251, 246, 236, .7) 46%, rgba(251, 246, 236, 0) 56%); }
}
.sa-hero2-meta > * + *::before { content: none; }
.sa-hero2-meta > *:not(:last-child)::after { content: "\00B7"; margin: 0 10px; color: #a3abb5; }

/* Category archive header (2026-12-01) */
.sa-archive-h .sa-eyebrow { margin-bottom: 8px; }
.sa-archive-h h1 { margin-bottom: 12px; }
.sa-archive-desc { font-size: 1.1rem; line-height: 1.6; color: var(--sa-muted); max-width: 680px; margin: 0 0 18px; }
.sa-archive-chips { margin-top: 4px; }

/* Post hero image (stage 2): only on posts without Quick picks */
.sa-hero-img { margin: 0 0 22px; max-width: 860px; }
.sa-hero-img img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--sa-sand); }

/* Tools (stage 2): hub, contextual card, sidebar list */
.sa-tool2-q { font-family: var(--sa-font-head); font-weight: 700; color: var(--sa-navy) !important; font-size: 1.02rem !important; margin: 0 !important; }
.sa-tools-hub-h { max-width: 760px; margin-bottom: 26px; }
.sa-tools-hub-grid { margin-bottom: 40px; }
.sa-tools-note { max-width: 760px; border-top: 1px solid var(--sa-line); padding-top: 24px; }
.sa-tools-note h2 { font-size: 1.3rem; margin: 0 0 10px; }
.sa-toolcta { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--sa-red-soft); border: 1px solid #f3d2d4; border-radius: 14px; padding: 18px 20px; margin: 32px 0; }
.sa-toolcta-ic { width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--sa-red); display: flex; align-items: center; justify-content: center; }
.sa-toolcta-q { font-family: var(--sa-font-head); font-weight: 700; color: var(--sa-navy); margin: 0 0 4px; font-size: 1.08rem; }
.sa-toolcta-d { margin: 0; color: var(--sa-muted); font-size: .98rem; line-height: 1.5; }
.sa-tool-time { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--sa-red); background: #fff; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.sa-toolcta-btn { min-height: 46px; padding: 0 18px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 700px) { .sa-toolcta { grid-template-columns: auto 1fr; } .sa-toolcta-btn { grid-column: 1 / -1; justify-content: center; } }
.sa-sidetools { background: #fff; border: 1px solid var(--sa-line); border-radius: 14px; padding: 18px; margin-top: 18px; }
.sa-sidetools .sa-eyebrow { margin-bottom: 10px; }
.sa-sidetools ul { list-style: none; margin: 0; padding: 0; }
.sa-sidetools li a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--sa-sand); text-decoration: none; }
.sa-sidetools b { display: block; color: var(--sa-ink); font-family: var(--sa-font-head); font-size: .95rem; }
.sa-sidetools small { display: block; color: var(--sa-muted); font-size: .85rem; line-height: 1.35; }
.sa-sidetool-ic { flex: 0 0 32px; height: 32px; border-radius: 8px; background: var(--sa-red-soft); color: var(--sa-red); display: flex; align-items: center; justify-content: center; }
.sa-sidetools-all { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .92rem; }

/* Editors' Picks (stage 2) */
.sa-ep-group { margin: 34px 0 10px; }
.sa-ep-sub { color: var(--sa-muted); margin: -6px 0 16px; }
.sa-ep-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sa-ep-card { background: #fff; border: 1px solid var(--sa-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.sa-ep-card .sa-qp-img { display: flex; align-items: center; justify-content: center; height: 170px; padding: 14px; background: #fff; border-bottom: 1px solid var(--sa-sand); }
.sa-ep-card .sa-qp-img img { max-height: 140px; width: auto; object-fit: contain; }
.sa-ep-card .sa-qp-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sa-ep-card .sa-btn-buy { margin-top: auto; }
.sa-ep-for { font-family: var(--sa-font-head); font-weight: 800; color: var(--sa-navy); font-size: 1.05rem; margin: 0; line-height: 1.25; }
@media (max-width: 1100px) { .sa-ep-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .sa-ep-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sa-ep-list { grid-template-columns: 1fr; } }
.sa-page.sa-tools-hub, .sa-page.sa-ep { max-width: none; }
.sa-tools-hub .sa-tool2-grid { max-width: 1100px; }
.sa-ep-disc { font-size: .85rem; color: var(--sa-muted); margin: 14px 0 0; }

/* Stage 2 mobile audit fixes */
@media (max-width: 420px) { .entry-content img { max-width: 100% !important; height: auto !important; } }
@media (max-width: 1023px) { .entry-content input:not([type="checkbox"]):not([type="radio"]), .entry-content select, .entry-content textarea { font-size: 16px !important; } }
.sa-card-t a, .sa-qp-name a, .sa-tool2 h3 a, .sa-sidetools li a b { display: inline-block; padding: 3px 0; }
.sa-ec-home { max-width: 760px; } .sa-ec-home .pf-ec-block { margin: 0; background: #fff; }
/* 2026-12-02 audit fixes: 44 px tap boxes on home card titles without moving the layout (padding offset by negative margin) */
.sa-need h3 a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.sa-tool2 h3 a { padding: 11px 0; margin: -8px 0; }
/* Lacing tool (/shoe-lacing-techniques/): JS fills the two pick rows after load, which shifted the tool (CLS).
   Reserve their final height per width band. Bands measured 2026-12-02; each value is <= the real height in its band,
   so the finished layout never changes (rows only get taller as the screen narrows). */
@media (min-width: 832px) { .sla #sla-prob { min-height: 40px; } .sla #sla-pick { min-height: 88px; } }
@media (min-width: 767px) and (max-width: 831px) { .sla #sla-prob { min-height: 88px; } .sla #sla-pick { min-height: 88px; } }
@media (min-width: 506px) and (max-width: 766px) { .sla #sla-prob { min-height: 88px; } .sla #sla-pick { min-height: 136px; } }
@media (max-width: 505px) { .sla #sla-prob { min-height: 88px; } .sla #sla-pick { min-height: 184px; } }
@media (max-width: 460px) { .sla #sla-prob { min-height: 136px; } .sla #sla-pick { min-height: 232px; } }
