/* Shared, responsive styling for static BenchTare pages. */
:root { color-scheme: light; font-family: system-ui, sans-serif; color: #16362f; background: #f4efe5; line-height: 1.65; }
* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { width: min(100% - 2rem, 58rem); margin-inline: auto; }
header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; padding-block: 1.5rem; }
main { padding: clamp(1rem, 4vw, 3rem); background: #fffdf8; border: 1px solid #d7cebd; border-radius: 1rem; }
footer { padding-block: 1.5rem; }
a { color: #195a43; text-underline-offset: .2em; }
a:hover { color: #102b24; }
.brand { font-size: 1.55rem; font-weight: 800; text-decoration: none; }
.brand span { display: block; font-size: .65rem; letter-spacing: .15em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.15; }
h2 { font-size: 1.35rem; line-height: 1.3; margin-top: 2rem; }
h3 { font-size: 1.1rem; }
p, li { max-width: 70ch; }
.eyebrow { font-weight: 650; }
.button, button { display: inline-block; border: 1px solid #16362f; border-radius: .4rem; background: #16362f; color: white; padding: .7rem 1rem; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.secondary { background: transparent; color: #16362f; }
.button:hover { color: white; background: #285647; }
:focus-visible { outline: 3px solid #a57b26; outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: .3rem; background: white; padding: .4rem; }
.note, .result, .next { border-left: 3px solid #a57b26; background: #f4f5ed; padding: 1rem; margin-block: 1.25rem; }
.next h2, .result h2 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
input, select { font: inherit; min-width: 0; width: 100%; padding: .65rem; border: 1px solid #7c8e82; border-radius: .3rem; background: white; color: #16362f; }
fieldset { border: 1px solid #c4cec6; margin: 1rem 0; padding: 1rem; min-width: 0; }
legend { font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.error { color: #9b251c; font-weight: 600; }
[hidden] { display: none !important; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem; border-bottom: 1px solid #d7ded7; text-align: left; vertical-align: top; }
caption { text-align: left; font-weight: 650; margin-bottom: .5rem; }
.guide-links { padding-left: 1.2rem; }
.guide-links li { margin-block: .6rem; }
.formula { font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } th, td { padding: .4rem; } }
