/* East London Show
   Montserrat for headings and buttons, Open Sans for reading. Both self-hosted
   variable fonts (copied from Media Sorter, licences beside the files), Latin
   subset only, so one file each covers every weight.

   Shape rule: buttons and badges are full pills, everything else (tiles, photos,
   cards) is 14px. Nothing in between.
   Colour rule: one accent, the show-ribbon yellow. Greens are the brand, from
   the society's logo. */

@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  src: url("/static/fonts/opensans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f7f2;
  --surface: #ffffff;
  --ink: #16201a;
  --muted: #4b584f;
  --line: #dde3d8;
  --forest: #14361f;       /* bands, page heads */
  --forest-2: #1c4629;
  --leaf: #2f7d3b;         /* logo green: links, list markers */
  --solid: #14361f;        /* solid button fill */
  --sun: #f4b81c;          /* the one accent */
  --sun-ink: #1d1600;
  --on-dark: #f1f5ee;
  --on-dark-muted: #c3d0c4;
  --radius: 14px;
  --wrap: 1200px;
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1510;
    --surface: #152019;
    --ink: #e7ede5;
    --muted: #a8b5aa;
    --line: #26342a;
    --forest: #122e1b;
    --forest-2: #183a22;
    --leaf: #7cc487;
    --solid: #2f7d3b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--sun); color: var(--sun-ink); padding: .5rem 1rem; border-radius: 999px; }
.skip:focus { left: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 .95rem/1 var(--display); letter-spacing: .01em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-accent { background: var(--sun); color: var(--sun-ink); }
.btn-accent:hover { background: #ffc83a; }
.btn-ghost { color: var(--on-dark); border-color: rgba(241,245,238,.7); }   /* dark backgrounds only */
.btn-ghost:hover { background: rgba(241,245,238,.12); border-color: var(--on-dark); }
.btn-solid { background: var(--solid); color: #f1f5ee; }
.btn-solid:hover { background: var(--forest-2); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line); }
.brand-mark img { width: 40px; height: auto; }
.brand-name { font: 800 1.1rem/1 var(--display); letter-spacing: -.02em; }

.menu-toggle {
  display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav a, .sub > summary {
  font: 600 .95rem/1 var(--display); color: var(--ink); text-decoration: none; cursor: pointer;
}
.nav [aria-current="page"] { color: var(--leaf); }
.sub > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.sub > summary::-webkit-details-marker { display: none; }
.sub > summary::after { content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.sub[open] > summary::after { transform: translateY(1px) rotate(-135deg); }

/* Phone and small tablet. Without JavaScript the toggle is hidden and the links
   sit in a plain stacked list under the header; with it, they drop down. */
@media (max-width: 959px) {
  .header-row { flex-wrap: wrap; }
  .menu-toggle { display: none; }
  .nav { display: flex; flex-direction: column; width: 100%; padding-bottom: 1rem; }
  .js .menu-toggle { display: grid; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1.25rem;
    box-shadow: 0 18px 30px -18px rgba(20,54,31,.35);
  }
  .js .menu-open .nav { display: flex; }
  .nav > a, .sub > summary { padding: .95rem 0; font-size: 1.05rem; }
  .sub-list { display: flex; flex-direction: column; padding: 0 0 .5rem 1rem; }
  .sub-list a { padding: .6rem 0; font-weight: 500; }
  .nav-cta { margin-top: .75rem; align-self: flex-start; }
}

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 1.75rem; }
  .sub { position: relative; }
  .sub-list {
    position: absolute; top: calc(100% + 14px); left: -1rem; min-width: 190px;
    display: flex; flex-direction: column; padding: .5rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 20px 40px -20px rgba(20,54,31,.4);
  }
  .sub-list a { padding: .65rem .75rem; border-radius: 10px; font-weight: 500; }
  .sub-list a:hover { background: var(--bg); }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(86dvh, 760px); display: flex; align-items: flex-end; color: var(--on-dark); overflow: hidden; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(9,26,14,.9) 0%, rgba(9,26,14,.62) 42%, rgba(9,26,14,.1) 78%),
    linear-gradient(0deg, rgba(9,26,14,.75) 0%, rgba(9,26,14,0) 45%);
}
@media (max-width: 767px) {
  /* Text sits over the busy middle of the photo on a phone, so darken from below. */
  .hero::before { background: linear-gradient(0deg, rgba(9,26,14,.94) 0%, rgba(9,26,14,.78) 45%, rgba(9,26,14,.2) 80%); }
}
.hero-inner { padding-top: 6rem; padding-bottom: clamp(3rem, 8vw, 5.5rem); }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; max-width: 12ch; margin-bottom: .35em; }
.eyebrow { font: 700 .8rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--sun); margin-bottom: 1rem; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 40ch; color: var(--on-dark-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .8s cubic-bezier(.16,1,.3,1) both; }
  .hero-inner > :nth-child(2) { animation-delay: .06s; }
  .hero-inner > :nth-child(3) { animation-delay: .12s; }
  .hero-inner > :nth-child(4) { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------- facts band ---------- */
.facts { background: var(--forest); color: var(--on-dark); }
.facts-grid { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .facts-grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 3rem; padding-top: 3rem; padding-bottom: 3rem; } }
.fact p { margin: 0; color: var(--on-dark-muted); }
.fact a { color: var(--sun); }
.fact-h { font: 700 .95rem/1.2 var(--display); color: var(--sun); letter-spacing: 0; margin-bottom: .7rem; }
.fact-big { font: 700 1.35rem/1.25 var(--display); color: var(--on-dark) !important; margin-bottom: .35rem !important; letter-spacing: -.01em; }
.fees { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .3rem; }
.fees li { display: flex; justify-content: space-between; gap: 1rem; max-width: 300px; }
.fees strong { font: 700 1.2rem/1.2 var(--display); color: var(--on-dark); }
.countdown { display: flex; gap: 1.25rem; }
.countdown span { display: flex; flex-direction: column; font-size: .85rem; }
.countdown b { font: 800 2.4rem/1 var(--display); color: var(--on-dark); font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.section-h { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.whats-on { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3rem); }

.bento { display: grid; gap: 14px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem;
  padding: 1.4rem; min-height: 180px; text-decoration: none; color: inherit;
}
.tile strong { font: 800 1.45rem/1.1 var(--display); letter-spacing: -.02em; }
.tile span { font-size: .95rem; }
.tile-green { background: var(--forest-2); color: var(--on-dark); }
.tile-green span { color: var(--on-dark-muted); }
.tile-sun { background: var(--sun); color: var(--sun-ink); }
.tile-photo { color: var(--on-dark); min-height: 240px; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .9s ease; }
.tile-photo img.tile-fade { opacity: 0; }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,26,14,.85) 0%, rgba(9,26,14,.15) 55%, rgba(9,26,14,0) 100%); }
.tile-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .25rem; }
.tile-text span { color: var(--on-dark-muted); }
.tile:hover img { transform: scale(1.04); }
.tile::before { content: "→"; position: absolute; top: 1.1rem; right: 1.2rem; z-index: 1; font: 700 1.2rem/1 var(--display); opacity: .75; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.tile:hover::before { transform: translateX(4px); }
.tile-ent img { object-position: 50% 35%; }
/* The collage arrives with a green frame baked into the file; a slight zoom crops it off. */
.tile-horses img { transform: scale(1.06); }
.tile-horses:hover img { transform: scale(1.1); }
@media (min-width: 768px) {
  .bento { grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 250px 250px; }
  .tile-horses { grid-row: span 2; }
  .tile { min-height: 0; }
}

.split { padding: clamp(2rem, 5vw, 3rem) 0 clamp(3.5rem, 8vw, 6rem); }
.split-grid { display: grid; gap: 2rem; align-items: center; }
.split-img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.split-text p { color: var(--muted); max-width: 44ch; }
@media (min-width: 768px) { .split-grid { grid-template-columns: 1.25fr 1fr; gap: 4rem; } }

.reach { background: var(--forest-2); color: var(--on-dark); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.reach-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.reach .section-h { margin: 0; }
.reach-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- inner pages ---------- */
.page-head { position: relative; isolation: isolate; background: var(--forest); color: var(--on-dark); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; }
.page-head h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .3em; }
.page-head .lead { font-size: 1.15rem; color: var(--on-dark-muted); max-width: 52ch; margin: 0; }
.page-head-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-head-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9,26,14,.92) 0%, rgba(9,26,14,.7) 50%, rgba(9,26,14,.35) 100%); }
.page-head-img { padding-top: clamp(4.5rem, 10vw, 7rem); }

