@import url('fonts.css?v=3');

/* ---------------------------------------------------------------
   The Excelsior Pub — shared site styles
   Tokens extracted from the live Colibri build so the rebuild reads
   as the same brand.
   --------------------------------------------------------------- */

:root {
  --bg-maroon:  #330000;
  --fg:         #ffffff;
  --fg-dim:     rgba(255, 255, 255, 0.62);
  --accent:     #f79007;
  --footer-bg:  #000000;
  --rule:       rgba(255, 255, 255, 0.14);
  --row-alt:    rgba(232, 232, 217, 0.05);
  --happy-hour: rgba(232, 232, 217, 0.18);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --measure: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg-maroon);
  background-image: url('../img/wood-texture.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The texture is a 1.1MB photo. On narrow/low-power devices the fixed
   attachment causes repaint jank, so drop to the flat maroon. */
@media (max-width: 700px) {
  /* Phones keep the wood too (owner, 2026-11-21), from a lighter 1200 px copy
     (200 KB). It's a fixed layer behind the page, not a fixed background:
     phones handle that smoothly and it isn't stretched over the whole page. */
  body { background-image: none; background-attachment: scroll; }
  body::before {
    /* Height = the LARGEST viewport (100lvh; plain 100vh where lvh isn't known,
       which iOS treats the same), not inset:0. On an iPhone the visible
       height changes as Safari's address bar shrinks and grows while
       scrolling; a full-screen "cover" layer sized to that kept re-fitting the
       wood, so the background seemed to move (owner, 2026-11-21). */
    content: ''; position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none;
    background: var(--bg-maroon) url('../img/wood-texture.jpg') center / cover no-repeat;   /* full 1920 px (owner: sharper; the 1200 px copy blurred on tall phones) */
  }
}

a { color: var(--accent); }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header ---------------------------------------------------- */

.site-header {
  padding: 16px 24px 8px;   /* was 38px on top (owner, 2026-11-21: less space above the logo) */
  text-align: center;
}

.site-header img {
  width: 400px;
  max-width: 80%;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 30px;
  padding: 18px 0 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  border-bottom-color: var(--accent);
}

/* --- Hero ------------------------------------------------------ */

.hero {
  text-align: center;
  padding: 46px 24px 30px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.4vw, 4.05rem);
  line-height: 1.12;
  margin: 0 auto;
  max-width: 15ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero p {
  margin: 18px 0 0;
  font-size: 1.05rem;
  color: var(--fg-dim);
}

/* --- Sections -------------------------------------------------- */

.section { padding: 40px 0 56px; }

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  text-align: center;
  margin: 0 0 30px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* The "Drafts" wordmark ships as artwork, so the heading is the image
   itself — alt text carries the semantics. */
.section-title-img {
  margin-bottom: 18px;
  line-height: 0;
}

.section-title-img img {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  margin: 0 auto;
}

/* --- Roof camera ------------------------------------------------- */

.cam-section { padding-top: 10px; }

.cam { margin: 0; }

.cam-stage {
  position: relative;
  background: #000;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  /* Reserve the frame before the image loads so the page does not jump —
     the snapshot swaps every 10s and layout shift would be constant. */
  aspect-ratio: 16 / 9;
}

.cam-stage img,
.cam-stage .cam-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cam-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.cam-live-btn {
  background: var(--accent);
  color: #241100;
  border: 0;
  border-radius: 3px;
  padding: 7px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.cam-live-btn:hover { filter: brightness(1.08); }

/* --- Beverage table -------------------------------------------- */

.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.board caption {
  caption-side: bottom;
  padding-top: 14px;
  text-align: right;
  font-size: 0.78rem;
  color: var(--fg-dim);
}

.board th {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  white-space: nowrap;
}

.board th:first-child { width: 2.4em; }
.board th.col-name    { text-align: left; }

.board td {
  padding: 13px 10px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.board td.col-name { text-align: left; }
.board tbody tr:nth-child(even) { background: var(--row-alt); }
.board tr.is-happy-hour { background: var(--happy-hour); font-weight: 700; }

.board .num { font-variant-numeric: tabular-nums; }

.exclusive-mark {
  color: var(--accent);
  font-weight: 700;
}

.legend {
  text-align: right;
  font-size: 0.78rem;
  color: var(--fg-dim);
  margin: 8px 0 0;
}

/* --- Food menu -------------------------------------------------- */

/* Descriptions are dense body copy and the wood grain is busy — a scrim
   buys the contrast back without losing the texture behind it. */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));   /* min(): one column on phones instead of running off the right (2026-11-21) */
  gap: 12px 50px;
  background: rgba(20, 4, 4, 0.72);
  padding: 12px 34px 34px;
  border-radius: 4px;
}

.menu-category h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 26px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.menu-item { padding: 12px 0; }

.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  font-weight: 600;
}

