@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --weight-list-ink: #122035;
  --weight-list-navy: #0c1724;
  --weight-list-muted: #4e6077;
  --weight-list-canvas: #f4f7fa;
  --weight-list-surface: #fff;
  --weight-list-line: #dce5ed;
  --weight-list-blue: #075cca;
  --weight-list-cyan: #49e2f1;
  --weight-list-font: Inter, system-ui, sans-serif;
  --public-header-width: 1180px;
  --public-header-gutter: 32px;
  font-family: var(--weight-list-font);
  color: var(--weight-list-ink);
  background: var(--weight-list-canvas);
}

:root:has(.otwl-header) {
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--otwl-header-height, 76px) + 12px);
}

body:not(.home-page):not(.tv-page) {
  margin: 0;
  background: var(--site-background, var(--weight-list-canvas));
  color: var(--site-dark, var(--weight-list-ink));
  font-family: var(--weight-list-font);
}

body:not(.home-page):not(.tv-page) header:not(.otwl-header) {
  min-height: 76px;
  padding: 16px max(20px, calc((100% - 1100px) / 2));
  background: var(--site-dark, var(--weight-list-navy));
  color: white;
}

body:not(.home-page):not(.tv-page) header:not(.otwl-header) h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.2;
}

body:not(.home-page) header h1::before,
.tv-page h1::before {
  content: "";
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  margin-inline-end: .4em;
  background: url("/weight-list/favicon.png") center / contain no-repeat;
  vertical-align: -.24em;
}

body:not(.home-page) .site-brand:has(.site-logo) h1::before { content: none; }

.otwl-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: block;
  min-height: 0;
  padding: 0;
  border-bottom: 1px solid var(--weight-list-line);
  background: var(--weight-list-surface);
  color: var(--weight-list-ink);
}

.otwl-header-inner {
  display: flex;
  align-items: center;
  gap: 12px clamp(14px, 2vw, 28px);
  width: min(var(--public-header-width), calc(100% - 2 * var(--public-header-gutter)));
  min-height: 76px;
  margin-inline: auto;
}

.otwl-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--weight-list-ink) !important;
  font-size: 1.075rem;
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.15;
  text-decoration: none;
}

.otwl-brand img { display: block; flex: none; width: 54px; height: 54px; }

.otwl-top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px clamp(14px, 2vw, 28px);
  margin-inline-start: auto;
}

.otwl-top-nav a {
  color: var(--weight-list-muted) !important;
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}

.otwl-top-nav a:is(:hover, [aria-current="page"]) {
  color: var(--weight-list-blue) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.otwl-skip {
  position: fixed;
  z-index: 11;
  inset: 8px auto auto 8px;
  padding: 9px 12px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--weight-list-surface);
  color: var(--weight-list-blue);
}

.otwl-skip:focus { transform: none; }

.otwl-workspace-content { min-width: 0; }

.otwl-page-heading {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
}

body .otwl-menu-icon.secondary {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  color: var(--otwl-sidebar-background-ink, var(--weight-list-ink)) !important;
  cursor: pointer;
}

body .otwl-menu-icon.secondary:hover {
  background: color-mix(in srgb, currentColor 12%, transparent) !important;
}

body button.otwl-menu-icon.secondary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.otwl-workspace-toggle span {
  box-sizing: border-box;
  display: grid;
  align-items: center;
  width: 17px;
  height: 12px;
  border-block: 1.5px solid currentColor;
}

.otwl-workspace-toggle span::after { content: ""; border-top: 1.5px solid currentColor; }

.otwl-workspace-collapse span { display: flex; gap: 0; }

.otwl-workspace-collapse span::before,
.otwl-workspace-collapse span::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(45deg);
}

.otwl-workspace-menu {
  --otwl-sidebar-divider: color-mix(in srgb, var(--otwl-sidebar-background-ink, var(--weight-list-ink)) 24%, transparent);
  box-sizing: border-box;
  min-width: 0;
  padding: 10px 18px 20px;
  border-bottom: 1px solid var(--otwl-sidebar-divider);
  background: var(--otwl-sidebar-background, var(--weight-list-surface));
  color: var(--otwl-sidebar-background-ink, var(--weight-list-ink));
}

.otwl-workspace-menu[hidden], body .otwl-workspace-toggle[hidden] { display: none; }

.otwl-sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.otwl-sidebar-header img {
  width: auto;
  height: auto;
  max-width: calc(100% - 48px);
  max-height: 36px;
  object-fit: contain;
}

.otwl-workspace-collapse { margin-inline-start: auto; }

body .otwl-workspace-menu :is(a, select, button):focus-visible {
  outline: 2px solid var(--otwl-sidebar-background-ink, var(--weight-list-blue));
  outline-offset: 2px;
}

.otwl-active-competition {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--otwl-sidebar-divider);
}

.otwl-active-competition label { margin: 0; font-size: .875rem; font-weight: 750; }

.otwl-workspace-menu .otwl-active-competition :is(select, button.secondary) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 39px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--otwl-sidebar-divider);
  border-radius: 8px;
  font: inherit;
  font-size: .85rem;
}

