:root {
  --navy: #102b46;
  --blue: #2b7fc3;
  --cream: #faf8f3;
  --paper: #fffdfa;
  --ink: #15283f;
  --muted: #69798d;
  --line: #d8e1eb;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, sans-serif;
  --text-body: 1rem;
  --text-small: .875rem;
  --text-label: .95rem;
  --control-height: 46px;
  --radius-control: 9px;
  --radius-surface: 14px;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

body {
  font-size: var(--text-body);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.045em;
}

.topbar .brand,
.topbar .shell-nav-link,
.account-label-button,
.primary,
.secondary,
.mini,
button {
  font-weight: 800;
}

.topbar {
  height: 78px;
  min-height: 78px;
}

.brand {
  font-size: 1.15rem;
}

.shell {
  max-width: 1440px;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 72px) 84px;
}

.page-head {
  margin-bottom: 30px;
}

.page-head h1 {
  font-size: clamp(2.75rem, 4.2vw, 4rem);
}

.auth-copy h1,
.onboarding-intro h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 4.2vw, 3.75rem);
  line-height: 1;
}

.page-head > div > p:not(.eyebrow),
.auth-copy > p:not(.eyebrow),
.onboarding-intro > p:not(.eyebrow) {
  font-size: 1rem;
  line-height: 1.55;
}

.auth-card h2 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.auth-card label {
  font-weight: 600;
}

.auth-card .primary {
  font-weight: 700;
}

.auth-card .text-button,
.auth-card .password-toggle {
  font-size: .875rem;
  font-weight: 650;
}

.auth-card .field-help {
  font-size: .875rem;
  font-weight: 400;
}

.auth-links,
.auth-switch {
  font-size: .875rem;
  line-height: 1.45;
}

.eyebrow {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.panel,
.auth-card,
.modal {
  border-radius: var(--radius-surface);
  box-shadow: 0 12px 30px rgba(8, 26, 51, .06);
}

.panel {
  padding: 24px;
}

.panel-title {
  font-size: 1rem;
}

.league-list {
  gap: 10px;
  margin-top: 20px;
}

.league-link,
.draft-card {
  gap: 13px;
  padding: 14px 12px;
  border-radius: 10px;
}

.league-link strong,
.draft-card strong,
.team-row strong,
.participant strong {
  font-size: .95rem;
  line-height: 1.3;
}

.league-link small,
.draft-card small,
.team-row small,
.participant small {
  font-size: .82rem;
  line-height: 1.4;
}

.workspace-head h2 {
  font-size: 1.85rem;
}

.section-head h3,
.section-head h4 {
  font-size: 1.05rem;
}

.muted,
.quiet {
  font-size: var(--text-small);
  line-height: 1.5;
}

.stack label,
.form-grid label,
.pick-form label {
  font-size: var(--text-label);
  line-height: 1.35;
}

.stack input,
.stack select,
.stack textarea,
.form-grid input,
.form-grid select,
.form-grid textarea,
.inline-form input,
.pick-form input,
.pick-form select {
  min-height: 46px;
  padding: 11px 13px;
  font-size: 1rem;
  border-radius: var(--radius-control);
}

.primary,
.secondary,
.mini {
  padding: 11px 16px;
  font-size: 1rem;
  line-height: 1.25;
}

.message {
  font-size: .875rem;
}

.modal {
  padding: 30px;
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
}

.reference-page-head h1,
.reference-yahoo-heading h1,
.reference-hero-copy h1,
.reference-room-head h1,
.reference-detail-title h2,
.reference-delete-layout h1 {
  font-family: var(--font-display);
  font-weight: 900;
}

.reference-hero-copy p:not(.eyebrow),
.reference-detail-title p:last-child {
  font-size: 1rem;
  line-height: 1.5;
}

.reference-card-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}

.reference-card-body p,
.reference-yahoo-nav small,
.reference-yahoo-link small,
.reference-generic-card p{
  font-size: .95rem;
  line-height: 1.45;
}

.reference-yahoo-nav strong,
.reference-yahoo-link strong {
  font-size: 1.15rem;
}

.reference-yahoo-link,
.reference-yahoo-nav {
  border-radius: 10px;
}
.reference-mobile-back,
.reference-new-league,
.reference-league-settings,
.reference-create-draft {
  font-size: .95rem;
}

.reference-draft-details-fields label,
.reference-league-logo-label {
  font-size: 1rem;
}

.reference-draft-details-fields input,
.reference-logo-edit {
  font-size: 1rem;
}

@media (max-width: 760px) {
  .topbar {
    height: 70px;
    min-height: 70px;
  }

  .shell {
    padding: 30px 16px 60px;
  }

  .panel,
  .auth-card {
    padding: 20px;
  }

  .page-head h1,
  .auth-copy h1,
  .onboarding-intro h1 {
    font-size: 2.4rem;
    line-height: 1;
  }

  .page-head > div > p:not(.eyebrow),
  .auth-copy > p:not(.eyebrow),
  .onboarding-intro > p:not(.eyebrow) {
    font-size: 1.05rem;
  }

  .workspace-head h2 {
    font-size: 1.65rem;
  }

  .modal {
    padding: 24px 20px;
  }

  .modal h2 {
    font-size: 1.85rem;
  }
}

/* Keep the working app visually connected to the public marketing theme. */
.topbar {
  background: var(--paper);
  color: var(--navy);
  border-bottom: 1px solid #dbe3eb;
}

.topbar .brand {
  color: var(--navy);
  font-weight: 800;
}

.topbar .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: .75rem;
  letter-spacing: -.06em;
}

.topbar .light {
  color: var(--blue);
}

.topbar .shell-nav-link {
  color: var(--navy);
  font-weight: 650;
}

.topbar .shell-nav-link:hover,
.topbar .shell-nav-link.is-active {
  color: var(--navy);
  background: #f4f8fc;
  border-bottom-color: var(--blue);
}

.topbar .shell-draft-picker select {
  border-color: #c9d8e8;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}

.account-label-button {
  border-color: #c9d8e8;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

.account-label-button:hover,
.account-label-button[aria-expanded="true"] {
  border-color: var(--blue);
  background: #f4f8fc;
}

.primary {
  border-color: var(--blue);
  background: var(--blue);
  font-weight: 700;
}

.primary:hover {
  background: #22679e;
}

@media (max-width: 760px) {
  .topbar #shell-nav {
    border-top-color: #dbe3eb;
  }

  .topbar .shell-nav-link.is-active {
    border-color: var(--blue);
    background: #f4f8fc;
  }
}

/* Working pages should feel compact and readable; reserve the oversized
   display treatment for the public marketing hero. */
.reference-page-head {
  padding: 28px 18px 24px;
}

.reference-page-head h1 {
  font-size: clamp(2.15rem, 3vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.reference-page-head > div > p:not(.eyebrow) {
  font-size: 1rem;
}

@media (max-width: 760px) {
  .reference-page-head {
    padding: 24px 16px 20px;
  }

  .reference-page-head h1 {
    font-size: 2.3rem;
  }
}
