/* ─────────────────────────────────────────────────────────────────────────
   checklist-shared.css
   Shared styles for all RV Field Guide individual checklist pages.
   Included by every checklists/*/index.html (NOT checklists/index.html).
   ───────────────────────────────────────────────────────────────────────── */

/* ── Design tokens ── */
:root{
  --bg:#F6F5F1;--surface:#fff;--surface-2:#F0EFEB;--dark:#0C0F0D;
  --sage:#6B7F5E;--sage-lt:#8FA680;--sage-xlt:#E9EDE6;
  --copper:#B5703B;--copper-lt:#D4975F;
  --sand:#C8BFA9;--stone:#9A9488;--ink:#1A1D1B;--ink-2:#3D403E;--ink-3:#6B6E6C;
  --rule:#E5E2DC;--rule-lt:#EDEBE6;
  --font-d:'Outfit',system-ui,sans-serif;--font-b:'Inter',system-ui,sans-serif;
}

/* ── Base reset ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:15px;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:var(--font-b);background:var(--bg);color:var(--ink);line-height:1.6;-webkit-font-smoothing:antialiased}

/* ── Top bar ── */
.pg-bar{
  position:sticky;top:0;z-index:100;
  background:var(--dark);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 28px;height:56px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.pg-bar__brand{
  display:flex;flex-direction:column;gap:4px;
}
.pg-bar__sup{
  font-family:var(--font-d);font-size:9px;font-weight:500;letter-spacing:.18em;
  text-transform:uppercase;color:rgba(255,255,255,.35);line-height:1;
}
.pg-bar__name{
  font-family:var(--font-d);font-size:14px;font-weight:700;color:#fff;
  letter-spacing:-.01em;line-height:1;
}
.pg-bar__right{display:flex;align-items:center;gap:12px}
.pg-bar__cta{
  font-family:var(--font-d);font-size:12px;font-weight:600;
  padding:7px 14px;border-radius:5px;
  background:rgba(107,127,94,.25);border:1px solid rgba(107,127,94,.4);
  color:var(--sage-lt);text-decoration:none;white-space:nowrap;
  transition:all .15s;
}
.pg-bar__cta:hover{background:rgba(107,127,94,.4);color:#fff}

/* ── Sticky scroll title (injected by JS) ── */
.pg-bar__scroll-title{
  position:absolute;left:50%;transform:translateX(-50%) translateY(-6px);
  display:flex;align-items:center;gap:9px;
  opacity:0;transition:opacity .2s ease,transform .2s ease;pointer-events:none;
}
.pg-bar__scroll-title.is-visible{
  opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto;
}
.pg-bar__scroll-badge{
  font-family:var(--font-d);font-size:11px;font-weight:800;
  color:var(--sage-lt);background:rgba(255,255,255,.08);
  border-radius:4px;padding:2px 7px;white-space:nowrap;flex-shrink:0;
}
.pg-bar__scroll-name{
  font-family:var(--font-d);font-size:13.5px;font-weight:700;
  color:#fff;letter-spacing:-.01em;white-space:nowrap;
  max-width:50vw;overflow:hidden;text-overflow:ellipsis;
}

/* ── Article container ── */
.pg-wrap{max-width:720px;margin:0 auto;padding:0 24px 80px}

/* ── Cover ── */
.pg-cover{padding:40px 0 28px;border-bottom:2px solid var(--rule)}
.pg-cover__badge{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:6px;
  background:var(--dark);
  font-family:var(--font-d);font-size:13px;font-weight:800;color:var(--sage-lt);
  margin-bottom:14px;
}
.pg-cover__title{
  font-family:var(--font-d);font-size:32px;font-weight:800;
  color:var(--ink);letter-spacing:-.02em;line-height:1.15;margin-bottom:12px;
}
.pg-cover__desc{
  font-size:15px;color:var(--ink-2);line-height:1.6;margin-bottom:14px;
}
.pg-cover__meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pg-cover__time{
  font-family:var(--font-d);font-size:12px;font-weight:600;
  background:var(--surface-2);border:1px solid var(--rule);
  padding:4px 10px;border-radius:20px;color:var(--ink-3);
}

/* ── SEO intro block ── */
.pg-intro{margin:28px 0;padding:20px 24px;background:var(--surface);border-left:3px solid var(--copper);border-radius:0 6px 6px 0}
.pg-intro p{font-size:15px;color:var(--ink-2);line-height:1.7;margin:0}

/* ── Two-column layout (TOC is fixed; pg-cols just passes through) ── */
.pg-cols{display:block}
.pg-col-main{display:block}

/* ── Sticky TOC — floats in right margin outside content ── */
.pg-toc{
  position:fixed;
  top:72px;
  /* right of centered 720px pg-wrap: 50% + 360px content-half + 16px gap */
  left:calc(50% + 376px);
  width:200px;
  max-height:calc(100vh - 88px);
  overflow-y:auto;
  padding-top:4px;
}
.pg-toc__label{
  font-family:var(--font-d);font-size:9px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--stone);
  margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid var(--rule);
}
.pg-toc__link{
  display:block;font-family:var(--font-d);font-size:11.5px;font-weight:500;
  color:var(--ink-3);text-decoration:none;padding:5px 0;
  border-left:2px solid transparent;padding-left:10px;
  transition:color .15s,border-color .15s;line-height:1.35;
}
.pg-toc__link:hover{color:var(--ink);border-left-color:var(--copper)}
.pg-toc__link.active{color:var(--copper);border-left-color:var(--copper);font-weight:600}

/* ── Checklist body ── */
.pg-body{padding:4px 0 8px}
.pg-body h2.section-head{
  font-family:var(--font-d);font-size:12px;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;color:var(--ink);
  padding:0 0 10px;margin:36px 0 16px;border-bottom:1px solid var(--rule);
  position:relative;display:flex;align-items:baseline;gap:8px;
}
.pg-body h2.section-head::after{
  content:'';position:absolute;bottom:-1px;left:0;
  width:32px;height:2px;background:var(--copper);border-radius:1px;
}
.pg-body h3{font-family:var(--font-d);font-size:13px;font-weight:700;color:var(--ink);margin:20px 0 10px}
.pg-body h4{font-family:var(--font-d);font-size:12px;font-weight:700;color:var(--ink-2);margin:14px 0 8px}
.pg-body p{font-size:13.5px;color:var(--ink-2);line-height:1.65;margin-bottom:10px}
.pg-body ul,.pg-body ol{list-style:none;margin:0 0 12px;padding:0}
.pg-body li.check-item{
  display:flex;align-items:flex-start;
  padding:8px 0;border-bottom:1px solid var(--rule-lt);font-size:13.5px;
}
.pg-body li.check-item label{display:flex;align-items:flex-start;gap:12px;cursor:pointer;width:100%;line-height:1.55}
.pg-body li.check-item input[type="checkbox"]{
  appearance:none;-webkit-appearance:none;
  width:18px;height:18px;min-width:18px;
  border:2px solid var(--rule);border-radius:4px;margin-top:2px;
  cursor:pointer;position:relative;transition:all .15s;background:var(--surface);flex-shrink:0;
}
.pg-body li.check-item input[type="checkbox"]:hover{border-color:var(--sage)}
.pg-body li.check-item input[type="checkbox"]:checked{background:var(--sage);border-color:var(--sage)}
.pg-body li.check-item input[type="checkbox"]:checked::after{
  content:'';position:absolute;left:4px;top:1px;width:6px;height:10px;
  border:2px solid #fff;border-top:none;border-left:none;transform:rotate(45deg);
}
.pg-body li.check-item span{flex:1;color:var(--ink-2)}
.pg-body li.check-item input:checked~span{text-decoration:line-through;color:var(--ink-3);opacity:.6}
.pg-body .callout{
  background:var(--surface-2);border-left:3px solid var(--sand);
  padding:14px 18px;margin:16px 0;border-radius:0 4px 4px 0;
}
.pg-body .callout__title{font-family:var(--font-d);font-size:12px;font-weight:700;color:var(--ink);margin-bottom:4px}
.pg-body .callout__body{font-size:13px;color:var(--ink-2);line-height:1.6;margin:0}
.pg-body table{width:100%;border-collapse:collapse;margin:12px 0 20px;font-size:12.5px;border:1px solid var(--rule);overflow:hidden}
.pg-body th{font-family:var(--font-d);font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);background:var(--surface-2);padding:10px 12px;text-align:left;border-bottom:1px solid var(--rule)}
.pg-body td{padding:9px 12px;border-bottom:1px solid var(--rule-lt);color:var(--ink-2);vertical-align:top;line-height:1.5}
.pg-body tr:last-child td{border-bottom:none}
.pg-body hr{border:none;border-top:1px solid var(--rule-lt);margin:28px 0}
.pg-body code{font-family:'SF Mono','Fira Code',monospace;background:var(--surface-2);padding:2px 5px;border-radius:3px;font-size:11.5px;color:var(--copper)}

