/* Shared type and reading surfaces, including the compact competition snapshot. */
html[data-theme] body[data-palette] {
  --font-ui: var(--site-type);
  --font-reading: var(--font-ui);
  --font-sans: var(--font-ui);
  font-family: var(--font-ui);
}
#weekly-edition .snapshot-heading { gap:8px; margin-bottom:8px; }
#weekly-edition .snapshot-grid {
  gap:1px;
  border:1px solid var(--studio-rule);
  border-radius:8px;
  overflow:hidden;
  background:var(--studio-rule);
}
#weekly-edition .snapshot-group {
  border:0;
  border-radius:0;
  padding:clamp(14px,1.4vw,20px);
  text-align:start;
}
#weekly-edition .snapshot-group:focus-visible {
  outline:2px solid var(--studio-accent);
  outline-offset:-3px;
}
#weekly-edition .snapshot-team strong {font-weight:550;overflow-wrap:break-word;}
#weekly-edition .snapshot-highlight {align-items:stretch;gap:5px;}
#weekly-edition .snapshot-highlight-number {font-size:clamp(2.2rem,3vw,2.85rem);}
#weekly-edition .snapshot-meter {
  display:block;
  width:min(100%,15rem);
  height:3px;
  margin:0 0 5px;
  background:linear-gradient(to right,var(--studio-accent) var(--measure),var(--studio-rule) var(--measure));
}
#weekly-edition .snapshot-highlight:not(.snapshot-forecast) .snapshot-meter {
  background:linear-gradient(to right,var(--muted) var(--measure),var(--studio-rule) var(--measure));
}
#weekly-edition .snapshot-supremacy .snapshot-compare {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  grid-template-areas:"label score compare" "label rank compare";
  gap:2px clamp(6px,1.1vw,15px);
}
#weekly-edition .snapshot-compare > span:first-child {grid-area:label;}
#weekly-edition .snapshot-compare b {grid-area:score;justify-self:start;margin:0;}
#weekly-edition .snapshot-compare .snapshot-rank {grid-area:rank;font-size:.72rem;}
#weekly-edition .snapshot-compare .snapshot-link-label {grid-area:compare;}
#weekly-edition .snapshot-supremacy .snapshot-team-link {align-self:stretch;display:flex;align-items:center;}
#weekly-edition :is(.snapshot-link-label,.snapshot-team-link)::after {content:"›";margin-inline-start:.2em;}
#weekly-edition .snapshot-result {flex-wrap:wrap;}
@media (min-width:761px) and (max-width:980px) {
  #weekly-edition .snapshot-heading {grid-template-columns:.85fr 1.15fr;}
  #weekly-edition .snapshot-compare {column-gap:6px;}
  #weekly-edition .snapshot-supremacy :is(button,a) {padding-inline:8px;}
}
@media (max-width:760px) {
  #weekly-edition .snapshot-heading {gap:4px;margin-bottom:5px;}
  #weekly-edition .snapshot-supremacy .snapshot-compare {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"label score" "label compare";
    gap:1px 6px;
  }
  #weekly-edition .snapshot-compare .snapshot-rank {display:none;}
  #weekly-edition .snapshot-compare b {justify-self:end;}
  #weekly-edition .snapshot-compare .snapshot-link-label {justify-self:end;font-size:.73rem;}
  #weekly-edition .snapshot-team-link {font-size:.78rem;}
  #weekly-edition .snapshot-grid {gap:0;background:var(--studio-panel);}
  #weekly-edition .snapshot-group {padding:6px 10px;}
  #weekly-edition .snapshot-group h2 {margin:0 0 3px;line-height:1.16;}
  #weekly-edition .snapshot-highlight {
    display:grid;
    grid-row:span 5;
    grid-template-rows:subgrid;
    grid-template-areas:"heading" "figure" "meter" "team" "context";
    align-content:start;
    align-items:start;
    gap:3px;
    padding:7px 10px;
  }
  #weekly-edition .snapshot-highlight h2 {grid-area:heading;margin:0;}
  #weekly-edition .snapshot-highlight-number {grid-area:figure;font-size:1.8rem;}
  #weekly-edition .snapshot-meter {grid-area:meter;width:100%;height:2px;margin:1px 0 3px;}
  #weekly-edition .snapshot-context {grid-area:context;}
  #weekly-edition .snapshot-row {grid-template-columns:minmax(82px,31%) minmax(0,1fr) 3.55rem;column-gap:5px;}
  #weekly-edition .snapshot-number {white-space:nowrap;}
}
@media(max-width:760px) and (max-height:740px) {
  #weekly-edition .snapshot-group {padding-block:3px;}
  #weekly-edition .snapshot-highlight {gap:2px;padding-block:4px;}
  #weekly-edition .snapshot-highlight-number {font-size:1.58rem;}
}
@media(max-width:360px) and (max-height:670px) {
  #weekly-edition .snapshot-row {grid-template-columns:minmax(0,1fr) max-content;}
}
html[data-theme] body[data-palette] #main .original-page {
  width:min(100%,54rem);margin:clamp(14px,3vw,38px) auto;padding:0 min(2vw,12px) 25px;
  font-family:var(--font-reading);
}
#main .original-page h1, body.feedback-page #feedback-content h1 {
  margin:0 0 .4em;font:650 clamp(1.75rem,3vw,2.65rem)/1.08 var(--font-reading);letter-spacing:-.035em;
}
#main .original-page :is(p,dd) {max-width:70ch;font-size:.96rem;line-height:1.58;}
#main .original-page :is(h2,h3) {line-height:1.25;font-family:var(--font-reading);letter-spacing:-.018em;}
#main .original-page .faq-list details {padding:0;border-bottom:1px solid var(--line);}
#main .original-page .faq-list summary {padding:10px 0;font:600 .96rem/1.4 var(--font-reading);}
#main .original-page .faq-list details[open] {padding-bottom:10px;}
body.feedback-page #feedback-content {width:min(100% - 32px,44rem);margin:clamp(20px,4vw,52px) auto;}
body.feedback-page .feedback-form {border-radius:8px;}
body.feedback-page .feedback-field label {font:600 .92rem/1.3 var(--font-ui);}
body.feedback-page .feedback-submit:disabled {opacity:.6;cursor:default;}
@media(max-width:540px) {
  #main .original-copy .model-views {grid-template-columns:minmax(0,1fr);}
  #main .original-page .model-views article {padding-inline:12px;}
}

