/* Hand-written changes on top of the recovered CSS, loaded after global.css.
 *
 * Kept separate on purpose: every other stylesheet under public/styles/ is regenerated from
 * the deployed build by scratchpad/restyle.py, so edits there would be silently lost.
 *
 * Note on weight: the recovered rules carry a `:not(._nb-scope)` guard that preserves their
 * original specificity, so an override written as a bare `.foo` LOSES to them. Each selector
 * below deliberately matches or exceeds that weight.
 */

/* ── Legibility ──────────────────────────────────────────────────────────────────────── */

/* Forest on brass measured 4.9:1 at 13px uppercase with wide tracking — technically a pass,
 * but thin and muddy at that size. A deeper forest takes it to ~6.1:1 and still reads as the
 * brand green rather than black. Applies to every brass button on the site. */
.btn.btn--brass,
a.btn.btn--brass {
  color: #0a1710;
}

/* The small caps on the bone Formats band were 66% forest (4.7:1) and, once darkened, still
 * hard going: the problem is 11px uppercase at 0.16em. Slightly larger, slightly tighter and
 * a little darker — about 7.8:1 — without competing with the figures above them. */
.formats .formats__cap {
  color: rgba(16, 45, 26, 0.85);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.eyebrow--forest {
  color: rgba(16, 45, 26, 0.78);
}

/* ── Beer rail ───────────────────────────────────────────────────────────────────────── */

/* Was a horizontally scrolling strip with a visible scrollbar. Now it drifts on its own.
 * The track holds the list twice and travels exactly -50%, so the wrap is seamless; that
 * only works while the spacing lives on the items, so no gap is introduced here. */
.rail .rail__inner {
  overflow: hidden;
  scrollbar-width: none;
}

.rail .rail__inner::-webkit-scrollbar {
  display: none;
}

.rail .rail__track {
  display: flex;
  width: max-content;
  animation: nb-rail-drift 46s linear infinite;
  will-change: transform;
}

/* Stop the moment someone reaches for it, so a link is never a moving target. */
.rail:hover .rail__track,
.rail:focus-within .rail__track {
  animation-play-state: paused;
}

@keyframes nb-rail-drift {
  from { transform: translate(0); }
  to { transform: translate(-50%); }
}

/* No motion wanted: fall back to the plain scrolling strip, scrollbar and all, so the
 * list stays reachable. */
@media (prefers-reduced-motion: reduce) {
  .rail .rail__inner {
    overflow-x: auto;
    scrollbar-width: auto;
  }
  .rail .rail__inner::-webkit-scrollbar {
    display: initial;
  }
  .rail .rail__track {
    animation: none;
  }
}

/* ── Our Story banner ────────────────────────────────────────────────────────────────── */

/* The banner photograph is warm and busy on the right, so the single vertical wash left the
 * eyebrow and headline sitting close to highlights. A horizontal layer darkens the column
 * the copy occupies and clears by 80%, leaving the bartender and the cocktail untouched —
 * the same treatment as the events hero. */
.shero .shero__scrim {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .44) 36%,
                            rgba(0, 0, 0, .1) 62%, rgba(0, 0, 0, 0) 80%),
    linear-gradient(rgba(0, 0, 0, .66), rgba(0, 0, 0, .4) 40%, rgba(0, 0, 0, .95));
}

@media (max-width: 719.98px) {
  .shero .shero__scrim {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .95));
  }
}

/* A listed partner with no fixed address: it has no map pin, so the row is a plain
 * <div> and must not advertise a click it cannot perform. Same selector weight as the
 * .nb-venue rules in where-to-drink.css, and this sheet loads last. */
.nb-venue--static {
  cursor: default;
}

.nb-venue--static:hover {
  background: transparent;
}

/* Multi-paragraph founder and team bios. .person__bio sets no margin, so the global
 * p reset collapses consecutive paragraphs into one unbroken block. Space only the
 * ones that follow another, leaving single-paragraph bios untouched. Guarded to match
 * the weight of the .person__bio rule in our-story.css. */
.person__bio:not(._nb-scope) + .person__bio:not(._nb-scope) {
  margin-top: 0.95em;
}
