:root {
  --ink: #2c3e50;
  --ink-soft: #5c6778;
  --paper: #f4f6f9;
  --paper-2: #ffffff;
  --green: #bb4941;
  --green-2: #a33d36;
  --brass: #bb4941;
  --brass-2: #e7a8a2;
  --mauve: #5c424b;
  --line: #e6ebf2;
  --danger: #a33d36;
  --ok: #0f7a4a;
  --soft: #fbf4f3;
  --navy: #2c3e50;
  --shadow: 0 10px 28px rgba(44, 62, 80, 0.06);
  --radius: 16px;
  --header: 64px;
  --max: 1080px;
  --read: 68ch;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
}
img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
:focus-visible { outline: 3px solid var(--brass-2); outline-offset: 2px; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: #fff;
  padding: 8px 12px; z-index: 20;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy);
  border-bottom: 0;
}
.header-inner, .footer-inner, .wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header); }
h1, h2, h3, h4 { font-weight: 600; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.footer-brand { margin-bottom: 8px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: #bb4941; color: #fff; font-size: 12px;
  display: grid; place-items: center; font-weight: 700; letter-spacing: -0.03em;
}
.brand small { display: block; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.04em; font-size: 11px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav > a, .nav-drop > button {
  background: none; border: 0; color: rgba(255,255,255,.88); text-decoration: none; font: inherit; font-size: 15px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; font-weight: 500;
  transition: color .18s ease, background .18s ease;
}
.nav-drop > button { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop > button::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .18s ease;
}
.nav-drop.open > button::after, .nav-drop:hover > button::after { transform: rotate(-135deg) translateY(-1px); }
.nav > a:hover, .nav-drop > button:hover, .nav > a[aria-current="page"] { background: transparent; color: #fff; }
.nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--green); color: var(--green); }
.nav-drop { position: relative; }
.nav-drop::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px;
}
.nav-panel {
  display: none; position: absolute; right: 0; top: 100%; z-index: 80; width: min(640px, 86vw);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 14px; grid-template-columns: 1fr 1fr; gap: 8px 18px;
}
.nav-drop:hover .nav-panel, .nav-drop:focus-within .nav-panel, .nav-drop.open .nav-panel { display: grid; }
.nav-panel a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 8px 8px; border-radius: 8px; font-size: 14.5px; }
.nav-panel a svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--green); }
.nav-panel a:hover { background: #f8eeec; color: var(--ink); }
.nav-panel strong { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass); margin: 6px 0; }
.icon-btn, .menu-toggle {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff;
  cursor: pointer; display: inline-grid; place-items: center; padding: 0; flex: 0 0 36px;
}
.icon-btn svg { display: block; }
.menu-toggle { display: none; }
.search-pop {
  display: none; position: absolute; right: 16px; top: calc(var(--header) + 6px); width: min(420px, calc(100% - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; z-index: 40;
}
.search-pop.open { display: block; }
.search-pop input, input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
textarea { min-height: 140px; resize: vertical; }
label { display: block; font-weight: 500; margin: 0 0 6px; }
.field { margin: 0 0 8px; }
.search-pop ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 280px; overflow: auto; }
.search-pop li a { display: block; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search-pop li a:hover { background: #eef3f8; }

.crumbs { width: min(var(--max), calc(100% - 32px)); margin: 14px auto 0; font-size: 14px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.panel, .card, .result, .callout, .article, .legal {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.page { width: min(var(--max), calc(100% - 40px)); margin: 16px auto 48px; display: grid; gap: 16px; }
.page-title { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; font-size: 1.75rem; font-weight: 650; letter-spacing: -0.02em; }
.hero {
  padding: 12px 20px 10px; display: block; color: #fff; border: 0; text-align: center;
  background: linear-gradient(100deg, #bb4941 0%, #8d4548 46%, #5c424b 78%, #2c3e50 100%);
  border-radius: 14px; box-shadow: none;
}
.hero h1, .page h1 { font-family: "Segoe UI", system-ui, sans-serif; font-size: 1.85rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 650; }
.hero h1 { color: #fff; font-size: 1.7rem; margin-bottom: 4px; }
.hero .lede { color: rgba(255,255,255,.94); max-width: 70ch; margin: 0 auto; font-size: 0.98rem; line-height: 1.4; }
.hero .lede a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero .lede a:hover { color: #fff; }
.hero .stat { background: rgba(255,255,255,.16); color: #fff; }
.hero .stat b { color: #fff; }
.hero .btn-primary { background: #fff; color: var(--green-2); box-shadow: none; }
.hero .btn-primary:hover { background: #fff7f5; color: var(--green-2); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.hero .btn { margin: 0; }
.hero .actions { margin: 12px 0 0; }
.hero .stat-row { margin-top: 14px; }
.lede { font-size: 1rem; color: var(--ink-soft); margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 12px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  margin: 2px 0 12px;
}
.btn-primary { background: linear-gradient(90deg, #bb4941, #2c3e50); color: #fff; box-shadow: none; border-radius: 10px; min-height: 44px; padding: 10px 18px; }
.btn-primary:hover { background: linear-gradient(90deg, #c85a52, #24384a); color: #fff; transform: none; }
.actions .btn { margin: 0; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.stat b { display: block; font-family: Georgia, serif; font-size: 1.15rem; }

.tool-layout {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); gap: 0; align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.tool-layout .panel, .tool-layout .result { border: 0; box-shadow: none; border-radius: 0; }
.tool-layout .result { background: var(--soft); }
.hp-live {
  justify-self: center; width: min(720px, 100%); background: transparent; text-align: center;
  padding: 4px 8px 0; border: 0; border-radius: 0; box-shadow: none;
}
.feature-block h2 { text-align: center; margin: 4px 0 14px; font-size: 1.35rem; color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  display: flex; gap: 14px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow);
}
.step-n {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #bb4941; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}
.steps h3 { margin: 2px 0 2px; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.icon-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.icon-row {
  display: flex; gap: 14px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow);
}
.mini-ico { width: 28px; height: 28px; flex: 0 0 28px; color: #bb4941; }
.mini-ico svg { width: 28px; height: 28px; display: block; }
.icon-row h2 { font-size: 1rem; margin: 0 0 4px; }
.icon-row p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }
.hp-live h1.hp-title {
  margin: 2px 0 14px; text-align: center; font-family: "Segoe UI", Candara, Calibri, sans-serif;
  font-size: 1.75rem; font-weight: 600; letter-spacing: 0; line-height: 1.2; color: var(--ink);
}
.hp-live form { padding: 0; }
.hp-line {
  font-family: "Segoe UI", Candara, Calibri, sans-serif;
  font-size: 1.125rem; line-height: 1.55; color: var(--ink); font-weight: 400; margin: 3px 0;
}
.hp-opt { margin: 9px 0; }
.hp-live input, .hp-live select {
  width: auto; font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 0 2px 1px;
  text-align: center; transition: border-color .18s ease;
}
.hp-live input[type="number"] { width: 4.4rem; text-align: center; }
.hp-live select {
  padding-right: 14px; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 7px) 58%, calc(100% - 3px) 58%;
  background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
}
.hp-live input:focus, .hp-live select:focus { border-bottom-color: var(--green); }
.hp-tick { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.hp-tick input { width: 15px; height: 15px; accent-color: var(--green); }
#hpError:empty { display: none; }
#rollAgain {
  display: inline-block; margin-top: 6px; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--green-2);
  text-decoration: underline; text-underline-offset: 3px;
}
#rollAgain:hover { color: var(--green); }
#rollAgain[hidden] { display: none; }
.hp-result {
  margin: 22px 0 0; background: var(--soft); color: var(--green-2);
  border-top: 3px solid var(--green); border-bottom: 3px solid var(--green);
  border-radius: 0; padding: 12px 28px 14px;
}
.hp-mode { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.hp-mode label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; cursor: pointer; color: var(--green-2); }
.hp-mode input { width: auto; accent-color: var(--green); }
.hp-total { margin: 8px 0 2px; font-family: "Segoe UI", Candara, sans-serif; font-size: 2rem; font-weight: 700; line-height: 1; color: var(--green-2); }
.hp-total.bump { animation: hpBump .32s ease; }
.hp-break { list-style: none; margin: 0; padding: 0; font-family: "Segoe UI", Candara, sans-serif; font-size: 1rem; line-height: 1.4; font-weight: 400; color: var(--green-2); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@keyframes hpCard { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hpBump { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pb { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pb h1.pb-title {
  margin: 0; padding: 16px 12px; text-align: center; background: var(--green); color: #fff;
  font-family: "Segoe UI", Candara, sans-serif; font-size: 1.7rem; font-weight: 600; letter-spacing: 0;
}
.pb-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: var(--soft); }
.pb-tabs button, .pb-foot button, #pbFullReset {
  border: 1px solid transparent; background: transparent; color: var(--green-2); font: inherit; font-weight: 600;
  border-radius: 8px; padding: 6px 10px; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.pb-tabs button.on { background: #fff; color: var(--ink); }
.pb-tabs button:hover, .pb-foot button:hover, #pbFullReset:hover { background: #fff; }
.pb-save { margin-left: auto; }
.pb section { padding: 12px 14px 16px; }
.pb h2 { font-family: Georgia, serif; font-size: 1.2rem; margin: 0 0 10px; }
.pb-race { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.pb-race label { margin: 0; }
.pb select { width: auto; min-width: 200px; }
.pb-table-wrap { overflow-x: auto; }
.pb table input { width: 4.4rem; padding: 4px 2px; text-align: center; }
.pb-op { margin: 0 6px; color: var(--ink-soft); }
.pb td, .pb th { white-space: nowrap; }
.pb-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.pb-foot p { margin: 0 0 0 auto; font-size: 1.05rem; }
.pb-over { color: var(--danger); }
.pb-traits { margin-top: 12px; background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.pb-traits h2, .pb-traits h3 { margin: 0 0 6px; }
.pb-limits, .pb-costs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0 14px; }
.pb-limits label, .pb-costs label { font-weight: 500; }
.pb-limits input, .pb-costs input { width: 100%; margin-top: 4px; }
.pb-msg:empty, #pbError:empty { display: none; }
.pb-msg { margin: 0; padding: 0 14px 12px; color: var(--green-2); }
.panel { padding: 28px 28px 26px; }
.panel h2, .card h2 { font-family: "Segoe UI", system-ui, sans-serif; font-size: 1.2rem; font-weight: 650; margin: 0 0 14px; letter-spacing: -0.01em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0; padding: 10px 12px 4px; min-width: 0; }
legend { font-weight: 500; padding: 0 4px; }
.ore-row, .hp-row { grid-template-columns: 1.2fr 0.8fr auto; align-items: center; }
.ore-row .btn, .hp-row .btn { margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; }
.result { margin-top: 4px; padding: 14px 16px; background: var(--soft); color: var(--ink); border: 1px solid #f0ddd9; }
.result h2, .result p, .result li { color: var(--ink); }
.result h2 { font-size: 1.25rem; margin: 0 0 4px; }
.result strong { color: var(--green); }
.muted { color: var(--ink-soft); }
.error { color: var(--danger); font-weight: 700; }
.ok { color: var(--ok); font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 22px 22px 20px; text-decoration: none; color: inherit; display: block; min-height: 148px; }
.card { transition: border-color .18s ease, box-shadow .18s ease; }
.card:hover { border-color: #e4c5c1; box-shadow: 0 14px 32px rgba(44, 62, 80, 0.08); }
.card span { display: inline-block; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: 6px; }
.card p { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.55; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.callout { padding: 12px 14px; background: #f4f7fb; }
.prose { font-size: 1.05rem; }
.prose p, .article p { color: #3e4a5c; line-height: 1.8; margin: 0 0 18px; }
.prose p:last-child, .article p:last-child { margin-bottom: 0; }
.prose h2, .prose h3, .article h2, .article h3 { font-family: "Segoe UI", system-ui, sans-serif; line-height: 1.35; font-weight: 650; color: var(--ink); }
.prose h2, .article h2 { margin: 0 0 14px; }
.prose h3, .article h3 { margin: 22px 0 8px; font-size: 1.08rem; }
.prose ul, .prose ol, .article ul, .article ol { margin: 0 0 18px; padding-left: 1.25rem; line-height: 1.75; }
.prose li + li, .article li + li { margin-top: 8px; }
.article {
  width: min(var(--max), calc(100% - 40px)); margin: 20px auto 36px; padding: 28px 28px 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) 230px; column-gap: 28px; align-items: start;
}
.article > * { grid-column: 1; }
.article > .toc { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: calc(var(--header) + 12px); margin: 0; align-self: start; }
.article-kicker { color: var(--brass); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.byline { color: var(--ink-soft); font-size: 0.95rem; }
.toc { background: #f4f7fb; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.toc ol { margin: 8px 0 0; padding-left: 18px; }
.related { display: grid; gap: 8px; }
.scroll-dock {
  position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 25;
}
.scroll-dock { z-index: 40; }
.scroll-dock button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--green); color: #fff; cursor: pointer; font-weight: 600; font-size: 10px;
  box-shadow: 0 8px 16px rgba(187, 73, 65, 0.28);
}
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); margin-top: 8px; padding: 36px 0 18px; border-top: 0; }
.site-footer .brand, .site-footer .brand span { color: #fff; }
.site-footer p { color: rgba(255,255,255,.78); }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; transition: color .18s ease; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.site-footer h2 { font-family: "Segoe UI", system-ui, sans-serif; font-size: 0.95rem; font-weight: 650; margin: 0 0 12px; color: #fff; letter-spacing: -0.01em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.legal-line { border-top: 1px solid rgba(255,255,255,.16); margin-top: 22px; padding-top: 16px; color: rgba(255,255,255,.65); font-size: 13px; text-align: center; }
.faq-block { width: min(var(--max), calc(100% - 32px)); margin: 0 auto 24px; }
.faq-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.faq-mark {
  width: 22px; height: 22px; border-radius: 50%; background: var(--soft); color: var(--green-2);
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 600;
}
.faq { border-top: 0; border-bottom: 1px solid var(--line); border-radius: 10px; }
.faq h3 { margin: 0; font-size: 1rem; font-family: "Segoe UI", system-ui, sans-serif; }
.faq button {
  width: 100%; text-align: left; background: none; border: 0; font: inherit; font-weight: 500; color: var(--ink);
  padding: 14px 12px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 10px; transition: background .18s ease, color .18s ease;
}
.faq button::after {
  content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px;
}
.faq button[aria-expanded="true"] { color: var(--ink); background: #eef4ff; }
.faq.open .faq-a { background: #eef4ff; border-radius: 0 0 10px 10px; }
.faq.open .faq-a p { padding: 0 12px 14px; }
.faq button[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; color: var(--ink); }
.faq-a p { overflow: hidden; margin: 0; }
.faq.open .faq-a { grid-template-rows: 1fr; }
.mix span { display: block; height: 100%; background: linear-gradient(90deg, #bb4941, #2c3e50); }
#mailNote:empty { display: none; }
.mix { height: 8px; border-radius: 99px; background: #e8eef3; overflow: hidden; margin: 4px 0 10px; }
.icon-bubble {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: #f8eeec; color: #bb4941;
  display: grid; place-items: center;
}
.icon-bubble svg { width: 22px; height: 22px; stroke: currentColor; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.info-cards .card { text-align: center; min-height: 0; padding: 28px 24px 26px; }
.info-cards h2 { font-size: 1.05rem; margin: 0 0 8px; color: var(--ink); }
.info-cards p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }

.ability { background: #f4f7fb; border-radius: 8px; padding: 10px; text-align: center; }
.ability b { font-family: Georgia, serif; font-size: 1.8rem; display: block; }
.pip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pip, .die {
  min-width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.pip.on { background: var(--green); color: #fff; border-color: var(--green); }
.die { background: #2c3e50; color: #fff; }
.monster-list { display: grid; gap: 8px; }
.monster { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.sheet { display: block; }
.sheet-mod { font-weight: 500; color: var(--green-2); }
.sheet-derived { margin: 0 0 12px; }
@media print {
  .site-header, .site-footer, .scroll-dock, .crumbs, .menu-toggle { display: none !important; }
  body { background: #fff; }
  .panel, .card, .article { box-shadow: none; }
}

@media (max-width: 900px) {
  .page, .article, .crumbs, .faq-block { width: min(var(--max), calc(100% - 68px)); margin-left: 12px; margin-right: 56px; }
  .hero, .tool-layout, .cards, .footer-grid, .sheet, .grid-3 { grid-template-columns: 1fr; }
  .article { display: block; }
  .article > .toc { position: static; margin: 12px 0; }
  .stat-row, .grid-2 { grid-template-columns: 1fr 1fr; }
  .ore-row, .hp-row { grid-template-columns: 1.2fr 0.8fr auto; }
  .menu-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header); background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px;
  }
  .nav > a, .nav-drop > button { color: var(--ink); }
  .nav > a[aria-current="page"] { color: var(--green); box-shadow: none; }
  .info-cards, .cards, .icon-rows { grid-template-columns: 1fr; }
  .nav.open { display: flex; }
  .nav-panel { position: static; width: auto; display: none; box-shadow: none; }
  .nav-drop.open .nav-panel { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-row, .grid-2 { grid-template-columns: 1fr; }
  .ore-row, .hp-row { grid-template-columns: 1fr auto; }
  .pb-limits, .pb-costs { grid-template-columns: 1fr 1fr; }
  .pb-save { margin-left: 0; }
  .header-inner { width: min(var(--max), calc(100% - 20px)); }
  .hero, .panel, .article { padding: 16px; }
}
