﻿
/* =========================================================
   SAINT ANNE'S RUN
   PUBLIC WEBSITE STYLESHEET

   Consolidated homepage layout and responsive styling.
   ========================================================= */


/* =========================================================
   1. DESIGN VARIABLES
   ========================================================= */

:root {
    --navy: #344354;
    --deep-navy: #233343;
    --salmon: #e7a69a;
    --salmon-dark: #be776b;
    --blush: #f8eae6;
    --paper: #fffdfa;
    --cream: #f6f3ee;
    --ink: #203142;
    --muted: #697581;
    --border: #dedbd6;
}


/* =========================================================
   2. GLOBAL STYLES
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p,
figure {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-weight: 400;
}

p {
    line-height: 1.55;
}

h2 {
    font-size: clamp(34px, 3.5vw, 58px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}

.eyebrow {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: var(--salmon-dark);
}

#legacy,
#racehorse,
#weanlings,
#mares,
#research,
#stewardship {
    scroll-margin-top: 90px;
}


/* =========================================================
   3. HEADER AND NAVIGATION
   ========================================================= */

.site-header {
    background: var(--paper);
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #eeeae6;
}

.header-inner {
    max-width: 1600px;
    min-height: 76px;
    padding: 14px 4%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    white-space: nowrap;
}

    .brand span {
        font-size: clamp(19px, 2vw, 29px);
        color: var(--ink);
    }

    .brand small {
        font: 9px Arial, Helvetica, sans-serif;
        letter-spacing: 2.3px;
        margin-top: 7px;
        color: var(--muted);
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.3vw, 35px);
}

    .main-nav a {
        font: 700 11px Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        letter-spacing: .7px;
        text-decoration: none;
    }

        .main-nav a:hover {
            color: var(--salmon-dark);
        }

    .main-nav .nav-contact {
        background: var(--salmon);
        padding: 13px 28px;
        border: 1px solid var(--salmon-dark);
    }

.menu-toggle {
    display: none;
}


/* =========================================================
   4. IMAGE PLACEHOLDERS
   ========================================================= */

.photo-placeholder {
    background: repeating-linear-gradient( 135deg, transparent 0, transparent 21px, rgba(52, 67, 84, .035) 22px, rgba(52, 67, 84, .035) 23px ), #d9d8d3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .photo-placeholder span {
        font: 700 10px Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        letter-spacing: 1.4px;
        text-align: center;
        padding: 12px 16px;
        background: rgba(255, 253, 250, .85);
        color: var(--navy);
    }


/* =========================================================
   5. DYNAMIC HOMEPAGE PHOTOGRAPHY

   Default behavior for image slots.

   Individual sections override this when photographs
   must retain their natural dimensions.
   ========================================================= */

.homepage-image-slot {
    position: relative;
    overflow: hidden;
}

    .homepage-image-slot > .assigned-homepage-photo {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 1;
    }


/* =========================================================
   6. BUTTONS AND EDITORIAL LINKS
   ========================================================= */

.short-rule {
    width: 38px;
    height: 3px;
    background: var(--salmon-dark);
    margin: 20px 0;
}

.solid-button {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    padding: 14px 25px;
    background: var(--salmon);
    text-decoration: none;
    font: 700 12px Arial, Helvetica, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

    .solid-button:hover {
        background: #efb7ac;
    }

.editorial-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--salmon-dark);
    color: var(--ink);
    text-decoration: none;
    font: 700 11px Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

    .editorial-link span {
        color: var(--salmon-dark);
    }


/* =========================================================
   7. HOMEPAGE HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    background: var(--paper);
}

    .hero-media,
    .hero .hero-media.homepage-image-slot {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        overflow: hidden;
    }

    .hero .hero-media > .assigned-homepage-photo {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 42%;
        z-index: 0;
    }

.hero-fade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient( 90deg, var(--paper) 0%, rgba(255, 253, 250, .98) 21%, rgba(255, 253, 250, .75) 39%, rgba(255, 253, 250, .15) 65%, transparent 85% );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(540px, 46%);
    margin-left: 4%;
    padding: 50px 0;
}

.hero h1 {
    font-size: clamp(52px, 5.5vw, 88px);
    line-height: .96;
    letter-spacing: -3.5px;
    margin-bottom: 18px;
}

    .hero h1 em {
        font-style: italic;
        color: var(--salmon-dark);
    }

.hero-description {
    font-size: clamp(16px, 1.3vw, 20px);
    max-width: 370px;
    margin-bottom: 23px;
}

/* The primary headline carries the message. */

