/* ============================================================================
   organization skin: the PUBLIC SITE (#8982, #9508)
   ============================================================================
   The organization's public main site's own stylesheet: its layout
   (OrganizationPublicLayout) and every block its pages, its not-found
   page and its error page draw. The public site's static shell links this,
   app.css and the organization's skin, and nothing else: never the whole
   app's scoped bundle (about a megabyte, QuickGrid's included), which only
   the interactive pages need (#9508). So nothing the site draws may rely on a
   component's scoped stylesheet: the shared components it would use are
   styled for the interactive pages, and its pages use these blocks instead.

   EVERY rule here is under .site-page, the layout's own root (which also
   carries data-skin="organization"): nothing here can reach a club's site
   or the account host's own pages. The .site-page prefix stands where the
   layout's scope attribute stood when these rules were its scoped stylesheet,
   so each rule weighs what it weighed then against the skin's rules.

   The organization's presentation (OrganizationSkin): a header and a footer
   on the brand ground, each edged in the accent, with the account host's
   measure and breakpoints (OrganizationLayout.razor.css), so the two hosts
   read as one site. Colors are tokens, white aside. A club's card takes that
   club's palette from its own inline custom properties (--club-primary,
   --club-accent, --club-gradient, --club-display-font).
   ============================================================================ */


.site-page[data-skin] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-background);
    color: var(--color-text);
}

.site-page .site-preview-banner {
    margin: 0;
    padding: 0.6rem 2rem;
    background: var(--tobacco-barn-red);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

/* The way back to the account host's page the admin came from (#9603): white on the banner's ground, underlined, as a
   link in a sentence must be (axe link-in-text-block), and a target a thumb can take. Its focus ring is white, because
   the dark surfaces' accent ring (app.css) would sit on the banner's red. */
.site-page .site-preview-banner .site-preview-exit {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.2rem 0.35rem;
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    white-space: nowrap;
}

.site-page .site-preview-banner .site-preview-exit:hover {
    text-decoration-thickness: 2px;
}

.site-page .site-preview-banner .site-preview-exit:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 0 !important;
    border-radius: 4px;
}

/* ---- Header: the organization's mark and the seven pages, on the brand ground ---- */

.site-page .site-header {
    background: var(--color-dark);
    color: #ffffff;
    border-bottom: 3px solid var(--accent-rule);
}

.site-page .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    width: 100%;
    max-width: calc(1200px + 4rem);
    margin: 0 auto;
    padding: 0.5rem 2rem;
}

.site-page .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.site-page .site-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 0.75rem;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.site-page .site-nav-link:hover,
.site-page .site-nav-link:focus-visible,
.site-page .site-nav-link[aria-current="page"] {
    color: #ffffff;
    border-bottom-color: var(--accent-rule);
}

/* The last link, to the account host's sign-in (owner request 2026-11-05): a button, not one of the pages. */
.site-page .site-nav-link.site-nav-signin {
    margin-left: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 8px;
}

