/* North Devon Beekeepers */

:root {
  color-scheme: light;
  --ink: #1d1408;
  --ink-2: #33270f;
  --text: #2b2114;
  --muted: #6b5b43;
  --line: #e2d6bd;
  --cream: #faf5ea;
  --cream-2: #f2e9d6;
  --paper: #fffdf8;
  --honey: #e9a20c;
  --honey-2: #f5b82e;
  --honey-ink: #8a5a00;
  --alert: #b23a1c;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; color: var(--ink); letter-spacing: -0.01em; font-variation-settings: "SOFT" 100, "WONK" 0; }
h2 em { font-style: italic; font-weight: 500; color: var(--honey-ink); font-variation-settings: "SOFT" 100, "WONK" 1; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--honey); color: var(--ink); padding: 10px 16px; border-radius: 4px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.3em; border: 0; border-radius: 4px; font: 600 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-honey:hover { background: var(--honey-2); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-2); }
.btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .7); }
.btn-line:hover { background: rgb(255 255 255 / .1); }
.btn-line-dark { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line-dark:hover { background: var(--ink); color: var(--cream); }

/* ---------- Nav (always solid) ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); background: var(--ink); color: var(--cream); border-bottom: 1px solid rgb(255 255 255 / .06); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { width: 34px; height: 34px; fill: var(--honey); flex: none; }
.brand-mark .brand-cell { fill: var(--ink); }
.brand-text { font: 600 1.42rem/1 var(--serif); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-links a { text-decoration: none; font-size: .93rem; color: rgb(250 245 234 / .82); white-space: nowrap; }
.nav-links a:hover { color: #fff; text-decoration: underline; }
.nav-links .nav-cta { color: var(--ink); background: var(--honey); padding: .55em 1em; border-radius: 4px; font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--honey-2); text-decoration: none; color: var(--ink); }
.nav-toggle { display: none; }
/* Phones: the name goes on two lines ("North Devon" / "Beekeepers Association") so the menu button keeps its room. */
@media (max-width: 480px) { .brand { min-width: 0; } .brand-text { font-size: 1.02rem; line-height: 1.12; } .brand-line { display: block; white-space: nowrap; } .brand-mark { width: 28px; height: 28px; } .nav-toggle { flex: none; } }
/* Mid-size screens: the name goes on two lines so the menu fits on one. Below 1140px the menu folds into a button. */
@media (min-width: 1141px) and (max-width: 1340px) { .brand-line { display: block; } .brand-text { font-size: 1.22rem; line-height: 1.08; } }
@media (max-width: 1140px) {
  .nav-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; }
  .nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--ink); border-bottom: 1px solid rgb(255 255 255 / .08); display: none; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .nav-links .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: grid; align-items: end; margin-top: var(--nav-h); color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-slide, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.hero-slide { opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-active { opacity: 1; animation: kenburns 14s ease-out both; }
.hero-media.has-video .hero-slide { display: none; }
@keyframes kenburns { from { transform: scale(1.1) translate(1%, 1%); } to { transform: scale(1) translate(0, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgb(20 14 5 / .9) 0%, rgb(20 14 5 / .78) 42%, rgb(20 14 5 / .35) 68%, rgb(20 14 5 / .08) 100%),
  linear-gradient(0deg, rgb(20 14 5 / .72) 0%, rgb(20 14 5 / .25) 40%, rgb(20 14 5 / 0) 65%); }
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 11vh, 120px); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--honey-2); margin-bottom: 18px; }
.hero-title { color: #fff; font-size: clamp(3rem, 9vw, 7.4rem); font-weight: 600; line-height: .95; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; }
.hero-title em { font-style: italic; font-weight: 500; color: var(--honey-2); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero-lede { max-width: 44ch; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgb(255 255 255 / .9); margin-bottom: 28px; text-shadow: 0 1px 12px rgb(0 0 0 / .4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 32px; width: 26px; height: 42px; border-radius: 18px; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .55); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { opacity: 0; } }
.js .hero-title .line > span { animation: rise 1s cubic-bezier(.2,.8,.2,1) both; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.js .eyebrow, .js .hero-lede, .js .hero-actions { animation: fadeup .9s .35s cubic-bezier(.2,.8,.2,1) both; }
.js .hero-lede { animation-delay: .45s; }
.js .hero-actions { animation-delay: .55s; }
@keyframes rise { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeup { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 700px) {
  .hero { min-height: 82svh; }
  .hero-shade { background: linear-gradient(0deg, rgb(20 14 5 / .92) 0%, rgb(20 14 5 / .65) 45%, rgb(20 14 5 / .25) 100%); }
  .scroll-cue { display: none; }
}

/* ---------- Bees ---------- */
[data-bee] { pointer-events: none; }
.bee-svg { width: 100%; height: 100%; overflow: visible; }
.bee-svg .body { fill: var(--honey-2); }
.bee-svg .stripes rect, .bee-svg .head, .bee-svg .sting { fill: var(--ink); }
.bee-svg .eye { fill: #fff; }
.bee-svg .pupil { fill: var(--ink); }
.bee-svg .antenna { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.bee-svg .antenna-tip { fill: var(--ink); }
.bee-svg .wing { fill: rgb(255 255 255 / .75); stroke: rgb(29 20 8 / .3); stroke-width: 1; transform-box: fill-box; transform-origin: 50% 100%; animation: flap .09s linear infinite alternate; }
.bee-svg .wing-front { animation-delay: .045s; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
.bee-flip, .bee-inner { width: 100%; height: 100%; }
.bee-inner { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- Intro ---------- */
.intro { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0; }
.intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.intro-text { font: 400 clamp(1.35rem, 2.3vw, 1.8rem)/1.4 var(--serif); color: var(--ink); margin: 0; }
.intro-facts { margin: 0; display: grid; gap: 18px; }
.intro-facts div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.intro-facts dt { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--honey-ink); padding-top: 3px; }
.intro-facts dd { margin: 0; }
@media (max-width: 800px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--cream-2); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Cards (equal size) ---------- */
.cards { display: grid; grid-template-columns: repeat(var(--cards, 3), 1fr); grid-template-rows: auto auto 1fr auto auto; gap: 0 clamp(16px, 2.2vw, 28px); align-items: stretch; }
.card { display: grid; grid-template-rows: subgrid; grid-row: span 5; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { display: grid; grid-template-rows: subgrid; grid-row: span 4; padding: 22px 22px 24px; }
.card h3 { margin-bottom: 10px; }
.card-body > p { color: var(--text); }
.card-detail { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; }
.card-link { justify-self: start; margin-top: 10px; font-weight: 600; color: var(--ink); text-decoration-color: var(--honey); text-decoration-thickness: 2px; }
.card-link::after { content: " →"; }
.card-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin: 10px 0 0; }
.card-links .card-link { margin-top: 0; }
.card-link-quiet { font-weight: 500; color: var(--muted); }
.card-link-quiet::after { content: none; }
/* Whole card opens its page: the "Find out more" link stretches over the card (links can't hold other
   links), and the card's other links sit above it so they still work. No page = no stretch. */
.card { position: relative; transition: box-shadow .2s ease, border-color .2s ease; }
.card-link[data-page]::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-body a:not([data-page]) { position: relative; z-index: 2; }
.card:has(a[data-page]) { cursor: pointer; }
.card:has(a[data-page]):hover { border-color: var(--honey); box-shadow: 0 10px 28px rgb(29 20 8 / .12); }
.card:has(a[data-page]):hover .card-link[data-page] { text-decoration-thickness: 3px; }
@supports selector(:has(a)) {
  .card:has(a[data-page]:focus-visible) { outline: 3px solid var(--honey); outline-offset: 3px; }
  .card-link[data-page]:focus-visible { outline: none; }
}
@media (max-width: 900px) {
  /* side-scrolling row of cards on small screens */
  .cards { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 4px var(--gutter) 20px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 min(82vw, 360px); scroll-snap-align: start; display: flex; flex-direction: column; grid-template-rows: none; }
  .card-body { display: flex; flex-direction: column; flex: 1; grid-template-rows: none; }
  .card-detail { margin-top: auto; }
  .cards-hint { display: block; }
}
.cards-hint { display: none; margin: 0 0 10px; font-size: .85rem; color: var(--muted); }

/* ---------- Bento gallery ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 19vw, 250px); gap: clamp(10px, 1.4vw, 18px); }
.tile { position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: var(--ink); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.tile:hover img { transform: scale(1.05); }
.tile-xl { grid-column: span 2; grid-row: span 2; }
.tile-tall { grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.tile-hex { border-radius: 0; background: transparent; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.tile figcaption { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; color: #fff; font-size: .9rem; line-height: 1.4; background: linear-gradient(0deg, rgb(20 14 5 / .85), transparent); transform: translateY(35%); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; }
.tile figcaption strong { display: block; font: 600 1.15rem/1.15 var(--serif); margin-bottom: 4px; }
.tile:hover figcaption, .tile:focus-within figcaption, .tile-xl figcaption { transform: none; opacity: 1; }
.tile-hex figcaption { text-align: center; padding-inline: 22%; }
@media (hover: none) { .tile figcaption { transform: none; opacity: 1; } }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; grid-auto-flow: dense; } }

/* ---------- Where we are ---------- */
.where { position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 9vw, 112px) 0 28px; background: var(--ink); color: #fff; }
.where-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -2; }
.where-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(20 14 5 / .86) 0%, rgb(20 14 5 / .6) 50%, rgb(20 14 5 / .3) 100%); }
.where-grid { position: relative; min-height: clamp(520px, 60vw, 720px); display: grid; align-items: center; }
.where-copy { position: relative; z-index: 1; max-width: 520px; }
.where h2 { color: #fff; margin-bottom: 14px; }
.where h2 em { color: var(--honey-2); }
.where-copy p { color: rgb(255 255 255 / .86); max-width: 44ch; }
.towns { font-size: .92rem; color: rgb(255 255 255 / .7) !important; line-height: 1.8; }
.where-art { position: absolute; inset: 0 0 0 40%; z-index: 0; pointer-events: none; }
.where-map { width: 100%; height: 100%; opacity: .9; }
.where-map .coast { fill: none; stroke: rgb(255 255 255 / .8); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.where-map .town circle { fill: var(--cream); r: 6; stroke: var(--ink); stroke-width: 1.5; }
.where-map text { font: 600 19px var(--sans); fill: #fff; paint-order: stroke; stroke: rgb(20 14 5 / .75); stroke-width: 4px; stroke-linejoin: round; }
.where-map .apiary circle { fill: var(--honey); stroke: var(--ink); stroke-width: 1.5; }
.where-map .apiary .ring { fill: none; stroke: var(--honey); stroke-width: 2.5; opacity: .85; }
.where-map .apiary text { font-weight: 600; fill: var(--honey-2); }
@media (max-width: 900px) {
  .where-shade { background: rgb(20 14 5 / .78); }
  .where-art { inset: 0; }
  .where-map { opacity: .5; }
  .where-map text { display: none; }
}
.muted-light { font-size: .9rem; color: rgb(255 255 255 / .6) !important; }
.photo-credit { margin-top: 32px; margin-bottom: 0; font-size: .74rem; color: rgb(255 255 255 / .5); }
.photo-credit a { color: inherit; }
}

/* ---------- Diary ---------- */
.diary-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.events li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.events time { font: 600 1.05rem/1.4 var(--serif); color: var(--ink); }
.events h3 { font-size: 1.2rem; margin-bottom: 4px; }
.events p { margin: 0; color: var(--muted); font-size: .96rem; }
.events a { color: var(--ink); font-weight: 600; text-decoration-color: var(--honey); text-decoration-thickness: 2px; }
.events .open time { color: var(--honey-ink); }
.events p a + a { margin-left: .7em; }
.events h3 a.event-title { font-weight: inherit; text-decoration: none; }
.events h3 a.event-title:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.events li.has-pic { grid-template-columns: 140px 1fr 44px; }
/* New-year divider (site.js eventsHtml): a dashed line in place of the row border, year sitting on it. */
.events li:has(+ .year-break) { border-bottom: 0; }
.events li.year-break { display: block; position: relative; height: 0; padding: 0; margin: 14px 0; border-bottom: 0; border-top: 1px dashed var(--honey-ink); }
.events li.year-break span { position: absolute; left: 0; top: 0; transform: translateY(-50%); padding-right: 12px; background: var(--cream); font: 600 .85rem/1 var(--sans); letter-spacing: .08em; color: var(--honey-ink); }
.event-pic { width: 44px; height: auto; display: block; align-self: center; margin-block: -6px; }
.event-pic .pin { fill: var(--paper); }
.event-pic .band { fill: var(--honey); }
.event-pic .pin-line, .event-pic .ball, .event-pic .ground { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.event-pic .ball { fill: var(--honey-2); }
.event-pic .ground { stroke: var(--line); stroke-width: 2; }
.event-pic .shine { fill: #fff; opacity: .7; }
.event-pic .k, .event-pic .h, .event-pic .h2, .event-pic .g, .event-pic .d, .event-pic .l { stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.event-pic .k { fill: var(--paper); }
.event-pic .h { fill: var(--honey); }
.event-pic .h2 { fill: var(--honey-2); }
.event-pic .g { fill: #6f8a3c; }
.event-pic .d { fill: var(--ink); }
.event-pic .l { fill: none; }
.event-pic .f { fill: var(--ink); }
.event-pic .hb { fill: var(--honey); }
.event-pic .w { fill: var(--paper); fill-opacity: .85; stroke: var(--ink); stroke-width: 1.4; }
.event-pic .t { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; opacity: .55; }
.event-pic .s { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; opacity: .8; }
.event-pic .q { fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.event-pic .leg { fill: none; stroke: var(--honey); stroke-width: 2; stroke-linecap: round; }
.event-pic .c { fill: var(--paper); stroke: var(--ink); stroke-width: .9; stroke-opacity: .6; }
.event-pic .ch { fill: var(--honey-2); }
.events li.has-photo { grid-template-columns: 140px 1fr 76px; }
.event-photo { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; display: block; align-self: center; margin-block: -6px; background: var(--cream-2); }
@media (max-width: 800px) {
  .diary-grid { grid-template-columns: 1fr; }
  .events li { grid-template-columns: 1fr; gap: 2px; }
  .events li.has-pic { grid-template-columns: 1fr 48px; column-gap: 16px; }
  .events li.has-pic .event-pic { grid-column: 2; grid-row: 1 / span 2; width: 40px; }
  .events li.has-photo { grid-template-columns: 1fr 64px; column-gap: 16px; }
  .events li.has-photo .event-photo { grid-column: 2; grid-row: 1 / span 2; width: 64px; height: 64px; }
}

/* ---------- Register ---------- */
/* Register, Help and Membership share one 50/50 split and gap, so their right-hand boxes (form, Asian
   hornet card, fees) line up down the page. The left column gets extra room so its text doesn't crowd the box. */
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.2vw, 28px); align-items: start; }
@media (min-width: 861px) { .register-grid > :first-child, .membership-grid > :first-child { padding-right: clamp(0px, 3vw, 36px); } }
.register-intro h2 { margin-bottom: 14px; }
.register-intro a { color: var(--ink); }
.register-intro { display: flex; flex-direction: column; align-self: stretch; }
.comb-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 16px; padding: 24px 0; }
.comb { width: min(100%, 300px); overflow: visible; }
.cell { fill: #fff; stroke: var(--cream-2); stroke-width: 2.5; transition: fill .45s; }
.cell.filled { fill: var(--honey); }
.comb.complete .cell { fill: var(--honey-2); animation: cellpop .5s ease both; animation-delay: calc(var(--i) * 40ms); transform-box: fill-box; transform-origin: center; }
@keyframes cellpop { 50% { transform: scale(1.1); } }
.comb-label { margin: 14px 0 0; font-size: .88rem; color: var(--muted); }
.form-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 3.4vw, 36px); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; padding: 0; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid #cdbf9f; border-radius: 4px; padding: 11px 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { outline: none; border-color: var(--honey-ink); box-shadow: 0 0 0 3px rgb(233 162 12 / .25); }
textarea { resize: vertical; min-height: 84px; }
.field.invalid input, .field.invalid textarea { border-color: var(--alert); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #cdbf9f; border-radius: 4px; background: #fff; cursor: pointer; font-size: .95rem; transition: border-color .15s, background .15s; }
.choice input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); flex: none; }
.choice:has(input:checked) { border-color: var(--ink); background: #fbf3df; box-shadow: inset 0 0 0 1px var(--ink); }
.field.invalid .choice { border-color: var(--alert); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--muted); margin: 4px 0 20px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.consent.invalid { color: var(--alert); }
.form-error { background: #fbe9e3; color: #85260f; padding: 10px 12px; border-radius: 4px; font-size: .95rem; }
.submit-row { position: relative; display: flex; align-items: center; }
.btn-submit { min-width: 160px; }
.btn-submit[disabled] { opacity: .7; cursor: progress; }
.send-bee { position: absolute; left: 0; top: 0; width: 34px; height: 28px; opacity: 0; z-index: 3; }
.success h3 { font-size: 1.8rem; margin-bottom: 10px; }
.success:focus { outline: none; }
.success a { color: var(--ink); }
@media (max-width: 860px) { .register-grid { grid-template-columns: 1fr; } .comb-wrap { flex-direction: row; justify-content: flex-start; gap: 18px; padding: 8px 0; } .comb { width: 96px; } .comb-label { margin: 0; } }
@media (max-width: 520px) { .row-2, .choices { grid-template-columns: 1fr; } .row-2 { gap: 0; } }

/* ---------- Help (swarm / hornet) ---------- */
.help-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto; gap: 0 clamp(16px, 2.2vw, 28px); }
.help-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; position: relative; overflow: hidden; isolation: isolate; border-radius: 6px; padding: clamp(26px, 3.6vw, 44px); }
.help-card > :not(.card-photo) { max-width: 62%; }
.help-card h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 12px; }
.help-card .card-photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.help-card::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.steps { margin: 16px 0 24px; padding-left: 1.3em; display: grid; gap: 8px; align-content: start; }
.steps li::marker { font-weight: 700; }
.steps a { color: inherit; }
.help-foot { align-self: start; }
.help-small { font-size: .88rem; margin: 14px 0 0; opacity: .8; }
.help-small a { color: inherit; }
.photo-credit-sm { font-size: .72rem; opacity: .7; margin: 8px 0 0; }
.photo-credit-sm a { color: inherit; }
/* Badges sit side by side, level with the swarm card's button (min-height = .btn height), shrinking
   to ~36px before they wrap; Apple's badge guidance wants ~40px, so don't let them go much smaller. */
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 2.7rem; }
.store-links a { display: block; line-height: 0; flex: 1 1 120px; max-width: 135px; }
.store-links img { width: 100%; height: auto; display: block; }
.help-swarm { background: var(--honey); color: var(--ink); }
.help-swarm .card-photo { object-position: 70% 40%; }
.help-swarm::after { background: linear-gradient(90deg, var(--honey) 0%, var(--honey) 44%, rgb(233 162 12 / .9) 58%, rgb(233 162 12 / .35) 80%, rgb(233 162 12 / .15) 100%); }
.help-hornet { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--alert); }
.help-hornet .card-photo { object-position: 15% 50%; transform: scaleX(-1); }
.help-hornet::after { background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 42%, rgb(255 253 248 / .9) 56%, rgb(255 253 248 / .3) 78%, rgb(255 253 248 / .1) 100%); }
@media (max-width: 860px) {
  .help-grid { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 20px; }
  .help-card { display: block; padding-top: 0; }
  .help-card::after { display: none; }
  .help-card > :not(.card-photo) { max-width: none; }
  .help-card .card-photo { position: static; height: 200px; width: calc(100% + 2 * clamp(26px, 3.6vw, 44px)); max-width: none; margin: 0 calc(-1 * clamp(26px, 3.6vw, 44px)) 20px; transform: none; object-position: 50% 45%; }
}

/* ---------- Membership ---------- */
/* Same columns and gap as .register-grid / .help-grid (see the note at .register-grid). */
.membership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.2vw, 28px); align-items: start; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 1px solid var(--line); }
.perks li { padding: 10px 0 10px 20px; border-bottom: 1px solid var(--line); position: relative; }
.perks li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--honey); }
.fees { align-self: end; background: var(--ink); color: var(--cream); border-radius: 6px; padding: clamp(24px, 3vw, 34px); }
.fees h3 { color: var(--cream); margin-bottom: 14px; }
.fees table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.fees th, .fees td { padding: 11px 0; border-bottom: 1px solid rgb(255 255 255 / .12); text-align: left; font-weight: 400; }
.fees td { text-align: right; font: 600 1.25rem var(--serif); }
.fees-note { font-size: .85rem; color: rgb(250 245 234 / .65); }
.fees .btn { width: 100%; }
@media (max-width: 860px) { .membership-grid { grid-template-columns: 1fr; } .perks { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgb(250 245 234 / .72); padding: 56px 0 24px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer .brand { color: var(--cream); margin-bottom: 14px; }
.footer-grid p { max-width: 48ch; }
.footer h4 { font: 600 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--honey); margin: 6px 0 12px; }
.footer a { color: var(--cream); }
.footer-base { display: grid; gap: 6px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .8rem; }
.footer-base p { margin: 0; }
.footer-base .credits { color: rgb(250 245 234 / .38); font-size: .74rem; }
.footer-base .credits a { color: inherit; text-decoration-color: rgb(250 245 234 / .25); }
.preview-tag { background: rgb(233 162 12 / .2); color: var(--honey-2); padding: 1px 7px; border-radius: 3px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Social icons ---------- */
.social { display: grid; grid-template-columns: max-content; gap: 10px; margin: 0; padding: 0; list-style: none; }
.success .social { grid-template-columns: repeat(2, max-content); }
.social a { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 4px; text-decoration: none; background: rgb(255 255 255 / .08); color: var(--cream); font-size: .92rem; }
.social a:hover { background: rgb(255 255 255 / .14); }
.social svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.success .social a { background: var(--cream-2); color: var(--ink); }
.help-hornet .card-photo[data-custom] { transform: none; } /* the original is mirrored; committee photos are not */

/* ---------- News ---------- */
.inner-page main { margin-top: var(--nav-h); min-height: 60vh; }
.page-top { padding-top: clamp(40px, 6vw, 72px); }
.page-title { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 10px; }
.news-section { background: var(--paper); border-block: 1px solid var(--line); }
.news-head { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.all-news { font-weight: 600; color: var(--ink); text-decoration-color: var(--honey); text-decoration-thickness: 2px; }
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 28px); }
.news-cards-all { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: border-color .15s, transform .2s; }
.news-section .news-card a { background: var(--cream); }
.news-card a:hover { border-color: var(--honey); transform: translateY(-2px); }
.news-card img, .news-noimg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--cream-2); }
.news-noimg { display: block; background: var(--honey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M14 1h28l14 23-14 23H14L0 24z' fill='none' stroke='%23f5b82e' stroke-width='2'/%3E%3C/svg%3E"); }
.news-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.news-card p { color: var(--muted); font-size: .96rem; }
.news-date { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--honey-ink); margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.news-pin { background: var(--ink); color: var(--cream); border-radius: 3px; padding: 1px 7px; letter-spacing: .04em; }
.news-more { margin-top: auto; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.news-more::after { content: " →"; }
.news-empty { color: var(--muted); font-size: 1.1rem; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
@media (max-width: 900px) { .news-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-cards { grid-template-columns: 1fr; } }

/* One post */
.post-banner { position: sticky; top: var(--nav-h); z-index: 10; margin: calc(-1 * clamp(40px, 6vw, 72px)) 0 28px; padding: 10px var(--gutter); background: var(--honey); color: var(--ink); font-weight: 600; text-align: center; }
.post-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 7vw, 88px); }
.post-back { margin-bottom: 26px; font-size: .95rem; }
.post-back a { color: var(--muted); }
.post-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 14px; }
.post-by { color: var(--muted); }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin: 14px 0 32px; background: var(--cream-2); }
.post-body { font-size: 1.1rem; line-height: 1.7; }
.post-body > * { margin: 0 0 1.1em; }
.post-body h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 1.6em 0 .5em; }
.post-body h3 { font-size: 1.35rem; margin: 1.4em 0 .4em; }
.post-body a { color: var(--ink); text-decoration-color: var(--honey); text-decoration-thickness: 2px; }
.post-body a.button { display: inline-block; background: var(--honey); color: var(--ink); text-decoration: none; font-weight: 600; padding: .65em 1.2em; border-radius: 4px; }
.post-body a.button:hover { background: var(--honey-2); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin-bottom: .35em; }
.post-body blockquote { margin-inline: 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--honey); font: italic 400 1.25rem/1.5 var(--serif); color: var(--ink); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-body figure { margin: 1.6em 0; }
.post-body figure.photo img { width: 100%; height: auto; border-radius: 6px; background: var(--cream-2); }
.post-body figure[data-size="small"] { max-width: min(100%, 420px); margin-inline: auto; }
.post-body figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.embed-box { position: relative; margin: 0 auto; border-radius: 6px; overflow: hidden; background: var(--ink); }
.embed-video { aspect-ratio: 16 / 9; }
.embed-post { width: min(100%, 500px); height: 220px; }
.embed-tall { width: min(100%, 540px); height: 220px; }
.embed-post.is-loaded { height: 680px; background: #fff; }
.embed-tall.is-loaded { height: 780px; background: #fff; }
.embed-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.embed-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; background: rgb(20 14 5 / .35); color: #fff; font: 600 1rem var(--sans); cursor: pointer; }
.embed-play svg { width: 64px; height: 64px; padding: 14px 12px 14px 16px; border-radius: 50%; background: var(--honey); fill: var(--ink); transition: transform .2s; }
.embed-play:hover svg, .embed-play:focus-visible svg { transform: scale(1.08); }
.embed-note { text-align: center; }
.embed-note a { color: inherit; }
/* Pages (taster day, course, events): the diary dates and the register button */
.page-dates { margin: 0 0 32px; padding: 18px 22px; background: var(--cream-2); border-left: 4px solid var(--honey); border-radius: 0 6px 6px 0; }
.page-dates h2 { font-size: 1.15rem; margin: 0 0 8px; }
.page-dates ul { list-style: none; margin: 0; padding: 0; }
.page-dates li { padding: 4px 0; }
.page-dates li strong { font: 600 1.05rem/1.4 var(--serif); color: var(--ink); }
.page-dates li span { display: block; color: var(--muted); font-size: .95rem; }
.page-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 36px 0 0; }
.page-cta span { color: var(--muted); }
.page-cta span a { color: var(--ink); text-decoration-color: var(--honey); text-decoration-thickness: 2px; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; }
.post-share span { font-weight: 600; color: var(--ink); }
.post-share a, .copy-link { color: var(--muted); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.post-share a:hover, .copy-link:hover { color: var(--ink); }
.more-news { background: var(--cream-2); padding: clamp(48px, 7vw, 80px) 0; }
.more-news h2 { margin-bottom: 24px; }
.more-news .all-news { display: inline-block; margin-top: 24px; }
.nav-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--honey); }

