:root {
    --history-ink: #2e2015;
    --history-brown: #6f4315;
    --history-gold: #bd852d;
    --history-paper: #f8efdf;
    --history-line: #dfc8a5;
    --history-blue: #086bd9;
}

body.history-page {
    margin: 0;
    color: var(--history-ink);
    background: var(--history-paper);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    touch-action: pan-x pan-y;
}

.history-page a { color: inherit; text-decoration: none; }
.history-page button { font: inherit; }

.history-hero {
    position: relative;
    min-height: 260px;
    color: #fff;
    overflow: hidden;
}

.history-hero__photo {
    position: absolute;
    inset: 0;
    background: url("../images/desing-photos/members3.jpeg") center 53% / cover no-repeat;
}

.history-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(49, 23, 5, .96) 0%, rgba(65, 31, 8, .86) 25%, rgba(70, 35, 12, .48) 50%, rgba(41, 20, 8, .08) 78%),
        linear-gradient(0deg, rgba(40, 17, 3, .28), transparent 55%);
}

.history-hero__inner {
    position: relative;
    z-index: 1;
    min-height: 260px;
    padding: 34px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.history-breadcrumbs {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.history-breadcrumbs a:first-child { color: #f1bf55; }

.history-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 5vw, 70px);
    font-weight: 400;
    line-height: .98;
    text-shadow: 0 4px 16px rgba(0, 0, 0, .42);
}

.history-title-rule,
.history-section-heading > span {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #d5a449;
}

.history-title-rule i { width: 76px; }
.history-section-heading > span i { width: 52px; }
.history-title-rule i,
.history-section-heading > span i { height: 1px; background: currentColor; }
.history-title-rule b,
.history-section-heading > span b { font-size: 10px; }

.history-hero__inner > p {
    margin: 0;
    color: #f3d47a;
    font-size: 18px;
}

.history-main {
    padding: 30px 0 70px;
    background-color: #f9f0e1;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(122, 77, 28, .05) 1px, transparent 0),
        linear-gradient(90deg, rgba(255, 255, 255, .3), transparent 32%, rgba(255, 255, 255, .24));
    background-size: 18px 18px, auto;
}

.history-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 42px;
    align-items: start;
}

.history-primary { min-width: 0; }

.history-section-heading {
    margin: 0 auto 26px;
    text-align: center;
}

