/* Fixed background on body so it doesn't scroll; only on about page */
body.page-about {
    background: url('../public/side-background.png') center center no-repeat fixed;
    background-size: cover;
}

.about-main {
    display: block;
    min-height: calc(100vh - 90px);
    margin-top: 58px;
    margin-bottom: 40px;
    background: transparent;
}

.about-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 40px;
}

.about-section {
    background: var(--gray);
    padding: 40px 48px;
    margin-bottom: 28px;
    color: var(--black);
}

.about-section h2 {
    margin-bottom: 10px;
    padding-bottom: 10px;
    display: flex;
    gap: 10px;
}

.about-section h3 {
    margin-top: 28px;
    padding-bottom: 10px;
    display: flex;
    gap: 10px;
}

.about-section h2::before {
    content: '';
    width: 14px;
    height: 14px;
    min-height: 10px;
    background: var(--yellow);
    border: 1px solid var(--black);
    flex-shrink: 0;
    margin-top: 3px;
}

.about-section p {
    font-size: 16px;
    margin-bottom: 18px;
    padding: 0 25px;
    line-height: 1.4;
    color: var(--black);
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section ul {
    padding-left: 0;
    list-style: none;
}

.about-section li {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 8px;
    padding-left: 26px;
    position: relative;
}

.about-section li::before {
    content: '→';
    position: absolute;
    left: 1px;
}

.about-section a {
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid var(--blue);
}

.about-section a:hover {
    background: var(--blue);
    color: var(--white);
}


/* Timeline */

.about-section .timeline {
    border-left: 2px solid var(--blue);
    margin-left: 10px;
    padding-left: 5px;
}

.about-section .timeline-item {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    padding-left: 28px;
    position: relative;
}

.about-section .timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 25px;
    width: 8px;
    height: 8px;
    background: var(--blue);
    border: 2px solid var(--blue);
}

.about-section .timeline-date {
    font-size: 16px;
    font-weight: 700;
    min-width: 100px;
    color: var(--blue);
}

.about-section .timeline-content strong {
    display: block;
    font-size: 16px;
    color: var(--black);
}

.about-section .timeline-sub-item {
    display: flex;
    gap: 24px;
    padding: 2px 0;
    padding-left: 30px;
    margin-left: -2px;
    position: relative;
}

.about-section .timeline-sub-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 8px;
    height: 8px;
    background: var(--black);
    border: 2px solid var(--black);
}

.about-section .timeline-sub-item .timeline-date {
    font-size: 16px;
    font-weight: 600;
    min-width: 100px;
    color: var(--black);
}

.about-section .timeline-sub-item .timeline-content {
    font-size: 16px;
    color: var(--black);
    line-height: 1.3;
}


/* Nodes grid */

.nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 25px;
}

.node-card {
    border: 2px dotted #aaa;
    padding: 20px;
    transition: all 0.1s;
    background: var(--gray);
}

.node-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.node-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.node-city {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
}

.node-schedule {
    font-size: 12px;
    color: #555;
    line-height: 1.35;
}

.node-tz {
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.node-org {
    font-size: 13px;
    padding: 2px 5px;
    background: var(--yellow);
    color: var(--black);
    display: inline-block;
    font-weight: 700;
}


/* Branch selector */

.steps {
    display: grid;
    gap: 12px;
}

.step {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #bbb;
    transition: all 0.1s;
    background: var(--gray);
}

.step:hover {
    border-color: var(--blue);
}

.step-num {
    font-size: 24px;
    font-weight: 700;
    color: #444;
    line-height: 1;
    font-family: var(--display);
}

.step:hover .step-num {
    color: var(--blue);
}

.step-content strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--black);
}

.step-content p {
    font-size: 16px;
    color: var(--black);
    margin: 0;
}

/* FAQ */

.faq-list {
    display: grid;
    gap: 8px;
}

.faq-item {
    border: 1px solid #bbb;
    transition: all 0.1s;
    background: var(--gray);
}

.faq-item[open] {
    border-color: var(--black);
}

.faq-item:hover {
    border-color: var(--blue);
}

.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--black);
}

