/* MRE pages (/mre/...), built by scripts/build-mre-pages.mjs. Same look as Chow Log, no JavaScript. */
:root {
  --bg: #10130e; --panel: #181d15; --panel-2: #222a1d; --line: #34402b; --text: #eceee4; --muted: #a2a891;
  --xp: #d2b06e; --gold: #e7c66b; --protein: #e0784f; --carbs: #6fa8c8; --fat: #b39ad6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--xp); }
.top, .crumbs, main, .foot { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.top-cta { background: var(--xp); color: #1a1405; font-weight: 800; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0; margin: 6px 0 4px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(24px, 6vw, 34px); line-height: 1.15; margin: 10px 0 14px; overflow-wrap: anywhere; }
h2 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.lead { font-size: 17px; margin: 0 0 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 14px; }
.hero { display: flex; flex-wrap: wrap; gap: 12px; }
.big { flex: 1 1 140px; display: grid; background: var(--panel-2); border-radius: 6px; padding: 12px 14px; }
.big strong { font-size: 40px; line-height: 1.1; color: var(--gold); }
.big.alt strong { color: var(--xp); }
.big span { color: var(--muted); font-size: 14px; }
.split { margin: 0 0 16px; }
.split svg { display: block; width: 100%; height: 12px; border-radius: 6px; overflow: hidden; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .p::before { background: var(--protein); } .legend .c::before { background: var(--carbs); } .legend .f::before { background: var(--fat); }
.legend .a::before { background: var(--gold); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; white-space: normal; }
thead th { color: var(--muted); font-weight: 700; }
tbody th small { display: block; color: var(--muted); font-weight: 400; }
.dv, .burn { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dv { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.dv li, .burn li { background: var(--panel-2); border-radius: 6px; padding: 10px 12px; }
.dv b { color: var(--gold); font-size: 18px; }
.note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.cta {
  display: flex; gap: 10px; align-items: center; margin: 4px 0 16px; padding: 16px; border-radius: 8px; font-weight: 800;
  background: linear-gradient(180deg, #e2c487, var(--xp)); color: #1a1405; text-decoration: none; box-shadow: 0 4px 0 #8a7040;
}
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.links.cols { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.links li { overflow-wrap: anywhere; }
.links small { color: var(--muted); white-space: nowrap; }
.foot { color: var(--muted); font-size: 13px; padding-top: 6px; padding-bottom: 30px; }
.foot p { margin: 0 0 6px; }
.total th, .total td { font-weight: 800; color: var(--text); border-bottom: 0; }
.yrs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); list-style: none; padding: 0; margin: 0; }
.yrs li { background: var(--panel-2); border-radius: 6px; padding: 10px 12px; }
.yrs b { display: block; font-size: 18px; }
th, td { padding: 8px 4px; }
