/* PressDesk — editorial gear publication design system */
:root {
  --bg: #f7f6f3;
  --bg-soft: #f0eeea;
  --surface: #ffffff;
  --ink: #12161c;
  --text: #1c2430;
  --text-muted: #5a6675;
  --border: #e4e0d8;
  --border-strong: #cfc8bc;
  --accent: #0b6e6a;
  --accent-hover: #085652;
  --accent-soft: #d8efed;
  --accent-softer: #f0f8f7;
  --ink-deep: #0c1118;
  --slate: #2a3441;
  --warn-soft: #f5f0e6;
  --code-bg: #f3f1ec;
  --max-article: 46rem; /* ~736px */
  --max-shell: 72rem; /* ~1152px */
  --max-wide: 70rem;
  --radius: 6px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow: 0 1px 2px rgba(18, 22, 28, 0.04);
  --shadow-card: 0 1px 2px rgba(18, 22, 28, 0.04), 0 8px 24px rgba(18, 22, 28, 0.05);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --header-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* —— Header / Nav —— */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-shell);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--accent);
}

.logo span {
  color: var(--accent);
}

.logo-mark {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 3px;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 28% 20% 28% 20%;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 1px;
  border-top-width: 2.5px;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.1rem;
  font-size: 0.875rem;
}

.nav-link,
.nav a.nav-link,
.nav-dropdown-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 550;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font: inherit;
  font-size: inherit;
  font-weight: 550;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover,
.nav-dropdown-btn:hover {
  color: var(--accent);
  background: var(--accent-softer);
}

