/*
 * Home / landing page (home/templates/home/home.html).
 * Loaded after dashboard/css/dashboard.css, which supplies the tokens (--d-*), .dbtn, .pill, .live-dot and .t-progress.
 * Three stacked sections: photo hero, upcoming-tournament table, how it works.
 * Every section uses .landing__container, the same 1200px box (16px gutters) as the site header, so edges line up.
 * oxygen.css forces `li` to display: list-item at (0,1,1), so list items are targeted with two classes.
 */

/* .dash supplies the tokens and type; undo its content-width box for this full-bleed page */
.landing.dash {
    max-width: none;
    padding: 0;
}

.landing__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

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

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(380px, 54vh, 540px);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--d-border);
}

/*
 * Arena photo on the right, fading into solid dark behind the text.
 * hockey_hero_bw.jpg is a black-and-white crop of covers/hockey_2.jpeg (the pink arena clashed with the brand green,
 * and the crop drops the board ads and social media logos on the right of the original).
 */
.hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    width: 64%;
    background: url('../../base/images/tournaments/covers/hockey_hero_bw.jpg') 50% 22% / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 50%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, #06080a 0%, transparent 40%),
        hsla(210, 25%, 4%, 0.5);
}

.hero__inner {
    padding-top: 56px;
    padding-bottom: 56px;
}

.landing .hero__eyebrow {
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--d-accent);
}

.landing h1.hero__title {
    max-width: 14em;
    font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.4rem);
    text-wrap: balance;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.landing .hero__lead {                      /* .landing prefix: beats dashboard.css's `.dash p { margin: 0 }` */
    max-width: 30em;
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.6;
    color: hsla(0, 0%, 100%, 0.75);
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero__ctas .dbtn {
    min-width: 168px;
    padding: 13px 24px;
    font-size: 15px;
}

.landing .hero__fine {
    margin-top: 16px;
    font-size: 13px;
    color: var(--d-faint);
}

/* ---------- Section heading ---------- */

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 24px;
    letter-spacing: -0.01em;
}

.section-head p {
    margin-top: 4px;
    font-size: 14px;
    color: var(--d-faint);
}

.landing .section-head__link {              /* .landing prefix: beats dashboard.css's `.dash a { color: inherit }` */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--d-accent);
}

.section-head__link i {
    font-size: 12px;
    transition: transform .15s ease;
}

.section-head__link:hover i {
    transform: translateX(3px);
}

/* ---------- Upcoming tournaments table ---------- */

.schedule {
    padding-top: 56px;
    padding-bottom: 72px;
}

.schedule__table {
    border: 1px solid var(--d-border);
    border-radius: 12px;
    background: var(--d-bg-card);
    overflow: hidden;
}

/* One grid for the header and every row so the columns line up */
.schedule__cols,
.schedule__row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 200px 150px 14px;   /* prize column fits a short written prize too */
    align-items: center;
    gap: 32px;
    padding-left: 24px;
    padding-right: 24px;
}

.schedule__cols {
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--d-border);
    background: hsla(0, 0%, 100%, 0.02);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--d-faint);
}

.schedule__num {
    text-align: right;
}

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

.schedule .schedule__item {
    display: block;
    border-bottom: 1px solid var(--d-border);
}

.schedule .schedule__item:last-child {
    border-bottom: 0;
}

.schedule__row {
    padding-top: 18px;
    padding-bottom: 18px;
    transition: background-color .15s ease;
}

.landing a.schedule__row:hover {
    background: hsla(0, 0%, 100%, 0.03);
}

.landing a.schedule__row:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

/* Two-line cells: a strong first line, a muted second line */
.schedule__when,
.schedule__event {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.schedule__when b,
.schedule__event b {
    font-weight: 500;
    color: #fff;
}

.schedule__when > span,
.schedule__event > span {
    font-size: 13.5px;
    color: var(--d-faint);
}

.schedule__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.landing .schedule__live {
    color: var(--d-live);
}

.schedule__event b {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
}

.schedule__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule__teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: var(--d-muted);
}

.schedule__teams b {
    font-weight: 500;
    color: #fff;
}

.schedule__full {
    font-weight: 500;
    color: var(--d-warn);
}

.schedule__prize {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.schedule__prize .prize-text {
    -webkit-line-clamp: 3;
}

.schedule__sponsor {
    color: var(--d-muted);
}

.schedule__none {
    font-family: 'Roboto', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--d-faint);
}

.schedule__go {
    font-size: 12px;
    color: var(--d-faint);
    transition: color .15s ease, transform .15s ease;
}

.schedule__row:hover .schedule__go {
    color: #fff;
    transform: translateX(2px);
}

.schedule__empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    padding: 28px 24px;
}

.schedule__empty b {
    font-weight: 500;
    color: #fff;
}

.schedule__empty p {
    margin-top: 4px;
    font-size: 14px;
    color: var(--d-muted);
}

/* ---------- How it works ---------- */

/* Full-width band, slightly raised from the page, with the content in .steps__inner */
.steps {
    border-top: 1px solid var(--d-border);
    background: hsla(210, 18%, 6%, 1);
}

.steps__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 32px;
    padding-top: 64px;
    padding-bottom: 80px;
}

.landing h2.steps__title {
    font-size: 24px;
    letter-spacing: -0.01em;
}

.steps__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps .steps__item {
    display: block;
    padding-top: 16px;
    border-top: 2px solid var(--d-border-strong);
}

.steps .steps__item:first-child {
    border-top-color: var(--d-accent);
}

.steps__num {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--d-faint);
}

.steps__item h3 {
    font-size: 17px;
}

.landing .steps__item p {
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--d-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .schedule__cols,
    .schedule__row {
        grid-template-columns: 130px minmax(0, 1fr) 160px 130px 14px;
        gap: 20px;
    }

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

/* Phones and small tablets: each row becomes a small stacked block */
@media (max-width: 760px) {
    .hero {
        min-height: 0;
    }

    .hero__inner {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .hero::after {
        background: linear-gradient(90deg, hsla(210, 25%, 4%, 0.94) 0%, hsla(210, 25%, 4%, 0.75) 100%);
    }

    .schedule {
        padding-top: 40px;
        padding-bottom: 48px;
    }

    .schedule__cols {
        display: none;
    }

    .schedule__row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "event prize"
            "when  when"
            "teams teams";
        gap: 10px 16px;
        padding: 16px;
    }

    .schedule__event { grid-area: event; }
    /* full name, with any Sponsored/Staff tag wrapping under it instead of cutting the name short */
    .schedule__event b { flex-wrap: wrap; gap: 4px 8px; }
    .schedule__name { white-space: normal; }
    .schedule__prize { grid-area: prize; align-self: start; max-width: 130px; }   /* a written prize wraps, not the name */
    .schedule__teams { grid-area: teams; }
    .schedule__go { display: none; }

    /* Date and time on one line */
    .schedule__when {
        grid-area: when;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 6px;
        font-size: 13.5px;
    }

    .schedule__when b {
        font-weight: 500;
    }

    .schedule__when > span::before {
        content: '\00b7';
        margin-right: 6px;
    }

    .steps__inner {
        padding-top: 40px;
        padding-bottom: 56px;
    }

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

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero__ctas .dbtn {
        flex: 1 1 100%;
    }
}
