/* =========================================================
   History Page — Premium (Units/Clubs language)
   Scoped to: body.page-template-page-history-php
========================================================= */

body.page-template-page-history-php {
    --maroon: #5a0011;
    --maroon2: #3f000c;
    --maroon3: #7a1a2e;
    --maroon-light: rgba(90, 0, 17, .07);
    --maroon-mid: rgba(90, 0, 17, .14);

    --gold: #f6c74c;
    --gold2: #e8a800;
    --gold3: #fde08a;

    --text: #1a0a0f;
    --muted: #6b5057;
    --bg: #faf8f5;
    --card: #fff;

    --border: rgba(90, 0, 17, .09);
    --border-strong: rgba(90, 0, 17, .18);

    --shadow-sm: 0 1px 4px rgba(90, 0, 17, .06), 0 4px 16px rgba(90, 0, 17, .07);
    --shadow-md: 0 4px 12px rgba(90, 0, 17, .08), 0 12px 40px rgba(90, 0, 17, .12);
    --shadow-lg: 0 8px 24px rgba(90, 0, 17, .12), 0 24px 64px rgba(90, 0, 17, .18);

    --radius: 20px;
    --radiusLg: 28px;
    --radiusXl: 36px;

    background: var(--bg);
}

/* =========================================================
   HERO
========================================================= */

/* Using generic hero styles from components/hero.css */

body.page-template-page-history-php .hero .hero-inner {
    width: 100%;
    padding-top: calc(var(--heroPadY, 60px) + var(--headerH));
}

body.page-template-page-history-php .hero .hero-content {
    max-width: 720px;
}

/* Keep overall spacing consistent with orgs template */
body.page-template-page-history-php .site-main {
    background: var(--bg);
    padding-top: var(--headerH) !important;
}

body.page-template-page-history-php .site-footer {
    margin-top: 0;
}

/* =========================================================
   PAGE WRAPPER
========================================================= */

body.page-template-page-history-php .history-page {
    padding: 0 0 120px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 900px 520px at 105% -5%, rgba(246, 199, 76, .13) 0%, transparent 65%),
        radial-gradient(ellipse 800px 600px at -10% 75%, rgba(90, 0, 17, .10) 0%, transparent 62%);
}

@import url('../components/intros.css');

body.page-template-page-history-php .history-intro.page-intro {
    margin-bottom: 34px;
}

body.page-template-page-history-php .history-intro .page-intro-head,
body.page-template-page-history-php .history-intro .intro-panel {
    max-width: var(--max);
}


body.page-template-page-history-php .history-intro .history-intro-body {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 360px);
    gap: 14px 24px;
    align-items: start;
}



body.page-template-page-history-php .history-intro .history-intro-lead {
    color: rgba(26, 10, 15, .84);
    font-size: 16px;
}

body.page-template-page-history-php .history-intro .history-intro-lead strong,
body.page-template-page-history-php .history-intro .intro-panel-prose strong {
    color: var(--maroon2);
}



/* =========================================================
   JUMP LINKS
========================================================= */

body.page-template-page-history-php .history-jumps {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: var(--radiusLg);
    border: 1px solid var(--border);
    background: linear-gradient(105deg, rgba(255, 255, 255, .95) 0%, rgba(253, 249, 242, .95) 100%);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.page-template-page-history-php .history-jumps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold2) 100%);
    border-radius: var(--radiusLg) 0 0 var(--radiusLg);
}

body.page-template-page-history-php .history-jumps-label {
    color: var(--muted);
    font-weight: 900;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-left: 8px;
}

body.page-template-page-history-php .history-jumps .jump-link {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(90, 0, 17, .14);
    background: rgba(255, 255, 255, .72);
    color: rgba(0, 0, 0, .80);
    text-decoration: none;
    font-weight: 850;
    font-size: 12px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.page-template-page-history-php .history-jumps .jump-link:hover {
    transform: translateY(-2px);
    border-color: rgba(246, 199, 76, .42);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .10), 0 12px 24px rgba(246, 199, 76, .10);
}

body.page-template-page-history-php .history-jumps--intro {
    margin: 16px 0 0 66px;
}

/* =========================================================
   SECTIONS + PANELS
========================================================= */

body.page-template-page-history-php .history-section {
    scroll-margin-top: 120px;
    margin-top: 26px;
}

body.page-template-page-history-php .history-panel {
    border-radius: 18px !important;
    border: 1px solid rgba(90, 0, 17, .12) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .86));
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06) !important;
    padding: 30px 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 42px;
}

/* remove decorative gold glow from panels */
body.page-template-page-history-php .history-panel::before {
    display: none !important;
}

