/* ==========================================================================
   TentBaseCamp — Global Stylesheet
   Design language: Trail-guide inspired. Deep forest palette with warm safety-
   orange accent. Serif for editorial trust, mono for spec/data, sans for UI.
   ========================================================================== */

:root {
  /* Palette — pulled from outdoor gear catalogs, not AI defaults */
  --ink:        #14211c;   /* near-black with green undertone */
  --paper:      #f6f4ee;   /* off-white, warmer than pure */
  --paper-alt:  #ecebe3;
  --moss:       #2f4a3a;   /* deep forest — primary brand */
  --moss-2:     #416b52;
  --clay:       #b8562a;   /* safety orange, muted */
  --clay-2:     #d4693a;
  --line:       #d8d3c4;   /* rules and dividers */
  --dim:        #6b6a63;   /* secondary text */
  --warn:       #a83a2c;
  --ok:         #3b7a4b;

  /* Type scale */
  --f-display:  'Fraunces', 'Playfair Display', Georgia, serif;
  --f-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:     'JetBrains Mono', 'Menlo', monospace;

  /* Layout */
  --max:        1120px;
  --gap:        clamp(1rem, 2vw, 1.5rem);
  --radius:     4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

/* -------- Typography -------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2em 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 0.4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--line); padding-top: 1.4rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--f-body); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; }
p + p { margin-top: -0.2em; }

blockquote {
  margin: 1.5em 0;
  padding: 0.8em 1.2em;
  border-left: 3px solid var(--clay);
  background: var(--paper-alt);
  font-style: italic;
  color: var(--ink);
}

code, kbd {
  font-family: var(--f-mono);
  font-size: 0.9em;
  background: var(--paper-alt);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* -------- Header / Nav -------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(1.1) blur(6px);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--moss);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo::before {
  content: '▲';
  color: var(--clay);
  font-size: 0.85em;
}
.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  border-bottom-color: var(--clay);
  color: var(--moss);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 1rem var(--gap);
    gap: 0.8rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-block; }
}

/* -------- Layout -------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.article {
  max-width: 780px;
  margin: 2rem auto 4rem;
  padding: 0 var(--gap);
}
.article > * { margin-left: auto; margin-right: auto; }

/* -------- Breadcrumbs -------- */
.crumbs {
  font-size: 0.85rem;
  color: var(--dim);
  margin: 1.5rem 0 0.5rem;
}
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--clay); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink); }

/* -------- Affiliate Disclosure Banner -------- */
.disclosure {
  background: var(--paper-alt);
  border-left: 3px solid var(--clay);
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--dim);
  margin: 1.2rem 0;
  border-radius: var(--radius);
}
.disclosure strong { color: var(--ink); }

/* -------- Quick Picks Box -------- */
.quickpicks {
  background: var(--ink);
  color: var(--paper);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.quickpicks h2 {
  color: var(--paper);
  border-top: none;
  padding-top: 0;
  margin: 0 0 1rem;
  font-size: 1.3rem;
}
.quickpicks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.quickpick {
  background: var(--moss);
  padding: 1rem;
  border-radius: var(--radius);
}
.quickpick-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay-2);
  display: block;
  margin-bottom: 0.4rem;
}
.quickpick-name {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--paper);
  margin: 0 0 0.4rem;
}
.quickpick p {
  font-size: 0.9rem;
  color: #d8d3c4;
  margin: 0 0 0.8rem;
}

