/* CYSA public website.
   One hand-written stylesheet, no framework. The palette comes from the CYSA crest:
   the navy and red of its flag, the gold of its sun, and the sand of the Coachella Valley.
   Written mobile first: the base rules are the phone layout, wider screens add to it. */

/* ---------- Design tokens ---------- */

:root {
    --navy-950: #071226;
    --navy-900: #0b1b3a;
    --navy-800: #11264f;
    --navy-700: #17346d;
    --blue: #1b4a9c;
    --red: #b3141b;
    --red-dark: #8d0f15;
    --gold: #f2b12e;
    --gold-soft: #fdf3d9;
    --green: #1f7a4d;
    --green-soft: #e3f3ea;
    --sand-50: #faf8f4;
    --sand-100: #f3efe7;
    --line: #e5e0d5;
    --ink: #0f1a2e;
    --muted: #5a6475;
    --white: #fff;

    --radius: 1rem;
    --radius-sm: .6rem;
    --shadow-sm: 0 1px 2px rgba(11, 27, 58, .06), 0 1px 3px rgba(11, 27, 58, .05);
    --shadow-md: 0 10px 30px -12px rgba(11, 27, 58, .28);
    --container: 73rem;
    --gutter: 1.1rem;
    --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink);
    background: var(--sand-50);
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

img,
svg {
    max-width: 100%;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 800;
}

p {
    margin: 0;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: .3rem;
}

.icon {
    flex: none;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -.2em;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: .75rem;
    top: -4rem;
    z-index: 100;
    padding: .7rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: var(--navy-950);
    font-weight: 700;
}

.skip-link:focus {
    top: .75rem;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--navy-900);
    color: var(--white);
    border-bottom: 3px solid var(--red);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 .75rem;
    min-height: 4rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-right: auto;
    color: var(--white);
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    display: block;
    height: 2.9rem;
    width: auto;
}

.brand-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
}

.brand-sub {
    display: none;
    margin-top: .25rem;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.lang-switch {
    display: flex;
    padding: .2rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
}

.lang-switch a {
    min-width: 2.4rem;
    padding: .3rem .55rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, .85);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-align: center;
}

.lang-switch a:hover {
    color: var(--white);
    text-decoration: none;
}

.lang-switch a[aria-current] {
    background: var(--white);
    color: var(--navy-900);
}

.menu-toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius-sm);
    background: none;
    color: var(--white);
    cursor: pointer;
}

.menu-toggle .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

/* On a phone the menu opens as a panel under the bar. Without JavaScript it simply stays open. */
.site-nav {
    order: 10;
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .5rem 0 1rem;
}

.js .site-nav {
    display: none;
}

.js .site-nav.open {
    display: flex;
}

.site-nav a {
    padding: .8rem .9rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .88);
    font-weight: 600;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    text-decoration: none;
}

.site-nav a[aria-current] {
    background: rgba(255, 255, 255, .12);
    color: var(--white);
}

/* ---------- Hero ---------- */

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(60rem 26rem at 105% 115%, rgba(242, 177, 46, .30), transparent 60%),
        radial-gradient(40rem 22rem at -10% -30%, rgba(27, 74, 156, .55), transparent 65%),
        linear-gradient(160deg, var(--navy-900), var(--navy-950));
}

/* The markings of a pitch, faint, behind the words. */
.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500' fill='none' stroke='%23fff' stroke-width='2'%3E%3Crect x='20' y='20' width='760' height='460' rx='4'/%3E%3Cpath d='M400 20v460'/%3E%3Ccircle cx='400' cy='250' r='70'/%3E%3Crect x='20' y='150' width='110' height='200'/%3E%3Crect x='670' y='150' width='110' height='200'/%3E%3Crect x='20' y='205' width='40' height='90'/%3E%3Crect x='740' y='205' width='40' height='90'/%3E%3C/svg%3E") center / cover no-repeat;
    opacity: .06;
    pointer-events: none;
}