/* Colour links each statistical group to its measure across both layouts. */
#weekly-edition .snapshot-grid {gap:9px;border:0;border-radius:0;background:transparent;overflow:visible}
#weekly-edition .snapshot-group {
  --section-colour:light-dark(#5073ae,#95bcf2);
  min-width:0;border:1px solid var(--studio-rule);border-inline-start:3px solid var(--section-colour);border-radius:9px;
  background:linear-gradient(120deg,color-mix(in srgb,var(--section-colour) 8%,var(--studio-panel)),var(--studio-panel) 70%);
}
#weekly-edition .snapshot-season {--section-colour:light-dark(#227b74,#79d6c4)}
#weekly-edition .snapshot-forecast {--section-colour:var(--fixture-yellow)}
#weekly-edition .snapshot-form {--section-colour:light-dark(#427c60,#9cdab7)}
#weekly-edition .snapshot-points {--section-colour:light-dark(#3d7796,#8bc7db)}
#weekly-edition .snapshot-outlook {--section-colour:light-dark(#866734,#edc77c)}
#weekly-edition .snapshot-highlight .snapshot-highlight-number {color:var(--section-colour)}
#weekly-edition .snapshot-highlight .snapshot-meter {background:linear-gradient(to right,var(--section-colour) var(--measure),var(--studio-rule) var(--measure));border-radius:4px;height:4px}
#weekly-edition .snapshot-team strong,.studio-leagues a span,.studio-competition span,.snapshot-switch span {overflow-wrap:normal;word-break:normal;hyphens:manual}
#weekly-edition .snapshot-crest {overflow:hidden;align-self:center}
#weekly-edition .snapshot-crest img {display:block;min-height:0;max-height:100%;max-width:100%;object-fit:contain}
@media(min-width:761px) {
  html[data-current-page=explore] {--mast-width:1540px}
  #main #weekly-edition {max-width:none}
  #weekly-edition .snapshot-grid {min-height:min(58svh,max(0px,calc(100dvh - var(--pinned-masthead,56px) - var(--pinned-sections,44px) - 120px)));grid-auto-rows:minmax(min-content,1fr)}
  #weekly-edition .snapshot-group {padding:clamp(14px,1.6vw,26px);align-content:center}
  #weekly-edition .snapshot-highlight {justify-content:center}
  #weekly-edition .snapshot-highlight-number {font-size:clamp(2.6rem,4vw,4.2rem)}
  #weekly-edition .snapshot-group h2 {margin-bottom:8px}
}
@media(max-width:760px) {
  #weekly-edition .snapshot-grid {gap:5px}
  #weekly-edition .snapshot-group {border-radius:6px;padding:5px 8px}
  #weekly-edition .snapshot-highlight {display:flex;flex-direction:column;grid-row:auto;gap:2px;align-items:stretch}
  #weekly-edition .snapshot-highlight .snapshot-meter {margin:2px 0;height:3px}
}