/* -------- Buttons -------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: var(--clay);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--clay-2); color: white; transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }
.btn-outline {
  background: transparent;
  color: var(--moss);
  border: 1px solid var(--moss);
}
.btn-outline:hover { background: var(--moss); color: white; }

/* -------- Comparison Table -------- */
.comp-table-wrap {
  margin: 2rem -1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: white;
  margin: 0 1rem;
}
.comp-table th, .comp-table td {
  padding: 0.8rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.comp-table thead {
  background: var(--moss);
  color: var(--paper);
}
.comp-table thead th {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.comp-table tbody tr:nth-child(even) { background: var(--paper-alt); }
.comp-table td.product-name { font-weight: 600; color: var(--ink); }
.comp-table td.numeric { font-family: var(--f-mono); font-size: 0.88rem; }

/* -------- Product Review Card -------- */
.product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2.5rem 0;
  background: white;
}
.product-header {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.product-rank {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay);
  background: var(--paper-alt);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  align-self: flex-start;
}
.product h3 {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 1.3rem;
}
.product-img {
  float: right;
  max-width: 240px;
  margin: 0 0 1rem 1.5rem;
  border-radius: var(--radius);
  background: var(--paper-alt);
}
@media (max-width: 600px) {
  .product-img { float: none; margin: 0 0 1rem; max-width: 100%; }
}
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.2rem 0;
  clear: both;
}
@media (max-width: 500px) { .proscons { grid-template-columns: 1fr; } }
.pros, .cons {
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.93rem;
}
.pros { background: #eaf2ec; border-left: 3px solid var(--ok); }
.cons { background: #f5e9e6; border-left: 3px solid var(--warn); }
.pros h4, .cons h4 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--f-body);
}
.pros h4 { color: var(--ok); }
.cons h4 { color: var(--warn); }
.pros ul, .cons ul { margin: 0; padding-left: 1.2rem; }
.pros li, .cons li { margin-bottom: 0.3rem; }

.review-note {
  background: var(--paper-alt);
  border-left: 3px solid var(--dim);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  margin: 1rem 0;
  color: var(--ink);
}
.review-note strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 0.3rem; font-family: var(--f-body); }

