.reference-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* Platform admin is intentionally URL-only while its placement is being finalized. */
#league-admin {
  display: none !important;
}

/* Mobile settings dialogs must scroll inside the phone viewport. */
.modal-backdrop {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-backdrop > .modal {
  min-height: 0;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
  .modal-backdrop {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12px;
  }

  .modal-backdrop > .modal {
    width: min(600px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    margin: 0 auto;
  }
}

/* Use the full desktop canvas for the application workspace. */
.reference-shell {
  width: 100%;
  max-width: none;
}

/* Commissioner and league reference screens use the desktop canvas, not the
   legacy app shell's narrow 1320px content cap. */
#app.shell:has(.reference-shell) {
  width: 100%;
  max-width: none;
  padding-left: clamp(24px, 3vw, 72px);
  padding-right: clamp(24px, 3vw, 72px);
}

.reference-page-head > div > p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.reference-new-league {
  flex: none;
  margin-bottom: 4px;
}

.reference-league-settings {
  margin-top: 18px;
}

.reference-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.reference-card-actions .reference-league-settings,
.reference-card-actions .reference-create-draft {
  margin-top: 0;
}

.reference-commissioner-context {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}

.topbar #top-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.account-menu {
  position: relative;
}

.account-label-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #5a789a;
  border-radius: 9px;
  background: #102d4d;
  color: #fff;
  font-size: .95rem;
  font-weight: 850;
}

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

.account-menu-panel {
  position: absolute;
  z-index: 10;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 220px;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(8,26,51,.18);
}

.account-menu-panel small {
  color: #60748e;
  font-size: .8rem;
}

.account-signout {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 750;
}

.account-signout:hover {
  color: var(--blue);
}

/* Make the primary navigation the visual anchor of the application shell. */
.topbar {
  min-height: 78px;
  padding-inline: clamp(20px, 4vw, 64px);
  gap: 28px;
}

.topbar .brand {
  flex: 0 0 auto;
  font-size: 1.25rem;
  letter-spacing: -.05em;
}

.topbar .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.topbar #shell-nav {
  align-self: stretch;
  gap: 8px;
  margin-left: 4px;
}

.topbar .shell-nav-link {
  position: relative;
  min-height: 78px;
  padding: 0 18px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: #c9d8eb;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -.01em;
}

.topbar .shell-nav-link:hover,
.topbar .shell-nav-link.is-active {
  color: #fff;
  background: rgba(255,255,255,.05);
  border-bottom-color: var(--gold);
}

.topbar .shell-draft-picker {
  align-self: center;
  margin-left: auto;
}

.topbar .shell-draft-picker select {
  min-width: 270px;
  min-height: 46px;
  padding: 10px 38px 10px 16px;
  border: 1px solid #537497;
  border-radius: 9px;
  background: #102d4d;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
}

.topbar #top-actions:empty {
  display: none;
}

.reference-yahoo-tools {
  max-width: none;
  margin: 0 auto;
  padding: 16px clamp(22px, 1.6vw, 28px) 42px;
}

.reference-yahoo-heading {
  margin-bottom: 26px;
}

.reference-yahoo-heading h1 {
  margin: 0;
  color: #202936;
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .95;
  text-transform: uppercase;
}

.reference-yahoo-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 43px;
  margin-bottom: 23px;
  padding: 0 17px;
  border: 1px solid #c9d8ea;
  border-radius: 5px;
  background: #fff;
  color: #6f8196;
}

.reference-yahoo-filter span {
  font-size: 1.3rem;
}

.reference-yahoo-filter input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: .95rem;
}

.reference-yahoo-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (min-width: 761px) {
  .reference-yahoo-grid {
    height: calc(100vh - 205px);
    min-height: 0;
  }

  .reference-yahoo-content {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 6px 14px 28px 0;
    scrollbar-gutter: stable;
  }
}

.reference-yahoo-sidebar,
.reference-yahoo-links {
  display: grid;
  gap: 13px;
}

.reference-yahoo-nav,
.reference-yahoo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1px solid #c9d8ea;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.reference-yahoo-nav {
  min-height: 94px;
  padding: 18px 20px;
}

