/* Le Chonk Guide — shared stylesheet. Light theme, warm orange accent (Mistral-like). */
:root {
  --bg: #fffdf9;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e0d5;
  --accent: #e8590c;
  --accent-dark: #c2410c;
  --accent-soft: #fff1e6;
  --navy: #292524;
  --radius: 12px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, canvas { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav-inner { display: flex; align-items: center; gap: 18px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.brand .dot { color: var(--accent); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--navy); font-size: 0.95rem; }
.site-nav a:hover, .site-nav a.active { background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: 2.4rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.hero h1 .accent { color: var(--accent); }
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; border: 1px solid transparent; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- status board / countdown ---------- */
.status-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 28px 0; }
.status-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.status-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.status-card .big { font-size: 1.35rem; font-weight: 800; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.pill.live { background: #dcfce7; color: #166534; }
.pill.soon { background: var(--accent-soft); color: var(--accent-dark); }
.countdown { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.countdown .unit { background: var(--navy); color: #fff; border-radius: 10px; padding: 8px 12px; text-align: center; min-width: 66px; }
.countdown .unit .n { font-size: 1.4rem; font-weight: 800; display: block; }
.countdown .unit .l { font-size: 0.72rem; opacity: 0.75; text-transform: uppercase; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 0.96rem; flex: 1; }
.card a.more { font-weight: 700; }

/* ---------- spec strip ---------- */
.spec-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.spec .v { font-size: 1.5rem; font-weight: 800; color: var(--accent-dark); }
.spec .k { font-size: 0.82rem; color: var(--muted); }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.98rem; background: var(--surface); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--accent-soft); font-weight: 700; }
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- sections / prose ---------- */
main section, .prose-block { margin: 36px 0; }
h2 { font-size: 1.7rem; margin: 0 0 12px; letter-spacing: -0.01em; }
h2.section-title { border-left: 5px solid var(--accent); padding-left: 12px; }
h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.callout { background: var(--accent-soft); border: 1px solid #fed7aa; border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; }
.callout.note { background: #f5f3ff; border-color: #ddd6fe; }
.callout.warn { background: #fefce8; border-color: #fde68a; }
.small { font-size: 0.88rem; color: var(--muted); }

/* ---------- code ---------- */
pre { background: var(--navy); color: #f5f5f4; border-radius: var(--radius); padding: 18px; overflow-x: auto; font-size: 0.9rem; position: relative; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
p code, li code, td code { background: #f5f0e8; padding: 2px 6px; border-radius: 6px; font-size: 0.88em; }
.code-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 -8px; }
.code-head span { font-weight: 700; font-size: 0.95rem; }
.copy-btn { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; font-size: 0.85rem; cursor: pointer; font-weight: 600; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- forms ---------- */
.notify-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.notify-form input[type="email"] { flex: 1; min-width: 220px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; }
.form-note { font-size: 0.92rem; color: var(--muted); margin-top: 8px; }

/* ---------- calculator ---------- */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 20px 0; max-width: 560px; }
.calc label { display: block; font-weight: 600; margin: 12px 0 4px; }
.calc input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.calc-result { margin-top: 16px; font-size: 1.3rem; font-weight: 800; color: var(--accent-dark); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 20px 0; padding: 0; border-left: 3px solid var(--accent); }
.timeline li { padding: 0 0 22px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.timeline .date { font-weight: 800; color: var(--accent-dark); }

/* ---------- faq ---------- */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; padding: 4px 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-size: 1.05rem; }
.faq-item summary:hover { color: var(--accent-dark); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 18px; }
.site-footer h4 { margin: 0 0 8px; font-size: 0.95rem; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }

/* ---------- compatibility classes used across pages ---------- */
.muted { color: var(--muted); }
.chart-caption { font-size: 0.88rem; color: var(--muted); margin: 10px 0 0; }
.table-note { font-size: 0.88rem; color: var(--muted); margin: 8px 0 0; }
.cta-row, .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-secondary { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; border: 1px solid var(--line); cursor: pointer; font-size: 1rem; background: var(--surface); color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.pill-green { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: #dcfce7; color: #166534; }
.pill-orange { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-dark); }
.pill-blue { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: #e0f2fe; color: #075985; }
.spec-value { font-size: 1.5rem; font-weight: 800; color: var(--accent-dark); }
.spec-label { font-size: 0.82rem; color: var(--muted); }
.status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-dark); }
.footer-inner, .footer-columns, .footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 18px; }
.footer-col h4 { margin: 0 0 8px; font-size: 0.95rem; color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 4px 0; }
.footer-note, .footer-disclaimer { font-size: 0.9rem; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--navy); font-size: 0.95rem; }
.main-nav a:hover, .main-nav a.active { background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; }
@media (max-width: 760px) {
  .main-nav ul { flex-direction: column; }
}

.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.chart-box canvas { max-height: 420px; }

@media (max-width: 760px) {
  .hero h1 { font-size: 1.8rem; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .nav-inner { flex-wrap: wrap; }
  body { font-size: 16px; }
}
