/* ==========================================================================
   GSC-TEMPC ABOUT — HISTORY / HERITAGE ARCHIVE
   v19.0

   Dedicated styling for the database-driven #history section.
   The visual language is intentionally editorial: ivory canvas, oversized
   archival years, large historical photography, a hairline heritage rail,
   restrained antique-gold details, and quiet active-state focus.

   No historical content is defined here. All dates, years, titles, copy and
   images continue to come from about_history / about_page_content.
   ========================================================================== */

.gsc-history {
    --history-ivory: #fbf8f1;
    --history-paper: #f5f0e5;
    --history-green: #0b3b27;
    --history-green-soft: #315a46;
    --history-ink: #193027;
    --history-muted: #59625d;
    --history-gold: #b98218;
    --history-gold-soft: #d9b15a;
    --history-line: rgba(185, 130, 24, 0.46);
    --history-line-soft: rgba(25, 48, 39, 0.13);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(100px, 9vw, 150px) 24px clamp(90px, 8vw, 135px) !important;
    background:
        radial-gradient(circle at 78% 12%, rgba(185,130,24,.055), transparent 25%),
        radial-gradient(circle at 15% 78%, rgba(11,59,39,.035), transparent 28%),
        repeating-linear-gradient(
            0deg,
            rgba(25,48,39,.018) 0,
            rgba(25,48,39,.018) 1px,
            transparent 1px,
            transparent 8px
        ),
        var(--history-ivory) !important;
    border-top: 1px solid rgba(25,48,39,.055);
    border-bottom: 1px solid rgba(25,48,39,.055);
}

.gsc-history::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .42;
    background:
        linear-gradient(90deg, transparent 0, rgba(25,48,39,.028) 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.gsc-history::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 40px;
    right: clamp(-130px, -5vw, -45px);
    width: clamp(300px, 34vw, 520px);
    aspect-ratio: 1;
    background: url('../../../logo.png') center / contain no-repeat;
    opacity: .026;
    filter: grayscale(1);
    pointer-events: none;
}

.gsc-history__container {
    position: relative;
    max-width: 1320px !important;
    margin: 0 auto;
}

.gsc-history__intro {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto clamp(80px, 8vw, 120px);
    text-align: center;
}

.gsc-history__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    color: var(--history-gold);
    font-family: var(--oc-font-body, 'Inter', sans-serif);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.gsc-history__eyebrow::before,
.gsc-history__eyebrow::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--history-gold-soft);
}

.gsc-history__title {
    margin: 0;
    color: var(--history-green) !important;
    font-family: var(--oc-font-display, 'Fraunces', Georgia, serif) !important;
    font-size: clamp(3.3rem, 6vw, 6.25rem) !important;
    font-weight: 500 !important;
    line-height: .92 !important;
    letter-spacing: -.045em;
}

.gsc-history__lead {
    max-width: 690px;
    margin: 26px auto 0 !important;
    color: var(--history-muted) !important;
    font-family: var(--oc-font-body, 'Inter', sans-serif);
    font-size: clamp(.98rem, 1.2vw, 1.12rem) !important;
    line-height: 1.9 !important;
    font-weight: 400;
}

.gsc-history__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 120px;
    margin: 25px auto 0;
}

.gsc-history__ornament span {
    flex: 1;
    height: 1px;
    background: var(--history-line);
}

.gsc-history__ornament i {
    position: relative;
    width: 7px;
    height: 7px;
    display: block;
    border: 1px solid var(--history-gold);
    transform: rotate(45deg);
}

.gsc-history__archive {
    position: relative;
    width: min(1160px, 100%);
    margin: 0 auto;
}

.gsc-history__rail {
    position: absolute;
    z-index: 0;
    top: 28px;
    bottom: 35px;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background:
        linear-gradient(
            to bottom,
            transparent 0,
            var(--history-line) 5%,
            rgba(185,130,24,.62) 50%,
            var(--history-line) 95%,
            transparent 100%
        );
}

.gsc-history-entry {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
    align-items: center;
    min-height: 500px;
    padding: 55px 0 95px;
    opacity: .48;
    transition:
        opacity .65s cubic-bezier(.22,1,.36,1),
        transform .65s cubic-bezier(.22,1,.36,1);
}

.gsc-history-entry:last-child {
    padding-bottom: 35px;
}