.hero > .container,
.page-hero > .container {
    position: relative;
}

.hero {
    padding-block: 2.75rem 3rem;
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: currentColor;
}

.hero h1 {
    margin-top: .9rem;
    font-size: clamp(2.1rem, 7.5vw, 3.9rem);
    line-height: 1.04;
}

.hero-lead {
    margin-top: 1.1rem;
    max-width: 34rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}

.hero-crest {
    display: none;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin: 2.25rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

/* The number is read after its label but shown above it; numbers line up along the top. */
.hero-stats div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
}

.hero-stats dt {
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.hero-stats dd {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.page-hero {
    padding-block: 1.5rem 0;
}

.page-hero.no-tabs {
    padding-bottom: 2rem;
}

.page-hero h1 {
    margin-top: .6rem;
    font-size: clamp(1.8rem, 6vw, 2.9rem);
}

.page-hero-sub {
    margin-top: .5rem;
    color: rgba(255, 255, 255, .8);
}

.page-hero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: .35rem;
    opacity: .5;
}

.breadcrumb a {
    color: rgba(255, 255, 255, .85);
}

.tabs {
    display: flex;
    gap: .25rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.tabs a {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .8rem .85rem;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, .78);
    font-weight: 600;
    white-space: nowrap;
}

.tabs a:hover {
    color: var(--white);
    text-decoration: none;
}

.tabs a[aria-current] {
    border-bottom-color: var(--gold);
    color: var(--white);
}

/* Three tabs share a phone's width; their icons wait for more room. */
.tabs li {
    flex: 1 1 0;
}

.tabs a {
    justify-content: center;
}

.tabs .icon {
    display: none;
}

/* ---------- Buttons and tags ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.9rem;
    padding: .65rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
}

.btn-light {
    background: var(--white);
    color: var(--navy-900);
}

.btn-outline {
    border-color: rgba(255, 255, 255, .5);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, .08);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
}

.tag-live {
    background: var(--green-soft);
    color: #145c39;
}

.tag-live::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--green);
}

.tag-muted {
    background: var(--sand-100);
    color: #48505f;
}

.tag-warn {
    background: var(--gold-soft);
    color: #6f4a00;
}

.tag-alert {
    background: #fbe4e5;
    color: var(--red-dark);
}

.page-hero .tag-live,
.hero .tag-live {
    background: rgba(255, 255, 255, .14);
    color: var(--white);
}

.page-hero .tag-live::before {
    background: #5fe0a0;
}

.page-hero .tag-muted {
    background: rgba(255, 255, 255, .14);
    color: var(--white);
}

/* ---------- Sections and cards ---------- */

.section {
    padding-block: 2.25rem;
}

.section + .section {
    padding-top: 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-bottom: 1.1rem;
}

.section-head h2 {
    font-size: clamp(1.35rem, 4.4vw, 1.75rem);
}

.section-head .eyebrow {
    color: var(--red);
    margin-bottom: .4rem;
}

.section-note {
    margin-top: .35rem;
    color: var(--muted);
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
}

.more-link .icon {
    transition: transform .15s;
}

.more-link:hover .icon {
    transform: translateX(3px);
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-pad {
    padding: 1.25rem;
}

.columns {
    display: grid;
    gap: 2.25rem;
}

.grid {
    display: grid;
    gap: 1rem;
}

.empty {
    padding: 2.5rem 1.25rem;
    text-align: center;
    color: var(--muted);
}

.empty .icon {
    display: block;
    width: 2.4rem;
    height: 2.4rem;
    margin: 0 auto .75rem;
    color: #b9bfca;
}

.fine-print {
    margin-top: .85rem;
    font-size: .85rem;
    color: var(--muted);
}

/* ---------- Tournaments and divisions ---------- */

.tournament + .tournament {
    margin-top: 2.25rem;
}

.tournament-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-bottom: 1rem;
}

.tournament-head h3 {
    font-size: 1.3rem;
}

.tournament-head h3 a {
    color: inherit;
}

.tournament-dates {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--muted);
    font-size: .95rem;
}

