/* The Bandits Hideout
   Palette comes from the original site and the badge:
   cream paper, navy-black ink, gold, blush, periwinkle. */

@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/big-shoulders-display-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/big-shoulders-display-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("/fonts/bitter-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("/fonts/bitter-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f8f3e7;
  --paper-2: #efe7d2;
  --ink: #041f2c;
  --gold: #d4ae67;
  --bronze: #7d5d1f; /* gold darkened until it reads as text on paper */
  --blush: #eed6d3;
  --peri: #7e90d7;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --text: "Bitter", Rockwell, "Roboto Slab", Georgia, serif; /* slab serif: echoes the badge lettering, reads well small */
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --rule: 2px solid var(--ink);
  --hair: 1px solid rgb(4 31 44 / .25);
  --accent: var(--bronze); /* link underlines and focus: bronze on paper, gold on ink */
  /* Left/right edge of the centred column, for full-bleed rows that must line up with it */
  --edge: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
}
.on-ink, .foot, dialog.viewer { --accent: var(--gold); --hair: 1px solid rgb(248 243 231 / .28); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgb(212 174 103 / .35); }
button, a { touch-action: manipulation; } /* no double-tap zoom on the quantity steppers */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible, .foot :focus-visible, dialog.viewer :focus-visible { outline-color: var(--gold); }
p { margin: 0 0 1.1em; max-width: 62ch; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: .005em; text-wrap: balance; }
[hidden] { display: none !important; }

.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 0; }
/* Small condensed caps: nav, buttons, table heads, form legends */
.label, .nav a, .nav-toggle, .btn, .more, .crumb, legend, .facts dt, .summary dt, .results th, .filters button, .foot ul a, .viewer-bar, .tag {
  font: 800 1.05rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .045em;
}
.label { margin: 0 0 .7rem; }
.lede { font-size: 1.2rem; line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .6em 1.4em; border: var(--rule); border-radius: 0;
  background: var(--ink); color: var(--paper);
  font-size: 1.2rem; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn[disabled] { background: transparent; color: var(--ink); opacity: .55; cursor: not-allowed; }
.more { display: inline-block; padding-block: .6rem; }

/* Masthead */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .7rem var(--edge); border-bottom: var(--rule); background: var(--paper);
  position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { width: 84px; height: auto; margin-bottom: -2.1rem; } /* badge hangs over the rule */
.brand-name { font: 900 1.35rem/.9 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.4rem); }
.nav a { text-decoration: none; padding: .7rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .nav-cart { border: var(--rule); padding: .7rem .9rem; }
.nav .nav-cart:hover, .nav .nav-cart[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-toggle { display: none; background: none; border: var(--rule); color: inherit; padding: .7rem .9rem; cursor: pointer; }

/* Home: hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-bottom: var(--rule); }
.hero-copy { container-type: inline-size; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 3.5rem) var(--edge); }
.hero h1 { font-size: clamp(2.8rem, 19cqi, 7.5rem); line-height: .92; } /* sized to the column so the longest line always fits */
.motto { font: 800 clamp(1.35rem, 6cqi, 1.9rem)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--bronze); margin: 1rem 0 1.8rem; }
.hero-copy p:last-child { margin-bottom: 0; }
.hero-photo { position: relative; margin: 0; min-height: min(82vh, 780px); border-left: var(--rule); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 40%; }
.plate { position: absolute; left: 0; bottom: 0; margin: 0; background: var(--paper); padding: .4rem .8rem; font-size: .8rem; line-height: 1.3; }

/* The two things people come to the home page for */
.facts { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--rule); margin: 0; }
.facts div { padding: 1.2rem var(--gutter) 1.3rem; border-left: var(--rule); }
.facts div:first-child { border-left: 0; padding-left: var(--edge); }
.facts dt { font-size: .95rem; color: var(--bronze); margin-bottom: .3rem; }
.facts dd { margin: 0; font: 800 1.6rem/1.05 var(--display); text-transform: uppercase; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--flush { padding-top: 0; }
.section--list { padding-top: 1.5rem; }
.section h2 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }

.field { background: var(--blush); border-bottom: var(--rule); }
.field .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
.field-copy { grid-column: 1 / span 6; padding-bottom: 1rem; }
.field-copy h2 { margin-bottom: 1.4rem; }
.field-photo { grid-column: 8 / -1; margin: 0; position: relative; border: var(--rule); }
.field-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.on-ink { background: var(--ink); color: var(--paper); }