.gsc-history-entry.is-active {
    opacity: 1;
}

.gsc-history-entry__marker {
    position: absolute;
    z-index: 4;
    top: 78px;
    left: 50%;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    transform: translateX(-50%);
    border: 1px solid var(--history-gold);
    border-radius: 50%;
    background: var(--history-ivory);
    transition: box-shadow .45s ease, transform .45s ease;
}

.gsc-history-entry__marker::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(185,130,24,.55);
    border-radius: 50%;
}

.gsc-history-entry__marker span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--history-gold);
    opacity: .75;
    transition: transform .45s ease, opacity .45s ease;
}

.gsc-history-entry.is-active .gsc-history-entry__marker {
    box-shadow: 0 0 0 5px rgba(185,130,24,.075);
    transform: translateX(-50%) scale(1.05);
}

.gsc-history-entry.is-active .gsc-history-entry__marker span {
    opacity: 1;
    transform: scale(1.25);
}

.gsc-history-entry__visual {
    position: relative;
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
    padding-right: 22px;
}

.gsc-history-entry.is-reverse .gsc-history-entry__visual {
    grid-column: 3;
    padding-right: 0;
    padding-left: 22px;
}

.gsc-history-entry__story {
    position: relative;
    z-index: 2;
    min-width: 0;
    grid-column: 3;
    grid-row: 1;
    padding-left: 28px;
    max-width: 500px;
}

.gsc-history-entry.is-reverse .gsc-history-entry__story {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    padding-left: 0;
    padding-right: 28px;
    text-align: right;
}

.gsc-history-entry__year {
    position: absolute;
    z-index: -1;
    top: -86px;
    left: -30px;
    color: rgba(25,48,39,.075);
    font-family: var(--oc-font-display, 'Fraunces', Georgia, serif);
    font-size: clamp(7rem, 12vw, 12.5rem);
    font-weight: 500;
    line-height: .8;
    letter-spacing: -.07em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    transition: color .55s ease, transform .65s ease;
}

.gsc-history-entry.is-reverse .gsc-history-entry__year {
    left: auto;
    right: -28px;
}

.gsc-history-entry.is-active .gsc-history-entry__year {
    color: rgba(11,59,39,.12);
    transform: translateY(-3px);
}

.gsc-history-entry__media {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    margin: 0;
}

.gsc-history-entry__media-frame {
    position: relative;
    overflow: hidden;
    background: #e9e3d6;
    border: 1px solid rgba(25,48,39,.12);
    box-shadow: 0 18px 40px rgba(26,45,35,.12);
}

.gsc-history-entry__media-frame::before {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 10px;
    border: 1px solid rgba(255,255,255,.34);
    pointer-events: none;
}

.gsc-history-entry__image {
    display: block;
    width: 100%;
    aspect-ratio: 1.42 / 1;
    object-fit: cover;
    object-position: center;
    filter: saturate(.88) contrast(1.02);
    transform: scale(1.01);
    transition: transform 1.1s cubic-bezier(.22,1,.36,1), filter .7s ease;
}

.gsc-history-entry.is-active .gsc-history-entry__image {
    filter: saturate(.98) contrast(1.03);
    transform: scale(1);
}

.gsc-history-entry__caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 2px 0;
    color: #68716b;
    font-family: var(--oc-font-body, 'Inter', sans-serif);
    font-size: .59rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.gsc-history-entry__caption span:first-child {
    color: var(--history-green-soft);
}

.gsc-history-entry__caption span:last-child {
    color: var(--history-gold);
    white-space: nowrap;
}

.gsc-history-entry__date {
    display: block;
    margin: 0 0 18px;
    color: var(--history-gold);
    font-family: var(--oc-font-body, 'Inter', sans-serif);
    font-size: .65rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.gsc-history-entry__title {
    position: relative;
    margin: 0 0 25px !important;
    padding-bottom: 22px;
    color: var(--history-green) !important;
    font-family: var(--oc-font-display, 'Fraunces', Georgia, serif) !important;
    font-size: clamp(2rem, 3vw, 3.15rem) !important;
    font-weight: 500 !important;
    line-height: 1.02 !important;
    letter-spacing: -.035em;
}

.gsc-history-entry__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 1px;
    background: var(--history-gold);
}

.gsc-history-entry.is-reverse .gsc-history-entry__title::after {
    left: auto;
    right: 0;
}