.hero-quote {
    display: none;
}


/* =========================================================
   8. HISTORICAL LEGACY
   ========================================================= */

.legacy-section {
    display: grid;
    grid-template-columns: minmax(0, 34%) minmax(0, 66%);
    background: var(--paper);
    min-height: 0;
    align-items: start;
}

.legacy-intro {
    padding: 45px 7% 42px 12%;
    min-width: 0;
}

    .legacy-intro p:not(.eyebrow) {
        font-size: 16px;
        max-width: 430px;
    }

.historical-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
    padding: 35px 22px 25px 0;
    min-width: 0;
}

    .historical-gallery figure {
        margin: 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

.historic-photo {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #d6cfc4;
}

.historical-gallery figcaption {
    padding: 14px 4px 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.historical-gallery strong {
    color: var(--salmon-dark);
    font: 700 11px/1.5 Arial, Helvetica, sans-serif;
    letter-spacing: 1px;
}

.historical-gallery figcaption span {
    font-size: 13px;
    line-height: 1.5;
}

.archive-document {
    display: flex;
    flex-direction: column;
    background: var(--cream);
}

    .archive-document p {
        padding: 12px;
        font-style: italic;
        font-size: 14px;
    }


/* =========================================================
   9. HISTORICAL PHOTOGRAPHS

   Portrait and racing photographs use a common height.
   ========================================================= */

#legacy .historic-photo,
#legacy .historic-photo.homepage-image-slot {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

    #legacy .historic-photo > .assigned-homepage-photo {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Henry Fitzgibbon */

#legacy .legacy-category-photo:first-child
.historic-photo > .assigned-homepage-photo {
    object-position: center 30%;
}

/* Mistle Cat */

#legacy .legacy-category-photo:nth-child(2)
.historic-photo > .assigned-homepage-photo {
    object-position: center;
    object-fit: cover;
}


/* =========================================================
   10. HISTORICAL DOCUMENTS

   Use the image's widescreen proportions.
   ========================================================= */

#legacy .legacy-photo-link .document-photo,
#legacy .legacy-photo-link .document-photo.homepage-image-slot {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    overflow: hidden;
    background: transparent;
}

#legacy .document-photo > .assigned-homepage-photo,
#legacy .document-photo.homepage-image-slot > .assigned-homepage-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Override fixed heights from home-archive.css.
   That stylesheet loads after this file. */

#legacy .legacy-photo-link
.document-photo.homepage-image-slot {
    height: auto !important;
    flex-basis: auto !important;
    aspect-ratio: 16 / 9;
}


/* =========================================================
   11. FEATURED RACING HORSE

   Her Own Counsel
   ========================================================= */

.racing-section,
.sar-racing-layout {
    display: grid;
    grid-template-columns: minmax(0, 47%) minmax(0, 53%);
    align-items: center;
    background: var(--blush);
    min-height: 0;
}

.racing-intro {
    min-width: 0;
    padding: clamp(35px, 4vw, 65px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .racing-intro h2 {
        font-size: clamp(34px, 3.5vw, 56px);
        line-height: 1.08;
        margin-bottom: 25px;
        max-width: 520px;
    }

    .racing-intro p:not(.eyebrow) {
        font-size: 16px;
        line-height: 1.6;
        max-width: 550px;
    }

.sar-featured-horse-name {
    font-size: clamp(27px, 2.5vw, 39px);
    line-height: 1.12;
    margin: 0 0 9px;
}

.sar-horse-pedigree {
    color: var(--muted);
    font-size: 16px;
    font-style: italic;
    margin-bottom: 22px;
}


/* =========================================================
   12. RACING PHOTOGRAPH

   Widescreen image without letterboxing.
   ========================================================= */

#racehorse .racing-image,
#racehorse .racing-image.homepage-image-slot {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    align-self: center;
    overflow: hidden;
    background: transparent;
}

    #racehorse .racing-image > .assigned-homepage-photo,
    #racehorse .racing-image.homepage-image-slot > .assigned-homepage-photo {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.race-record {
    display: none;
}

.race-row {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.race-note {
    font-size: 14px;
    font-style: italic;
}


/* =========================================================
   13. EXPANDABLE DESCRIPTIONS
   ========================================================= */

.sar-full-description {
    margin-top: 12px;
    max-width: 100%;
    border-top: 1px solid var(--border);
}

    .sar-full-description summary {
        display: list-item;
        cursor: pointer;
        font: 700 12px/1.6 Arial, Helvetica, sans-serif;
        letter-spacing: .5px;
        color: var(--navy);
        padding: 14px 0;
    }

        .sar-full-description summary:hover {
            color: var(--salmon-dark);
        }

    .sar-full-description[open] summary {
        margin-bottom: 10px;
    }

    .sar-full-description p {
        white-space: pre-line;
        font-size: 15px;
        line-height: 1.65;
        overflow-wrap: anywhere;
        margin: 0 0 20px;
    }

    .sar-full-description:focus-within {
        outline-offset: 4px;
    }


/* =========================================================
   14. FOAL CROP
   ========================================================= */

.weanling-section {
    background: var(--blush);
    display: grid;
    grid-template-columns: minmax(0, 30%) minmax(0, 70%);
    padding: 45px 4% 55px;
    gap: 20px;
    align-items: start;
}

.weanling-intro {
    min-width: 0;
    padding-right: 30px;
}

    .weanling-intro p:not(.eyebrow) {
        max-width: 410px;
        font-size: 16px;
    }

.weanling-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
    align-items: start;
}

.horse-card {
    background: var(--paper);
    min-width: 0;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   15. FOAL PHOTOGRAPHS

   Natural height. No forced cropping.
   ========================================================= */

#weanlings .weanling-photo,
#weanlings .weanling-photo.homepage-image-slot {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    overflow: hidden;
    background: transparent;
}

    #weanlings .weanling-photo > .assigned-homepage-photo {
        display: block;
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: initial;
        object-position: initial;
    }

    /* Keep an image area if no photo is assigned. */

    #weanlings .weanling-photo.photo-placeholder {
        min-height: 210px;
        display: flex;
    }


