/* Watford Gracie Jiu-Jitsu Academy - yellow, mat green, white (derived from the network site's stylesheet). */
:root {
  --black: #0a0a0a;        /* same palette as the network site (Ben, 2026-09-08): black / yellow / white */
  --ink: #161616;
  --yellow: #f5e900;      /* logo yellow */
  --yellow-deep: #d9ce00;
  --grey: #e0e0e8;
  --green: #0a0a0a;       /* former mat-green accent, now black like the network site */
  --text: #1b1b1b;
  --muted: #5f6368;
  --bg: #f4f4f6;
  --white: #fff;
  --line: #dcdde2;
  --ok: #1a8f3a;
  --err: #c62828;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --head: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 900; letter-spacing: -0.01em; line-height: 1.1; text-transform: uppercase; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 1.2em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 1em 0 0.4em; }
h4 { font-size: 1rem; margin: 0.8em 0 0.3em; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2rem); margin: 0 auto; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 100; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.kicker { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--yellow-deep); margin: 0 0 0.4em; }
.dark .kicker { color: var(--yellow); }
.lead { font-size: 1.15rem; color: #333; }
.dark .lead { color: #d8d8d8; }
.center { text-align: center; }
section { padding: 3.5rem 0; }
.dark { background: var(--black); color: #e8efe9; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark a { color: #fff; }
.yellow-band { background: var(--yellow); color: var(--ink); }
.yellow-band h2 { color: var(--black); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.section-head h2 { margin-top: 0; }
.rule { width: 72px; height: 5px; background: var(--yellow); margin: 0.6rem auto 0; }
.rule.left { margin-left: 0; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; text-decoration: none; text-transform: uppercase; font-family: var(--head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: transform 0.1s, filter 0.15s, background 0.15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-black { background: var(--black); color: #fff; border-color: var(--black); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; width: 100%; }

/* Header */
.site-header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--yellow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo img { width: 52px; height: 52px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; font-family: var(--head); text-transform: uppercase; }
.wordmark strong { font-size: 1.1rem; font-weight: 900; letter-spacing: 0.02em; }
.wordmark small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; color: var(--yellow); margin-top: 3px; }
.section-logo { display: block; width: min(360px, 80%); height: auto; margin: 0 auto 1.2rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; align-items: center; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 11px; color: #fff; text-decoration: none; font-weight: 500; font-size: 0.93rem; border-radius: 6px; white-space: nowrap; }
.main-nav a:hover { color: var(--yellow); }
.main-nav a.active { color: var(--yellow); }
.main-nav .caret { display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 4px; }
.main-nav .sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--shadow); min-width: 250px; flex-direction: column; gap: 0; padding: 6px 0; border-radius: 8px; border-top: 3px solid var(--green); }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { display: flex; }
.main-nav .sub li { width: 100%; }
.main-nav .sub a { padding: 8px 16px; font-weight: 500; text-align: left; color: var(--ink); border-radius: 0; }
.main-nav .sub a small { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.main-nav .sub a:hover { background: #fffbd6; color: var(--ink); }
.main-nav .sub .linkbtn { padding: 8px 16px; color: var(--ink); }
.main-nav .sub .linkbtn:hover { background: #fffbd6; }
.main-nav .cta a { background: var(--yellow); color: var(--black); font-family: var(--head); font-weight: 700; text-transform: uppercase; margin-left: 8px; padding: 10px 16px; }
.main-nav .cta a:hover { background: #fff; }
.mobile-account { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; }
@media (max-width: 1080px) {
  .main-nav a { padding: 10px 8px; font-size: 0.88rem; }
  .wordmark strong { font-size: 1rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .mobile-account { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--yellow); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 6px 10px; border: 2px solid var(--yellow); border-radius: 6px; white-space: nowrap; }
  .mobile-account .nav-avatar { width: 26px; height: 26px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); box-shadow: var(--shadow); padding: 8px 0 16px; max-height: calc(100vh - 75px); overflow: auto; }
  body.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 12px 20px; font-size: 1rem; white-space: normal; }
  .main-nav .sub { display: flex; position: static; box-shadow: none; padding-left: 12px; background: #161616; border-top: 0; border-left: 3px solid var(--yellow); margin: 0 20px; }
  .main-nav .sub a, .main-nav .sub .linkbtn { color: #fff; }
  .main-nav .sub a small { color: #aaa; }
  .main-nav .sub a:hover, .main-nav .sub .linkbtn:hover { background: #222; color: var(--yellow); }
  .main-nav .cta a { margin: 10px 20px 0; text-align: center; }
}

/* Hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--black) url('/img/photos/hero-promo-2.jpg') center/cover no-repeat; color: #fff; padding: 4rem 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .hero-video.ready { display: block; } }
.hero::before { content: ''; position: absolute; inset: 0; background: none; z-index: 1; } /* full-brightness video (Ben) */
.hero-inner { position: relative; z-index: 2; max-width: 900px; padding: 0 1rem; }
.hero-logo { width: clamp(150px, 22vw, 230px); height: auto; margin: 0 auto 1.2rem; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 4.2rem); margin: 0 0 0.4em; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 24px rgba(0, 0, 0, 0.8); }
.hero h1 em { font-style: normal; color: var(--yellow); text-shadow: 0 2px 14px rgba(0,0,0,0.9); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 720px; margin: 0 auto 1.6rem; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.8); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-strip { background: var(--yellow); color: var(--black); font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; }
.hero-strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 2.2rem; padding: 12px 0; }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; color: var(--text); }
.card-img { position: relative; background: #f4f4f6; }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-img.logo-card img { object-fit: contain; padding: 14px; background: #fff; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card p { margin: 0; color: #444; font-size: 0.95rem; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { display: inline-block; background: var(--black); color: var(--yellow); border-radius: 4px; padding: 2px 9px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--head); font-weight: 700; }
.tag.grey { background: var(--grey); color: var(--ink); }
.tag.ok { background: var(--ok); color: #fff; }
.price { font-family: var(--head); font-weight: 900; font-size: 1.3rem; }
.dark .card { background: #fff; color: var(--text); }
.dark .card h3 a { color: var(--ink); } .dark .card p { color: #444; }

/* Audience tiles on the home page */
.audience { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; text-decoration: none; color: #fff; background: #222 center/cover no-repeat; }
.audience::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.9)); }
.audience div { position: relative; padding: 22px; }
.audience h3 { color: #fff; margin: 0 0 6px; font-size: 1.6rem; }
.audience h3 span { color: var(--yellow); }
.audience p { margin: 0 0 10px; color: #ddd; }
.audience .more { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--yellow); font-size: 0.85rem; }

/* Why / feature list */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 5px solid var(--yellow); }
.feature h3 { margin-top: 0; font-size: 1.05rem; }
.feature p { margin: 0; color: #444; font-size: 0.95rem; }
.dark .feature { background: #fff; }
.dark .feature p { color: #444; } .dark .feature h3 { color: var(--ink); }
.num { font-family: var(--head); font-weight: 900; font-size: 2.4rem; color: var(--yellow-deep); line-height: 1; }

/* Split section (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } .split.rev > :first-child { order: 0; } }
.lineage { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lineage li { background: var(--black); color: #fff; padding: 6px 12px; border-radius: 4px; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.lineage li:last-child { background: var(--yellow); color: var(--ink); }
.lineage li { position: relative; }
.lineage li + li { margin-left: 16px; }
.lineage li + li::before { content: '›'; position: absolute; left: -17px; top: 50%; transform: translateY(-54%); color: var(--yellow); font-size: 1.7rem; font-weight: 900; line-height: 1; }
.dark .lineage li { background: #222; }
.dark .lineage li:last-child { background: var(--yellow); }

/* Page title bar */
.page-title { background: var(--black); color: #fff; padding: 2.5rem 0; border-bottom: 5px solid var(--yellow); }
.page-title h1 { color: #fff; margin: 0; }
.page-title p { margin: 0.5em 0 0; color: #ccc; max-width: 760px; font-size: 1.1rem; }
.page-title.with-img { padding: 0; }
.page-title.with-img .wrap { display: flex; align-items: center; gap: 2rem; }
.page-title.with-img img { width: 200px; height: auto; }

/* Prose */
.prose { background: #fff; padding: 2rem 2.4rem 2.4rem; border-radius: var(--radius); box-shadow: var(--shadow); margin: 2rem auto; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h2::after { content: ''; display: block; width: 48px; height: 4px; background: var(--yellow); margin-top: 6px; }
.prose img { margin: 1rem auto; border-radius: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--black); color: #fff; font-family: var(--head); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.prose tr:nth-child(even) td { background: #fafafa; }
.prose blockquote { border-left: 5px solid var(--yellow); margin: 1rem 0; padding: 4px 18px; color: #444; background: #fffdf0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.25em 0; }
.prose iframe, .prose video { max-width: 100%; }
.prose .video-wrap { position: relative; padding-top: 56.25%; margin: 1rem 0; background: #000; border-radius: 6px; overflow: hidden; }
.prose .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .prose { padding: 1.2rem 1.2rem 1.6rem; } }

/* Curriculum tables inside programme pages */
.curriculum { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.curriculum th { background: var(--green); color: #fff; text-align: left; padding: 10px 14px; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.curriculum td { padding: 9px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.curriculum td:first-child { font-family: var(--head); font-weight: 900; width: 60px; color: var(--yellow-deep); font-size: 1.1rem; }
.curriculum tr:nth-child(even) td { background: #fafafa; }

/* FAQ */
.faq details { background: #fff; border-radius: 6px; box-shadow: var(--shadow); margin-bottom: 10px; padding: 0; }
.faq summary { cursor: pointer; padding: 14px 18px; font-family: var(--head); font-weight: 700; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--yellow-deep); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 18px 16px; margin: 0; color: #333; }

/* Forms */
form label { display: block; margin-bottom: 12px; font-weight: 500; font-size: 0.95rem; }
form input[type=text], form input[type=email], form input[type=tel], form input[type=password], form input[type=number], form input[type=date], form input[type=time], form input[type=url], form select, form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #c9cbd2; border-radius: 6px; font: inherit; background: #fff; }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--yellow); border-color: var(--yellow-deep); }
form textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }
.err { color: var(--err); font-size: 0.85rem; font-weight: 400; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 1rem; }
.alert-ok { background: #e7f6ea; color: #14602a; border: 1px solid #b9e2c3; }
.alert-error { background: #fdeaea; color: #8f1b1b; border: 1px solid #f2c1c1; }
.alert-info { background: #fffbd6; color: #5a5200; border: 1px solid #f0e68c; }
.form-box { background: #fff; padding: 1.6rem 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 640px; margin: 1.5rem auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.account-box { max-width: 460px; margin: 3rem auto; background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.account-box h1 { font-size: 1.7rem; }

/* CTA band */
.cta-band { background: var(--yellow); color: var(--black); text-align: center; padding: 3rem 0; }
.cta-band h2 { color: #fff; margin: 0 0 0.4em; }
.cta-band p { max-width: 700px; margin: 0 auto 1.2rem; font-size: 1.1rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.review { background: rgba(255,255,255,0.08); border-radius: var(--radius); padding: 20px; border-left: 4px solid var(--yellow); }
.review p { color: #ddd; font-size: 0.95rem; margin: 0 0 10px; }
.review cite { font-style: normal; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--yellow); }
.stars { color: var(--yellow); letter-spacing: 2px; }

/* Instructors */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.2rem; }
.person { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-align: center; }
.person img.face { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 4px solid var(--black); }
.person h3 { font-size: 1.05rem; margin: 6px 0 2px; }
.person .role { color: var(--muted); font-size: 0.85rem; }
.person .rank { font-weight: 600; font-size: 0.9rem; margin-top: 4px; }
.person img.belt { height: 16px; width: auto; margin: 8px auto 0; }
.person.hq { border-top: 5px solid var(--yellow); }

/* Academies */
.academy-card { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.academy-card img { width: 100%; height: 100%; object-fit: cover; }
.academy-card .body { padding: 22px 26px; }
.academy-card h3 { margin-top: 0; font-size: 1.4rem; }
.academy-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0; font-size: 0.95rem; }
.academy-card dt { font-weight: 600; color: var(--muted); }
.academy-card dd { margin: 0; }
@media (max-width: 720px) { .academy-card { grid-template-columns: 1fr; } .academy-card img { max-height: 220px; } }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Video library */
.course-card .card-img img { aspect-ratio: 300 / 146; object-fit: cover; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.lesson-list li:first-child { border-radius: 8px 8px 0 0; }
.lesson-list li:last-child { border-bottom: 0; border-radius: 0 0 8px 8px; }
.lesson-list .n { font-family: var(--head); font-weight: 900; color: var(--yellow-deep); width: 34px; flex: none; }
.lesson-list a { text-decoration: none; color: var(--ink); font-weight: 500; flex: 1; }
.lesson-list a:hover { color: var(--yellow-deep); }
.lesson-list .lock { color: #aaa; flex: 1; }
.lesson-list .dur { color: var(--muted); font-size: 0.85rem; }
.lesson-list .done { color: var(--ok); font-weight: 700; }
.lesson-list li.current { background: #fffbd6; }
.section-name { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; color: #fff; background: var(--black); padding: 8px 14px; border-radius: 6px 6px 0 0; margin-top: 1.2rem; }
.course-hero { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .course-hero { grid-template-columns: 1fr; } }
.course-hero.belts-layout { grid-template-columns: 25% minmax(0, 1fr); }
.belts-layout .sheet-table.narrow-table { max-width: none; }
.belts-layout .feature img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .course-hero.belts-layout { grid-template-columns: 1fr; } }
.buy-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 90px; }
.buy-box .head { background: var(--green); color: #fff; padding: 14px 18px; }
.buy-box .head .price { color: var(--yellow); font-size: 1.8rem; }
.buy-box .body { padding: 16px 18px; }
.buy-box .body ul { padding-left: 1.2em; margin: 0 0 1em; font-size: 0.92rem; }
.player-page { background: var(--black); color: #eee; padding: 1.5rem 0 3rem; min-height: 70vh; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; }
@media (max-width: 960px) { .player-layout { grid-template-columns: 1fr; } }
.player { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; }
.player-page h1 { color: #fff; font-size: 1.6rem; margin: 1rem 0 0.2em; }
.player-page .notes { color: #ccc; }
.player-nav { display: flex; gap: 10px; justify-content: space-between; margin: 1rem 0; flex-wrap: wrap; }
.side-list { background: #161616; border-radius: var(--radius); max-height: 70vh; overflow: auto; }
.side-list .lesson-list li { background: transparent; border-color: #2a2a2a; }
.side-list .lesson-list a { color: #ddd; }
.side-list .lesson-list li.current { background: #2a2a10; }
.side-list .lesson-list li.current a { color: var(--yellow); }
.side-list .section-name { border-radius: 0; margin-top: 0; background: #000; }
.notice { background: #1f1f1f; border-left: 4px solid var(--yellow); padding: 12px 16px; border-radius: 6px; color: #ddd; }

/* News */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .no-img { aspect-ratio: 16 / 9; background: var(--black) url('/img/brand/logo-192.png') center/80px no-repeat; }
.post-card div { padding: 14px 16px 16px; }
.post-card h3 { font-size: 1.05rem; margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
.post-card p { font-size: 0.9rem; color: #555; margin: 0; }
.post-card time { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* Footer */
.site-footer { background: var(--black); color: #bbb; padding: 3rem 0 1.5rem; margin-top: 3rem; border-top: 5px solid var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: var(--yellow); font-size: 0.85rem; letter-spacing: 0.12em; margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand img { width: 80px; margin-bottom: 10px; }
.footer-brand p { margin: 0 0 8px; }
.copyright { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1rem; font-size: 0.8rem; color: #888; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* Admin */
.admin-top { background: var(--black); color: #fff; padding: 10px 0; }
.admin-top .wrap { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-top a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 0.9rem; }
.admin-top a.active, .admin-top a:hover { background: var(--yellow); color: var(--ink); }
.admin-top strong { margin-right: 10px; color: var(--yellow); font-family: var(--head); text-transform: uppercase; }
.table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; }
.table th { background: var(--black); color: #fff; text-align: left; padding: 9px 12px; font-family: var(--head); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }
.table td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: #fffbd6; }
.table form { display: inline; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1rem 0 2rem; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-top: 4px solid var(--yellow); }
.stat b { display: block; font-family: var(--head); font-size: 1.8rem; font-weight: 900; }
.stat span { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { margin: 0; }
.inline-form input, .inline-form select { margin-top: 2px; }
/* iOS Safari: date/time inputs have no intrinsic width and collapse inside a flex row, so the button lands on top of them */
form input[type=date], form input[type=time] { min-height: 44px; min-width: 150px; -webkit-appearance: none; appearance: none; }
.inline-form label { flex: 1 1 160px; min-width: 0; }
.inline-form button { flex: 0 0 auto; min-height: 44px; }
@media (max-width: 600px) { .inline-form label, .inline-form button { flex-basis: 100%; width: 100%; } }
.lesson-row { display: grid; grid-template-columns: 34px 1.2fr 2fr 2.4fr 80px auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lesson-row input { margin: 0; padding: 6px 8px; font-size: 0.88rem; }
.lesson-row .missing { border-color: var(--err); background: #fff5f5; }
@media (max-width: 900px) { .lesson-row { grid-template-columns: 1fr 1fr; } }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; background: #f0f0f2; padding: 1px 5px; border-radius: 3px; }

/* Academy-specific */
.sheet { width: 100%; border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); min-height: 620px; }
.sheet-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.notice-board { text-align: left; margin: 0 auto 1.8rem; max-width: 820px; background: #fffbd6; border-left: 6px solid var(--yellow); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; }
.notice-board h3 { margin: 0 0 8px; }
.notice-board li { margin: 4px 0; }
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 800px) { .product-page { grid-template-columns: 1fr; } }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 3px solid transparent; }
.gallery-thumbs img.on { border-color: var(--yellow); }
.price-table td:nth-child(2), .price-table td:nth-child(3) { white-space: nowrap; font-weight: 600; }
.app-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.app-badges img { height: 56px; width: auto; }
.card-img.product img { aspect-ratio: 1; object-fit: cover; }

/* Google Sheets rendered as tables */
.sheet-table { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; overflow-x: auto; }
.sheet-table.narrow-table { max-width: 760px; }
table.gsheet { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 11pt; font-family: Arial, Helvetica, sans-serif; }
table.gsheet td { border: 1px solid #e3e6e8; padding: 3px 5px; vertical-align: middle; overflow-wrap: anywhere; line-height: 1.25; }

@media (max-width: 700px) { .sheet-table { overflow-x: auto; } table.gsheet { min-width: 760px; } }

/* Attendance bar chart drawn from the sheet */
.bar-chart { display: flex; align-items: flex-end; gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px 12px; margin-bottom: 1rem; max-width: 760px; min-height: 240px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 220px; }
.bar { width: 70%; max-width: 70px; background: var(--green); border-radius: 6px 6px 0 0; border-bottom: 4px solid var(--yellow); transition: height 0.3s; }
.bar-val { font-family: var(--head); font-weight: 900; font-size: 1.1rem; margin-bottom: 6px; }
.bar-label { margin-top: 8px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); text-align: center; }

/* Private session booking calendar */
.book-form label { margin-bottom: 6px; }
.cal { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cal-head a { text-decoration: none; font-size: 1.3rem; padding: 0 8px; color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { font-size: 0.7rem; text-transform: uppercase; color: var(--muted); text-align: center; }
.cal-day { display: block; text-align: center; padding: 6px 0; border-radius: 6px; color: #bbb; font-size: 0.9rem; }
.cal-day.free { background: #fff3a8; color: var(--ink); font-weight: 600; text-decoration: none; border: 1px solid var(--yellow); }
.cal-day.free:hover { background: var(--yellow); }
.cal-day.picked { background: var(--yellow); border-color: var(--green); }
.cal-key { display: inline-block; width: 12px; height: 12px; background: #fff3a8; border: 1px solid var(--yellow); border-radius: 3px; vertical-align: middle; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { display: inline-block; margin: 0; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: inline-block; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.9rem; cursor: pointer; }
.slot input:checked + span { background: var(--yellow); border-color: var(--yellow); font-weight: 600; }
.slot input:focus-visible + span { outline: 2px solid var(--green); }

/* Timetable & pricing (src/timetable.js) */
.tt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 10px; }
.tt-scroll { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
table.tt { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 0.88rem; }
table.tt th { background: var(--black); color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; padding: 10px 8px; text-align: center; }
table.tt td { border: 1px solid var(--line); padding: 8px 6px; text-align: center; vertical-align: middle; width: 14.28%; }
table.tt .tt-name { display: block; font-weight: 600; line-height: 1.25; }
table.tt .tt-time { display: block; font-size: 0.8rem; color: #444; margin-top: 2px; }
.tt-none { color: #999; font-style: italic; }
.tt-kids { background: #fff3c4; } .tt-ladies { background: #fde2ec; } .tt-fundamentals { background: #e3f0ff; } .tt-intermediate { background: #dff5e1; }
.tt-advanced { background: #ede3ff; } .tt-sparring { background: #ffe1d6; } .tt-reflex { background: #e6f7f7; } .tt-other { background: #f3f3f3; }
.tt-key .tt-swatch { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--line); vertical-align: middle; border-radius: 3px; }
.tt-key { margin-top: 8px; }
.tt-h2 { margin-top: 2rem; }
table.tt-prices { min-width: 760px; }
table.tt-prices th.tt-kidshead, table.tt-prices td.tt-kids { background: #fff3c4; }
table.tt-prices th.tt-kidshead { color: var(--ink); }
table.tt-prices .tt-price { font-size: 1.15rem; font-family: var(--head); }
.tt-boxes { margin-top: 1.2rem; }
.tt-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.tt-box h3 { margin: 0 0 6px; font-size: 1rem; } .tt-box p { margin: 4px 0; }
.tt-trialbox { border-top: 5px solid var(--yellow); }
.tt-notes { margin-top: 1.2rem; }
.print-only { display: none; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; color: #000; font-size: 11px; }
  .site-header, .page-title, .hero-strip, footer, .site-footer, .cta-band, .no-print, .admin-top { display: none !important; }
  .print-only { display: block; }
  .wrap { width: 100%; }
  section { padding: 0; }
  .tt-scroll, .tt-box, .feature { box-shadow: none; border-radius: 0; }
  table.tt, table.tt-prices { min-width: 0; font-size: 10px; }
  table.tt th { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.tt td, table.tt-prices th.tt-kidshead { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tt-h2 { margin-top: 10px; font-size: 14px; }
  .tt-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .tt-box { border: 1px solid #ccc; padding: 6px 10px; }
  .tt-notes { margin-top: 8px; }
  a { text-decoration: none; color: inherit; }
}

table.tt-att { min-width: 0; } table.tt-att th, table.tt-att td { min-width: 90px; font-size: 1rem; } table.tt-att td { font-weight: 600; }
#attgrid th[contenteditable], #attgrid td[contenteditable] { cursor: text; outline: none; } #attgrid th:focus, #attgrid td:focus { box-shadow: inset 0 0 0 2px var(--yellow); background: #fffbd6 !important; color: var(--ink); }

/* Mobile: the free-trial button stays pinned to the bottom of every page (except the trial page itself) */
.sticky-trial { display: none; }
@media (max-width: 899px) {
  .sticky-trial { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--yellow); color: var(--black); text-align: center; text-decoration: none; font-family: var(--head); font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.25); border-top: 3px solid var(--black); }
  .sticky-trial:active { background: #fff; }
  body:has(.sticky-trial) { padding-bottom: 64px; }
}

.table th a { color: var(--yellow); text-decoration: none; } .table th a:hover { text-decoration: underline; }

/* Logged-in name in the menu with the student's belt underneath */
.nav-user { display: inline-flex; align-items: center; gap: 8px; line-height: 1.15; }
.nav-user-text { display: inline-block; text-align: left; }
.nav-belt { display: block; width: 78px; height: 15px; margin: 3px 0 0; }
.main-nav > ul > li.has-sub > a:has(.nav-belt) { padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 899px) { .nav-user-text { text-align: left; } .nav-belt { margin-left: 0; } }

/* Profile photos (src/photos.js) */
.photo-box { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.photo-current img, .photo-none { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--black); background: #ddd; display: block; }
.photo-none { background: #e6e6ea url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='38' r='20' fill='%23fff'/><path d='M15 95c4-24 20-34 35-34s31 10 35 34z' fill='%23fff'/></svg>") center/cover; }
.photo-controls .btn { margin: 0 6px 6px 0; }
.nav-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow); flex: 0 0 auto; }
/* People cards: belts line up across the row */
.person { display: flex; flex-direction: column; align-items: center; }
.person .belt-row { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.person img.belt { height: 22px; width: auto; margin: 0; }

/* Belt qualification cards (src/cards.js) */
.card-sheet { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; overflow-x: auto; }
.card-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.card-name { flex: 1 1 220px; font-size: 1rem; }
.card-badge { width: 90px; height: 90px; }
.card-title-block { text-align: right; }
.card-title { font-family: var(--head); font-weight: 900; font-size: 1.6rem; letter-spacing: 0.02em; background: var(--black); color: var(--yellow); padding: 4px 14px; display: inline-block; }
.card-sub { margin-top: 6px; font-size: 1rem; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; min-width: 1000px; align-items: start; }
table.card-col { border-collapse: collapse; width: 100%; font-size: 0.82rem; }
table.card-col td, table.card-col th, table.card-stripes td, table.card-stripes th, .card-rd td { border: 1px solid #222; padding: 2px 4px; }
table.card-col th.card-head { font-family: var(--head); font-weight: 900; font-size: 1.15rem; text-align: center; padding: 8px; letter-spacing: 0.04em; }
table.card-col td.n, .card-rd td.n { width: 26px; text-align: center; font-weight: 700; }
table.card-col td.b, table.card-stripes td.b, .card-rd td.b { width: 26px; text-align: center; padding: 1px; }
table.card-col td.t { line-height: 1.25; }
table.card-col td.t strong { display: block; }
.cbox { width: 24px; height: 22px; border: 1px solid #555; background: #fff; border-radius: 3px; font: 700 15px/1 var(--body); color: var(--black); cursor: pointer; padding: 0; }
.cbox.on { background: var(--yellow); border-color: var(--black); }
.cbox:disabled { cursor: default; }
.cbox:not(:disabled):hover { box-shadow: 0 0 0 2px var(--yellow); }
.card-side { display: grid; grid-template-columns: auto auto; gap: 8px; align-items: start; }
.card-test { grid-column: 2; align-self: end; text-align: center; padding: 8px; }
.card-test-btn { width: 100%; background: #ddd; color: #777; border-color: #ccc; cursor: not-allowed; font-size: 1rem; padding: 14px 18px; }
.card-test-btn:not(:disabled) { background: var(--yellow); color: var(--black); border-color: var(--black); cursor: pointer; }
table.card-stripes { border-collapse: collapse; }
table.card-stripes th { font-size: 0.7rem; writing-mode: vertical-rl; transform: rotate(180deg); padding: 6px 2px; font-weight: 700; }
.card-rd { border: 1px solid #222; padding: 6px; text-align: center; min-width: 110px; }
.card-rd-title { font-family: var(--head); font-weight: 900; font-size: 0.8rem; line-height: 1.2; }
.card-rd-note { font-size: 0.62rem; line-height: 1.2; margin: 4px 0 6px; }
.card-rd table { border-collapse: collapse; margin: 0 auto; }
.card-foot { margin-top: 8px; font-size: 0.72rem; color: #444; display: flex; justify-content: space-between; }
@media print { .card-sheet { box-shadow: none; padding: 0; } .card-grid { min-width: 0; } .cbox { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* grid-layout cards (Advanced) */
.card-areas { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; min-width: 900px; align-items: start; }
table.card-block { border-collapse: collapse; width: 100%; margin-bottom: 8px; }
table.card-block th { background: var(--black); color: #fff; text-align: left; padding: 4px 8px; font-family: var(--head); font-size: 0.9rem; }
table.card-block td.b { border: 1px solid #222; width: 10%; text-align: center; padding: 2px; }
.card-block-wrap { display: flex; gap: 4px; align-items: stretch; }
.card-block-wrap table.card-block { flex: 1 1 auto; }
.card-side-label { writing-mode: vertical-rl; transform: rotate(180deg); background: var(--black); color: #fff; font-family: var(--head); font-weight: 700; padding: 8px 2px; text-align: center; font-size: 0.85rem; margin-bottom: 8px; }
.card-field { display: flex; border: 1px solid #222; margin-top: 8px; }
.card-field-label { background: var(--black); color: #fff; font-family: var(--head); font-weight: 700; padding: 8px 10px; min-width: 150px; }
.card-field-value { padding: 8px 10px; flex: 1; }
.card-areas .card-test { grid-column: auto; }
table.card-stripes th { max-height: 120px; }

/* Class calendars (src/calendar.js) - laid out like the Google Sheet calendars */
.cal-month { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; margin-bottom: 1.2rem; padding: 6px; }
table.cal-table { border-collapse: collapse; width: 100%; min-width: 760px; table-layout: fixed; font-size: 0.86rem; color: var(--ink); }
table.cal-table th.cal-title { background: var(--black); color: #fff; font-family: var(--head); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; text-align: center; padding: 10px 0 8px; border-bottom: 3px solid var(--yellow); }
table.cal-table th { background: var(--yellow); color: var(--black); font-family: var(--head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; text-align: center; padding: 8px 4px; }
table.cal-table th.cal-lbl, table.cal-table td.cal-lbl { width: 84px; font-size: 0.72rem; font-weight: 700; text-align: left; padding: 2px 6px; color: var(--ink); }
table.cal-table td.cal-lbl { border: 1px solid var(--line); }
table.cal-table tr.cal-dates td { background: #ececec; color: var(--black); text-align: center; font-family: var(--head); font-weight: 700; padding: 8px 4px 2px; font-size: 0.78rem; }
table.cal-table tr.cal-dates td.cal-out { color: #999; }
table.cal-table td.cal-cell { border: 1px solid var(--line); text-align: center; vertical-align: top; padding: 4px 4px 6px; min-height: 44px; height: 46px; }
table.cal-table tr.cal-row[style] td.cal-cell, table.cal-table tr.cal-row[style] td.cal-lbl { background: var(--row-bg); }
table.cal-table td.cal-cell.cal-out { background: #fafafa; color: #888; }
table.cal-table tr.cal-row[style] td.cal-cell.cal-out { background: color-mix(in srgb, var(--row-bg) 45%, #fafafa); }
table.cal-table td.cal-out .cal-entry { opacity: 0.55; }
table.cal-table td.cal-cell.cal-closed { background: #e6e6e6; }
.cal-edit { color: #c00; text-decoration: none; font-weight: 900; margin-left: 4px; }
.cal-closed-label { font-weight: 700; padding-top: 10px; }
.cal-entry { padding: 2px 3px; border-radius: 4px; margin: 1px 0; line-height: 1.25; }
.lesson-link { color: inherit; text-decoration: none; }
.lesson-link:hover { background: var(--yellow); }
.curriculum td .lesson-link { display: block; }
.cal-entry.cal-override { background: #fff3c4; }
.cal-entry.cal-skipped { background: #eee; color: #777; text-decoration: line-through; }
.cal-entry.cal-extra { background: #e3f0ff; }
.cal-heading { margin: 1.2rem 0 8px; font-size: 1.2rem; }
.cal-nav { display: flex; align-items: center; gap: 12px; }
.cal-nav .btn { min-width: 40px; padding: 4px 10px; font-size: 1.2rem; line-height: 1; }
.cal-nav strong { font-family: var(--head); font-size: 1.1rem; }
@media print {
  .cal-month { box-shadow: none; border-radius: 0; page-break-inside: avoid; margin-bottom: 8px; padding: 0; }
  table.cal-table { min-width: 0; font-size: 9px; }
  table.cal-table th.cal-title { font-size: 16px; }
  table.cal-table td.cal-cell { height: auto; padding: 2px 3px 4px; }
  .cal-heading { font-size: 12px; margin: 6px 0 4px; page-break-after: avoid; }
  table.cal-table th, table.cal-table tr.cal-dates td, table.cal-table td.cal-cell, .cal-entry.cal-override, .cal-entry.cal-skipped, .cal-entry.cal-extra { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Webcam window for profile photos (partials/photo-form.ejs) */
.photo-cam { margin-top: 10px; background: #fff; border: 2px solid var(--black); border-radius: 8px; padding: 10px; max-width: 360px; }
.photo-cam .photo-video, .photo-cam .photo-shot { display: block; width: 100%; max-width: 340px; aspect-ratio: 1 / 1; object-fit: cover; background: #000; border-radius: 6px; transform: scaleX(-1); }
.photo-cam .photo-shot { transform: none; }
.photo-cam-buttons { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }

/* Notice board straight under the hero */
.notice-board { background: #fffbd6; border: 2px solid var(--yellow); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.notice-board h3 { margin: 0 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.notice-board ul { margin: 0; padding-left: 1.2em; }
.notice-board li { margin: 4px 0; font-weight: 500; }
.notice-board .notice-empty { margin: 0; color: #555; }
.notice-board .notice-more { margin: 8px 0 0; }

/* the hidden attribute always wins (labels, buttons etc. set display themselves) */
[hidden] { display: none !important; }

.admin-top + .admin-top.admin-sub { margin-top: -1px; border-top: 1px solid #333; background: #1a1a1a; }
