/* The White Horse Inn, Bodle Street Green
   One stylesheet for the whole site. Colours and fonts are set at the top. */

/* 1. FONTS (self-hosted, SIL Open Font Licence) ---------------------------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* 2. SETTINGS -------------------------------------------------------------- */
:root {
  /* Colour scheme "Roof & Render": taken from the pub itself.
     Charcoal like the sign writing, warm white like the render, red like the roof tiles.
     (The variable names are kept from the first version so nothing else needs changing.) */
  --cream:      #f6f1e8;   /* page background: warm white render */
  --paper:      #fcfaf5;   /* cards */
  --ink:        #232120;   /* main text */
  --muted:      #5c5650;   /* secondary text */
  --sage-dark:  #2a2624;   /* header, footer, dark sections: charcoal */
  --sage:       #8e2f25;   /* accents and labels: roof-tile red */
  --sage-light: #e8d5b5;   /* highlights on dark: warm sand */
  --line:       #e2d8ca;
  --red:        #8e2f25;   /* main buttons */
  --red-dark:   #6f231b;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;          /* headings */
  --sans:  "Libre Franklin", "Helvetica Neue", Arial, sans-serif;   /* text and labels */
  --radius: 6px;
  --max: 1160px;
}

/* 3. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.05rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-underline-offset: 3px; }
a:hover { color: var(--sage); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--sage-dark); }
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.eyebrow { display: block; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.8rem; }
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 99; }

/* 4. BUTTONS --------------------------------------------------------------- */
.btn { display: inline-block; font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 0.95em 1.5em 0.8em; border-radius: var(--radius); background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--sage-dark); }
.btn--ghost:hover { background: var(--sage-dark); color: var(--cream); }
/* Button with a small second line, e.g. "Quiz night / Practise on one of our previous quizzes" */
.btn--sub { padding-top: 0.7em; padding-bottom: 0.6em; line-height: 1.25; }
.btn .cd-tiles { margin: 0 0 0 0.3em; vertical-align: -0.5em; font-size: 1.05em; }
/* Blue quiz button on the home page: deep blue so the brighter Countdown tiles still stand out */
.btn--quiz { color: #fff; background: linear-gradient(180deg, #1f4f93 0%, #163b72 100%); border-color: #12325f; box-shadow: 0 6px 16px -8px rgba(18,50,95,.7); }
.btn--quiz:hover { color: #fff; background: linear-gradient(180deg, #245aa6 0%, #1a4585 100%); border-color: #12325f; }
.btn--quiz { text-align: center; }
.btn--quiz .btn-quiz-word { font-size: 1.35em; font-weight: 600; letter-spacing: 0.1em; }
.btn--quiz .btn-sub { opacity: 0.85; }
.btn br + .cd-tiles { margin: 0.4em 0 0.3em; vertical-align: baseline; }   /* tiles on their own line: line up with the text */
.btn--quiz .cd-tile { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55), inset 0 2px 0 rgba(255,255,255,.3), 0 2px 0 #0b2347, 0 3px 6px -2px rgba(0,0,0,.45); }
.btn-sub { display: block; margin-top: 0.2em; font-size: 0.78rem; letter-spacing: 0.01em; text-transform: none; opacity: 0.8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* 5. NOTICE BAR (reopening) ------------------------------------------------ */
.notice { background: var(--sage-light); color: var(--sage-dark); text-align: center; font-family: var(--sans); font-size: 0.95rem; padding: 0.7rem 1rem 0.55rem; }
.notice a { color: inherit; font-weight: 600; }

/* 6. HEADER & NAV ---------------------------------------------------------- */
.site-header { background: var(--sage-dark); color: var(--cream); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--cream); text-decoration: none; }
.brand img { width: 30px; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1; }
.brand small { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-light); margin-top: 0.3rem; }
.nav-toggle { display: inline-flex; background: none; border: 1px solid rgba(243,234,225,.4); color: var(--cream); border-radius: var(--radius); padding: 0.5rem; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sage-dark); border-top: 1px solid rgba(243,234,225,.15); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 1rem 1rem; }
.site-nav a { display: block; padding: 0.7rem 0.2rem 0.55rem; font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sage-light); }
.site-nav .nav-call a { color: var(--sage-light); }
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 1.4rem; padding: 0; }
  .site-nav a { padding: 0.4rem 0 0.25rem; font-size: 0.85rem; border-bottom: 1px solid transparent; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--sage-light); }
  .site-nav .nav-call a { border: 1px solid var(--sage-light); border-radius: var(--radius); padding: 0.55rem 0.9rem 0.4rem; }
}

/* 7. SECTIONS -------------------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--dark { background: var(--sage-dark); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .eyebrow { color: var(--sage-light); }
.section--dark .muted, .section--dark .lead { color: #d9d3c9; }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
/* Page head with an illustration beside the title (quiz.html).
   Seasonal corner decorations (baubles, cobweb, tulips...) would sit on top of the
   illustration, so they are switched off here whatever the season. */
