#faq_toc ol {
    
}

#faq_toc li {
    margin-left: 4em;
}

#faq_toc_link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    border: 2px solid var(--color-border);
    border-radius: 5px;
    z-index: 1000;
    transition: opacity 0.3s;
    background: var(--color-bg-secondary);
    color: var(--color-text-inverse);
}

#faq_toc_link:hover {
    border: 2px solid var(--color-border-hover);
    transition: opacity 0.3s;
    background: var(--color-bg-dark);
    color: var(--color-highlight);
}

.faq_section {
    margin-top: 2em;
}

.faq_answer_container {
    margin-left: 2em;
}
.faq_answer_container ul,
.faq_answer_container ol {
    margin: 0.75em 0 1.25em;
    padding-left: 2em;
}

.faq_answer_container li {
    margin-left: 0em;
    margin-bottom: 0.4em;
}

.faq_answer_container li ul,
.faq_answer_container li ol {
    margin: 0.4em 0 0.4em;
}

.faq_group {
    margin-top: 2.5em;
}

/* Link colours that work in both light and dark mode */
:root {
    --color-link: #1d4ed8;
    --color-link-hover: #1e3a8a;
    --color-button: #1d4ed8;
    --color-button-hover: #1e40af;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-link: #60a5fa;
        --color-link-hover: #93c5fd;
        --color-button: #2563eb;
        --color-button-hover: #1d4ed8;
    }
}

/* Make links stand out */
.main__content a,
.post__content a,
.faq_answer_container a,
.club_contact a,
#faq_toc a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.main__content a:hover,
.post__content a:hover,
.faq_answer_container a:hover,
.club_contact a:hover,
#faq_toc a:hover {
    color: var(--color-link-hover);
    text-decoration-thickness: 2px;
}

/* Table of contents: group headings and list spacing */
#faq_toc h4 {
    margin: 1.5em 0 0.4em;
}

#faq_toc ol {
    margin: 0;
    padding-left: 0.5em;
}

/* Divisions table */
.faq_answer_container table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    margin: 1em 0 1.25em;
    font-size: 0.95em;
}

.faq_answer_container th,
.faq_answer_container td {
    text-align: left;
    vertical-align: top;
    line-height: 1.4;
}

/* Phones: reclaim horizontal space and keep the button out of the way */
@media (max-width: 600px) {
    .faq_answer_container {
        margin-left: 0;
    }

    .faq_answer_container table {
        font-size: 0.85em;
    }

    #faq_toc li {
        margin-left: 1em;
    }

    #faq_toc_link {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 0.8em;
    }
}

/* Clubs page */
.club_jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    margin: 1.5em 0 2em;
}

.club_jump_label {
    font-weight: bold;
    margin-right: 0.25em;
}

.club_jump a {
    padding: 0.3em 0.9em;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg-secondary);
    text-decoration: none;
}

.club_jump a:hover {
    border-color: var(--color-border-hover);
}

.club_card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 1.5em;
    margin: 0 0 2em;
    padding: 1.25em;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-secondary);
    scroll-margin-top: 1em;
}

.club_photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    max-height: 320px;
    object-fit: cover;
    border-radius: 6px;
}

.club_info h2 {
    margin: 0 0 0.1em;
}

.club_location {
    margin: 0 0 0.75em;
    opacity: 0.85;
}

.club_info address {
    font-family: inherit;
    font-style: normal;
    margin-bottom: 0.75em;
}

.club_contact {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}

.club_contact li {
    margin: 0 0 0.25em;
    overflow-wrap: anywhere;
}

.club_label {
    display: inline-block;
    min-width: 4em;
    opacity: 0.7;
}

.club_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    margin: 0;
}

