/* Cadensio — Music teaching, organised. Tokens kept in step with BrandTheme.cs.
   Fraunces (headings) and Figtree (text) are served from this library (SIL OFL 1.1, see fonts/); nothing is loaded from other hosts.
   The @font-face blocks are copied from PrimaPOS.Branding/wwwroot/brand.css (2026-10-28). */

@font-face { font-family:"Figtree"; font-style:normal; font-weight:400 800; font-display:swap; src:url("fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:"Figtree"; font-style:normal; font-weight:400 800; font-display:swap; src:url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"Fraunces"; font-style:normal; font-weight:400 800; font-display:swap; src:url("fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:"Fraunces"; font-style:normal; font-weight:400 800; font-display:swap; src:url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --ink: #18202f; --muted: #5d6577; --nocturne: #1f2b47; --nocturne-2: #2c3b60; --nocturne-soft: #e6e9f1;
    --brass: #b07a2a; --brass-light: #d39a45; --brass-soft: #f6ecdb; --teal: #2f7d74; --teal-soft: #e1efed;
    --rose: #b4493f; --rose-soft: #f6e2df; --amber: #b8862f; --amber-soft: #f7ecd6;
    --paper: #f7f5f0; --white: #ffffff; --line: #e3e0d8; --line-strong: #c9c5bb;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --shadow: 0 1px 2px rgba(24, 32, 47, .05), 0 10px 28px rgba(24, 32, 47, .07);
}
html, body { font-family: var(--sans); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.mud-typography { font-family: inherit; }
h1, h2, h3, h4, h5, h6, .mud-typography-h1, .mud-typography-h2, .mud-typography-h3, .mud-typography-h4, .mud-typography-h5, .mud-typography-h6 { font-family: var(--serif); color: var(--nocturne); font-weight: 600; }
.mud-link { color: var(--nocturne-2); font-weight: 600; }
::selection { background: var(--brass-soft); color: var(--nocturne); }

/* ---- cards, tables, buttons ---- */
.mud-paper.mud-elevation-1, .mud-paper.mud-elevation-2, .mud-table.mud-elevation-1, .mud-simple-table.mud-elevation-1 {
    box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.mud-simple-table, .mud-table { overflow: hidden; }
.mud-simple-table table thead th, .mud-table-head .mud-table-cell { font-size: .72rem !important; font-weight: 700 !important; text-transform: uppercase;
    letter-spacing: .07em; color: var(--muted) !important; background: #f2f0ea; }
.mud-button-root { border-radius: 999px; }
.mud-button-root.mud-button-filled, .mud-button-root.mud-button-outlined { padding-left: 18px; padding-right: 18px; }
.mud-chip { font-weight: 600; border-radius: 999px; }
.mud-nav-link.active { background: var(--nocturne-soft) !important; color: var(--nocturne) !important; font-weight: 700; border-radius: 10px; }
/* MudToggleGroup as a compact rounded track (PrimaPOS/PrimaApps convention) */
.mud-toggle-group { border-radius: 999px; background: #efede7; padding: 3px; border: 0 !important; }
.mud-toggle-group .mud-toggle-item { border-radius: 999px !important; border: 0 !important; }
.mud-toggle-group .mud-toggle-item-selected { background: var(--nocturne) !important; color: #fff !important; }

/* ---- product wordmark ---- */
.cd-wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--nocturne); }
.cd-wordmark img { width: 32px; height: 32px; }
.cd-wordmark b { font-family: var(--serif); font-size: 1.35rem; font-weight: 650; letter-spacing: -.01em; }
.cd-wordmark small { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .04em; font-weight: 600; margin-top: -2px; }

/* ---- shared page parts ---- */
.cd-page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.cd-page-head h1 { font-size: 1.75rem; margin: 0; }
.cd-page-head p { margin: 4px 0 0; color: var(--muted); }
.cd-empty { padding: 28px; text-align: center; color: var(--muted); }
.cd-muted { color: var(--muted); }
.cd-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cd-stat { padding: 18px; }
.cd-stat b { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--nocturne); }
.cd-note { border-left: 3px solid var(--brass); background: var(--brass-soft); padding: 10px 14px; border-radius: 8px; }
.cd-internal { border-left: 3px solid var(--rose); background: var(--rose-soft); padding: 10px 14px; border-radius: 8px; }
.cd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- auth pages ---- */
.cd-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cd-auth-brand { background: var(--nocturne); color: #f7f3ea; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.cd-auth-brand h2 { color: #fff; font-size: 2.2rem; line-height: 1.15; max-width: 420px; }
.cd-auth-brand .cd-wordmark, .cd-auth-brand .cd-wordmark b { color: #fff; }
.cd-auth-brand .cd-wordmark small { color: #c9cfdd; }
.cd-auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.cd-auth-card { width: 100%; max-width: 420px; }
.cd-field { display: block; margin-bottom: 14px; }
.cd-field span { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.cd-field input, .cd-field select, .cd-field textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 11px 13px; border: 1px solid var(--line-strong);
    border-radius: 10px; background: #fff; color: var(--ink); }
.cd-field input:focus, .cd-field select:focus, .cd-field textarea:focus { outline: 2px solid var(--nocturne-2); outline-offset: 1px; }
.cd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 11px 22px; border-radius: 999px;
    border: 1px solid transparent; background: var(--nocturne); color: #fff; cursor: pointer; text-decoration: none; }
.cd-btn:hover { background: var(--nocturne-2); }
.cd-btn.secondary { background: #fff; color: var(--nocturne); border-color: var(--line-strong); }
.cd-btn.brass { background: var(--brass); }
.cd-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 18px; }
.cd-codes code { font-size: 1rem; padding: 8px 10px; background: var(--nocturne-soft); border-radius: 8px; text-align: center; letter-spacing: .06em; }
.cd-qr { max-width: 220px; margin: 8px 0 12px; }
.cd-qr svg { width: 100%; height: auto; display: block; }
.cd-alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; }
.cd-alert.error { background: var(--rose-soft); color: #7d2a22; }
.cd-alert.ok { background: var(--teal-soft); color: #1d5a53; }
.cd-alert.info { background: var(--nocturne-soft); color: var(--nocturne); }
@media (max-width: 860px) { .cd-auth { grid-template-columns: 1fr; } .cd-auth-brand { padding: 24px 16px; } .cd-auth-brand h2 { font-size: 1.5rem; } }

/* Photos of a rented instrument (contract page) */
.cd-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cd-photos figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eeece6; }
.cd-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-photos .mud-icon-button { position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,.9); }