/* ---- Quick-decision pick table (top of article) ---- */
.pick-table-intro { margin: 1.5rem 0 0.5rem; }
.pick-table-intro p { color: var(--dim); font-size: 0.95rem; margin: 0; }
.pick-table-wrap { overflow-x: auto; margin: 0.5rem 0 2rem; }
.pick-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pick-table thead th {
  text-align: left; font-family: var(--f-body); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim);
  padding: 0.5rem 0.7rem; border-bottom: 2px solid var(--ink);
}
.pick-table td { padding: 0.7rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pick-table .pt-name a { font-weight: 700; color: var(--ink); text-decoration: none; }
.pick-table .pt-name a:hover { color: var(--accent, #b8562a); }
.pt-badge {
  display: inline-block; font-family: var(--f-body); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: #fff;
  background: var(--accent, #b8562a); padding: 0.18rem 0.5rem; border-radius: 999px; white-space: nowrap;
}
.pt-specs { display: flex; flex-direction: column; gap: 0.1rem; }
.pt-spec { font-size: 0.82rem; color: var(--ink); }
.pt-spec b { color: var(--dim); font-weight: 600; }
.pt-read a { font-size: 0.82rem; color: var(--accent, #b8562a); text-decoration: none; white-space: nowrap; }
.pt-read a:hover { text-decoration: underline; }
.pick-table .btn-sm { white-space: nowrap; }
@media (max-width: 720px) {
  .pick-table thead { display: none; }
  .pick-table, .pick-table tbody, .pick-table tr, .pick-table td { display: block; width: 100%; }
  .pick-table tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; padding: 0.5rem 0.8rem; }
  .pick-table td { border: none; padding: 0.3rem 0; }
}

/* ---- Product standout highlight ---- */
.product-highlight {
  background: linear-gradient(0deg, var(--paper-alt), var(--paper-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.9rem 0;
  color: var(--ink);
}
.hl-badge {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #fff;
  background: var(--accent, #b8562a);
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ---- Product spec sheet ---- */
.spec-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin: 1rem 0 1.1rem;
  border-top: 2px solid var(--ink);
  padding-top: 0.5rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.spec-k { color: var(--dim); font-family: var(--f-body); }
.spec-v { color: var(--ink); font-weight: 600; text-align: right; }
@media (max-width: 560px) {
  .spec-sheet { grid-template-columns: 1fr; gap: 0; }
}

.product-cta {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}
.product-cta .btn { flex: 1; min-width: 200px; }

/* -------- FAQ -------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--ink);
  padding-right: 1.5rem;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--clay);
}
.faq details[open] summary::after { content: '−'; }
.faq details p:first-of-type { margin-top: 0.8rem; }

/* -------- Meta line under H1 -------- */
.article-meta {
  color: var(--dim);
  font-size: 0.85rem;
  margin: 0.5rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.article-meta .divider { margin: 0 0.5rem; }

/* -------- Hero (home page) -------- */
.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
}
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }
.hero .eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clay);
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  max-width: 18ch;
  margin: 0 0 1rem;
}
.hero p.lede {
  font-size: 1.15rem;
  max-width: 55ch;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

/* -------- Category grid on home -------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.cat-card {
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.cat-card:hover {
  border-color: var(--clay);
  transform: translateY(-2px);
  color: var(--ink);
}
.cat-card .cat-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.cat-card h3 { margin: 0.4rem 0 0.5rem; font-size: 1.2rem; }
.cat-card p { font-size: 0.9rem; color: var(--dim); margin: 0; }

/* -------- Article list (home / cat pages) -------- */
/* Scalable homepage section header with a "see all" link on the right */
.section-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.section-head-row h2 { border-top: none; padding-top: 0; margin: 0; }
.see-all {
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent, #b8562a);
  text-decoration: none;
  white-space: nowrap;
}
.see-all:hover { text-decoration: underline; }

/* Compact question link list for the homepage "Popular Questions" block */
.qa-link-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem 2rem; }
.qa-link-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.qa-link-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.qa-link-list a:hover { color: var(--accent, #b8562a); }
@media (max-width: 640px) { .qa-link-list { grid-template-columns: 1fr; } }

.post-list { list-style: none; padding: 0; }
.post-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.post-list h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.post-list h3 a { color: var(--ink); text-decoration: none; }
.post-list h3 a:hover { color: var(--clay); }
.post-list .excerpt { font-size: 0.95rem; color: var(--dim); margin: 0; }

/* -------- Footer -------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.8rem;
}
.footer-grid a { color: #d8d3c4; text-decoration: none; display: block; padding: 0.2rem 0; }
.footer-grid a:hover { color: var(--clay-2); }
.footer-bottom {
  border-top: 1px solid #2f4a3a;
  padding-top: 1.5rem;
  color: var(--dim);
  font-size: 0.82rem;
}

/* -------- Utilities -------- */
.related {
  background: var(--paper-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2.5rem 0;
}
.related h3 { margin: 0 0 0.8rem; font-size: 1.1rem; }
.related ul { margin: 0; padding-left: 1.2rem; }
.related li { margin-bottom: 0.4rem; }

.tldr {
  background: var(--paper-alt);
  border-left: 3px solid var(--moss);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.tldr strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  margin-bottom: 0.4rem;
  font-family: var(--f-body);
}

.who-should {
  margin: 2rem 0;
  padding: 1.2rem;
  border: 1px dashed var(--moss);
  border-radius: var(--radius);
  background: white;
}
.who-should h4 { margin: 0 0 0.8rem; font-family: var(--f-body); }
.who-should ul { margin: 0; padding-left: 1.2rem; }
.who-should li { margin-bottom: 0.5rem; }
.who-should strong { color: var(--moss); }

/* -------- Article Hero Image -------- */
.article-hero {
  max-width: 780px;
  margin: 1.5rem auto 0;
  padding: 0 var(--gap);
}
.article-hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper-alt);
}

/* -------- Quick Pick with image -------- */
.quickpick-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  background: var(--moss-2);
}

/* -------- Post list with thumbnail -------- */
.post-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.post-list .post-thumb {
  width: 140px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-alt);
  flex-shrink: 0;
}
.post-list .post-body { flex: 1; min-width: 0; }
@media (max-width: 500px) {
  .post-list li { flex-direction: column; }
  .post-list .post-thumb { width: 100%; }
}

/* -------- Category card with icon area -------- */
.cat-card {
  padding: 0;
  overflow: hidden;
}
.cat-card-visual {
  height: 120px;
  background: linear-gradient(135deg, var(--moss) 0%, var(--moss-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 2rem;
  border-bottom: 3px solid var(--clay);
}
.cat-card-body { padding: 1.2rem 1.5rem 1.5rem; }
.cat-card-body .cat-label,
.cat-card-body h3,
.cat-card-body p { margin: 0; }
.cat-card-body h3 { margin: 0.4rem 0 0.5rem; font-size: 1.2rem; }

/* -------- Hero image on homepage -------- */
.hero-with-image {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) {
  .hero-with-image { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Print / accessibility */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 3px; }

/* ==========================================================================
   ARTICLE LAYOUT v4 — left TOC rail · center article · right related rail
   ========================================================================== */
.article-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
/* Inside the grid the article fills its column (overrides the standalone 780px rule) */
.article-layout > .article { max-width: none; margin: 0; width: 100%; }
.article-layout > .article > * { margin-left: 0; margin-right: 0; }

/* ---- Related guides moved to a full-width band below the article ---- */
.related-bottom {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 2rem var(--gap) 0;
  border-top: 1px solid var(--bd, #e3e3da);
}
.related-bottom .related-rail-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.related-bottom .rail-card { margin: 0; }
@media (max-width: 760px) {
  .related-bottom .related-rail-inner { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ---- Left: sticky quick-nav TOC ---- */
.toc-rail {
  position: sticky;
  top: 84px;
  align-self: start;
}
.toc-rail { max-height: calc(100vh - 100px); overflow: auto; }
.toc-title, .rail-title {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--dim);
  margin: 0 0 0.6rem;
}
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a {
  display: block;
  padding: 0.34rem 0.85rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
}
.toc li.toc-l3 a { padding-left: 1.5rem; font-size: 0.85rem; }
.toc li a:hover { color: var(--moss); }
.toc li a.active { color: var(--ink); border-left-color: var(--clay); font-weight: 600; }

/* ---- Right: related / picks rail ---- */
.rail-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.rail-links { list-style: none; margin: 0; padding: 0; }
.rail-links li { margin: 0 0 0.55rem; line-height: 1.3; }
.rail-links li:last-child { margin-bottom: 0; }
.rail-links a { text-decoration: none; color: var(--moss); }
.rail-links a:hover { color: var(--clay); }
.rail-pick { padding: 0.55rem 0; border-top: 1px solid var(--line); }
.rail-pick:first-of-type { border-top: none; padding-top: 0; }
.rail-pick-label { display: block; font-size: 0.7rem; color: var(--clay); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.15rem; }
.rail-pick-name { font-weight: 600; text-decoration: none; color: var(--ink); line-height: 1.25; display: inline-block; }
.rail-pick-name:hover { color: var(--clay); }
.rail-note p { margin: 0; color: var(--dim); font-size: 0.85rem; line-height: 1.5; }

/* ---- Section / category landing pages ---- */
.section-head { margin: 1.5rem 0 0.5rem; }
.section-head h1 { margin-bottom: 0.3rem; }
.muted { color: var(--dim); }

/* ---- Responsive: collapse the TOC above the article below this breakpoint ---- */
@media (max-width: 1024px) {
  .article-layout { display: block; }
  .article-layout > .article { max-width: 760px; margin: 0 auto; }
  .article-layout > .article > * { margin-left: auto; margin-right: auto; }

  .toc-rail {
    position: static;
    max-height: none;
    overflow: visible;
    max-width: 760px;
    margin: 0 auto 1.75rem;
  }
  .toc {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-alt);
    padding: 0.85rem 1rem;
  }
  /* On tablet/mobile, collapse the quick-nav into a details disclosure feel */
  .toc ul { border-left: none; display: flex; flex-wrap: wrap; gap: 0.15rem 0.4rem; }
  .toc li a { border-left: none; padding: 0.25rem 0.5rem; }
  .toc li a.active { border-left: none; text-decoration: underline; text-underline-offset: 3px; }
  .toc li.toc-l3 { display: none; } /* keep the collapsed nav tight */
}