html[data-theme] {
  --fixture-yellow:light-dark(#90760a,#dcc256);
  --fixture-yellow-ink:light-dark(#705b05,#dcc256);
  --selection-ink:light-dark(var(--brand-blue-700),var(--brand-blue-300));
  --nav-marker:var(--selection-ink);
  --selection-fill:color-mix(in srgb,var(--selection-ink) 18%,var(--panel));
  --selection-column:color-mix(in srgb,var(--selection-ink) 11%,var(--panel));
}
html[data-theme][data-current-page=global] {--selection-ink:light-dark(#006b68,#62cfc5)}
html[data-theme]:has(#ratings:not([hidden])[data-studio-view=performance]) {--selection-ink:light-dark(#175bb2,#70afff)}
html[data-theme]:has(#ratings:not([hidden]):is([data-studio-view=projections],[data-studio-view=knockout])) {--selection-ink:light-dark(#287541,#82cc90)}
html[data-theme]:has(#ratings:not([hidden])[data-studio-view=fixtures],#todays-fixtures:not([hidden])) {
  --selection-ink:var(--fixture-yellow-ink);
  --nav-marker:var(--fixture-yellow);
  --selection-fill:color-mix(in srgb,var(--fixture-yellow) 18%,var(--panel));
}
html[data-theme][data-current-page=predict] {--selection-ink:light-dark(#815337,#d9b299)}

#weekly-edition .snapshot-track {display:block;width:100%;margin-top:3px;height:3px;border-radius:3px;background:linear-gradient(to right,currentColor var(--fraction),var(--studio-rule) var(--fraction));color:var(--section-colour)}
#weekly-edition .snapshot-number:is(.gain,.loss,.title-odds) .snapshot-track {color:inherit}
#weekly-edition .snapshot-number {min-width:3.25em}
html[data-theme] .identity-short {display:none}
html[data-theme] #main .studio-leagues .league-identity {min-width:0;white-space:normal;word-break:normal;overflow-wrap:normal}
.studio-leagues .league-identity small {display:block;font:400 .73rem/1.25 var(--font-ui);color:var(--page-muted)}
@media(max-width:580px) {
  html[data-theme] .responsive-identity>.identity-full {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  html[data-theme] .responsive-identity>.identity-short {display:inline}
  #weekly-edition .snapshot-number {min-width:0}
}

@media(max-width:460px) {
  #main .identity-long-word {font-size:.86em;white-space:nowrap;letter-spacing:-.018em}
}
html[data-preview-shell][data-theme] .site-masthead {--mast-accent:var(--selection-ink)}
html[data-preview-shell][data-theme] #welcome .family-switch button[aria-pressed=true] {color:var(--selection-ink);border-bottom-color:var(--selection-ink)}
@media(min-width:761px) {
  html[data-preview-shell][data-current-page=explore] body[data-palette] #main {--mast-width:1540px}
  #weekly-edition .snapshot-identity {min-height:82px}
  #weekly-edition .snapshot-number {min-width:clamp(5rem,7vw,7rem)}
  #weekly-edition :is(.snapshot-form,.snapshot-points) .loss .snapshot-track {background:linear-gradient(to left,currentColor var(--fraction),var(--studio-rule) var(--fraction))}
}
@media(min-width:1024px) {
  #weekly-edition .snapshot-forecast {
    display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto;
    grid-template-areas:"heading heading" "chance team" "chance fixture";gap:8px 14px;justify-items:start;
  }
  #weekly-edition .snapshot-forecast h2 {grid-area:heading}
  #weekly-edition .snapshot-forecast .snapshot-highlight-number {
    grid-area:chance;position:relative;width:clamp(6.8rem,9vw,9rem);aspect-ratio:1;display:grid;place-items:center;
    border-radius:50%;font-size:clamp(1.6rem,2.2vw,2.2rem);
    background:conic-gradient(var(--section-colour) var(--measure),var(--studio-rule) 0);
  }
  #weekly-edition .snapshot-forecast .snapshot-highlight-number::before {content:"";position:absolute;inset:6px;border-radius:inherit;background:var(--studio-panel)}
  #weekly-edition .snapshot-forecast .snapshot-highlight-number span {position:relative}
  #weekly-edition .snapshot-forecast .snapshot-meter {display:none}
  #weekly-edition .snapshot-forecast .snapshot-team {grid-area:team;align-self:end}
  #weekly-edition .snapshot-forecast .snapshot-context {grid-area:fixture;align-self:start}
}

html[data-theme][data-current-page]:is([data-current-page=global],[data-current-page=ratings],[data-current-page=todays-fixtures],[data-current-page=predict]) body[data-palette] {--green:var(--selection-ink);--selected:var(--selection-fill)}

html[data-preview-shell][data-theme][data-current-page=explore] body[data-palette] #main {padding-bottom:0!important}

/* Every available insight stays on the board. Its rows grow naturally if a
   visitor's text size or viewport needs more room. */
@media (min-width:761px) {
  #weekly-edition .snapshot-grid {grid-template-columns:repeat(6,minmax(0,1fr));}
  #weekly-edition .snapshot-group {grid-column:span 2;}
  #weekly-edition .snapshot-grid:has(> :nth-child(5):last-child) > :nth-last-child(-n+2) {grid-column:span 3;}
}
@media (max-width:760px) {
  #weekly-edition .snapshot-grid {
    --board-gap:clamp(4px,.75dvh,8px);
    --card-pad:clamp(5px,1.2dvh,12px);
    grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--board-gap);
  }
  #weekly-edition .snapshot-group {
    grid-column:span 1;grid-row:auto;min-width:0;padding:var(--card-pad) 8px;
  }
  #weekly-edition .snapshot-grid :is(.snapshot-form,.snapshot-points) {display:block;}
  #weekly-edition .snapshot-group h2 {
    font-size:.9rem;line-height:1.12;margin:0 0 4px;text-wrap:balance;
  }
  #weekly-edition :is(.snapshot-strength,.snapshot-outlook) {
    grid-column:1/-1;display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;gap:3px 10px;
  }
  #weekly-edition :is(.snapshot-strength,.snapshot-outlook) > :is(h2,p) {grid-column:1/-1;margin:0;}
  #weekly-edition .snapshot-group .snapshot-row {
    grid-template-areas:"label label" "team value";
    grid-template-columns:minmax(0,1fr) auto;
    gap:2px 4px;min-height:0;padding:3px 0;
  }
  #weekly-edition .snapshot-group .snapshot-row+.snapshot-row {border-inline-start:0;padding-inline-start:0;}
  #weekly-edition :is(.snapshot-strength,.snapshot-outlook) .snapshot-row+.snapshot-row {border-top:0;}
  #weekly-edition .snapshot-row .snapshot-label {font-size:.78rem;line-height:1.15;}
  #weekly-edition .snapshot-row .snapshot-team {gap:4px;font-size:.88rem;line-height:1.1;}
  #weekly-edition .snapshot-row .snapshot-number {min-width:0;font-size:1.03rem;max-width:100%;}
  #weekly-edition .snapshot-row .snapshot-crest {width:16px;height:17px;}
  #weekly-edition .snapshot-row .snapshot-track {height:2px;margin-top:1px;}
  #weekly-edition .snapshot-highlight {gap:3px;}
  #weekly-edition .snapshot-highlight .snapshot-highlight-number {font-size:clamp(1.55rem,3.7dvh,2.1rem);}
  #weekly-edition .snapshot-context {line-height:1.16;}
  #weekly-edition .snapshot-compare .snapshot-rank {display:block;font-size:.72rem;justify-self:end;}
  #weekly-edition .snapshot-supremacy .snapshot-compare {
    grid-template-columns:1fr auto auto;grid-template-areas:"label score compare" "label rank rank";
  }
  #weekly-edition .snapshot-grid:not(:has(>.snapshot-form)) .snapshot-points {
    grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 10px;
  }
  #weekly-edition .snapshot-grid:not(:has(>.snapshot-form)) .snapshot-points > :is(h2,p) {grid-column:1/-1;margin:0;}
  #weekly-edition .snapshot-grid:not(:has(>.snapshot-form)) .snapshot-points .snapshot-row+.snapshot-row {border-top:0;}
}
@media (max-width:760px) and (max-height:740px) {
  #weekly-edition .snapshot-grid {--card-pad:4px;--board-gap:4px;}
  #weekly-edition .snapshot-highlight {gap:1px;}
  #weekly-edition .snapshot-highlight .snapshot-meter {margin:1px 0;height:2px;}
  #weekly-edition .snapshot-group h2 {margin-bottom:2px;}
  #weekly-edition .snapshot-group .snapshot-row {padding-block:2px;}
}
@media (min-width:541px) and (max-height:580px) {
  html[data-theme] #main #weekly-edition.competition-snapshot .snapshot-heading {
    display:grid;grid-template-columns:1fr 1.1fr;gap:6px;margin:0 0 4px;
  }
  html[data-theme] #main #weekly-edition.competition-snapshot :is(.snapshot-identity,.snapshot-supremacy) {
    position:static;min-height:42px;padding-block:2px;margin:0;
  }
  #weekly-edition .snapshot-switch {min-height:26px;font-size:1.15rem;}
  #weekly-edition .snapshot-grid {grid-template-columns:repeat(3,minmax(0,1fr));min-height:0;grid-auto-rows:auto;gap:4px;}
  #weekly-edition .snapshot-grid > .snapshot-group,
  #weekly-edition .snapshot-grid:not(:has(>.snapshot-form)) > .snapshot-points,
  #weekly-edition .snapshot-grid:has(> :nth-child(5):last-child) > :nth-last-child(-n+2) {
    grid-column:span 1;display:block;padding:4px 7px;border-radius:5px;
  }
  #weekly-edition .snapshot-group h2 {font-size:.88rem;line-height:1.12;margin-bottom:3px;}
  #weekly-edition .snapshot-group .snapshot-row {min-height:0;row-gap:0;padding:2px 0;}
  #weekly-edition .snapshot-highlight .snapshot-highlight-number {
    display:block;width:auto;aspect-ratio:auto;background:none;font-size:1.6rem;
  }
  #weekly-edition .snapshot-forecast .snapshot-highlight-number::before {content:none;}
  #weekly-edition .snapshot-highlight .snapshot-meter {display:none;}
  #weekly-edition .snapshot-context {font-size:.78rem;line-height:1.18;}
}