.menu-item-head .price {
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.menu-item-head .price-note {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.menu-item p {
  margin: 5px 0 0;
  font-size: 0.88rem;
  color: var(--fg-dim);
  line-height: 1.55;
}

.menu-region {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  margin: 30px 0 0;
  background: rgba(0, 0, 0, 0.28);
}

.callout h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.callout p { margin: 0; color: var(--fg-dim); font-size: 0.92rem; }

/* --- Status / staleness ----------------------------------------- */

.status-line {
  text-align: right;
  font-size: 0.78rem;
  color: var(--fg-dim);
  margin: 10px 0 0;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-dummy { background: var(--accent); color: #241100; }
.badge-stale { background: #b3261e; color: #fff; }

.error-note {
  border: 1px solid #b3261e;
  background: rgba(179, 38, 30, 0.16);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.9rem;
}

/* --- Footer ------------------------------------------------------ */

.site-footer {
  background: var(--footer-bg);
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr minmax(180px, 0.75fr);
  align-items: center;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer > div { padding: 42px 18px; }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-social {
  background: var(--accent);
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-social a {
  color: #241100;
  font-size: 0;           /* hide the accessible label visually */
  line-height: 0;
}

.footer-social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

@media (max-width: 860px) {
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > div { padding: 26px 18px; }
  .footer-social { padding: 24px 18px; }
}

/* --- News banner (owner, 2026-11-21) ------------------------------
   Important news across the top of every page: closings, website notices,
   tonight's events. Filled by js/render.js mountBanner() from api/banner.php
   (set up on the back of house's Events page). One line per item; closings
   stand out. Hidden when there's nothing to say. */

.news-banner { text-align: center; font-family: var(--font-body); }
.news-banner[hidden] { display: none; }
.news-banner .nb-item { padding: 10px 16px; line-height: 1.35; border-bottom: 1px solid rgba(0, 0, 0, 0.25); }
.news-banner .nb-text { font-weight: 700; font-size: 1rem; }
.news-banner .nb-sub { display: block; font-size: 0.85rem; opacity: 0.85; margin-top: 2px; }
.news-banner .nb-closed { background: #b3261e; color: #fff; }                   /* closings: red, can't miss it */
.news-banner .nb-news { background: var(--accent); color: #241100; }            /* notices: brand orange */
.news-banner .nb-newdraft { background: #1f6b35; color: #fff; }   /* new on tap (first time ever): green (2026-11-21) */
.news-banner .nb-tonight { background: #1a0a0a; color: var(--fg); border-bottom-color: var(--accent); }
.news-banner .nb-tonight .nb-text { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.1rem; }

/* --- Staging banner ---------------------------------------------- */

.staging-banner {
  background: var(--accent);
  color: #241100;
  text-align: center;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Closing notes under the footer hours (owner, 2026-11-21): same feed as the
   banner, closings only. Filled by mountBanner(). */
.footer-closed { display: block; margin-top: 8px; }
.footer-closed[hidden] { display: none; }
.footer-closed span { display: block; font-weight: 700; color: #ff8a80; }

/* --- Phones (review fix, 2026-11-21) ------------------------------
   The drafts board and food menu ran off the right edge at 375px. */
@media (max-width: 600px) {
  .menu-grid { padding: 8px 16px 20px; gap: 8px 0; }
  .board { font-size: 0.82rem; }
  .board th { font-size: 0.8rem; padding: 10px 4px; white-space: normal; }
  .board td { padding: 10px 4px; }
  .board th:first-child { width: 1em; }
}
.board-scroll { overflow-x: auto; }                  /* last resort: a very long beer name scrolls inside the board, not the page */
.staging-banner:empty, .hero p:empty { display: none; }   /* a blanked Website Text block leaves no empty strip */
.hh-note { text-align: right; font-size: 0.78rem; color: var(--fg-dim); margin: 6px 0 0; }

/* Food menu: an item 86'd tonight (owner, 2026-11-21) */
.menu-item.sold-out .menu-item-head .mi-nm { color: var(--fg-dim); text-decoration: line-through; }
.menu-item .price.out { color: #ff8a80; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }

/* Food menu: the city/region as a bubble (owner, 2026-11-21) */
.menu-region {
  padding: 3px 9px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--fg);
  line-height: 1.2;
  background: rgba(247, 144, 7, 0.08);
}

/* Food menu sizes (owner, 2026-11-21): dish names larger, category headings larger still */
.menu-item-head { font-size: 1.25rem; }
.menu-item-head .price { font-size: 1.15rem; }
.menu-category h3 { font-size: 2.2rem; }
@media (max-width: 600px) {
  .menu-item-head { font-size: 1.12rem; }
  .menu-category h3 { font-size: 1.9rem; }
}

/* Script headings (owner, 2026-11-21): Drafts, Food and Events in Great Vibes
   (assets/css/fonts.css), the owner's pick. */
.script-title {
  font-family: 'Great Vibes', var(--font-display), cursive;   /* owner's pick (2026-11-21; was Parisienne) */
  font-style: normal;
  font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 5.4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}
.section-sub { text-align: center; color: var(--fg-dim); font-size: 1.1rem; margin: -8px 0 26px; }

/* Events section (owner, 2026-11-21) */
#events .ev-group { max-width: 760px; margin: 0 auto 26px; background: rgba(20, 4, 4, 0.72); border-radius: 4px; padding: 14px 28px 18px; }
#events .ev-group h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 6px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
#events .ev-item { display: grid; grid-template-columns: 8.5rem 1fr; gap: 4px 18px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
#events .ev-item:last-child { border-bottom: 0; }
#events .ev-when { color: var(--accent); font-weight: 700; }
#events .ev-title { font-weight: 600; font-size: 1.15rem; }
#events .ev-time { color: var(--fg-dim); white-space: nowrap; }
#events .ev-what p { margin: 4px 0 0; color: var(--fg-dim); font-size: 0.95rem; }
#events .ev-off { max-width: 760px; margin: 0 auto; text-align: center; color: #ff8a80; font-weight: 600; }
#events .ev-off p { margin: 4px 0; }
@media (max-width: 600px) {
  #events .ev-group { padding: 12px 16px 14px; }
  #events .ev-item { grid-template-columns: 1fr; }
}

/* Visually hidden, still read by screen readers (home page tagline, 2026-11-21). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Roof camera behind the header (home page, owner 2026-11-21) ---
   js/render.js mountSky() adds .sky (the looping time-lapse, or a still) and
   .sky-bar (caption + "Watch live") only once the camera is sending pictures. */
.site-header.has-sky { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 46px; }
.sky { position: absolute; inset: 0; z-index: -1; }
.sky video, .sky img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.sky::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(25, 5, 5, 0.6) 0%, rgba(25, 5, 5, 0.3) 45%, rgba(51, 0, 0, 0.92) 100%); }
.has-sky > a img { filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.7)); }
.has-sky .site-nav a { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.sky-bar { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 0 24px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.78); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.sky-live { color: var(--accent); text-decoration: none; border: 1px solid rgba(247, 144, 7, 0.7); border-radius: 999px;
  padding: 2px 12px; background: rgba(25, 5, 5, 0.6); }
.sky-live:hover, .sky-live:focus-visible { background: var(--accent); color: #1a0505; }

/* Narrow screens: the menu stays on ONE line (owner, 2026-11-21). At the end of
   the file so it overrides the base .site-nav rules above. The gaps,
   letter spacing and text shrink with the screen instead of wrapping. */
@media (max-width: 560px) {
  .site-nav { flex-wrap: nowrap; gap: 4px clamp(8px, 3.4vw, 30px); }
  .site-nav li { flex: none; }
  .site-nav a { font-size: clamp(0.66rem, 3.25vw, 0.82rem); letter-spacing: clamp(0.04em, 0.55vw, 0.14em); }
  .site-header { padding-left: 12px; padding-right: 12px; }
}

/* Section headings like the back of house's (owner, 2026-11-21: visual consistency):
   serif italic title, then the rule running from the end of the text to the right,
   lowered a touch so it sits level with the middle of the letters. Food menu
   categories and the Events page groups. */
.menu-category h3, #events .ev-group h3 {
  display: flex; align-items: center; gap: 16px;
  font-style: italic; font-weight: 600;
  border-bottom: 0; padding-bottom: 0;
}
.menu-category h3::after, #events .ev-group h3::after {
  content: ''; flex: 1 1 auto; min-width: 24px; height: 1px;
  background: var(--rule); transform: translateY(3px);
}

/* Staging notice slides down on load (first of the banners; owner, 2026-11-21).
   Pure CSS so it never flashes up first. Its space is there from the start
   (transform + clip only), so the page never shifts. News banners follow in
   js/render.js. */
@keyframes banner-open {
  from { transform: translateY(-100%); clip-path: inset(100% 0 0 0); }
  to   { transform: translateY(0); clip-path: inset(0 0 0 0); }
}
.staging-banner { animation: banner-open 0.7s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .staging-banner { animation: none; } }


/* Around Downtown (Events page, 2026-11-21): same box as the events lists;
   the date shows once per day, later events that day sit under it. */
#events .ev-intro { margin: -2px 0 6px; color: var(--fg-dim); font-size: 0.95rem; }
#events :is(.ev-downtown, .ev-coming) .ev-same { border-top: 0; padding-top: 8px; }
#events :is(.ev-downtown, .ev-coming) .ev-item:has(+ .ev-same) { border-bottom: 0; padding-bottom: 8px; }   /* 16px between events (owner) */
#events :is(.ev-downtown, .ev-coming) .ev-title { line-height: 1.3; }
#events :is(.ev-downtown, .ev-coming) .ev-title a { color: inherit; text-decoration: none; }
#events :is(.ev-downtown, .ev-coming) .ev-title a:hover, #events :is(.ev-downtown, .ev-coming) .ev-title a:focus-visible { color: var(--accent); text-decoration: underline; }
#events :is(.ev-downtown, .ev-coming) .ev-what p { margin-top: 0; line-height: 1.3; }   /* venue tight under the name (owner) */

/* A regular's closed weeks, inside its Every week entry (2026-11-21). */
#events .ev-what p.ev-off-in { color: #ff8a80; font-weight: 600; }
#events :is(.ev-downtown, .ev-coming) .ev-when small { display: block; font-size: 0.82rem; font-weight: 600; opacity: 0.85; }
#events :is(.ev-downtown, .ev-coming) .ev-item { grid-template-columns: 10.5rem 1fr; }   /* room for "Wednesday, November 25" */
@media (max-width: 600px) { #events :is(.ev-downtown, .ev-coming) .ev-item { grid-template-columns: 1fr; } }

/* Calendar subscribe buttons (Events page, 2026-11-21; owner: bold, with a Material icon) */
#events .ev-subscribe { max-width: 760px; margin: -4px auto 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; }
#events .ev-sub-lbl { width: 100%; text-align: center; font-weight: 700; font-size: 0.95rem; color: var(--fg, #fff); letter-spacing: 0.02em; }
#events .ev-subscribe a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  background: var(--accent); color: #1d0d0e; font-weight: 800; font-size: 0.85rem; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }   /* smaller (owner) */
#events .ev-subscribe a svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
#events .ev-subscribe a:hover, #events .ev-subscribe a:focus-visible { background: #ffa733; text-decoration: none; }
/* The calendar buttons in a box of their own (owner, 2026-11-21), same panel as the events lists. */
#events .ev-subscribe { width: fit-content; max-width: calc(100% - 32px); box-sizing: border-box; margin: -4px auto 22px; padding: 12px 20px 14px;
  background: rgba(20, 4, 4, 0.72); border: 1px solid rgba(247, 144, 7, 0.45); border-radius: 10px; }
#events .ev-subscribe a { white-space: nowrap; }
@media (max-width: 600px) { #events .ev-subscribe { width: auto; max-width: none; padding: 12px 12px 14px; } }   /* phones: as wide as the event boxes, buttons on one line each */
#events .ev-sub-lbl { font-variant: small-caps; font-size: 1.15rem; letter-spacing: 0.06em; }   /* owner, 2026-11-21 */
#events .ev-sub-note { width: 100%; max-width: 34rem; margin: 4px auto 0; text-align: center; color: var(--fg-dim); font-size: 0.85rem; line-height: 1.45; }
#events .ev-sub-note { flex: 0 0 100%; }   /* always its own line under the buttons */
@media (min-width: 601px) { #events .ev-subscribe { max-width: 760px; } }
@media (min-width: 601px) { #events .ev-subscribe { max-width: 580px; } }   /* narrower box (owner) */

/* Coming Up at the Pub (one-off events, 2026-11-21): first box on the Events
   page, also on the home page. Shares the Around Downtown layout above. */
#events .ev-coming { border: 1px solid rgba(247, 144, 7, 0.45); }
#events .ev-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--accent);
  color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 0.15em; white-space: nowrap; }
#events .ev-group:not(.ev-downtown) .ev-title a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(247, 144, 7, 0.6); }
#events .ev-group:not(.ev-downtown) .ev-title a:hover, #events .ev-group:not(.ev-downtown) .ev-title a:focus-visible { color: var(--accent); }
#events .ev-more { margin: 10px 0 0; text-align: right; }
#events .ev-more a { color: var(--accent); font-weight: 700; text-decoration: none; }
#events .ev-more a:hover { text-decoration: underline; }

/* Find-us map (home page, 2026-11-21): full bleed, no gap to the footer. */
.site-footer.flush { margin-top: 0; }
.find-map { position: relative; isolation: isolate; margin: 24px 0 0; padding: 0; border-top: 1px solid rgba(247, 144, 7, 0.45); }
#find-map { width: 100%; height: clamp(320px, 55vh, 560px); background: #1d0d0e; }
.find-map .leaflet-tile-pane { filter: brightness(0.72) sepia(0.45) saturate(1.25) hue-rotate(-12deg) contrast(1.05); }   /* warm and dim, in the pub's colours */
.find-map .leaflet-control-attribution { background: rgba(20, 4, 4, 0.75); color: #cbb; font-size: 11px; }
.find-map .leaflet-control-attribution a { color: var(--accent); }
.find-map .leaflet-bar a { background: #2a1416; color: #fbf3ea; border-color: rgba(255, 255, 255, 0.15); }
.find-map .leaflet-bar a:hover { background: #3a1d1f; }
.pub-pin svg { width: 40px; height: 52px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55)); }
.pub-pin svg path { fill: var(--accent); stroke: #1d0d0e; stroke-width: 2; }
.pub-pin svg path.star { fill: #1d0d0e; stroke: none; }
.find-map .leaflet-popup-content-wrapper, .find-map .leaflet-popup-tip { background: #2a1416; color: #fbf3ea; border: 1px solid rgba(247, 144, 7, 0.5); }
.find-map .leaflet-popup-content { font-size: 0.95rem; line-height: 1.45; margin: 12px 16px; }
.find-map .leaflet-popup-content a { color: var(--accent); font-weight: 700; }
.find-map .leaflet-container a.leaflet-popup-close-button { color: #cbb; }
.find-map-alt { text-align: center; padding: 20px; }
.find-map .leaflet-container { font-family: inherit; }   /* the site's font in the map's pop-up */

/* Parking note in Around Downtown (2026-11-21) */
#events .ev-park { display: flex; gap: 14px; align-items: center; margin: 4px 0 12px; padding: 10px 14px; border: 1px solid rgba(247, 144, 7, 0.45); border-radius: 8px; background: rgba(247, 144, 7, 0.07); }
#events .ev-park svg { flex: none; width: 44px; height: 44px; padding: 5px; border-radius: 9px; background: #2f6fd6; fill: #fff; margin-top: 2px; }   /* the familiar blue parking sign */
#events .ev-park p { margin: 0; font-size: 0.95rem; line-height: 1.45; color: var(--fg, #fff); }
#events .ev-park b { color: var(--accent); }
@media (max-width: 700px) { #find-map { height: clamp(190px, 28vh, 250px); } }   /* phones: far less tall (owner, 2026-11-21) */

/* Walking map in Around Downtown Albany (Events page, 2026-11-21) */
#events .dt-map-wrap { margin: 6px 0 14px; }
#dt-map { height: 360px; border-radius: 8px; border: 1px solid rgba(247, 144, 7, 0.45); background: #1d0d0e; isolation: isolate; }
@media (max-width: 700px) { #dt-map { height: 280px; } }
#dt-map .leaflet-tile-pane { filter: brightness(0.72) sepia(0.45) saturate(1.25) hue-rotate(-12deg) contrast(1.05); }
#dt-map.leaflet-container { font-family: inherit; }
#dt-map .leaflet-control-attribution { background: rgba(20, 4, 4, 0.75); color: #cbb; font-size: 11px; }
#dt-map .leaflet-control-attribution a { color: var(--accent); }
#dt-map .leaflet-bar a { background: #2a1416; color: #fbf3ea; border-color: rgba(255, 255, 255, 0.15); }
#dt-map .leaflet-popup-content-wrapper, #dt-map .leaflet-popup-tip { background: #2a1416; color: #fbf3ea; border: 1px solid rgba(247, 144, 7, 0.5); }
#dt-map .leaflet-popup-content { font-size: 0.92rem; line-height: 1.45; margin: 10px 14px; }
#dt-map .leaflet-popup-content b { color: #fff; }
#dt-map .leaflet-popup-content .pp-free { color: var(--accent); }
#dt-map .pp-list { margin: 8px 0 0; padding: 0; list-style: none; color: #e8d9cc; }   /* no bullets, flush left (owner) */
#dt-map .pp-list li + li { margin-top: 6px; }
#dt-map .pub-pin svg { width: 34px; height: 44px; }
.venue-pin span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #1d0d0e; box-shadow: 0 0 0 2px rgba(247, 144, 7, 0.45), 0 2px 6px rgba(0, 0, 0, 0.5); box-sizing: border-box; }
.garage-pin svg { width: 30px; height: 30px; padding: 4px; border-radius: 7px; background: #2f6fd6; fill: #fff; box-sizing: border-box; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); border: 2px solid #fff; }
#events .dt-map-hint { margin: 6px 0 0; font-size: 0.85rem; color: var(--fg-dim); }
#events .ev-walk { color: var(--accent); cursor: pointer; white-space: nowrap; border-bottom: 1px dotted rgba(247, 144, 7, 0.6); }
#events .ev-walk:hover, #events .ev-walk:focus-visible { border-bottom-style: solid; outline: none; }
#events .ev-park[data-garage] { cursor: pointer; }
@media (max-width: 700px) { #dt-map .leaflet-popup-content { font-size: 0.8rem; margin: 8px 10px; } }

/* Walking time on the route (2026-11-21): a green tag pointing at the line */
#dt-map .walk-tip { background: #3ddc6b; color: #08200e; border: 2px solid #0b2a12; border-radius: 8px; padding: 3px 9px; font-weight: 800; font-size: 0.9rem; line-height: 1.15; text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
#dt-map .walk-tip small { display: block; font-weight: 700; font-size: 0.72rem; }
#dt-map .walk-tip.leaflet-tooltip-left::before { border-left-color: #0b2a12; }
#dt-map .walk-tip.leaflet-tooltip-right::before { border-right-color: #0b2a12; }

/* Wider centre column on big screens (owner, 2026-11-21): the event boxes and maps. */
@media (min-width: 1100px) {
  #events .ev-group { max-width: 940px; }
}

/* --- Dart League (/darts, 2026-11-21) -------------------------------- */
#darts .dl-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 18px; }
#darts .dl-tabs a { padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(247, 144, 7, 0.5); color: var(--fg, #fff); text-decoration: none; font-weight: 700; font-size: 0.92rem; }
#darts .dl-tabs a[aria-current] { background: var(--accent); color: #1d0d0e; border-color: var(--accent); }
#darts .dl-box { max-width: 940px; margin: 0 auto 26px; background: rgba(20, 4, 4, 0.72); border-radius: 6px; padding: 16px 24px 20px; }
#darts .dl-help { color: var(--fg-dim); font-size: 0.92rem; margin: 0 0 12px; }
#darts .dl-help.dl-foot { margin: 12px 0 0; }
#darts .carried { color: #ff6b5e; font-weight: 700; }
#darts .dl-scroll { overflow-x: auto; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; }
#darts .dl-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
#darts .dl-table th, #darts .dl-table td { padding: 9px 10px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
#darts .dl-table thead th { font-size: 0.78rem; font-weight: 700; color: var(--fg-dim); background: rgba(0, 0, 0, 0.35); }
#darts .dl-table th.wk span { display: block; color: var(--fg, #fff); }
#darts .dl-table th.wk small { font-weight: 600; }
#darts .dl-table .n { text-align: left; color: var(--fg-dim); width: 2.2em; }
#darts .dl-table .nm { text-align: left; font-weight: 700; position: sticky; left: 0; background: #1e0b0b; }
#darts .dl-table thead .nm { background: #160707; }
#darts .dl-table .nm a { color: var(--fg, #fff); text-decoration: none; border-bottom: 1px dotted rgba(255, 255, 255, 0.4); }
#darts .dl-table .nm a:hover { color: var(--accent); border-bottom-color: var(--accent); }
#darts .dl-table .tot { background: rgba(247, 144, 7, 0.9); color: #1d0d0e; font-weight: 800; }
#darts .dl-table thead .tot { color: #1d0d0e; background: var(--accent); }
#darts .dl-table td.dim { color: var(--fg-dim); }
#darts .dl-print { margin: 12px 0 0; text-align: right; }
#darts .dl-print button, #darts .dl-chip { font: inherit; cursor: pointer; }
#darts .dl-print button { padding: 7px 14px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--fg, #fff); }
#darts .dl-back { margin: 0 0 6px; }
#darts .dl-back a { color: var(--accent); font-weight: 700; text-decoration: none; }
#darts .dl-name { font-family: var(--font-display); font-style: italic; font-size: 2.2rem; margin: 0 0 12px; }
#darts .dl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
#darts .dl-facts div { background: rgba(0, 0, 0, 0.3); border-radius: 8px; padding: 12px 14px; }
#darts .dl-facts b { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
#darts .dl-facts span { color: var(--fg-dim); font-size: 0.85rem; }
#darts h4 { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; margin: 18px 0 8px; }
#darts .dl-weeks, #darts .dl-games { list-style: none; margin: 0; padding: 0; }
#darts .dl-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
#darts .dl-weeks li { background: rgba(0, 0, 0, 0.3); border-radius: 8px; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; gap: 0 8px; align-items: baseline; }
#darts .dl-weeks .d { color: var(--fg-dim); font-size: 0.85rem; }
#darts .dl-weeks b { font-size: 1.3rem; grid-row: span 2; }
#darts .dl-weeks .s { color: var(--fg-dim); font-size: 0.75rem; }
#darts .dl-games li { display: grid; grid-template-columns: 9rem 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); align-items: baseline; }
#darts .dl-games .d { font-weight: 700; }
#darts .dl-games .s { color: var(--fg-dim); font-size: 0.9rem; }
#darts .dl-games b { color: var(--accent); }
#darts .dl-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
#darts .dl-chip { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.3); color: var(--fg, #fff); font-weight: 700; }
#darts .dl-chip b { opacity: 0.7; font-variant-numeric: tabular-nums; }
#darts .dl-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1d0d0e; }
#darts .dl-pick { color: var(--fg-dim); padding: 14px; border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 8px; margin: 0; }
#darts .dl-calc td.big { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
@media (max-width: 600px) {
  #darts .dl-box { padding: 12px 12px 16px; }
  #darts .dl-games li { grid-template-columns: 1fr auto; }
  #darts .dl-games .s { grid-column: 1; }
}
@media print {
  .staging-banner, .news-banner, .site-header, .site-footer, #darts .dl-tabs, #darts .dl-print, #darts .dl-help { display: none !important; }
  body, body::before { background: #fff !important; color: #000 !important; }
  #darts .dl-box { background: none; padding: 0; }
  #darts .dl-table th, #darts .dl-table td, #darts .dl-table .nm, #darts .dl-table .nm a { color: #000 !important; background: none !important; border-color: #999; }
  #darts .dl-table .tot { background: #eee !important; }
  #darts .carried { color: #c00 !important; }
  #darts .dl-scroll { overflow: visible; border: 0; }
  .script-title { color: #000 !important; }
}

/* Dart standings on phones (2026-11-21): compact by default, weeks on request; no sticky column. */
#darts .dl-weektoggle { margin: 0 0 10px; text-align: right; color: var(--fg-dim); font-size: 0.85rem; }
#darts .dl-weektoggle[hidden] { display: none; }
#darts .dl-weektoggle button { font: inherit; font-size: 0.85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(247, 144, 7, 0.6); background: transparent; color: var(--accent); cursor: pointer; }
#darts .dl-table .hc { font-weight: 700; }
#darts .dl-table .av { color: var(--fg-dim); }
@media (max-width: 700px) {
  #darts .dl-table .nm { position: static; background: none; }
  #darts .dl-table th, #darts .dl-table td { padding: 9px 8px; }
  #darts .dl-table .n { width: 1.6em; }
  #darts .dl-table .nm a { border-bottom: 0; }
  #darts .dl-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
}
#darts .dl-table [hidden] { display: none; }

/* Six menu items since Darts (2026-11-21): tighter on narrow screens so they
   stay on one line and never get cut off. Same rule as above, scaled down. */
@media (max-width: 700px) {
  .site-nav { flex-wrap: nowrap; gap: 4px clamp(6px, 2.4vw, 22px); justify-content: center; }
  .site-nav li { flex: none; }
  .site-nav a { font-size: clamp(0.6rem, 2.75vw, 0.82rem); letter-spacing: clamp(0.02em, 0.35vw, 0.12em); }
}
/* Phones: the wood TILED at 900 px wide, like the league's old app, instead of
   one photo stretched to the screen's height (owner: "zoom out my background"). */
@media (max-width: 700px) {
  /* wood-tile.jpg (1560x840, 237 KB): the same photo with its edges cross-faded so copies join seamlessly (2026-11-21) */
  body::before { background: var(--bg-maroon) url('../img/wood-tile.jpg') center top / 900px auto repeat; }
}

/* PARALLAX WOOD (owner, 2026-11-21: "if it's seamless, add the parallax back,
   staying zoomed out"). One fixed layer, the seamless tile (wood-tile.jpg) at
   its real size on computers (1560 px wide) and 900 px wide on phones. JS
   (render.js) slides it up at a third of the scroll speed, wrapping every tile
   height, so the layer only needs to be one tile taller than the screen and
   nothing is ever stretched. Reduced motion: it stays still. */
:root { --tile-h: 840px; }
@media (max-width: 700px) { :root { --tile-h: 484.6px; } }
body { background-image: none; background-attachment: scroll; }
body::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; z-index: -1; pointer-events: none;
  height: calc(100vh + var(--tile-h)); height: calc(100lvh + var(--tile-h));
  background: var(--bg-maroon) url('../img/wood-tile.jpg') center top / auto var(--tile-h) repeat;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The wood travels --par-dist (set by render.js: a third of the scroll
       length) over the whole scroll, driven by the browser itself. */
    body::before {
      height: calc(100vh + var(--par-dist, 0px)); height: calc(100lvh + var(--par-dist, 0px));
      animation: wood-parallax linear both; animation-timeline: scroll(root block);
    }
    @keyframes wood-parallax { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(-1 * var(--par-dist, 0px)), 0); } }
  }
}

/* Phones (owner, 2026-11-21: "padding outside the box should be almost to the
   edge; we're losing a lot to design"): boxes 6 px from the screen edge, 12 px
   inside. The header keeps its own spacing. */
@media (max-width: 700px) {
  main .wrap { padding-left: 6px; padding-right: 6px; }
  .menu-grid { padding: 6px 12px 16px; }
  #events .ev-group { padding: 12px 12px 14px; }
  #events .ev-subscribe { padding: 12px 10px 14px; }
  #darts .dl-box { padding: 12px 10px 14px; }
}
/* Dart standings: every number column centred (owner, 2026-11-21); only Player stays left. */
#darts .dl-table th:not(.nm), #darts .dl-table td:not(.nm) { text-align: center; }
/* Dart League text larger (owner, 2026-11-21) */
#darts .dl-table { font-size: 1.12rem; }
#darts .dl-table thead th { font-size: 0.9rem; }
#darts .dl-table th.wk small { font-size: 0.78rem; }
#darts .dl-help, #darts .dl-weektoggle { font-size: 1.02rem; }
#darts .dl-games li, #darts .dl-weeks .d { font-size: 1.02rem; }
#darts .dl-facts span { font-size: 0.95rem; }
#darts .dl-chip { font-size: 1.08rem; }
#darts .dl-back { max-width: 940px; margin: 0 auto 8px; font-size: 1.05rem; }   /* above the box, top left */
/* Player stats: white numbers like the admin's highlighted figures (owner, 2026-11-21) */
#darts .dl-facts b { color: #fff; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1; margin-bottom: 4px; }
/* Drafts page: bigger board text (owner, 2026-11-21). Kiosk uses kiosk.css, not this. */
.board { font-size: 1.2rem; }
.board th { font-size: 1.15rem; }
.board caption { font-size: 0.9rem; }
@media (max-width: 600px) {
  .board { font-size: 1rem; }
  .board th { font-size: 0.92rem; }
}

/* Music Bingo menu item, at the pub only (render.js, 2026-11-21): gold shimmer
   on the words and three twinkling sparkles around them. */
.site-nav .nav-bingo { position: relative; color: #ffd36b;
  background: linear-gradient(100deg, #ffd36b 0%, #fff6d8 45%, #f79007 55%, #ffd36b 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: nb-shimmer 2.8s linear infinite; }
.site-nav .nav-bingo .nb-short { display: none; }
.site-nav .nav-bingo i { position: absolute; width: 17px; height: 17px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%), conic-gradient(from 45deg, transparent 0 20%, #fff3c4 21% 29%, transparent 30% 45%, #fff3c4 46% 54%, transparent 55% 70%, #fff3c4 71% 79%, transparent 80%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  background: #fff3c4; filter: drop-shadow(0 0 3px #ffd36b); animation: nb-twinkle 2.4s ease-in-out infinite; }
.site-nav .nav-bingo i:nth-of-type(1) { top: -14px; left: -15px; }
.site-nav .nav-bingo i:nth-of-type(2) { top: -14px; right: -16px; width: 13px; height: 13px; animation-delay: 0.8s; }
.site-nav .nav-bingo i:nth-of-type(3) { bottom: -12px; right: 22%; width: 12px; height: 12px; animation-delay: 1.6s; }
@keyframes nb-shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
@keyframes nb-twinkle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1.15) rotate(45deg); } 70% { opacity: 0; transform: scale(0.5) rotate(90deg); } }
@media (max-width: 700px) {
  .site-nav .nav-bingo .nb-full { display: none; }
  .site-nav .nav-bingo .nb-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav .nav-bingo { animation: none; -webkit-text-fill-color: #ffd36b; background: none; }
  .site-nav .nav-bingo i { animation: none; opacity: 0.9; transform: none; }
}

/* Less space between the menu and the page title (owner, 2026-11-22). Not the
   home page (its first section is the map, sized by fitMap). */
main > .section:first-child:not(.nymap-section) { padding-top: 12px; }
.mb-game:empty { display: none; }
/* Menu closer to the logo (owner, 2026-11-22; was 18px) */
.site-nav { padding-top: 6px; }
.site-nav { padding-top: 0; }   /* closer still (owner) */
.site-header img { display: block; margin: 0 auto; }   /* no inline-image gap under the logo */

/* Steady page loads (owner, 2026-11-22: "a little jumpy"): the content area is
   at least a screen tall while its data loads, so the footer starts off-screen
   instead of showing and then jumping down. Music Bingo lets go once drawn
   (its box sits right on the footer). */
main { min-height: 100vh; min-height: 100lvh; }
.bingo-page.mb-ready main { min-height: 0; }
.bingo-page:not(.mb-ready) .site-footer { visibility: hidden; }   /* appears once the game box is drawn (no jump) */

/* Event days in white (owner, 2026-11-22) */
#events .ev-when { color: #fff; }

/* Signed-in helpers (owner, 2026-11-22; render.js, admin/whoami.php):
   "Back of House" menu item + "Edit" pills by the content. Only ever shown
   to someone signed in to the back of house. */
.site-nav .nav-boh { color: var(--accent); }
.site-nav .nav-boh .nb-short { display: none; }
.site-nav .short .nav-boh .nb-full { display: none; }
.site-nav .short .nav-boh .nb-short { display: inline; }
p.edit-here { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px auto 14px; text-align: center; }
p.edit-here[hidden] { display: none; }
p.edit-here a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid rgba(247, 144, 7, 0.7);
  border-radius: 999px; background: rgba(25, 5, 5, 0.6); color: var(--accent); font: 600 0.8rem/1.4 var(--font-body);
  letter-spacing: 0.02em; text-decoration: none; }
p.edit-here a:hover, p.edit-here a:focus-visible { background: var(--accent); color: #1d0d0e; }
p.edit-here svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.site-footer p.edit-here { grid-column: 1 / -1; margin: 0; padding: 0 18px 18px; }
.nymap-section > p.edit-here { margin-top: 14px; }

/* Wi-Fi welcome page (welcome.html + js/welcome.js, owner 2026-11-22):
   where the pub Wi-Fi's sign-in sends phones. Big, thumb-sized buttons. */
.welcome-page #welcome .wrap { max-width: 560px; }
.welcome-page .site-header { padding-bottom: 0; }
.wl-sub { text-align: center; font-size: 1.1rem; line-height: 1.45; margin: 0 auto 14px; max-width: 30em; text-wrap-style: balance; color: rgba(255, 255, 255, 0.88); }
.wl-hh { text-align: center; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(247, 144, 7, 0.16);
  border: 1px solid rgba(247, 144, 7, 0.6); line-height: 1.4; text-wrap-style: balance; }
.wl-hh b { color: var(--accent); }
.wl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wl-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 118px; padding: 14px 10px; border-radius: 14px; text-align: center; text-decoration: none; color: var(--fg);
  background: rgba(20, 4, 4, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-tap-highlight-color: transparent; }
.wl-tile:active { transform: scale(0.98); }
.wl-tile:hover, .wl-tile:focus-visible { border-color: var(--accent); }
.wl-tile svg { width: 34px; height: 34px; fill: var(--accent); margin-bottom: 4px; }
.wl-tile b { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.01em; }
.wl-tile span { font-size: 0.88rem; color: var(--fg-dim); line-height: 1.3; }
.wl-food svg { fill: var(--food, #6cc070); }
/* Music Bingo: full width, gold, twinkling (same stars as the menu item) */
.wl-bingo { grid-column: 1 / -1; min-height: 96px; border-color: rgba(255, 211, 107, 0.7);
  background: linear-gradient(135deg, rgba(60, 30, 4, 0.85), rgba(20, 4, 4, 0.8)); }
.wl-bingo svg { fill: #ffd36b; }
.wl-bingo b { color: #ffd36b; font-size: 1.35rem; }
.wl-bingo.live { box-shadow: 0 0 0 2px #ffd36b, 0 0 24px rgba(255, 211, 107, 0.45); }
.wl-bingo.live span { color: #fff; font-weight: 700; }
.wl-bingo i { position: absolute; width: 14px; height: 14px; background: #ffd36b; opacity: 0; pointer-events: none;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: nb-twinkle 2.4s ease-in-out infinite; }
.wl-bingo i:nth-of-type(1) { top: 14px; left: 18%; }
.wl-bingo i:nth-of-type(2) { top: 22px; right: 16%; width: 11px; height: 11px; animation-delay: 0.8s; }
.wl-bingo i:nth-of-type(3) { bottom: 14px; right: 30%; width: 10px; height: 10px; animation-delay: 1.6s; }
@media (prefers-reduced-motion: reduce) { .wl-bingo i { animation: none; } }
.wl-tonight { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: rgba(20, 4, 4, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); }
.wl-tonight h2 { margin: 0 0 6px; font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--accent); }
.wl-tonight p { margin: 6px 0; line-height: 1.4; }
.wl-tonight .t { color: var(--accent); font-weight: 700; white-space: nowrap; }
.wl-tonight .d { color: var(--fg-dim); font-size: 0.92rem; }
.wl-tonight a { color: inherit; }
.wl-follow { text-align: center; margin: 18px 0 6px; color: var(--fg-dim); }
.wl-follow a { color: var(--accent); text-decoration: none; }
.wl-home { grid-column: 1 / -1; min-height: 0; flex-direction: row; gap: 10px; padding: 12px 14px; }
.wl-home svg { width: 24px; height: 24px; margin: 0; }
.wl-home b { font-size: 1.05rem; }

/* DARKER WOOD (owner, 2026-11-22): the back of house's wood on every public
   page: the same seamless tile and parallax as above, under the back of
   house's dark tint (admin.css --wood-tint, now rgba(26,17,18,0.30)). Keep the
   two tints the same. */
:root { --wood-tint: rgba(26, 17, 18, 0.30); }   /* lighter (owner, 2026-11-22: 0.80 -> 0.70 -> 0.50 -> 0.40 -> 0.30) */
body::before { background: linear-gradient(var(--wood-tint), var(--wood-tint)), url('../img/wood-tile.jpg') center top / auto var(--tile-h) repeat var(--bg-maroon); }

/* KITCHEN DOOR (owner, 2026-11-22: "an interesting clever effect when a user
   goes between the public website and the back of house"; then "much slower";
   then "a double swing door, a hinge on each side, opens in the middle";
   then "slow down, show the door a bit longer": 4.2 s, closed ~1 s;
   "fade out the doors sooner": gone by 88%; "slightly faster": 3.6 s; "doors sooner, shorter": 3.0 s, doors up in 0.15 s. The real
   door elements fade on the same clock (xl-door-hide) so nothing flashes in
   the frame between the transition ending and the script removing them).
   A cross-page View Transition. The inline 'pagereveal' script in each page's
   <head> skips every other navigation; when crossing it sets html[data-door]
   = in | out and adds two drawn door leaves (.xl-door.l / .r: wood, porthole,
   brass kick plate, a sign split across them: STAFF | ONLY going in, THE |
   PUB coming out), removed when the transition ends. The page you leave dims
   behind the closing doors; they swing open from the middle (each on its
   outer hinge, AWAY from you as if pushed), flap, and the next room comes up. Identical block in
   assets/css/site.css and admin/admin.css; keep them the same. Browsers
   without cross-page View Transitions (Firefox, older Safari) just change
   pages. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.xl-door { position: fixed; top: 0; bottom: 0; width: 50vw; z-index: 2147483647; pointer-events: none; box-sizing: border-box;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 82%, rgba(0, 0, 0, 0.35)),
    linear-gradient(rgba(40, 20, 12, 0.45), rgba(40, 20, 12, 0.45)), #2a140c url('/assets/img/wood-tile.jpg') center / auto 840px repeat;
  border: 10px solid #1c0d08; box-shadow: inset 0 0 0 2px rgba(214, 160, 74, 0.35), inset 0 0 60px rgba(0, 0, 0, 0.55); }
.xl-door { animation: xl-door-hide 3.0s linear both; }
@keyframes xl-door-hide { 0%, 86% { opacity: 1; } 88%, 100% { opacity: 0; } }
.xl-door.l { left: 0; view-transition-name: door-l; border-right-width: 3px; }
.xl-door.r { right: 0; view-transition-name: door-r; border-left-width: 3px; }
/* porthole window */
.xl-door::before { content: ''; position: absolute; top: 16%; left: 50%; width: min(30vw, 34vh); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  border: max(8px, 1.4vmin) solid #b8862b; box-shadow: 0 0 0 2px #5a3b10, inset 0 0 0 2px #5a3b10, 0 6px 18px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at 34% 30%, rgba(255, 236, 200, 0.55), rgba(255, 236, 200, 0) 28%), radial-gradient(circle, #3b2a20, #120806 75%); }
/* brass kick plate */
.xl-door::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: 5%; height: 13%; border-radius: 4px;
  background: linear-gradient(180deg, #e0b25a, #9c6d22 55%, #c4943f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 10px rgba(0, 0, 0, 0.5); }
/* sign, split across the two leaves */
.xl-door span { position: absolute; top: 60%; padding: 0.35em 0.8em; background: #120806; border: 2px solid #b8862b; color: #e9c27a;
  font: 800 clamp(1rem, 3.4vw, 2.2rem)/1 Georgia, 'Times New Roman', serif; letter-spacing: 0.22em; text-indent: 0.22em; white-space: nowrap; }
.xl-door.l span { right: 0; border-right: 0; border-radius: 6px 0 0 6px; }
.xl-door.r span { left: 0; border-left: 0; border-radius: 0 6px 6px 0; }
html[data-door]::view-transition-group(*) { animation-duration: 3.0s; }
html[data-door]::view-transition-old(root) { mix-blend-mode: normal; animation: door-leave 3.0s linear both; }
html[data-door]::view-transition-new(root) { mix-blend-mode: normal; animation: door-room 3.0s ease-out both; }
html[data-door]::view-transition-image-pair(door-l) { perspective: 1500px; perspective-origin: 100% 50%; }
html[data-door]::view-transition-image-pair(door-r) { perspective: 1500px; perspective-origin: 0% 50%; }
html[data-door]::view-transition-new(door-l) { transform-origin: left center; animation: door-leaf-l 3.0s cubic-bezier(.3, .1, .3, 1) both; }
html[data-door]::view-transition-new(door-r) { transform-origin: right center; animation: door-leaf-r 3.0s cubic-bezier(.3, .1, .3, 1) both; }
/* the page you leave dims while the doors come up in front of it */
@keyframes door-leave { 0% { opacity: 1; filter: brightness(1); } 5% { opacity: 1; filter: brightness(0.6); } 6%, 100% { opacity: 0; } }
@keyframes door-room { 0%, 32% { opacity: 0; transform: scale(0.95); filter: brightness(0.45); } 36% { opacity: 1; } 75% { filter: brightness(0.8); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes door-leaf-l {
  0%   { opacity: 0; transform: rotateY(0deg); filter: brightness(1); }
  5%   { opacity: 1; transform: rotateY(0deg); }
  32%  { transform: rotateY(0deg); filter: brightness(1); }
  64%  { transform: rotateY(100deg); filter: brightness(0.45); }
  76%  { opacity: 1; transform: rotateY(68deg);  filter: brightness(0.65); }
  88%  { opacity: 0; transform: rotateY(94deg);  filter: brightness(0.45); }
  100% { opacity: 0; transform: rotateY(90deg); filter: brightness(0.4); }
}
@keyframes door-leaf-r {
  0%   { opacity: 0; transform: rotateY(0deg); filter: brightness(1); }
  5%   { opacity: 1; transform: rotateY(0deg); }
  32%  { transform: rotateY(0deg); filter: brightness(1); }
  64%  { transform: rotateY(-100deg); filter: brightness(0.45); }
  76%  { opacity: 1; transform: rotateY(-68deg);  filter: brightness(0.65); }
  88%  { opacity: 0; transform: rotateY(-94deg);  filter: brightness(0.45); }
  100% { opacity: 0; transform: rotateY(-90deg); filter: brightness(0.4); }
}

/* Ice skating at the Empire State Plaza rink (owner, 2026-11-22; render.js rinkHtml) */
#events .ev-rink { align-items: flex-start; cursor: pointer; }
#events .ev-rink svg { background: #3b8fd9; }
#events .ev-rink a { color: var(--accent); text-decoration: none; font-weight: 700; }
#events .ev-rink a:hover, #events .ev-rink a:focus-visible { text-decoration: underline; }
#events .rink-days { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 0.95rem; }
#events .rink-days li { line-height: 1.4; }
#events .rink-days li b { display: inline-block; min-width: 6.2em; color: #fff; }
#events .rink-days li.closed { color: #ff8a80; }
#events .rink-note { display: block; margin-left: 5.89rem; color: #ffcf6b; font-size: 0.85rem; }
@media (max-width: 480px) { #events .rink-note { margin-left: 0; } }
#events .rink-opens { margin: 6px 0 0; font-weight: 700; color: #fff; }

/* Welcome page on phones: tighter under the title (owner, 2026-11-22) */
@media (max-width: 700px) { .welcome-page #welcome .section-title { margin-bottom: 4px; } }

/* Food menu (owner, 2026-11-22): the region bubble sits right of the dish
   name, and wraps under it when the name is too long to share the line; dish
   names a step larger. */
.menu-item-head .mi-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.menu-item-head .mi-name .menu-region { margin-top: 0; font-weight: 400; white-space: nowrap; }
.menu-item-head { font-size: 1.55rem; }   /* larger still (owner, 2026-11-22; was 1.35) */
.menu-item-head .price { font-size: 1.2rem; }
@media (max-width: 600px) { .menu-item-head { font-size: 1.35rem; } .menu-item-head .price { font-size: 1.1rem; } }

/* Welcome page (owner, 2026-11-22): bigger icons; Music Bingo glimmers more:
   shimmering gold title (same as the menu item), a sheen sweeping across the
   tile, a slow gold glow, six twinkling stars. Off for reduced motion. */
.wl-tile svg { width: 40px; height: 40px; }
.wl-home svg { width: 28px; height: 28px; }
.wl-bingo { overflow: hidden; animation: wl-glow 3.2s ease-in-out infinite; }
.wl-bingo span[hidden] { display: none; }
.wl-bingo b { background: linear-gradient(100deg, #ffd36b 0%, #fff6d8 45%, #f79007 55%, #ffd36b 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: nb-shimmer 2.8s linear infinite; }
.wl-bingo::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 180, 0.18) 45%, rgba(255, 246, 216, 0.32) 50%, rgba(255, 236, 180, 0.18) 55%, transparent);
  transform: skewX(-18deg); animation: wl-sheen 3.6s ease-in-out infinite; }
@keyframes wl-sheen { 0%, 35% { left: -60%; } 75%, 100% { left: 130%; } }
@keyframes wl-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 211, 107, 0.35), 0 0 10px rgba(255, 211, 107, 0.15); }
  50% { box-shadow: 0 0 0 1px rgba(255, 211, 107, 0.7), 0 0 26px rgba(255, 211, 107, 0.4); } }
.wl-bingo.live { animation: none; }
.wl-bingo i { width: 16px; height: 16px; }
.wl-bingo i:nth-of-type(1) { top: 14px; left: 14%; }
.wl-bingo i:nth-of-type(2) { top: 18px; right: 13%; width: 13px; height: 13px; animation-delay: 0.8s; }
.wl-bingo i:nth-of-type(3) { bottom: 14px; right: 27%; width: 12px; height: 12px; animation-delay: 1.6s; }
.wl-bingo i:nth-of-type(4) { bottom: 18px; left: 25%; width: 11px; height: 11px; animation-delay: 0.4s; }
.wl-bingo i:nth-of-type(5) { top: 44%; left: 6%; width: 10px; height: 10px; animation-delay: 1.2s; }
.wl-bingo i:nth-of-type(6) { top: 40%; right: 5%; width: 14px; height: 14px; animation-delay: 2s; }
@media (prefers-reduced-motion: reduce) {
  .wl-bingo, .wl-bingo b, .wl-bingo::after { animation: none; }
  .wl-bingo b { -webkit-text-fill-color: #ffd36b; background: none; }
  .wl-bingo::after { display: none; }
}
/* ...without the bigger icons costing height (owner, 2026-11-22): tighter around them */
.wl-tile { min-height: 104px; padding: 10px 10px; gap: 2px; }
.wl-tile svg { margin-bottom: 2px; }
.wl-bingo { min-height: 86px; }
.wl-home { min-height: 0; padding: 10px 14px; gap: 10px; }
.wl-home svg { margin: 0; }

/* Welcome page thank-you (?via=wifi / ?via=qr; owner, 2026-11-22) */
.wl-thanks { margin: 0 auto 10px; max-width: 30em; padding: 8px 14px; border-radius: 999px; text-align: center; font-weight: 700;
  background: rgba(61, 220, 107, 0.14); border: 1px solid rgba(61, 220, 107, 0.6); color: #bff5cf; text-wrap-style: balance; }
.wl-thanks[hidden] { display: none; }