.block { padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(1rem, 3vw, 1.5rem); }
.block:last-child { padding-bottom: clamp(3.5rem, 8vw, 5.5rem); }
.prose-block { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.prose-block > * { max-width: 70ch; }
.prose-block p { font-size: 1.05rem; }
.note { padding: 1rem 1.25rem; background: var(--surface); border-left: 4px solid var(--sun); border-radius: 0 var(--radius) var(--radius) 0; }
.small { font-size: .9rem; color: var(--muted); }
.small a { margin-right: .75rem; }

.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.stalls { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stall { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; justify-content: space-between; padding: 1.2rem 1.25rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.stall-name { font: 700 1.05rem/1.25 var(--display); }
.badge { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font: 600 .8rem/1 var(--display); }

.enquiries { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.enquiries li { display: grid; gap: .1rem; }
.enquiries li > span:not(.enq-links) { color: var(--muted); font-size: .95rem; }
.enq-links { display: flex; flex-wrap: wrap; gap: 1rem; font-weight: 600; }

.docs { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .8rem; }
.docs a { font-weight: 600; }
.bank { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.bank h3 { font-size: 1.1rem; }
.bank dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.5rem; margin: 0; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.section-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .section-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.section-copy > p:first-child { font-size: 1.05rem; }
.section-copy .section-h { margin-top: 1.75rem; font-size: 1.4rem; }
.section-figure { margin: 0; }
.section-figure img { border-radius: var(--radius); box-shadow: 0 24px 50px -30px rgba(20,54,31,.5); }
.section-figure figcaption { margin-top: .6rem; font-size: .9rem; color: var(--muted); }

.people { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .9rem; max-width: 520px; }
.people li { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 1rem; }
.people-role { grid-column: 1; font-size: .85rem; color: var(--muted); }
.people-name { grid-column: 1; font-weight: 600; }
.people-links { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.people-phone { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.people-wa { font-size: .85rem; font-weight: 600; color: var(--leaf); }

.office { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.office p { margin: 0; }
.office-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact-groups { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .contact-groups { grid-template-columns: 1fr 1fr; column-gap: 4rem; } }
.contact-group .section-h { font-size: 1.35rem; padding-bottom: .6rem; border-bottom: 3px solid var(--sun); display: inline-block; }

.acts { display: grid; gap: 14px; }
@media (min-width: 768px) { .acts { grid-template-columns: 1fr 1.4fr; grid-auto-rows: 260px; } .act-photo:first-child { grid-row: span 2; } }
.act { position: relative; overflow: hidden; border-radius: var(--radius); display: flex; align-items: flex-end; min-height: 240px; }
.act-photo { color: var(--on-dark); }
.act-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,26,14,.85) 0%, rgba(9,26,14,0) 55%); }
.act-plain { background: var(--sun); color: var(--sun-ink); }
.act-text { position: relative; z-index: 1; padding: 1.5rem; }
.act-text h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .25rem; }
.act-text p { margin: 0; }
.act-photo .act-text p { color: var(--on-dark-muted); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem; align-items: baseline; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--forest-2); color: var(--on-dark); font: 700 .95rem/1 var(--display); transform: translateY(-.35rem); }
.coords .fact-big { color: var(--ink) !important; font-variant-numeric: tabular-nums; margin-bottom: 1.25rem !important; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-h { font-size: .95rem; font-weight: 700; margin-bottom: .6rem; letter-spacing: 0; }
.site-footer p { margin: 0; color: var(--muted); }
.site-footer strong { color: var(--ink); }

/* ---------- the house credit ----------
   Shared with the other EHTech sites: same markup, same credit.js, same
   behaviour. Only the two colours are this site's, and both come from the
   custom properties so the dark theme follows for free. The animation swaps
   text only - the link's resting size never changes, so the footer cannot
   reflow while it types. */
.colophon {
  border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.2rem;
  text-align: center;
}
.credit {
  display: inline-block; color: var(--muted); text-decoration: none;
  font-size: .85rem; transition: color .18s ease;
}
.credit b { color: var(--leaf); font-weight: 700; transition: color .18s ease; }
.credit:hover, .credit:hover b { color: var(--ink); }
.credit:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 2px; }

/* The whole string stays in the DOM for assistive tech; the typed spans are
   aria-hidden, so the accessible name is "Built by EHTech" however much of it
   is on screen at the time. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* The caret exists only while the script is driving the typing. */
.credit-caret { display: none; }
.js-type .credit-caret {
  display: inline-block; width: 1px; height: 1em; margin-left: 2px;
  background: var(--leaf); vertical-align: -2px;
  animation: caret-blink 1s steps(2, start) infinite;
}
.js-type .credit.is-idle .credit-caret { animation: none; opacity: 1; }
@keyframes caret-blink { 0% { opacity: 1 } 50% { opacity: 0 } 100% { opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  .js-type .credit-caret { display: none; }
}

/* ---------- scroll reveal ----------
   Pure CSS, driven by the element's own scroll position. Browsers without
   scroll-driven animations simply show everything, so content can never be left
   hidden by a script that did not run. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(24px); } }
  }
}

/* ---------- admin link, top right of every public page ---------- */
.admin-link {
  font: 600 .85rem/1 var(--display); color: var(--muted); text-decoration: none;
  padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
}
.admin-link:hover { color: var(--ink); border-color: var(--muted); }
@media (max-width: 959px) {
  .brand { order: 1; margin-right: auto; }
  .admin-bar { order: 2; }
  .admin-link { order: 2; }
  .menu-toggle { order: 3; }
  .nav { order: 4; }
}
@media (min-width: 960px) { .nav { margin-left: auto; } .admin-link { margin-left: 1.25rem; } }

/* ---------- exhibitor stand tiles ---------- */
.stalls > li { display: flex; }
.stall { width: 100%; text-decoration: none; color: var(--ink); }
.stall-action { font: 600 .85rem/1.2 var(--display); color: var(--muted); }
.stall-link { cursor: pointer; transition: transform .2s cubic-bezier(.16,1,.3,1), border-color .2s, background-color .2s, box-shadow .2s; }
.stall-link .stall-action { color: var(--leaf); }
.stall-link:hover, .stall-link:focus-visible {
  border-color: var(--sun); background: color-mix(in srgb, var(--sun) 14%, var(--surface));
  transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(20,54,31,.45);
}
.stall-link:hover .stall-action { color: var(--ink); }
.stall-link:active { transform: translateY(0) scale(.99); }
.stall-waiting { opacity: .75; }

/* ---------- section page tiles ---------- */
.section-intro > p { max-width: 70ch; font-size: 1.05rem; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-text { padding: 1.2rem 1.3rem 1.3rem; }
.card-text h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: .4rem; }
.card-text p { margin: 0 0 .6rem; color: var(--muted); }
.card-plain { background: var(--forest-2); border-color: transparent; color: var(--on-dark); }
.card-plain .card-text p { color: var(--on-dark-muted); }

/* ---------- admin ---------- */
.admin .site-header { position: static; }
.admin-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.admin-bar form { margin: 0; }
.admin-bar-link { font-weight: 600; }
.admin-who { font-size: .9rem; color: var(--muted); display: inline-flex; gap: .5rem; align-items: center; }
a.admin-who { text-decoration: none; }
a.admin-who:hover { color: var(--ink); text-decoration: underline; }
.admin-nav { background: var(--forest); }
.admin-nav .wrap { display: flex; flex-wrap: wrap; gap: .25rem; padding-top: .4rem; padding-bottom: .4rem; }
.admin-nav a { color: var(--on-dark-muted); text-decoration: none; font: 600 .88rem/1 var(--display); padding: .6rem .8rem; border-radius: 999px; white-space: nowrap; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { background: var(--forest-2); color: var(--on-dark); }
.admin-main { padding-top: 2rem; padding-bottom: 4rem; }
.admin-main h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.admin-main h2 { font-size: 1.25rem; font-weight: 800; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin: 0 0 1.25rem; }
.stack { display: grid; gap: 1rem; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.field { display: grid; gap: .35rem; align-content: start; }
.label { font: 600 .9rem/1.2 var(--display); }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
input:not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: .65rem .8rem;
}
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--sun) 60%, transparent); outline-offset: 1px; border-color: var(--sun); }
input[type=file] { font-size: .9rem; }
.check { display: inline-flex; gap: .5rem; align-items: center; font-size: .95rem; }
.alert { padding: .85rem 1.1rem; border-radius: 10px; margin: 0 0 1.25rem; border-left: 4px solid var(--leaf); background: var(--surface); }
.alert-error { border-left-color: #c0392b; }
.alert-warn { border-left-color: var(--sun); }
.btn-danger { background: transparent; color: #b3261e; border-color: #e3b5b0; }
.btn-danger:hover { background: #fbeae8; }
@media (prefers-color-scheme: dark) { .btn-danger { color: #f2a59e; border-color: #6b2f2a; } .btn-danger:hover { background: #3a1c19; } }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.icon-btn { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; font-size: 1rem; }
.icon-btn:hover { border-color: var(--muted); }
.edit-row { display: grid; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.panel.edit-row { padding: 1.4rem; }
.edit-fields { display: grid; gap: .9rem; align-items: end; }
@media (min-width: 900px) {
  .contact-edit { grid-template-columns: 1.1fr 1.1fr .8fr auto auto; }
  .contact-edit.has-section { grid-template-columns: 1fr 1fr .8fr .9fr auto auto; }
  .edit-row { grid-template-columns: 1fr auto; align-items: end; }
}
.row-controls { display: flex; gap: .4rem; align-items: center; }
.row-controls form { margin: 0; }
details.add { margin-top: 1rem; }
details.add summary { cursor: pointer; font: 700 .95rem/1.2 var(--display); color: var(--leaf); padding: .5rem 0; }
details.add form { margin-top: .75rem; }
.thumb { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.fees-edit { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; display: grid; gap: .6rem; }
.fees-edit legend { font: 600 .9rem/1 var(--display); padding: 0 .4rem; }
.grid-fee { display: grid; grid-template-columns: 1fr 140px; gap: .6rem; }
.admin-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 1.5rem; }
.admin-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.admin-card:hover { border-color: var(--sun); transform: translateY(-2px); }
.auth-card { max-width: 440px; margin: 2rem auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.auth-wide { max-width: 560px; }
.qr { background: #fff; padding: .75rem; border-radius: 10px; width: 220px; margin: 1rem 0; }
.qr svg { width: 100%; height: auto; display: block; }
.secret { word-break: break-all; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; font-size: 1.05rem; }
.plain-steps { padding-left: 1.2rem; }
.link-box { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font: 600 .85rem/1.2 var(--display); color: var(--muted); padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.table td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
/* The flex box sits inside the cell: display:flex on the <td> itself stops it
   being a table cell, and its border and height fall out of line with the row. */
.table .actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.table .actions form { margin: 0; }
.table + .hint { margin: 1rem 0 0; }
.badge-good { background: color-mix(in srgb, var(--leaf) 16%, var(--surface)); color: var(--ink); }
.badge-bad { background: #fbeae8; color: #8a1c14; border-color: #e3b5b0; }
@media (max-width: 720px) { .table thead { display: none; } .table tr { display: grid; padding: .6rem 0; border-bottom: 1px solid var(--line); } .table td { border: 0; padding: .2rem 0; } }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }

/* ---------- photo viewer ---------- */
.card-img { cursor: zoom-in; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 18, 10, .9); }
.lightbox img { display: block; max-width: min(94vw, 1600px); max-height: 86dvh; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.lightbox-close {
  position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 1;
  width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--on-dark); color: var(--forest);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.lightbox-close:hover { background: #fff; }
.lightbox-close:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* ---------- home page video tile ---------- */
.hero-reel {
  position: absolute; z-index: 1; right: 16px; top: 16px;
  width: min(30vw, 140px); aspect-ratio: 9 / 16;
  border-radius: 12px; overflow: hidden; background: #0b1a10;
  border: 2px solid rgba(241, 245, 238, .85); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
}
.hero-reel-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-reel-toggle {
  position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(9, 26, 14, .72); color: #fff;
}
.hero-reel-toggle:hover { background: rgba(9, 26, 14, .92); }
.hero-reel-toggle svg[hidden] { display: none; }
.hero-reel-toggle:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
/* Short phone screens: the banner text needs the room. */
@media (max-width: 959px) and (max-height: 640px) { .hero-reel { display: none; } }
@media (min-width: 960px) {
  .hero-reel {
    top: auto; right: clamp(24px, 4vw, 64px); bottom: clamp(28px, 5vw, 56px);
    width: clamp(200px, 19vw, 270px); border-radius: 16px;
  }
  .hero-reel-toggle { right: 12px; bottom: 12px; width: 40px; height: 40px; }
}

/* ---------- exhibitors photo gallery ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery li { margin: 0; }
.gallery-img { display: block; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.gallery-img:hover img { transform: scale(1.03); }
.gallery .small { margin: .45rem 0 0; }