.division-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}

.division-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 1.15rem 1.2rem 1rem;
    overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.division-tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .2s;
}

.division-tile:hover,
.division-tile:focus-within {
    transform: translateY(-3px);
    border-color: #d5cfc1;
    box-shadow: var(--shadow-md);
}

.division-tile:hover::before,
.division-tile:focus-within::before {
    transform: none;
}

.division-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}

/* The whole tile is the link to the division; the smaller links sit above it. */
.division-name a {
    color: var(--ink);
}

.division-name a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.division-name a:hover {
    text-decoration: none;
}

.division-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-size: .9rem;
}

.division-links {
    position: relative;
    display: flex;
    gap: .4rem;
    margin-top: auto;
    padding-top: .85rem;
    border-top: 1px solid var(--line);
}

.division-links a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: .45rem .2rem;
    border-radius: var(--radius-sm);
    color: var(--navy-700);
    font-size: .8rem;
    font-weight: 700;
}

.division-links a:hover {
    background: var(--sand-100);
    text-decoration: none;
}

.division-links .icon {
    width: 1.3rem;
    height: 1.3rem;
    color: var(--red);
}

/* ---------- Matches ---------- */

.matches {
    margin: 0;
    padding: 0;
    list-style: none;
}

.match {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr);
    gap: .9rem;
    padding: .95rem 1.1rem;
}

.match + .match {
    border-top: 1px solid var(--line);
}

.match-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: start;
    min-height: 4.1rem;
    padding: .35rem .2rem;
    border-radius: var(--radius-sm);
    background: var(--sand-100);
    color: var(--navy-800);
    line-height: 1.1;
    text-align: center;
}

.match-date .wd,
.match-date .mo {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.match-date .day {
    font-size: 1.45rem;
    font-weight: 800;
}

.match-date.tbd {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.match-body {
    min-width: 0;
}

.match-teams {
    display: grid;
    gap: .25rem;
}

.match-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    font-size: 1.02rem;
}

.match-line a {
    min-width: 0;
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.match-goals {
    flex: none;
    min-width: 1.6rem;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.match-line.won a,
.match-line.won .match-goals {
    font-weight: 800;
    color: var(--ink);
}

.match-line.lost a {
    color: #4a5364;
    font-weight: 500;
}

.match-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .2rem .65rem;
    margin-top: .5rem;
    font-size: .84rem;
    color: var(--muted);
}

.match-meta span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.match-meta .time {
    color: var(--navy-800);
    font-weight: 700;
}

.match-meta a {
    font-weight: 600;
}

/* ---------- Standings ---------- */

.standings {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.standings caption {
    caption-side: bottom;
}

.standings th,
.standings td {
    padding: .8rem .45rem;
    text-align: center;
}

.standings thead th {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.standings abbr {
    text-decoration: none;
    cursor: help;
}

.standings tbody tr + tr > * {
    border-top: 1px solid var(--line);
}

.standings tbody tr:hover > * {
    background: var(--sand-50);
}

.standings .pos {
    width: 2.6rem;
    padding-left: .9rem;
}

.standings .pos span {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--sand-100);
    font-size: .85rem;
    font-weight: 700;
}

.standings tbody tr:first-child .pos span {
    background: var(--gold);
    color: var(--navy-950);
}

.standings .team {
    text-align: left;
    font-weight: 700;
}

.standings .team a {
    color: var(--ink);
}

.standings .pts {
    padding-right: .9rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy-800);
}

/* A phone shows played, goal difference and points; wider screens add the rest. */
.standings .wide {
    display: none;
}

.standings-key {
    display: none;
}

/* ---------- Scorers ---------- */

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list li {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1.1rem;
}

.rank-list li + li {
    border-top: 1px solid var(--line);
}

.rank {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--sand-100);
    font-size: .9rem;
    font-weight: 700;
}

.rank-list li.top .rank {
    background: var(--gold);
    color: var(--navy-950);
}

.rank-name {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.rank-team {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
}

.rank-team a {
    color: inherit;
}

.rank-goals {
    display: inline-flex;
    align-items: baseline;
    gap: .3rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy-800);
    font-variant-numeric: tabular-nums;
}

.rank-goals small {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Team page and schedule ---------- */

.stat-grid {
    grid-template-columns: repeat(2, 1fr);
}

.stat {
    padding: 1rem 1.1rem;
}

.stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy-800);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    margin-top: .25rem;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat.lead-stat {
    background: var(--navy-900);
    border-color: var(--navy-900);
}

.stat.lead-stat .stat-value {
    color: var(--white);
}

.stat.lead-stat .stat-label {
    color: rgba(255, 255, 255, .75);
}

.round-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.75rem;
}

