/* ==========================================================================
   Conference History - Editions Timeline
   Vertical spine with alternating cards on desktop, single column on mobile.
   Palette: deep green #0b3d2e, gold #C9A227.
   ========================================================================== */

.section-editions {
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(1200px 500px at 90% -10%, rgba(201,162,39,.08), transparent 60%),
        radial-gradient(900px 400px at -10% 110%, rgba(11,61,46,.10), transparent 60%),
        #fbf8f0;
}

.editions-bg {
    position: absolute;
    inset: 0;
    opacity: .06;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%230b3d2e' stroke-width='1.2'><circle cx='40' cy='40' r='6'/><circle cx='40' cy='40' r='14'/><circle cx='40' cy='40' r='22'/><path d='M110 100c-6 0-11 5-11 11s5 11 11 11 11-5 11-11'/><path d='M99 111l-3-3M99 111l3-3'/></g></svg>");
    background-size: 220px 220px;
    background-repeat: repeat;
}

/* Reset the <ol> defaults - no numeric markers, use our custom dot */
.editions-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    counter-reset: edition;
    max-width: 1080px;
    margin-inline: auto;
}

/* Central vertical spine */
.editions-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        transparent 0,
        rgba(201,162,39,.55) 4%,
        rgba(201,162,39,.55) 96%,
        transparent 100%);
    border-radius: 2px;
}

.edition-item {
    counter-increment: edition;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    align-items: start;
    gap: 0;
    margin-bottom: 2rem;
}

/* Year badge sits on the spine */
.edition-year {
    grid-column: 2;
    justify-self: center;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b3d2e 0%, #14563f 60%, #0b3d2e 100%);
    color: #fff;
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(11,61,46,.35), 0 0 0 3px #C9A227;
    text-align: center;
    line-height: 1.1;
    padding: .35rem;
    margin-top: .25rem;
    transition: transform .3s ease, box-shadow .3s ease;
}
.edition-item:hover .edition-year {
    transform: scale(1.06);
    box-shadow: 0 10px 26px rgba(11,61,46,.45), 0 0 0 3px #E7C558;
}
.edition-num {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: #F1D992;
    text-transform: uppercase;
}
.edition-yr {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-top: .15rem;
}

/* Card */
.edition-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(201,162,39,.25);
    border-radius: 16px;
    padding: 1.25rem 1.4rem 1.35rem;
    box-shadow: 0 6px 20px rgba(11,61,46,.06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    overflow: hidden;
}
.edition-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #C9A227 0%, #E7C558 100%);
}
.edition-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(11,61,46,.14);
    border-color: rgba(201,162,39,.55);
}

/* Left column card (odd items) */
.edition-item:nth-child(odd) .edition-card {
    grid-column: 1;
    margin-right: 2rem;
    text-align: right;
}
.edition-item:nth-child(odd) .edition-card::before {
    left: auto;
    right: 0;
    background: linear-gradient(180deg, #E7C558 0%, #C9A227 100%);
}

/* Right column card (even items) */
.edition-item:nth-child(even) .edition-card {
    grid-column: 3;
    margin-left: 2rem;
    text-align: left;
}

/* Little pointer arrow from the card toward the year badge */
.edition-item:nth-child(odd) .edition-card::after,
.edition-item:nth-child(even) .edition-card::after {
    content: "";
    position: absolute;
    top: 26px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 1px solid rgba(201,162,39,.25);
    transform: rotate(45deg);
}
.edition-item:nth-child(odd) .edition-card::after {
    right: -8px;
    border-left: none;
    border-bottom: none;
}
.edition-item:nth-child(even) .edition-card::after {
    left: -8px;
    border-right: none;
    border-top: none;
}

.edition-city {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0b3d2e;
    margin: 0 0 .35rem;
    line-height: 1.25;
}
.edition-city i { color: #C9A227; font-size: 1.1rem; }
.edition-item:nth-child(odd) .edition-city { flex-direction: row-reverse; }

.edition-theme {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #7a5a12;
    background: rgba(201,162,39,.14);
    border: 1px solid rgba(201,162,39,.35);
    padding: .25rem .7rem;
    border-radius: 999px;
    margin-bottom: .6rem;
}

.edition-highlight {
    font-size: .95rem;
    color: #4a4a4a;
    line-height: 1.55;
    margin: 0;
}

/* Adinkra accent inside each card, corner-anchored */
.edition-adinkra {
    position: absolute;
    top: .6rem;
    width: 34px;
    height: 34px;
    opacity: .35;
    color: #C9A227;
    pointer-events: none;
    z-index: 1;
}
.edition-item:nth-child(odd) .edition-adinkra { left: .75rem; }
.edition-item:nth-child(even) .edition-adinkra { right: .75rem; }
.edition-adinkra svg { width: 100%; height: 100%; display: block; }

/* Alternate dot color to make it feel like a journey */
.edition-item:nth-child(3n) .edition-year {
    background: linear-gradient(135deg, #7a5a12 0%, #C9A227 60%, #7a5a12 100%);
}
.edition-item:nth-child(3n) .edition-num { color: #fffbe6; }

/* Section intro spacing */
.section-editions .container > .lead {
    margin-bottom: 3rem !important;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .editions-timeline { max-width: 640px; }
    .editions-timeline::before {
        left: 44px;
        transform: none;
    }
    .edition-item {
        grid-template-columns: 88px 1fr;
        gap: 0;
        margin-bottom: 1.5rem;
    }
    .edition-year {
        grid-column: 1;
        width: 76px;
        height: 76px;
        justify-self: start;
        margin-left: 6px;
    }
    .edition-yr { font-size: 1.2rem; }
    .edition-item:nth-child(odd) .edition-card,
    .edition-item:nth-child(even) .edition-card {
        grid-column: 2;
        margin: 0 0 0 1.5rem;
        text-align: left;
    }
    .edition-item:nth-child(odd) .edition-card::before,
    .edition-item:nth-child(even) .edition-card::before {
        left: 0;
        right: auto;
        background: linear-gradient(180deg, #C9A227 0%, #E7C558 100%);
    }
    .edition-item:nth-child(odd) .edition-card::after,
    .edition-item:nth-child(even) .edition-card::after {
        left: -8px;
        right: auto;
        border-right: none;
        border-top: none;
        border-left: 1px solid rgba(201,162,39,.25);
        border-bottom: 1px solid rgba(201,162,39,.25);
    }
    .edition-item:nth-child(odd) .edition-city { flex-direction: row; }
    .edition-item:nth-child(odd) .edition-adinkra { left: auto; right: .75rem; }
}

@media (max-width: 480px) {
    .section-editions { padding: 3rem 0 3.5rem; }
    .edition-city { font-size: 1.05rem; }
    .edition-year { width: 64px; height: 64px; }
    .editions-timeline::before { left: 36px; }
    .edition-item { grid-template-columns: 72px 1fr; }
}