/* The exit shares the existing heading row at every screen size. */
html[data-theme] #main #weekly-edition.competition-snapshot .snapshot-heading {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) auto;
  grid-template-areas:"identity supremacy close";
}
#weekly-edition .snapshot-identity {grid-area:identity;}
#weekly-edition .snapshot-identity > div {min-width:0;}
#weekly-edition .snapshot-supremacy {grid-area:supremacy;}
#weekly-edition .snapshot-close {
  grid-area:close;
  place-self:start end;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:0;
  border:1px solid var(--studio-rule);
  border-radius:50%;
  background:var(--studio-panel);
  color:var(--ink);
  font:500 1.4rem/1 var(--font-ui);
  cursor:pointer;
}
#weekly-edition .snapshot-close:hover {background:var(--studio-soft);}
#weekly-edition .snapshot-close:focus-visible {outline:2px solid var(--studio-accent);outline-offset:-3px;}
@media (max-width:540px), (max-width:760px) and (min-height:581px) {
  html[data-theme] #main #weekly-edition.competition-snapshot .snapshot-heading {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"identity close" "supremacy supremacy";
    gap:4px;
    margin-bottom:4px;
  }
  html[data-theme] #main #weekly-edition .snapshot-heading > :is(.snapshot-identity,.snapshot-supremacy) {
    position:static;
    margin:0;
  }
}

