:root {
  --result-brown: #8a5a32;
  --result-ink: #2b2926;
  --result-paper: #f4f1eb;
  --result-line: #d2c8bb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--result-ink); background: var(--result-paper); font-family: Georgia, "Times New Roman", serif; }
.result-header { position: absolute; z-index: 4; inset: 0 0 auto 0; padding: 1.35rem clamp(1.25rem, 4vw, 4.5rem); color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.75); }
.result-header .wordmark { color: inherit; }
.result-hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, auto) minmax(18rem, 1fr); overflow: hidden; color: #fff; background: var(--result-brown); }
.result-photo { width: auto; max-width: 72vw; height: 100svh; display: block; object-fit: contain; object-position: left top; }
.result-hero-copy { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: clamp(5.5rem, 12vw, 8rem) clamp(1.25rem, 7vw, 7rem) clamp(2.5rem, 6vw, 5rem); pointer-events: none; }
.result-hero h1 { margin: 0; font-size: clamp(2rem, 3.3vw, 3.25rem); line-height: 1; letter-spacing: -.025em; text-shadow: 0 2px 16px rgba(0,0,0,.8); }
.results-surface { padding: clamp(3rem, 7vw, 6rem) max(1.25rem, calc((100vw - 92rem) / 2)); background: var(--result-paper); }
.results-toolbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.back-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .65rem 1.1rem; color: #fff; background: var(--result-brown); border-radius: 4px; font-size: 1rem; text-decoration: none; }
.results-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--result-line); border-radius: 8px; box-shadow: 0 14px 36px rgba(51,36,23,.09); }
.results-table { width: 100%; min-width: 52rem; border-collapse: collapse; }
.results-table th { padding: 1rem; color: #fff; background: var(--result-brown); font-size: 1rem; text-align: left; }
.results-table td { height: 4.5rem; padding: 1rem; border-top: 1px solid var(--result-line); font-size: 1rem; }
.results-table tbody tr:nth-child(even) { background: #f8f5f0; }
.result-row { cursor: pointer; transition: background-color .16s ease; }
.result-row:hover, .result-row:focus { outline: none; background: #eee5d9 !important; }
.placeholder-line { display: block; width: min(100%, 9rem); height: .75rem; border-radius: 10rem; background: #ded8cf; }
.placeholder-line.short { width: 5rem; }

@media (min-width: 761px) {
  .result-hero-wide { display: block; min-height: 0; background: #21180f; }
  .result-hero-wide .result-photo { width: 100%; max-width: none; height: auto; object-fit: contain; }
}

@media (max-width: 760px) {
  .result-header { padding: 1.15rem; }
  .result-hero { min-height: 100svh; display: block; }
  .result-photo { width: 100%; max-width: none; height: 100svh; object-fit: cover; object-position: center; }
  .result-hero-copy { padding: 5rem 1.15rem 3.5rem; background: linear-gradient(0deg, rgba(33,20,12,.62), transparent 52%); }
  .result-hero h1 { font-size: clamp(2rem, 8vw, 2.65rem); }
  .results-surface { padding: 2.5rem 1rem 3.5rem; }
  .results-toolbar { justify-content: stretch; }
  .back-link { width: 100%; justify-content: center; }
}

@media (min-width: 761px) and (max-aspect-ratio: 5/4) {
  .result-photo { max-width: 66vw; object-fit: cover; object-position: center; }
}