.site-page .site-nav-link.site-nav-signin:hover,
.site-page .site-nav-link.site-nav-signin:focus-visible {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.site-page .site-main {
    flex: 1;
    width: 100%;
}

/* ---- Footer: three columns from 900px, one below ---- */

.site-page .site-footer {
    background: var(--cedar-green-dark);
    color: #ffffff;
    border-top: 3px solid var(--accent-rule);
}

.site-page .site-footer-inner {
    width: 100%;
    max-width: calc(1200px + 4rem);
    margin: 0 auto;
    padding: 2rem 2rem 1.5rem;
}

.site-page .site-footer-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.site-page .site-footer-column {
    min-width: 0;
}

.site-page .site-footer-name,
.site-page .site-footer-heading {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-page .site-footer-legal,
.site-page .site-footer-email,
.site-page .site-footer-base {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}

.site-page .site-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-page .site-footer-list li {
    margin: 0.35rem 0;
}

.site-page .site-footer-card {
    margin-top: 1rem;
}

.site-page .site-footer-prose {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.site-page .site-footer a {
    color: var(--accent-text-on-dark);
    overflow-wrap: anywhere;
}

.site-page .site-footer-base {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* The sponsorship pages' Privacy Policy and Terms of Service (#9767), links inside the copyright sentence: underlined, as
   a link in a sentence must be (axe link-in-text-block), since the accent alone does not tell them from the white text. */
.site-page .site-footer-base .site-footer-policy-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 900px) {
    .site-page .site-footer-columns {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
        gap: 2.5rem;
    }
}

/* ---- The pages' blocks (rendered by the pages, the not-found and error pages included) ---- */

.site-page .site-main .site-hero {
    background: var(--color-dark);
    color: #ffffff;
    padding: 3rem 0;
}

.site-page .site-main .site-hero-inner,
.site-page .site-main .site-section {
    width: 100%;
    max-width: calc(1200px + 4rem);
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* The band is full bleed; the inner block takes the header's and the sections' inline padding, so the hero's
   text lines up with the mark and the section headings at every width. */
.site-page .site-main .site-hero-inner {
    padding: 0 2rem;
}

.site-page .site-main .site-hero h1 {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.site-page .site-main .site-hero .site-prose {
    max-width: 48rem;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.site-page .site-main .site-hero a {
    color: var(--accent-text-on-dark);
}

/* A link inside text is told apart from the text by more than its color (WCAG 1.4.1, axe link-in-text-block). */
.site-page .site-main .site-prose a,
.site-page .site-main .site-list a,
.site-page .site-main .site-hero a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-page .site-main .site-pill {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--accent-rule);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* The home hero's two buttons and the Programs hero's jump links (CLUBS2, 2026-11-04, static parity): on the dark
   band, 44px targets, no underline (they read as buttons, not links in text). */
.site-page .site-main .site-hero-actions,
.site-page .site-main .site-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 1.5rem;
}

.site-page .site-main .site-hero .site-hero-button,
.site-page .site-main .site-hero .site-jump-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-page .site-main .site-hero .site-hero-button-light {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: var(--color-dark);
}

.site-page .site-main .site-hero .site-hero-button-outline,
.site-page .site-main .site-hero .site-jump-links a {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.site-page .site-main .site-hero .site-jump-links a {
    font-size: 0.85rem;
}

.site-page .site-main .site-hero .site-hero-button:hover,
.site-page .site-main .site-hero .site-hero-button:focus-visible,
.site-page .site-main .site-hero .site-jump-links a:hover,
.site-page .site-main .site-hero .site-jump-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* A jump link's section is not hidden under the top of the window when the browser scrolls to it. */
.site-page .site-main .site-section[id] {
    scroll-margin-top: 1rem;
}

.site-page .site-main .site-section h2 {
    margin: 0 0 1rem;
    color: var(--color-dark);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.site-page .site-main .site-section h3 {
    margin: 0 0 0.5rem;
    color: var(--color-dark);
    font-size: 1.15rem;
}

.site-page .site-main .site-prose {
    max-width: 48rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.site-page .site-main .site-prose li[data-list="bullet"] {
    list-style-type: disc;
}

.site-page .site-main .site-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-page .site-main .site-card {
    min-width: 0;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--accent-rule);
    border-radius: 12px;
    overflow-wrap: anywhere;
}

.site-page .site-main .site-club-card {
    border-top: 6px solid var(--club-accent, var(--accent-rule));
    background:
        linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
        var(--club-gradient, var(--color-surface)) border-box;
}

.site-page .site-main .site-club-card h2,
.site-page .site-main .site-club-card h3 {
    color: var(--club-primary, var(--color-dark));
    font-family: var(--club-display-font, var(--font-display));
}

.site-page .site-main .site-club-logo {
    display: block;
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.site-page .site-main .site-meta {
    margin: 0.25rem 0;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
}

.site-page .site-main .site-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.site-page .site-main .site-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0.75rem;
    padding: 0 1.1rem;
    border-radius: 8px;
    background: var(--club-primary, var(--wilson-blue));
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-page .site-main .site-list {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.6;
}

.site-page .site-main .site-price {
    margin: 0.25rem 0 0.75rem;
    color: var(--color-dark);
    font-size: 1.6rem;
    font-weight: 700;
}

/* A chapter's name and town over its place, at a club that meets in several (#9509). */
.site-page .site-main .site-chapter {
    font-weight: 700;
    color: var(--color-dark);
}

/* ---- The Board page's seats (the shared BoardSeat, #9569) ----
   The Board of Directors page's seats, in the site's cards: a photo or the director's initials beside the name,
   the title and the term, then the bio and the contact address; an open position the same card, dashed. The
   component's own stylesheet is in the scoped bundle this shell does not link (#9508), so its layout is restated
   here, in the site's tokens. Every line of text may wrap anywhere, so no seat is wider than a 344px phone. */

.site-page .site-main .board-seat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-page .site-main .board-seat-open {
    border-style: dashed;
    border-top-style: solid;
}

.site-page .site-main .board-seat-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
}

.site-page .site-main .board-photo,
.site-page .site-main .board-initials {
    flex: 0 0 4rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-background);
}

.site-page .site-main .board-photo {
    object-fit: cover;
}

.site-page .site-main .board-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.site-page .site-main .board-seat-who {
    flex: 1 1 0;
    min-width: 0;
}

.site-page .site-main .site-section .board-name {
    margin: 0;
    line-height: 1.25;
}

.site-page .site-main .board-title {
    margin: 0.2rem 0 0;
    color: var(--color-text);
    font-weight: 600;
}

.site-page .site-main .board-term,
.site-page .site-main .board-open-mark {
    margin: 0.2rem 0 0;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
}

.site-page .site-main .board-bio {
    margin: 0;
    line-height: 1.6;
    white-space: pre-line;
}

.site-page .site-main .board-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.4rem;
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
}

.site-page .site-main .board-contact a {
    min-width: 0;
    color: var(--color-dark);
    font-weight: 600;
    text-decoration: underline;
}

/* ---- The shared EmptyState (Components/Shared/EmptyState, #7567), the one "nothing here yet" ----
   The Events page draws it for an empty Upcoming list. Its own stylesheet is in the scoped bundle this
   shell does not link (#9508), so its layout is restated here from EmptyState.razor.css; the
   organization's skin paints its edges, its icon's ground and its title's size, as it does on the
   account host, so nothing here sets them. The site loads no icon font: its pages give it no icon. */

.site-page .site-main .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 0;
    max-width: 100%;
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--color-surface);
}

.site-page .site-main .empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 auto;
    color: var(--accent-text);
    font-size: 1.5rem;
}

.site-page .site-main .empty-state-title {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-dark);
    overflow-wrap: break-word;
}

.site-page .site-main .empty-state-message {
    margin: 0;
    max-width: 44ch;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    overflow-wrap: break-word;
}

.site-page .site-main .empty-state-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    min-width: 0;
}

