@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/poppins-300.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff') format('woff'); }
:root {
  /* Thirst Music School: black, electric blue and white (from the logo) */
  --bg: #000000;
  --bg2: #0c0c0e;
  --ink: #f4f4f2;
  --muted: #9ba1a8;
  --line: #2b2c30;
  --card: #141417;
  --accent: #00adef;
  --accent-ink: #000000;
  --paper: #ffffff;
  --paper-ink: #231f20;
  --ok: #3ddc84;
  --warn: #ffb020;
  --err: #ff5d5d;
  --radius: 6px;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
h1, h2, h3 { line-height: 1.1; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 .5em; color: var(--accent); }
h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.2em 0 .4em; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { max-width: min(1500px, 96vw); margin: 0 auto; padding: 0 16px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
code { background: var(--line); padding: 1px 6px; border-radius: 4px; font-size: .9em; color: var(--accent); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); padding: .55em 1.3em; border-radius: 4px; font-family: var(--display); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.btn:hover { box-shadow: 3px 3px 0 var(--paper); transform: translate(-2px, -2px); }
.btn:active { transform: none; box-shadow: none; }
.btn-small { padding: .3em .85em; font-size: .85rem; letter-spacing: .05em; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #4a4c52; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; transform: none; }
.btn-danger { background: transparent; color: var(--err); border-color: #5a2b2b; }
.btn-danger:hover { box-shadow: none; transform: none; border-color: var(--err); }
.linklike { background: none; border: 0; color: inherit; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; opacity: .8; }

/* Flash */
.flash { padding: .7em 1em; border-radius: var(--radius); margin: 0 0 1em; border: 1px solid var(--line); background: var(--card); }
.flash.ok { border-left: 4px solid var(--ok); }
.flash.err { border-left: 4px solid var(--err); }

/* Forms */
.form { display: grid; gap: 14px; }
.form.narrow { max-width: 560px; }
.form.inline { grid-auto-flow: column; align-items: end; grid-auto-columns: max-content; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.form label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
  width: 100%; padding: .6em .8em; font: inherit; font-weight: 400; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 12px 0; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }

/* Public site */
.site-header { border-bottom: 3px solid var(--accent); background: #000; position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 12px; }
.brand { display: block; line-height: 0; text-decoration: none; color: var(--ink); }
.logo { display: block; height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); padding: .4em .85em; border-radius: 4px; font-family: var(--display); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover:not(.btn) { color: var(--accent); }
.nav a.on:not(.btn) { background: var(--paper); color: var(--paper-ink); }
.nav a.btn { color: var(--accent-ink); margin-left: 8px; font-size: 1.05rem; }
.nav-toggle, .nav-burger { display: none; }
.main { padding-top: 32px; padding-bottom: 56px; min-height: 60vh; }
.hero { padding: 24px 0 24px; }
.hero-logo { display: block; width: min(560px, 90%); height: auto; margin: 0 auto 28px; }
.hero h1, .hero h2 { text-align: left; }
.hero .lead, .lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.prose { max-width: 720px; }
.prose img { max-width: 100%; height: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 18px; }
.card h3 { margin-top: 0; }
.site-footer { border-top: 3px solid var(--accent); background: #000; padding: 32px 0 16px; }
.foot-logo { height: 92px; width: auto; display: block; margin-bottom: 10px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.copy { padding-top: 16px; font-size: .85rem; }

/* Booking */
.step { margin: 0 0 8px; }
.step h2 { display: flex; align-items: center; gap: 10px; margin-top: 1.2em; }
.step h2 small { font-size: .9rem; font-weight: 400; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--paper); color: var(--paper-ink); font-family: var(--display); font-size: 1.1rem; transform: rotate(-3deg); }
.choice { display: flex; gap: 12px; cursor: pointer; align-items: flex-start; }
.choice input { margin-top: 5px; accent-color: var(--accent); }
.choice-body { display: grid; gap: 2px; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.cal { max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-nav button { background: none; border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; color: var(--ink); font-size: 1rem; }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .h { font-size: .75rem; color: var(--muted); padding: 4px 0; }
.cal-grid button { aspect-ratio: 1; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.cal-grid button:disabled { color: var(--muted); opacity: .35; cursor: default; }
.cal-grid button:not(:disabled):hover { background: var(--line); }
.cal-grid button.sel { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.cal-grid button.today { box-shadow: inset 0 0 0 1px var(--accent); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: .5em .9em; font: inherit; cursor: pointer; }
.slot.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.summary { font-weight: 600; }

/* Bare pages (setup / login) */
body.bare { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.bare-logo { display: block; width: min(260px, 70%); height: auto; margin: 0 auto 18px; }
.bare-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 28px; }
.bare-card h1 { font-size: 1.8rem; text-align: center; }

/* Back office */
body.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { overflow-y: auto; background: #000; border-right: 3px solid var(--accent); color: #f3eee6; padding: 20px 12px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; }
.side-brand { padding: 0 10px; }
.side-brand .logo { height: auto; width: 100%; max-width: 170px; }
.side-brand small { display: block; font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--paper-ink); background: var(--paper); width: max-content; padding: 0 8px; margin-top: 6px; transform: rotate(-1.5deg); font-size: .8rem; }
.side nav { display: grid; gap: 2px; }
.side nav a { color: #f3eee6; text-decoration: none; padding: .45em .8em; border-radius: 4px; font-family: var(--display); letter-spacing: .05em; text-transform: uppercase; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; }
.side nav a:hover { background: rgba(255,255,255,.08); color: var(--accent); }
.side nav a.on, .side nav a.on:hover { background: var(--accent); color: var(--accent-ink); }
.pill { background: var(--err); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 7px; min-width: 20px; text-align: center; }
.side-foot { margin-top: auto; padding: 0 10px; font-size: .88rem; display: grid; gap: 8px; }
.side-foot a, .side-foot .linklike { color: #f3eee6; }
.side-foot .btn { display: block; width: 100%; text-align: center; color: #f3eee6; }
.side-foot .btn:hover { color: var(--accent); }
.side-foot form { margin: 0; }
.admin-main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.admin-main h1 { font-size: 2.2rem; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); background: var(--bg2); }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--line); }
.badge.pending { background: rgba(255,176,32,.16); color: #ffcf70; }
.badge.confirmed { background: rgba(61,220,132,.16); color: #6df0a6; }
.badge.cancelled { background: rgba(255,93,93,.16); color: #ff8f8f; }
.badge.completed { background: rgba(0,173,239,.18); color: #5cc9f5; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); display: grid; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--accent); }
.stat { border-top: 3px solid var(--accent) !important; }
.stat:hover { border-color: var(--paper); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: .3em .9em; border: 1px solid #4a4c52; border-radius: 4px; text-decoration: none; color: var(--ink); background: transparent; font-family: var(--display); letter-spacing: .05em; text-transform: uppercase; font-size: .95rem; }
.tabs a:hover { border-color: var(--accent); color: var(--accent); }
.tabs a.on { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.cal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.admin-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.admin-cal .dow { font-size: .75rem; text-transform: uppercase; color: var(--muted); padding: 4px; }
.admin-cal .day { background: var(--card); border: 1px solid var(--line); border-radius: 8px; min-height: 96px; padding: 4px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.admin-cal .day.empty { background: transparent; border-color: transparent; }
.admin-cal .day.today { border-color: var(--accent); }
.admin-cal .day.blocked { background: repeating-linear-gradient(45deg, var(--card), var(--card) 6px, #24252a 6px, #24252a 12px); }
.admin-cal .dn { font-size: .8rem; color: var(--muted); }
.ev { font-size: .72rem; padding: 1px 5px; border-radius: 4px; text-decoration: none; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #ffcf70; }
.ev.confirmed { background: #6df0a6; }
.ev.completed { background: #5cc9f5; }
.msg.unread { border-left: 4px solid var(--accent); }
.msg header { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }

@media (max-width: 760px) {
  .nav-burger { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; order: 3; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); content: ""; position: relative; }
  .nav-burger span::before { top: -6px; position: absolute; }
  .nav-burger span::after { top: 6px; position: absolute; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #000; border-bottom: 3px solid var(--accent); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a.btn { margin: 6px 0 0; text-align: center; }
  body.admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 3px solid var(--accent); }
  .logo { height: 48px; }
  .side nav { grid-template-columns: repeat(2, 1fr); }
  .form.inline { grid-auto-flow: row; grid-auto-columns: auto; }
  .admin-cal .day { min-height: 64px; }
  .ev { font-size: .62rem; }
}

/* Customer accounts */
.narrow-page { max-width: 460px; margin: 0 auto; }
.account-tabs { align-items: center; margin-bottom: 20px; }
.account-tabs .tabs-right { margin-left: auto; }
fieldset.panel { margin: 0; }
fieldset.panel legend { font-weight: 700; padding: 0 6px; }
.balance .big { font-size: 2.6rem; font-weight: 800; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; }
.owed { color: var(--err); }
.stat b.owed { color: var(--err); }
.num-col { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th.num-col { text-align: right; }
td.credit { color: var(--ok); }
.cust-head { display: flex; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.cust-head .big { font-size: 2rem; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.grid2 .panel { margin: 0; }
.searchbar { display: flex; gap: 8px; margin-bottom: 14px; max-width: 460px; }

/* Scheduling */
.err-text { color: var(--err); font-weight: 600; }
.cards-small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.step h3 { margin: 1.2em 0 .5em; }
#teachers { max-width: 760px; }

/* Room rota */
table.rota td, table.rota th { padding: 8px 10px; font-size: .88rem; }
table.rota td.shared { background: color-mix(in srgb, var(--warn) 22%, transparent); }

/* Teacher area */
body.teacher-area { background: var(--bg); }
.t-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 12px 20px; background: #000; border-bottom: 3px solid var(--accent); color: #f3eee6; }
.t-head .logo { height: 46px; }
.t-head .tabs { margin: 0; }
.t-head .tabs a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.t-brand { display: flex; align-items: center; gap: 10px; line-height: 0; } .t-brand small { line-height: 1; font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-ink); background: var(--paper); padding: 2px 8px; transform: rotate(-1.5deg); }
.t-out { margin-left: auto; display: flex; align-items: center; gap: 10px; } .t-out .muted { color: #cfc8bd; }
.t-main { max-width: min(1400px, 96vw); margin: 0 auto; padding: 20px 16px 60px; }
.t-day { margin: 26px 0 8px; font-size: 1.3rem; color: var(--paper); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.t-lesson { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.t-lesson.is-cancelled { opacity: .6; }
.t-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.t-att, .t-cancel { display: flex; flex-wrap: wrap; gap: 6px; }
.t-comment { display: grid; gap: 6px; } .t-comment textarea { width: 100%; }
.t-comment button { justify-self: start; }

/* Back office calendar (light panel, like a diary) */
.tc-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 12px; flex-wrap: wrap; }
.tc-title { position: relative; font-family: var(--display); font-size: 1.5rem; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tc-title .caret { width: 9px; height: 9px; }
.tc-jump { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tc-nav { display: flex; align-items: center; gap: 6px; }
.tc-nav a { color: var(--accent); text-decoration: none; padding: .15em .7em; border: 1px solid #4a4c52; border-radius: 4px; font-size: 1.3rem; line-height: 1.2; }
.tc-nav a.tc-today { font-size: .95rem; font-family: var(--display); letter-spacing: .05em; text-transform: uppercase; line-height: 1.7; }
.tc-nav a:hover { border-color: var(--accent); }
.tc-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--paper); color: #2b3a45; border-radius: 6px; padding: 8px; margin-bottom: 10px; }
.tc-left, .tc-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-tools select, .tc-tools input[type=search], .tc-btn, .tc-opt summary { background: #fff; color: #2b3a45; border: 1px solid #cfd6dc; border-radius: 5px; padding: .45em .8em; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; width: auto; }
.tc-tools input[type=search] { font-weight: 400; cursor: text; min-width: 150px; }
.tc-tools select:hover, .tc-btn:hover, .tc-opt summary:hover { border-color: var(--accent); }
.tc-opt { position: relative; }
.tc-opt summary { list-style: none; } .tc-opt summary::-webkit-details-marker { display: none; }
.tc-opt summary::after { content: " \25BE"; }
.tc-pop { position: absolute; top: 110%; left: 0; z-index: 30; background: #fff; border: 1px solid #cfd6dc; border-radius: 6px; padding: 12px; display: grid; gap: 10px; min-width: 250px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.tc-pop .check { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.tc-scroll { overflow-x: auto; border-radius: 6px; }
.tc { background: #fff; color: #2b3a45; position: relative; --line: #d5dbe0; }
.tc-row { display: grid; grid-template-columns: var(--cols); }
.tc-heads { position: sticky; top: 0; z-index: 6; background: #f7f9fa; border-bottom: 1px solid #d5dbe0; }
.tc-h { text-align: center; padding: 10px 4px; font-size: .82rem; border-left: 1px solid #e3e7ea; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-h a { color: inherit; text-decoration: none; } .tc-h span { color: #6b7a86; }
.tc-h.is-today { background: #e5f5fd; color: #0a78ad; }
.tc-axis-h { font-size: .72rem; color: #6b7a86; padding: 10px 6px; text-align: right; }
.tc-allday { background: #f7f9fa; border-bottom: 2px solid #d5dbe0; min-height: 32px; }
.tc-allday .tc-axis-h { padding: 8px 6px; }
.tc-ad { border-left: 1px solid #e3e7ea; padding: 4px 6px; font-size: .72rem; color: #8a96a0; text-align: center; }
.tc-body { position: relative; }
.tc-axis { position: relative; background: #fff; color: #6b7a86; font-size: .72rem; }
.tc-axis span { position: absolute; right: 6px; transform: translateY(-50%); background: #fff; padding: 0 2px; }
.tc-axis .tc-now-label { color: #fff; background: #0f95d7; font-weight: 700; border-radius: 3px; padding: 0 4px; z-index: 5; }
.tc-col { position: relative; border-left: 1px solid #e3e7ea; background-color: #e9edf0; }
.tc-win { position: absolute; left: 0; right: 0; background-color: #fff; }
.lines { background-image: linear-gradient(to bottom, #d5dbe0 1px, transparent 1px), linear-gradient(to bottom, #eef1f3 1px, transparent 1px); background-size: 100% calc(var(--ppm) * 30), 100% calc(var(--ppm) * 15); background-position: 0 calc(-1 * var(--o, 0px)), 0 calc(-1 * var(--o, 0px)); }
.tc-ev { position: absolute; z-index: 2; overflow: hidden; border-radius: 4px; border-left: 4px solid; padding: 2px 6px; font-size: .74rem; line-height: 1.25; text-decoration: none; color: #14202a; box-shadow: 0 1px 2px rgba(0,0,0,.18); transition: opacity .15s; }
.tc-ev:hover { z-index: 3; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.tc-ev b { font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-name { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sub { display: block; color: #435360; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pending { background: #ffe9a8; border-color: #f0b000; }
.st-confirmed { background: #cdeeff; border-color: #00adef; }
.st-completed { background: #c9f2d8; border-color: #2fb866; }
.st-cancelled { background: #eceff1; border-color: #aab4bc; text-decoration: line-through; color: #6b7a86; }
.att-absent_billable { border-left-style: dashed; } .att-absent_refundable { background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,.55) 6px 12px); }
.tc-ev.dim { opacity: .15; } .tc-ev.hit { outline: 2px solid #0f95d7; z-index: 4; }
.tc-now { position: absolute; left: 56px; right: 0; height: 3px; background: #0f95d7; z-index: 4; transform: translateY(-1px); pointer-events: none; }
.tc-key { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tc-key .k { padding: 0 10px; border-left: 4px solid; border-radius: 3px; color: #14202a; font-size: .78rem; }
.admin-cal.tc-light .day { background: #fff; border-color: #dfe4e8; color: #2b3a45; }
.admin-cal.tc-light .day.empty { background: transparent; border-color: transparent; }
.admin-cal.tc-light .day.today { border-color: #0f95d7; box-shadow: inset 0 0 0 1px #0f95d7; }
.admin-cal.tc-light .day.blocked { background: repeating-linear-gradient(45deg, #fff, #fff 6px, #e9edf0 6px, #e9edf0 12px); }
.admin-cal.tc-light .dn { color: #5a6b78; text-decoration: none; font-weight: 700; } .admin-cal.tc-light .dn:hover { color: #0f95d7; }
.ev.tc-ev { position: static; padding: 1px 5px; border-left-width: 3px; box-shadow: none; font-size: .72rem; }
.ev.pending { background: #ffe9a8; } .ev.confirmed { background: #cdeeff; } .ev.completed { background: #c9f2d8; }
@media print {
  body.admin { display: block; background: #fff; }
  .side, .tc-bar .tc-nav, .tc-tools, .flash, .tc-key, .admin-main > h1 { display: none !important; }
  .admin-main { padding: 0; } .tc-title { color: #000; }
  .tc-scroll { overflow: visible; } .tc { min-width: 0 !important; } .tc-heads { position: static; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Drop-down menus */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-top, .nav-caret { background: none; border: 0; color: var(--ink); cursor: pointer; font-family: var(--display); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; padding: .4em .85em; border-radius: 4px; text-decoration: none; }
.nav-top.on { background: var(--paper); color: var(--paper-ink); }
.nav-item > a.nav-top { padding-right: .3em; }
.nav-caret { padding: .4em .5em .4em .1em; }
.nav-top:hover, .nav-caret:hover { color: var(--accent); }
.nav-top.on:hover { color: var(--paper-ink); }
.caret { display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.nav-item.open .caret { transform: rotate(-135deg) translateY(-2px); }
.sub { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 220px; background: var(--paper); border-radius: 0 0 6px 6px; padding: 8px 6px 10px; text-align: center; box-shadow: 0 10px 24px rgba(0,0,0,.5); border-top: 3px solid var(--accent); z-index: 20; }
.nav .sub a { display: block; color: var(--paper-ink); padding: .45em 1em; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 1rem; letter-spacing: 0; text-transform: none; border-radius: 0; }
.nav .sub a:hover { color: #0086bd; background: #eef8fd; }
.nav .sub a.on { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; background: none; color: var(--paper-ink); }
.nav-item.open .sub { display: block; }
@media (hover: hover) and (min-width: 761px) { .nav-item:hover .sub, .nav-item:focus-within .sub { display: block; } }
@media (max-width: 760px) {
  .nav-item { flex-wrap: wrap; justify-content: space-between; }
  .nav-top { flex: 1; text-align: left; }
  .sub { position: static; transform: none; width: 100%; min-width: 0; background: transparent; box-shadow: none; border-top: 0; text-align: left; padding: 0 0 6px 14px; border-left: 3px solid var(--accent); margin-left: 8px; }
  .nav .sub a { color: var(--ink); }
  .nav .sub a:hover { background: transparent; color: var(--accent); }
  .nav .sub a.on { color: var(--accent); background: transparent; }
}

/* Brand touches */
.tag { display: inline-block; background: var(--paper); color: var(--paper-ink); font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; padding: 1px 12px; transform: rotate(-1.5deg); }
::selection { background: var(--accent); color: #000; }
hr { border: 0; border-top: 1px solid var(--line); }
.lead { color: var(--ink); opacity: .85; }
.flash { background: var(--card); }
.choice:has(input:checked) { background: #0b1a22; }
.cal-grid button.today { box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 760px) { .logo { height: 48px; } .bar { min-height: 68px; } .nav { top: 68px; } }

/* Teacher: unmarked attendance alert */
.t-count{display:inline-block;min-width:1.4em;padding:0 .4em;border-radius:1em;background:#e5484d;color:#fff;font-size:.75em;text-align:center;line-height:1.5}
.tabs a.t-alert{color:#ff8a8d}
.t-modal{max-width:min(92vw,28rem);border:2px solid var(--accent);border-radius:10px;background:#111;color:#fff;padding:1.2rem 1.4rem}
.t-modal::backdrop{background:rgba(0,0,0,.7)}
.t-modal h2{margin-top:0}
.t-modal ul{padding-left:1.1rem;max-height:40vh;overflow:auto}

/* Finance */
.fin-tabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.fin-tabs a { padding: .4em 1em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.fin-tabs a.on { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }
.fin-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.fin-filter label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.fin-filter .cust { display: flex; gap: 12px; }
.fin-filter .cust[hidden] { display: none; }
.fin-kpis .stat span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.fin-kpis .stat b { font-size: 1.9rem; }
.fin-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.fin-chart { width: 100%; height: auto; display: block; }
.fin-chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.fin-chart text.val { fill: var(--ink); }
.fin-chart .grid { stroke: var(--line); stroke-width: 1; }
.fin-chart .zero { stroke: var(--muted); stroke-width: 1.2; }
.fin-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.fin-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--c); margin-right: 6px; }
details.panel summary { cursor: pointer; }
.fin-bars text { font-size: 15px; }
.fin-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ---------- Phones, tablets and desktops ---------- */
body { overflow-wrap: break-word; }
.panel, .card, .note, .flash, .stat, label, .admin-main p, .t-main p, .wrap p { overflow-wrap: anywhere; }
fieldset { min-width: 0; }
img, svg, video { max-width: 100%; }
.admin-main > * , .t-main > * { max-width: 100%; }
body.admin { grid-template-columns: 220px minmax(0, 1fr); }
.form.inline { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 14px; }
.form.inline label { width: auto; }
.form.inline input[type=text], .form.inline input[type=number], .form.inline input[type=date], .form.inline input[type=time], .form.inline select { width: auto; min-width: 0; max-width: 100%; }
.adm-toggle { display: none; }
.side-top { display: block; }
.adm-burger { display: none; }

/* Back office: tablets in portrait and phones get the menu on top, collapsed */
@media (max-width: 900px) {
  body.admin { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; border-right: 0; border-bottom: 3px solid var(--accent); padding: 12px 16px; gap: 8px; overflow: visible; }
  .side-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .side-brand .logo { max-width: 130px; }
  .adm-burger { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid #4a4c52; border-radius: 8px; cursor: pointer; font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; color: #f3eee6; }
  .adm-burger span, .adm-burger span::before, .adm-burger span::after { display: block; width: 18px; height: 2px; background: currentColor; content: ""; position: relative; }
  .adm-burger span::before { position: absolute; top: -6px; }
  .adm-burger span::after { position: absolute; top: 6px; }
  .adm-burger b { font-weight: 400; }
  .adm-toggle:focus-visible ~ .side-top .adm-burger { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); }
  .side nav, .side-foot { display: none; }
  .adm-toggle:checked ~ nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); padding-top: 6px; }
  .adm-toggle:checked ~ .side-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, max-content)); gap: 4px 24px; margin-top: 0; padding-bottom: 6px; }
  .side nav a { padding: .7em .8em; }
  .admin-main { padding: 20px 16px 48px; }
  .admin-main h1 { font-size: 1.8rem; }
}

/* Touch screens: comfortable tap targets, and 16px text so phones do not zoom in on form fields */
@media (pointer: coarse), (max-width: 760px) {
  .btn-small { padding: .6em 1.05em; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .btn { min-height: 44px; }
  button.linklike, .side-foot a, .nav-top, .sub a { padding-top: .6em; padding-bottom: .6em; display: inline-block; }
  input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea { font-size: 16px; min-height: 44px; }
  .form label.check { min-height: 44px; align-items: center; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; flex: none; }
  td form, td .actions { display: flex; flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 760px) {
  .actions, .tc-tools { flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat b { font-size: 2rem; }
  .fin-kpis .stat b { font-size: 1.5rem; }
  .table-wrap table { min-width: 640px; }
  .fin-scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
  .fin-scroll .fin-chart { min-width: 600px; }
  .fin-filter { display: grid; grid-template-columns: 1fr 1fr; }
  .fin-filter .cust { grid-column: 1 / -1; }
  .fin-filter button { grid-column: 1 / -1; }
  h1 { font-size: 2rem; }
}
@media (max-width: 380px) { .stats { grid-template-columns: minmax(0, 1fr); } .fin-filter { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .fin-two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home page: picture carousel ---------- */
.hero-car { position: relative; width: 100%; height: clamp(340px, calc(100svh - 120px), 820px); background: #000; overflow: hidden; border-bottom: 3px solid var(--accent); }
.hc-track, .hc-slide { position: absolute; inset: 0; }
.hc-slide { display: block; opacity: 0; transition: opacity .9s ease; pointer-events: none; color: #fff; text-decoration: none; }
.hc-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hc-slide img, .hc-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 38%, rgba(0,0,0,0) 60%); pointer-events: none; }
.hc-caption { position: absolute; left: max(16px, calc((100% - 1040px) / 2 + 16px)); bottom: 96px; right: 70px; z-index: 2; font-family: var(--display); font-size: clamp(1.6rem, 4.5vw, 3.2rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .03em; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.hc-cta { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; pointer-events: none; }
.hc-cta .btn { pointer-events: auto; }
.hc-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(0,0,0,.45); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.hc-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.hc-prev { left: 14px; } .hc-next { right: 14px; }
.hc-dots { position: absolute; right: 20px; bottom: 30px; z-index: 4; display: flex; gap: 4px; }
.hc-dot { width: 26px; height: 26px; border: 0; background: transparent; cursor: pointer; position: relative; padding: 0; }
.hc-dot::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .2s, transform .2s; }
.hc-dot.is-active::before { background: var(--accent); transform: scale(1.35); }
.site-header { position: sticky; }
.home-intro { padding: 28px 0 6px; max-width: 760px; }
.home-teach { padding: 8px 0 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--accent); color: var(--ink); border-radius: 999px; padding: .35em 1.1em; font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; }
.home-cta { margin-top: 36px; padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: var(--card); text-align: center; }
.home-cta h2 { margin-top: 0; }
@media (max-width: 760px) {
  .hero-car { height: clamp(300px, calc(100svh - 160px), 560px); }
  .hc-caption { bottom: 86px; right: 16px; }
  .hc-btn { width: 44px; height: 44px; font-size: 1.7rem; }
  .hc-prev { left: 8px; } .hc-next { right: 8px; }
  .hc-dots { right: 8px; bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) { .hc-slide { transition: none; } }

/* Back office: picture manager */
.slide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 16px 0; }
.slide-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.slide-card.off img { opacity: .4; filter: grayscale(1); }
.slide-card img, .slide-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.slide-card .form { padding: 14px; }
.slide-card .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn[disabled] { opacity: .35; cursor: default; pointer-events: none; }

/* Cookie notice and legal pages */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--card); border-top: 2px solid var(--accent); box-shadow: 0 -4px 18px rgba(0,0,0,.5); }
.cookie-bar p { margin: 0; font-size: .92rem; }
.cookie-bar form { margin: 0; flex: none; }
@media (max-width: 600px) { .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; padding: 12px 16px; } .cookie-bar .btn { width: 100%; } }
.site-footer .copy a { white-space: nowrap; }
.prose h2 { margin-top: 1.6em; }
.prose table { margin: 0; }
.prose th, .prose td { text-align: left; padding: 8px 12px; vertical-align: top; }

/* Home: about, statement, what we teach */
.home-about { padding: 36px 0 8px; max-width: 860px; }
.home-about h2 { margin-top: 0; }
.home-about p { font-size: 1.05rem; line-height: 1.7; }
.home-statement { margin: 20px 0 8px; padding: 22px 26px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; max-width: 860px; }
.home-statement p { margin: 0 0 .7em; font-size: 1.15rem; line-height: 1.6; }
.home-statement p:last-child { margin-bottom: 0; }
.home-teach { padding: 28px 0 12px; }
.teach-grid { --tg-cols: 2; --tg-gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--tg-gap); margin-top: 16px; }
.teach-grid > .teach-card { flex: 0 0 calc((100% - (var(--tg-cols) - 1) * var(--tg-gap)) / var(--tg-cols)); min-width: 0; }
@media (min-width: 640px)  { .teach-grid { --tg-cols: 3; } }
@media (min-width: 900px)  { .teach-grid { --tg-cols: 4; } }
@media (min-width: 1150px) { .teach-grid { --tg-cols: 5; } }
.teach-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); overflow: hidden; }
.teach-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.teach-card .tc-body { padding: 14px 16px 16px; }
.teach-card h3 { margin: 0 0 .3em; }
.teach-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.slide-none { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #111; color: var(--muted); font-size: .9rem; }
.slide-card textarea { width: 100%; }

/* Maintenance mode */
.maint { text-align: center; padding: 8px 0; }
.maint h1 { margin-top: 0; }
.maint-bar { background: var(--warn); color: #000; text-align: center; padding: 8px 16px; font-size: .9rem; position: relative; z-index: 60; }
.maint-bar a { color: #000; font-weight: 700; text-decoration: underline; }

/* Cloudflare Turnstile box */
.ts-box { margin: 4px 0 12px; min-height: 65px; max-width: 100%; overflow: hidden; }

/* Users and permissions */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 14px; }
.perm-grid fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0; }
.perm-grid legend { font-family: var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 0 6px; color: var(--accent); }

.errlog { background: #0b0b0d; border: 1px solid var(--line); padding: 12px; max-height: 60vh; overflow: auto; font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Messages after a save stay in view even when the page is scrolled down (the page keeps its scroll position) */
main .flash { position: sticky; top: 8px; z-index: 40; box-shadow: 0 4px 14px rgba(0,0,0,.45); transition: opacity .4s; }
main .flash.fade { opacity: 0; pointer-events: none; }

/* Home page sections (added and ordered in the back office) */
.home-sec { padding: 28px 0 8px; max-width: none; }
.home-sec.has-img { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.home-sec.has-img.pos-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.home-sec.has-img.pos-left .hs-img { order: -1; }
.home-sec.has-img.pos-top { grid-template-columns: minmax(0, 1fr); }
.home-sec.has-img.pos-top .hs-img { order: -1; aspect-ratio: 21 / 9; }
.hs-img { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #000; }
.hs-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-sec.is-highlight .hs-text { padding: 22px 26px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
@media (max-width: 760px) { .home-sec.has-img, .home-sec.has-img.pos-left { grid-template-columns: minmax(0, 1fr); } .home-sec.has-img.pos-left .hs-img { order: 0; } }

/* Picture zoom and position controls (back office) */
.imgadj { display: grid; gap: 6px; margin: 4px 0 10px; }
.imgadj-frame { overflow: hidden; background: #000; border-radius: var(--radius); border: 1px solid var(--line); cursor: grab; touch-action: none; }
.imgadj-frame.drag { cursor: grabbing; }
.imgadj-frame img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; pointer-events: none; }
.imgadj label { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; font-size: .85rem; }
.imgadj input[type=range] { width: 100%; padding: 0; }
.imgadj .imgadj-reset { justify-self: start; }
.hs-admin.off { opacity: .75; }
.home-sec h2 { margin-top: 0; }
.home-sec p { font-size: 1.05rem; line-height: 1.7; }
.home-sec.is-highlight p { font-size: 1.15rem; line-height: 1.6; }

/* Shop */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 16px 0; }
.shop-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; }
.shop-card:hover { border-color: var(--accent); }
.shop-card.sold img { opacity: .5; }
.shop-pic, .shop-main { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #1a1b1e; display: grid; place-items: center; }
.shop-pic img, .shop-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-info { padding: 12px 14px; }
.shop-info h3 { margin: 0 0 4px; }
.shop-price { margin: 0; font-weight: 700; }
.shop-price.big { font-size: 1.4rem; }
.shop-tag { position: absolute; top: 10px; left: 10px; background: #000c; color: #fff; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.shop-tag.offer { background: var(--accent); color: var(--accent-ink); }
.shop-detail .shop-tag { position: static; display: inline-block; }
.shop-item { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.shop-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.shop-thumb-btn { width: 70px; height: 70px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: none; cursor: pointer; }
.shop-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-field { display: grid; gap: 4px; margin: 12px 0; font-weight: 600; }
.shop-checkout { display: grid; grid-template-columns: minmax(280px, 1.4fr) minmax(240px, 1fr); gap: 24px; align-items: start; }
.shop-bar { text-align: right; }
.shop-thumb { width: 60px; height: 60px; overflow: hidden; border-radius: 6px; background: #1a1b1e; }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .shop-item, .shop-checkout { grid-template-columns: 1fr; } }
.shop-intro { background: var(--card); border: 1px solid var(--accent); border-left-width: 5px; border-radius: var(--radius); padding: 10px 16px; margin: 10px 0 16px; }
.shop-intro p { margin: .3em 0; font-weight: 600; }

/* Meet the team */
.team-title { margin: 1.2em 0 .3em; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.team-intro { max-width: 900px; margin-bottom: 8px; }
.team-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.team-filter button { padding: .35em 1em; border: 1px solid #4a4c52; border-radius: 999px; background: transparent; color: var(--ink); font-family: var(--display); letter-spacing: .05em; text-transform: uppercase; font-size: .9rem; cursor: pointer; }
.team-filter button:hover { border-color: var(--accent); color: var(--accent); }
.team-filter button.on { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin: 18px 0 28px; align-items: stretch; }
.team-card[hidden] { display: none; }
.team-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.team-pic { aspect-ratio: 4 / 5; overflow: hidden; background: #1a1b1e; display: grid; place-items: center; flex: none; }
.team-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-initial { font-family: var(--display); font-size: 5rem; color: var(--muted); }
.team-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.team-body h3 { margin: 0; }
.team-role { margin: 2px 0 10px; color: var(--accent); font-weight: 700; font-size: .95rem; }
.team-bio { font-size: .95rem; line-height: 1.55; max-height: 9.3em; overflow: hidden; position: relative; }
.team-bio p { margin: 0 0 .7em; }
.team-card.open .team-bio { max-height: none; }
.team-card:not(.open) .team-bio::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em; background: linear-gradient(transparent, var(--card)); pointer-events: none; }
.team-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.team-more { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.team-none { margin: 24px 0; }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1700px) { .team-grid { grid-template-columns: repeat(5, 1fr); } }
.book-teacher { background: var(--card); border: 1px solid var(--accent); border-left-width: 5px; border-radius: var(--radius); padding: 10px 16px; margin: 0 0 16px; }
.prose.prose-wide { max-width: none; }
.prose.prose-wide > p, .prose.prose-wide > h1, .prose.prose-wide > h2 { max-width: 900px; }
.prose .xblock .fac-text p { max-width: none; }

/* Facilities, vacancies, location */
.xblock { margin: 8px 0 32px; }
.fac-layout.two { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.fac-text p { font-size: 1.05rem; line-height: 1.7; }
.mini-car { position: relative; border-radius: var(--radius); overflow: hidden; background: #1a1b1e; border: 1px solid var(--line); max-width: 820px; }
.mc-track { position: relative; aspect-ratio: 16 / 10; }
.mc-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s; overflow: hidden; }
.mc-slide.is-active { opacity: 1; }
.mc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; background: linear-gradient(transparent, #000b); color: #fff; font-size: .9rem; }
.mc-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: #000a; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mc-btn:hover { background: var(--accent); color: var(--accent-ink); }
.mc-prev { left: 10px; } .mc-next { right: 10px; }
.mc-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.mc-slide figcaption ~ * { }
.mc-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #fff6; cursor: pointer; }
.mc-dots button.is-active { background: #fff; }
.vac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin: 18px 0; }
.vac-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.vac-card h3 { margin: 0 0 8px; }
.vac-tags { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vac-tags li { background: var(--line); border-radius: 999px; padding: 3px 12px; font-size: .85rem; }
.vac-tags li span { color: var(--muted); margin-right: 4px; }
.vac-desc p { margin: 0 0 .7em; }
.vac-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vac-empty { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.loc-layout.two { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 2fr); gap: 28px; align-items: stretch; }
.loc-info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.loc-info h3 { margin-top: 0; }
.loc-info address { font-style: normal; line-height: 1.6; margin-bottom: 12px; }
.loc-contact span { color: var(--muted); display: inline-block; min-width: 3.5em; }
.loc-map { min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #1a1b1e; }
.loc-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 800px) { .fac-layout.two, .loc-layout.two { grid-template-columns: 1fr; } }

/* Events */
.event-card { display: grid; grid-template-columns: minmax(280px, 5fr) 6fr; gap: 36px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
.event-card.no-poster { grid-template-columns: 1fr; }
.event-poster { display: block; border-radius: 6px; overflow: hidden; background: #000; }
.event-poster img { display: block; width: 100%; height: auto; max-height: 90vh; object-fit: contain; }
.event-body h3 { margin: 0 0 12px; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.event-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 16px; }
.event-facts dt { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; padding-top: .2em; }
.event-facts dd { margin: 0; }
.event-desc p { font-size: 1.05rem; line-height: 1.7; margin: 0 0 .8em; }
.btn.btn-disabled, .btn.btn-disabled:hover { background: #3a3c42; border-color: #3a3c42; color: #9a9ca3; cursor: not-allowed; box-shadow: none; transform: none; }
@media (max-width: 800px) { .event-card { grid-template-columns: 1fr; padding: 16px; gap: 20px; } }

/* Buying guides */
.guide-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; margin: 16px 0; }
.guide-card h3 { margin: 0 0 6px; }
.guide-desc p { margin: .3em 0 .7em; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.guide-viewer { margin-top: 16px; }
.guide-viewer iframe { width: 100%; height: 80vh; min-height: 520px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

.t-dayrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.t-dayrow form { margin: 0; }
.t-dayrow { margin: 26px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.t-dayrow .t-day { margin: 0; border: 0; padding: 0; flex: 1; }
.danger-box { background: rgba(255, 93, 93, .08); border: 2px solid var(--err); border-radius: var(--radius); padding: 18px 22px; margin: 12px 0 20px; }
.danger-box h2 { margin-top: 0; color: var(--err); }
.danger-box .warn-line { color: #ffcf70; }
.btn.btn-danger-solid { background: var(--err); border-color: var(--err); color: #fff; }
.btn.btn-danger-solid:hover { box-shadow: 3px 3px 0 var(--paper); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
/* where a lesson is taught: the studio and each school have their own colour (--c) */
.tc-ev.has-c { border-left-color: var(--c); }
.tc-ev.at-school { box-shadow: inset 0 0 0 2px var(--c); }
.tc-ev.is-visit { background: color-mix(in srgb, var(--c) 18%, #fff); }
.ev.has-c { box-shadow: inset 3px 0 0 var(--c); }
.ev.school { background: color-mix(in srgb, var(--c) 18%, #fff); }
.t-lesson.has-c { border-left: 4px solid var(--c); }
.colour-pick { width: 56px; height: 36px; padding: 2px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(255,255,255,.4); }
.t-lesson.is-group { border-style: dashed; border-left-style: solid; background: color-mix(in srgb, var(--c) 8%, var(--card)); }
.tc-ev.st-group { border-style: dashed; }

/* Tuition page */
.prose.prose-wide .tuition { max-width: none; }
.tu-jump { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; margin: 0 0 8px; background: var(--bg, #0e0f11); border-bottom: 1px solid var(--line); }
.tu-jump a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; font-weight: 600; font-size: .92rem; }
.tu-jump a:hover { border-color: var(--accent); color: var(--accent); }
.tu-sec { scroll-margin-top: 70px; }
.tu-sec ul { padding-left: 1.2em; margin: .4em 0 1em; }
.tu-sec li { margin: .25em 0; font-size: 1.02rem; line-height: 1.55; }
@media (min-width: 1000px) { .tu-sec:not(.has-img) .hs-text ul { columns: 2; column-gap: 40px; } .tu-sec:not(.has-img) .hs-text li { break-inside: avoid; } }
.tu-sec .hs-text h3 { margin: 1em 0 .2em; }
.tu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.tu-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tu-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.tu-card p { margin: 0; font-size: .95rem; }
.tu-table { width: 100%; max-width: 760px; border-collapse: collapse; margin: 14px 0; }
.tu-table th, .tu-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tu-table th { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.tu-fee { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.tu-years { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; margin-top: 14px; align-items: start; }
.tu-year { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 8px; }
.tu-year h3 { margin: 0 0 8px; font-size: 1.4rem; color: var(--accent); }
.tu-dates { list-style: none; margin: 0 0 10px; padding: 0 !important; }
.tu-dates li { display: grid; gap: 1px; padding: 8px 0 8px 12px; border-left: 3px solid var(--line); margin: 0 0 6px; }
.tu-dates li strong { font-size: .86rem; letter-spacing: .03em; }
.tu-dates li span { color: var(--muted); }
.tu-dates li.k-term { border-left-color: var(--accent); }
.tu-dates li.k-break { border-left-color: #888; }
.tu-dates li.k-off { border-left-color: #c9a227; }

/* Minimise sections in the back office */
.hs-toggle { cursor: pointer; user-select: none; margin-bottom: 0; }
.hs-toggle:hover { color: var(--accent); }
.hs-arrow { display: inline-block; width: 1em; transition: transform .15s; }
.hs-admin.collapsed .hs-arrow { transform: rotate(-90deg); }
.hs-admin.collapsed .hs-body { display: none; }
.hs-admin .hs-body { margin-top: 10px; }
.hs-kind { font-family: system-ui, sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; vertical-align: middle; margin-left: 6px; }
.tu-sec .table-wrap { max-width: 900px; }
.tu-sec .tu-table { max-width: none; margin: 0; }
.tu-sec + .tu-sec { border-top: 2px solid var(--accent); margin-top: 26px; padding-top: 30px; }
.tu-sec li { margin: 0 0 .35em; }
.tu-sec ul { margin: .5em 0 1em; }
.tu-jump { position: static; z-index: auto; background: transparent; }
.tu-sec { scroll-margin-top: 110px; }

/* Two-factor sign-in */
.tfa-qr { background: #fff; display: inline-block; padding: 6px; border-radius: 8px; margin: 10px 0 4px; line-height: 0; }
.tfa-qr svg { width: 200px; height: 200px; display: block; }
.tfa-key { font-size: 1.05rem; letter-spacing: .06em; word-break: break-all; }
.tfa-steps li { margin: 0 0 14px; }
.tfa-codes { list-style: none; padding: 14px 18px !important; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); columns: 2; font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; }
.tfa-codes li { margin: 4px 0; }

/* Audit log and Security */
.nowrap { white-space: nowrap; }
table.audit td { vertical-align: top; }
.aud-detail { margin-top: 6px; }
.aud-detail summary { cursor: pointer; color: var(--accent); font-size: .85rem; }
.aud-row { margin: 8px 0; }
.aud-diff { border-collapse: collapse; margin: 4px 0 8px; font-size: .85rem; }
.aud-diff th { text-align: left; padding: 2px 12px 2px 0; color: var(--muted); font-weight: 600; }
.aud-diff td { padding: 2px 8px 2px 0; overflow-wrap: anywhere; }
.aud-diff td.from { color: #e88; text-decoration: line-through; }
.aud-diff td.to { color: #7ddc8a; }
.aud-tag-login_failed, .aud-tag-ip_blocked, .aud-tag-account_locked, .aud-tag-delete { background: #5a1d1d; color: #ffb4b4; }
.aud-tag-login, .aud-tag-create { background: #17421f; color: #a6f0b3; }
.audit-filter { flex-wrap: wrap; }

/* Search engine (SEO) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.seo-box { margin: 0; }
.seo-box summary { cursor: pointer; }
.seo-box label { margin-top: .8rem; }
.small.bad { color: #b3261e; font-weight: 600; }

/* Footer */
.site-footer { padding: 26px 0 10px; }
.ft-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 20px 48px; align-items: start; text-align: left; }
.ft-col p { margin: 0 0 7px; font-size: .93rem; line-height: 1.4; }
.ft-col a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.ft-col a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.ft-h { font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 12px; color: var(--accent); }
.ft-brand .foot-logo { height: 64px; width: auto; margin: 0 0 12px; }
.ft-gap { height: 4px; margin: 0 !important; }
.ft-social { margin-top: 14px; }
.ft-soc-h { font-size: .95rem; font-weight: 700; margin: 0 0 10px; }
.ft-soc-h a { color: #fff; border-bottom: 1px solid var(--accent); }
.ft-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ft-icons a { border: 0; padding: 0; display: block; transition: transform .15s; }
.ft-icons a:hover { transform: translateY(-2px); border: 0; }
.ft-icons img { height: 34px; width: auto; display: block; }
.ft-two { columns: 2; column-gap: 28px; }
.ft-two p { break-inside: avoid; }
.site-footer .copy { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; }
.ft-version { margin-left: auto; opacity: .8; }
@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ft-grid { grid-template-columns: 1fr; gap: 14px; } .ft-two { columns: 2; column-gap: 16px; } }
.foot-ed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .foot-ed { grid-template-columns: 1fr; } }
.ic-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin-top: 10px; }
.ic-row img { background: #000; border-radius: 6px; padding: 2px; object-fit: contain; }

/* Feature pages (Battle of the School Bands, Masterclasses) */
.fp { margin-top: 0; }
.fp-hero { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0 0 28px; padding: clamp(36px, 7vw, 84px) clamp(20px, 5vw, 64px); background: linear-gradient(135deg, #0b0c0e 0%, #0e2a3a 60%, var(--accent) 160%); border: 1px solid var(--line); }
.fp-hero.has-img { min-height: 360px; display: flex; align-items: flex-end; }
.fp-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.fp-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.1) 100%); }
.fp-hero-in { position: relative; z-index: 1; max-width: 860px; }
.fp-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 .4em; text-transform: uppercase; letter-spacing: .01em; }
.fp-lead p { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; margin: 0 0 .8em; max-width: 46em; }
.fp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 1.2em; }
.fp-book { font-size: 1.15rem; padding: 14px 30px; }
.fp-when { font-weight: 600; opacity: .9; }
.fp-sec { margin: 0 0 36px; scroll-margin-top: 70px; }
.fp-sec > h2 { margin: 0 0 .6em; }
.fp-event .event-card { margin-bottom: 18px; }
.fp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.fp-stat { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 18px; text-align: center; }
.fp-stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent); line-height: 1.1; }
.fp-stat span { display: block; margin-top: 6px; color: var(--muted); font-size: .98rem; }
.fp-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fp-chips li { padding: 8px 18px; border: 1px solid var(--accent); border-radius: 999px; font-weight: 600; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.fp-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.fp-videos.one { grid-template-columns: minmax(0, 900px); }
.fp-video { margin: 0; }
.fp-video video, .fp-vbtn, .fp-iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
.fp-vbtn { position: relative; padding: 0; cursor: pointer; overflow: hidden; border: 1px solid var(--line); }
.fp-vbtn img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s, transform .3s; }
.fp-vbtn:hover img { opacity: 1; transform: scale(1.03); }
.fp-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--accent); box-shadow: 0 4px 18px rgba(0,0,0,.5); }
.fp-play::after { content: ""; position: absolute; left: 28px; top: 21px; border-left: 22px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.fp-video figcaption { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.fp-gallery { columns: 3 240px; column-gap: 12px; }
.fp-gallery a { display: block; margin: 0 0 12px; break-inside: avoid; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.fp-gallery img { width: 100%; height: auto; display: block; transition: transform .3s; }
.fp-gallery a:hover img { transform: scale(1.04); }
.fp-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.fp-lightbox figure { margin: 0; max-width: 92vw; max-height: 90vh; text-align: center; }
.fp-lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.fp-lightbox figcaption { margin-top: 10px; color: #ddd; }
.fp-lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 2.4rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.fp-lightbox button:hover { background: var(--accent); }
.fp-lightbox .lb-x { top: 16px; right: 16px; } .fp-lightbox .lb-p { left: 16px; top: 50%; margin-top: -26px; } .fp-lightbox .lb-n { right: 16px; top: 50%; margin-top: -26px; }
.fp .home-cta { text-align: center; padding: 28px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.prose.prose-wide .fp { max-width: none; }

/* Lighter, more relaxed type: Poppins (self-hosted, so nothing is fetched from Google) */
:root { --display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --ink: #f6f6f4; --muted: #a7adb4; }
body { font-family: var(--body); font-weight: 400; font-size: 16px; line-height: 1.75; }
strong, b { font-weight: 700; }
h1, h2, h3 { font-weight: 500; line-height: 1.25; letter-spacing: .035em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
h2 { font-size: 1.4rem; margin: 1.5em 0 .6em; }
h3 { font-size: 1.1rem; }
.btn { font-weight: 500; font-size: .9rem; letter-spacing: .08em; padding: .65em 1.5em; }
.btn-small { font-size: .78rem; padding: .35em .95em; }
.nav a, .nav-top, .nav-caret { font-weight: 500; font-size: .86rem; letter-spacing: .06em; }
.nav .sub a { font-family: var(--body); font-weight: 400; font-size: .95rem; }
.side nav a { font-weight: 500; font-size: .88rem; letter-spacing: .04em; }
.tabs a { font-weight: 500; font-size: .82rem; }
.form label { font-weight: 500; }
.form label.check { font-weight: 400; }
.tc-title { font-size: 1.25rem; }
.hc-caption { font-size: clamp(1.4rem, 3.6vw, 2.6rem); font-weight: 500; line-height: 1.2; }
.fp-hero h1 { font-size: clamp(1.9rem, 4.8vw, 3.2rem); font-weight: 500; }
.fp-stat strong { font-weight: 500; }
.stat b { font-weight: 500; }
.chips li, .fp-chips li { font-weight: 500; }
.ft-h, .ft-soc-h { font-weight: 500; }
.tag, .num, .side-brand small, .t-brand small { font-family: var(--display); font-weight: 500; }
th { font-weight: 500; }
.balance .big, .cust-head .big { font-weight: 500; }
.tu-jump a, .team-filter button { font-weight: 500; }
.badge, .slot, .summary, .err-text { font-weight: 500; }

/* Tick boxes: box stays small and top-left, text wraps neatly beside it */
.form label.check { align-items: flex-start; line-height: 1.45; }
.form label.check input[type=checkbox] { width: 18px; height: 18px; min-width: 18px; flex: 0 0 18px; margin: 2px 0 0; padding: 0; }
.form label.check > span { flex: 1 1 auto; min-width: 0; }
.card h3 .card-sub { display: block; font-size: .8em; font-weight: 400; opacity: .75; margin-top: 2px; letter-spacing: 0; }
.exam-card { margin-bottom: 10px; }

/* Extra logos next to the main one in the header */
.hdr-logos { margin-right: auto; display: flex; align-items: center; gap: 16px; margin-left: 18px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.18); line-height: 0; }
.hdr-logos a, .hdr-logos span { display: block; line-height: 0; }
.hdr-logos img { display: block; height: 44px; width: auto; max-width: 150px; object-fit: contain; }
@media (max-width: 900px) { .hdr-logos { gap: 10px; margin-left: 10px; padding-left: 10px; } .hdr-logos img { height: 34px; max-width: 90px; } }
@media (max-width: 480px) { .hdr-logos { margin-left: 8px; padding-left: 8px; gap: 8px; } .hdr-logos img { height: 28px; max-width: 70px; } }

/* Home page cards that link into the Tuition page */
a.teach-link, a.card-link { display: block; color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
a.teach-link:hover, a.card-link:hover, a.teach-link:focus-visible, a.card-link:focus-visible { transform: translateY(-2px); border-top-color: var(--ink); }
.card-more { margin: .8em 0 0; font-size: .9rem; font-weight: 500; color: var(--accent); }
/* No coloured line under the "Thirst groups" heading */
.tu-sec.tu-norule-next + .tu-sec { border-top: 0; margin-top: 0; padding-top: 0; }
.tu-sec { scroll-margin-top: 110px; }

/* Home page: Enquire now, Find us, What's on soon, FAQ */
.home-enquire { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin: 26px 0; padding: 22px 28px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--card); }
.home-enquire h2 { margin: 0 0 .2em; }
.home-enquire p { margin: 0; color: var(--muted); }
.home-stats, .home-events, .home-visit { margin: 34px 0; }
.home-events .event-card { margin-bottom: 16px; }
.home-events-more { margin: 6px 0 0; }
.hv-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 14px; }
@media (min-width: 700px) { .hv-grid { grid-template-columns: 1fr 1fr; } }
.hv-col { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; }
.hv-col h3 { margin: 0 0 .5em; }
.hv-col address { font-style: normal; line-height: 1.5; margin-bottom: .6em; }
.hv-hours { list-style: none; margin: 0 0 .6em; padding: 0; }
.hv-hours li span { display: inline-block; min-width: 9.5em; color: var(--muted); }
.hv-term { margin: .3em 0; font-weight: 500; }
.faq-list { max-width: 820px; margin: 10px 0 30px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 0 0 10px; }
.faq-item summary { cursor: pointer; padding: 15px 18px; font-weight: 500; list-style: none; position: relative; padding-right: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-a { padding: 12px 18px 6px; }

/* Footer: socials sit in the middle column; Explore only splits into two columns when it has a long list */
.ft-social.first { margin-top: 6px; }

/* Footer: three equal columns, everything centred */
.ft-grid { grid-template-columns: repeat(3, 1fr); text-align: center; align-items: start; }
.ft-brand .foot-logo { margin-left: auto; margin-right: auto; }
.ft-icons { justify-content: center; }
.ft-two { text-align: center; }
@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr; gap: 24px; } .ft-brand { grid-column: auto; } }

/* Contact page: form beside the contact details */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; } }
.contact-layout .form.narrow { max-width: none; }
.contact-details { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; }
.contact-details h2 { margin: 0 0 .7em; font-size: 1.15rem; }
.contact-details p { margin: 0 0 1em; line-height: 1.5; }
.contact-details a:not(.btn) { color: #fff; border-bottom: 1px solid var(--accent); text-decoration: none; }
.cd-label { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 2px; }

/* Back office: website traffic */
.an-range { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 8px; }
.an-tile { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; }
.an-tile span { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.an-tile strong { display: block; font-size: 2rem; line-height: 1.15; margin: 2px 0; }
.an-tile em { font-style: normal; font-size: .8rem; color: var(--muted); }
.an-chart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 8px; }
.an-chart svg { width: 100%; height: 230px; display: block; }
.an-grid { stroke: var(--line); stroke-width: 1; }
.an-ax { fill: var(--muted); font-size: 11px; }
.an-bar { fill: var(--accent); opacity: .45; }
.an-bar2 { fill: var(--accent); }
.an-key { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.an-key span { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin: 0 4px 0 12px; background: var(--accent); }
.an-key .k1 { opacity: .45; margin-left: 0; }
.an-cols { display: grid; grid-template-columns: 1fr; gap: 0 32px; }
@media (min-width: 900px) { .an-cols { grid-template-columns: 1.2fr 1fr; } }
.an-table td { position: relative; }
.an-table td:first-child { min-width: 180px; }
.an-bg { position: absolute; left: 0; top: 3px; bottom: 3px; background: var(--accent); opacity: .13; border-radius: 3px; }
.an-table td a, .an-table td { position: relative; }
.an-dev { display: grid; grid-template-columns: 80px 1fr 44px; align-items: center; gap: 10px; margin: 8px 0; }
.an-meter { background: var(--line); border-radius: 99px; height: 10px; overflow: hidden; }
.an-meter i { display: block; height: 100%; background: var(--accent); }
.an-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 110px; padding-bottom: 18px; }
.an-hours div { position: relative; height: 100%; display: flex; align-items: flex-end; }
.an-hours i { display: block; width: 100%; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; }
.an-hours span { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font-size: .7rem; color: var(--muted); }

/* Email and invoices (back office) */
input[type=url], input[type=color] { width: 100%; }
input[type=color] { padding: 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
#invlines input[type=text], #invlines input[type=number] { width: 100%; }