.nav a[aria-current="page"],
.nav-link[aria-current="page"] {
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.nav-item {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 16rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 60;
}

.nav-dropdown.is-open {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
}

.nav-dropdown a:hover {
  background: var(--accent-softer);
  color: var(--accent);
}

/* —— Layout —— */
.wrap {
  max-width: var(--max-article);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.wrap-wide {
  max-width: var(--max-shell);
}

.wrap-shell {
  max-width: var(--max-shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-softer);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.45rem 0.85rem;
}

.btn-arrow {
  font-size: 1.05em;
  line-height: 1;
}

/* —— Badges / tags —— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(11, 110, 106, 0.18);
}

.card-tag,
.kicker {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-hover);
  background: var(--accent-softer);
  border: 1px solid rgba(11, 110, 106, 0.14);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

/* —— Homepage —— */
.home {
  padding-bottom: 4rem;
}

.hero-editorial {
  padding: 3.25rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-editorial .wrap-shell {
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
}

.hero-editorial h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--ink-deep);
}

.hero-editorial .lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--text-muted);
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Featured guide */
.home-section {
  padding: 3rem 0 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.featured-guide {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-guide-body {
  padding: 2rem 2rem 2.1rem;
  display: flex;
  flex-direction: column;
}

.featured-guide .kicker {
  margin-bottom: 0.85rem;
}

.featured-guide h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.featured-guide h2 a {
  color: inherit;
  text-decoration: none;
}

.featured-guide h2 a:hover {
  color: var(--accent);
}

.featured-guide .featured-dek {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.featured-guide-visual {
  background: var(--ink-deep);
  min-height: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
}

.featured-guide-visual img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.featured-visual-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* Secondary cards */
.card-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.card a.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card .card-tag {
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.15s ease;
}

.card a.card-link:hover h3 {
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  flex: 1;
}

.card .meta {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

/* Category browse */
.category-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.category-card {
  display: block;
  padding: 1.15rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.category-card:hover {
  border-color: var(--accent);
  background: var(--accent-softer);
  color: inherit;
}

.category-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.category-card span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Trust / why */
.trust-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.trust-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.55rem;
}

.trust-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.trust-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.trust-block ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.trust-block li {
  margin-bottom: 0.35rem;
}

/* PressDesk Picks — deferred until real shortlists exist (see CHANGELOG v1 final cleanup) */
.section-picks.is-deferred,
.section-picks[hidden] {
  display: none !important;
}

/* Picks placeholder */
.picks-placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  background: var(--bg-soft);
  text-align: center;
}

.picks-placeholder h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.picks-placeholder p {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* —— Article layout with TOC —— */
.article-shell {
  max-width: var(--max-shell);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 14.5rem minmax(0, var(--max-article));
  gap: 2.5rem;
  justify-content: center;
  align-items: start;
}

.article-shell > .prose,
.article-main {
  max-width: var(--max-article);
  min-width: 0;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  font-size: 0.8125rem;
  line-height: 1.4;
  padding-top: 0.25rem;
}

.toc-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
}

.toc a {
  display: block;
  padding: 0.35rem 0 0.35rem 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.toc a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.toc-mobile {
  display: none;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.toc-toggle::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.toc-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.toc-panel {
  border-top: 1px solid var(--border);
  padding: 0.5rem 0.75rem 0.75rem;
}

.toc-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-panel a {
  display: block;
  padding: 0.4rem 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.toc-panel a:hover {
  background: var(--accent-softer);
  color: var(--accent);
}

/* —— Article header —— */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--border-strong);
}

.article-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-header .kicker {
  margin-bottom: 0.85rem;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--ink-deep);
}

.article-dek {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.article-meta time {
  font-style: normal;
}

.disclosure {
  background: var(--warn-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  margin: 1.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.55;
}

.disclosure strong {
  color: var(--text);
}

.disclosure a {
  color: var(--accent);
}

/* —— Prose —— */
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.9rem;
  padding-top: 0.25rem;
  line-height: 1.3;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.85rem 0 0.65rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.prose p {
  margin: 0 0 1.05rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  font-weight: 650;
}

.prose hr {
  border: none;
  height: 1px;
  margin: 2.15rem 0;
  background: var(--border);
}

.prose .affiliate-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

.prose .pick-links {
  font-size: 0.875rem;
  margin: 0.5rem 0 1rem;
}

.prose .pick-links.is-placeholder,
.pick-links.is-placeholder {
  display: none;
}

/* Hide orphan mid-article affiliate notes that only accompany placeholder CTAs */
.pick-links.is-placeholder + .affiliate-note,
.prose .affiliate-note.is-placeholder {
  display: none;
}

/* Callouts */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.callout strong {
  color: var(--text);
}

.callout-tip {
  border-left-color: var(--accent);
  background: var(--accent-softer);
  border-color: rgba(11, 110, 106, 0.15);
}

.callout-note {
  border-left-color: #64748b;
  background: var(--code-bg);
}

.callout-buy {
  border-left-color: var(--accent);
}

.best-for-box {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.35rem;
  padding: 1rem 1.1rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.best-for-box p {
  margin: 0;
  color: var(--text-muted);
}

.best-for-box strong {
  color: var(--text);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.1rem 0 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
  min-width: 32rem;
}

.prose th,
.prose td {
  padding: 0.75rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose th {
  background: var(--code-bg);
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tbody tr:nth-child(even) td {
  background: rgba(247, 246, 243, 0.55);
}

.prose tbody tr:hover td {
  background: var(--accent-softer);
}

.prose pre {
  background: var(--ink-deep);
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 1.1rem 0 1.6rem;
  white-space: pre;
}

.prose .footnote {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
}

.faq-item {
  margin-bottom: 0.35rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.faq-item + .faq-item {
  margin-top: 0.65rem;
}

.faq-item p {
  margin: 0.35rem 0 0;
}

.final-rec {
  background: var(--accent-softer);
  border: 1px solid rgba(11, 110, 106, 0.22);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.45rem;
  margin: 1.1rem 0;
}

.final-rec ul {
  margin-bottom: 0;
}

/* Product cards */
.product-card {
  margin: 1.5rem 0 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card-award {
  display: inline-block;
  margin: 1.15rem 1.25rem 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.product-card-inner {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0;
  align-items: stretch;
}

.product-card-media {
  background: var(--code-bg);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 9rem;
}

.product-card-media img {
  display: block;
  width: 100%;
  max-width: 11rem;
  height: auto;
}

.product-card-media.is-empty {
  display: none;
}

.product-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.product-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.product-verdict {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.product-bestfor {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.product-specs {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.75rem;
}

.product-specs li {
  margin: 0;
  padding: 0.2rem 0.5rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.product-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
}

.product-pros-cons h4 {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.product-pros-cons ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.product-pros-cons li {
  margin-bottom: 0.25rem;
}

.product-price {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink);
}

.product-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.product-cta-row .btn.is-pending,
.btn.is-pending {
  display: none;
}

/* Hide entire CTA row (Check Price + “Affiliate link pending”) until real URLs exist.
   Re-enable: set real hrefs and remove .is-pending from the button. */
.product-cta-row:has(.btn.is-pending),
.product-cta-row:has(a[href="#amazon-placeholder"]) {
  display: none;
}

.product-cta-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-buy-skip {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.product-buy-skip p {
  margin: 0 0 0.35rem;
}

.product-buy-skip p:last-child {
  margin-bottom: 0;
}

/* Related guides */
.related-guides {
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}

.related-guides h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.related-list a {
  display: block;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
}

.related-list a:hover {
  border-color: var(--accent);
  background: var(--accent-softer);
}

.related-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.related-list span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Methodology module */
.method-module {
  margin: 2rem 0 0;
  padding: 1.25rem 1.35rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.method-module h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
  padding: 0;
}

.method-module p {
  margin: 0 0 0.65rem;
}

.method-module p:last-child {
  margin-bottom: 0;
}

/* Static pages */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink-deep);
}

.page-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Figures */
.figure {
  margin: 1.35rem 0 1.75rem;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.figure figcaption {
  margin: 0;
  padding: 0.75rem 1rem 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--code-bg);
  border-top: 1px solid var(--border);
}

.figure figcaption strong {
  color: var(--text);
  font-weight: 650;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
  list-style: none;
  padding: 0;
}

.diagram-grid li {
  margin: 0;
}

.diagram-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
}

.diagram-card img {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-card p {
  margin: 0;
  padding: 0.55rem 0.7rem 0.7rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.product-photo {
  margin: 0.75rem 0 1.1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--code-bg);
  max-width: 28rem;
}

.product-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.product-photo figcaption {
  padding: 0.5rem 0.75rem 0.65rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.decision-flow {
  margin: 1.15rem 0 1.5rem;
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--accent-softer);
  border: 1px solid rgba(11, 110, 106, 0.18);
  border-radius: var(--radius-md);
}

.decision-flow-q {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 650;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
}

.decision-flow-q .q-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.decision-branches {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decision-branch {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.decision-branch .if {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.decision-branch .then {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.decision-branch .then strong {
  color: var(--ink);
}

.decision-branch-result {
  border-color: rgba(11, 110, 106, 0.28);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--ink-deep);
  color: #a8b0bb;
  padding: 2.75rem 1.5rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-shell);
  margin: 0 auto;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer .logo span {
  color: #5ec4bf;
}

.site-footer .logo-mark {
  background: #5ec4bf;
}

.footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #a8b0bb;
  max-width: 22rem;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #e2e8f0;
  margin: 0 0 0.85rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.4rem;
}

.footer-list a {
  color: #a8b0bb;
  text-decoration: none;
}

.footer-list a:hover {
  color: #5ec4bf;
}

.footer-disclosure {
  margin: 0 0 1rem;
  max-width: 48rem;
  line-height: 1.55;
  font-size: 0.8125rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b95a3;
}

.footer-disclosure strong {
  color: #d1d7df;
}

.footer-disclosure a {
  color: #5ec4bf;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7583;
}

/* Contact */
.contact-box {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.contact-box a {
  font-weight: 600;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .article-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .toc-desktop {
    display: none;
  }

  .toc-mobile {
    display: block;
  }

  .featured-guide {
    grid-template-columns: 1fr;
  }

  .featured-guide-visual {
    min-height: 12rem;
    order: -1;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.15rem;
    box-shadow: var(--shadow-card);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-item.has-dropdown {
    width: 100%;
  }

  .nav-dropdown-btn,
  .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.75rem;
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0.35rem 0.75rem;
    min-width: 0;
  }

  .nav-dropdown.is-open {
    display: block;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .product-card-inner {
    grid-template-columns: 1fr;
  }

  .product-card-media {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 10rem;
  }

  .product-pros-cons {
    grid-template-columns: 1fr;
  }

  .hero-editorial {
    padding: 2.25rem 0 2rem;
  }
}

@media (max-width: 560px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .diagram-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .prose table {
    font-size: 0.8125rem;
  }

  .prose th,
  .prose td {
    padding: 0.6rem 0.7rem;
  }

  .wrap,
  .article-shell,
  .wrap-shell {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

@media (min-width: 561px) and (max-width: 800px) {
  .diagram-grid {
    grid-template-columns: 1fr 1fr;
  }
}