body.page-template-page-history-php .history-panel-head .kicker {
    margin-bottom: 10px;
}

/* Kicker */
body.page-template-page-history-php .kicker {
    font-size: 12px;
    letter-spacing: .10em;
    text-transform: uppercase;
    font-weight: 600;
    color: #7a1c25;
    margin-bottom: 10px;
}

body.page-template-page-history-php .history-panel h3 {
    margin: 0 0 10px;
}

body.page-template-page-history-php .history-panel p {
    margin: 0 0 14px !important;
    line-height: 1.6 !important;
    color: rgba(0, 0, 0, .82);
}

/* Two-up content grid inside panels */
body.page-template-page-history-php .history-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body.page-template-page-history-php .history-card {
    padding: 22px 24px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(90, 0, 17, .14) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

body.page-template-page-history-php .history-card h4,
body.page-template-page-history-php .history-card h3 {
    margin-top: 6px !important;
    margin-bottom: 12px !important;
}

body.page-template-page-history-php .history-card h4 {
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -.01em;
}

body.page-template-page-history-php .history-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(0, 0, 0, .82);
    line-height: 1.75;
}

body.page-template-page-history-php .history-note {
    margin-top: 10px !important;
    color: rgba(0, 0, 0, .72) !important;
    font-size: 14px;
}

/* =========================================================
   ACCORDIONS
========================================================= */

body.page-template-page-history-php .history-accordion {
    margin-top: 16px;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
    overflow: hidden;
}

body.page-template-page-history-php .history-accordion > summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.page-template-page-history-php .history-accordion > summary::-webkit-details-marker {
    display: none;
}

body.page-template-page-history-php .history-accordion .history-caret {
    opacity: .75;
    transition: transform .2s ease;
}

body.page-template-page-history-php .history-accordion[open] .history-caret {
    transform: rotate(180deg);
}

body.page-template-page-history-php .history-accordion-body {
    padding: 0 18px 18px;
}

body.page-template-page-history-php .history-accordion.sub {
    margin-top: 12px;
}

/* =========================================================
   OFFICER SLATE
========================================================= */

body.page-template-page-history-php .history-officers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin-top: 10px;
}

body.page-template-page-history-php .history-officer {
    padding: 10px 12px;
    border-radius: 8px !important;
    border: 1px solid rgba(90, 0, 17, .16) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

body.page-template-page-history-php .history-role {
    font-size: 10px !important;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .20em !important;
    color: rgba(90, 0, 17, .70) !important;
    margin-bottom: 2px;
}

body.page-template-page-history-php .history-name {
    font-weight: 850;
    color: rgba(0, 0, 0, .82);
}

/* "pill" name cloud for the long list */
body.page-template-page-history-php .history-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
}

body.page-template-page-history-php .history-pill {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(90, 0, 17, .14);
    background: rgba(255, 255, 255, .70);
    color: rgba(0, 0, 0, .78);
    font-weight: 800;
    font-size: 12px;
}

/* =========================================================
   TABLES (final normalized)
========================================================= */

body.page-template-page-history-php .history-table-wrap {
    margin-top: 18px;
    border-radius: var(--radiusLg);
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
    overflow: hidden;
}

body.page-template-page-history-php .history-table {
    width: 100%;
    border-collapse: collapse;

    border-radius: 12px !important;
    box-shadow: none !important;
    border: 1px solid rgba(90, 0, 17, .14) !important;
}

body.page-template-page-history-php .history-table th,
body.page-template-page-history-php .history-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    text-align: left;
    vertical-align: top;
}

body.page-template-page-history-php .history-table thead {
    background: #f2eee8 !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(90, 0, 17, .15) !important;
}

body.page-template-page-history-php .history-table th {
    font-size: 11px !important;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .18em !important;
    color: rgba(90, 0, 17, .75) !important;
}

body.page-template-page-history-php .history-table tbody tr {
    border-bottom: 1px solid rgba(90, 0, 17, .12) !important;
}

body.page-template-page-history-php .history-table tr:last-child td,
body.page-template-page-history-php .history-table tbody tr:last-child {
    border-bottom: none !important;
}

body.page-template-page-history-php .history-table td:first-child {
    width: 180px !important;
    font-weight: 600 !important;
    color: #5a0011 !important;
}

/* =========================================================
   CALLOUTS / TODAY
========================================================= */

body.page-template-page-history-php .history-callout {
    margin-top: 16px;
    border-radius: var(--radiusXl);
    border: 1px solid rgba(90, 0, 17, .14) !important;
    background: #f6f3ee !important;
    background-image: none !important;
    box-shadow: none !important;
    overflow: hidden;
}