.reference-yahoo-nav:hover,
.reference-yahoo-nav.is-selected {
  border-color: #7437ff;
  background: #faf6ff;
}

.reference-yahoo-nav .setup-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: #202936;
  font-size: 1.25rem;
}

.reference-yahoo-nav .setup-icon svg {
  display: block;
  width: 30px;
  height: 30px;
}

.reference-yahoo-nav > span:nth-child(2),
.reference-yahoo-link > span {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.reference-yahoo-nav strong,
.reference-yahoo-link strong {
  color: #202936;
  font-size: 1.08rem;
  font-weight: 850;
}

.reference-yahoo-nav small,
.reference-yahoo-link small {
  color: #4e6683;
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.4;
}

.reference-yahoo-nav > b,
.reference-yahoo-link > b {
  color: #202a36;
  font-size: 2.25rem;
  font-weight: 400;
}

.reference-yahoo-nav .reference-nav-status {
  color: #a86f00;
  font-size: .76rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.25;
}

.reference-yahoo-nav .reference-nav-status.is-complete {
  color: #0a7b50;
}

.reference-yahoo-content {
  min-height: 420px;
  padding-top: 6px;
}

.reference-yahoo-content h2 {
  margin: 0 0 16px;
  color: #202936;
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.reference-yahoo-link {
  min-height: 74px;
  padding: 13px 16px;
}

.reference-yahoo-link:hover {
  border-color: #8aa4c2;
  background: #f7fbff;
}

.reference-yahoo-link.is-danger {
  border-color: #e4c5c1;
}

.reference-yahoo-link.is-danger strong {
  color: #a64037;
}

.reference-mobile-back {
  display: none;
}

.reference-generic-page {
  min-height: 420px;
}

.reference-generic-card {
  padding: 20px 18px 22px;
  border: 1px solid #c9d8ea;
  border-radius: 9px;
  background: #fff;
}

.reference-generic-card h3 {
  margin: 0;
  color: #202936;
  font-size: .94rem;
  font-weight: 850;
}

.reference-generic-card p {
  max-width: 540px;
  margin: 6px 0 0;
  color: #4e6683;
  font-size: .82rem;
  line-height: 1.45;
}

.reference-launched-builder .builder-tabs,
.reference-launched-builder .builder-section-overview {
  display: none;
}

/* Commissioner already provides the draft context. Keep a launched setup
   section focused on its own heading instead of repeating the draft title. */
.reference-launched-builder .builder-heading {
  display: none;
}

.reference-launched-builder .builder-paper {
  margin-top: 0;
}

.reference-launched-builder .builder-back-to-overview {
  display: inline-block;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 800;
}

.reference-detail-title {
  margin-bottom: 18px;
}

.reference-detail-title .eyebrow {
  margin-bottom: 8px;
}

.reference-detail-title h2 {
  margin: 0 0 6px;
  color: #29313c;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  font-weight: 850;
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  letter-spacing: -.06em;
  line-height: 1.05;
  text-transform: uppercase;
}

.reference-detail-title p:last-child {
  margin: 0;
  color: #60748e;
  font-size: .86rem;
}

.reference-draft-details-form {
  display: grid;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid #c9d8ea;
  border-radius: 10px;
  background: #fff;
}

.reference-league-logo-setting {
  min-height: 160px;
}

.reference-league-logo-label {
  display: block;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 800;
}

.reference-league-logo-label span {
  color: #202936;
  font-size: .85rem;
}

.reference-league-logo-stage {
  position: relative;
  display: grid;
  width: 160px;
  margin: 10px auto 0;
  place-items: center;
}

.reference-league-logo-stage .reference-logo-preview {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  border: 1px solid #d5e0ee;
  background: #f7faff;
  color: #5f7898;
  font-size: 2rem;
}

.reference-league-logo-stage .reference-logo-preview img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.reference-logo-edit {
  position: absolute;
  right: 12px;
  bottom: -4px;
  min-width: 46px;
  padding: 8px 10px;
  border: 1px solid #d5e0ee;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: .75rem;
  cursor: pointer;
}

.reference-logo-remove-icon {
  position: absolute;
  top: -2px;
  right: 14px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #69727d;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.reference-logo-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 26, 51, .52);
}

.reference-logo-modal {
  position: relative;
  width: min(600px, 100%);
  padding: 24px 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(8, 26, 51, .25);
}

.reference-logo-modal h3 {
  margin: 0;
  color: #29313c;
  font-size: 1.45rem;
}

.reference-logo-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #29313c;
  font-size: 1.5rem;
  cursor: pointer;
}

.reference-logo-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin-top: 22px;
  padding: 4px 0 12px;
}