/* ---- The Events page's month calendar (#9743) ----
   A table of the month's weeks on a wide screen, a list of the days that have an event on a phone: the page draws
   both and this shows one (display: none, so a screen reader meets one). Each event is its time, its title (a link to
   its page on its club's site), and its club and its own town in words, edged in its club's color: the clubs are told
   apart by their names, the color only adds to that. Today is marked in words ("Today") as well as by its ground. */

.site-page .site-main .site-calendar-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.site-page .site-main .site-calendar-bar h2 {
    margin: 0;
}

.site-page .site-main .site-calendar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-page .site-main .site-calendar-step {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-page .site-main .site-calendar-grid {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: var(--color-surface);
}

.site-page .site-main .site-calendar-grid th {
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    background: var(--color-dark);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-page .site-main .site-calendar-grid td {
    height: 7rem;
    padding: 0.4rem;
    border: 1px solid var(--color-border);
    vertical-align: top;
    overflow-wrap: anywhere;
}

.site-page .site-main .site-calendar-grid .site-calendar-blank {
    background: var(--color-background);
}

.site-page .site-main .site-calendar-date {
    font-weight: 700;
    color: var(--color-dark);
}

.site-page .site-main .site-calendar-today {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: var(--color-dark);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.site-page .site-main .site-calendar-grid .site-calendar-day[aria-current="date"] {
    box-shadow: inset 0 0 0 3px var(--accent-rule);
}

.site-page .site-main .site-calendar-events {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}

.site-page .site-main .site-calendar-event {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin: 0 0 0.4rem;
    padding: 0.25rem 0 0.25rem 0.5rem;
    border-left: 4px solid var(--club-primary, var(--accent-rule));
    font-size: 0.85rem;
    line-height: 1.35;
}

.site-page .site-main .site-calendar-time {
    color: var(--color-text-secondary);
    font-weight: 600;
}

.site-page .site-main .site-calendar-title {
    color: var(--color-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-page .site-main .site-calendar-where {
    color: var(--color-text-secondary);
}

.site-page .site-main .site-agenda {
    display: none;
}

.site-page .site-main .site-agenda-days {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* This month's past days (#9743 review), folded above the list that starts today. */
.site-page .site-main .site-agenda-earlier {
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.site-page .site-main .site-agenda-earlier summary {
    padding: 0.7rem 0;
    cursor: pointer;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.site-page .site-main .site-agenda-earlier[open] summary {
    margin-bottom: 0.75rem;
}

.site-page .site-main .site-agenda-none {
    margin: 0;
    color: var(--color-text-secondary);
}

.site-page .site-main .site-agenda-day {
    margin: 0 0 1.25rem;
}

.site-page .site-main .site-agenda-day h3 {
    margin: 0 0 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--color-border);
}

.site-page .site-main .site-agenda .site-calendar-event {
    font-size: 0.95rem;
}

.site-page .site-main .site-calendar .empty-state {
    margin-top: 1rem;
}

/* ---- A phone: the links other than Home become rows of three tiles under the mark (the mark links home), Sign in the rest of the last row ---- */

@media (max-width: 768px) {
    .site-page .site-header-inner {
        padding: 0.5rem 1.25rem 0.75rem;
    }

    .site-page .site-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 0.35rem;
    }

    .site-page .site-nav-link.site-nav-link-home {
        display: none;
    }

    .site-page .site-nav-link {
        padding: 0 0.4rem;
        font-size: 0.74rem;
        letter-spacing: 0.04em;
        text-align: center;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
    }

    /* Sign in, the last link: a row of its own under the pages' rows of three when they fill them (six pages). */
    .site-page .site-nav-link.site-nav-signin {
        grid-column: 1 / -1;
        margin-left: 0;
    }

    /* When the pages leave room in their last row (the Board or Get involved shown, #9569, #9751: seven pages, or
       both: eight), Sign in fills it, so no row is left with a gap. Home is the first child and is not drawn, so Sign in is child n + 2 after n pages: the 3n-th
       child when one page is in the last row (it spans the two cells left), the 3n+1-th when two are (the one left). */
    .site-page .site-nav-link.site-nav-signin:nth-child(3n) {
        grid-column: span 2;
    }

    .site-page .site-nav-link.site-nav-signin:nth-child(3n + 1) {
        grid-column: auto;
    }

    .site-page .site-footer-inner {
        padding: 1.5rem 1.25rem 1rem;
    }

    .site-page .site-preview-banner {
        padding: 0.6rem 1.25rem;
    }

    .site-page .site-main .site-hero {
        padding: 2rem 0;
    }

    .site-page .site-main .site-hero-inner {
        padding: 0 1.25rem;
    }

    .site-page .site-main .site-section {
        padding: 2rem 1.25rem;
    }

    .site-page .site-main .empty-state {
        padding: 2rem 1rem;
    }

    /* The Events page's calendar (#9743): the days with events as a list, the table hidden. */
    .site-page .site-main .site-calendar-grid {
        display: none;
    }

    .site-page .site-main .site-agenda {
        display: block;
    }
}
