@import url('./fonts.css');

:root {
  --font-interface: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Barlow Semi Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
  --text-secondary: .875rem;
  --text-control: .9375rem;
  --text-body: 1rem;
  --text-section: clamp(1.25rem, 1.1rem + .4vw, 1.5rem);
  --text-page: clamp(1.75rem, 1.5rem + .6vw, 2rem);
}

body { font-family: var(--font-interface); font-size: var(--text-body); font-weight: 400; line-height: 1.5; }
button, input, select, textarea, table { font-family: var(--font-interface); line-height: 1.5; }
input, select, textarea,
.admin-form input:not([type=checkbox]), .admin-form select, .admin-form textarea,
.games-editor input:not([type=checkbox]), .games-editor select, .games-editor textarea,
.games-preview select, .game-result input { font-size: var(--text-body); }
b, strong, th { font-weight: 600; }
p, dd, .public-plan, .program-module-title small { line-height: 1.5; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; }
h1, .topbar h1, .admin-heading h1, .games-heading h1, .booking-card h1, .offline-page h1 {
  font-size: var(--text-page); font-weight: 700; line-height: 1.15; letter-spacing: 0;
}
h2, .welcome-card h2, .placeholder-card h2, .empty-state h2, .modal-card>header h2,
.settings-copy h2, .program-intro h2, .program-level-head h2, .login-card h2 {
  font-size: var(--text-section); letter-spacing: 0; line-height: 1.2;
}
h3, .share-heading h3, .lesson-allowance-heading h3 { font-size: 1.25rem; }
.student-info h2, .student-lesson h3, .module-card h2, .program-module-title strong {
  font-family: var(--font-interface); font-size: var(--text-body); font-weight: 600; line-height: 1.5;
}
.program-lesson-copy strong, .add-library-lesson strong,
.student-options strong, .share-recipients strong { font-size: var(--text-control); }
.program-stats strong, .admin-stats strong, .admin-money,
.lesson-allowance-stats strong, .student-allowance strong {
  font-family: var(--font-heading); font-weight: 700; line-height: 1.15; letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
}
.admin-stats strong, .admin-money { font-size: 2rem; }
.program-stats strong, .lesson-allowance-stats strong { font-size: 1.75rem; }
.student-allowance strong { font-size: 1.5rem; }
.games-list-item h2, .games-detail>h2 { font-family: var(--font-heading); font-weight: 700; }
.btn, .admin-actions .btn, .share-actions .btn, .share-results .btn,
.google-sync-panel .btn, .segmented button, .period-nav .btn,
.module-actionbar button, .lesson-actionbar button, .compact-actions button,
.nav-item, .admin-nav a, .games-header nav {
  font-family: var(--font-interface); font-size: var(--text-control); font-weight: 600; line-height: 1.5;
}
label, legend, .admin-form label, .admin-search label, .games-editor label {
  font-size: var(--text-secondary); font-weight: 500; line-height: 1.5;
}
small, .eyebrow, .phase-label, .status-badge, .level-chip, .attendance-chip,
.count-label, .booking-status, .booking-details dt, .booking-note, .login-note,
.student-info a, .student-info p, .lesson-item span, .lesson-item small,
.program-stats small, .program-level-total, .program-module-count,
.program-lesson-copy>span, .program-module-title small, .archive-toggle span,
.module-card small, .module-card p, .foundation-card small,
.sidebar-bottom strong, .sidebar-bottom small, .private-label, .share-note {
  font-family: var(--font-interface); font-size: var(--text-secondary); line-height: 1.5;
}
.eyebrow, .phase-label, .module-card small, .lesson-allowance-stats span,
.booking-details dt, .program-stats small {
  text-transform: none; letter-spacing: .02em; font-weight: 500;
}
.agenda-toolbar h2, .agenda-day>header strong, .agenda-day>header span,
.agenda-day>header small, .lesson-item strong, .lesson-item.is-compact strong,
.month-weekdays span, .day-number, .more-lessons {
  font-family: var(--font-interface); font-size: var(--text-secondary); font-weight: 500; letter-spacing: 0;
}
.agenda-toolbar h2 { font-size: var(--text-body); font-weight: 600; }
.lesson-item strong { font-weight: 600; }
time, .agenda-days, .month-grid, .day-number, .lesson-item, .game-result,
.games-standings table, .admin-table table, .admin-money, .settings-list,
input[type=time], input[type=date], input[type=number] { font-variant-numeric: tabular-nums lining-nums; }
.admin-table table, .games-standings table { font-family: var(--font-interface); font-size: var(--text-control); }
.games-standings thead { font-size: var(--text-secondary); }
/* A leitura maior mantém espaço próprio, sem ser comprimida pelas acções. */
.student-card { grid-template-columns: auto minmax(0, 1fr); }
.student-card .card-actions { grid-column: 1 / -1; }
.student-info h2 { overflow-wrap: anywhere; }
/* O ficheiro do logótipo e a sua assinatura textual conservam o desenho anterior. */
.brand, .booking-brand, .login-brand h1 {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.brand strong, .brand small, .booking-brand small { font-family: inherit; }
.login-brand h1 { font-size: 3.45rem; font-weight: 700; line-height: .96; letter-spacing: -.07em; }
@media (max-width:720px) {
  :root { --text-page: clamp(1.5rem, 1.25rem + 1vw, 1.75rem); }
  .topbar { height: auto; min-height: 64px; flex-wrap: wrap; }
  .topbar>.btn { font-size: .875rem; }
  .login-brand h1 { font-size: 2.75rem; }
  .agenda-day>header { height: auto; min-height: 74px; }
  .agenda-toolbar { grid-template-columns: minmax(0, 1fr); }
  .agenda-toolbar .period-nav { justify-self: start; }
  .agenda-toolbar .segmented { min-width: 0; }
  .status-badge { font-size: 0; }
}