/* ── Static checklist list ── */
.static-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.static-item{
  display:flex;align-items:flex-start;gap:10px;
  padding:10px 0;border-bottom:1px solid var(--rule-lt);
}
.static-item::before{
  content:'';flex-shrink:0;width:6px;height:6px;border-radius:50%;
  background:var(--sand);margin-top:6px;
}
.static-item>span{display:flex;flex-direction:column;gap:2px}
.static-title{font-size:13.5px;font-weight:600;color:var(--ink);line-height:1.45}
.static-sub{font-size:12px;color:var(--ink-3);font-weight:400;line-height:1.5}

/* ── Static item with inline affiliate button ── */
.pg-body li.static-item.has-aff{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.pg-body li.static-item.has-aff>span{flex:1}
.pg-body li.check-item.has-aff label{width:auto;flex:1;min-width:0}

/* ── Affiliate links and buttons ── */
.affiliate-link{color:var(--copper);text-decoration:underline;text-decoration-style:dotted}
.affiliate-link:hover{color:var(--copper-lt)}
.aff-btn{
  display:inline-flex;align-items:center;
  font-family:var(--font-d);font-size:10px;font-weight:700;letter-spacing:.04em;
  color:var(--copper);text-decoration:none;
  border:1px solid rgba(181,112,59,.3);border-radius:4px;
  padding:3px 8px;background:rgba(181,112,59,.06);
  white-space:nowrap;flex-shrink:0;
  margin-left:10px;align-self:flex-start;margin-top:3px;
  transition:background .15s,border-color .15s,color .15s;
}
.aff-btn:hover{background:rgba(181,112,59,.14);border-color:rgba(181,112,59,.6);color:var(--copper-lt)}

/* ── Bottom CTA ── */
.pg-bottom-cta{
  background:var(--dark);border-radius:8px;
  padding:32px 28px;margin:48px 0 24px;text-align:center;
}
.pg-bottom-cta__eyebrow{
  font-family:var(--font-d);font-size:10px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--sage-lt);margin-bottom:12px;
}
.pg-bottom-cta__heading{
  font-family:var(--font-d);font-size:22px;font-weight:800;
  color:#fff;letter-spacing:-.02em;margin-bottom:10px;line-height:1.2;
}
.pg-bottom-cta__sub{
  font-size:14px;color:rgba(255,255,255,.5);line-height:1.6;
  margin-bottom:22px;max-width:420px;margin-left:auto;margin-right:auto;
}
.pg-bottom-cta__features{
  display:flex;justify-content:center;gap:20px;flex-wrap:wrap;
  margin-bottom:24px;
}
.pg-bottom-cta__feat{
  font-family:var(--font-d);font-size:12px;font-weight:600;
  color:rgba(255,255,255,.45);display:flex;align-items:center;gap:6px;
}
.pg-bottom-cta__feat::before{content:'✓';color:var(--sage-lt);}
.pg-bottom-cta__btn{
  display:inline-block;
  font-family:var(--font-d);font-size:14px;font-weight:700;
  padding:14px 32px;border-radius:6px;
  background:var(--sage);color:#fff;text-decoration:none;
  transition:background .15s;letter-spacing:.01em;
}
.pg-bottom-cta__btn:hover{background:var(--sage-lt)}
.pg-bottom-cta__note{
  font-size:12px;color:rgba(255,255,255,.25);margin-top:12px;
}

