/* The public website's own layer, on top of the shared design system in
   _content/Droomploeg.SportDex.Branding/sportdex.css.
 *
 * Only what the marketing pages and the administration screens need and the
 * app does not: the page wrapper, the home page's hero and its sections.
 * Anything a single screen needs stays in that screen's scoped .razor.css.
 */

/* --------------------------------------------------------------- the page -- */

/* Every screen wraps its content in this. The layout deliberately adds no
   padding of its own, so a full-bleed section can sit next to a normal one. */
.page-section {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--space-7) var(--space-4) var(--space-8);
}

@media (min-width: 48rem) {
    .page-section {
        padding-inline: var(--space-5);
    }
}

/* ------------------------------------------------------------------ hero -- */

.hero {
    background: var(--surface-sunken);
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    display: grid;
    gap: var(--space-7);
    align-items: center;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--space-8) var(--space-4) var(--space-9);
}

@media (min-width: 48rem) {
    .hero-inner {
        padding-inline: var(--space-5);
    }
}

/* The agenda card moves alongside the words once there is room for both to be
   read at a comfortable measure. */
@media (min-width: 60rem) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
        gap: var(--space-8);
    }
}

.hero h1 {
    max-width: 14ch;
    margin-bottom: var(--space-4);
    font-size: var(--text-4xl);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.hero .lede {
    margin-bottom: var(--space-6);
}

/* --------------------------------------------------------------- section -- */

.section-head {
    max-width: var(--measure);
    margin-bottom: var(--space-6);
}

.section-head h2 {
    font-size: var(--text-2xl);
}

.section-head p {
    margin-bottom: 0;
    color: var(--ink-muted);
}

/* The app and the website, side by side on the home page. Unequal on purpose:
   the app is what nearly every member uses every week, the website what a few
   people use a few times a season, and the widths say so before the words do. */
.parts {
    display: grid;
    gap: var(--space-5);
}

@media (min-width: 52rem) {
    .parts {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
}

.part {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-panel);
}

@media (min-width: 48rem) {
    .part {
        padding: var(--space-6);
    }
}

/* The app is raised and carries the accent along its top, like its own bar;
   the website sits back on the sunken surface. */
.part-app {
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-top: 3px solid var(--orange-500);
    box-shadow: var(--shadow-card);
}

.part-site {
    background: var(--surface-sunken);
    border: 1px solid var(--line);
}

.part-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    color: var(--ink-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.part-app .part-kicker svg {
    color: var(--orange-500);
}

.part h3 {
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
    letter-spacing: -0.02em;
}

.part-list {
    display: grid;
    gap: var(--space-2);
    margin: 0 0 var(--space-6);
    padding: 0;
    list-style: none;
}

/* A short rule rather than a bullet: these are lines of a list somebody
   scans, not points of an argument. */
.part-list li {
    position: relative;
    padding-left: var(--space-5);
    color: var(--ink-muted);
    line-height: 1.5;
}

.part-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 0.75rem;
    height: 2px;
    border-radius: 1px;
    background: var(--line-strong);
}

.part-app .part-list li::before {
    background: var(--orange-500);
}

/* The buttons line up across both cards on a wide screen, whatever the length
   of the list above them. */
.part .btn {
    margin-top: auto;
}

/* ------------------------------------------------------------ filter bar -- */

/* Each filter is a link to its own address, so it can be bookmarked and the
   back button behaves. They read as a set of tabs because that is what they
   are; the current one is filled rather than merely underlined, since these sit
   above a table that otherwise gives no clue which selection produced it. */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.filter {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 2.25rem;
    padding: 0.3125rem 0.875rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    color: var(--ink-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.filter:hover {
    border-color: var(--ink-muted);
    color: var(--ink);
}

.filter[aria-current='page'] {
    border-color: var(--navy-700);
    background: var(--navy-700);
    color: #fff;
}

@media (prefers-color-scheme: dark) {
    .filter[aria-current='page'] {
        border-color: var(--surface-raised);
        background: var(--surface-raised);
        color: var(--ink);
    }
}

/* How many are waiting, on the filter that would show them. */
.filter-count {
    padding: 0 0.375rem;
    border-radius: var(--radius-pill);
    background: var(--orange-500);
    color: var(--navy-900);
    font-size: var(--text-xs);
    font-variant-numeric: tabular-nums;
}

.filter[aria-current='page'] .filter-count {
    background: var(--orange-500);
    color: var(--navy-900);
}

/* ------------------------------------------------- a row under a row -- */

/* The outbox explanation that opens under a club whose provisioning is stuck.
   It belongs to the row above it, so it is tinted rather than ruled off. */
.sub-row > td {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    background: var(--surface-sunken);
}

.sub-row-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: flex-start;
    justify-content: space-between;
}

.sub-row-inner > div:first-child {
    flex: 1 1 20rem;
}

/* ------------------------------------------------------------- band, cta -- */

/* A single navy band low on the page, carrying the one thing we want a visitor
   to do. It is the only place on the site the accent sits on the brand colour. */
.cta-band {
    background: var(--surface-brand);
    color: #fff;
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--space-7) var(--space-4);
}

@media (min-width: 48rem) {
    .cta-inner {
        padding-inline: var(--space-5);
    }
}

.cta-inner h2 {
    max-width: 20ch;
    margin-bottom: var(--space-1);
    color: #fff;
    font-size: var(--text-2xl);
}

.cta-inner p {
    max-width: 44ch;
    margin-bottom: 0;
    color: rgb(255 255 255 / 76%);
}