.faq-item summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--blue);
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p,
.faq-item ul {
    padding: 16px 20px 20px;
    font-size: 16px;
    color: #333;
    margin: 0;
    border-top: 1px dashed #ccc;
    line-height: 1.3;
}

.faq-item ul {
    list-style: disc;
    padding-left: 40px;
}

.faq-item ul li::before {
    content: none;
}

.faq-item ul li {
    padding-left: 0;
    margin-bottom: 8px;
}


/* ==================== */
/* JAM / PLAY BRANCHES  */
/* ==================== */

.branch {
    display: none;
}

.branch.active {
    display: block;
}

.branch-step {
    cursor: pointer;
    transition: all 0.1s;
}

.branch-step.active {
    border-color: var(--blue);
}

.branch-step.active .step-num {
    color: var(--blue);
}


/* Diversifiers */

.diversifiers-list {
    border: 1px solid #bbb;
    transition: border-color 0.1s;
    margin-top: 16px;
}

.diversifiers-list[open] {
    border-color: var(--black);
}

.diversifiers-list:hover {
    border-color: var(--blue);
}

.diversifiers-list>summary {
    padding: 16px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--black);
}

.diversifiers-list>summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--blue);
    flex-shrink: 0;
    margin-left: 12px;
}

.diversifiers-list[open]>summary::after {
    content: '−';
}

.diversifiers-list>summary::-webkit-details-marker {
    display: none;
}

.diversifiers-list>ul {
    padding: 16px 20px 20px;
    margin: 0;
    border-top: 1px dashed #ccc;
    columns: 2;
    column-gap: 32px;
}

.diversifiers-list>ul li {
    break-inside: avoid;
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 10px;
    padding-left: 0;
    position: static;
}

.diversifiers-list>ul li::before {
    content: none;
}


/* ==================== */
/* MOBILE               */
/* ==================== */

@media (max-width: 900px) {
    body.page-about {
        background: var(--black) url('../public/bg-vert.png') left top no-repeat fixed;
        background-size: cover;
    }

    .about-main {
        min-height: 100%;
        margin-top: 40px;
    }

    .about-content {
        padding: 20px;
    }

    .about-section {
        margin: 20px 0;
        padding: 15px;
    }

    .about-section h2 {
        font-size: 18px;
        margin: 4px;
        padding-bottom: 10px;
        gap: 0;
        word-break: break-word;
        overflow-wrap: anywhere;
        min-width: 0;
    }

    .about-section h3 {
        font-size: 15px;
        word-break: break-word;
        overflow-wrap: anywhere;
        min-width: 0;
    }

    .about-section h2::before {
        display: none;
    }

    .about-section p {
        font-size: 15px;
        margin: 8px 0;
        padding: 0 20px;
    }

    .about-section p:last-child {
        margin-bottom: 12px;
    }

    .about-section li {
        font-size: 14px;
        line-height: 1.2;
    }

    /* Timeline */
    .about-section .timeline-item {
        padding-left: 12px;
        margin-left: 0;
        gap: 24px;
    }

    .about-section .timeline-date {
        font-size: 14px;
        min-width: auto;
    }

    .about-section .timeline-content strong {
        font-size: 14px;
    }

    .about-section .timeline-sub-item {
        font-size: 14px;
        gap: 24px;
        padding-left: 12px;
        margin-left: 0;
    }

    .about-section .timeline-sub-item .timeline-date {
        font-size: 14px;
        min-width: auto;
    }

    .about-section .timeline-sub-item .timeline-content {
        font-size: 14px;
    }

    /* Branch selector */
    .step {
        gap: 12px;
        padding: 12px;
        min-height: 60px;
    }

    /* Nodes */
    .node-card {
        padding: 12px;
    }

    /* FAQ / collapsibles */
    .faq-item summary,
    .diversifiers-list>summary {
        padding: 12px 14px;
        font-size: 15px;
        word-break: break-word;
        overflow-wrap: anywhere;
        min-width: 0;
    }

    /* Diversifiers: single column on mobile */
    .diversifiers-list>ul {
        columns: 1;
    }
}