.reference-logo-upload-tile,
.reference-logo-gallery-choice {
  display: grid;
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid #d5e0ee;
  border-radius: 50%;
  background: #fff;
  color: #1769d2;
  font-size: .76rem;
  text-align: center;
  cursor: pointer;
}

.reference-logo-upload-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.reference-logo-gallery-choice {
  overflow: hidden;
  padding: 0;
}

.reference-logo-gallery-choice.is-selected {
  outline: 3px solid #1769d2;
  outline-offset: 2px;
}

.reference-logo-gallery-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-logo-modal-help {
  margin: 8px 0 20px;
  color: #60748e;
  font-size: .78rem;
}

.reference-logo-modal-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 600px) {
  .reference-logo-modal { padding: 22px 18px; }
  .reference-logo-modal-actions { flex-direction: column; }
}

.reference-logo-preview {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.25rem;
}

.reference-draft-details-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.reference-draft-details-fields label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 800;
}

.reference-draft-details-fields input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #c9d8ea;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
}

.reference-details-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
}

.reference-details-status {
  color: #078451;
  font-size: .78rem;
}

.reference-details-status.is-error {
  color: #a64037;
}

.reference-access-section {
  margin-top: 18px;
}

.reference-access-section h3 {
  margin: 0 0 10px;
  color: #29313c;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.reference-delete-page {
  padding: 40px 0 54px;
}

.reference-delete-layout {
  display: block;
  min-height: 320px;
  padding: 30px 40px 46px;
  border: 1px solid #dbe5f0;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
}

.reference-delete-layout main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 22px;
  row-gap: 30px;
}

.reference-delete-back {
  align-self: center;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
}

.reference-delete-layout h1 {
  margin: 0;
  color: #29313c;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.reference-delete-warning {
  grid-column: 1 / -1;
  max-width: 700px;
  margin: 0;
  color: #df1e34;
  font-size: 1rem;
  line-height: 1.55;
}

.reference-delete-warning strong {
  font-weight: 850;
}

.reference-delete-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 330px));
  justify-content: center;
  gap: 18px;
  padding: 26px 40px 30px;
  border-right: 1px solid #dbe5f0;
  border-bottom: 1px solid #dbe5f0;
  border-left: 1px solid #dbe5f0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  border-top: 1px solid #dbe5f0;
}

.reference-delete-actions button {
  min-height: 40px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 850;
}

.reference-delete-confirm {
  border: 1px solid #d80e2b;
  background: #d80e2b;
  color: #fff;
}

.reference-delete-confirm:hover {
  background: #b90b24;
}

@media (max-width: 760px) {
  .reference-delete-page {
    padding-top: 24px;
  }

  .reference-delete-layout {
    padding: 24px 20px 34px;
  }

  .reference-delete-actions {
    padding: 20px;
  }

  .reference-delete-actions {
    grid-template-columns: 1fr;
  }
}

/* Dashboard refresh: use the calm, editorial silhouette of the marketing
   page instead of a full-width admin card with a giant banner image. */
body:has(.reference-dashboard-page) .topbar {
  width: min(1180px, calc(100% - 48px));
  height: 78px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border-bottom: 0;
}

body:has(.reference-dashboard-page) #app.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.reference-dashboard-page .reference-page-head {
  align-items: flex-end;
  gap: 28px;
  padding: 42px 0 34px;
  border-top: 1px solid rgba(201, 216, 234, .72);
}

