@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap");

/* ==================================================
   Variables
================================================== */

:root {
    --bylaws-cream: #f1e8d8;
    --bylaws-gold: #b48a2b;
    --bylaws-light-gold: #ddcba9;
    --bylaws-white: #fffdf8;
    --bylaws-text: #20201e;
    --bylaws-black: #111111;
    --bylaws-max-width: 1640px;
}

/* ==================================================
   Base page styles
================================================== */

.bylaws-page {
    width: 100%;
    margin: 0;
    background: var(--bylaws-cream);
    color: var(--bylaws-text);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.bylaws-page *,
.bylaws-page *::before,
.bylaws-page *::after {
    box-sizing: border-box;
}

.bylaws-page h1,
.bylaws-page h2,
.bylaws-page h3,
.bylaws-page p {
    margin-top: 0;
}

.bylaws-page h1,
.bylaws-page h2,
.bylaws-page h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
}

.bylaws-page a {
    color: inherit;
    text-decoration: none;
}

/* ==================================================
   Shared page alignment
================================================== */

.bylaws-hero-inner,
.bylaws-content {
    width: min(calc(100% - 15.2vw), var(--bylaws-max-width));
    margin-left: auto;
    margin-right: auto;
}

/* ==================================================
   Hero
================================================== */

.bylaws-hero {
    min-height: 255px;
    padding: 38px 0 48px;
    background: var(--bylaws-black);
    color: var(--bylaws-white);
}

.bylaws-hero-inner {
    text-align: left;
}

/* Breadcrumbs */
.bylaws-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 30px;
    color: var(--bylaws-white);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.65px;
    line-height: 1.4;
    text-transform: uppercase;
}

.bylaws-breadcrumbs a:hover {
    color: var(--bylaws-gold);
}

/* Gold label */
.bylaws-eyebrow {
    margin-bottom: 12px;
    color: var(--bylaws-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Hero heading */
.bylaws-hero h1 {
    max-width: 620px;
    margin: 0;
    color: var(--bylaws-white);
    font-size: clamp(52px, 5.5vw, 78px);
    line-height: 0.86;
    letter-spacing: -3px;
}

/* Hero description */
.bylaws-hero-description {
    max-width: 430px;
    margin: 18px 0 0;
    color: var(--bylaws-white);
    font-size: 14px;
    line-height: 1.45;
}

/* ==================================================
   Main content
================================================== */

.bylaws-content {
    padding-top: 66px;
    padding-bottom: 105px;
}

.bylaws-grid {
    display: grid;
    grid-template-columns: minmax(180px, 27%) minmax(0, 1fr);
    column-gap: 7.5vw;
    align-items: start;
}

/* ==================================================
   Contact card
================================================== */

.bylaws-contact-card {
    width: 100%;
    padding-top: 14px;
    border-top: 2px solid var(--bylaws-light-gold);
    color: var(--bylaws-text);
    font-size: 13px;
}

.bylaws-contact-title {
    margin-bottom: 14px;
    color: #90702d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    line-height: 1.4;
    text-transform: uppercase;
}

.bylaws-contact-card p {
    margin: 0 0 17px;
}

.bylaws-contact-card p:last-child {
    margin-bottom: 0;
}

.bylaws-phone {
    color: #997529;
    font-weight: 700;
}

/* ==================================================
   Document content
================================================== */

.bylaws-document {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.bylaws-section {
    width: 100%;
    margin: 0;
    padding: 0 0 40px;
}

.bylaws-section + .bylaws-section {
    padding-top: 27px;
    border-top: 1px solid var(--bylaws-light-gold);
}

.bylaws-section h2 {
    margin: 0 0 16px;
    color: var(--bylaws-text);
    font-size: clamp(38px, 4vw, 55px);
    line-height: 0.95;
    letter-spacing: -2px;
}

.bylaws-section h3 {
    margin: 16px 0 3px;
    color: var(--bylaws-text);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.bylaws-section p {
    max-width: 780px;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.45;
}

.bylaws-adoption {
    margin-top: 20px !important;
    font-weight: 500;
}

/* ==================================================
   Medium screens
================================================== */

@media (max-width: 1000px) {
    .bylaws-grid {
        grid-template-columns: minmax(170px, 25%) minmax(0, 1fr);
        column-gap: 5vw;
    }

    .bylaws-section h2 {
        font-size: clamp(36px, 5vw, 50px);
    }

    .bylaws-section p,
    .bylaws-section h3 {
        font-size: 13px;
    }
}

/* ==================================================
   Tablet
================================================== */

@media (max-width: 850px) {
    .bylaws-hero {
        min-height: auto;
        padding: 42px 0 52px;
    }

    .bylaws-hero-inner,
    .bylaws-content {
        width: calc(100% - 14vw);
    }

    .bylaws-content {
        padding-top: 65px;
        padding-bottom: 85px;
    }

    .bylaws-grid {
        grid-template-columns: 1fr;
        row-gap: 45px;
    }

    .bylaws-contact-card,
    .bylaws-document {
        grid-column: 1;
    }

    .bylaws-contact-card {
        max-width: 280px;
    }

    .bylaws-hero h1 {
        font-size: clamp(52px, 10vw, 74px);
        letter-spacing: -2.5px;
    }
}

/* ==================================================
   Mobile
================================================== */

@media (max-width: 560px) {
    .bylaws-hero {
        padding: 38px 0 46px;
    }

    .bylaws-hero-inner,
    .bylaws-content {
        width: calc(100% - 12vw);
    }

    .bylaws-breadcrumbs {
        margin-bottom: 30px;
        font-size: 9px;
    }

    .bylaws-hero h1 {
        font-size: 52px;
        letter-spacing: -2px;
    }

    .bylaws-hero-description {
        font-size: 14px;
    }

    .bylaws-section h2 {
        font-size: 40px;
        letter-spacing: -1.5px;
    }

    .bylaws-section h3 {
        font-size: 13px;
    }

    .bylaws-section p {
        font-size: 14px;
        line-height: 1.5;
    }
}