body.page-template-page-history-php .history-callout-inner {
    padding: 22px 22px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.page-template-page-history-php .history-today {
    background: #f5f2ed !important;
    border: 1px solid rgba(90, 0, 17, .14) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

/* Bottom actions */
body.page-template-page-history-php .history-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================================
   STORY SECTION
========================================================= */

body.page-template-page-history-php .history-story {
    display: grid;
    gap: 18px;
    margin-top: 10px;
}

body.page-template-page-history-php .history-story-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}

body.page-template-page-history-php .history-story-row.is-reverse {
    grid-template-columns: 0.85fr 1.15fr;
}

body.page-template-page-history-php .history-story-row.is-reverse .history-story-copy {
    order: 2;
}

body.page-template-page-history-php .history-story-row.is-reverse .history-story-media {
    order: 1;
}

body.page-template-page-history-php .history-story-copy {
    min-width: 0;
    padding-left: 30px;
}

body.page-template-page-history-php .history-story-copy p {
    margin: 0 0 14px;
    line-height: 1.75;
    max-width: 68ch;
    color: rgba(20, 20, 20, .82);
}

body.page-template-page-history-php .history-story-media {
    justify-self: end;
    max-width: 560px;
    width: 100%;
    padding-right: 24px;
    margin: 0;
    min-width: 0;
    position: relative;
}

body.page-template-page-history-php .history-story-media img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;

    border-radius: 16px;
    background: #fff;
    padding: 6px;
    border: 1px solid rgba(120, 20, 30, .08);

    box-shadow: 0 10px 24px rgba(15, 23, 42, .10), 0 2px 8px rgba(15, 23, 42, .06);

    filter: contrast(1.02) saturate(1.02);
}

body.page-template-page-history-php .history-story-media::after {
    content: none;
}

body.page-template-page-history-php .history-caption {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(20, 20, 20, .70);
    opacity: .82;
    line-height: 1.45;
}

/* Headings used in story */
body.page-template-page-history-php .history-h3 {
    margin: 6px 0 10px;
    line-height: 1.15;
    letter-spacing: -.02em;
    position: relative;
    padding-bottom: 10px;
}

body.page-template-page-history-php .history-h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(196, 148, 67, 1), rgba(196, 148, 67, .25));
}

/* Alternate background rhythm */
body.page-template-page-history-php .history-story .history-panel:nth-of-type(odd) {
    background: rgba(255, 255, 255, .65);
    border-radius: 24px;
    padding: 36px;
}

body.page-template-page-history-php .history-story .history-panel:nth-of-type(even) {
    background: transparent;
    padding: 36px 0;
}

body.page-template-page-history-php .history-divider {
    height: 1px;
    margin: 60px 0 40px;
    background: linear-gradient(90deg, transparent, rgba(196, 148, 67, .6), transparent);
}

/* =========================================================
   SCROLL REVEAL
========================================================= */

body.page-template-page-history-php [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
}

body.page-template-page-history-php [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   RESPONSIVE (ALL MEDIA QUERIES AT BOTTOM)
========================================================= */

@media (max-width: 980px) {
    body.page-template-page-history-php .history-intro {
        padding: 22px 18px 22px;
    }

    body.page-template-page-history-php .history-stats {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    body.page-template-page-history-php .history-intro .page-intro-title {
        font-size: clamp(30px, 5.4vw, 42px);
    }

    body.page-template-page-history-php .history-intro .page-intro-sub {
        font-size: 16px;
    }

    body.page-template-page-history-php .history-intro .history-intro-body {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body.page-template-page-history-php .history-intro .intro-panel-prose {
        padding-left: 66px;
        max-width: none;
    }

    body.page-template-page-history-php .history-stats .intro-stat {
        min-height: 132px;
    }

    body.page-template-page-history-php .history-grid {
        grid-template-columns: 1fr;
    }

    body.page-template-page-history-php .history-officers {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    body.page-template-page-history-php .history-intro {
        padding: 18px 12px 20px;
    }



    body.page-template-page-history-php .history-jumps--intro {
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    body.page-template-page-history-php .history-story-row,
    body.page-template-page-history-php .history-story-row.is-reverse {
        grid-template-columns: 1fr;
    }

    body.page-template-page-history-php .history-story-row.is-reverse .history-story-copy,
    body.page-template-page-history-php .history-story-row.is-reverse .history-story-media {
        order: unset;
    }
}



@media (prefers-reduced-motion: reduce) {
    body.page-template-page-history-php [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