/* Product tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.4rem, 2.4vw, 2rem) clamp(.9rem, 2vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.tile { display: block; text-decoration: none; }
.tile-img { position: relative; aspect-ratio: 1 / 1; background: var(--paper-2); border: 2px solid currentColor; overflow: hidden; color: var(--ink); }
.on-ink .tile-img { border-color: var(--paper); }
.tile-img > img { width: 100%; height: 100%; object-fit: cover; }
.tile-img.is-plate { display: grid; place-items: center; }
.tile-img.is-plate img { width: 46%; height: auto; object-fit: contain; }
.tag { position: absolute; left: 0; top: 0; background: var(--ink); color: var(--paper); font-size: .9rem; padding: .4rem .6rem; }
.tag--low { background: var(--gold); color: var(--ink); }
.tile-cat { position: absolute; left: .7rem; bottom: .6rem; font: 800 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .045em; }
.tile-name { font: 800 1.45rem/1 var(--display); margin: .7rem 0 .2rem; }
.tile:hover .tile-name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tile-price { margin: 0; }
.tile.is-out .tile-img > img { filter: grayscale(1); opacity: .55; }
.notice { border-left: 4px solid var(--gold); padding: .1rem 0 .1rem .9rem; font-size: .9rem; margin: 0 0 1.6rem; }
.status { font-size: 1rem; }

/* Events list */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.split > :first-child { grid-column: 1 / span 5; }
.split > :last-child { grid-column: 7 / -1; }
.split h2 { margin-bottom: 1.2rem; }
.events { list-style: none; margin: 0; padding: 0; border-top: 2px solid currentColor; align-self: start; }
.events li { padding: .8rem 0 .7rem; border-bottom: var(--hair); font: 900 clamp(1.7rem, 3.2vw, 2.6rem)/1 var(--display); text-transform: uppercase; }
.events li:last-child { border-bottom: 2px solid currentColor; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); }
.foot-main { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; padding-block: 3rem 2.4rem; }
.foot img { width: 112px; }
.foot-name { font: 900 1.7rem/1 var(--display); text-transform: uppercase; margin: 0 0 .7rem; }
.foot-main p:last-child { margin-bottom: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.foot ul a { display: block; padding-block: .35rem; text-decoration: none; }
.foot ul a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.foot-legal { border-top: var(--hair); padding-block: 1rem calc(1.4rem + env(safe-area-inset-bottom)); font-size: .85rem; display: flex; justify-content: space-between; gap: .3rem 1rem; flex-wrap: wrap; }
.foot-legal p { margin: 0; max-width: none; }

/* Inner pages */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.6rem, 4vw, 2.6rem); border-bottom: var(--rule); }
.page-head h1 { font-size: clamp(3.2rem, 9vw, 8rem); }
.page-head .lede { margin: 1.1rem 0 0; }
.page-head .btn { margin-top: 1.8rem; }

.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.story-copy { grid-column: 1 / span 5; }
.story-photo { grid-column: 7 / -1; margin: 0; border: var(--rule); position: relative; }

.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule); border-bottom: var(--rule); }
.line { padding: 1.4rem 1.6rem 1.8rem; border-left: var(--rule); }
.line:first-child { border-left: 0; padding-left: 0; }
.line-no { font: 900 clamp(4rem, 9vw, 7.5rem)/.85 var(--display); color: var(--bronze); margin: 0 0 1rem; }
.line ul { list-style: none; margin: 0; padding: 0; }
.line li { font: 800 clamp(1.5rem, 2.6vw, 2.1rem)/1.05 var(--display); text-transform: uppercase; padding: .5rem 0; border-top: var(--hair); }

.table-scroll { overflow-x: auto; border-top: var(--rule); border-bottom: var(--rule); }
table.results { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 640px; }
.results caption { text-align: left; caption-side: bottom; font-size: .85rem; padding: .8rem 0; }
.results th { font-size: .95rem; text-align: left; padding: .9rem .9rem .8rem 0; border-bottom: var(--rule); }
.results td { padding: .7rem .9rem .7rem 0; border-bottom: var(--hair); vertical-align: baseline; }
.results tr:last-child td { border-bottom: 0; }
.results .num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.results .place { font: 800 1.5rem/1 var(--display); white-space: nowrap; }
.results .place small { font: 400 .85rem var(--text); }

/* Gallery */
.rows { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.rows::after { content: ""; flex-grow: 1000000; }
.rows li { flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 250px); position: relative; }
.rows a { display: block; height: 100%; }
.rows img { width: 100%; height: 100%; object-fit: cover; background: var(--paper-2); }
.rows a:hover img, .rows a:focus-visible img { outline: 3px solid var(--gold); outline-offset: -3px; }