/* Preserve room for the fixed navigation on short portrait screens. */
@media (max-width:540px) and (max-height:710px) {
  #weekly-edition .snapshot-grid {--board-gap:3px;--card-pad:2px;}
  #weekly-edition :is(.snapshot-strength,.snapshot-outlook) {row-gap:1px;}
  #weekly-edition .snapshot-group .snapshot-row {padding-block:1px;row-gap:0;}
  #weekly-edition .snapshot-highlight {gap:0;}
  #weekly-edition .snapshot-group h2 {margin-bottom:1px;}
  #weekly-edition .snapshot-supremacy .snapshot-compare {padding-block:2px;}
}
@media (max-width:360px) and (max-height:600px) {
  #weekly-edition .snapshot-grid {--board-gap:2px;--card-pad:1px;}
  #weekly-edition .snapshot-group {padding-inline:5px;}
  #weekly-edition .snapshot-group h2 {font-size:.82rem;line-height:1.05;text-wrap:wrap;}
  #weekly-edition .snapshot-row .snapshot-number {font-size:1rem;line-height:1;}
  #weekly-edition .snapshot-supremacy .snapshot-team-link {max-width:5.2rem;padding-inline:6px;line-height:1.15;}
  #weekly-edition .snapshot-supremacy .snapshot-compare {column-gap:3px;padding-inline:5px;line-height:1.1;}
  #weekly-edition .snapshot-compare .snapshot-link-label {white-space:nowrap;}
  #weekly-edition .snapshot-scope:has(> b) {
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 5px;
    padding-block:2px;line-height:1.15;
  }
  #weekly-edition .snapshot-scope:has(> b) > span:first-child {grid-row:span 2;}
  #weekly-edition .snapshot-scope:has(> b) .snapshot-link-label {justify-self:end;}
  #weekly-edition .snapshot-result {padding-block:2px;}

  #weekly-edition .snapshot-switch {min-height:24px;}
  #weekly-edition .snapshot-identity {padding-block:1px;}
  #weekly-edition .snapshot-group .snapshot-row {
    grid-template-areas:"label value" "team team";
    padding-block:0;
  }

}

