/* JES Environment & Safety Consultancy – brand styles */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('/fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('/fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('/fonts/montserrat-latin-800-normal.woff2') format('woff2'); }

:root {
  --forest: #0B5921;   /* primary: header, buttons (8.5:1 with white) */
  --green: #1E6B1E;    /* headings (6.6:1 on white) */
  --mid: #4E9F39;      /* decorative only / large text */
  --lime: #89D348;     /* accents + badges with dark text; never text on white */
  --glow: #E0E771;     /* subtle highlights only */
  --water: #0090B4;    /* decorative blue */
  --cyan: #0CB4CC;     /* decorative cyan */
  --link: #00718D;     /* darkened water blue for link text (5.6:1 on white) */
  --ink: #072A16;      /* body text + dark sections */
  --muted: #3f5547; --line: #d5e3d8; --bg-alt: #f3f8f2; --white: #fff;
  --ok: #1E6B1E; --warn: #8a4b00; --bad: #b42318; --radius: 12px;
  --head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --body: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 7.5rem; }
body { margin: 0; color: var(--ink); line-height: 1.6; background: var(--white); font-family: var(--body); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
a { color: var(--link); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--green); line-height: 1.2; }
h1, h2 { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); margin: .3em 0 .45em; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0 0 .4em; }
h3 { font-weight: 700; letter-spacing: .02em; }
.muted { color: var(--muted); }
.error { color: var(--bad); font-weight: 600; min-height: 1.2em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--forest); color: var(--white); box-shadow: 0 2px 10px rgba(7,42,22,.25); }
.site-header::after { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--lime), var(--mid) 40%, var(--water) 75%, var(--cyan)); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; flex-wrap: wrap; }
.brand { color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand img { width: 50px; height: 50px; border-radius: 10px; background: #fff; padding: 2px; }
.brand-name { font-family: var(--head); font-weight: 800; letter-spacing: .14em; font-size: 1.35rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--head); font-weight: 600; letter-spacing: .12em; font-size: .62rem; text-transform: uppercase; opacity: .92; margin-top: 4px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 600; font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.nav-links a:hover, .nav-links a:focus { color: var(--lime); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.6); color: var(--white); border-radius: 8px; padding: 6px 12px; font: inherit; }

/* test mode banner */
.test-banner { background: var(--glow); color: var(--ink); text-align: center; font-weight: 700; font-size: .85rem; padding: 6px 12px; letter-spacing: .04em; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--white); padding: 56px 0 72px; }
.hero::before { content: ''; position: absolute; right: -18%; top: -40%; width: 80%; height: 160%; background: radial-gradient(ellipse at center, rgba(137,211,72,.22), rgba(12,180,204,.10) 45%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; left: -5%; right: -5%; bottom: -60px; height: 120px; border-radius: 50%; background: linear-gradient(90deg, var(--forest), var(--mid) 45%, var(--water) 80%, var(--cyan)); opacity: .9; transform: rotate(-2deg); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--forest); color: var(--white); font-family: var(--head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; padding: 6px 12px; border-radius: 999px; margin: 0; }
.lead { font-size: 1.14rem; max-width: 40em; }
.hero-points { padding-left: 0; list-style: none; display: grid; gap: 6px; }
.hero-points li::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 0 60% 0 60%; background: var(--mid); transform: translateY(1px); }
.hero-logo { text-align: center; }
.hero-logo img { width: 100%; max-width: 470px; height: auto; filter: drop-shadow(0 12px 22px rgba(7,42,22,.14)); }
.trainer-card { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--lime); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; text-align: left; }
.photo-placeholder { flex: 0 0 74px; height: 74px; border-radius: 50%; border: 2px dashed var(--mid); display: grid; place-items: center; font-size: .65rem; text-align: center; color: var(--muted); background: var(--bg-alt); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 8px; align-items: center; }
.btn { display: inline-block; border-radius: 999px; padding: 12px 24px; font-family: var(--head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover, .btn-primary:focus { background: var(--ink); }
.btn-accent { background: var(--lime); color: var(--ink); }
.btn-accent:hover { background: var(--glow); }
.btn-ghost { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn-small { padding: 7px 14px; font-size: .74rem; }
.btn-danger { background: var(--bad); color: var(--white); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #e9f3ea; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a { color: var(--lime); }
.section-intro { color: var(--muted); max-width: 48em; }
.section-dark .section-intro { color: #cfe3d3; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--forest), var(--mid), var(--water)); }
.card h3 { margin-top: 0; font-size: 1.05rem; color: var(--green); }
.card .tagline { font-weight: 700; color: var(--forest); margin-bottom: 0; font-size: .9rem; }
.card-env::before { background: linear-gradient(90deg, var(--mid), var(--lime)); }
.card-consult::before { background: linear-gradient(90deg, var(--water), var(--cyan)); }
.badge { display: inline-block; font-family: var(--head); font-weight: 700; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--lime); color: var(--ink); }
.badge-blue { background: #d9f3f8; color: #00566b; }
.badge-tentative { background: #dbeafe; color: #1e40af; border: 1px solid #60a5fa; }
.badge-confirmed { background: #fce8c4; color: #6a3200; border: 1px solid #d4a04a; }
.badge-grey { background: #e7ece8; color: var(--ink); }
.placeholder-note { display: inline-block; background: #fbfce8; color: #5c5200; border: 1px dashed #c9cf55; border-radius: 6px; padding: 2px 8px; font-style: italic; }
/* Unfilled Site content hints stay in the HTML for John to edit, but are hidden from visitors. Filled fields drop these classes. */
body:not(.show-placeholders) .placeholder-note,
body:not(.show-placeholders) .photo-placeholder { display: none !important; }
.about-grid:has(.quals[hidden]) { grid-template-columns: 1fr; }
.privacy-use { margin-top: .6rem; }
.legal-page h1 { margin-bottom: .4rem; }
.legal-page h2 { margin-top: 1.6rem; }
.legal-page ul { padding-left: 1.2rem; }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.quals ul { padding-left: 0; list-style: none; display: grid; gap: 8px; }

/* calendar list */
.cal-month { margin-top: 0; }
.cal-month h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--forest); border-bottom: 2px solid var(--lime); padding-bottom: 6px; }
.cal-month-nav { margin: 0 0 12px; max-width: 28rem; }
.cal-month-nav h3, #cal-month-title { flex: 1; text-align: center; text-transform: none; letter-spacing: 0; font-size: 1.15rem; border: 0; padding: 0; margin: 0; }
.day-courses { margin: 1.25rem 0 0; }
.day-courses h3 { margin: 0 0 8px; font-size: 1.1rem; }
#booking, #services, #about, #contact, #courses, .mcal, #day-courses:not([hidden]) { scroll-margin-top: 0.5rem; }
.cal-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.cal-date { font-family: var(--head); font-weight: 700; color: var(--green); }
.cal-title { font-weight: 600; }
.cal-meta { color: var(--muted); font-size: .9rem; }

/* booking */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.pill { border: 1.5px solid var(--forest); background: var(--white); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--forest); }
.pill[aria-selected="true"] { background: var(--forest); color: var(--white); }
.event-desc { color: var(--muted); min-height: 1.5em; }
.slots { display: grid; gap: 18px; margin-top: 12px; }
.slot-day h4 { margin: 0 0 8px; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.slot { text-align: left; border: 1.5px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 14px; font: inherit; cursor: pointer; display: grid; gap: 5px; color: var(--ink); }
.slot:hover { border-color: var(--forest); box-shadow: 0 4px 14px rgba(11,89,33,.14); }
.slot[aria-pressed="true"] { border-color: var(--forest); box-shadow: 0 0 0 3px var(--lime); }
.slot.is-full { background: #f6f7f6; }
.slot-time { font-family: var(--head); font-weight: 700; font-size: 1.02rem; color: var(--green); }
.slot-loc { color: var(--muted); font-size: .88rem; }
.seats { font-size: .9rem; font-weight: 700; }
.seats.ok { color: var(--ok); } .seats.low { color: var(--warn); } .seats.full { color: var(--bad); }
.seat-bar { height: 7px; background: #e3ece4; border-radius: 4px; overflow: hidden; }
.seat-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--forest), var(--mid)); }

.booking-form, .offer, .panel-box { margin-top: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 820px; box-shadow: 0 6px 24px rgba(7,42,22,.06); }
.booking-form h3, .offer h3 { margin-top: 0; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 16px; }
.option { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; display: grid; gap: 4px; font-weight: 400; margin: 0; }
.option:has(input:checked) { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(137,211,72,.6); }
.option input { width: auto; }
.option strong { font-family: var(--head); color: var(--green); }
.option.disabled { opacity: .55; cursor: not-allowed; }
.quote { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--bg-alt); border: 1px solid var(--line); border-left: 5px solid var(--forest); border-radius: 10px; padding: 12px 16px; margin: 8px 0 16px; }
.quote .amount { font-family: var(--head); font-weight: 800; font-size: 1.4rem; color: var(--forest); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .93rem; margin-bottom: 12px; }
input, textarea, select { font: inherit; padding: 10px 12px; border: 1px solid #a9bdae; border-radius: 8px; background: var(--white); font-weight: 400; width: 100%; color: var(--ink); }
input:focus, textarea:focus, select:focus, .btn:focus-visible, .pill:focus-visible, .slot:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
label.check input { width: auto; }
.chosen { font-weight: 700; color: var(--forest); }
.requirements { background: #f7fbe9; border: 1px solid #dfe8b5; border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.notice { margin-top: 20px; border: 1px solid #b9dcb0; background: #eef8ea; border-radius: var(--radius); padding: 18px 20px; max-width: 820px; }
.notice.warn { border-color: #f0c58a; background: #fff6e8; }
.notice.info { border-color: #9ed8e6; background: #eaf8fb; }
.notice h3 { margin-top: 0; }
.offer { border-color: #9ed8e6; border-left: 6px solid var(--water); }
.offer .big { font-size: 1.1rem; font-weight: 600; }
.alt-list { display: grid; gap: 10px; margin: 12px 0; }
.alt { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.manage-link { word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; background: var(--bg-alt); padding: 8px; border-radius: 6px; border: 1px solid var(--line); }
.receipt { border: 2px solid var(--forest); border-radius: var(--radius); padding: 22px; max-width: 760px; background: var(--white); }
.receipt-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 2px solid var(--lime); padding-bottom: 12px; margin-bottom: 12px; }
.receipt-head img { width: 120px; height: auto; }
.paid-stamp { font-family: var(--head); font-weight: 800; letter-spacing: .1em; color: var(--forest); border: 3px solid var(--forest); border-radius: 8px; padding: 4px 10px; transform: rotate(-4deg); }

.site-footer { background: var(--ink); color: #d7e8da; padding: 30px 0; font-size: .92rem; }
.site-footer::before { content: ''; display: block; height: 4px; margin-top: -30px; margin-bottom: 26px; background: linear-gradient(90deg, var(--lime), var(--mid), var(--water), var(--cyan)); }
.site-footer a, .footer-link { color: var(--lime); }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-brand { font-family: var(--head); font-weight: 800; letter-spacing: .12em; color: var(--white); }

/* manage + admin */
.page { padding: 36px 0 64px; min-height: 70vh; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; }
.kv dt { font-weight: 600; color: var(--muted); }
.kv dd { margin: 0; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.status.confirmed, .status.open, .status.succeeded, .status.offered { background: #e2f4dc; color: var(--forest); }
.status.cancelled, .status.failed, .status.expired { background: #fde8e7; color: var(--bad); }
.status.pending, .status.waiting, .status.tentative { background: #fff3d6; color: var(--warn); }
.status.none, .status.redeemed { background: #eef1ef; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); color: var(--green); font-family: var(--head); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.table-wrap { overflow-x: auto; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; border-bottom: 2px solid var(--line); }
.tab { border: none; background: none; padding: 10px 14px; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab[aria-selected="true"] { color: var(--forest); border-bottom-color: var(--lime); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; border-top: 4px solid var(--forest); }
.stat:nth-child(2) { border-top-color: var(--mid); } .stat:nth-child(3) { border-top-color: var(--water); } .stat:nth-child(4) { border-top-color: var(--lime); }
.stat .num { font-family: var(--head); font-weight: 800; font-size: 1.6rem; color: var(--green); }
.stat .lbl { color: var(--muted); font-size: .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.filters label { margin: 0; font-size: .8rem; }
.filters input, .filters select { padding: 7px 9px; }
pre.email { white-space: pre-wrap; font-family: var(--body); font-size: .88rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 0; }
.email-card { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.email-head { background: var(--forest); color: #fff; padding: 10px 14px; font-size: .88rem; }
.email-head strong { color: var(--lime); }
.code { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; word-break: break-all; background: var(--bg-alt); padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); display: block; }
.bar { height: 10px; background: linear-gradient(90deg, var(--forest), var(--mid)); border-radius: 5px; }
.mock-stripe { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.mock-left { background: #f6f9fc; padding: 48px 40px; }
.mock-right { padding: 48px 40px; background: #fff; box-shadow: -8px 0 24px rgba(50,50,93,.06); }
.mock-test { display: inline-block; background: #ffde92; color: #7a4a00; font-weight: 700; font-size: .75rem; padding: 3px 8px; border-radius: 4px; letter-spacing: .05em; }
.mock-amount { font-size: 2.2rem; font-weight: 700; color: #1a1f36; margin: 10px 0; }
.mock-pay { width: 100%; background: #0B5921; color: #fff; border: 0; border-radius: 6px; padding: 14px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.mock-field { border: 1px solid #d5dbe1; border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; color: #1a1f36; background: #fff; }

@media (max-width: 860px) {
  .hero-grid, .about-grid, .contact-grid, .admin-grid, .options, .mock-stripe { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 70px; }
  .hero-logo { order: -1; } .hero-logo img { max-width: 300px; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 12px; padding-bottom: 14px; }
  .nav-links.open { display: flex; }
  .kv { grid-template-columns: 1fr; }
  .cal-row { grid-template-columns: 1fr; gap: 4px; }
}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.section-sub{margin-top:34px}.options{border:0;padding:0}

/* consultancy day booking */
.pill-label { margin: 18px 0 0; font-family: var(--head); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pill-label + .pill-row { margin-top: 6px; }
.consult-panel { margin-top: 8px; }
.consult-layout { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 24px; align-items: start; margin-top: 12px; }
.consult-layout .booking-form, .consult-layout .notice { margin-top: 0; }
.mcal { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 6px 24px rgba(7,42,22,.06); border-top: 4px solid var(--forest); }
.mcal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.mcal-head h3 { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--forest); }
.mcal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--forest); background: var(--white); color: var(--forest); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.mcal-nav:hover { background: var(--bg-alt); }
.mcal-nav[disabled] { opacity: .35; cursor: not-allowed; }
.mcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mcal-dow { text-align: center; font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 2px 0 4px; }
.mcal-day { aspect-ratio: 1; min-height: 44px; border-radius: 10px; border: 1.5px solid transparent; background: #f1f4f2; color: #5d6d62; font: inherit; font-weight: 600; display: grid; place-items: center; padding: 0; cursor: not-allowed; position: relative; }
.mcal-day.is-free { background: #e6f5dd; border-color: var(--mid); color: var(--forest); cursor: pointer; }
.mcal-day.is-free:hover { background: var(--lime); color: var(--ink); }
.mcal-day[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--white); box-shadow: 0 0 0 3px var(--lime); }
.mcal-day.is-today::after { content: ''; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--water); }
.mcal-day:focus-visible, .mcal-nav:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; }
.mcal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.mcal-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: #f1f4f2; border: 1px solid #d6ddd8; }
.mcal-legend .lg-free::before { background: #e6f5dd; border: 1.5px solid var(--mid); }
.mcal-legend .lg-sel::before { background: var(--forest); border-color: var(--forest); }
.mcal-day[data-reason="training"] { background: #e3f1f6; color: #00566b; }
.mcal-day[data-reason="consultancy"], .mcal-day[data-reason="consultancy-pending"] { background: #fff3d6; color: var(--warn); }
.mcal-day[data-reason="blocked"] { background: #fde8e7; color: var(--bad); }
.status.requested { background: #fff3d6; color: var(--warn); }
.status.declined { background: #fde8e7; color: var(--bad); }
.decide { border: 2px solid var(--forest); }
@media (max-width: 860px) { .consult-layout { grid-template-columns: 1fr; } .mcal { padding: 12px; } .mcal-grid { gap: 2px; } }
.mcal-legend .lg-training::before { background: #e3f1f6; } .mcal-legend .lg-consult::before { background: #fff3d6; } .mcal-legend .lg-blocked::before { background: #fde8e7; }

/* consultancy popup */
.hero-sub-link { margin: 4px 0 0; font-weight: 600; }
body.cd-open { overflow: hidden; }
.cdialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: 16px; padding: 0; color: var(--ink); box-shadow: 0 24px 60px rgba(7,42,22,.35); overflow: auto; }
.cdialog::backdrop { background: rgba(7,42,22,.55); }
.cd-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; background: var(--forest); color: var(--white); padding: 16px 20px 12px; }
.cd-head h2 { color: var(--white); font-size: 1.15rem; margin: 0; }
.cd-head p { color: #d7ecd9; margin: 4px 0 0; font-size: .9rem; }
.cd-close { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: transparent; color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cd-close:hover { background: rgba(255,255,255,.12); }
.cd-close:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.cd-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 10px 20px; background: var(--bg-alt); border-bottom: 1px solid var(--line); counter-reset: s; flex-wrap: wrap; }
.cd-steps li { counter-increment: s; font-size: .78rem; font-weight: 700; color: var(--muted); font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; }
.cd-steps li::before { content: counter(s) '. '; }
.cd-steps li.is-current { background: var(--forest); color: var(--white); }
.cd-steps li.is-done { color: var(--green); }
#cd-banner .notice { margin: 12px 20px 0; max-width: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; }
.cd-body { padding: 16px 20px 8px; }
.cd-body h3 { margin: 0 0 6px; }
.cd-body h3:focus { outline: none; }
.cd-lead { color: var(--muted); margin: 0 0 12px; }
.cd-foot { padding: 4px 20px 16px; margin: 0; font-size: .9rem; }
.cdialog .mcal { box-shadow: none; max-width: 440px; }
.mcal-title { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--forest); }
.cd-options { display: grid; gap: 8px; margin: 6px 0 12px; }
.cd-option { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; cursor: pointer; font-weight: 400; }
.cd-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--forest); }
.cd-option:has(input:checked) { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(137,211,72,.6); }
.cd-option:has(input:focus-visible) { outline: 3px solid var(--water); outline-offset: 2px; }
.cd-option-main { display: grid; }
.cd-option-main strong { font-family: var(--head); color: var(--green); }
.cd-option-dates { font-size: .85rem; color: var(--muted); }
.cd-option-price { font-weight: 700; color: var(--forest); text-align: right; }
.cd-option.is-off { background: #f4f6f4; cursor: not-allowed; }
.cd-option.is-off strong, .cd-option.is-off .cd-option-dates { color: #5d6d62; }
.cd-option.is-off .cd-option-price { color: var(--muted); font-weight: 600; font-size: .85rem; max-width: 46%; }
.cd-half { max-width: 260px; }
.cd-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.cd-choice { display: grid; gap: 6px; text-align: left; border: 1.5px solid var(--line); background: var(--white); border-radius: 12px; padding: 16px; font: inherit; color: var(--ink); cursor: pointer; }
.cd-choice strong { font-family: var(--head); color: var(--green); font-size: 1.05rem; }
.cd-choice:hover { border-color: var(--forest); box-shadow: 0 4px 14px rgba(11,89,33,.14); }
.cd-choice:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; }
.cd-company { display: grid; gap: 14px; }
.cd-company .panel-box { margin-top: 0; max-width: none; box-shadow: none; }
.cd-form .options { grid-template-columns: 1fr 1fr; }
.status.overdue { background: #fde8e7; color: var(--bad); }
@media (max-width: 640px) {
  .cdialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .cd-choices, .cd-form .options { grid-template-columns: 1fr; }
  .cd-option { grid-template-columns: auto 1fr; }
  .cd-option-price { grid-column: 2; text-align: left; max-width: none !important; }
  .cd-steps li { font-size: .7rem; padding: 3px 8px; }
}

/* shared month calendar (table grid) */
.mcal-table { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; margin: 0 -4px; width: calc(100% + 8px); }
.mcal-table th { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 2px 0 4px; text-align: center; }
.mcal-table td { padding: 0; }
.mcal-table .mcal-day { width: 100%; }
.mcal-day.s-available { background: #e6f5dd; border-color: var(--mid); color: var(--forest); cursor: pointer; }
.mcal-day.s-available:hover { background: var(--lime); color: var(--ink); }
.mcal-day.s-spaces { background: #fce8c4; border-color: #d4a04a; color: #6a3200; cursor: pointer; }
.mcal-day.s-spaces:hover { background: #f5d9a8; }
.mcal-day.s-spaces::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
.mcal-day.s-tentative { background: #dbeafe; border-color: #60a5fa; color: #1e40af; cursor: pointer; }
.mcal-day.s-tentative:hover { background: #bfdbfe; }
.mcal-day.s-booked { background: #f8d4d0; color: #8a1414; border-color: #d48a86; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.mcal-day.s-unavailable { background: #f1f4f2; color: #4d5c54; }
.mcal-day.s-unavailable.is-pickable { cursor: pointer; }
.mcal-day.s-unavailable.is-pickable:hover { background: #e4e9e6; border-color: #9aa89f; }
.mcal-day.s-past { background: #f3f3f3; color: #595959; }
.mcal-day.s-loading { background: #f6f8f6; color: #595959; cursor: progress; }
.mcal-day.is-today { border-color: var(--water); box-shadow: inset 0 0 0 2px var(--water); }
.mcal-day.is-selected { background: var(--forest); border-color: var(--forest); color: var(--white); box-shadow: 0 0 0 3px var(--lime); }
.mcal-legend .lg-spaces::before { background: #fce8c4; border-color: #d4a04a; box-shadow: inset 0 -3px 0 0 #6a3200; }
.mcal-legend .lg-tentative::before { background: #dbeafe; border-color: #60a5fa; }
.mcal-legend .lg-booked::before { background: #f8d4d0; border-color: #d48a86; background-image: linear-gradient(to bottom right, transparent calc(50% - 0.7px), #8a1414 calc(50% - 0.7px), #8a1414 calc(50% + 0.7px), transparent calc(50% + 0.7px)); }
.mcal-legend .lg-off::before { background: #f1f4f2; border-color: #d6ddd8; }
.mcal-legend .lg-past::before { background: #f3f3f3; border-color: #e0e0e0; }
.mcal-note, .mcal-hint { margin: 8px 0 0; font-size: .9rem; }
.mcal-hint { margin-top: 6px; }
.inline-cal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: start; margin: 8px 0 28px; }
.inline-cal-text h3 { margin-top: 0; }
.inline-cal .mcal { max-width: 520px; }
@media (max-width: 860px) { .inline-cal { grid-template-columns: 1fr; gap: 12px; } .inline-cal .mcal { max-width: none; } }
@media (max-width: 860px) {
  .mcal-table { border-spacing: 2px; margin: 0 -2px; width: calc(100% + 4px); }
}
@media (max-width: 380px) { .mcal-day { font-size: .9rem; } }
.mcal-table th, .mcal-table td { background: none; border: 0; }

/* site content (public) */
.hero-logo .trainer-card .trainer-photo { width: 74px; max-width: 74px; height: 74px; filter: none; border-radius: 50%; object-fit: cover; border: 3px solid var(--lime); flex: 0 0 auto; }
.card-meta { font-size: .85rem; font-weight: 700; color: var(--forest); margin-top: 6px; }
.testimonial { margin: 0 0 12px; padding: 10px 14px; border-left: 4px solid var(--lime); background: var(--white); border-radius: 0 8px 8px 0; font-style: italic; }
.social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 8px 0 0; }
.social-links a { color: var(--white); font-weight: 700; }

/* site content (admin) */
.content-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.content-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.cfield { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 6px; }
.cfield:first-of-type { border-top: 0; }
.cfield-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cfield-head label { margin: 0; font-weight: 700; }
.cfield .edited { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #fff3d6; color: var(--warn); padding: 2px 8px; border-radius: 999px; }
.cfield .default-text { font-size: .82rem; color: var(--muted); white-space: pre-line; }
.cfield input, .cfield textarea { width: 100%; }
.cfield .count { font-size: .75rem; color: var(--muted); text-align: right; }
.cimages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cimage { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.cimage .preview { height: 140px; display: grid; place-items: center; background: repeating-conic-gradient(#eef3ef 0 25%, #fff 0 50%) 50% / 16px 16px; border-radius: 8px; overflow: hidden; }
.cimage .preview img { max-width: 100%; max-height: 140px; object-fit: contain; }
.cimage.dark .preview { background: var(--forest); }
.ccourses td .btn { margin: 2px; }
.ccourses .hiddenrow td { opacity: .6; }
.course-editor { border: 2px solid var(--forest); border-radius: 12px; padding: 14px; margin: 10px 0; }
.m0 { margin: 0; }
.pre { white-space: pre-line; }
.status.approved { background: #e6f5dd; color: var(--forest); }
.status.suspended { background: #f1f4f2; color: #5d6d62; }

.biz-signin { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; margin: 0 0 1.25rem; }
.biz-signin label { margin: 0; }
.biz-signin input { min-width: 12rem; }


/* approved mobile fixes */
#enquire-root h1:focus { outline: none; }
#enquire-root h1:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; }

@media (max-width: 860px), (pointer: coarse) {
  .kb-hint { display: none; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select, textarea { font-size: 16px; }
  .mcal-nav { width: 44px; height: 44px; }
  .btn-small { min-height: 44px; min-width: 44px; padding: 10px 16px; }
  .nav-toggle { min-height: 44px; min-width: 44px; padding: 10px 12px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; padding: 10px 4px; }
  .card .tagline a, a.enquire-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; }
  .biz-signin .btn { min-height: 44px; }
}


/* course pages and card title links */
.card h3 a.course-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.card h3 a.course-link:hover, .card h3 a.course-link:focus { color: var(--link); }
.course-page .lead { max-width: 42rem; }
.course-index { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.course-index h2 { font-size: 1.15rem; margin: 0 0 .25rem; text-transform: none; letter-spacing: 0; }
.course-index p { margin: 0; }
.course-page .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }
#courses, #course, .course-page { scroll-margin-top: 0.5rem; }