.page-head--art::after { display: none !important; }
.page-head--art .hero-grid { gap: 2rem; }
/* "and COUNTDOWN round" under the quiz title: the word sits on blue letter tiles */
.h1-sub { display: block; margin-top: 0.4em; font-family: var(--sans); font-size: 0.4em; font-weight: 600; letter-spacing: 0.04em; line-height: 1.6; color: var(--muted); }
.cd-tiles { display: inline-flex; gap: 0.1em; margin: 0 0.2em; vertical-align: -0.35em; white-space: nowrap; }
.cd-tile { display: inline-grid; place-items: center; width: 1.3em; height: 1.55em; border-radius: 3px;
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif; font-weight: 900; font-size: 1em; letter-spacing: 0; color: #fff;
  background: linear-gradient(180deg, #3a7fd0 0%, #1f5cae 55%, #184c94 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4), inset 0 2px 0 rgba(255,255,255,.25), 0 2px 0 #0f3466, 0 4px 8px -3px rgba(15,52,102,.55);
  text-shadow: 0 1px 0 rgba(0,0,0,.35); }
/* Countdown conundrums in the past quizzes: the letters and the answer on the same tiles */
.cd-tiles--conundrum, .cd-tiles--answer { display: flex; flex-wrap: nowrap; margin: 0.9rem 0 0.6rem; }
.cd-tiles--conundrum { font-size: clamp(1.15rem, 5.2vw, 1.7rem); }
.cd-tiles--answer { font-size: clamp(1rem, 4.4vw, 1.35rem); margin-bottom: 0.2rem; }
/* 90-second conundrum clock (built by js/main.js) */
.cd-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.1rem; margin-top: 1rem; }
.cd-clock { position: relative; flex: none; width: 66px; height: 66px; }
.cd-clock svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.cd-clock-track { fill: #fff; stroke: #d9e3f1; stroke-width: 4; }
.cd-clock-bar { fill: none; stroke: #1f5cae; stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 0.1s linear, stroke 0.3s; }
.cd-clock-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Arial Black", "Arial Bold", Arial, sans-serif; font-weight: 900; font-size: 1.3rem; color: #184c94; }
.cd-timer.is-ending .cd-clock-bar { stroke: var(--red); }
.cd-timer.is-ending .cd-clock-num, .cd-timer.is-done .cd-clock-num { color: var(--red); }
.cd-timer.is-ending .cd-clock { animation: cd-pulse 1s ease-in-out infinite; }
.cd-timer-btn { cursor: pointer; font-size: 0.85rem; padding: 0.85em 1.3em 0.7em; }
.cd-timer.is-running .cd-timer-btn { background: transparent; color: var(--sage-dark); border-color: var(--line); }
.cd-timer.is-running .cd-timer-btn:hover { border-color: var(--red); color: var(--red); }
.cd-timer-status { margin: 0; font-family: var(--sans); font-weight: 600; color: var(--red); }
.conundrum.is-waiting .cd-tiles--conundrum .cd-tile { color: transparent; text-shadow: none; }
.conundrum.is-revealed .cd-tiles--conundrum .cd-tile, .cd-answer .cd-tile { animation: cd-flip 0.45s ease both; }
.cd-tile:nth-child(2) { animation-delay: 0.05s; } .cd-tile:nth-child(3) { animation-delay: 0.1s; }
.cd-tile:nth-child(4) { animation-delay: 0.15s; } .cd-tile:nth-child(5) { animation-delay: 0.2s; }
.cd-tile:nth-child(6) { animation-delay: 0.25s; } .cd-tile:nth-child(7) { animation-delay: 0.3s; }
.cd-tile:nth-child(8) { animation-delay: 0.35s; } .cd-tile:nth-child(9) { animation-delay: 0.4s; }
.cd-footnote { margin: 1.2rem 0 0; font-size: 0.85rem; line-height: 1.55; color: var(--muted); }
.cd-footnote strong { color: var(--sage-dark); font-weight: 600; }
.cd-answer { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
.cd-answer-label { margin: 0; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-dark); }
.cd-answer .cd-tiles--answer { margin-top: 0.5rem; }
@keyframes cd-flip { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
@keyframes cd-pulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .conundrum.is-revealed .cd-tiles--conundrum .cd-tile, .cd-answer .cd-tile, .cd-timer.is-ending .cd-clock { animation: none; }
}
.page-head--art .hero-photo img { aspect-ratio: 5 / 4; object-fit: contain; background: #ece2d2; }

/* 8. HERO ------------------------------------------------------------------ */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-photo img { border-radius: var(--radius); box-shadow: 0 18px 40px -22px rgba(54,51,47,.6); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.hero .sub { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }

/* 9. HOURS ----------------------------------------------------------------- */
.hours { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .hours { grid-template-columns: 1fr 1fr; } }
.hours-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.section--paper .hours-card { background: var(--cream); }
.hours-card h3 { margin-bottom: 0.8rem; }
.hours-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.2rem; margin: 0; }
.hours-card dt { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.05em; padding-top: 0.2rem; }
.hours-card dd { margin: 0; }
.hours-card .note { margin: 1rem 0 0; font-size: 1rem; color: var(--muted); }
.hours-card .note + .note { margin-top: 0.5rem; }
.hours-card .dd-note { display: block; margin: 0.15rem 0 0.4rem; font-size: 0.92rem; color: var(--muted); }

/* 10. CARDS & GRIDS -------------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.section--paper .card { background: var(--cream); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card .body { padding: 1.3rem 1.4rem 1.4rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.card .tag { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sage); display: block; margin-bottom: 0.4rem; }
.feature { padding: 1.4rem 0 0; border-top: 1px solid var(--line); }
.feature h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.feature p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section--dark .feature { border-top-color: rgba(243,234,225,.2); }

/* 11. SPLIT (text + image) ------------------------------------------------- */
.split { display: grid; gap: 2rem; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split--flip > :first-child { order: 2; } }

/* 12. GALLERY -------------------------------------------------------------- */
.gallery { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .gallery--four { grid-template-columns: repeat(4, 1fr); } }   /* four photos in one row */
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.gallery figcaption { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; letter-spacing: 0.03em; }

/* 13. MENU ----------------------------------------------------------------- */
.menu-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.menu-nav a { display: inline-block; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 0.5rem 0.9rem 0.35rem; }
.menu-section { padding: 2.5rem 0 0.5rem; border-top: 1px solid var(--line); margin-top: 2.5rem; scroll-margin-top: 90px; }
.menu-section > .intro { color: var(--muted); max-width: 40em; }
/* Two newspaper-style columns: each column flows down on its own, so a long dish
   doesn't leave a gap beside or below a short one. Reads down the left column, then the right. */
.dishes { margin-top: 1.3rem; }
.dishes .dish { margin-bottom: 1.2rem; break-inside: avoid; }
@media (min-width: 820px) { .dishes { columns: 2; column-gap: 3rem; } }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-content: start; }  /* keep text at the top when a taller dish sits alongside */
.dish h3 { font-size: 1.2rem; margin: 0; color: var(--ink); }
.dish .price { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--sage-dark); white-space: nowrap; }
.dish p { grid-column: 1 / -1; margin: 0.1rem 0 0; color: var(--muted); font-size: 1.02rem; }
.dish .extra { font-family: var(--sans); font-size: 0.85rem; color: var(--sage); }
.diet { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--sage); vertical-align: middle; margin-left: 0.3rem; }
.key { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

/* 14. TIMELINE (history) --------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--sage-light); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--sage); }
.timeline .when { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.1em; color: var(--sage); display: block; }
blockquote { margin: 1.5rem 0; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 3px solid var(--sage-light); font-style: italic; color: var(--muted); }
.two-col { columns: 2 16rem; column-gap: 2.5rem; }
.two-col li { break-inside: avoid; }

/* 15. QUIZ ----------------------------------------------------------------- */
.round { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; margin-bottom: 1.4rem; }
.round h3 { margin-bottom: 0.2rem; }
.round h4 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.15; color: var(--sage-dark); margin: 0 0 0.6rem; }
.quiz-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
.quiz-picker a { display: inline-block; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--sage-dark); border: 1px solid var(--line); background: var(--cream); border-radius: 99px; padding: 0.55rem 1rem 0.4rem; }
.quiz-picker a:hover { border-color: var(--red); color: var(--red); }
.quiz-picker a[aria-current="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.quiz { scroll-margin-top: 100px; }
.quiz + .quiz { margin-top: 3rem; }   /* only matters if the script doesn't run and all quizzes show */
.quiz-title { margin-bottom: 0.2rem; }
.quiz-title + .muted { margin-bottom: 1.4rem; }
.round ol { padding-left: 1.4rem; margin: 0.8rem 0; }
.round li { margin-bottom: 0.3rem; }

/* Past quizzes, play along (built by js/main.js): players box, answer options, a row of
   buttons per player, tick/cross marks, round scores and the score bar */
.players { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem 1.1rem; margin: 0 0 1.6rem; }
.players h3 { margin: 0 0 0.2rem; }
.players .muted { margin: 0 0 0.9rem; }
/* Solo or competing */
.mode-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 0.8rem 0 1rem; }
.mode-btn { cursor: pointer; display: flex; flex-direction: column; gap: 0.3rem; text-align: left; padding: 0.9rem 1rem 0.85rem; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); }
.mode-btn strong { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; color: var(--sage-dark); }
.mode-btn .mode-desc { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.mode-btn:hover { border-color: var(--sage-dark); }
.mode-btn[aria-pressed="true"] { background: var(--sage-dark); border-color: var(--sage-dark); }
.mode-btn[aria-pressed="true"] strong { color: #fff; }
.mode-btn[aria-pressed="true"] .mode-desc { color: rgba(255,255,255,.8); }
.mode-btn[aria-pressed="true"] strong::before { content: "\2713\00a0"; color: #f2cf5b; }
.mode-warn { display: none; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; color: var(--red); }
.mode-btn.is-armed { border-color: var(--red); }
.mode-btn.is-armed .mode-warn { display: block; }
.players-team[hidden] { display: none; }
.players-team .muted { margin: 0 0 0.7rem; }
.players-note { margin: 0.6rem 0 0; font-family: var(--sans); font-weight: 600; color: var(--sage-dark); }
.players-note:empty { display: none; }
@media (max-width: 520px) { .mode-pick { grid-template-columns: 1fr; } }

/* Solo: no options or turn banner; Show the answer, then tick or cross */
.quiz-solo .round ol.opts, .quiz-solo .mc-turn { display: none; }
.mc-show { cursor: pointer; display: block; width: 100%; margin: 0.6rem 0 0; font-family: var(--sans); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: #1f4f9c; border: 0; border-radius: 99px; padding: 0.9rem 1.3rem 0.8rem; box-shadow: 0 3px 0 #163a74; }
.mc-show:hover { background: #2a5fb3; }
.mc-self { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin-top: 0.6rem; font-family: var(--sans); font-weight: 600; color: var(--sage-dark); }
.mc-self .qa-mark button { width: 2.8rem; height: 2.8rem; font-size: 1.3rem; }
.mc .mc-answer { margin-top: 0.5rem; }

.players-names { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.7rem; }
.players-names label { display: flex; flex-direction: column; gap: 0.3rem; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-dark); }
.players-names input { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.players-names input:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.players-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 1rem 0 0; }
.players-go { cursor: pointer; }
.players-note { font-family: var(--sans); font-weight: 600; color: var(--sage-dark); }

.round li:has(.mc), .round li:has(.tk) { margin-bottom: 1.3rem; }
.round ol.opts { list-style: none; padding: 0; margin: 0.5rem 0 0.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 0.5rem; counter-reset: opt; }
.round ol.opts li { counter-increment: opt; display: flex; align-items: baseline; gap: 0.55rem; margin: 0; padding: 0.4rem 0.65rem 0.35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; color: var(--ink); }
.round ol.opts li::before { content: counter(opt); font-family: var(--sans); font-weight: 700; color: var(--sage-dark); }
.round ol.opts li.is-right { background: #2f7d4a; border-color: #2f7d4a; color: #fff; font-weight: 600; }
.round ol.opts li.is-right::before { color: #fff; }
@media (max-width: 520px) { .round ol.opts { grid-template-columns: 1fr; } }
/* Picture round: each logo cut from the one picture (img/quiz-logos.jpg, a 5 x 6 grid).
   --c is the column (0-4) and --r the row (0-5). Once the script runs, the full
   sheet is hidden because every question shows its own logo. */
.logo-list > li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0.5rem 1rem; align-items: start; }
.logo-list > li > .mc { grid-column: 1 / -1; }
.logo-list > li > .opts { margin-top: 0; }
.logo-list > li > .q-head { grid-row: span 2; }
.logo-list > li > .mc-turn, .logo-list > li > .opts { grid-column: 2; }
.logo-list > li > .mc-turn { margin: 0; }
.logo-crop { display: block; width: 120px; aspect-ratio: 163 / 172; border: 1px solid var(--line); border-radius: 4px; background-color: #fff;
  background-image: url("../img/quiz-logos.jpg"); background-repeat: no-repeat; background-size: calc(1024 / 163 * 100%) auto;
  background-position: calc((99 + var(--c) * 165.6) / 861 * 100%) calc((181 + var(--r) * 199.7) / 1275 * 100%); }
.round--logos:has(.mc) .pic-sheet { display: none; }
@media (max-width: 520px) {
  .logo-list > li { grid-template-columns: 1fr; }
  .logo-list > li > .q-head { grid-row: auto; }
  .logo-list > li > .mc-turn, .logo-list > li > .opts { grid-column: 1; }
  .logo-crop { width: 110px; }
}

.mc, .tk { margin-top: 0.45rem; }
.mc-row, .cd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; padding: 0.3rem 0; }
.mc-row + .mc-row, .cd-row + .cd-row { border-top: 1px dashed var(--line); }
.mc-name { min-width: 6.5rem; max-width: 10rem; font-family: var(--sans); font-weight: 600; font-size: 0.9rem; color: var(--sage-dark); overflow-wrap: anywhere; }
.mc-picks { display: inline-flex; gap: 0.35rem; }
.mc-pick { cursor: pointer; width: 2.4rem; height: 2.4rem; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1; color: var(--sage-dark); }
.mc-pick:hover:not(:disabled) { border-color: var(--sage-dark); }
.mc-pick[aria-pressed="true"] { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }
.mc-pick:disabled { cursor: default; opacity: 0.4; }
.mc-pick[aria-pressed="true"]:disabled { opacity: 1; }
.mc-row.is-right .mc-pick[aria-pressed="true"] { background: #2f7d4a; border-color: #2f7d4a; }
.mc-row.is-wrong .mc-pick[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.mc-result { font-family: var(--sans); font-weight: 700; }
.mc-row.is-right .mc-result { color: #2f7d4a; }
.mc-row.is-wrong .mc-result { color: var(--red); }
.mc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin-top: 0.45rem; }
.mc-reveal:disabled { cursor: default; opacity: 0.45; }
.mc-reveal:not(:disabled) { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }
.mc-reveal:not(:disabled):hover { background: var(--red); border-color: var(--red); color: #fff; }
.mc-wait { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.mc-answer { margin: 0; padding: 0.4rem 0.8rem 0.35rem; background: #f3ece0; border-left: 3px solid var(--sage); border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; color: var(--ink); }
.mc-answer-label { margin-right: 0.4rem; font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-dark); }
.tk-rows { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.3rem; margin-top: 0.4rem; }
.tk-row { display: inline-flex; align-items: center; gap: 0.5rem; }
.tk-row .mc-name { min-width: 0; }
details li .tk { display: inline-block; margin: 0 0 0 0.6rem; vertical-align: middle; }
details li .tk-rows { margin-top: 0; }
@media (max-width: 560px) {
  .round { padding: 1.2rem 1rem; }
  .round > ol { padding-left: 1.2rem; }
  .mc-row, .cd-row { flex-wrap: nowrap; gap: 0.5rem; }
  .mc-name { min-width: 0; flex: 1 1 auto; font-size: 0.85rem; }
  .mc-picks { gap: 0.3rem; flex-shrink: 0; }
  .mc-pick { width: 2.25rem; height: 2.25rem; }
  .mc-result { flex-shrink: 0; min-width: 1.2em; }
  .mc-result .pts { display: none; }
  .cd-row { flex-wrap: wrap; }
}
.cd-players { margin-top: 1rem; padding-top: 0.6rem; border-top: 1px dashed var(--line); }
.cd-buzz { cursor: pointer; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: #1f4f9c; border: 0; border-radius: 99px; padding: 0.6rem 1.1rem 0.5rem; }
.cd-buzz:hover:not(:disabled) { background: #163a74; }
.cd-buzz:disabled { cursor: default; opacity: 0.35; }
.cd-row-status { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.cd-row.has-buzzed .cd-row-status { color: var(--sage-dark); font-weight: 600; }

/* Rolled-up rounds and questions (js/main.js): tap a round title to open it */
.round-toggle { display: flex; align-items: center; gap: 0.6rem 1rem; width: 100%; padding: 0; margin: 0; background: none; border: 0; text-align: left;
  font: inherit; color: inherit; cursor: pointer; }
.round-name { flex: 1 1 auto; }
.round-status { flex-shrink: 0; font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.round.is-done .round-status { color: #2f7d4a; }
.round.is-done .round-status::before { content: "\2713\00a0"; }
.round-toggle::after { content: ""; flex-shrink: 0; width: 0.55rem; height: 0.55rem; margin: 0 0.2rem 0.25rem 0; border-right: 2px solid var(--sage-dark); border-bottom: 2px solid var(--sage-dark); transform: rotate(45deg); transition: transform 0.2s; }
.round:not(.is-closed) .round-toggle::after { transform: rotate(-135deg); margin-bottom: -0.2rem; }
.round-toggle:hover .round-name { color: var(--red); }
.round.is-closed { padding-top: 1rem; padding-bottom: 1rem; margin-bottom: 0.7rem; }
.round.is-closed h4 { margin: 0; }
.round.is-closed .round-body { display: none; }
.round.is-closed:hover { border-color: var(--sage); }

/* The question in play: a raised card with the question in large bold type */
.round ol > li:has(> .mc):not(.is-closed) { margin: 0.8rem 0 1rem -0.4rem; padding: 1rem 1.1rem 1.1rem; background: #fff; border: 2px solid var(--sage-dark);
  border-radius: calc(var(--radius) + 2px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); list-style: none; }
.round ol > li:has(> .mc):not(.is-closed) > .q-head .q-text { display: inline; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.round ol > li:has(> .mc):not(.is-closed) > .q-head .q-text::before { content: counter(list-item) ". "; color: var(--red); }
.round ol.logo-list > li:has(> .mc):not(.is-closed) > .q-head .q-text::before { content: none; }
.round ol > li:has(> .mc):not(.is-closed) > .q-head:hover .q-text { color: var(--ink); }
.round ol > li:has(> .mc):not(.is-closed) .round ol.opts li, .round ol > li:has(> .mc):not(.is-closed) > ol.opts > li { font-size: 1.05rem; padding: 0.6rem 0.8rem 0.5rem; }
.round ol > li:has(> .mc):not(.is-closed) + li { border-top: 0; }
@media (max-width: 560px) {
  .round ol > li:has(> .mc):not(.is-closed) { margin-left: -0.9rem; margin-right: -0.5rem; padding: 0.8rem 0.8rem 0.9rem; }
  .round ol > li:has(> .mc):not(.is-closed) > .q-head .q-text { font-size: 1.3rem; }
}
.q-head { display: block; width: 100%; padding: 0.15rem 0; margin: 0; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.q-head:hover .q-text { color: var(--red); }
.q-sum { display: none; }
.round li.is-closed { margin-bottom: 0.15rem; }
.round li.is-closed > .opts, .round li.is-closed > .mc, .round li.is-closed > .tk, .round li.is-closed > .mc-turn { display: none; }
/* Tap an answer to choose it (players take turns), with names on the chosen answers */
/* Whose turn it is: a bold banner above the answers, a different colour per player */
.mc-turn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.7rem; margin: 0.7rem 0 0.2rem; padding: 0.65rem 1rem 0.6rem 2.6rem;
  position: relative; background: var(--turn, #1f4f9c); color: #fff; border-radius: var(--radius); box-shadow: 0 6px 14px -8px rgba(0,0,0,.45);
  animation: mc-turn-in 0.35s ease both; }
.mc-turn::before { content: ""; position: absolute; left: 1rem; top: 50%; margin-top: -0.45rem; border-left: 0.75rem solid #fff; border-top: 0.45rem solid transparent; border-bottom: 0.45rem solid transparent;
  animation: mc-turn-nudge 1.2s ease-in-out infinite; }
.mc-turn:empty { display: none; }
.mc-turn-label { flex-basis: 100%; font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.mc-turn-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; line-height: 1.1; color: #fff; overflow-wrap: anywhere; }
.mc-turn-text { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; }
.mc-turn[data-p="all"] { --turn: #2a2624; align-items: center; }
.mc-lock { cursor: pointer; display: block; width: 100%; margin: 0.3rem 0 0; font-family: var(--sans); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #2a2624; background: #f2cf5b; border: 0; border-radius: 99px; padding: 0.9rem 1.3rem 0.8rem; box-shadow: 0 3px 0 #b8952a;
  animation: mc-turn-in 0.35s ease both; }
.mc-lock:hover { background: #ffdc6a; }
.mc-lock:focus-visible { outline: 3px solid var(--sage-dark); outline-offset: 2px; }
.mc-turn-hint { flex-basis: 100%; font-family: var(--sans); font-size: 0.78rem; opacity: 0.75; }
@media (prefers-reduced-motion: reduce) { .mc-lock { animation: none; } }
.mc-turn[data-p="1"] { --turn: #b5341f; }
.mc-turn[data-p="2"] { --turn: #2f7d4a; }
.mc-turn[data-p="3"] { --turn: #7a3f8f; }
/* Each player's name in the answer rows uses their colour from the banner */
.mc-name[data-p="0"] { color: #1f4f9c; }
.mc-name[data-p="1"] { color: #b5341f; }
.mc-name[data-p="2"] { color: #2f7d4a; }
.mc-name[data-p="3"] { color: #7a3f8f; }
.opt-who span[data-p="0"] { background: #1f4f9c; }
.opt-who span[data-p="1"] { background: #b5341f; }
.opt-who span[data-p="2"] { background: #2f7d4a; }
.opt-who span[data-p="3"] { background: #7a3f8f; }
.round ol.opts li.is-right .opt-who span { background: #fff; color: #2f7d4a; }
@keyframes mc-turn-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes mc-turn-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .mc-turn, .mc-turn::before { animation: none; } }
.round ol.opts li.is-pickable { cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.round ol.opts li.is-pickable:hover { border-color: var(--sage-dark); background: #f7f2ea; }
.round ol.opts li.is-pickable:focus-visible { outline: 2px solid var(--sage); outline-offset: 1px; }
.round ol.opts li.is-picked { border-color: var(--sage-dark); }
.opt-who { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; margin-left: auto; }
.opt-who span { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; line-height: 1; padding: 0.25rem 0.45rem 0.2rem; border-radius: 99px; background: var(--sage-dark); color: #fff; white-space: nowrap; }
.round ol.opts li.is-right .opt-who span { background: #fff; color: #2f7d4a; }
.round li.is-closed.is-answered .q-text { color: var(--muted); }
.round li.is-closed .q-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; margin-top: 0.1rem; font-family: var(--sans); font-size: 0.85rem; }
.round li.is-closed .q-sum:empty { display: none; }
.q-ans { font-weight: 600; color: var(--ink); }
.q-mark.is-right { color: #2f7d4a; font-weight: 600; }
.q-mark.is-wrong { color: var(--red); }
.round ol > li.is-closed + li.is-closed { border-top: 1px dashed var(--line); padding-top: 0.15rem; }
.logo-list > li.is-closed { grid-template-columns: 1fr; }
.logo-list > li.is-closed .q-head { display: flex; align-items: center; gap: 0.8rem; }
.logo-list > li.is-closed .logo-crop { width: 52px; }
.mc-next { cursor: pointer; font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  background: var(--red); border: 1px solid var(--red); border-radius: 99px; padding: 0.5rem 1rem 0.4rem; margin-left: auto; }
.mc-next:hover { background: var(--red-dark, #8f1d1d); }
.round-foot--next { justify-content: flex-end; }
.round-next { cursor: pointer; font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  background: var(--red); border: 1px solid var(--red); border-radius: 99px; padding: 0.5rem 1rem 0.4rem; }

.qa-btn, .round-all, .quiz-reset, .mc-reveal { cursor: pointer; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sage-dark); background: var(--cream); border: 1px solid var(--line); border-radius: 99px; padding: 0.4rem 0.85rem 0.3rem; }
.qa-btn:hover, .round-all:hover, .quiz-reset:hover { border-color: var(--red); color: var(--red); }
.qa-mark { display: inline-flex; gap: 0.35rem; vertical-align: middle; }
.qa-mark button { cursor: pointer; width: 2.1rem; height: 2.1rem; display: inline-grid; place-items: center; padding: 0; font-size: 1.05rem; line-height: 1;
  background: #fff; border: 1px solid var(--line); border-radius: 50%; color: #9c958c; }
.qa-mark .qa-right:hover, .qa-mark .qa-right[aria-pressed="true"] { color: #fff; background: #2f7d4a; border-color: #2f7d4a; }
.qa-mark .qa-wrong:hover, .qa-mark .qa-wrong[aria-pressed="true"] { color: #fff; background: var(--red); border-color: var(--red); }
.qa-mark .qa-right:hover:not([aria-pressed="true"]), .qa-mark .qa-wrong:hover:not([aria-pressed="true"]) { opacity: 0.75; }
details li { margin-bottom: 0.45rem; }
.round-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.round-score { margin: 0 0 0 auto; font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }
.round-score strong { color: var(--ink); font-size: 1.15rem; }
.quiz-score { position: sticky; top: 80px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 0 0 1.4rem;
  padding: 0.6rem 0.7rem 0.6rem 1.1rem; background: var(--sage-dark); color: var(--cream); border-radius: var(--radius); box-shadow: 0 8px 20px -12px rgba(0,0,0,.5); }
.qs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; font-family: var(--sans); font-size: 0.9rem; }
.qs-list li { margin: 0; padding: 0.25rem 0.7rem 0.2rem; border-radius: 99px; background: rgba(243,234,225,.1); white-space: nowrap; }
.qs-list strong { color: var(--sage-light); font-size: 1.1rem; margin-left: 0.2rem; }
.qs-list li.is-leading { background: var(--sage-light); color: var(--sage-dark); }
.qs-list li.is-leading strong { color: var(--sage-dark); }
.qs-btns { display: flex; gap: 0.4rem; flex-shrink: 0; }
.quiz-score .quiz-reset { background: transparent; color: var(--cream); border-color: rgba(243,234,225,.35); }
.quiz-score .quiz-reset:hover { border-color: var(--sage-light); color: var(--sage-light); }
.quiz-score .quiz-reset.is-armed { background: var(--red); border-color: var(--red); color: #fff; }
.mc-joined { font-weight: 400; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 560px) {
  .quiz-score { flex-wrap: wrap; padding: 0.5rem 0.6rem; }
  .qs-list { flex: 1 1 100%; }
  .qs-btns { margin-left: auto; }
}
details { margin-top: 0.6rem; }
summary { cursor: pointer; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-dark); }
details ol { color: var(--muted); }

/* 16. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--sage-dark); color: #d9d3c9; padding: 3.5rem 0 2rem; font-size: 1.02rem; }
.site-footer a { color: var(--cream); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--sans); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-light); margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.social { display: flex; gap: 0.7rem; margin-top: 1rem; }
.social a { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--sans); font-size: 0.85rem; text-decoration: none; border: 1px solid rgba(243,234,225,.35); border-radius: 99px; padding: 0.45rem 0.9rem 0.3rem; }
.footer-base { border-top: 1px solid rgba(243,234,225,.18); margin-top: 2.5rem; padding-top: 1.2rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.03em; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; }

/* 17. SMALL HELPERS -------------------------------------------------------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.badge { border: 1px solid rgba(243,234,225,.35); border-radius: var(--radius); padding: 1rem 1.3rem; flex: 1 1 16rem; }
.badge strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--cream); font-weight: 600; }
.badge span { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.05em; color: var(--sage-light); }
.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.fact-list li:first-child { border-top: 0; }
.fact-list strong { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-dark); display: block; }

/* 18. MODERN HOME HERO (photo bleeds to the right edge) -------------------- */
.hero--bleed { position: relative; padding: 0; overflow: hidden; }
.hero--bleed .hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; box-shadow: none; }
.hero--bleed .hero-grid { padding: 2.5rem 0 3rem; }
.hero--bleed h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 0.98; margin-bottom: 0.35em; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .hero--bleed { min-height: min(82vh, 760px); display: flex; align-items: center; }
  .hero--bleed .hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
  .hero--bleed .hero-photo img { height: 100%; aspect-ratio: auto; }
  .hero--bleed .hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 0, rgba(246,241,232,0) 18%); z-index: 1; }
  .hero--bleed .hero-grid { grid-template-columns: 1fr 1fr; padding: 4rem 0; width: min(100% - 2rem, var(--max)); }
  .hero--bleed .hero-text { padding-right: 3rem; }
}
.status { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 0.55rem; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 0.45rem 0.95rem 0.3rem; margin: 0 0 1.4rem; color: var(--ink); }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #c08a2b; box-shadow: 0 0 0 3px rgba(192,138,43,.2); margin-top: -2px; }
.status.is-open .dot { background: #4f8a4a; box-shadow: 0 0 0 3px rgba(79,138,74,.2); }
.status.is-closed .dot { background: #9a4d3f; box-shadow: 0 0 0 3px rgba(154,77,63,.18); }

/* 19. FACTS STRIP (icons) -------------------------------------------------- */
.facts-strip { background: var(--sage-dark); color: var(--cream); padding: 1.6rem 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(6, 1fr); } }
.facts li { display: flex; align-items: center; gap: 0.75rem; font-family: var(--sans); font-size: 0.88rem; line-height: 1.3; letter-spacing: 0.02em; }
.facts svg { width: 34px; height: 34px; flex: none; color: var(--sage-light); }
.facts a { color: var(--cream); }

/* 20. SUNDAY ROAST BAND ---------------------------------------------------- */
.roast img { aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 18px 40px -24px rgba(54,51,47,.7); }
.price-line { font-family: var(--sans); font-size: 1rem; letter-spacing: 0.03em; }
.price-line strong { font-family: var(--serif); font-size: 1.5rem; color: var(--sage-dark); }

/* 21. MOBILE ACTION BAR ---------------------------------------------------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sage-dark); border-top: 1px solid rgba(243,234,225,.2); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.6rem 0 0.5rem; color: var(--cream); text-decoration: none; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.action-bar a + a { border-left: 1px solid rgba(243,234,225,.15); }
.action-bar svg { width: 22px; height: 22px; color: var(--sage-light); }
body { padding-bottom: 64px; }
@media (min-width: 760px) { .action-bar { display: none; } body { padding-bottom: 0; } }

/* 22. POLISH --------------------------------------------------------------- */
a.card { transition: transform .25s ease, box-shadow .25s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(54,51,47,.6); }
.card img, .gallery img { transition: transform .5s ease; }
.gallery figure { overflow: hidden; border-radius: var(--radius); }
.gallery figure:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { a.card, .card img, .gallery img { transition: none; } a.card:hover { transform: none; } .gallery figure:hover img { transform: none; } }

/* 23. REVIEWS -------------------------------------------------------------- */
.quote { margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.7rem 1.4rem; display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 1rem; padding: 0; border: 0; font-style: italic; font-size: 1.25rem; line-height: 1.45; color: var(--ink); }
.quote figcaption { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--sage); }
.quote::before { content: "\2605\2605\2605\2605\2605"; color: #c08a2b; letter-spacing: 0.15em; font-size: 0.95rem; margin-bottom: 0.6rem; }

/* 24. HEADER PLAQUE: the pub drawing from the menu, dark ink on cream (never inverted) */
.brand-plaque { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); border-radius: 4px; padding: 5px 7px; box-shadow: inset 0 0 0 1px rgba(54,51,47,.15); }
.brand .brand-plaque img { width: 62px; height: auto; }
@media (min-width: 980px) { .brand .brand-plaque img { width: 66px; } .site-header .container { min-height: 84px; } }

/* 25. Small phones: keep the pub name on one line */
@media (max-width: 440px) {
  .brand span { font-size: 1.12rem; }
  .brand small { font-size: 0.6rem; letter-spacing: 0.14em; }
  .brand .brand-plaque img { width: 54px; }
}

/* 26. SEASONAL DECORATION SLOTS
   Only used while js/season.js has a season on (html[data-season]), and empty unless the
   season's stylesheet (css/season-*.css or christmas.css) sets the matching picture:
     --sd-corner   on the top corner of info boxes, quiz rounds and reviews
     --sd-card     a little picture in the corner of event and feature card photos
     --sd-divider  a short row of pictures centred at the top of the paper-coloured bands
     --sd-menu     before each menu section heading (with --sd-menu-w for its width)
     --sd-dot      instead of the dots on the history timeline
     --sd-footer   before each footer heading (with --sd-footer-w for its width) */
html[data-season] .hours-card,
html[data-season] .round,
html[data-season] .quote { position: relative; }
html[data-season] .hours-card::after,
html[data-season] .round::after,
html[data-season] .quote::after {
  content: ""; position: absolute; top: -13px; right: 14px; width: 36px; height: 30px; pointer-events: none;
  background: var(--sd-corner, none) no-repeat center / contain;
}
html[data-season] .card { position: relative; }
html[data-season] .card::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; pointer-events: none;
  background: var(--sd-card, none) no-repeat center / contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
}
html[data-season] .section--paper { position: relative; }
html[data-season] .section--paper::before {
  content: ""; position: absolute; top: 12px; left: 50%; width: 132px; height: 28px; transform: translateX(-50%); pointer-events: none;
  background: var(--sd-divider, none) no-repeat center / contain;
}
html[data-season] .menu-section h2::before {
  content: ""; display: inline-block; width: var(--sd-menu-w, 0); height: 0.9em; margin-right: 0.35em; vertical-align: -0.08em;
  background: var(--sd-menu, none) no-repeat center / contain;
}
html[data-season] .timeline li::before {   /* --sd-dot-size makes room for the picture */
  width: var(--sd-dot-size, 12px); height: var(--sd-dot-size, 12px); left: calc(var(--sd-dot-size, 12px) / -2 - 1px);
  top: calc(0.45rem + 6px - var(--sd-dot-size, 12px) / 2); border-radius: var(--sd-dot-radius, 50%);
  background: var(--sd-dot, var(--sage)) no-repeat center / contain;
}
html[data-season] .site-footer h4::before {
  content: ""; display: inline-block; width: var(--sd-footer-w, 0); height: 1.3em; margin-right: 0.5em; vertical-align: -0.35em;
  background: var(--sd-footer, none) no-repeat center / contain;
}