#weekly-edition .snapshot-outlook:has(.outlook-list) {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;align-content:center;
}
#weekly-edition .snapshot-outlook:has(.outlook-list) > h2 {grid-column:1/-1;margin:0;}
#weekly-edition .outlook-list {min-width:0;}
#weekly-edition .outlook-list h3 {margin:0 0 4px;color:var(--muted);font:550 .85rem/1.1 var(--font-ui);}
#weekly-edition .outlook-list ol {list-style:none;margin:0;padding:0;}
#weekly-edition .outlook-list li {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px;min-width:0;padding:3px 0;}
#weekly-edition .outlook-list li + li {border-top:1px solid var(--studio-rule);}
#weekly-edition .outlook-list .snapshot-team {grid-area:auto;min-width:0;gap:4px;font-size:.92rem;line-height:1.1;}
#weekly-edition .outlook-list .snapshot-crest {width:17px;height:17px;}
#weekly-edition .outlook-chance {font:650 .98rem/1 var(--font-ui);font-variant-numeric:tabular-nums;white-space:nowrap;}
#weekly-edition .outlook-chance.title-odds {color:var(--section-colour);}
@media (max-width:760px) and (max-height:740px) {
  #weekly-edition .snapshot-outlook:has(.outlook-list) {gap:2px 7px;}
  #weekly-edition .outlook-list h3 {margin:0 0 2px;font-size:.79rem;}
  #weekly-edition .outlook-list li {padding:1px 0;}
  #weekly-edition .outlook-list .snapshot-team {font-size:.85rem;}
  #weekly-edition .outlook-list .snapshot-crest {width:14px;height:15px;}
  #weekly-edition .outlook-chance {font-size:.89rem;}
}