dialog.viewer { border: 0; padding: 0; margin: 0; background: var(--ink); color: var(--paper); width: 100vw; height: 100dvh; max-width: none; max-height: none; }
dialog.viewer::backdrop { background: var(--ink); }
.viewer-in { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; padding: .7rem var(--gutter); border-bottom: var(--hair); }
.viewer-bar button { background: none; border: 2px solid var(--paper); color: var(--paper); font: inherit; letter-spacing: inherit; text-transform: inherit; min-height: 2.75rem; padding: .5rem .9rem; cursor: pointer; }
.viewer-bar button:hover { background: var(--paper); color: var(--ink); }
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 1rem; touch-action: pan-y; }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; min-height: 0; user-select: none; -webkit-user-drag: none; }
.viewer-nav { display: flex; gap: .5rem; }

/* Shop */
.filters { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; margin: 0 0 1.2rem; border-bottom: var(--rule); }
.filters button { background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; padding: .8rem 0 .6rem; color: inherit; cursor: pointer; }
.filters button:hover { border-bottom-color: var(--gold); }
.filters button[aria-pressed="true"] { border-bottom-color: var(--ink); }

.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.product h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); margin-bottom: .7rem; }
.price { font: 800 2rem/1 var(--display); margin: 0 0 1.2rem; }
.crumb { font-size: .95rem; margin: 0 0 1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
legend { font-size: .95rem; padding: 0; margin-bottom: .6rem; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opts span { display: block; border: var(--rule); padding: .7rem 1rem; font-weight: 700; font-size: .95rem; }
.opts input:checked + span { background: var(--ink); color: var(--paper); }
.opts input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.opts input:disabled + span { opacity: .45; text-decoration: line-through; }
.opts input:disabled { cursor: not-allowed; }
.buy { display: flex; gap: .8rem; flex-wrap: wrap; align-items: stretch; margin: 1.6rem 0 1rem; }
.qty { display: inline-flex; border: var(--rule); }
.qty button { width: 3rem; min-height: 2.75rem; background: none; border: 0; font: 700 1.3rem/1 var(--text); color: inherit; cursor: pointer; }
.qty button:hover { background: var(--gold); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; background: none; }
.qty output, .qty span { display: grid; place-items: center; min-width: 2.8rem; font-weight: 700; font-variant-numeric: tabular-nums; border-inline: var(--rule); padding: .5rem .3rem; }
.fine { font-size: .9rem; }

/* Cart */
.cart { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(1.6rem, 4vw, 3.5rem) clamp(3rem, 7vw, 6rem); }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 1rem 1.2rem; align-items: center; padding: 1rem 0; border-bottom: var(--hair); }
.cart-line .tile-cat { display: none; }
.cart-line .tile-img.is-plate img { width: 70%; }
.cart-line h2 { font: 800 1.5rem/1 var(--display); }
.cart-line h2 a { display: inline-block; padding-block: .35rem; text-decoration: none; }
.cart-line h2 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.cart-line p { margin: .25rem 0 0; font-size: .9rem; }
.cart-side { text-align: right; display: grid; gap: .3rem; justify-items: end; }
.cart-side strong { font: 800 1.35rem/1 var(--display); }
.linkish { background: none; border: 0; padding: .6rem 0; color: inherit; font: inherit; font-size: .9rem; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.summary { border: var(--rule); padding: 1.3rem; position: sticky; top: 1rem; }
.summary dl { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .8rem; }
.summary dd { margin: 0; font: 800 2rem/1 var(--display); }
.summary .btn { width: 100%; margin-top: .4rem; }
.summary label { display: flex; gap: .6rem; align-items: center; min-height: 2.75rem; }
.summary input[type="radio"] { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--ink); }
.error { border: var(--rule); background: var(--blush); padding: .7rem .9rem; font-size: .95rem; margin: 0 0 1rem; }
.empty { padding-block: clamp(1rem, 4vw, 3rem); }
.empty h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.4rem; }