/* =========================================================
   16. FOAL CARD CONTENT
   ========================================================= */

.horse-card-content {
    padding: 18px 17px 20px;
    min-width: 0;
}

    .horse-card-content small {
        display: block;
        color: var(--salmon-dark);
        font: 700 10px/1.5 Arial, Helvetica, sans-serif;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-bottom: 8px;
    }

    .horse-card-content h3 {
        font-size: clamp(23px, 2vw, 30px);
        line-height: 1.1;
        margin: 5px 0 10px;
    }

    .horse-card-content p {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 10px;
        overflow-wrap: anywhere;
    }

.horse-sex {
    display: inline-block;
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 10px;
}


/* =========================================================
   17. BROODMARE SECTION
   ========================================================= */

.mare-section {
    display: grid;
    grid-template-columns: minmax(0, 27%) minmax(0, 73%);
    align-items: start;
    gap: 0;
    padding: 55px 4%;
    background: var(--paper);
    min-height: 0;
}

.mare-heading {
    padding-right: 40px;
    min-width: 0;
}

    .mare-heading h2 {
        margin-bottom: 22px;
    }

    .mare-heading p:not(.eyebrow) {
        font-size: 16px;
        max-width: 360px;
    }

.mare-count {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 30px;
    display: flex;
    gap: 16px;
    align-items: center;
}

    .mare-count strong {
        font: 42px Georgia, serif;
        color: var(--salmon-dark);
    }

    .mare-count span {
        font: 700 10px/1.5 Arial, Helvetica, sans-serif;
        letter-spacing: 1px;
        max-width: 140px;
    }

.mare-carousel {
    min-width: 0;
    width: 100%;
}


/* =========================================================
   18. MARE SLIDE

   The photograph determines its own height.
   No stretching to match the text panel.
   ========================================================= */

#mares .mare-slide {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    align-items: start;
    height: auto;
    min-height: 0;
    background: var(--cream);
    overflow: visible;
}


/* =========================================================
   19. BROODMARE CONFORMATION PHOTOGRAPHS

   The JavaScript adds these images dynamically.

   Positioning must be relative, not absolute.
   ========================================================= */

#mares .mare-image,
#mares .mare-image.homepage-image-slot {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    align-self: start;
    overflow: hidden;
    background: transparent;
}

    #mares .mare-image > img.assigned-homepage-photo,
    #mares .mare-image.homepage-image-slot > img.assigned-homepage-photo {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        object-fit: initial;
        object-position: initial;
    }

    /* Before JavaScript finishes loading a photograph,
   show a reasonable placeholder. */

    #mares .mare-image.photo-placeholder {
        min-height: 320px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Once JavaScript removes photo-placeholder,
   the image determines the height. */

    #mares .mare-image:not(.photo-placeholder) {
        min-height: 0;
    }


/* =========================================================
   20. BROODMARE INFORMATION
   ========================================================= */