.reference-dashboard-page .reference-page-head h1 {
  max-width: 700px;
  margin: 0;
  color: #102b46;
  font-size: clamp(2.4rem, 3.8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}

.reference-dashboard-page .reference-page-head > div > p:not(.eyebrow) {
  margin-top: 14px;
  color: #60748e;
  font-size: 1.05rem;
}

.reference-dashboard-page .reference-new-league {
  margin: 0 0 3px;
  border-color: #287fc6;
  background: #287fc6;
  box-shadow: 0 8px 18px rgba(40, 127, 198, .16);
}

.reference-dashboard-page .reference-league-list {
  display: grid;
  gap: 22px;
  padding: 0;
}

.reference-dashboard-page .reference-league-card {
  display: grid;
  grid-template-columns: minmax(190px, 24%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #cbd9e8;
  border-radius: 16px;
  background: #fffdfa;
  box-shadow: 0 16px 34px rgba(8, 26, 51, .07);
}

.reference-dashboard-page .reference-photo {
  height: 100%;
  min-height: 270px;
  border-right: 1px solid rgba(255, 255, 255, .3);
}

.reference-dashboard-page .reference-card-body {
  min-width: 0;
  padding: 28px 30px 30px;
}

.reference-dashboard-page .reference-card-body h2 {
  margin: 0;
  color: #102b46;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.045em;
}

.reference-dashboard-page .reference-card-actions {
  gap: 9px;
  margin-top: 22px;
}

.reference-dashboard-page .reference-card-actions button {
  min-height: 40px;
  padding: 9px 13px;
  font-size: .95rem;
}

.reference-dashboard-page .reference-draft-list {
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e0e8f1;
}

.reference-dashboard-page .reference-enter-draft {
  min-height: 58px;
  padding: 9px 10px;
  border-color: #d7e2ed;
  border-radius: 10px;
  background: #f8fbfe;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.reference-dashboard-page .reference-enter-draft:hover {
  border-color: #75a9d5;
  background: #f1f7fc;
  transform: translateY(-1px);
}

.reference-dashboard-page .reference-enter-draft b {
  padding: 8px 13px;
  border: 1px solid #d5a22e;
  border-radius: 7px;
  background: #e4ae32;
  font-size: .78rem;
}

@media (max-width: 760px) {
  body:has(.reference-dashboard-page) .topbar,
  body:has(.reference-dashboard-page) #app.shell {
    width: calc(100% - 32px);
  }

  body:has(.reference-dashboard-page) .topbar {
    height: auto;
    min-height: 70px;
  }

  .reference-dashboard-page .reference-page-head {
    display: block;
    padding: 30px 0 24px;
  }

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

  .reference-dashboard-page .reference-new-league {
    margin-top: 20px;
  }

  .reference-dashboard-page .reference-league-card {
    grid-template-columns: 1fr;
  }

  .reference-dashboard-page .reference-photo {
    min-height: 130px;
    height: 130px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
  }

  .reference-dashboard-page .reference-card-body {
    padding: 22px 20px 22px;
  }
}

[hidden] {
  display: none !important;
}

/* Keep the account dashboard calm and compact; the draft room is the primary
   full-page experience after a manager enters a draft. */
body:has(.reference-dashboard-page) .topbar,
body:has(.reference-dashboard-page) #app.shell {
  width: calc(100% - 48px);
}

.reference-dashboard-page .reference-page-head {
  padding: 32px 0 24px;
}

.reference-dashboard-page .reference-page-head h1 {
  font-size: clamp(2.15rem, 3.2vw, 2.75rem);
  line-height: 1;
}

.reference-dashboard-page .reference-league-list {
  gap: 16px;
}

.reference-dashboard-page .reference-league-card {
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(8, 26, 51, .045);
}

.reference-dashboard-page .reference-photo {
  display: none;
}

.reference-dashboard-page .reference-card-body {
  padding: 24px 26px 25px;
}

.reference-dashboard-page .reference-card-body h2 {
  font-size: 1.45rem;
}

.reference-dashboard-page .reference-card-actions {
  margin-top: 17px;
}

.reference-dashboard-page .reference-draft-list {
  margin-top: 18px;
  padding-top: 16px;
}