.round-nav a {
    display: grid;
    place-items: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: .3rem .6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy-800);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.round-nav a:hover {
    border-color: var(--navy-700);
    text-decoration: none;
}

.round + .round {
    margin-top: 1.75rem;
}

.round-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem .75rem;
    margin-bottom: .75rem;
    font-size: 1.25rem;
}

.round-title small {
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 2rem;
    padding-block: 2.25rem 1.5rem;
    background: var(--navy-950);
    color: rgba(255, 255, 255, .75);
    font-size: .95rem;
}

.footer-grid {
    display: grid;
    gap: 1.75rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.footer-brand img {
    height: 3.6rem;
    width: auto;
}

.footer-brand strong {
    display: block;
    color: var(--white);
    font-size: 1.05rem;
}

.footer-title {
    margin-bottom: .6rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
}

.footer-links {
    display: grid;
    gap: .15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-block;
    padding: .35rem 0;
    color: rgba(255, 255, 255, .85);
}

.footer-bottom {
    margin-top: 1.75rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: .85rem;
}

/* ---------- Motion ---------- */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(.75rem);
    }
}

.rise {
    animation: rise .5s ease-out both;
}

.rise-2 {
    animation-delay: .08s;
}

.rise-3 {
    animation-delay: .16s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Tablet and up ---------- */

@media (min-width: 40rem) {
    :root {
        --gutter: 1.5rem;
    }

    .brand-sub {
        display: block;
    }

    .hero {
        padding-block: 4rem;
    }

    .tabs li {
        flex: none;
    }

    .tabs a {
        padding-inline: 1.1rem;
    }

    .tabs .icon {
        display: block;
    }

    .match {
        grid-template-columns: 4rem minmax(0, 1fr);
        padding-inline: 1.35rem;
    }

    .standings th,
    .standings td {
        padding-inline: .65rem;
    }

    .standings .wide {
        display: table-cell;
    }

    .standings-key {
        display: inline;
    }

    .standings-key-narrow {
        display: none;
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ---------- Desktop ---------- */

@media (min-width: 62rem) {
    .header-inner {
        min-height: 4.6rem;
        gap: 0 1.25rem;
    }

    .brand img {
        height: 3.4rem;
    }

    .menu-toggle {
        display: none;
    }

    /* The menu becomes part of the bar. */
    .site-nav,
    .js .site-nav {
        order: 0;
        flex-basis: auto;
        display: flex;
        flex-direction: row;
        padding: 0;
    }

    .site-nav a {
        padding: .55rem .95rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    }

    .hero-crest {
        display: grid;
        place-items: center;
        justify-self: end;
        width: 17rem;
        height: 17rem;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 68%);
    }

    .hero-crest img {
        width: 11.5rem;
        height: auto;
        filter: drop-shadow(0 1.25rem 2rem rgba(0, 0, 0, .45));
    }

    .columns {
        grid-template-columns: 1fr 1fr;
    }

    .columns.wide-left {
        grid-template-columns: 1.4fr 1fr;
    }

    .section {
        padding-block: 3rem;
    }
}