.mare-information {
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 30px 7%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-wrap: anywhere;
}

    .mare-information h3 {
        font-size: clamp(28px, 2.6vw, 43px);
        line-height: 1.12;
        margin: 6px 0 10px;
    }

.mare-pedigree {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 15px;
}

.mare-divider {
    height: 1px;
    background: var(--border);
    margin: 13px 0 23px;
}

.mare-detail-label {
    font: 700 10px/1.5 Arial, Helvetica, sans-serif;
    letter-spacing: 1.2px;
    color: var(--salmon-dark);
    margin-bottom: 8px;
}

.mare-stallion {
    font-size: 23px;
    line-height: 1.3;
    margin-bottom: 23px;
}

.mare-reasoning {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 5px;
    max-width: 55ch;
}


/* =========================================================
   21. COMPLETE MARE ANALYSIS
   ========================================================= */

.sar-mare-details {
    padding: 0 16px;
    margin-top: 12px;
}

    .sar-mare-details summary {
        font-size: 12px;
    }

    .sar-mare-details p {
        max-width: 85ch;
        padding: 4px 0 12px;
    }


/* =========================================================
   22. MARE CAROUSEL CONTROLS
   ========================================================= */

.mare-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 18px auto 15px;
}

.carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--navy);
    background: var(--paper);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 20px;
    line-height: 1;
    transition: background .2s ease;
}

    .carousel-arrow:hover {
        background: var(--salmon);
        border-color: var(--salmon-dark);
    }

    .carousel-arrow:focus-visible {
        outline: 2px solid var(--salmon-dark);
        outline-offset: 3px;
    }

.carousel-position {
    font: 700 12px Arial, Helvetica, sans-serif;
    color: var(--navy);
    letter-spacing: 2px;
    min-width: 75px;
    text-align: center;
}

.mare-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 5px 0 10px;
}

    .mare-selector button {
        background: transparent;
        border: 1px solid var(--border);
        padding: 9px 12px;
        font: 11px Arial, Helvetica, sans-serif;
        white-space: nowrap;
        transition: background .2s ease, border-color .2s ease;
    }

        .mare-selector button.active,
        .mare-selector button:hover {
            background: var(--salmon);
            border-color: var(--salmon);
        }

        .mare-selector button:focus-visible {
            outline: 2px solid var(--salmon-dark);
            outline-offset: 2px;
        }


/* =========================================================
   23. HORSE SENSE AND FARM STEWARDSHIP
   ========================================================= */

