:root {
  --paper: #fff9e8;
  --paper-strong: #fff0c5;
  --yellow: #f4df9a;
  --yellow-dark: #b58a28;
  --ink: #302b20;
  --muted: #71664f;
  --border: #dfcf9e;
  --link: #66501b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--link); }
a:hover, a:focus { color: #35280a; text-decoration: underline; }
.site-header, main, .site-footer { width: min(96%, 1500px); margin: 1rem auto; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; padding: .7rem; background: var(--yellow); border: 1px solid var(--yellow-dark); border-radius: .65rem; }
.nav a { display: inline-block; padding: .45rem .7rem; border-radius: .4rem; color: #3e3215; text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a:focus { background: var(--paper); }
.header-card { text-align: center; padding: 1rem 0 .5rem; }
.header-card h1 { margin: .3rem 0; font-size: clamp(1.45rem, 3vw, 2.2rem); }
#current-date { color: var(--muted); }
.intro, .search-panel, .results-summary { background: #fffdf5; border: 1px solid var(--border); border-radius: .65rem; padding: 1rem; margin: 1rem 0; }
.intro { text-align: center; background: var(--paper-strong); }
.search-panel { display: grid; gap: 1rem; }
.search-panel label { font-weight: 650; }
.search-panel input[type="text"], .search-panel input[type="number"] { width: 100%; min-width: 0; padding: .6rem; border: 1px solid #c9b77e; border-radius: .4rem; background: white; color: var(--ink); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; align-items: end; }
.form-field { display: grid; gap: .25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
button, input[type="submit"] { border: 1px solid #9f7a20; border-radius: .45rem; padding: .6rem .85rem; background: var(--yellow); color: #33270b; font: inherit; font-weight: 650; cursor: pointer; }
button:hover, input[type="submit"]:hover { background: #e9ce78; }
.anchor-links { display: flex; justify-content: space-between; margin: .5rem 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: .6rem; background: #fffdf5; }
.hemerquart-table { width: 100%; border-collapse: collapse; min-width: 850px; font-size: .94rem; }
.hemerquart-table th, .hemerquart-table td { padding: .65rem .7rem; border-bottom: 1px solid #e8ddb9; text-align: left; vertical-align: top; }
.hemerquart-table th { background: var(--paper-strong); position: sticky; top: 0; z-index: 1; }
.hemerquart-table th a { display: block; text-decoration: none; color: inherit; }
.hemerquart-table th a:hover { background: #f5e4a9; }
.hemerquart-table tbody tr:nth-child(even) { background: #fff8df; }
.hemerquart-table tbody tr:hover { background: #fff0c4; }
.date-col { white-space: nowrap; color: #65501c; font-weight: 600; }
.text-wrap { overflow-wrap: anywhere; white-space: normal; }
.results-summary { text-align: center; }
.site-footer { padding-bottom: 1.5rem; }
@media (max-width: 650px) { .site-header, main, .site-footer { width: 94%; } .search-panel { padding: .75rem; } .nav a { padding: .4rem .55rem; } }