/* ── Sibling nav ── */
.pg-siblings{
  display:flex;justify-content:space-between;align-items:center;
  padding:20px 0;border-top:1px solid var(--rule);
  gap:16px;
}
.pg-sibling{
  font-family:var(--font-d);font-size:12px;font-weight:600;
  color:var(--stone);text-decoration:none;
  padding:6px 0;transition:color .15s;
  max-width:48%;
}
.pg-sibling:hover{color:var(--ink)}
.pg-sibling--next{margin-left:auto;text-align:right}

/* ── Tips section (Field Notes) ── */
.pg-tips-section{margin:48px 0;padding:32px;background:var(--surface);border-radius:10px;border:1px solid var(--rule)}
.pg-tip{display:flex;gap:18px;padding:16px 0;border-bottom:1px solid var(--rule-lt)}
.pg-tip:last-child{border-bottom:none;padding-bottom:0}
.pg-tip:first-of-type{padding-top:0}
.pg-tip__num{font-family:var(--font-d);font-size:11px;font-weight:800;color:var(--copper);opacity:.5;flex-shrink:0;padding-top:2px;min-width:22px}
.pg-tip__text{font-size:14px;color:var(--ink-2);line-height:1.65;margin:0}

/* ── Related checklists section ── */
.pg-related-section{margin:48px 0}
.pg-related-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.pg-related-card{
  display:flex;align-items:center;gap:14px;
  background:var(--surface);border:1px solid var(--rule);border-radius:8px;
  padding:14px 16px;text-decoration:none;
  transition:border-color .15s,transform .1s;
}
.pg-related-card:hover{border-color:var(--sage);transform:translateY(-1px)}
.pg-related-card__badge{
  width:36px;height:36px;min-width:36px;background:var(--dark);border-radius:6px;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-d);font-size:12px;font-weight:800;color:var(--sage-lt);
}
.pg-related-card__body{flex:1;min-width:0}
.pg-related-card__title{font-family:var(--font-d);font-size:13px;font-weight:700;color:var(--ink);margin-bottom:2px;line-height:1.3}
.pg-related-card__desc{font-size:11.5px;color:var(--ink-3);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pg-related-card__arrow{font-size:14px;color:var(--copper);opacity:.6;flex-shrink:0}

/* ── Section headings (Field Notes header, Related guides header) ── */
.pg-section-hd{margin-bottom:20px}
.pg-section-hd__label{font-family:var(--font-d);font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--copper);margin-bottom:4px}
.pg-section-hd__title{font-family:var(--font-d);font-size:20px;font-weight:800;color:var(--ink);letter-spacing:-.02em;line-height:1.2}