.closing-features {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

    .closing-features article {
        min-height: 355px;
        position: relative;
        overflow: hidden;
    }

.feature-text {
    position: relative;
    z-index: 1;
    padding: 50px 8%;
    max-width: 620px;
}

    .feature-text p:not(.eyebrow) {
        font-size: 16px;
        line-height: 1.6;
    }


/* =========================================================
   24. HORSE SENSE FEATURE
   ========================================================= */

.feature-research {
    background: var(--deep-navy);
    color: white;
}

    .feature-research h2 {
        color: white;
    }

    .feature-research .eyebrow {
        color: var(--salmon);
    }

.light-link {
    color: white;
}

.research-watermark {
    position: absolute;
    bottom: 13px;
    right: 20px;
    opacity: .08;
    font: 700 20px Arial, Helvetica, sans-serif;
    letter-spacing: 5px;
    transform: rotate(-12deg);
    pointer-events: none;
}


/* =========================================================
   25. FARM RESTORATION AND STEWARDSHIP
   ========================================================= */

.feature-farm {
    background: var(--cream);
}

.farm-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .45;
}

    .farm-photo.homepage-image-slot {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

.feature-farm .feature-text {
    background: linear-gradient( 90deg, var(--cream) 0%, rgba(246, 243, 238, .94) 58%, transparent 100% );
    min-height: 355px;
}


/* =========================================================
   26. FOOTER
   ========================================================= */

.site-footer {
    background: var(--paper);
    padding: 35px 4% 20px;
}

.footer-inner,
.footer-bottom {
    max-width: 1450px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

    .footer-inner h2 {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .footer-inner p {
        font-size: 13px;
    }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 23px;
}

    .footer-links a,
    .footer-bottom {
        font: 12px Arial, Helvetica, sans-serif;
        text-decoration: none;
    }

.footer-bottom {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}


/* =========================================================
   27. RESPONSIVE TABLET
   Screens 1050px and below
   ========================================================= */

@media (max-width: 1050px) {

    .hero {
        min-height: 510px;
    }

    .hero-content {
        width: 52%;
    }

    .hero h1 {
        font-size: clamp(47px, 6vw, 70px);
    }

    .legacy-section {
        grid-template-columns: 1fr;
    }

    .legacy-intro {
        padding: 40px 5% 20px;
    }

    .historical-gallery {
        padding: 10px 5% 35px;
    }

    .racing-section,
    .sar-racing-layout {
        grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    }

    .weanling-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .weanling-intro {
        padding-right: 0;
    }

    .mare-section {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mare-heading {
        padding-right: 0;
        max-width: 740px;
    }

        .mare-heading h2 {
            margin-bottom: 18px;
        }

    .mare-count {
        margin-top: 18px;
    }
}


/* =========================================================
   28. RESPONSIVE MOBILE
   Screens 700px and below
   ========================================================= */

@media (max-width: 700px) {

    /* HEADER */

    .header-inner {
        padding: 18px 5%;
        min-height: 70px;
    }

    .menu-toggle {
        display: block;
        padding: 10px;
        border: 1px solid var(--border);
        background: white;
        font: 700 11px Arial, Helvetica, sans-serif;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 5%;
        background: white;
        box-shadow: 0 12px 24px #00000014;
    }

        .main-nav.open {
            display: flex;
        }

        .main-nav a {
            padding: 14px 10px;
        }


    /* HERO */

    .hero {
        min-height: 620px;
        align-items: flex-start;
    }

        .hero-media,
        .hero .hero-media.homepage-image-slot {
            position: absolute;
            top: 36%;
            right: 0;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 64%;
        }

    .hero-fade {
        background: linear-gradient( 180deg, var(--paper) 0%, rgba(255, 253, 250, .98) 35%, rgba(255, 253, 250, .55) 62%, transparent 90% );
    }

    .hero-content {
        width: 90%;
        padding-top: 40px;
        margin-left: 5%;
    }

    .hero h1 {
        font-size: clamp(48px, 11vw, 73px);
        letter-spacing: -2px;
    }

    .hero-description {
        max-width: 330px;
    }


    /* HISTORICAL LEGACY */

    .historical-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    #legacy .historic-photo,
    #legacy .historic-photo.homepage-image-slot {
        height: 185px;
    }


    /* RACING */

    .racing-section,
    .sar-racing-layout {
        grid-template-columns: 1fr;
    }

    .racing-intro {
        padding: 38px 5%;
    }

        .racing-intro h2 {
            font-size: clamp(34px, 8vw, 49px);
        }


    /* FOAL CROP */

    .weanling-section {
        padding: 40px 5%;
    }

    .weanling-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .horse-card-content {
        padding: 12px;
    }

        .horse-card-content h3 {
            font-size: 23px;
        }

        .horse-card-content p {
            font-size: 13px;
        }

    #weanlings .weanling-photo.photo-placeholder {
        min-height: 165px;
    }


    /* MARE CAROUSEL */

    .mare-section {
        padding: 40px 5%;
    }

    #mares .mare-slide {
        grid-template-columns: 1fr;
    }

    .mare-information {
        padding: 27px 6%;
    }

    .mare-reasoning {
        max-width: none;
    }

    .sar-mare-details {
        padding: 0 5px;
    }

    .mare-selector {
        gap: 6px;
    }

        .mare-selector button {
            font-size: 11px;
            padding: 9px;
        }


    /* RESEARCH AND STEWARDSHIP */

    .closing-features {
        grid-template-columns: 1fr;
    }

    .feature-text {
        padding: 45px 6%;
    }


    /* FOOTER */

    .footer-inner {
        flex-direction: column;
    }
}


/* =========================================================
   29. SMALL MOBILE
   Screens 440px and below
   ========================================================= */

@media (max-width: 440px) {

    .hero {
        min-height: 590px;
    }

        .hero h1 {
            font-size: clamp(43px, 10.5vw, 55px);
        }

    .historical-gallery {
        grid-template-columns: 1fr;
    }

    #legacy .historic-photo,
    #legacy .historic-photo.homepage-image-slot {
        height: 245px;
    }

    .weanling-grid {
        grid-template-columns: 1fr;
    }

    #weanlings .weanling-photo.photo-placeholder {
        min-height: 235px;
    }

    .mare-information h3 {
        font-size: 31px;
    }

    .mare-controls {
        gap: 20px;
    }

    .footer-links {
        gap: 15px;
    }
}


/* =========================================================
   30. ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .carousel-arrow,
    .mare-selector button {
        transition: none;
    }
}