/* Notice banner (admin: Site settings). Sits where the fixed menu bar's gap was, so the page just moves down. */
.notice { margin-top: var(--nav-h); padding: 12px var(--gutter); background: var(--honey); color: var(--ink); text-align: center; font-weight: 600; line-height: 1.45; }
.notice.notice-alert { background: var(--alert); color: #fff; }
.notice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.notice:not([hidden]) ~ main, .notice:not([hidden]) ~ main > .hero:first-child { margin-top: 0; }

/* Getting started card drawing (Site settings): a badge on the photo's corner */
.card-pic { position: absolute; top: 12px; left: 12px; z-index: 0; width: 58px; height: 58px; border-radius: 50%; background: var(--paper);
  box-shadow: 0 4px 14px rgb(29 20 8 / .18); display: grid; place-items: center; pointer-events: none; }
.card-pic .event-pic { width: 30px; margin: 0; }
@media (max-width: 900px) { .card-pic { position: absolute; } }
/* Membership benefit with a drawing (Site settings) */
.perks li.has-pic { padding-left: 44px; display: flex; align-items: center; min-height: 44px; }
.perks li.has-pic::before { content: none; }
.perks li.has-pic .event-pic { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 30px; margin: 0; }
.card-detail:empty { border-top-color: transparent; }