.gsc-history-entry__description {
    margin: 0 !important;
    color: var(--history-muted) !important;
    font-family: var(--oc-font-body, 'Inter', sans-serif);
    font-size: 1rem !important;
    line-height: 1.9 !important;
    font-weight: 400;
}

.gsc-history__fallback {
    width: min(820px, 100%);
    margin: 10px auto 0;
    padding: 42px 0 18px;
    border-top: 1px solid var(--history-line-soft);
    border-bottom: 1px solid var(--history-line-soft);
    text-align: center;
}

.gsc-history__fallback-label {
    display: block;
    margin-bottom: 18px;
    color: var(--history-gold);
    font-family: var(--oc-font-body, 'Inter', sans-serif);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.gsc-history__fallback p {
    margin: 0 auto 38px;
    color: var(--history-muted);
    font-family: var(--oc-font-body, 'Inter', sans-serif);
    font-size: 1.08rem;
    line-height: 1.9;
}

.gsc-history__closing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(420px, 80%);
    margin: clamp(55px, 7vw, 95px) auto 0;
}

.gsc-history__closing span {
    flex: 1;
    height: 1px;
    background: var(--history-line-soft);
}

.gsc-history__closing i {
    position: relative;
    width: 10px;
    height: 10px;
    display: block;
    border: 1px solid var(--history-gold);
    transform: rotate(45deg);
}

.gsc-history__closing i::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--history-gold);
}

@media (max-width: 1050px) {
    .gsc-history-entry {
        grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    }

    .gsc-history-entry__story {
        padding-left: 18px;
    }

    .gsc-history-entry.is-reverse .gsc-history-entry__story {
        padding-right: 18px;
    }

    .gsc-history-entry__visual {
        padding-right: 12px;
    }

    .gsc-history-entry.is-reverse .gsc-history-entry__visual {
        padding-left: 12px;
    }

    .gsc-history-entry__year {
        left: -10px;
        font-size: clamp(6rem, 11vw, 10rem);
    }

    .gsc-history-entry.is-reverse .gsc-history-entry__year {
        right: -10px;
    }
}

@media (max-width: 760px) {
    .gsc-history {
        padding: 88px 20px 78px !important;
    }

    .gsc-history::after {
        top: 20px;
        right: -110px;
        width: 330px;
        opacity: .022;
    }

    .gsc-history__intro {
        margin-bottom: 58px;
    }

    .gsc-history__title {
        font-size: clamp(3rem, 15vw, 5rem) !important;
    }

    .gsc-history__lead {
        margin-top: 22px !important;
        font-size: .98rem !important;
        line-height: 1.8 !important;
    }

    .gsc-history__archive {
        padding-left: 26px;
    }

    .gsc-history__rail {
        left: 7px;
        top: 26px;
        bottom: 24px;
        transform: none;
    }

    .gsc-history-entry,
    .gsc-history-entry.is-reverse {
        display: block;
        min-height: 0;
        padding: 35px 0 78px;
        opacity: .62;
    }

    .gsc-history-entry__marker {
        top: 46px;
        left: 7px;
        width: 18px;
        height: 18px;
        transform: translateX(-50%);
    }

    .gsc-history-entry.is-active .gsc-history-entry__marker {
        transform: translateX(-50%) scale(1.04);
    }

    .gsc-history-entry__visual,
    .gsc-history-entry.is-reverse .gsc-history-entry__visual {
        padding: 0;
        margin: 0 0 54px;
    }

    .gsc-history-entry__story,
    .gsc-history-entry.is-reverse .gsc-history-entry__story {
        padding: 0;
        text-align: left;
        max-width: none;
    }

    .gsc-history-entry__year,
    .gsc-history-entry.is-reverse .gsc-history-entry__year {
        top: -38px;
        left: 6px;
        right: auto;
        font-size: clamp(5.6rem, 23vw, 9rem);
    }

    .gsc-history-entry__media {
        width: 100%;
    }

    .gsc-history-entry__media-frame::before {
        inset: 7px;
    }

    .gsc-history-entry__image {
        aspect-ratio: 1.28 / 1;
    }

    .gsc-history-entry__caption {
        font-size: .55rem;
        letter-spacing: .12em;
    }

    .gsc-history-entry__date {
        margin-bottom: 14px;
        font-size: .61rem;
        letter-spacing: .17em;
    }

    .gsc-history-entry__title {
        margin-bottom: 21px !important;
        padding-bottom: 18px;
        font-size: clamp(2rem, 9vw, 3rem) !important;
    }

    .gsc-history-entry__description {
        font-size: .98rem !important;
        line-height: 1.85 !important;
    }
}

