/* lil'buddy pages (tutorial hub, anatomy, cookbook, outlines, field notes).
   Same palette and topbar as the homepage. Light only, like the rest of the site. */
:root {
  --base: #E6E9EE;
  --surface: #F2F4F7;
  --card: #FFFFFF;
  --navy: #1A3C6E;
  --navy-dark: #0F2748;
  --lava: #CF2A27;
  --lava-dark: #A11F1C;
  --olive: #556B2F;
  --gold: #FFCD00;
  --text: #14213D;
  --muted: #5B6777;
  --border: rgba(26, 60, 110, 0.22);
  --radius: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--base);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--lava); text-decoration: none; }
a:hover { color: var(--lava-dark); text-decoration: underline; }
code { font-family: Consolas, 'Cascadia Mono', monospace; font-size: 0.92em; background: rgba(26,60,110,0.08); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }

/* ---- topbar (matches homepage) ---- */
nav.topbar { background: var(--navy); color: #fff; border-bottom: 3px solid var(--olive); }
.topbar-inner { max-width: 960px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.topbar .brand { font-weight: 700; font-size: 17px; letter-spacing: 0.01em; color: #fff; }
.topbar .brand:hover { color: #fff; text-decoration: none; }
.topbar .brand .dot { color: var(--lava); }
.topbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; }
.topbar ul a { color: rgba(255,255,255,0.82); font-weight: 600; font-size: 14px; }
.topbar ul a:hover { color: #fff; text-decoration: none; }
.topbar ul a.active { color: #fff; border-bottom: 2px solid var(--lava); padding-bottom: 2px; }

main { max-width: 960px; margin: 0 auto; padding: 36px 24px 72px; }
main.narrow { max-width: 820px; }

/* ---- hero ---- */
.hero { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px 32px 30px; margin-bottom: 36px; border-bottom: 4px solid var(--gold); position: relative; overflow: hidden; }
.hero .kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.hero h1 { margin: 0 0 10px; font-size: 40px; line-height: 1.1; letter-spacing: -0.01em; }
.hero h1 .apos { color: var(--gold); }
.hero p { margin: 0; max-width: 640px; color: rgba(255,255,255,0.88); font-size: 16px; }
.hero .hero-note { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.7); }
.hero .hero-cta { display: inline-block; margin-top: 18px; background: var(--lava); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: var(--radius); }
.hero .hero-cta:hover { background: var(--lava-dark); color: #fff; text-decoration: none; }

.page-head { margin-bottom: 28px; }
.page-head .kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); margin: 0 0 6px; }
.page-head h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; color: var(--navy); }
.page-head p { margin: 0; color: var(--muted); max-width: 680px; }
.crumb { font-size: 13px; margin-bottom: 14px; }

.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
section { margin-bottom: 44px; }

/* ---- start-here path ---- */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; counter-reset: step; }
.path li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 14px 16px 16px; }
.path li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.path li.go { border-top-color: var(--lava); }
.path li.go::before { background: var(--lava); }
.path a.step-title { display: block; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.path a.step-title:hover { color: var(--lava); }
.path span { font-size: 13px; color: var(--muted); display: block; }

/* ---- track cards ---- */
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.track { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; }
.track.featured { border-left-color: var(--lava); grid-column: 1 / -1; }
.track h2 { margin: 0 0 4px; font-size: 19px; color: var(--navy); }
.track .track-blurb { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.track ul { list-style: none; margin: 0; padding: 0; }
.track li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.track li:first-child { border-top: 0; }
.track li .t { min-width: 0; }
.track li .t small { display: block; color: var(--muted); font-size: 12.5px; }
.track.featured ul { columns: 2 300px; column-gap: 28px; }
.track.featured li { break-inside: avoid; }
.track .track-foot { margin-top: 14px; font-size: 13px; font-weight: 600; }
.track .track-foot a::after { content: " \2192"; }

.chip { flex: none; display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.chip.live { background: rgba(207,42,39,0.1); color: var(--lava-dark); }
.chip.outline { background: rgba(26,60,110,0.1); color: var(--navy); }
.chip.soon { background: rgba(85,107,47,0.13); color: var(--olive); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin: -4px 0 16px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }

/* ---- content cards (anatomy, outlines, cookbook, field notes) ---- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.card h2 { margin: 0 0 6px; font-size: 19px; color: var(--navy); }
.card h3 { margin: 16px 0 6px; font-size: 15px; color: var(--navy); }
.card p, .card li { font-size: 15px; }
.card p { margin: 0 0 10px; }
.card ul, .card ol { margin: 0 0 10px; padding-left: 22px; }
.card .num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; margin-right: 8px; vertical-align: 2px; }
.card.stub { border-style: dashed; background: var(--surface); }
.stub-note { font-size: 13px; color: var(--muted); font-style: italic; }
.banner { background: #FFF8D6; border: 1px solid #E8D27A; border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-bottom: 22px; }
.check { background: rgba(85,107,47,0.1); border-left: 3px solid var(--olive); padding: 6px 10px; font-size: 14px; margin: 6px 0 0; border-radius: 0 4px 4px 0; }
.shot { border: 2px dashed var(--border); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--muted); font-size: 13px; background: var(--surface); margin: 8px 0 10px; }

.outline-track h2 .chip { vertical-align: 3px; margin-left: 6px; }
details.recipe { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
details.recipe summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.recipe summary::-webkit-details-marker { display: none; }
details.recipe summary::after { content: "+"; color: var(--lava); font-weight: 700; flex: none; }
details.recipe[open] summary::after { content: "\2212"; }
details.recipe summary small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
details.recipe .body { padding: 0 18px 14px; font-size: 15px; }
details.recipe .body p { margin: 0 0 8px; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive); }

.empty { text-align: center; padding: 34px 22px; background: var(--surface); border: 2px dashed var(--border); border-radius: var(--radius); }
.empty .icon { font-size: 30px; line-height: 1; color: var(--navy); margin-bottom: 10px; }
.empty h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.empty p { margin: 0 auto; max-width: 460px; color: var(--muted); font-size: 14px; }

footer.site { max-width: 960px; margin: 0 auto; border-top: 1px solid var(--border); padding: 22px 24px 30px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer.site a { color: var(--navy); font-weight: 600; }

@media (max-width: 560px) {
  .topbar-inner { padding: 12px 16px; }
  .topbar ul { gap: 14px; }
  main { padding: 24px 16px 56px; }
  .hero { padding: 26px 20px 24px; }
  .hero h1 { font-size: 32px; }
  .page-head h1 { font-size: 25px; }
  .track { padding: 18px 16px; }
  .card { padding: 18px 16px; }
  footer.site { padding: 20px 16px 28px; }
}
