/* Honed Workshop - one stylesheet for the theme and the Affiliate Core blocks. */

/* ---------- Fonts (self-hosted, Latin only) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/oswald-500.woff") format("woff"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/oswald-700.woff") format("woff"); }

/* ---------- Tokens: light only ---------- */
:root, [data-theme="light"], [data-theme="dark"] {
	/* Light only, neutral greys; green is kept for links and the brand mark. */
	--bg: #fbfbf9; --surface: #ffffff; --surface-2: #efefeb; --surface-3: #f5f5f2;
	--line: #e4e4de; --line-2: #d2d2ca;
	--text: #1c1f1d; --text-body: #2a2d2b; --text-2: #4a4e4b; --muted: #636863;
	--accent: #2f6a34; --accent-hover: #1f4a24; --btn: #b0541f; --btn-text: #ffffff;
	--good: #2f6b2e; --bad: #a3361c; --good-line: #4f8f4e; --bad-line: #c4553a;
	color-scheme: light;
}

/* Brand: the striped lawn mark and the two-tone name */
.hw-brand__accent { color: var(--accent); }
.hw-mark { flex: none; border-radius: 6px; }

:root {
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Oswald", "Arial Narrow", sans-serif;
	--wrap: 1160px; --radius: 4px; --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hw-skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--btn-text); padding: 10px 14px; z-index: 10; }
.hw-skip:focus { left: 8px; }
.hw-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Type helpers ---------- */
.hw-eyebrow, .hw-kicker, .ac-card__label, .ac-owner__label, .ac-short__title, .ac-funded__title, .hw-toc__title, .ac-filter__title, .ac-proscons__title {
	font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0;
}
.hw-h2, .hw-prose h2, .ac-owners h2, .ac-faq h2, .ac-finder__compare h2 {
	font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 4vw, 30px); line-height: 1.15; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 18px;
}
.hw-lead { font-size: 18px; line-height: 1.6; color: var(--text-2); margin: 0 0 22px; }

/* ---------- Buttons ---------- */
.hw-btn, .ac-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
	background: var(--btn); color: var(--btn-text); border: 0; border-radius: 2px; cursor: pointer;
	font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.hw-btn:hover, .ac-btn:hover { color: var(--btn-text); filter: brightness(1.08); }
.hw-btn--ghost, .ac-btn--ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.hw-btn--ghost:hover, .ac-btn--ghost:hover { color: var(--accent-hover); }
.hw-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.hw-header { border-bottom: 1px solid var(--line); }
.hw-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
.hw-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.hw-brand svg { color: var(--accent); }
.hw-brand__name { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: .06em; text-transform: uppercase; }
.hw-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.hw-nav a { font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); text-decoration: none; display: inline-block; padding: 8px 0; }
.hw-nav a:hover, .hw-nav .current-menu-item > a, .hw-nav .current-cat > a { color: var(--accent); }
.hw-header__tools { display: flex; gap: 8px; }
.hw-toggle { display: none !important; }
.hw-iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 2px; background: transparent; color: var(--text); cursor: pointer; }
.hw-iconbtn:hover { color: var(--accent); }
[data-theme="dark"] .hw-toggle__moon, [data-theme="light"] .hw-toggle__sun { display: none; }
@media (max-width: 760px) {
	.hw-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
	.hw-nav__list { flex-wrap: nowrap; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hw-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hw-hero__inner { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding-top: 52px; padding-bottom: 48px; }
.hw-hero--slim .hw-wrap { padding-top: 32px; padding-bottom: 32px; }
.hw-hero--article .hw-hero__inner { padding-top: 32px; padding-bottom: 36px; }
.hw-hero__text { flex: 1 1 460px; min-width: 0; }
.hw-hero__media { flex: 1 1 380px; aspect-ratio: 4 / 3; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hw-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hw-placeholder { color: var(--muted); font-size: 14px; padding: 12px; text-align: center; }
.hw-hero .hw-eyebrow { margin-bottom: 12px; }
.hw-hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 7vw, 60px); line-height: 1.02; text-transform: uppercase; margin: 0 0 18px; }
.hw-hero__title--article { font-size: clamp(32px, 5.5vw, 52px); }
.hw-intro p { margin: 0 0 10px; }
.hw-byline { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }

/* ---------- Breadcrumbs ---------- */
.ac-breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ac-breadcrumbs a { color: var(--muted); }
.ac-breadcrumbs a:hover { color: var(--accent); }

/* ---------- Main layout ---------- */
.hw-main { padding-top: 32px; padding-bottom: 72px; }
.hw-section { margin-bottom: 60px; }
.hw-panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 32px 28px; }
.hw-layout { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }
.hw-article { flex: 999 1 620px; min-width: 0; }
.hw-sidebar { flex: 1 1 250px; align-self: stretch; }
@media (max-width: 900px) { .hw-sidebar { display: none; } }

