:root { color-scheme: light; font-family: system-ui, sans-serif; color: #193a31; background: #f8f8f1; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
header, main { width: min(67rem, calc(100% - 2.5rem)); margin: 0 auto; }
header { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; padding: 1.1rem 0; gap: 1rem; border-bottom: 1px solid #a6b5a6; }
header nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
a { color: #215949; text-underline-offset: .2em; }
a:focus-visible, :is(button, select, input, summary, .results-scroll):focus-visible { outline: 3px solid #32755c; outline-offset: 3px; }
.wordmark { font: bold 1.8rem Georgia,serif; letter-spacing: .08em; text-decoration: none; }
main { padding-bottom: 4rem; }
.intro { max-width: 49rem; margin: clamp(1.8rem,5vw,4rem) 0 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: #496748; }
h1, h2, legend { font: normal 2rem/1.12 Georgia,serif; }
h1 { font-size: clamp(2.55rem,6vw,4.7rem); letter-spacing: -.045em; margin: .3em 0; }
.intro > p:last-child { max-width: 43rem; font-size: 1.15rem; }
form { padding: clamp(1rem,3vw,2rem); background: #e8eee2; border-top: 3px solid #607e63; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; } legend { padding: 0 0 1rem; font-size: 1.5rem; }
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,11rem),1fr)); gap: 1rem; }
label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
select,input,button { font: inherit; min-height: 44px; }
select,input { color: #233f30; background: #fffefa; width: 100%; min-width: 0; padding: .45rem; border: 1px solid #879d87; border-radius: 4px; }
button { padding: .55rem 1.1rem; background: #244e3d; color: white; border: 1px solid #244e3d; border-radius: 4px; cursor:pointer; } button:disabled { opacity:.6; cursor:default; }
.actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 1.2rem; }
#cancel { background: transparent; color: #254732; }
#status:empty { display: none; }
#status { padding: .6rem 0; font-weight: 600; }
#results { margin: 2rem 0; }
h2 { margin: .6rem 0; } .results-scroll { overflow: auto; }
table { border-collapse: collapse; min-width: min(44rem, 140vw); width: 100%; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: .4rem 0; }
th,td { text-align: left; padding: .7rem; border-bottom: 1px solid #b5c4b5; } thead { background:#e6ebdd; }
td .score { display:block; width: 100%; max-width: 8rem; height: .35rem; accent-color:#367b56; }
td:nth-child(3) .score { accent-color:#685397; }
details { border-top: 1px solid #a4b4a5; margin-top: 2rem; padding-top: .8rem; max-width: 50rem; }
summary { cursor: pointer; padding: .45rem 0; font-weight: 700; }
[hidden] { display:none !important; }
@media (max-width: 420px) { header,main { width: calc(100% - 1.45rem); } header nav { font-size: .86rem; gap: .8rem; } }
.table-help { display: none; }
@media (max-width: 46.5rem) {
  .table-help { display: block; margin: .6rem 0; font-size: .88rem; color: #405f4d; }
}