/* ── Mid-page inline CTA banner ── */
.pg-inline-cta{
  display:flex;align-items:center;gap:14px;
  background:var(--sage-xlt);border:1px solid rgba(107,127,94,.25);
  border-radius:6px;padding:14px 18px;margin:32px 0;
}
.pg-inline-cta__text{flex:1}
.pg-inline-cta__label{
  font-family:var(--font-d);font-size:12px;font-weight:700;
  color:var(--sage);letter-spacing:.02em;text-transform:uppercase;margin-bottom:2px;
}
.pg-inline-cta__sub{font-size:13px;color:var(--ink-2);line-height:1.4}
.pg-inline-cta__btn{
  font-family:var(--font-d);font-size:12px;font-weight:700;
  padding:9px 16px;border-radius:5px;
  background:var(--sage);color:#fff;text-decoration:none;white-space:nowrap;
  transition:background .15s;flex-shrink:0;
}
.pg-inline-cta__btn:hover{background:var(--sage-lt)}

/* ── Responsive / mobile ── */
@media(max-width:1160px){
  .pg-toc{display:none}
}
@media(max-width:600px){
  .pg-bar{padding:0 16px;height:52px}
  .pg-bar__sup{display:none}
  .pg-bar__scroll-title{display:none}
  .pg-wrap{padding:0 16px 60px}
  .pg-cover{padding:28px 0 20px}
  .pg-cover__title{font-size:24px}
  .pg-inline-cta{flex-direction:column;align-items:flex-start;gap:10px}
  .pg-bottom-cta{padding:24px 20px}
  .pg-bottom-cta__heading{font-size:18px}
  .pg-bottom-cta__features{gap:12px}
  .pg-tips-section{padding:20px}
  table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