/* ---------- Grids and cards ---------- */
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.hw-grid--small { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.hw-card, .hw-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); }
.hw-card:hover, .hw-tile:hover { border-color: var(--accent); color: var(--text); }
.hw-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.hw-card__img--empty { display: block; }
.hw-card__body, .hw-tile { padding: 18px 20px 22px; gap: 8px; }
.hw-card__body { display: flex; flex-direction: column; gap: 8px; }
.hw-card__title, .hw-tile__title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.2; text-transform: uppercase; margin: 0; }
.hw-card__text, .hw-tile__text { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.hw-tile--accent { border-color: var(--accent); }
.hw-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.hw-topic { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.hw-topic:hover { border-color: var(--accent); color: var(--text); }
.hw-topic__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; text-transform: uppercase; }
.hw-topic__count { font-size: 14px; color: var(--muted); }
.hw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.hw-step { display: flex; flex-direction: column; gap: 8px; }
.hw-step__num { font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1; color: var(--accent); }
.hw-step__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; color: var(--text); text-decoration: none; }
.hw-step__text { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ---------- Category list head and pills ---------- */
.hw-listhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.hw-listhead .hw-h2 { margin: 0; }
.hw-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-pill, .ac-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 2px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.hw-pill[aria-current="page"], .ac-pill[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-text); font-weight: 600; }
.hw-pill__n, .ac-pill__n { color: var(--muted); font-weight: 400; }
.hw-pill[aria-current="page"] .hw-pill__n, .ac-pill[aria-pressed="true"] .ac-pill__n { color: inherit; }
.ac-pill:disabled { opacity: .45; cursor: default; }
.hw-term-bottom { margin-top: 56px; }
.nav-links { display: flex; gap: 8px; margin-top: 28px; }
.page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-2); text-decoration: none; color: var(--text); }
.page-numbers.current { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }

/* ---------- Article prose ---------- */
.hw-prose { max-width: 760px; color: var(--text-body); font-size: 18px; line-height: 1.75; }
.hw-prose--wide, .hw-guide { max-width: none; }
.hw-guide > * { max-width: 820px; }
.hw-guide > .ac-table-scroll, .hw-guide > .ac-faq { max-width: 820px; }
.hw-prose h2 { margin: 52px 0 16px; color: var(--text); scroll-margin-top: 16px; }
.hw-prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; text-transform: uppercase; letter-spacing: .03em; color: var(--text); margin: 32px 0 10px; }
.hw-prose p { margin: 0 0 18px; }
.hw-prose ul, .hw-prose ol { margin: 0 0 20px; padding-left: 24px; }
.hw-prose .ac-buybox__specs { padding: 0; margin: 0; }
.hw-prose .ac-proscons ul { margin: 10px 0 0; padding-left: 20px; }
.hw-prose .ac-buybox__specs li, .hw-prose .ac-proscons li { margin-bottom: 4px; }
.hw-prose li { margin-bottom: 8px; }
.hw-prose strong { color: var(--text); }
.hw-prose blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--text-2); }
.hw-prose code { font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 2px; }
.hw-prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 40px 0; }
.hw-page__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 6vw, 52px); line-height: 1.05; text-transform: uppercase; margin: 0 0 22px; }

/* ---------- Table of contents ---------- */
.hw-toc { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); }
.hw-toc ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 2; }
.hw-toc--side { position: sticky; top: 16px; padding: 18px 20px; }
.hw-toc__title { color: var(--muted); margin-bottom: 8px; }
.hw-toc--mobile { display: none; padding: 0 18px; margin-bottom: 28px; }
.hw-toc--mobile summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-family: var(--font-display); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.hw-toc--mobile ol { padding-bottom: 14px; }
@media (max-width: 900px) { .hw-toc--mobile { display: block; } }

/* ---------- Tables (plugin compare + Markdown tables) ---------- */
.ac-table-wrap { margin: 0 0 40px; }
.ac-table-hint { display: none; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.ac-table-scroll { overflow-x: auto; contain: paint; border: 1px solid var(--line-2); border-radius: var(--radius); margin: 0 0 28px; }
.ac-table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.ac-table-scroll th, .ac-table-scroll td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); }
.ac-table-scroll thead th { background: var(--surface-3); border-top: 0; font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ac-table-scroll tbody tr { background: var(--surface); }
.ac-table-scroll tbody th { color: var(--text); font-weight: 600; }
.ac-sticky { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line-2); }
thead .ac-sticky { background: var(--surface-3); }
.ac-link { font-weight: 600; }