@media (max-width:540px) and (max-height:710px), (min-width:541px) and (max-width:980px) and (max-height:480px) {
  /* The two outcome headings identify the lists in the compact layout. */
  #weekly-edition .snapshot-outlook:has(.outlook-list) > h2 {
    position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
  }
  html[data-preview-shell][data-theme][data-table-navigation][data-current-page=explore] body[data-palette] nav.app-bottom-nav {
    min-height:calc(46px + env(safe-area-inset-bottom,0px));height:auto;
    padding-block:0 env(safe-area-inset-bottom,0px);
  }
  html[data-preview-shell][data-current-page=explore] nav.app-bottom-nav.analysis-navigation a {
    min-height:45px;gap:1px;padding-block:1px;
  }
  html[data-preview-shell][data-current-page=explore] nav.app-bottom-nav.analysis-navigation a span {
    min-height:0;line-height:1.1;
  }
}
@media (max-width:360px) and (max-height:600px) {
  /* Give longer club names the space occupied by optional crest artwork. */
  #weekly-edition .outlook-list .snapshot-crest {display:none;}
  #weekly-edition .outlook-list li {padding-block:0;}
  html[data-theme] #main #weekly-edition.competition-snapshot .snapshot-heading {row-gap:2px;margin-bottom:2px;}
}

