/* Pallet guide pages — same brand as the app and landing page */
:root {
  --bg: #f4f6fa; --surface: #ffffff; --text: #1c1f2e; --muted: #5b6075; --faint: #8a90a6;
  --line: #e2e6ef; --primary: #31358a; --primary-soft: #e8e9f5; --accent: #2e86de;
  --kraft: #c49a6c; --kraft-dark: #9a7346; --kraft-edge: #6e4c22; --wood: #b08a4a; --wood-dark: #80602a;
  --roll: #3b6fb5; --core: #d6e2f3;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11131b; --surface: #1a1d28; --text: #e8eaf2; --muted: #a3a8bb; --faint: #7b8098;
    --line: #2a2e3d; --primary: #9fa4ff; --primary-soft: #262a4a; --accent: #6ab0f3; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 'General Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--primary); }
.g-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.g-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.g-head .g-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.g-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.g-brand img { height: 34px; width: auto; }
.g-nav { font-weight: 600; text-decoration: none; font-size: 15px; }
main.g-wrap { padding-top: 24px; padding-bottom: 48px; }
.g-crumb { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.g-crumb a { text-decoration: none; }
h1 { font-size: clamp(26px, 4.5vw, 36px); line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 19px; margin: 0 0 12px; }
.g-lead { color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.g-answer { background: var(--primary); color: #fff; border-radius: 14px; padding: 22px 22px 20px; margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .g-answer { background: #2b2f78; } }
.g-big { font-size: clamp(19px, 3vw, 23px); line-height: 1.4; margin: 0 0 6px; }
.g-big strong { font-weight: 700; }
.g-sub { margin: 0 0 16px; color: rgba(255,255,255,0.8); font-size: 15px; }
.g-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.g-cta span { font-size: 14px; color: rgba(255,255,255,0.8); }
.g-btn { display: inline-block; background: #fff; color: #31358a; font-weight: 700; text-decoration: none; padding: 11px 18px; border-radius: 9px; }
.g-btn:hover { background: #eef0ff; }
.g-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.g-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.g-tiers figure { margin: 0; }
.g-tiers svg { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; }
.g-tiers figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; text-align: center; }
.g-pallet { fill: var(--wood); stroke: var(--wood-dark); stroke-width: 1; }
.g-board { stroke: var(--wood-dark); stroke-width: 0.6; opacity: 0.7; }
.g-box { fill: var(--kraft); stroke: var(--kraft-edge); stroke-width: 1.2; }
.g-box.g-rot { fill: var(--kraft-dark); }
.g-roll { fill: var(--roll); stroke: #fff; stroke-width: 1; }
.g-core { fill: var(--core); }
.g-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.g-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
tbody th { font-weight: 600; }
.g-dim { color: var(--faint); font-size: 13px; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details:first-of-type { border-top: 0; padding-top: 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 6px 0 0; color: var(--muted); }
.g-related { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-related a { display: inline-block; padding: 7px 12px; background: var(--primary-soft); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; }
.g-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 20px 0 32px; }
.g-foot p { margin: 0 0 8px; }
@media (max-width: 560px) {
  th, td { white-space: normal; padding: 8px 6px; font-size: 14px; }
  thead th { font-size: 11px; }
  .g-card { padding: 16px; }
}