/* Compare table: decision info lives in the first column, specs follow. */
.ac-table-scroll table.ac-compare { min-width: 0; }
.ac-compare th.ac-sticky { min-width: 180px; max-width: 220px; }
.ac-table-scroll .ac-compare th, .ac-table-scroll .ac-compare td { padding: 12px 11px; }
.ac-cmp__name { display: block; font-weight: 600; line-height: 1.35; }
.ac-cmp__name a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.ac-cmp__name a:hover { color: var(--accent); }
.ac-cmp__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 8px 0 10px; font-weight: 400; }
.ac-cmp__score { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--text); }
.ac-cmp__score small { font-family: var(--font-body, inherit); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.ac-cmp__price { font-size: 14px; color: var(--text-2); }
.ac-btn.ac-btn--sm { display: block; width: 100%; padding: 9px 12px; font-size: 13px; text-align: center; }
.ac-card__name a { color: inherit; text-decoration: none; }
.ac-card__name a:hover { color: var(--accent); }

/* Vertical dividers make each spec column easy to follow. */
.ac-table-scroll .ac-compare td, .ac-table-scroll .ac-compare thead th + th { border-left: 1px solid var(--line-2); }

/* Sideways-scroll cue: hint text, right-edge fade and an arrow, only while there is more to see. */
.ac-table-wrap { position: relative; }
.ac-table-wrap .ac-table-hint { display: none; }
.ac-table-wrap.is-scrollable .ac-table-hint { display: block; }
.ac-table-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 28px; width: 56px; pointer-events: none; border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(to right, transparent, var(--bg)); opacity: 0; transition: opacity .2s; }
.ac-table-wrap.is-scrollable:not(.is-end)::after { opacity: 1; }
.ac-table-more { position: absolute; right: 10px; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; display: none; }
.ac-table-wrap.is-scrollable:not(.is-end) .ac-table-more { display: block; }
.ac-table-more:hover { color: var(--accent); border-color: var(--accent); }

/* Top-pick cards: verdicts stretch so scores and buttons line up across the row. */
.ac-picks .ac-card__verdict { flex-grow: 1; }

/* A single product card inside the text gets room to breathe. */
.hw-prose > .ac-card { margin: 4px 0 36px; }
@media (min-width: 641px) {
	.hw-prose > .ac-card .ac-btn { align-self: flex-start; min-width: 240px; }
}

