/* Studio and shared footer presentation. The print stylesheet handles exports. */
@media screen {
  html[data-theme] body[data-game].vp-site-studio {
    --ll-studio-surface: #fcfdff;
    --ll-studio-tint: #eef5fa;
    --ll-studio-border: #ccdde8;
    --ll-studio-text: #17364e;
    --ll-studio-action: #174f78;
    --ll-studio-highlight: #006d71;
    --ll-studio-notice: #142e44;
    --ll-studio-notice-edge: #37576d;
    --ll-studio-notice-accent: #6ad3ca;
    --ll-studio-shadow: 0 8px 26px #193c5510;
    min-width: 0;
  }

  html[data-theme="dark"] body[data-game].vp-site-studio {
    --ll-studio-surface: #132635;
    --ll-studio-tint: #192f40;
    --ll-studio-border: #395466;
    --ll-studio-text: #e5f0f7;
    --ll-studio-action: #185d85;
    --ll-studio-highlight: #8ad9d4;
    --ll-studio-notice: #204157;
    --ll-studio-notice-edge: #54778d;
    --ll-studio-notice-accent: #8fe2da;
    --ll-studio-shadow: 0 8px 26px #0003;
  }

  /* Refine the existing country flag, draw timer and workspace surfaces. */
  html[data-theme] body[data-game].vp-site-studio #mainContent > .game-hero {
    border: 1px solid var(--ll-studio-border) !important;
    border-radius: 24px !important;
    background: linear-gradient(120deg, var(--ll-studio-surface), var(--ll-studio-tint)) !important;
    box-shadow: var(--ll-studio-shadow) !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .game-hero h1 {
    color: var(--ll-studio-text) !important;
    -webkit-text-fill-color: var(--ll-studio-text) !important;
    letter-spacing: -.047em !important;
    text-wrap: balance;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .orbit-quick-button {
    background: var(--ll-studio-action) !important;
    color: #fff !important;
    border: 1px solid #ffffff26 !important;
    border-radius: 9px !important;
    box-shadow: 0 5px 16px #0b3a5c24 !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .orbit-next-draw--hero {
    border: 1px solid var(--ll-studio-border) !important;
    border-left: 3px solid var(--ll-studio-highlight) !important;
    border-radius: 14px !important;
    background: var(--ll-studio-surface) !important;
    box-shadow: 0 7px 22px #142d4320 !important;
  }

  html[data-theme] body[data-game].vp-site-studio #numberStudio :is(.left-sidebar > .panel, .summary-item, .workspace-head, .line-card) {
    border-color: var(--ll-studio-border) !important;
    border-radius: 15px !important;
    box-shadow: var(--ll-studio-shadow) !important;
  }

  html[data-theme] body[data-game].vp-site-studio #numberStudio :is(.panel-header, .workspace-head) {
    background: var(--ll-studio-tint) !important;
    border-color: var(--ll-studio-border) !important;
  }

  html[data-theme] body[data-game].vp-site-studio #numberStudio #ll-selection-odds-note {
    padding: 14px 15px;
    border: 1px solid var(--ll-studio-notice-edge);
    border-block-start: 3px solid var(--ll-studio-notice-accent);
    border-radius: 12px;
    background: var(--ll-studio-notice);
    color: #deedf6;
    box-shadow: 0 5px 15px #0a223429;
    font-size: .93rem;
    line-height: 1.65;
  }

  html[data-theme] body[data-game].vp-site-studio #ll-selection-odds-note strong {
    margin-bottom: 7px;
    color: #fff;
    font-size: 1.04rem;
    line-height: 1.35;
  }

  html[data-theme] body[data-game].vp-site-studio #ll-selection-odds-note a {
    display: inline-block;
    max-inline-size: 100%;
    color: #a8e9e7;
    text-underline-offset: .2em;
  }

  html[data-theme] body[data-game].vp-site-studio #ll-selection-odds-note a:focus-visible {
    outline: 2px solid var(--ll-studio-notice-accent);
    outline-offset: 3px;
  }

  #studio-field-notes .ll-field-notes-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-block-start: 22px;
  }

  #studio-field-notes .ll-field-notes-columns > :is(.lq-math, .ll-field-notes-sources) {
    min-width: 0;
    margin: 0;
    padding: clamp(16px, 2vw, 22px);
    border: 1px solid var(--lq-line);
    border-radius: 16px;
  }

  #studio-field-notes .ll-field-notes-columns > .lq-math {
    border-inline-start: 3px solid var(--lq-accent);
  }

  #studio-field-notes .ll-field-notes-columns p {
    max-width: none;
  }

  #studio-field-notes .ll-field-notes-columns .lq-math p:last-child {
    margin-bottom: 0;
  }

  #studio-field-notes .ll-field-notes-sources {
    background: var(--lq-paper);
  }

  #studio-field-notes .ll-field-notes-sources h3 {
    margin-bottom: 6px;
  }

  #studio-field-notes .ll-field-notes-sources .lq-links {
    display: grid;
    gap: 0;
    margin: 0;
  }

  #studio-field-notes .ll-field-notes-sources .lq-links a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 0;
  }

  #studio-field-notes .ll-field-notes-sources .lq-links a + a {
    border-top: 1px solid var(--lq-line);
  }

  #studio-field-notes .ll-field-notes-sources .lq-source {
    margin: 8px 0 0 !important;
    padding-top: 10px;
    line-height: 1.6;
  }

  #studio-field-notes > .ll-field-notes-columns + .ll-betfred-format-note {
    max-width: none;
    margin: 14px 0 0;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent :is(#historyTools, #checkTools) {
    border-color: var(--ll-studio-border) !important;
    box-shadow: var(--ll-studio-shadow) !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent {
    --ll-studio-nav-offset: 0px;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent :is(#numberStudio, #predictionWorkspace, #historyTools, #checkTools, #generate) {
    scroll-margin-block-start: max(0px, calc(var(--ll-studio-header-height, 83px) + var(--ll-studio-nav-offset) + 14px - var(--ll-studio-scroll-padding, 0px))) !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent > .ll-studio-nav {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px !important;
    position: relative;
    z-index: 20 !important;
    box-sizing: border-box;
    padding: 8px !important;
    border: 1px solid var(--ll-studio-border) !important;
    border-radius: 14px !important;
    background: var(--ll-studio-surface) !important;
    box-shadow: var(--ll-studio-shadow);
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav > a.button,
  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav .atlas-game-switch-details > summary {
    box-sizing: border-box;
    min-height: 44px !important;
    padding: 7px 13px !important;
    border-radius: 8px !important;
    font-size: .85rem !important;
    font-weight: 750 !important;
    line-height: 1.3;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: center;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav > a.button {
    min-width: 0 !important;
    color: var(--ll-studio-text) !important;
    -webkit-text-fill-color: var(--ll-studio-text) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav > a.button:is(:hover, [aria-current="location"]) {
    background: var(--ll-studio-tint) !important;
    border-color: var(--ll-studio-border) !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav > a.button.ll-studio-controls-link {
    background: var(--ll-studio-action) !important;
    border-color: var(--ll-studio-action) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav > a.button.ll-studio-controls-link:is(:hover, [aria-current="location"]) {
    background: color-mix(in srgb, var(--ll-studio-action) 86%, #000 14%) !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav > .atlas-game-switch {
    margin-inline-start: auto;
    min-width: 0 !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav .atlas-game-switch-details > summary {
    color: var(--ll-studio-text) !important;
    -webkit-text-fill-color: var(--ll-studio-text) !important;
    background: var(--ll-studio-tint) !important;
    border: 1px solid var(--ll-studio-border) !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav .atlas-game-switch-list {
    left: auto !important;
    right: 0 !important;
    box-sizing: border-box;
    width: min(350px, calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px) !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav :is(a, summary):focus-visible {
    outline: 2px solid var(--ll-studio-highlight) !important;
    outline-offset: 2px;
  }

  /* One width aligns the safer-play, navigation and legal sections. */
  footer.orbit-footer-v3 {
    --ll-footer-width: min(1200px, calc(100% - 48px));
    --ll-footer-surface: #111d29;
    --ll-footer-heading: #e9f4fb;
    --ll-footer-text: #b5c8d4;
    --ll-footer-rule: #314b5c;
    --ll-footer-link: #abd8f3;
    --ll-footer-accent: #8fd8d0;
  }

  html[data-theme="dark"]:not([data-orbit-footer="dark"]) footer.orbit-footer-v3,
  html[data-orbit-footer="light"] footer.orbit-footer-v3 {
    --ll-footer-surface: #f8fcfe;
    --ll-footer-heading: #18364b;
    --ll-footer-text: #3e586c;
    --ll-footer-rule: #d4e3ed;
    --ll-footer-link: #135b82;
    --ll-footer-accent: #116962;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) {
    margin-top: clamp(27px, 3.4vw, 44px) !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) :is(.orbit-rp-banner-inner, .ll-support-inner.container, .orbit-foot-body-inner) {
    box-sizing: border-box;
    width: var(--ll-footer-width) !important;
    max-width: none !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-rp-banner-inner {
    padding-block: 10px !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .ll-support-inner.container {
    display: grid !important;
    grid-template-columns: minmax(200px, .95fr) minmax(0, 2.25fr) !important;
    align-items: center;
    gap: 15px 23px;
    padding-block: 15px !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .ll-support-heading {
    display: grid;
    gap: 5px;
    align-items: start;
    margin: 0;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .ll-support-heading h2 {
    margin: 3px 0 0;
    line-height: 1.27;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .ll-support-heading p {
    font-size: 12px;
    line-height: 1.5;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .ll-support-grid {
    gap: 8px;
    min-width: 0;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .ll-support-strip .ll-support-card {
    min-height: 83px !important;
    gap: 6px;
    padding: 8px 9px !important;
    border-radius: 9px;
    box-shadow: none;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .ll-support-strip .ll-support-card img {
    height: 34px;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-body-inner {
    padding-block: 25px 14px !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-body {
    padding-block: 0 !important;
    background: var(--ll-footer-surface) !important;
    color: var(--ll-footer-text) !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-body
  :is(.orbit-foot-intro h2, .orbit-foot-col h3, .orbit-foot-connect strong, .orbit-foot-legal strong) {
    color: var(--ll-footer-heading) !important;
    -webkit-text-fill-color: var(--ll-footer-heading) !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-body
  :is(.orbit-foot-intro p, .orbit-foot-connect p, .orbit-foot-legal, .orbit-foot-bottom-links) {
    color: var(--ll-footer-text) !important;
    -webkit-text-fill-color: var(--ll-footer-text) !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-body
  :is(.orbit-foot-intro h2 span, .orbit-foot-col a, .orbit-foot-bottom-links a) {
    color: var(--ll-footer-link) !important;
    -webkit-text-fill-color: var(--ll-footer-link) !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-body
  :is(.orbit-foot-tagline, .orbit-foot-connect-kicker) {
    color: var(--ll-footer-accent) !important;
    -webkit-text-fill-color: var(--ll-footer-accent) !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-topline {
    gap: 15px !important;
    padding: 0 0 15px !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-intro h2 {
    margin-block: 5px !important;
    font-size: clamp(18px, 2vw, 25px) !important;
    line-height: 1.24 !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-intro p {
    max-width: 70ch !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.52fr) minmax(0, 1fr) !important;
    gap: 14px 28px !important;
    padding: 17px 0 19px !important;
    align-items: start !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-col {
    gap: 1px 12px !important;
    min-width: 0;
    align-content: start;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-col h3 {
    margin: 0 0 6px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-col > a {
    width: fit-content;
    max-width: 100%;
    min-height: 29px !important;
    margin: 0 !important;
    padding-block: 3px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    transition: none;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-col > a:hover {
    text-decoration: underline !important;
    text-underline-offset: .22em;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-connect {
    border: 0 !important;
    border-top: 1px solid var(--ll-footer-rule) !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    gap: 0 !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-connect > div {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 4px;
    min-width: 0;
    min-height: 0 !important;
    padding: 13px 18px !important;
    background: none !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-connect > div:first-child {
    padding-inline-start: 0 !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-connect :is(strong, p) {
    margin-block: 4px !important;
    line-height: 1.5 !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-connect > div > a {
    display: inline-flex !important;
    align-items: center;
    width: fit-content !important;
    max-width: 100%;
    min-height: 32px !important;
    margin-block: 3px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ll-footer-link) !important;
    -webkit-text-fill-color: var(--ll-footer-link) !important;
    font-size: 11px !important;
    text-decoration: underline !important;
    text-underline-offset: .24em;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-bottom {
    gap: 10px 24px !important;
    margin-top: 4px !important;
    padding: 13px 0 0 !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) :is(.orbit-foot-col, .orbit-foot-connect, .orbit-foot-bottom) a:focus-visible {
    outline: 2px solid var(--ll-footer-link) !important;
    outline-offset: 2px;
  }
}

@media screen and (min-width: 1081px) {
  html[data-theme] body[data-game].vp-site-studio #mainContent {
    --ll-studio-nav-offset: var(--ll-studio-nav-height, 60px);
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent > .ll-studio-nav {
    position: sticky !important;
    top: var(--ll-studio-header-height, 83px) !important;
  }
}

@media screen and (min-width: 970px) {
  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-col:has(> a:nth-of-type(9)):not([hidden], .ll-nf-hidden) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-col h3 {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 840px) {
  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .ll-support-inner.container {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }
}

@media screen and (max-width: 740px) {
  html[data-theme] body[data-game].vp-site-studio #mainContent > .ll-studio-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav > a.button {
    width: 100% !important;
    padding-inline: 5px !important;
    white-space: normal !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav :is(.atlas-game-switch, .atlas-game-switch-details) {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent .ll-studio-nav .atlas-game-switch-list {
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 4px) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  footer.orbit-footer-v3 {
    --ll-footer-width: calc(100% - 28px);
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 13px !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-col:last-child {
    grid-column: 1 / -1;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-col > a {
    min-height: 34px !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-connect {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-connect > div {
    padding-inline: 0 !important;
    border-inline: 0 !important;
  }

  html[data-theme] body :is(footer.footer.orbit-footer-v3, footer.orbit-footer-v3) .orbit-foot-connect > div + div {
    border-top: 1px solid var(--ll-footer-rule) !important;
  }
}

@media screen and (max-width: 700px) {
  #studio-field-notes .ll-field-notes-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-block-start: 16px;
  }

  #studio-field-notes .ll-field-notes-sources .lq-links a {
    min-height: 44px;
  }
}

@media screen and (max-width: 520px) {
  html[data-theme] body[data-game].vp-site-studio #mainContent > .game-hero {
    border-radius: 17px !important;
  }

  html[data-theme] body[data-game].vp-site-studio #mainContent > .ll-studio-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
