.weigh-in {
  --ink: #222c22;
  --green: #244d3b;
  --paper: #fffaf0;
  --border: #c7bfae;
  --accent: var(--green);
  color: var(--ink);
  background: #eee8d9;
}
.weigh-in header, .weigh-in main { max-width: 970px; width: 100%; }
.weigh-in header { padding-block: 13px; font-size: .9rem; }
.weigh-in main { padding-top: 20px; }
.weigh-in .hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem;
  background: #faf0d8; border: 1px solid var(--border); overflow: hidden;
}
.hero > div { padding: clamp(18px, 3.5vw, 40px); }
.hero h1 { color: var(--green); font: 700 clamp(42px, 7vw, 77px)/.99 Georgia, serif; letter-spacing: -.065em; text-wrap: balance; }
.hero p { margin: 18px 0 0; font: 1.08rem/1.5 Georgia, serif; color: #41463a; }
.hero img { display: block; width: 100%; height: 100%; align-self: stretch; object-fit: cover; }
.weigh-in form, .weigh-in .results, .weigh-in .explanation { background: var(--paper); border-radius: 2px; }
.weigh-in form { display: grid; gap: 18px; padding: clamp(16px, 3vw, 28px); border-top: 0; }
.selectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.selectors select {
  appearance: none; color: var(--ink); font: inherit; width: 100%; height: 44px;
  border: 1px solid #a69e8b; border-radius: 3px; padding: 0 34px 0 12px; cursor: pointer;
  background: #fffdf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23244d3b' stroke-width='1.7'/%3E%3C/svg%3E") no-repeat right 13px center;
}
.weigh-in legend, .selectors label { font-size: .9rem; font-weight: 650; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters label { color: var(--green); cursor: pointer; }
.filters span { min-height: 32px; border-radius: 3px; padding: 3px 9px; border: 1px solid #c6c0b5; color: #625f54; font-size: .83rem; }
.filters input:checked + span { color: #1e4837; background: #e5eddf; border-color: #8ba28d; }
.filters span::before { content: '＋'; margin-right: 5px; }
.filters input:checked + span::before { content: '✓'; }
.filters span { display: flex; }
.filter-actions { display: flex; gap: 16px; }
.filter-actions button { padding: 3px 0; min-height: 34px; font-size: .81rem; font-weight: 550; background: none; border: 0; color: var(--green); text-decoration: underline; }
.ticket { border-block: 1px dashed #b7ad94; padding-block: 14px; }
#snapshots:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#snapshots > div { display: grid; align-content: start; gap: 2px; }
#snapshots span, #snapshots small, #history-caption { font-size: .82rem; color: #52564b; }
#snapshots span a { font-family: ui-monospace, monospace; font-size: .78rem; }
#snapshots strong { font: 600 clamp(17px, 2.6vw, 25px)/1.15 Georgia, serif; font-variant-numeric: tabular-nums; }
#history-caption { margin: 8px 0 0; }
.weigh-in #benchmark { justify-self: start; border: 0; border-radius: 3px; background: var(--green); padding: 10px 22px; }
.weigh-in .results { border-color: var(--border); }
.weigh-in .explanation { border: 1px solid var(--border); margin-top: 22px; padding: clamp(16px, 3vw, 28px); }
.explanation h2 { font: 600 1.7rem Georgia, serif; margin: 0 0 .65em; }
.explanation p { margin-bottom: .75em; }
@media (max-width: 600px) {
  .weigh-in .hero { grid-template-columns: 1fr; gap: 0; }
  .hero > div { padding: 19px; }
  .hero img { width: 100%; height: auto; }
  .hero h1 { font-size: clamp(36px, 8.5vw, 50px); }
  .hero p { margin-top: 8px; font-size: 1rem; }
  .selectors { gap: 10px; }
  .weigh-in .filter-actions button { flex-basis: auto; }
  .weigh-in #benchmark { justify-self: stretch; }
}
@media (max-width: 430px) {
  .selectors { grid-template-columns: 1fr; }
  #snapshots span a { display: block; }
}