.club_info a.club_button {
    display: inline-block;
    padding: 0.5em 1em;
    border-radius: 5px;
    background: var(--color-button);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.club_info a.club_button:hover {
    background: var(--color-button-hover);
    color: #fff;
}

.club_info a.club_button_alt {
    background: transparent;
    border: 1px solid var(--color-link);
    color: var(--color-link);
}

.club_info a.club_button_alt:hover {
    background: var(--color-bg-content);
    color: var(--color-link-hover);
}

@media (max-width: 700px) {
    .club_card {
        grid-template-columns: 1fr;
        padding: 1em;
    }

    .club_photo img {
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    .club_actions a {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* Home page */
.home_links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1em;
    margin: 1.5em 0 2.5em;
}

.home_card {
    display: flex;
    flex-direction: column;
    padding: 1.1em 1.25em;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-secondary);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.home_card:hover,
.home_card:focus-visible {
    border-color: var(--color-link);
    transform: translateY(-2px);
}

.home_card h3 {
    margin: 0 0 0.35em;
}

.home_card p {
    margin: 0 0 0.9em;
    flex: 1;
}

.home_card_cta {
    font-weight: bold;
    color: var(--color-link);
}

.home_card_cta::after {
    content: " \2192";
}

@media (max-width: 700px) {
    .home_links {
        grid-template-columns: 1fr;
        gap: 0.75em;
        margin-bottom: 2em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home_card { transition: none; }
    .home_card:hover { transform: none; }
}

/* FAQ photos and galleries */
.faq_gallery {
    display: grid;
    gap: 1em;
    margin: 1.25em 0 0.5em;
}

.faq_gallery_1 { grid-template-columns: minmax(0, 480px); }
.faq_gallery_2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.faq_gallery_3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }

.faq_figure {
    margin: 0;
}

.faq_figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

/* Tall images (such as a document page) keep their shape and are capped in width */
.faq_figure_portrait img {
    object-fit: contain;
    max-width: 480px;
    background: #fff;
}

.faq_figure a {
    display: block;
}

.faq_figure figcaption {
    margin-top: 0.4em;
    font-size: 0.85em;
    color: var(--color-text-secondary);
}

@media (max-width: 700px) {
    .faq_gallery_2,
    .faq_gallery_3 {
        grid-template-columns: 1fr;
    }
}

/* Club logos (the logos are light-on-dark artwork, so they sit on a dark badge) */
.club_heading {
    display: flex;
    align-items: center;
    gap: 0.9em;
    margin-bottom: 0.75em;
}

.club_heading h2 {
    margin: 0;
}

.club_heading .club_location {
    margin: 0.1em 0 0;
}

.club_logo {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 120px;
    max-height: 64px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #18181b;
    object-fit: contain;
}

@media (max-width: 700px) {
    .club_logo {
        max-width: 90px;
        max-height: 52px;
    }
}

/* Club match calendar (PractiScore embed, loaded only when opened) */
.club_calendar {
    grid-column: 1 / -1;
    margin-top: 0.25em;
    border-top: 1px solid var(--color-border);
    padding-top: 0.75em;
}

.club_calendar summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--color-link);
}

.club_calendar iframe {
    display: block;
    width: 100%;
    height: 700px;
    margin-top: 0.75em;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
}

@media (max-width: 700px) {
    .club_calendar iframe { height: 600px; }
}

/* Photo shortcode (used in page text) */
.photo {
    margin: 0 0 1em;
}

.photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.photo figcaption {
    margin-top: 0.4em;
    font-size: 0.85em;
    color: var(--color-text-secondary);
}

.photo_float {
    float: right;
    width: 280px;
    margin: 0.25em 0 1em 1.5em;
}

@media (max-width: 700px) {
    .photo_float {
        float: none;
        width: 100%;
        max-width: 360px;
        margin: 1em auto;
    }
}

/* Special events section on the Clubs page */
.club_section_title {
    margin: 2.5em 0 0.75em;
    scroll-margin-top: 1em;
}

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

.club_text p {
    margin: 0 0 0.75em;
}

.club_text a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* Header logo: the state mark sits beside the title without making the header taller */
.logo--mixed .logo__link {
    display: inline-flex;
    align-items: center;
}

.logo--mixed .logo__item {
    margin: 0;
}

.logo--mixed .logo__img {
    display: block;
    width: auto;
    height: 48px;
    max-width: none;
    max-height: none;
}

@media (max-width: 767px) {
    .logo--mixed .logo__img {
        height: 32px;
    }
}
