/* Brand tokens from londonschoolclubs.com (keep in sync with Theme/LscTheme.cs) */
:root {
    --ink: #12302B; --ink-2: #3E544F; --ink-3: #5B6F6A;
    --green: #1F5C4E; --mint: #DDEDE5; --mint-2: #C4DDD1;
    --accent: #FFB23F; --accent-soft: #FFE7BF; --sky: #CFE3F7; --rose: #F6E3E0; --rose-ink: #8A2E22;
    --bg: #F3F6F2; --paper: #FFFFFF; --cream: #FAFBF8; --line: #DCE5DF; --line-2: #E3EAE5;
    --shadow: 0 1px 0 #E3EAE5, 0 10px 24px -18px rgba(18, 48, 43, .45);
    --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
    --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); }
a { color: var(--green); }
a:hover { color: var(--ink); }
h1:focus { outline: none; }

/* ---------- Sign-in pages (plain HTTP forms, no MudBlazor) ---------- */
.auth-page { min-height: 100vh; box-sizing: border-box; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.auth-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.auth-brand-name { display: flex; flex-direction: column; gap: 4px; }
.auth-brand-name strong { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1; }
.auth-brand-name span { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1; }
.auth-card { width: 100%; max-width: 440px; box-sizing: border-box; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.auth-card .lead { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.auth-note { max-width: 440px; margin: 0; text-align: center; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 4px; border-radius: 999px; background: var(--line-2); }
.steps span.done { background: var(--green); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.input { min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--cream); color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--mint); }
.input.code { min-height: 56px; font-size: 26px; font-weight: 800; letter-spacing: .3em; text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--green); color: #fff; }
.btn-light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.passkeys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.passkeys li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); filter: brightness(.96); }
.btn-link { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--green); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--rose); color: var(--rose-ink); font-size: 14px; font-weight: 600; }
.info { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--mint); color: var(--ink); font-size: 14px; font-weight: 600; }
.validation-message { color: var(--rose-ink); font-size: 13px; font-weight: 600; }
.qr { align-self: center; width: 200px; height: 200px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 8px; background: #fff; }
.secret { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 15px; font-weight: 700; letter-spacing: .06em; padding: 10px 12px; border-radius: 12px; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line-2); word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.codes li { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 15px; font-weight: 700; padding: 8px 10px; border-radius: 10px; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line-2); text-align: center; }
.icon-tile { width: 44px; height: 44px; border-radius: 14px; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Dashboard shell (MudBlazor) ---------- */
.lsc-drawer .mud-drawer-content { display: flex; flex-direction: column; gap: 20px; padding: 20px 14px; box-sizing: border-box; }
.lsc-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; text-decoration: none; color: #fff; }
.lsc-brand:hover { color: #fff; }
.lsc-brand strong { display: block; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; line-height: 1; }
.lsc-brand span { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--mint-2); line-height: 1; }
.lsc-nav-kind { padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-2); }
.lsc-drawer .mud-nav-link { min-height: 44px; align-items: center; border-radius: 12px; margin: 1px 0; padding: 0 12px; color: var(--mint); font-weight: 600; font-size: 15px; border-left: 4px solid transparent; }
.lsc-drawer .mud-nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
/* More specific than MudBlazor's own active rule (primary-coloured text would vanish on the dark drawer) */
.lsc-drawer .mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled), .lsc-drawer .lsc-nav-current .mud-nav-link { background: var(--green); color: #fff; font-weight: 700; border-left-color: var(--accent); }
.lsc-mfa-card { margin-top: auto; padding: 14px 12px; border-radius: 14px; background: #1A4038; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.lsc-mfa-card strong { font-size: 13px; }
.lsc-mfa-card span { font-size: 12px; color: var(--mint-2); line-height: 1.4; }
.lsc-appbar { border-bottom: 1px solid var(--line); }
.lsc-appbar .mud-toolbar { gap: 12px; }
.lsc-context { min-width: 240px; max-width: 360px; }
.lsc-platform-stripe { height: 4px; background: var(--accent); }
/* a club's or school's sections as tabs (platform admins: the sidebar keeps the platform menu) */
.lsc-tabs { display: flex; flex-wrap: wrap; gap: 0 2px; margin: -8px 0 24px; border-bottom: 1px solid var(--line-2); }
.lsc-tabs a { flex: none; padding: 10px 12px; font-weight: 800; font-size: 14px; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 3px 3px 0 0; }
.lsc-tabs a:hover { color: var(--ink); background: var(--cream); }
.lsc-tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }
.lsc-content { padding: 28px; max-width: 1240px; box-sizing: border-box; }
.lsc-card { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); padding: 20px 22px; }
.lsc-eyebrow { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.lsc-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lsc-checklist li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.lsc-checklist li:first-child { border-top: 0; }
.lsc-step { width: 32px; height: 32px; border-radius: 999px; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
@media (max-width: 600px) { .lsc-content { padding: 18px 16px; } .lsc-context { min-width: 0; } }
.lsc-kpi { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; margin-top: 6px; }
.lsc-card .mud-table-root th { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lsc-card .mud-simple-table table * tr > td, .lsc-card .mud-simple-table table * tr th { padding: 14px 16px; }
.mud-tabs-tabbar { background: transparent; }
.mud-tab { font-weight: 800; text-transform: none; }
.lsc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.lsc-facts dt { color: var(--ink-3); font-weight: 600; }
.lsc-facts dd { margin: 0; }

/* ===================================================================== */
/* MudBlazor in the site's look (londonschoolclubs.com site.css):        */
/* flat buttons, tags and chips, inputs, notes, cards. Staff screens stay */
/* dense: smaller buttons and tables than the parent site.               */
/* ===================================================================== */

/* Tags and chips (site .tag, .chip) */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #F0F4F1; color: var(--ink); line-height: 1.3; white-space: nowrap; }
.tag-sun { background: var(--accent-soft); color: #5A3E00; }
.tag-mint { background: var(--mint); color: var(--green); }
.tag-rose { background: var(--rose); color: var(--rose-ink, #8A1F2B); }
.pre { white-space: pre-line; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-weight: 700; font-size: 13.5px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip[aria-pressed=true] { background: var(--green); color: #fff; box-shadow: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Page headings: the site's eyebrow (green, uppercase); inside cards, the site's fact label */
.lsc-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.lsc-card .lsc-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; color: var(--ink-3); }

/* Top bar: the site's sticky header (page colour, blurred, hairline) */
.lsc-appbar { backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); }

/* Buttons: flat like the site's; filled primary = the site's dark button, secondary = its accent button */
.mud-button-root.mud-button { border-radius: 12px; box-shadow: none !important; font-weight: 800; letter-spacing: 0; min-height: 40px; padding: 0 16px; }
.mud-button-root.mud-button.mud-button-size-small, .mud-button-root.mud-button[class*="-size-small"] { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.mud-button-root.mud-button[class*="-size-large"] { min-height: 48px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.mud-button-filled.mud-button-filled-primary, .mud-button-filled.mud-button-filled-tertiary, .mud-button-filled.mud-button-filled-dark { background: var(--ink); color: #fff; }
.mud-button-filled.mud-button-filled-primary:hover, .mud-button-filled.mud-button-filled-tertiary:hover, .mud-button-filled.mud-button-filled-dark:hover { background: var(--green); }
.mud-button-filled.mud-button-filled-secondary { background: var(--accent); color: var(--ink); }
.mud-button-filled.mud-button-filled-secondary:hover { background: #FFA51A; }
.mud-button-filled.mud-button-filled-error { background: var(--rose-ink); }
/* (outlined rules repeat .mud-button-root.mud-button so they beat the "no shadow" rule above) */
.mud-button-root.mud-button.mud-button-outlined { border: 0; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line) !important; color: var(--ink); }
.mud-button-root.mud-button.mud-button-outlined:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
.mud-button-root.mud-button.mud-button-outlined.mud-button-outlined-error { color: var(--rose-ink); box-shadow: inset 0 0 0 1.5px #E9C4BE !important; }
.mud-button-filled.mud-disabled, .mud-button-outlined.mud-disabled { opacity: .55; }
.mud-button-text:hover { background: var(--mint); }

/* Inputs: the site's fields (1.5px line, white, ink border + accent ring on focus) */
.mud-input.mud-input-outlined { background: #fff; border-radius: 12px; }
.mud-input.mud-input-outlined .mud-input-outlined-border { border-width: 1.5px; border-color: var(--line); border-radius: 12px; }
.mud-input.mud-input-outlined:hover:not(.mud-disabled) .mud-input-outlined-border { border-color: var(--ink-3); }
.mud-input.mud-input-outlined.mud-focused .mud-input-outlined-border { border-width: 1.5px; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 178, 63, .45); }
.mud-input-label-outlined { font-weight: 600; }
.mud-input.mud-input-outlined.mud-focused ~ .mud-input-label, .mud-input-control.mud-input-control-focused .mud-input-label { color: var(--ink); }
.mud-input-helper-text { font-size: 12.5px; }

/* Notes: the site's .note (cream) and .note.warn (sun); errors in rose */
.mud-alert { border-radius: 16px; box-shadow: none; font-size: 14.5px; }
.mud-alert-text-warning, .mud-alert-outlined-warning, .mud-alert-filled-warning { background: #FFF6E6 !important; color: var(--ink-2) !important; border: 0 !important; box-shadow: inset 0 0 0 1.5px #F2DDB4 !important; }
.mud-alert-text-warning .mud-alert-icon, .mud-alert-outlined-warning .mud-alert-icon { color: #8A5A00 !important; }
.mud-alert-text-info, .mud-alert-outlined-info, .mud-alert-filled-info, .mud-alert-text-normal { background: var(--cream) !important; color: var(--ink-2) !important; border: 0 !important; box-shadow: inset 0 0 0 1.5px var(--line-2) !important; }
.mud-alert-text-info .mud-alert-icon, .mud-alert-outlined-info .mud-alert-icon { color: var(--green) !important; }
.mud-alert-text-success, .mud-alert-outlined-success, .mud-alert-filled-success { background: var(--mint) !important; color: var(--ink) !important; border: 0 !important; }
.mud-alert-text-error, .mud-alert-outlined-error, .mud-alert-filled-error { background: var(--rose) !important; color: var(--rose-ink) !important; border: 0 !important; }

/* Tables: the site's panels; quiet uppercase headers, cream hover */
.mud-simple-table table thead th, .mud-table-root .mud-table-head .mud-table-cell { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: transparent; }
.mud-simple-table.mud-table-hover table tbody tr:hover, .mud-table-hover .mud-table-container .mud-table-root .mud-table-body .mud-table-row:hover { background: var(--cream) !important; }
.mud-simple-table table * tr > td { border-bottom-color: var(--line-2); }

/* Tabs: ink text, the accent underline */
.mud-tab { font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--ink-2); min-width: 0; padding: 10px 18px; }
.mud-tab.mud-tab-active { color: var(--ink); }
.mud-tab-slider { background: var(--accent) !important; height: 3px !important; border-radius: 3px; }

/* Popovers, menus, dialogs, snackbars: the site's modal and panels */
.mud-popover.mud-paper { border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(18, 48, 43, .5), 0 0 0 1px var(--line-2); }
.mud-list-item { border-radius: 10px; }
.mud-dialog { border-radius: 24px; background: var(--cream); box-shadow: 0 40px 80px -30px rgba(18, 48, 43, .6); }
.mud-dialog .mud-dialog-title { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.mud-overlay-dialog { background: rgba(18, 48, 43, .5) !important; }
.mud-snackbar { border-radius: 14px; font-weight: 700; }
.mud-snackbar.mud-alert-filled-normal, .mud-snackbar.mud-alert-filled-info, .mud-snackbar.mud-alert-filled-success { background: var(--ink) !important; color: #fff !important; }

/* Links, checkboxes and switches in the site's green */
.mud-link { font-weight: 700; }
.mud-checkbox .mud-icon-root, .mud-switch-base.mud-checked { color: var(--green); }

/* Cards: a touch more room on wide screens, like the site's panels */
@media (min-width: 720px) { .lsc-card { padding: 22px 24px; } }

/* ---------- Rich-text editor (Quill, Components/Shared/RichTextEditor) */
.lsc-richtext-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.lsc-richtext .ql-toolbar.ql-snow { border: 1.5px solid var(--line); border-radius: 12px 12px 0 0; background: var(--cream, #fbf8f1); font-family: inherit; }
.lsc-richtext .ql-container.ql-snow { border: 1.5px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; font-family: inherit; font-size: 15px; background: #fff; }
.lsc-richtext .ql-editor { min-height: 180px; line-height: 1.6; color: var(--ink); }
.lsc-richtext .ql-editor h2 { font-size: 20px; margin: .6em 0 .3em; }
.lsc-richtext .ql-editor h3 { font-size: 17px; margin: .6em 0 .3em; }
.lsc-richtext:focus-within .ql-container.ql-snow, .lsc-richtext:focus-within .ql-toolbar.ql-snow { border-color: var(--ink); }
.lsc-richtext-error .ql-container.ql-snow, .lsc-richtext-error .ql-toolbar.ql-snow { border-color: var(--mud-palette-error); }

/* Children's medical details: hidden until a reason is given (Platform/FamilyPage) */
.lsc-medical { border-left: 4px solid var(--rose); background: var(--cream); border-radius: 0 12px 12px 0; padding: 12px 16px; }

/* Printing (school assurance pack): content only */
@media print {
  .lsc-drawer, .lsc-appbar, .lsc-tabs, .lsc-platform-stripe, .lsc-no-print, .mud-snackbar-provider { display: none !important; }
  .mud-main-content { padding: 0 !important; margin: 0 !important; }
  .lsc-content { padding: 0; max-width: none; }
  .lsc-card { box-shadow: none; border: 1px solid #ddd; }
  .lsc-print-block { break-inside: avoid; }
  body { background: #fff; }
}
