/* Biker Down Staffordshire — v3 design
   Yellow #EDB800 is the background the logo was drawn for: used for the header,
   the home hero and small accents. The hero ends in a wide chevron, taken from
   the arrow in the logo. Everything else is white and cool grey with the logo blue. */
:root {
  --yellow: #EDB800;
  --yellow-soft: #FFF5D1;
  --blue: #333399;
  --blue-dark: #26267A;
  --blue-soft: #EEEEF8;
  --ink: #1B1D22;
  --ink-2: #3C4049;
  --muted: #5F6570;
  --mist: #F3F4F6;
  --line: #E2E4E8;
  --paper: #FFFFFF;
  --go: #1E7A46;
  --signal: #B3202A;
  --orange: #EA9107;

  /* legacy names still used in places */
  --tarmac: var(--ink);
  --tarmac-2: var(--ink-2);
  --concrete: var(--mist);

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', Verdana, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-4: clamp(2.6rem, 6.2vw, 4.6rem);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.05), 0 10px 30px -10px rgba(20, 24, 40, 0.12);
  --chevron: clamp(36px, 6vw, 80px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); border-radius: 4px; }

h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 800; font-stretch: 108%; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
a.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--paper); padding: 0.5rem 1rem; }
.battenburg { display: none; }

/* ---------- Header: yellow, sticky ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--yellow); color: var(--ink); border-bottom: 1px solid rgba(27, 29, 34, 0.08); }
body.home .site-header { border-bottom-color: transparent; }
.site-header .wrap { display: flex; align-items: center; gap: 0.5rem 1rem; min-height: 92px; flex-wrap: wrap; }
.brand { flex: 0 0 auto; display: block; padding-block: 8px; }
.brand img { display: block; height: 78px; width: auto; }
.brand.compact img { height: 64px; }
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 0.55rem 0.9rem; border-radius: 999px; }
.site-nav a:hover { background: rgba(27, 29, 34, 0.08); color: var(--ink); }
.site-nav a[aria-current="page"] { background: rgba(27, 29, 34, 0.1); }
.site-nav { margin-left: auto; }
.header-cta { order: 3; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; padding: 0.6rem 1.15rem; border-radius: 999px; white-space: nowrap; }
.header-cta:hover { background: var(--blue); color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 700 var(--step-0)/1 var(--body); padding: 0.9rem 1.5rem; min-height: 50px;
  border: 2px solid var(--blue); background: var(--blue); color: var(--paper);
  text-decoration: none; cursor: pointer; border-radius: 999px; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--paper); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--paper); }
.btn.on-dark, .btn.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.on-dark:hover, .btn.dark:hover { background: var(--blue); border-color: var(--blue); }
.btn.ghost-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.ghost-dark:hover { background: var(--ink); color: var(--paper); }
.btn.danger { background: transparent; color: var(--signal); border-color: var(--signal); }
.btn.danger:hover { background: var(--signal); color: var(--paper); }
.btn.small { padding: 0.5rem 0.95rem; min-height: 38px; font-size: var(--step--1); border-width: 1.5px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; text-underline-offset: 0.2em; }

/* ---------- Hero: yellow, ends in the logo's chevron ---------- */
.hero {
  background: var(--yellow); color: var(--ink);
  padding: clamp(2.5rem, 6vw, 5rem) 0 calc(clamp(3rem, 6vw, 5rem) + var(--chevron));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chevron)), 50% 100%, 0 calc(100% - var(--chevron)));
}
.hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 14ch; margin-bottom: 0.4em; }
.hero .lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero .facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1.75rem 0 0; }
.hero .facts li { background: rgba(255, 255, 255, 0.55); border-radius: 999px; padding: 0.4rem 0.9rem; font-weight: 700; font-size: var(--step--1); }
.next-up { background: var(--paper); color: var(--ink); padding: 1.75rem; border-radius: var(--r-lg); box-shadow: 0 30px 60px -25px rgba(60, 40, 0, 0.35); }
.next-up h2 { font-size: var(--step-1); font-stretch: 100%; letter-spacing: 0; color: var(--muted); margin-bottom: 0.6rem; font-family: var(--body); font-weight: 700; }
.next-up .when { font-family: var(--display); font-weight: 800; font-stretch: 105%; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
.next-up .when + .when { font-family: var(--body); font-weight: 700; font-size: var(--step-0); letter-spacing: 0; margin-top: 0.4rem; }
.next-up .where { color: var(--muted); margin: 0.2rem 0 1rem; }
.next-up .spaces { display: inline-block; margin-bottom: 1.1rem; }
.next-up .btn { width: 100%; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section.alt { background: var(--mist); }
.hero + section { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section-intro { max-width: 62ch; margin-bottom: 2.25rem; }
.section-intro p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* Course list: one container, date tiles */
.course-list { list-style: none; margin: 0; padding: 0.5rem; background: var(--mist); border-radius: var(--r-lg); display: grid; gap: 0.5rem; }
.course-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: 1rem 1.25rem 1rem 1rem; background: var(--paper); border-radius: calc(var(--r-lg) - 8px); }
.date-block { width: 84px; height: 84px; border-radius: var(--r); background: var(--blue); color: var(--paper); display: grid; place-content: center; text-align: center; font-family: var(--display); line-height: 1; }
.date-block .d { font-size: 2.3rem; font-weight: 800; display: block; letter-spacing: -0.03em; }
.date-block .m { font-size: 0.8rem; font-weight: 700; font-family: var(--body); opacity: 0.9; margin-top: 0.2rem; }
.course-row h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 700; font-stretch: 100%; letter-spacing: 0; margin: 0 0 0.15rem; line-height: 1.3; }
.course-row p { margin: 0; color: var(--muted); }
.course-row .book { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.spaces { font-weight: 700; font-size: var(--step--1); background: #E4F3EA; color: #1A5C37; padding: 0.25rem 0.7rem; border-radius: 999px; }
.spaces.low { background: #FBE7E7; color: var(--signal); }
.empty-note { padding: 1.5rem 1.75rem; background: var(--yellow-soft); border-radius: var(--r); }
.empty-note p:last-child { margin: 0; }

/* Modules: real sequence, so numbered */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: mod; }
.module { counter-increment: mod; background: var(--paper); border-radius: var(--r-lg); padding: 1.75rem; }
.module h3 { font-size: var(--step-2); }
.module h3::before { content: counter(mod); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; background: var(--yellow); color: var(--ink); font-size: 1.35rem; border-radius: 50%; }
.module p { color: var(--ink-2); margin: 0; }

.kit { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kit-visual { aspect-ratio: 4 / 3; background: var(--blue); border-radius: var(--r-lg); display: grid; place-items: center; }
.kit-visual svg { width: 52%; height: auto; }
.kit p { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); }

.team .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem 4rem; align-items: start; }
.team p { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); }

/* FAQ */
.faq .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem 4rem; align-items: start; }
.faq .faq-items { display: grid; gap: 0.6rem; }
.faq details { background: var(--paper); border-radius: var(--r); }
.faq summary { cursor: pointer; padding: 1.15rem 3.5rem 1.15rem 1.4rem; font-weight: 700; font-size: var(--step-1); list-style: none; position: relative; border-radius: var(--r); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.25rem; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%231B1D22' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.25rem; margin: 0; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ink); color: #C9CCD2; padding: 3rem 0; }
.site-footer a { color: var(--yellow); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer strong { color: var(--paper); }

/* ---------- App (accounts, booking, tutor, admin) ---------- */
body.app { background: var(--mist); }
.app-main { padding: 2.5rem 0 4.5rem; min-height: 60vh; }
.app-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; background: var(--paper); border-radius: 999px; padding: 0.35rem; margin-bottom: 2.25rem; box-shadow: var(--shadow); }
.app-tabs[hidden] { display: none; }
.app-tabs a { padding: 0.6rem 1.05rem; text-decoration: none; color: var(--ink); font-weight: 700; border-radius: 999px; font-size: 0.97rem; }
.app-tabs a:hover { background: var(--mist); }
.app-tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.app-tabs .spacer { flex: 1; }
.app-tabs .link-btn { padding: 0.6rem 1rem; text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.app-tabs .link-btn:hover { color: var(--ink); }
#view:focus, #view:focus-visible { outline: none; box-shadow: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.page-head h1 { font-size: var(--step-3); margin: 0; }
.page-head p { margin: 0.35rem 0 0; color: var(--muted); }

.panel { background: var(--paper); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel h2 { font-size: var(--step-2); }
.panel + .panel { margin-top: 1.5rem; }
.narrow { max-width: 540px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }

form .field { margin-bottom: 1.15rem; }
label, .label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); margin-top: -0.2rem; margin-bottom: 0.4rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 0.75rem 0.9rem; min-height: 50px;
  border: 1.5px solid #C5C9D0; border-radius: var(--r-sm); background: var(--paper); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--yellow); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 1rem; }
.check { display: flex; gap: 0.65rem; align-items: center; font-weight: 400; margin-bottom: 0.45rem; }
.check input { width: 1.3rem; height: 1.3rem; accent-color: var(--blue); flex: 0 0 auto; }
.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }

.notice { padding: 1rem 1.2rem; background: var(--blue-soft); border-radius: var(--r); margin-bottom: 1.25rem; border-left: 5px solid var(--blue); }
.notice.ok { background: #E4F3EA; border-left-color: var(--go); }
.notice.error { background: #FBE7E7; border-left-color: var(--signal); }
.notice.warn { background: var(--yellow-soft); border-left-color: var(--yellow); }
.notice p:last-child { margin-bottom: 0; }

.course-summary { background: var(--paper); border-radius: var(--r); padding: 1.1rem 1.3rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); border-left: 6px solid var(--yellow); }
.course-summary .when { font-family: var(--display); font-size: var(--step-2); font-weight: 800; line-height: 1.1; margin: 0 0 0.2rem; letter-spacing: -0.015em; }
.course-summary p { margin: 0.15rem 0; }

.table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper); color: var(--muted); font-weight: 700; white-space: nowrap; }
tbody tr:hover { background: #FAFAFB; }
tr:last-child td { border-bottom: 0; }
td .muted, .muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--mist); white-space: nowrap; }
.tag.ok { background: #E4F3EA; color: #1A5C37; }
.tag.wait { background: var(--yellow-soft); color: #6A5200; }
.tag.bad { background: #FBE7E7; color: var(--signal); }
.tag.role-admin { background: var(--ink); color: var(--paper); }
.tag.role-tutor { background: var(--yellow); color: var(--ink); }

.booking-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.booking-card { background: var(--paper); border-radius: var(--r); padding: 1.25rem 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; box-shadow: var(--shadow); border-left: 6px solid var(--go); }
.booking-card.waitlist { border-left-color: var(--yellow); }
.booking-card.past { border-left-color: var(--line); }
.booking-card.cancelled { border-left-color: var(--signal); }
.booking-card h3 { font-family: var(--body); font-stretch: 100%; letter-spacing: 0; font-size: var(--step-1); margin: 0 0 0.2rem; }
.booking-card p { margin: 0; }

.attend { display: inline-flex; background: var(--mist); border-radius: 999px; padding: 3px; gap: 3px; }
.attend button { font: 700 0.85rem/1 var(--body); padding: 0.55rem 0.85rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; min-height: 36px; border-radius: 999px; }
.attend button:hover { background: var(--paper); }
.attend button[aria-pressed="true"].yes { background: var(--go); color: var(--paper); }
.attend button[aria-pressed="true"].no { background: var(--signal); color: var(--paper); }

.stat-line { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.stat-line div { background: var(--paper); border-radius: var(--r); padding: 0.9rem 1.2rem; font-weight: 700; font-size: var(--step--1); color: var(--muted); box-shadow: var(--shadow); min-width: 130px; }
.stat-line span { display: block; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.05; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 0.15rem; }

.loading { color: var(--muted); padding: 2rem 0; }

/* ---------- Sign-up box: the blue block ---------- */
.signup-box { margin-top: 2rem; background: var(--blue); color: var(--paper); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem 3rem; align-items: start; }
.signup-box h3 { font-size: var(--step-2); margin-bottom: 0.4rem; color: var(--paper); }
.signup-box p { color: #D7D7EE; margin: 0; }
.signup-box label { color: var(--paper); }
.signup-box .muted { color: #B9B9DD; }
.signup-box input[type=email], .signup-box input[type=text] { border-color: transparent; }
.signup-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 1rem; }
.signup-checks { display: flex; gap: 0.25rem 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.signup-checks .check input { accent-color: var(--yellow); }
.signup-box .btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.signup-box .btn:hover { background: var(--paper); border-color: var(--paper); }
.signup-result .notice { margin: 0.75rem 0 0; color: var(--ink); }

/* ---------- Testimonials ---------- */
.testimonials h2 { margin-bottom: 1.5rem; }
.quote-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.quote-list li { background: var(--mist); border-radius: var(--r-lg); padding: 1.75rem; display: flex; flex-direction: column; justify-content: space-between; }
.quote-list li:first-child { background: var(--yellow); }
.quote-list blockquote { margin: 0; }
.quote-list blockquote::before { content: "“"; display: block; font: 800 4rem/0.6 var(--display); color: var(--blue); height: 1.6rem; }
.quote-list blockquote p { font-size: var(--step-1); line-height: 1.5; margin: 0 0 1rem; }
.quote-by { color: var(--ink-2); font-size: var(--step--1); font-weight: 700; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-flow: dense; gap: 0.75rem; }
.gallery-item { padding: 0; border: 0; background: var(--line); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(15, 16, 20, 0.92); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: var(--r); }
.lightbox-caption { color: var(--paper); text-align: center; margin: 0.75rem auto 0; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 700 1.8rem/1 var(--body); cursor: pointer; }

/* ---------- Supporters ---------- */
.supported-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.supported-strip h2 { font-size: var(--step-1); font-family: var(--body); font-stretch: 100%; letter-spacing: 0; color: var(--muted); margin: 0; }
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; flex: 1; justify-content: center; }
.logo-row img { display: block; max-height: 56px; max-width: 160px; width: auto; height: auto; }
.logo-row span { font-weight: 700; font-size: var(--step-1); }
.logo-row a { display: block; text-decoration: none; color: var(--ink); }
.supported-strip p { margin: 0; }
.page-title { font-size: var(--step-4); }
.supporter-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.supporter { background: var(--mist); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.supporter-logo { background: var(--paper); border-radius: var(--r); height: 140px; display: grid; place-items: center; padding: 1.25rem; }
.supporter-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; }
.supporter-logo span { font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-align: center; }
.supporter h2 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.supporter p { margin: 0 0 0.4rem; color: var(--ink-2); }

/* ---------- Admin: sub navigation ---------- */
.sub-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: -0.5rem 0 1.75rem; }
.sub-tabs a { padding: 0.45rem 0.95rem; border-radius: 999px; background: var(--paper); text-decoration: none; color: var(--ink); font-weight: 700; font-size: var(--step--1); box-shadow: inset 0 0 0 1.5px var(--line); }
.sub-tabs a:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.sub-tabs a[aria-current="page"] { background: var(--yellow); box-shadow: none; }

/* ---------- Admin: photos ---------- */
.dropzone { display: block; position: relative; border: 2px dashed #B9BEC6; border-radius: var(--r-lg); padding: 2.25rem 1.5rem; text-align: center; background: var(--paper); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.dropzone:hover { border-color: var(--ink-2); }
.dropzone.drag { border-color: var(--blue); background: var(--blue-soft); }
.dropzone strong { display: block; font-size: var(--step-1); }
.dropzone .muted { font-weight: 400; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 3px solid var(--ink); box-shadow: 0 0 0 6px var(--yellow); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.photo-card { background: var(--paper); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.photo-card .thumb { aspect-ratio: 4 / 3; background: var(--mist) repeating-conic-gradient(#E6E8EB 0 25%, transparent 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; }
.photo-card .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.photo-card .meta { padding: 0.9rem; display: grid; gap: 0.55rem; }
.photo-card input[type=text] { min-height: 40px; padding: 0.45rem 0.65rem; font-size: var(--step--1); }
.photo-card label { font-size: var(--step--1); margin-bottom: 0.2rem; }
.photo-card .check { font-size: var(--step--1); }
.photo-card .row-end { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.upload-status { margin-top: 1rem; }

/* ---------- Admin: feedback ---------- */
.feedback-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.feedback-item { background: var(--paper); border-radius: var(--r); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.feedback-item header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.feedback-item dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0 0 0.75rem; font-size: var(--step--1); }
.feedback-item dt { font-weight: 700; color: var(--muted); }
.feedback-item dd { margin: 0; }
.feedback-item .testimonial { padding: 0.9rem 1.1rem; background: var(--yellow-soft); border-radius: var(--r-sm); margin: 0.5rem 0 0.9rem; }
.stars { color: var(--yellow); letter-spacing: 0.1em; font-size: 1.15rem; }
.stars .off { color: var(--line); }

/* ---------- Feedback form: rating scales ---------- */
.scale { border: 0; padding: 0; margin: 0 0 1.4rem; }
.scale legend { font-weight: 700; margin-bottom: 0.5rem; padding: 0; }
.scale-options { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.scale-options label { margin: 0; }
.scale-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale-options span { display: inline-grid; place-items: center; min-width: 54px; min-height: 50px; padding: 0 0.7rem; border-radius: 999px; font-weight: 700; cursor: pointer; background: var(--mist); transition: background 0.15s; }
.scale-options span:hover { background: var(--line); }
.scale-options input:checked + span { background: var(--blue); color: var(--paper); }
.scale-options input:focus-visible + span { outline: 3px solid var(--ink); box-shadow: 0 0 0 6px var(--yellow); }
.scale-ends { display: flex; justify-content: space-between; max-width: 310px; font-size: var(--step--1); color: var(--muted); margin-top: 0.3rem; }

/* ---------- Admin: emails ---------- */
.template-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.template-picker a { display: block; background: var(--paper); border-radius: var(--r); padding: 1.3rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s; }
.template-picker a:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20,24,40,.05), 0 16px 34px -12px rgba(20,24,40,.2); }
.template-picker a::before { content: ""; display: block; width: 36px; height: 6px; border-radius: 3px; background: var(--yellow); margin-bottom: 0.9rem; }
.template-picker strong { display: block; font-size: var(--step-1); margin-bottom: 0.25rem; }
.template-picker span { color: var(--muted); font-size: var(--step--1); }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.preview-frame { width: 100%; height: 720px; border: 0; border-radius: var(--r); background: #EEF0EC; box-shadow: var(--shadow); }
.preview-empty { display: grid; place-items: center; height: 300px; border: 2px dashed #C5C9D0; border-radius: var(--r-lg); color: var(--muted); text-align: center; padding: 1.5rem; }
.photo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.5rem; max-height: 260px; overflow: auto; }
.photo-pick label { margin: 0; position: relative; cursor: pointer; }
.photo-pick input { position: absolute; opacity: 0; }
.photo-pick img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid transparent; border-radius: var(--r-sm); }
.photo-pick input:checked + img { border-color: var(--blue); }
.photo-pick input:focus-visible + img { outline: 3px solid var(--yellow); }
.photo-pick .none { display: grid; place-items: center; aspect-ratio: 1; border: 3px solid var(--line); border-radius: var(--r-sm); font-size: var(--step--1); font-weight: 700; }
.photo-pick input:checked + .none { border-color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .kit, .two-col, .signup-box, .compose, .team .wrap, .faq .wrap { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: auto; grid-row: auto; }
}
@media (max-width: 720px) {
  .site-header .wrap { min-height: 64px; }
  .brand img, .brand.compact img { height: 54px; }
  .header-cta { order: 2; margin-left: auto; padding: 0.5rem 1rem; font-size: 0.95rem; }
  .site-nav { order: 3; margin-left: -1.25rem; width: calc(100% + 2.5rem); margin: 0 -1.25rem; padding: 0 1.25rem 0.6rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; padding: 0.45rem 0.8rem; font-size: 0.95rem; }
  html { scroll-padding-top: 130px; }
  .app-tabs { border-radius: var(--r); }
}
@media (max-width: 620px) {
  .course-row { grid-template-columns: auto 1fr; gap: 0.9rem 1rem; padding: 0.9rem; }
  .date-block { width: 64px; height: 64px; border-radius: 12px; }
  .date-block .d { font-size: 1.75rem; }
  .course-row .book { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .booking-card { flex-direction: column; align-items: stretch; }
  .signup-fields { grid-template-columns: 1fr; }
  .supporter-list { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .brand, .app-tabs, .site-footer, .btn, .page-head .form-actions, #view > p:first-child a { display: none !important; }
  body, body.app { background: #fff; font-size: 11pt; }
  .table-wrap, .panel, .course-summary { box-shadow: none; }
  .attend { background: none; }
  .attend button { border: 1px solid #000; }
}

/* Refinements */
.gallery-item:first-child { aspect-ratio: auto; }
@media (min-width: 901px) {
  .faq .wrap > div:first-child, .team .wrap > h2 { position: sticky; top: 130px; }
  .gallery-item:first-child { min-height: 100%; }
}
body.app { min-height: 100vh; display: flex; flex-direction: column; }
body.app .app-main { flex: 1; }