.otwl-active-competition select {
  background: var(--otwl-sidebar-surface, var(--weight-list-surface));
  color: var(--otwl-sidebar-surface-ink, var(--weight-list-ink));
}
body .otwl-active-competition button.secondary {
  background: var(--otwl-sidebar-primary, #e8f1fb) !important;
  color: var(--otwl-sidebar-primary-ink, #084991) !important;
  font-weight: 700;
}
.otwl-active-competition button:disabled { opacity: .5; cursor: default; }
.otwl-active-competition [role="status"] { margin: 0; font-size: .8rem; }
.otwl-active-competition [role="status"]:empty { display: none; }

.otwl-workspace-menu nav { display: block; }
.otwl-workspace-menu nav section { margin-top: 18px; }
.otwl-workspace-menu nav h2 {
  margin: 0 0 5px;
  padding-inline: 8px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: 0;
}
.otwl-workspace-menu nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.otwl-workspace-menu nav a {
  display: block;
  padding: 8px;
  border-radius: 7px;
  color: var(--otwl-sidebar-background-ink, var(--weight-list-muted)) !important;
  font-size: .875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.otwl-workspace-menu nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.otwl-workspace-menu nav a[aria-current="page"] {
  background: var(--otwl-sidebar-primary, #e8f1fb);
  color: var(--otwl-sidebar-primary-ink, #084991) !important;
  font-weight: 750;
}

@media (min-width: 960px) {
  .otwl-workspace.otwl-sidebar-open {
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
  }

  .otwl-workspace-menu {
    position: sticky;
    top: var(--otwl-header-height, 76px);
    align-self: start;
    min-height: calc(100dvh - var(--otwl-header-height, 76px));
    max-height: calc(100dvh - var(--otwl-header-height, 76px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-inline-end: 1px solid var(--otwl-sidebar-divider);
    border-bottom: 0;
  }
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  z-index: 5;
}

.account-menu > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--weight-list-ink);
  color: white;
  list-style: none;
  font-size: .86rem;
  font-weight: 750;
  cursor: pointer;
}

.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.account-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.account-menu > summary:focus-visible { outline: 2px solid var(--weight-list-blue); outline-offset: 3px; }

.account-menu-panel {
  position: absolute;
  inset: calc(100% + 8px) 0 auto auto;
  width: min(244px, calc(100vw - 40px));
  padding: 6px;
  border: 1px solid var(--weight-list-line);
  border-radius: 12px;
  background: var(--weight-list-surface);
  box-shadow: 0 12px 32px #12203530;
}

.account-menu-panel > a,
.account-menu-panel > button.secondary {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--weight-list-ink) !important;
  font: inherit;
  font-size: .86rem;
  font-weight: 650;
  text-align: start;
  text-decoration: none;
}

body .account-menu-panel > button.secondary { background: transparent; }
.account-menu-panel > a:is(:hover, [aria-current="page"]),
body .account-menu-panel > button.secondary:hover { background: var(--weight-list-canvas); }

body:not(.home-page):not(.tv-page) :is(main, .container[role="main"]) {
  box-sizing: border-box;
  width: min(1100px, 100%);
  margin: 26px auto 45px;
  padding-inline: 16px;
}

body:not(.home-page):not(.tv-page) :is(.card, .panel, .stat) {
  border-radius: 14px;
  border-color: var(--weight-list-line);
  box-shadow: 0 12px 25px -20px #12203573;
}

body:not(.home-page):not(.tv-page) :is(h2, h3) { letter-spacing: -.035em; }

body:not(.home-page):not(.tv-page) a { color: var(--site-primary, var(--weight-list-blue)); }

body:not(.home-page):not(.tv-page) button:not(.secondary):not(.danger) {
  border-radius: 9px;
  background: var(--site-primary, var(--weight-list-blue));
  border-color: var(--site-primary, var(--weight-list-blue));
  color: #fff;
  font-weight: 700;
}

body:not(.home-page):not(.tv-page) button.secondary {
  background: #eaf1f8;
  border-color: #cbd9e6;
  color: var(--weight-list-ink);
}

body:not(.home-page) .account-actions > a {
  border-radius: 9px;
  background: #eaf1f8;
  border-color: #cbd9e6;
  color: var(--weight-list-ink);
}

body:not(.home-page) .account-actions > a:first-child {
  background: var(--site-primary, var(--weight-list-blue));
  border-color: var(--site-primary, var(--weight-list-blue));
}

body:not(.home-page):not(.tv-page) :is(input, select, textarea) { border-color: #aabdcf; }
body:not(.home-page):not(.tv-page) input[type="checkbox"] { accent-color: var(--site-primary, var(--weight-list-blue)); }

body:not(.home-page) :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--site-primary, var(--weight-list-blue));
  outline-offset: 3px;
}

.tv-page h1 { letter-spacing: -.035em; }
.tv-page h1::before { width: .95em; height: .95em; margin-inline-end: .3em; vertical-align: -.12em; }
.tv-page .tv-nav { border-radius: 9px; }

@media (max-width: 850px) {
  :root { --public-header-gutter: 20px; }

  .otwl-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 5px 10px;
    padding-block: 6px 9px;
  }

  .otwl-brand { grid-column: 2; grid-row: 1; }
  .otwl-brand:first-child, .otwl-workspace-toggle[hidden] + .otwl-brand { grid-column: 1 / 3; }
  .otwl-workspace-toggle { grid-column: 1; grid-row: 1; }
  .otwl-top-nav { grid-column: 1 / -1; grid-row: 2; margin-inline-start: 0; justify-content: flex-start; }
  .otwl-header-inner > .account-menu { grid-column: 3; grid-row: 1; justify-self: end; }
}

@media (max-width: 600px) {
  body:not(.home-page):not(.tv-page) header:not(.otwl-header) { min-height: 64px; }
  body:not(.home-page):not(.tv-page) :is(main, .container[role="main"]) { margin-top: 18px; }
  .otwl-header-inner { width: calc(100% - 24px); }
  .otwl-brand { gap: 4px; font-size: .9rem; }
  .otwl-brand img { width: 36px; height: 36px; }
  .otwl-top-nav { gap: 7px 12px; }
  .otwl-top-nav a { font-size: .81rem; }
}