.history-eyebrow {
    display: none;
    margin: 0 0 4px;
    color: var(--history-gold);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.history-section-heading h2 {
    margin: 0;
    font-size: clamp(34px, 3.5vw, 47px);
    font-weight: 400;
    line-height: 1.1;
}

.history-section-heading > span {
    justify-content: center;
    margin: 8px 0;
}

.history-section-heading > p:last-child {
    max-width: 660px;
    margin: 0 auto;
    color: #594638;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

.history-timeline {
    position: relative;
    padding-left: 84px;
}

.history-timeline::before {
    position: absolute;
    top: 15px;
    bottom: 16px;
    left: 35px;
    width: 2px;
    background: linear-gradient(#c88c27, #d6a54f);
    content: "";
}

.history-entry {
    position: relative;
    margin-bottom: 13px;
    scroll-margin-top: 18px;
}

.history-entry__marker {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: -84px;
    width: 84px;
    height: 58px;
    padding: 0 7px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #7d460f, #412005);
    border: 3px solid #fff6e6;
    border-radius: 999px;
    box-shadow: 0 0 0 1px #c48725, 0 7px 16px rgba(76, 36, 6, .16);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
}

.history-entry__marker::before {
    position: absolute;
    top: 26px;
    right: 82px;
    width: 17px;
    height: 2px;
    background: #c88c27;
    content: "";
}

.history-entry__marker::after {
    position: absolute;
    top: 21px;
    right: 98px;
    width: 9px;
    height: 9px;
    background: #fff9ed;
    border: 2px solid #c88c27;
    border-radius: 50%;
    content: "";
}

.history-entry__card {
    padding: 17px 20px 14px;
    background: rgba(255, 252, 246, .76);
    border: 1px solid var(--history-line);
    border-radius: 9px;
    box-shadow: 0 7px 20px rgba(77, 43, 18, .07);
}

.history-entry__card h3 {
    margin: 0 0 5px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.history-entry__figure {
    max-width: 560px;
    margin: 15px auto 18px;
}

.history-entry__figure img {
    width: 100%;
    max-height: 350px;
    display: block;
    object-fit: cover;
    border: 1px solid #dfc49b;
    border-radius: 9px;
    box-shadow: 0 9px 24px rgba(75, 40, 13, .1);
}

.history-entry__figure figcaption {
    margin-top: 10px;
    color: #6b421e;
    font-size: 18px;
    font-style: italic;
    text-align: center;
}

.history-entry__preview,
.history-entry__full p {
    margin: 0 0 12px;
    color: #4e4138;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

.history-entry__preview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.history-entry__full[hidden] { display: none; }
.history-entry__full p:last-child { margin-bottom: 2px; }
.history-entry.is-expanded .history-entry__preview { display: none; }

.history-read-more {
    min-height: 34px;
    margin: 2px 0 0 auto;
    padding: 4px 2px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #78450f;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.history-read-more:hover,
.history-read-more:focus-visible { color: var(--history-blue); }
.history-read-more i { transition: transform .2s ease; }
.history-read-more:hover i { transform: translateX(3px); }

.history-closing {
    margin: 28px 0 0 84px;
    padding: 24px;
    display: grid;
    justify-items: center;
    color: #fff8ea;
    background: linear-gradient(145deg, #724013, #422006);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(71, 33, 5, .15);
    text-align: center;
}

.history-closing > img { width: auto; height: 48px; display: block; filter: brightness(0) saturate(100%) invert(78%) sepia(49%) saturate(618%) hue-rotate(356deg) brightness(96%) contrast(87%); }
.history-closing p { margin: 8px 0 2px; font-size: 18px; }
.history-closing strong { color: #f2cf7b; font-size: 21px; }
.history-closing small { margin-top: 8px; opacity: .8; font-family: Arial, sans-serif; }

.history-sidebar .quick-navigation > a.is-active {
    background: #fff3d5;
    box-shadow: inset 3px 0 #b87918;
}

@media (max-width: 1100px) {
    .history-layout {
        grid-template-columns: minmax(0, 1fr) 255px;
        gap: 25px;
    }
}

@media (max-width: 900px) {
    .history-layout { display: block; }
    .history-sidebar { display: none; }
    .history-main { padding-top: 25px; }
}

@media (max-width: 700px) {
    .history-hero,
    .history-hero__inner { min-height: 235px; }

    .history-hero__photo {
        background-position: 61% 52%;
    }

    .history-hero__overlay {
        background: linear-gradient(90deg, rgba(49, 23, 5, .96), rgba(59, 28, 7, .79) 62%, rgba(44, 21, 6, .28));
    }

    .history-hero__inner {
        padding: 25px 0 24px;
        justify-content: flex-start;
    }

    .history-breadcrumbs { font-size: 12px; }
    .history-hero h1 { font-size: 48px; }
    .history-hero__inner > p { max-width: 330px; font-size: 16px; line-height: 1.45; }
    .history-eyebrow { display: block; }
    .history-section-heading { text-align: left; }
    .history-section-heading > span { justify-content: flex-start; }
    .history-section-heading h2 { font-size: 34px; }
    .history-section-heading > p:last-child { font-size: 15px; }

    .history-timeline { padding-left: 62px; }
    .history-timeline::before { left: 25px; }
    .history-entry__marker {
        left: -62px;
        width: 60px;
        height: 48px;
        padding-inline: 4px;
        font-size: 10px;
    }
    .history-entry__marker::before { top: 21px; right: 58px; width: 10px; }
    .history-entry__marker::after { top: 16px; right: 67px; }
    .history-entry__card { padding: 15px 14px 12px; }
    .history-entry__card h3 { font-size: 20px; }
    .history-entry__figure {
        margin: 13px auto 16px;
    }
    .history-entry__figure figcaption {
        font-size: 16px;
    }
    .history-entry__preview,
    .history-entry__full p { font-size: 15px; line-height: 1.65; }
    .history-closing { margin-left: 0; }
}

@media (max-width: 420px) {
    .history-timeline { padding-left: 54px; }
    .history-timeline::before { left: 22px; }
    .history-entry__marker {
        left: -54px;
        width: 48px;
        font-size: 9px;
    }
    .history-entry__marker::before,
    .history-entry__marker::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
