:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #5f6b7a;
  --line: #d7d0c2;
  --accent: #0f766e;
  --accent-dark: #0d4f4a;
  --rust: #c2410c;
  --gold: #f0b429;
  --ink: #17212b;
  --cream: #fff8ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.68), rgba(246, 241, 232, 0.94) 34rem),
    var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

/* Keep long-form guides comfortable to scan without constraining visual hubs. */
main.article {
  width: min(820px, calc(100% - 40px));
  padding: 64px 0 72px;
}

main.article > h1 {
  font-size: clamp(2.25rem, 6vw, 4.35rem);
  line-height: 1.02;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.article-breadcrumb a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

main.article > p,
main.article > ul,
main.article > ol {
  max-width: 72ch;
}

main.article > h2 {
  margin: 2.6rem 0 0.7rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.2;
}

main.article > h3 {
  margin: 2rem 0 0.55rem;
  color: var(--ink);
  line-height: 1.25;
}

/* Older guides keep their prose in a nested article element. Treat it as
   long-form content rather than as one of the site's compact article cards. */
main.article > article {
  min-height: 0;
  margin-top: 28px;
  padding: 30px clamp(20px, 4vw, 42px) 38px;
}

main.article > article > p,
main.article > article > ul,
main.article > article > ol,
main.article > article > section:not(.product-first-hero),
main.article > article > figure {
  max-width: 72ch;
}

main.article > article > h2 {
  margin: 2.6rem 0 0.7rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.2;
}

main.article > article > h3 {
  margin: 2rem 0 0.55rem;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.3;
}

main.article > article > p + p {
  margin-top: 1rem;
}

main.article > p + p {
  margin-top: 1rem;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

[id] {
  scroll-margin-top: 92px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: contain;
  box-shadow: 0 10px 22px rgba(23, 33, 43, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

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

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  padding: 72px 0 56px;
}

.hero-home {
  overflow: hidden;
  padding: 82px 0 38px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-compact {
  padding-bottom: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-checkers {
  background: var(--rust);
  box-shadow: 0 14px 28px rgba(194, 65, 12, 0.16);
}

.button-checkers:hover {
  background: #9a3412;
}

.button-secondary {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(23, 33, 43, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 32px 70px rgba(31, 41, 51, 0.22);
  transform: rotate(-1deg);
}

.hero-media img,
.image-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-band {
  overflow: hidden;
  aspect-ratio: 16 / 5;
  margin-bottom: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.12);
}

.quick-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 0 0 18px;
}

.popular-starts {
  padding: 24px 0 48px;
}

.popular-starts .section-heading {
  margin-bottom: 18px;
}

.popular-starts .section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.quick-paths a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.quick-paths a:nth-child(2) {
  border-left-color: var(--rust);
}

.quick-paths a:nth-child(3) {
  border-left-color: var(--gold);
}

.quick-paths a:nth-child(4) {
  border-left-color: var(--ink);
}

.quick-paths a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(31, 41, 51, 0.1);
}

.path-finder {
  padding: 0 0 58px;
}

.latest-guides {
  padding: 0 0 62px;
}

.latest-guides-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.latest-guides-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.text-link {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-weight: 850;
  text-underline-offset: 4px;
}

.latest-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.latest-guide-grid article {
  min-height: 100%;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(31, 41, 51, 0.07);
}

.latest-guide-grid article:nth-child(2) {
  border-top-color: var(--rust);
}

.latest-guide-grid article:nth-child(3) {
  border-top-color: var(--gold);
}

.latest-guide-grid h2 {
  margin: 6px 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.latest-guide-grid h2 a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.latest-guide-grid h2 a:hover {
  color: var(--accent-dark);
}

.latest-guide-grid p {
  margin: 0;
}

.guide-card-date {
  color: var(--accent-dark) !important;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intent-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 58px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(31, 41, 51, 0.08);
}

.intent-strip h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
}

.intent-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.intent-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.intent-links a:hover,
.intent-links a:focus {
  color: var(--accent-dark);
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 10px 20px rgba(31, 41, 51, 0.08);
}

.guide-shelf {
  margin: 30px 0 28px;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-shelf h2 {
  margin-top: 0;
}

.guide-map {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(240, 180, 41, 0.1)),
    #ffffff;
}

.guide-map > p {
  margin-bottom: 16px;
}

.guide-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-map-grid a {
  display: block;
  min-height: 100%;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.guide-map-grid a:hover,
.guide-map-grid a:focus {
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 12px 22px rgba(31, 41, 51, 0.08);
  transform: translateY(-2px);
}

.guide-map-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.25;
}

.guide-map-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.use-case-grid a {
  display: block;
  min-height: 100%;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.use-case-grid a:nth-child(2) {
  border-top-color: var(--rust);
}

.use-case-grid a:nth-child(3) {
  border-top-color: var(--gold);
}

.use-case-grid a:nth-child(4) {
  border-top-color: var(--ink);
}

.use-case-grid a:hover,
.use-case-grid a:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 14px 28px rgba(31, 41, 51, 0.1);
  transform: translateY(-2px);
}

.use-case-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.25;
}

.use-case-grid p {
  margin: 0;
  color: var(--muted);
}

.use-case-grid small {
  display: block;
  margin-top: 14px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.use-case-grid a:nth-child(2) small {
  color: #9a3412;
}

.use-case-grid a:hover small span,
.use-case-grid a:focus small span {
  display: inline-block;
  transform: translateX(3px);
}

.blog-routes {
  padding: 62px 0 72px;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.topic-list a {
  min-height: 168px;
  padding: 22px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.topic-list a:hover {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 14px 28px rgba(31, 41, 51, 0.1);
  transform: translateY(-2px);
}

.topic-list span {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.25;
}

.topic-list p {
  margin: 0;
  color: var(--muted);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}

.decision-grid a {
  display: block;
  min-height: 100%;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.decision-grid a:nth-child(2) {
  border-left-color: var(--rust);
}

.decision-grid a:nth-child(3) {
  border-left-color: var(--gold);
}

.decision-grid a:nth-child(4) {
  border-left-color: var(--ink);
}

.decision-grid a:hover,
.decision-grid a:focus {
  border-color: rgba(15, 118, 110, 0.44);
  border-left-color: var(--accent);
  box-shadow: 0 12px 24px rgba(31, 41, 51, 0.08);
}

.decision-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.25;
}

.decision-grid p {
  margin: 0;
  color: var(--muted);
}

.buyer-intent-hub {
  padding: 0 0 58px;
}

.buyer-intent-hub .section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.buyer-intent-hub .section-heading > p:last-child {
  color: var(--muted);
}

.decision-grid-prominent {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-grid-prominent a:last-child:nth-child(3n + 1) {
  grid-column: span 2;
}

.featured-paths {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 30px 0 30px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(240, 180, 41, 0.12)),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.featured-paths h2 {
  margin: 0;
}

.featured-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.featured-path-grid a {
  display: block;
  min-height: 100%;
  padding: 15px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.featured-path-grid a:hover,
.featured-path-grid a:focus {
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 12px 24px rgba(31, 41, 51, 0.08);
}

.featured-path-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.25;
}

.featured-path-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-band {
  padding: 64px 0 70px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08), transparent 40%, rgba(194, 65, 12, 0.08)),
    #ffffff;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.05rem);
  line-height: 1.05;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

article {
  min-height: 180px;
  padding: 0 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.grid article,
.feature-card {
  position: relative;
  overflow: hidden;
}

.grid article::before,
.feature-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: var(--accent);
}

.grid article:nth-child(2)::before,
.feature-card:nth-child(2)::before {
  background: var(--rust);
}

.grid article:nth-child(3)::before,
.feature-card:nth-child(3)::before {
  background: var(--gold);
}

.feature-card {
  min-height: 100%;
  padding: 0 24px 24px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.feature-card:hover,
.feature-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 16px 30px rgba(31, 41, 51, 0.12);
  transform: translateY(-3px);
}

.feature-card h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.card-cta {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent-dark);
  font-weight: 850;
}

.card-image {
  height: 122px;
  margin: 0 -24px 22px;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.card-image-buying {
  background-image: url("/images/chess-checkers-hero.png");
}

.card-image-research {
  background-image: url("/images/guide-categories-tabletop.png");
}

.card-image-explainers {
  background-image: url("/images/about-learning-setup.png");
}

.card-number {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

article h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

article p {
  margin: 0;
  color: var(--muted);
}

.content-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding: 0 0 72px;
}

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 68px;
  z-index: 8;
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(246, 241, 232, 0.94);
  border-block: 1px solid rgba(215, 208, 194, 0.72);
  backdrop-filter: blur(12px);
}

.topic-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.topic-nav a:hover {
  color: var(--accent);
  border-color: rgba(15, 118, 110, 0.42);
}

.topic-nav a:focus-visible {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.archive-drawer {
  margin-top: 22px;
  padding: 0 18px 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.archive-drawer summary {
  padding: 16px 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.archive-drawer[open] summary {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.archive-list {
  display: grid;
  gap: 14px;
}

.guide-finder {
  margin: 28px 0 14px;
  padding: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-finder-prominent {
  margin-top: 22px;
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 14px 30px rgba(31, 41, 51, 0.08);
}

.guide-finder label {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
}

.guide-finder p {
  margin: 4px 0 12px;
  color: var(--muted);
}

.guide-finder input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.guide-filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.guide-filter-controls button {
  min-width: 72px;
  padding: 0 14px;
  color: var(--accent-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.guide-filter-controls button:hover {
  border-color: var(--accent);
}

.guide-finder input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

.guide-finder input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.guide-finder .guide-filter-status {
  margin: 10px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.compact-featured-paths {
  margin: 18px 0;
}

.compact-featured-paths a {
  min-height: 0;
}

.compact-featured-paths strong,
.compact-featured-paths span {
  display: block;
}

.compact-featured-paths span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.content-main,
.content-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.content-main {
  padding: 34px;
}

.library-orientation {
  margin: 0 0 26px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.09), rgba(240, 180, 41, 0.11)),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.library-orientation h2,
.content-page .library-orientation h2:not(:first-child) {
  margin: 0 0 8px;
}

.library-orientation > p:not(.eyebrow) {
  max-width: 65ch;
}

.library-orientation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.library-orientation-grid a {
  display: block;
  min-height: 100%;
  padding: 15px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.library-orientation-grid a:hover,
.library-orientation-grid a:focus {
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 12px 22px rgba(31, 41, 51, 0.08);
}

.library-orientation-grid span,
.library-orientation-grid small {
  display: block;
}

.library-orientation-grid span {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.25;
}

.library-orientation-grid small {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.45;
}

.content-aside {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 92px;
}

.content-image,
.aside-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
}

.affiliate-note {
  margin: 24px 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.affiliate-product-module {
  margin: 0 0 38px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.1);
}

.affiliate-product-module .content-image {
  margin-bottom: 14px;
}

.affiliate-button {
  margin: 0 0 12px;
}

.affiliate-product-module figcaption {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.95rem;
}

.affiliate-hero-image {
  min-height: 260px;
  background: #f8fafc;
}

.affiliate-example-list {
  padding: 18px 20px 18px 34px;
  background: var(--cream);
  border: 1px solid rgba(215, 208, 194, 0.9);
  border-radius: 8px;
}

.affiliate-example-list li + li {
  margin-top: 10px;
}

.product-route {
  margin: -8px 0 34px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-route-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-route ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-route li {
  margin: 0;
}

.product-route a {
  display: block;
  min-height: 100%;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.product-route a:hover,
.product-route a:focus {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.affiliate-shop {
  margin: -18px 0 38px;
  padding: 18px;
  background: #fff8ed;
  border: 1px solid rgba(194, 65, 12, 0.24);
  border-radius: 8px;
}

/* On the chronological blog, shopping follows the reader-first route cards. */
main.article > .affiliate-shop {
  margin: 34px 0 42px;
}

.affiliate-shop h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.affiliate-shop p {
  margin: 0 0 14px;
  color: var(--muted);
}

.affiliate-shop ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.affiliate-shop li {
  margin: 0;
}

.affiliate-shop a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.affiliate-shop a:hover,
.affiliate-shop a:focus {
  border-color: var(--rust);
  color: #9a3412;
}

.aside-image {
  aspect-ratio: 4 / 3;
  margin-bottom: 22px;
}

.content-page h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.content-page h2:not(:first-child) {
  margin-top: 30px;
}

.content-page p,
.content-page li {
  color: var(--muted);
}

.content-page p {
  margin: 0;
}

.content-main > p + p {
  margin-top: 16px;
}

.content-page a {
  color: var(--accent);
  font-weight: 800;
}

.content-page ul {
  margin: 0;
  padding-left: 20px;
}

.content-page .guide-index-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.content-page .guide-index-list li {
  margin: 0;
  min-height: 100%;
}

.content-page .guide-index-list a {
  display: block;
  min-height: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  line-height: 1.35;
  text-decoration: none;
}

.content-page .guide-index-list a:hover,
.content-page .guide-index-list a:focus {
  border-color: rgba(15, 118, 110, 0.48);
  color: var(--accent-dark);
}

.all-guides-drawer {
  margin: 30px 0;
  padding: 0 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.all-guides-drawer summary {
  padding: 16px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 850;
}

.category-drawer {
  margin: 18px 0 30px;
  padding: 0 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-drawer summary {
  padding: 16px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 850;
}

.category-drawer[open] summary {
  border-bottom: 1px solid var(--line);
}

.category-drawer > p {
  margin-top: 16px;
}

.gear-directory {
  margin-bottom: 34px;
}

.gear-directory > .topic-list {
  margin-top: 18px;
}

.content-page .buying-path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.buying-path-list li {
  padding: 13px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.buying-path-list a,
.buying-path-list span {
  display: block;
}

.buying-path-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.all-guides-drawer[open] {
  padding-bottom: 18px;
}

.all-guides-drawer[open] summary {
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.all-guides-drawer > p {
  margin: 14px 0 18px;
}

.content-main > section + h2,
.content-main > details + h2,
.content-main > ul + h2,
.content-main > div + h2 {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.content-page li + li {
  margin-top: 8px;
}

footer {
  width: 100%;
  flex: 0 0 auto;
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-content p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  flex: 0 0 auto;
}

.footer-links a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

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

/* Switch the header to its compact, scrollable pattern before links become cramped on tablets. */
@media (max-width: 960px) {
  .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0 8px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding: 3px 0 8px;
    border-top: 1px solid var(--line);
    scrollbar-color: var(--accent) transparent;
    scrollbar-width: auto;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #ffffff;
    scroll-snap-align: start;
  }

  .nav-links a[aria-current="page"] {
    border-color: rgba(15, 118, 110, 0.28);
    background: rgba(15, 118, 110, 0.08);
  }

  .nav-links a::after {
    right: 10px;
    bottom: 2px;
    left: 10px;
  }

  .topic-nav {
    top: 112px;
  }

  /* Avoid squeezing the guide library into a narrow reading column beside
     its supporting panel on portrait tablets and small laptops. */
  .content-page {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .content-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding: 48px 0 36px;
  }

  .hero-home {
    padding-top: 40px;
  }

  main.article {
    width: min(100% - 28px, 820px);
    padding: 42px 0 48px;
  }

  main.article > article {
    margin-top: 22px;
    padding: 24px 18px 30px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .brand {
    gap: 8px;
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0 8px;
  }

  .nav-links {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    padding: 3px 0 8px;
    border-top: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  }

  .nav-links a {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid transparent;
    text-align: center;
    line-height: 1.2;
    scroll-snap-align: start;
  }

  .nav-links a[aria-current="page"] {
    border-color: rgba(15, 118, 110, 0.28);
    background: rgba(15, 118, 110, 0.08);
  }

  .nav-links a::after {
    right: 10px;
    bottom: 2px;
    left: 10px;
  }

  .topic-nav {
    position: static;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-inline: 14px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }

  .topic-nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .hero-media {
    transform: none;
  }

  .quick-paths {
    padding-bottom: 36px;
  }

  .path-finder {
    padding-bottom: 42px;
  }

  .latest-guides-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .intent-strip {
    grid-template-columns: 1fr;
    margin-bottom: 42px;
  }

  .intent-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-band {
    aspect-ratio: 16 / 8;
    margin-bottom: 36px;
  }

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

  .feature-band {
    padding: 44px 0 50px;
  }

  .content-page {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 48px;
  }

  .content-main,
  .content-aside {
    padding: 22px;
  }

  .content-aside {
    position: static;
  }

  .content-image {
    aspect-ratio: 16 / 10;
  }

  .product-route ul {
    grid-template-columns: 1fr;
  }

  .affiliate-shop ul {
    grid-template-columns: 1fr;
  }

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

  .decision-grid-prominent a:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

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

  .library-orientation-grid {
    grid-template-columns: 1fr;
  }

  .content-page .buying-path-list {
    grid-template-columns: 1fr;
  }

  .featured-paths,
  .featured-path-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  .nav-links a,
  .topic-nav a,
  .quick-paths a,
  .use-case-grid a,
  .topic-list a {
    border-color: currentColor;
  }

  .affiliate-note {
    border-color: currentColor;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    flex-direction: column;
  }

  .button {
    justify-content: center;
    width: 100%;
  }
}

.product-first-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: 20px;
  align-items: stretch;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, Canvas 88%, currentColor 4%);
}

.product-first-image {
  display: block;
  min-height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.product-first-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.product-first-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.product-first-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.72;
}

.product-first-copy h2,
.product-first-copy p {
  margin: 0;
}

.product-first-links {
  display: grid;
  gap: 10px;
}

.product-first-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: color-mix(in srgb, currentColor 18%, #0f5f4a 82%);
}

.product-first-related {
  font-size: 0.95rem;
}

.product-first-related a {
  font-weight: 700;
}

@media (max-width: 760px) {
  .product-first-hero {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .product-first-image img {
    min-height: 210px;
  }
}
