html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

:root {
  --simhoops-ink: #111111;
  --simhoops-ink-soft: rgba(17, 17, 17, 0.74);
  --simhoops-paper: rgba(255, 255, 255, 0.95);
  --simhoops-accent: #ff8c00;
  --simhoops-accent-deep: #d96d00;
  --simhoops-menu-surface: #121212;
  --simhoops-menu-panel: #1c1c1c;
  --simhoops-menu-panel-alt: #252525;
}

/* Basketball Theme */
body {
  margin-bottom: 0;
  background: linear-gradient(135deg, #D2691E 0%, #CD853F 50%, #D2691E 100%);
  background-attachment: fixed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

main {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.table-responsive {
  padding-bottom: 10px;
}

/* Navbar Styling */
.navbar {
  background-color: #1a1a1a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.simhoops-shell-navbar {
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.92), rgba(35, 35, 35, 0.94)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.simhoops-nav-bar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.simhoops-nav-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.simhoops-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.7rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.simhoops-menu-toggle:hover,
.simhoops-menu-toggle:focus {
  color: #fff;
  background: rgba(255, 140, 0, 0.14);
  border-color: rgba(255, 140, 0, 0.5);
}

.simhoops-menu-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 0.22rem;
}

.simhoops-menu-toggle-icon span {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.simhoops-menu-toggle-label {
  line-height: 1;
}

.simhoops-nav-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.simhoops-account-pill {
  display: inline-flex;
  align-items: center;
  max-width: min(280px, 45vw);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.simhoops-top-action {
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 0, 0.6);
  color: #fff;
  background: rgba(255, 140, 0, 0.16);
  font-weight: 700;
  padding-inline: 1rem;
}

.simhoops-top-action:hover,
.simhoops-top-action:focus {
  color: #fff;
  background: rgba(255, 140, 0, 0.28);
  border-color: rgba(255, 140, 0, 0.9);
}

.simhoops-menu-drawer {
  --bs-offcanvas-width: min(420px, 92vw);
  background:
    radial-gradient(circle at top left, rgba(255, 140, 0, 0.22), transparent 28%),
    linear-gradient(180deg, #111111, #191919 42%, #101010 100%);
  color: #fff;
}

.simhoops-menu-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.5rem 1rem;
}

.simhoops-menu-kicker {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.simhoops-menu-header .offcanvas-title {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
  border: 0;
  padding: 0;
}

.simhoops-menu-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.simhoops-menu-home-link {
  display: block;
  padding: 1.1rem 1.15rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 140, 0, 0.08));
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.simhoops-menu-home-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.simhoops-menu-home-eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.simhoops-menu-home-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.simhoops-menu-home-copy,
.simhoops-menu-intro,
.simhoops-menu-section-copy,
.simhoops-menu-link-meta,
.simhoops-menu-subtitle {
  color: rgba(255, 255, 255, 0.68);
}

.simhoops-menu-intro {
  margin: 1rem 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.simhoops-menu-accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: transparent;
  --bs-accordion-btn-bg: var(--simhoops-menu-panel);
  --bs-accordion-btn-color: #fff;
  --bs-accordion-active-color: #fff;
  --bs-accordion-active-bg: var(--simhoops-menu-panel-alt);
  --bs-accordion-btn-focus-box-shadow: none;
  display: grid;
  gap: 0.85rem;
}

.simhoops-menu-section {
  border-radius: 18px !important;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.simhoops-menu-section .accordion-button {
  padding: 1rem 1.1rem;
  align-items: flex-start;
}

.simhoops-menu-section .accordion-button:not(.collapsed) {
  box-shadow: none;
}

.simhoops-menu-section .accordion-button::after {
  filter: invert(1);
  opacity: 0.8;
  margin-top: 0.35rem;
}

.simhoops-menu-section-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.simhoops-menu-section-copy {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
}

.simhoops-menu-section .accordion-body {
  padding: 0 1.1rem 1.1rem;
}

.simhoops-menu-links {
  display: grid;
  gap: 0.55rem;
}

.simhoops-menu-links-nested {
  margin-top: 0.45rem;
}

.simhoops-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.simhoops-menu-link:hover {
  color: #fff;
  background: rgba(255, 140, 0, 0.18);
}

.simhoops-menu-link-team {
  align-items: flex-start;
}

.simhoops-menu-link-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.simhoops-menu-subgroup {
  margin-top: 0.35rem;
}

.simhoops-menu-team-group {
  display: grid;
  gap: 0.45rem;
}

.simhoops-menu-team-actions {
  display: grid;
  gap: 0.4rem;
  margin-left: 0.85rem;
}

.simhoops-menu-link-action {
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.9rem;
  font-weight: 600;
}

.simhoops-menu-subtitle {
  margin-bottom: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.simhoops-menu-account-block {
  margin-bottom: 0.9rem;
}

.simhoops-menu-signout-form {
  margin-top: 0.9rem;
}

.simhoops-menu-signout {
  width: 100%;
  border-radius: 999px;
  font-weight: 700;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #FF8C00 !important;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.brand-logo {
  height: 68px;
  width: auto;
  display: block;
}

.nav-link {
  color: white !important;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #FF8C00 !important;
  text-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #1a1a1a;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

h1 {
  border-bottom: 3px solid #FF8C00;
  padding-bottom: 0.5rem;
  font-size: 2rem;
}

h2 {
  border-bottom: 2px solid #FF8C00;
  padding-bottom: 0.3rem;
  font-size: 1.5rem;
}

h5 {
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Tables */
.table {
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.table thead {
  background-color: #1a1a1a;
  color: white;
  font-weight: 600;
}

.table thead.table-dark th {
  background-color: #1a1a1a;
  border-bottom: 2px solid #FF8C00;
}

.table tbody tr:hover {
  background-color: #f5f5f5;
  transition: background-color 0.2s ease;
}

.table td {
  vertical-align: middle;
  padding: 0.75rem;
}

.media-ballot-table {
  box-shadow: none;
  border-radius: 12px;
}

.media-ballot-table thead th {
  white-space: nowrap;
}

.media-ballot-row td {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.media-ballot-row.is-selected {
  background: rgba(255, 140, 0, 0.08);
}

.media-ballot-row.is-selected:hover {
  background: rgba(255, 140, 0, 0.12);
}

.media-ballot-pick-cell {
  width: 72px;
  text-align: center;
}

.media-ballot-input {
  margin: 0;
}

.media-ballot-candidate-block {
  display: grid;
  gap: 0.4rem;
}

.media-ballot-candidate-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.media-ballot-candidate-name {
  font-size: 1rem;
  font-weight: 700;
}

.media-ballot-candidate-name a {
  color: #1a1a1a;
  text-decoration: none;
}

.media-ballot-candidate-name a:hover {
  color: #d96d00;
  text-decoration: underline;
}

.media-ballot-team-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.08);
  color: #444;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-ballot-detail-line {
  color: #333;
  font-weight: 600;
}

.media-ballot-points-line {
  color: #666;
  font-size: 0.85rem;
}

.media-ballot-stats-block {
  display: grid;
  gap: 0.55rem;
}

.media-ballot-stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.media-ballot-stat-grid-secondary {
  opacity: 0.9;
}

.media-ballot-stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  line-height: 1;
}

.media-ballot-stat-pill.is-primary {
  background: rgba(255, 140, 0, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.28);
}

.media-ballot-stat-pill.is-secondary {
  background: rgba(26, 26, 26, 0.06);
}

.media-ballot-stat-label {
  color: #666;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-ballot-stat-value {
  color: #111;
  font-size: 1rem;
  font-weight: 700;
}

.roster-compact-table {
  font-size: 0.875rem;
}

.roster-compact-table th,
.roster-compact-table td {
  padding: 0.4rem 0.45rem;
}

.lineup-select-control {
  font-size: 0.75rem;
  line-height: 1.2;
}

.lineup-select-control-compact {
  min-width: 5.5rem;
}

.lineup-select-control-wide {
  min-width: 7.5rem;
}

.lineup-client-warnings {
  border-left: 4px solid #ff8c00;
}

.lineup-cell-warning {
  background-color: rgba(255, 140, 0, 0.08);
}

.defensive-select.is-warning {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.18);
}

.btn-primary.is-disabled,
.btn-primary:disabled {
  background-color: #c8c8c8;
  border-color: #c8c8c8;
  box-shadow: none;
  cursor: not-allowed;
}

.lineup-player-ratings-trigger {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.15rem;
}

.lineup-player-ratings-trigger:hover {
  color: #e07b00;
}

.player-ratings-tooltip {
  --bs-tooltip-max-width: none;
}

.player-ratings-tooltip .tooltip-inner {
  max-width: none;
  width: max-content;
  white-space: pre;
  text-align: left;
}

.roster-moves-detail-text {
  font-size: 0.76rem;
  line-height: 1.35;
}

.roster-moves-table-wrap {
  overflow-x: auto;
}

.roster-moves-select {
  min-width: 100%;
}

.roster-moves-select:not([multiple]) {
  min-width: 11rem;
  padding-right: 2.25rem;
}

.roster-moves-select-sm {
  font-size: 0.8rem;
}

.roster-moves-filter-card .roster-moves-select[multiple] {
  min-width: 100%;
}

.roster-moves-table-wrap .roster-moves-select {
  width: max(100%, 11rem);
}

/* Badges */
.badge {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge.bg-success {
  background-color: #28a745 !important;
}

.badge.bg-info {
  background-color: #17a2b8 !important;
}

/* Buttons */
.btn-primary {
  background-color: #FF8C00;
  border-color: #FF8C00;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #E07B00;
  border-color: #E07B00;
  box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

.btn-outline-primary {
  color: #FF8C00;
  border-color: #FF8C00;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: #FF8C00;
  border-color: #FF8C00;
  color: white;
}

.btn-outline-secondary {
  color: #666;
  border-color: #999;
  font-weight: 600;
}

.btn-outline-secondary:hover {
  background-color: #666;
  border-color: #666;
  color: white;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: white;
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center;
  border-top: 3px solid #FF8C00;
  flex-shrink: 0;
}

.footer-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
}

footer a {
  color: #FF8C00;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .simhoops-nav-bar {
    min-height: 78px;
  }

  .simhoops-nav-branding {
    gap: 0.7rem;
  }

  .simhoops-menu-toggle {
    padding: 0.65rem 0.8rem;
    gap: 0.65rem;
  }

  .simhoops-menu-toggle-label {
    display: none;
  }

  .brand-logo {
    height: 56px;
  }

  .simhoops-account-pill {
    max-width: 34vw;
    padding-inline: 0.7rem;
  }

  .simhoops-menu-body,
  .simhoops-menu-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .simhoops-menu-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .media-ballot-table thead {
    display: none;
  }

  .media-ballot-table,
  .media-ballot-table tbody,
  .media-ballot-table tr,
  .media-ballot-table td {
    display: block;
    width: 100%;
  }

  .media-ballot-row {
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  }

  .media-ballot-pick-cell {
    text-align: left;
    padding-bottom: 0.25rem;
  }

  .media-ballot-stat-pill {
    width: 100%;
    justify-content: space-between;
  }
}

/* Utility Text */
.text-muted {
  color: #666 !important;
}

.small {
  font-size: 0.875rem;
}

.schedule-calendar-card {
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 10px;
}

.schedule-calendar-table {
  box-shadow: none;
  margin-bottom: 0;
}

.schedule-calendar-table th,
.schedule-calendar-table td {
  padding: 0.25rem;
}

.schedule-calendar-cell {
  height: 2.75rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #fff;
}

.schedule-calendar-cell.is-outside-month {
  background-color: #f6f6f6;
}

.league-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.awards-card {
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.awards-team-list {
  padding-left: 1.25rem;
}

.awards-team-list li {
  margin-bottom: 0.35rem;
}

.draft-on-clock {
  background-color: rgba(255, 140, 0, 0.12);
}

.bracket-rounds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bracket-round-column h6 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #333;
}

.bracket-series-card {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 10px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.9rem;
}

.bracket-series-card.is-complete {
  border-color: rgba(255, 140, 0, 0.45);
}

.bracket-team-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.3rem 0;
}

.bracket-team-row.is-winner {
  font-weight: 700;
}

.bracket-seed {
  color: #666;
  font-size: 0.85rem;
}

.bracket-record {
  color: #666;
  font-size: 0.85rem;
  white-space: nowrap;
}

.bracket-series-status {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: #666;
}

.bracket-finals-card {
  border: 1px solid rgba(26, 26, 26, 0.1);
}

@media (max-width: 991.98px) {
  .bracket-rounds-grid {
    grid-template-columns: 1fr;
  }
}

.guide-nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.guide-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.08);
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
}

.guide-nav-link:hover,
.guide-nav-link.active {
  background: #1a1a1a;
  color: #fff;
}

.guide-hero,
.guide-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.96), rgba(120, 50, 5, 0.92));
  color: #fff;
  margin-bottom: 1.5rem;
}