@media (max-width: 480px) {
    .gsc-history {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .gsc-history__eyebrow {
        gap: 9px;
        font-size: .59rem;
        letter-spacing: .17em;
    }

    .gsc-history__eyebrow::before,
    .gsc-history__eyebrow::after {
        width: 20px;
    }

    .gsc-history__lead {
        font-size: .95rem !important;
    }

    .gsc-history__archive {
        padding-left: 22px;
    }

    .gsc-history__rail,
    .gsc-history-entry__marker {
        left: 5px;
    }

    .gsc-history-entry__marker {
        top: 42px;
    }

    .gsc-history-entry__year,
    .gsc-history-entry.is-reverse .gsc-history-entry__year {
        left: 2px;
        font-size: clamp(5rem, 25vw, 7rem);
    }

    .gsc-history-entry__caption {
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .gsc-history-entry__caption span:last-child {
        margin-left: auto;
    }

    .gsc-history__fallback p {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gsc-history-entry,
    .gsc-history-entry.is-active,
    .gsc-history-entry__marker,
    .gsc-history-entry.is-active .gsc-history-entry__marker,
    .gsc-history-entry__marker span,
    .gsc-history-entry__year,
    .gsc-history-entry.is-active .gsc-history-entry__year,
    .gsc-history-entry__image,
    .gsc-history-entry.is-active .gsc-history-entry__image {
        opacity: 1;
        transform: none;
        transition: none;
    }
}/* ============================================================================
   GSC-TEMPC ABOUT — HISTORY — LOGO GREEN (#30AA28) ON PURE WHITE
   Paste at the VERY BOTTOM of the history CSS file.
   ============================================================================ */

/* ---------- 1. Variables ---------- */
.gsc-history {
    --history-ivory: #ffffff;
    --history-paper: #ffffff;
    --history-green: #30AA28;
    --history-green-soft: #30AA28;
    --history-line-soft: rgba(48, 170, 40, 0.15);
    --history-gold: #d9a93d;
    --history-gold-soft: #e8c36a;
    --history-line: rgba(217, 169, 61, 0.50);
}

/* ---------- 2. Pure white background ---------- */
.gsc-history {
    background: #ffffff !important;
    border-top-color: rgba(48, 170, 40, 0.12);
    border-bottom-color: rgba(48, 170, 40, 0.12);
}

/* faint vertical haze */
.gsc-history::before {
    display: none;
}

/* faint logo watermark in the corner */
.gsc-history::after {
    display: none;
}

/* ---------- 3. Timeline rail (gold stays, slightly brighter) ---------- */
.gsc-history__rail {
    background: linear-gradient(
        to bottom,
        transparent 0,
        rgba(217, 169, 61, 0.50) 5%,
        rgba(217, 169, 61, 0.70) 50%,
        rgba(217, 169, 61, 0.50) 95%,
        transparent 100%
    );
}

.gsc-history-entry__marker::before {
    border-color: rgba(217, 169, 61, 0.60);
}

.gsc-history-entry.is-active .gsc-history-entry__marker {
    box-shadow: 0 0 0 5px rgba(217, 169, 61, 0.12);
}

/* ---------- 4. Big archival years ---------- */
.gsc-history-entry__year {
    color: rgba(48, 170, 40, 0.10);
}

.gsc-history-entry.is-active .gsc-history-entry__year {
    color: rgba(48, 170, 40, 0.16);
}

/* ---------- 5. Photo frame ---------- */
.gsc-history-entry__media-frame {
    background: #ffffff;
    border-color: rgba(48, 170, 40, 0.18);
    box-shadow: 0 18px 40px rgba(48, 170, 40, 0.14);
}

/* ---------- 6. Gold details ---------- */
.gsc-history__ornament span,
.gsc-history__eyebrow::before,
.gsc-history__eyebrow::after {
    background: #e8c36a;
}

.gsc-history__ornament i,
.gsc-history__closing i {
    border-color: #d9a93d;
}

.gsc-history__closing i::after {
    background: #d9a93d;
}