@media (min-width:541px) and (max-width:1023px) and (max-height:480px) {
  html[data-theme] #main #weekly-edition.competition-snapshot .snapshot-heading {
    grid-template-columns:minmax(0, .9fr) minmax(0, 1.15fr) auto;gap:4px;margin-bottom:3px;
  }
  html[data-theme] #main #weekly-edition.competition-snapshot .snapshot-heading > :is(.snapshot-identity,.snapshot-supremacy) {
    min-height:38px;padding-block:1px;
  }
  #weekly-edition .snapshot-heading .snapshot-switch {min-height:24px;font-size:1rem;}
  #weekly-edition .snapshot-heading :is(.snapshot-compare,.snapshot-team-link,.snapshot-scope) {min-height:36px;padding:1px 5px;}
  #weekly-edition .snapshot-grid:has(.outlook-list) {
    grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;gap:3px;
  }
  #weekly-edition .snapshot-grid:has(.outlook-list) > .snapshot-group {grid-column:span 1;}
  #weekly-edition .snapshot-grid:has(.outlook-list) > :is(.snapshot-strength,.snapshot-outlook) {
    display:grid;grid-column:span 2;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;gap:2px 6px;
  }
  #weekly-edition .snapshot-grid:has(.outlook-list) .snapshot-strength h2 {grid-column:1/-1;}
  #weekly-edition .snapshot-grid .snapshot-group {padding:3px 6px;align-content:center;}
  #weekly-edition .snapshot-group h2 {margin:0 0 2px;font-size:.86rem;line-height:1.08;}
  #weekly-edition .snapshot-group .snapshot-row {display:grid;grid-template-areas:"label value" "team team";grid-template-columns:minmax(0,1fr) auto;gap:0 3px;padding:1px 0;line-height:1.1;}
  #weekly-edition .snapshot-row .snapshot-number {min-width:0;font-size:1rem;line-height:1.05;}
  #weekly-edition .snapshot-row .snapshot-label {font-size:.77rem;line-height:1.1;}
  #weekly-edition .snapshot-row .snapshot-team {font-size:.85rem;line-height:1.1;}
  #weekly-edition .snapshot-grid .snapshot-crest {width:15px;height:16px;}
  #weekly-edition .snapshot-grid .snapshot-track {height:2px;margin-top:1px;}
  #weekly-edition .snapshot-grid .snapshot-highlight {display:flex;gap:1px;}
  #weekly-edition .snapshot-highlight .snapshot-highlight-number {font-size:1.42rem;line-height:1;}
  #weekly-edition .snapshot-highlight .snapshot-team {font-size:.9rem;line-height:1.1;}
  #weekly-edition .snapshot-highlight .snapshot-context {font-size:.75rem;line-height:1.12;}
  #weekly-edition .outlook-list li {padding:1px 0;}
  #weekly-edition .outlook-list .snapshot-team {font-size:.85rem;}
  #weekly-edition .outlook-chance {font-size:.9rem;}
}
@media (max-width:360px) and (max-height:600px), (min-width:541px) and (max-width:760px) and (max-height:480px) {
  #weekly-edition .snapshot-identity:has(.snapshot-division:not([hidden])) {
    display:grid;grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"badge type division" "badge name name";gap:1px 5px;
  }
  #weekly-edition .snapshot-identity:has(.snapshot-division:not([hidden])) > div {display:contents;}
  #weekly-edition .snapshot-identity .snapshot-brand {grid-area:badge;}
  #weekly-edition .snapshot-identity h1 {grid-area:type;}
  #weekly-edition .snapshot-identity .snapshot-switch {grid-area:name;}
  #weekly-edition .snapshot-identity .snapshot-division {grid-area:division;max-width:100%;min-height:clamp(26px,5.6dvh,32px);}
}
@media (min-width:541px) and (max-width:640px) and (max-height:350px) {
  #weekly-edition.competition-snapshot {zoom:.89;}
  #weekly-edition .snapshot-grid .snapshot-group {padding-block:1px;}
  #weekly-edition .snapshot-grid .outlook-list .snapshot-crest {display:none;}
  #weekly-edition .snapshot-supremacy .snapshot-compare small {white-space:nowrap;}
}
@media (min-width:541px) and (max-width:1023px) and (max-height:480px) {
  html[data-theme] #main #weekly-edition.competition-snapshot .snapshot-heading:has(.snapshot-division:not([hidden])) {
    grid-template-columns:minmax(0,1.08fr) minmax(0,1fr) auto;
  }
  #weekly-edition .snapshot-grid:not(:has(>.snapshot-form)):has(>:nth-child(5):last-child) {
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
  #weekly-edition .snapshot-grid:not(:has(>.snapshot-form)):has(>:nth-child(5):last-child) > .snapshot-group {grid-column:span 2;}
  #weekly-edition .snapshot-grid:not(:has(>.snapshot-form)):has(>:nth-child(5):last-child) > :nth-last-child(-n+2) {
    display:grid;grid-column:span 3;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:2px 6px;padding:3px 6px;align-content:center;
  }
  #weekly-edition .snapshot-grid:not(:has(>.snapshot-form)) :is(.snapshot-points,.snapshot-outlook) > :is(h2,p) {grid-column:1/-1;}
}
