main { max-width: 57rem; }
h1 { max-width: 13ch; }
.eyebrow { color: #465e51; font-size: .76rem; font-weight: 700; letter-spacing: .1em; margin-bottom: 1rem; }
.historical-note { border-left: 3px solid #e86643; padding-left: 1rem; margin-top: 1.4rem; }
.comparison-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.comparison-fields label { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; font-weight: 700; }
.field-wide { grid-column: 1 / -1; }
select, input, button { font: inherit; }
select, input { width: 100%; min-width: 0; min-height: 48px; padding: .7rem .8rem; border: 1px solid #879e8b; border-radius: .55rem; background: #fffef8; color: #243e36; font-size: 1rem; }
.field-hint { font-size: .85rem; align-self: center; margin: 0; }
.compare-button { min-height: 48px; padding: .75rem 1.2rem; border: 0; border-radius: .65rem; background: #254f46; color: #fff; cursor: pointer; font-weight: 700; }
.compare-button:hover { background: #173d35; }
.compare-button span { margin-left: 1rem; }
.input-error { color: #903b27; font-weight: 700; }
input[aria-invalid] { border: 2px solid #903b27; }
.comparison-result { border: 1px solid #bccbac; background: #eaf0db; border-radius: 1rem; padding: clamp(1rem, 4vw, 1.75rem); margin-top: 1.5rem; }
.result-context { font-size: .85rem; margin-top: 0; }
.result-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.result-values p { display: flex; flex-direction: column; gap: .35rem; }
.result-values strong { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.3; letter-spacing: -.03em; }
.result-values small { font-size: .8rem; white-space: nowrap; font-weight: 400; letter-spacing: 0; }
.result-formula { font-size: .9rem; overflow-wrap: anywhere; }
.area-result { border-top: 1px solid #bccbac; margin-top: 1.1rem; padding-top: .5rem; }
.area-result h3 { margin-top: .5rem; }
.area-result .credit { margin-bottom: 0; }
.example { background: #fffef8; border: 1px solid #cdd5c5; }
.table-wrap { width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
caption { text-align: left; font-size: .88rem; margin-bottom: .8rem; color: #465e51; }
th, td { padding: .65rem .6rem; border-bottom: 1px solid #d7decd; text-align: right; font-variant-numeric: tabular-nums; }
th:first-child { text-align: left; width: 42%; }
thead th { vertical-align: bottom; background: #eaf0db; border-top: 1px solid #cdd5c5; }
thead small { font-size: .72rem; font-weight: 400; }
tbody th { font-weight: 400; }
tbody tr:nth-child(even) { background: #f0f2e5; }
.sort-button { min-height: 44px; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: inherit; font-weight: 700; font-size: inherit; cursor: pointer; }
.sort-button:hover { text-decoration: underline; }
.sort-arrow { white-space: nowrap; }
.back-to-game { margin-bottom: 2rem; }
[hidden] { display: none !important; }
@media (max-width: 540px) {
  .site-header { padding: .6rem 0; }
  .site-header nav { gap: .75rem; }
  .site-header nav a { font-size: .8rem; }
  .comparison-fields { grid-template-columns: minmax(0, 1fr); }
  .field-wide { grid-column: auto; }
  .result-values { gap: .5rem; }
  .result-values strong { font-size: 1.5rem; }
  th, td { padding: .6rem .3rem; font-size: .82rem; }
  thead small { font-size: .65rem; }
  th:first-child { width: 40%; }
}