.guide-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
  color: #ffd59c;
  font-weight: 700;
}

.guide-hero h1,
.guide-page-header h1 {
  color: #fff;
  border-bottom: 0;
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0;
}

.guide-intro,
.guide-meta {
  color: rgba(255, 255, 255, 0.9);
  max-width: 58rem;
  margin-bottom: 0;
}

.commissioner-alert-banner {
  border: 1px solid #e1b85a;
  background: linear-gradient(135deg, #fff7dd 0%, #ffe8b0 100%);
  color: #5f4200;
  box-shadow: 0 12px 24px rgba(160, 118, 24, 0.12);
}

.commissioner-alert-banner__header {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.commissioner-alert-banner__meta {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  opacity: 0.85;
}

.commissioner-alert-banner__list {
  padding-left: 1.25rem;
}

.guide-meta {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.guide-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.guide-hero-ball {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex: 0 0 auto;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.guide-card {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.guide-card h2 {
  font-size: 1.3rem;
  margin-top: 0;
}

.home-signin-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-signin-form {
  margin-top: 0.5rem;
}

.guide-card-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9a4c00;
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.guide-toc a {
  color: #7a3300;
  font-weight: 600;
  text-decoration: none;
}

.guide-toc a:hover {
  text-decoration: underline;
}

.guide-section {
  margin-bottom: 2rem;
}

.guide-section h2 {
  margin-top: 0;
}

.guide-section h3 {
  margin-top: 1.2rem;
  font-size: 1.05rem;
}

.guide-table-wrap {
  overflow-x: auto;
}

.home-hero {
  margin-bottom: 2rem;
}

.franchise-summary-grid {
  margin-bottom: 1.5rem;
}

.history-champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.history-champion-card {
  background: #fff;
  border: 4px solid #1a1a1a;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.history-champion-card.is-consolation {
  opacity: 0.96;
}

.history-champion-logo {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
}

.history-hof-card {
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.history-matrix-table th,
.history-matrix-table td {
  white-space: nowrap;
  font-size: 0.82rem;
}

.franchise-page-header {
  margin-bottom: 1.5rem;
}

.franchise-openings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.franchise-opening-card {
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #faf3ea);
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.franchise-opening-card h3 {
  font-size: 1.1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.4rem;
}

.franchise-opening-swatches {
  display: flex;
  gap: 0.5rem;
}

.franchise-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
}

.franchise-form {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767.98px) {
  main {
    padding: 1.25rem;
  }

  .guide-hero,
  .guide-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-hero-ball {
    width: 64px;
    height: 64px;
  }
}

.schedule-calendar-cell.is-selected {
  background-color: rgba(255, 140, 0, 0.18);
}

.schedule-calendar-cell.is-today {
  box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.55);
}

.schedule-calendar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #1a1a1a;
  text-decoration: none;
}

.schedule-calendar-link:hover {
  color: #c56c00;
  text-decoration: none;
}

.game-preview-team-card {
  border-radius: 12px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.game-preview-team-logo {
  max-width: 180px;
  max-height: 120px;
  width: auto;
  height: auto;
  margin-bottom: 1rem;
}

.game-preview-team-name {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

.game-preview-team-record {
  margin-top: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.game-preview-at {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #7b3f00;
}

.game-preview-scoreline {
  display: grid;
  gap: 0.75rem;
  font-size: 1.1rem;
}

.game-preview-score {
  margin-left: 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.game-preview-matchup-table td,
.game-preview-matchup-table th {
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .brand-logo {
    height: 52px;
  }

  .footer-logo {
    height: 36px;
  }

  .schedule-calendar-cell {
    height: 2.25rem;
  }

  .game-preview-team-card {
    min-height: 160px;
  }

  .game-preview-at {
    font-size: 1.2rem;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}