@media (max-width: 760px) {
  body:has(.reference-dashboard-page) .topbar,
  body:has(.reference-dashboard-page) #app.shell {
    width: calc(100% - 28px);
  }

  .reference-dashboard-page .reference-page-head {
    padding: 26px 0 20px;
  }

  .reference-dashboard-page .reference-card-body {
    padding: 20px 18px 21px;
  }
}

@media (max-width: 760px) {
  .reference-page-head {
    display: block;
  }

  .reference-new-league {
    margin-top: 18px;
  }

  .reference-draft-details-form {
    padding: 16px;
  }

  .reference-draft-details-fields {
    grid-template-columns: 1fr;
  }

  .reference-yahoo-tools {
    padding: 20px 16px 28px;
  }

  .reference-yahoo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .reference-yahoo-mobile-overview .reference-yahoo-grid {
    display: block;
  }

  .reference-yahoo-mobile-overview .reference-yahoo-content {
    display: none;
  }

  .reference-yahoo-mobile-detail .reference-yahoo-filter,
  .reference-yahoo-mobile-detail .reference-yahoo-sidebar {
    display: none;
  }

  .reference-yahoo-mobile-detail .reference-yahoo-grid {
    display: block;
  }

  .reference-yahoo-mobile-detail .reference-yahoo-content {
    display: block;
    padding-top: 0;
  }

  .reference-yahoo-nav {
    min-height: 128px;
    padding: 22px 20px;
    gap: 18px;
  }

  .reference-yahoo-nav .setup-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .reference-yahoo-nav .setup-icon svg {
    width: 32px;
    height: 32px;
  }

  .reference-yahoo-nav strong {
    font-size: 1.3rem;
  }

  .reference-yahoo-nav small {
    font-size: 1.08rem;
    line-height: 1.4;
  }

  .reference-yahoo-nav > b {
    font-size: 2.6rem;
  }

  .reference-mobile-back {
    display: inline-flex;
    align-items: center;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1267d6;
    font-size: 1rem;
    font-weight: 750;
    cursor: pointer;
  }

  .reference-yahoo-content {
    min-height: 0;
  }

  .topbar {
    min-height: 0;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 0;
  }

  .topbar .brand {
    font-size: 1.05rem;
  }

  .topbar #shell-nav {
    min-height: 58px;
    gap: 0;
  }

  .topbar .shell-nav-link {
    min-height: 58px;
    padding: 0 10px;
    font-size: .9rem;
  }

  .topbar .shell-draft-picker {
    margin: 8px 0 12px;
  }

  .topbar .shell-draft-picker select {
    min-width: 0;
    width: 100%;
  }
}
.topbar #shell-nav .shell-nav-link{white-space:nowrap}
.reference-detail-title-with-back{padding-right:0}
.reference-detail-heading-row,.reference-section-heading{display:flex;align-items:flex-start;gap:14px}
.reference-detail-heading-row h2,.reference-section-heading h2{flex:1;min-width:0}
.reference-detail-heading-row>.reference-mobile-back,.reference-section-heading>.reference-mobile-back{flex:none;margin-top:8px}
@media(max-width:760px){
  .topbar #shell-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;padding-top:7px;margin-top:8px;border-top:1px solid #284568}
  .topbar .shell-nav-link{display:flex;align-items:center;justify-content:center;min-height:42px;padding:9px 12px;border:1px solid transparent;border-radius:8px;font-size:.85rem}
  .topbar .shell-nav-link.is-active{border-color:#eab840;border-bottom-width:3px;background:#102b4d}
}


/* Accessible logo information control. */
.reference-league-logo-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.reference-logo-info { display: inline-grid; width: 18px; height: 18px; place-items: center; padding: 0; border: 1px solid #6e829b; border-radius: 50%; background: #fff; color: #1e4f7d; font-size: .72rem; font-weight: 800; line-height: 1; cursor: help; }
.reference-logo-info:focus-visible { outline: 3px solid rgba(31,126,211,.3); outline-offset: 2px; }
.reference-logo-help { flex-basis: 100%; margin-top: 2px; color: #5f7898; font-size: .78rem; font-weight: 400; line-height: 1.4; }
