/* ═══════════════════════════════════════════════════════════════════════════
   BYD Forums — owner guide pages (/guides/*)
   Base look comes from /assets/site-theme.css (shared with /docs/ and /shop/);
   this file only adds the page skeleton and article typography.
   ═══════════════════════════════════════════════════════════════════════════ */
:root { --yellow: #1ED48B; --black: #0a0a08; --text: #2d2d2b; --border: #e8e8e6; --bg: #f7f7f5; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text); line-height: 1.6; }
a { color: inherit; }

/* Header (same markup as /docs/ and /shop/) */
#byd-site-header { position: sticky; top: 0; z-index: 200; width: 100%; }
.jsh-inner { margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.jsh-logo { text-decoration: none; flex-shrink: 0; }
.jsh-logo img { display: block; }
#byd-site-header nav { display: flex; align-items: center; }
#byd-site-header nav a { color: var(--text); text-decoration: none; }
@media (max-width: 767px) {
  #byd-site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 300; }
  body { padding-top: 56px; }
}

.breadcrumb { margin: 0 auto; font-size: 12px; color: rgba(0,0,0,.5); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Hero */
.hero { background: var(--black); text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('/assets/images/byd-hero.webp') center 52%/cover no-repeat; }
.hero .inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero h1 { color: #fff; font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.hero .meta { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.55); }

/* Layout: article + sticky contents */
.guide-wrap { max-width: 1200px; margin: 0 auto; padding: 36px 20px 60px; display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 32px; align-items: start; }
.toc { position: sticky; top: 96px; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 20px; padding: 18px 18px 14px; box-shadow: var(--jr-shadow); }
.toc h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .9px; color: rgba(0,0,0,.45); margin-bottom: 10px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; font-size: 13.5px; text-decoration: none; transition: background .2s; }
.toc a::before { content: counter(toc) '. '; color: rgba(0,0,0,.35); }
.toc a:hover { background: rgba(30,212,139,.2); }

article { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 24px; padding: 34px 40px 38px; box-shadow: var(--jr-shadow); min-width: 0; }
article > section { scroll-margin-top: 96px; }
article > section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(0,0,0,.06); }
article h2 { font-size: 23px; font-weight: 800; color: var(--black); letter-spacing: -.3px; margin-bottom: 12px; line-height: 1.3; }
article h3 { font-size: 17px; font-weight: 700; color: var(--black); margin: 22px 0 8px; }
article p { margin-bottom: 12px; font-size: 15.5px; }
article ul, article ol { margin: 0 0 14px 22px; }
article li { margin-bottom: 6px; font-size: 15.5px; }
article a { color: #7a5b00; font-weight: 600; }
article a:hover { color: var(--black); }
article strong { color: var(--black); }

.lead { font-size: 17px !important; color: rgba(0,0,0,.75); }
.answer { background: linear-gradient(135deg, #E4F8EE, #F3FCF8); border: 1px solid rgba(30,212,139,.55); border-radius: 18px; padding: 18px 22px; margin: 0 0 22px; }
.answer p:last-child { margin-bottom: 0; }
.note { background: #f5f7fa; border-left: 4px solid #3498db; border-radius: 0 14px 14px 0; padding: 14px 18px; margin: 16px 0; font-size: 14.5px; }
.note.warn { background: #fff5f3; border-left-color: #e74c3c; }
.note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 14px 0 18px; border: 1px solid rgba(0,0,0,.07); border-radius: 16px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 540px; }
th { background: var(--black); color: #fff; text-align: left; font-weight: 700; font-size: 13px; padding: 11px 14px; white-space: nowrap; }
td { padding: 11px 14px; border-top: 1px solid rgba(0,0,0,.06); vertical-align: top; }
tbody tr:nth-child(even) td { background: #fafaf8; }
tbody tr { transition: background .2s; }
tbody tr:hover td { background: #E4F8EE; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; color: var(--black); }
caption { caption-side: bottom; text-align: left; font-size: 12px; color: rgba(0,0,0,.5); padding: 10px 14px; }

/* Warning-light groups */
.lights { display: grid; gap: 10px; margin: 12px 0 8px; }
.light { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(0,0,0,.06); background: #fff; transition: transform .25s var(--jr-ease), box-shadow .25s; }
.light:hover { transform: translateX(3px); box-shadow: var(--jr-shadow); }
.light b { color: var(--black); font-size: 14.5px; }
.light span { font-size: 14.5px; }
.lvl { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 5px 12px; border-radius: 999px; margin-bottom: 4px; }
.lvl::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lvl-stop { background: #fde8e6; color: #b42318; }
.lvl-now { background: #fff0e0; color: #b54708; }
.lvl-slow { background: #fff6d6; color: #8a6100; }
.lvl-soon { background: #eef4ff; color: #1d4ed8; }
.lvl-do { background: #ecfdf3; color: #067647; }
.lvl-info { background: #f2f2f0; color: #55554f; }

.faq details { border: 1px solid rgba(0,0,0,.07); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; background: #fff; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--jr-shadow); }
.faq summary { font-weight: 700; cursor: pointer; color: var(--black); font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: rgba(0,0,0,.4); transition: transform .25s var(--jr-ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; }

.sources { font-size: 13px; color: rgba(0,0,0,.6); }
.sources li { font-size: 13px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--black); color: #fff; border-radius: 20px; padding: 22px 26px; margin-top: 30px; }
.cta p { margin: 0; color: rgba(255,255,255,.8); font-size: 15px; }
.cta strong { color: #fff; display: block; font-size: 17px; margin-bottom: 2px; }
.cta a { background: var(--yellow); color: var(--black); text-decoration: none; font-weight: 800; padding: 11px 22px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 18px rgba(30,212,139,.4); transition: transform .2s var(--jr-ease); }
.cta a:hover { transform: translateY(-2px); color: var(--black); }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.related a { display: block; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 16px; padding: 14px 16px; text-decoration: none; font-weight: 700; color: var(--black); box-shadow: var(--jr-shadow); transition: transform .3s var(--jr-ease), box-shadow .3s; }
.related a span { display: block; font-weight: 400; font-size: 12.5px; color: rgba(0,0,0,.5); margin-top: 2px; }
.related a:hover { transform: translateY(-3px); box-shadow: var(--jr-shadow-lg); }

/* Guides hub cards */
.hub { max-width: 1100px; margin: 0 auto; padding: 36px 20px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.hub a { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 22px; padding: 24px; text-decoration: none; box-shadow: var(--jr-shadow); transition: transform .35s var(--jr-ease), box-shadow .35s; }
.hub a:hover { transform: translateY(-5px); box-shadow: var(--jr-shadow-lg); }
.hub .ico { width: 54px; height: 54px; border-radius: 16px; background: rgba(30,212,139,.18); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.hub b { font-size: 18px; color: var(--black); }
.hub span { font-size: 14px; color: rgba(0,0,0,.6); }

footer { background: var(--black); color: rgba(255,255,255,.55); text-align: center; padding: 22px 18px; font-size: 13px; }

@media (max-width: 991px) {
  .guide-wrap { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
}
@media (max-width: 600px) {
  article { padding: 24px 18px 28px; border-radius: 20px; }
  article h2 { font-size: 20px; }
  .light { grid-template-columns: 1fr; gap: 4px; }
  .guide-wrap { padding: 20px 12px 48px; }
}
@media (prefers-reduced-motion: no-preference) {
  article, .toc, .hub a { animation: jr-fade-up .6s var(--jr-ease) both; }
  .toc { animation-delay: .1s; }
}
@media (max-width: 600px) {
  td:first-child { min-width: 130px; }
}
