:root {
    --charcoal: rgb(35, 31, 32);
    --grey: rgb(154, 157, 162);
    --green: rgb(116, 164, 52);
    --white: #ffffff;
}

/* Base layout */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--charcoal);
    color: var(--white);
    font-family: "Montserrat", sans-serif;
}

/* Buttons do not inherit font-family by default in browsers */
button {
    font-family: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Main content area */
.content-block {
    display: block;
}

/* Header */
.title {
    font-size: 2.8rem;
    margin-bottom: 5px;
    color: var(--white);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--grey);
    margin-bottom: 30px;
}

/* Top buttons */
.top-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    padding: 10px 20px;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.btn.active {
    background: var(--white);
    color: var(--charcoal);
}

/* Divider (used by Results page) */
.divider {
    height: 1px;
    background: var(--grey);
    margin: 25px 0;
}

/* Discipline blocks */
.disc-block {
    margin-bottom: 20px;
}

/* Closing line after the last accordion in any group */
.disc-block:last-of-type {
    border-bottom: 1px solid var(--grey);
    padding-bottom: 25px;
}

/* Collapsible headers (flat, Results-style) */
.disc-header {
    width: 100%;
    background: transparent;
    color: var(--white);
    border: none;
    padding: 12px 5px;
    font-size: 1.6rem;
    font-weight: bold;
    text-align: left;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.disc-header:hover {
    color: var(--green);
}

/* Arrow matches Results page exactly */
.arrow {
    font-size: 1.4rem;
    line-height: 1;
    font-weight: normal;
}

/* Collapsible content (no animation) */
.disc-content {
    display: none;
    padding-left: 10px;
    margin-bottom: 10px;
}

/* Make collapsibles work with JS */
.disc-block.open .disc-content {
    display: block;
}

/* Session links (match Results event-item) */
.session-link {
    display: block;
    padding: 6px 0;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
}

.session-link:hover {
    color: var(--green);
    text-decoration: underline;
}

.disabled-link {
    color: var(--grey);
    opacity: 0.5;
    cursor: default;
    text-decoration: none;
    pointer-events: none;
}

/* Non-homepage: session links styled as chips (green dot indicator + tint on hover) */
body:not(.home) .session-link {
    padding: 10px 12px 10px 32px;
    border-radius: 20px;
    position: relative;
}

body:not(.home) .session-link::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 99px;
    background: var(--green);
    box-shadow: 0 0 4px 1px rgba(116, 164, 52, 0.8),
                0 0 12px 3px rgba(116, 164, 52, 0.3);
}

body:not(.home) .session-link:hover {
    background: rgba(116, 164, 52, 0.10);
    text-decoration: none;
}

body:not(.home) .disabled-link::before {
    background: var(--grey);
    box-shadow: none;
}

/* Homepage-only: session links styled as green buttons */
.home .disc-content .session-link {
    display: block;              /* forces one per row */
    width: fit-content;          /* keeps them auto-sized like buttons */
    padding: 10px 20px;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin: 6px 0;
}

/* Hover effect to match .btn */
.home .disc-content .session-link:hover {
    background: var(--white);
    color: var(--charcoal);
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .container {
        padding: 20px 10px;
    }

    .title {
        font-size: 2.2rem;
    }

    .disc-header {
        font-size: 1.3rem;
    }

    .session-link {
        font-size: 1.05rem;
    }
}
