:root {
  --b-accent: #047857;
  --b-accent-hover: #065f46;
  --b-surface: #ffffff;
  --b-canvas: #f4f7f5;
  --b-ink: #111827;
  --b-sub: #4b5563;
  --b-line: #d1d5db;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--b-canvas); color: var(--b-ink); line-height: 1.65; }
.shell { max-width: 860px; margin: 0 auto; padding: 0 18px; }
.topbar { background: #064e3b; color: #fff; padding: 14px 0; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-title { font-weight: 800; font-size: 1.08rem; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.top-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.top-nav a { color: #d1fae5; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.top-nav a:hover, .top-nav a.curr { color: #ffffff; text-decoration: underline; font-weight: 700; }
.content { padding: 28px 0 56px; }
h1 { font-size: 1.65rem; margin: 0 0 12px; color: #064e3b; line-height: 1.3; }
h2 { font-size: 1.25rem; margin: 34px 0 12px; color: #065f46; border-bottom: 2px solid #a7f3d0; padding-bottom: 6px; }
h3 { font-size: 1.04rem; margin: 18px 0 6px; }
.tldr { background: #ecfdf5; border-left: 4px solid var(--b-accent); padding: 14px 16px; border-radius: 6px; margin-bottom: 22px; font-size: 0.95rem; }
.stamp { font-size: 0.8rem; color: var(--b-sub); margin-top: 6px; }
.tool-box { background: var(--b-surface); border: 1px solid var(--b-line); border-radius: 10px; padding: 22px; margin-bottom: 20px; }
.inp-row { margin-bottom: 15px; }
label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 5px; }
.note { font-size: 0.8rem; color: var(--b-sub); margin-top: 3px; }
input[type="number"], input[type="text"], textarea, select { width: 100%; padding: 10px 12px; border: 1px solid #9ca3af; border-radius: 6px; font-size: 0.98rem; background: #fff; font-family: inherit; }
.calc-btn, .link-btn { display: inline-block; width: 100%; padding: 13px; background: var(--b-accent); color: #fff; border: none; border-radius: 6px; font-size: 1rem; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; margin-top: 6px; }
.calc-btn:hover, .link-btn:hover { background: var(--b-accent-hover); }
.res-card { display: none; margin-top: 18px; padding: 16px; border-radius: 8px; background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }
.res-head { font-size: 1.18rem; font-weight: 800; margin: 0 0 8px; }
.sponsor-zone { margin: 64px 0 36px; padding: 12px; background: #e5e7eb; border: 1px dashed #9ca3af; border-radius: 6px; text-align: center; min-height: 280px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.sponsor-lbl { font-size: 0.72rem; color: #4b5563; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.data-grid { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; margin: 12px 0; font-size: 0.91rem; }
th, td { border: 1px solid var(--b-line); padding: 10px 12px; text-align: left; }
th { background: #ecfdf5; color: #064e3b; font-weight: 700; }
.qa-box { background: #fff; border: 1px solid var(--b-line); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.qa-box h3 { margin: 0 0 6px; color: #065f46; }
.qa-box p { margin: 0; font-size: 0.93rem; color: var(--b-sub); }
.cite-note { margin-top: 26px; padding: 13px 16px; background: #f9fafb; border: 1px solid var(--b-line); border-radius: 6px; font-size: 0.85rem; color: var(--b-sub); }
.bottom-bar { background: #fff; border-top: 1px solid var(--b-line); padding: 24px 0; text-align: center; font-size: 0.85rem; color: var(--b-sub); }
.foot-nav { margin-bottom: 8px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.foot-nav a { color: var(--b-sub); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