/* Quick picks strip near the top of an article. */
.ac-quick { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); padding: 18px 20px 6px; margin: 0 0 40px; }
.ac-quick__title { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.ac-quick__list { list-style: none; margin: 0; padding: 0; }
.hw-prose .ac-quick__list { padding: 0; margin: 0; }
.ac-quick__item { display: grid; grid-template-columns: 150px 1fr auto 150px; align-items: center; gap: 6px 18px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 16px; line-height: 1.4; }
.ac-quick__item:first-child { border-top: 0; }
.ac-quick__label { font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ac-quick__name { font-weight: 600; color: var(--text); }
.ac-quick__name a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.ac-quick__name a:hover { color: var(--accent); }
.ac-quick__meta { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
@media (max-width: 760px) {
	.ac-quick__item { grid-template-columns: 1fr auto; }
	.ac-quick__label, .ac-quick__name { grid-column: 1 / -1; }
	.ac-quick__item .ac-btn--sm { width: auto; min-width: 130px; }
}

@media (max-width: 640px) {
	.ac-table-wrap:has(.ac-compare) .ac-table-hint, .ac-table-wrap:has(.ac-compare) .ac-table-more { display: none !important; }
	.ac-table-wrap:has(.ac-compare)::after { display: none; }
	.ac-table-scroll .ac-compare td { border-left: 0; }
	.ac-table-scroll:has(> .ac-compare) { border: 0; overflow: visible; contain: none; }
	.ac-compare thead { display: none; }
	.ac-compare, .ac-compare tbody, .ac-compare tr, .ac-compare th, .ac-compare td { display: block; width: 100%; }
	.ac-compare tr { border: 1px solid var(--line-2); border-radius: var(--radius); margin: 0 0 14px; padding: 16px; background: var(--surface); }
	.ac-compare th.ac-sticky { position: static; max-width: none; min-width: 0; box-shadow: none; padding: 0 0 6px; border: 0; background: transparent; }
	.ac-compare td { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line-2); text-align: right; }
	.ac-compare td::before { content: attr(data-label); flex: 0 0 auto; max-width: 50%; text-align: left; font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
}

/* ---------- Affiliate Core blocks ---------- */
.ac-disclosure-top { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0 0 26px; }
.ac-disclosure-top a { color: var(--muted); }
.ac-short { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 0 0 40px; }
.ac-short__text { font-size: 18px; line-height: 1.65; color: var(--text); }
.ac-short__text p { margin: 6px 0 0; }
.ac-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 0 0 44px; }
.ac-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.ac-picks .ac-card:first-child { border-color: var(--accent); }
.ac-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.ac-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.ac-card__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.2; text-transform: uppercase; color: var(--text); }
.ac-card__verdict { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.ac-card .ac-btn { margin-top: auto; }
.ac-score { display: flex; align-items: baseline; gap: 6px; }
.ac-score__num { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--text); }
.ac-score__max { font-size: 13px; color: var(--muted); }
.ac-proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 24px; }
.ac-proscons__col { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; border-top: 3px solid var(--good-line); }
.ac-proscons__col--cons { border-top-color: var(--bad-line); }
.ac-proscons__col--pros .ac-proscons__title { color: var(--good); }
.ac-proscons__col--cons .ac-proscons__title { color: var(--bad); }
.ac-proscons ul { margin: 10px 0 0; padding-left: 20px; font-size: 16px; line-height: 1.6; }
.ac-buybox { display: flex; flex-direction: column; gap: 12px; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; margin: 0 0 40px; }
.ac-buybox__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.ac-buybox__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; color: var(--text); }
.ac-buybox__specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px 18px; font-size: 15px; }
.ac-buybox__specs span { color: var(--muted); }
.ac-buybox .ac-btn { align-self: flex-start; }
.ac-owners { margin: 52px 0; }
.ac-owners__intro { color: var(--text-2); font-size: 16px; }
.ac-owners__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.ac-owner { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px; }
.ac-owner__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.ac-owner__link { margin-top: auto; font-size: 14px; }
.ac-faq { margin: 52px 0 0; }
.ac-faq__item { border-bottom: 1px solid var(--line-2); padding: 14px 0; }
.ac-faq__item summary { cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: .02em; text-transform: uppercase; color: var(--text); min-height: 28px; }
.ac-faq__a { margin-top: 10px; font-size: 16px; color: var(--text-2); }
.ac-faq__a p { margin: 0 0 10px; }
.ac-funded { margin: 44px 0 0; background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; }
.ac-funded p { font-size: 15px; line-height: 1.65; color: var(--text-2); margin: 8px 0 0; }
.ac-funded .ac-funded__title { margin: 0; }
.ac-seo-block { border-top: 1px solid var(--line); padding-top: 8px; }
.ac-missing { color: var(--bad); font-size: 14px; }

/* ---------- Finder ---------- */
.ac-finder { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.ac-finder__filters { flex: 1 1 250px; display: flex; flex-direction: column; gap: 22px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px 20px; }
.ac-filter { display: flex; flex-direction: column; gap: 10px; }
.ac-filter__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-finder__results { flex: 999 1 560px; min-width: 0; }
.ac-finder__count { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: .04em; color: var(--text); margin: 0 0 16px; }
.ac-finder__empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--text-2); }
.ac-finder__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.ac-finder__item { display: flex; flex-direction: column; gap: 10px; }
.ac-finder__item .ac-card { flex: 1; }
.ac-finder__specs { margin: 0; font-size: 13px; color: var(--muted); }
.ac-finder__compare { flex: 1 1 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px 22px; }
.ac-finder__compare .ac-table-scroll { margin: 14px 0 0; }
.ac-finder__compare table { width: 100%; min-width: 560px; border-collapse: collapse; }

/* ---------- Author box and related ---------- */
.hw-author { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; margin-top: 48px; }
.hw-author__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: 0 0 72px; }
.hw-author__body { flex: 1 1 320px; min-width: 0; }
.hw-author__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; margin: 0 0 8px; }
.hw-author__bio { font-size: 15px; line-height: 1.65; color: var(--text-2); margin: 0 0 8px; }
.hw-author__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin: 0; }
.hw-related { margin-top: 48px; }

/* ---------- Search and 404 ---------- */
.hw-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.hw-search input { flex: 1 1 260px; min-height: 48px; padding: 0 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 2px; font: inherit; }
.hw-searchbox { margin: 0 0 36px; }
.hw-404__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(96px, 20vw, 168px); line-height: .9; color: var(--accent); margin: 24px 0 8px; }