@media (max-width: 900px) {
  /* Home: the photo leads, with the headline and the button on the first screen */
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; height: 46svh; min-height: 280px; border-left: 0; border-bottom: var(--rule); }
  .hero-photo img { object-position: 50% 50%; }
  .hero-copy { padding-top: 1.8rem; padding-bottom: 2rem; }
  .hero h1 { font-size: clamp(2.6rem, 17cqi, 6rem); }

  /* Photos run edge to edge and lead their sections */
  .field-copy, .field-photo, .split > :first-child, .split > :last-child, .story-copy, .story-photo { grid-column: 1 / -1; }
  .field { padding-top: 0; }
  .field .wrap { align-items: start; row-gap: 1.8rem; }
  .field-photo, .story-photo { order: -1; margin-inline: calc(var(--gutter) * -1); border-inline: 0; border-top: 0; }
  .field-photo img { aspect-ratio: 4 / 5; }
  .story-photo img { width: 100%; }
  .section:has(.story) { padding-top: 0; }
  .story { row-gap: 2rem; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product, .cart { grid-template-columns: 1fr; }
  .product { padding-top: var(--gutter); }
  .summary { position: static; }
  .buy .btn { flex: 1; }
  .lines { grid-template-columns: 1fr; border-bottom: 0; }
  .line, .line:first-child { border-left: 0; padding: 1.2rem 0 1.4rem; border-bottom: var(--rule); display: grid; grid-template-columns: 5.5rem 1fr; }
  .line li:first-child { border-top: 0; padding-top: 0; }
  .rows li { flex-basis: calc(var(--r) * 150px); }

  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; padding-block: 1rem .8rem; margin-bottom: 0; }

  .foot-main { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 2.4rem 1.6rem; }
  .foot img { width: 88px; }
  .foot ul { grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
  .foot ul a { padding-block: .75rem; }

  /* Photo viewer: controls at the bottom, under the thumb */
  .viewer-in { grid-template-rows: minmax(0, 1fr) auto; }
  .viewer-bar { order: 2; border-bottom: 0; border-top: var(--hair); padding-block: .8rem calc(.8rem + env(safe-area-inset-bottom)); }
  .viewer-bar button { min-height: 3rem; padding-inline: 1.1rem; }
  .viewer-stage { padding: 0; }
}

@media (max-width: 700px) {
  .masthead { position: sticky; top: 0; flex-wrap: wrap; gap: 0 .6rem; padding-block: .5rem; }
  .brand { margin-right: auto; gap: .6rem; }
  .brand img { width: 60px; margin-bottom: -1.5rem; transition: width .15s, margin .15s; }
  .brand-name { font-size: 1.15rem; }
  /* Once the page scrolls, the hanging badge tucks into the bar so it doesn't cover content. */
  .masthead.is-stuck .brand img { width: 44px; margin-bottom: 0; }
  /* The cart sits beside Menu at all times; the other links drop down below. */
  .nav { display: contents; }
  .nav a { display: none; order: 3; flex-basis: 100%; font-size: 1.5rem; padding: 1rem 0; border-bottom: var(--hair); }
  .nav.is-open a { display: block; }
  .nav.is-open a:first-child { margin-top: 1.4rem; border-top: var(--hair); }
  .nav.is-open a:nth-last-child(2) { border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom-color: rgb(4 31 44 / .25); color: var(--bronze); }
  .nav .nav-cart, .nav.is-open .nav-cart, .nav-toggle { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.05rem; padding: 0 .8rem; border: var(--rule); }
  .nav .nav-cart, .nav.is-open .nav-cart { order: 1; flex-basis: auto; margin-top: 0; }
  .nav .nav-cart[aria-current="page"] { color: var(--paper); border-color: var(--ink); }
  .nav-toggle { order: 2; }

  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div:first-child { padding: .9rem var(--gutter) 1rem; border-left: 0; }
  .facts div + div { border-top: var(--hair); }

  .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .summary .btn { min-height: 3.6rem; }

  /* Results: one block per event instead of a table that scrolls sideways */
  .table-scroll { overflow: visible; }
  table.results, .results tbody, .results caption { display: block; min-width: 0; }
  .results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .results tr { display: grid; grid-template-columns: 5.4rem auto auto 1fr; gap: .15rem .9rem; align-items: baseline; padding: .9rem 0; border-bottom: var(--hair); }
  .results tr:last-child { border-bottom: 0; }
  .results td { display: block; padding: 0; border: 0; font-size: .9rem; }
  .results td:nth-child(5) { grid-column: 1; grid-row: 1 / span 3; font-size: 2.3rem; align-self: start; }
  .results td:nth-child(3) { grid-column: 2 / -1; grid-row: 1; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
  .results td:nth-child(2) { grid-column: 2; grid-row: 2; }
  .results td:nth-child(4) { grid-column: 3; grid-row: 2; }
  .results td:nth-child(1) { grid-column: 4; grid-row: 2; }
  .results td:nth-child(6) { grid-column: 2 / -1; grid-row: 3; text-align: left; }
  .results td:nth-child(6)::after { content: " points"; }
}

@media (max-width: 400px) {
  .masthead { gap: 0 .45rem; }
  .brand { gap: .5rem; }
  .brand img { width: 52px; margin-bottom: -1.2rem; }
  .brand-name { font-size: 1rem; }
  .nav .nav-cart, .nav-toggle { font-size: 1rem; padding-inline: .6rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .filters button { transition: background-color .12s, color .12s, border-color .12s; }
}
@media (prefers-reduced-motion: reduce) {
  .brand img { transition: none; }
}