/* ---------- Footer ---------- */
.hw-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hw-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 20px; padding-top: 30px; padding-bottom: 30px; }
.hw-footer__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.hw-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hw-footer__list a { color: var(--text-2); }
.hw-footer__legal { margin: 0; flex-basis: 100%; font-size: 13px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Jump to the long guide (home and category pages) ---------- */
.hw-guide-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.hw-guide-link:hover { color: var(--accent-hover); }
.hw-guide-link span[aria-hidden] { display: inline-block; animation: hw-nudge 1.8s ease-in-out infinite; }
.hw-guide-link__time { font-weight: 400; color: var(--text-2); }
@keyframes hw-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .hw-guide-link span[aria-hidden] { animation: none; } }
.hw-chapters { border-bottom: 1px solid var(--line); background: var(--surface); }
.hw-chapters__inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.hw-chapters__title { flex: 0 0 auto; font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hw-chapters__list { display: flex; gap: 8px; margin: 0; padding: 2px 0; list-style: none; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hw-chapters__list::-webkit-scrollbar { display: none; }
.hw-chapters__track { display: none; position: relative; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.hw-chapters__scroller.is-scrollable .hw-chapters__track { display: block; }
.hw-chapters__thumb { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; background: var(--accent); transition: left .08s linear; }
.hw-chapters__scroller { position: relative; flex: 1 1 auto; min-width: 0; }
.hw-chapters__scroller::before, .hw-chapters__scroller::after { content: ""; position: absolute; top: 0; bottom: 18px; width: 64px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.hw-chapters__scroller::before { left: 0; background: linear-gradient(to left, transparent, var(--surface)); }
.hw-chapters__scroller::after { right: 0; background: linear-gradient(to right, transparent, var(--surface)); }
.hw-chapters__scroller.can-left::before, .hw-chapters__scroller.can-right::after { opacity: 1; }
.hw-chapters__btn { position: absolute; top: calc(50% - 9px); z-index: 2; width: 34px; height: 34px; margin-top: -17px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 16px; line-height: 1; cursor: pointer; display: none; }
.hw-chapters__btn:hover { color: var(--accent); border-color: var(--accent); }
.hw-chapters__btn--prev { left: 0; }
.hw-chapters__btn--next { right: 0; }
.hw-chapters__scroller.can-left .hw-chapters__btn--prev, .hw-chapters__scroller.can-right .hw-chapters__btn--next { display: block; }
.hw-chapters__hint { display: none; font-size: 12px; color: var(--muted); }
.hw-chapters__list li { flex: 0 0 auto; }
.hw-chapters__list a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; line-height: 1.3; color: var(--text); text-decoration: none; white-space: nowrap; }
.hw-chapters__list a:hover { border-color: var(--accent); color: var(--accent); }
.ac-seo-block h2, .hw-guide h2 { scroll-margin-top: 16px; }
@media (max-width: 640px) {
	.hw-chapters__inner { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 14px; padding-bottom: 14px; padding-right: 0; }
	.hw-chapters__title { display: flex; justify-content: space-between; padding-right: 16px; }
	.hw-chapters__hint { display: inline; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 400; }
	.hw-chapters__list { padding: 2px 16px 2px 0; }
	.hw-chapters__track { margin: 16px 16px 2px 0; height: 3px; }
	.hw-chapters__btn { display: none !important; }
}
.hw-chapters__title:not(.is-scrollable) .hw-chapters__hint { display: none; }

/* Text tables on phones: one card per row, cells labelled with their column header. */
@media (max-width: 640px) {
	.ac-table-scroll.has-stack { overflow: visible; border: 0; border-radius: 0; contain: none; }
	.ac-table-wrap:has(.has-stack)::after, .ac-table-wrap:has(.has-stack) .ac-table-more, .ac-table-wrap:has(.has-stack) .ac-table-hint { display: none !important; }
	.ac-stack { min-width: 0 !important; border-collapse: separate; }
	.ac-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ac-stack, .ac-stack tbody, .ac-stack tr, .ac-stack th, .ac-stack td { display: block; width: 100%; }
	.ac-stack tbody tr { margin: 0 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
	.ac-stack tbody th, .ac-stack tbody td { border: 0; padding: 10px 14px; }
	.ac-stack tbody tr > :first-child { background: var(--surface-3); font-weight: 600; color: var(--text); }
	.ac-stack tbody tr > * + * { border-top: 1px solid var(--line-2); }
	.ac-stack tbody tr > * + * { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 12px; align-items: baseline; }
	.ac-stack tbody tr > * + *::before { content: attr(data-label); display: block; margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
	.ac-stack tbody tr > *:empty { display: none; }
}
