/*
Theme Name: Elmdale Schoolhouse
Author: Elmdale Schoolhouse
Description: Custom theme for Elmdale School & Store.
Version: 0.2
Text Domain: elmdale-schoolhouse
*/




/* ---------------------------------------------------------
   ELM DALE SCHOOL — FOUNDATION
   --------------------------------------------------------- */

:root {
    --paper: #f4f0e6;
    --paper-light: #fbf9f3;
    --ink: #252821;
    --green: #263e32;
    --green-dark: #17291f;
    --brick: #8b4937;
    --line: #c9c1b1;
    --muted: #6c6a61;

    --serif: Georgia, "Times New Roman", serif;
    --sans: Arial, Helvetica, sans-serif;

    --page-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.site-header {
    background: var(--paper-light);
    border-bottom: 1px solid var(--line);
}

.site-header-inner {
    max-width: var(--page-width);
    min-height: 96px;
    margin: 0 auto;
    padding: 20px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.site-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
}

.site-name {
    color: var(--green-dark);
    font-size: 1.35rem;
    font-weight: bold;
    letter-spacing: .08em;
}

.site-established {
    margin-top: 7px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-navigation a {
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: bold;
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-navigation a:hover {
    color: var(--brick);
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero {
    max-width: var(--page-width);
    min-height: 650px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 42% 58%;
}

.hero-content {
    padding: 100px 55px 90px 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow,
.section-label {
    margin: 0 0 20px;

    color: var(--brick);
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: bold;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 650px;
    margin: 0;

    color: var(--green-dark);
    font-size: clamp(3rem, 5vw, 5.4rem);
    font-weight: normal;
    letter-spacing: -.04em;
    line-height: .96;
}

.hero-intro {
    max-width: 530px;
    margin: 35px 0 0;
    font-size: 1.12rem;
}

.hero-actions {
    margin-top: 42px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.button {
    display: inline-block;
    padding: 14px 22px;

    font-family: var(--sans);
    font-size: .72rem;
    font-weight: bold;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}

.button.primary {
    background: var(--green);
    color: white;
}

.button.primary:hover {
    background: var(--green-dark);
}

.text-link {
    color: var(--green-dark);
    font-weight: bold;
    text-decoration: none;
}

.text-link:hover {
    color: var(--brick);
}

.hero-image {
    min-height: 650px;
    background-size: cover;
    background-position: center 55%;
    background-repeat: no-repeat;
    position: relative;
}

.hero-image::after {
    content: "SCHOOLHOUSE PHOTOGRAPH";
    position: absolute;
    right: 25px;
    bottom: 20px;

    color: rgba(0, 0, 0, .45);
    font-family: var(--sans);
    font-size: .6rem;
    letter-spacing: .16em;
}


/* ---------------------------------------------------------
   INTRODUCTION
   --------------------------------------------------------- */

.schoolhouse-intro {
    padding: 110px 40px;
    background: var(--green);
    color: var(--paper-light);
    text-align: center;
}

.schoolhouse-intro .section-label {
    color: #d7b59a;
}

.schoolhouse-intro h2 {
    max-width: 850px;
    margin: 0 auto 30px;

    font-size: clamp(2.3rem, 4vw, 4rem);
    font-weight: normal;
    line-height: 1.05;
}

.schoolhouse-intro > p:last-child {
    max-width: 700px;
    margin: 0 auto;
    color: #e2ded3;
}


/* ---------------------------------------------------------
   THREE DOORS
   --------------------------------------------------------- */

.schoolhouse-doors {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 90px 40px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.door-card {
    min-height: 280px;
    padding: 35px;

    border-left: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.door-card:last-child {
    border-right: 1px solid var(--line);
}

.door-card:hover {
    background: var(--paper-light);
}

.door-number {
    color: var(--brick);
    font-family: var(--sans);
    font-size: .65rem;
    font-weight: bold;
    letter-spacing: .16em;
}

.door-card h3 {
    margin: 55px 0 15px;
    color: var(--green-dark);
    font-size: 1.7rem;
    font-weight: normal;
}

.door-card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}


/* ---------------------------------------------------------
   WINDOW DISPLAY
   --------------------------------------------------------- */

.window-display {
    padding: 100px 40px;
    background: var(--paper-light);
}

.window-display > * {
    max-width: var(--page-width);
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 {
    margin: 0 0 45px;
    color: var(--green-dark);
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: normal;
}

.inventory-window {
    min-height: 300px;
    margin-bottom: 35px;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    background:
        linear-gradient(
            90deg,
            transparent 0,
            transparent 32.8%,
            var(--line) 33%,
            transparent 33.2%,
            transparent 66.1%,
            var(--line) 66.3%,
            transparent 66.5%
        );
}


/* ---------------------------------------------------------
   HISTORY
   --------------------------------------------------------- */

.history-teaser {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 110px 40px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.history-copy h2 {
    margin: 0 0 30px;
    color: var(--green-dark);
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: normal;
    line-height: 1.05;
}

.history-copy p:not(.section-label) {
    max-width: 550px;
}

.history-image {
    min-height: 430px;
    background-color: #d8d1c2;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/* ---------------------------------------------------------
   FOOTER — SITE-WIDE DESIGN
   --------------------------------------------------------- */

.site-footer {
    background: #17291f;
    color: #f5edda;
    border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer-inner {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: clamp(55px, 7vw, 95px) 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(30px, 5vw, 80px);
}

.footer-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-identity strong {
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.025em;
    color: #fff7e8;
}

.footer-identity span {
    margin-top: 12px;
    color: #d4c49e;
    font-family: var(--sans);
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.site-footer .footer-location {
    margin: 35px 0 0;
    color: #f5edda;
    font-family: var(--sans);
    font-size: .8rem;
    letter-spacing: .025em;
    text-transform: none;
}

.site-footer .footer-note {
    margin: 18px 0 0;
    color: #b9c8ba;
    font-family: var(--sans);
    font-size: .7rem;
    letter-spacing: .09em;
    line-height: 1.7;
    text-align: left;
    text-transform: uppercase;
}

.footer-explore-nav,
.footer-policy-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-explore-nav h2,
.footer-policy-nav h2 {
    margin: 0 0 14px;
    color: #e6bb70;
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .17em;
    line-height: 1.5;
    text-transform: uppercase;
}

.footer-explore-nav a,
.footer-policy-nav a {
    display: inline-block;
    padding: 5px 0;
    color: #f5edda;
    font-family: var(--sans);
    font-size: .9rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-explore-nav a:hover,
.footer-policy-nav a:hover {
    color: #e6bb70;
}

.footer-explore-nav a:focus-visible,
.footer-policy-nav a:focus-visible {
    outline: 2px solid #e6bb70;
    outline-offset: 5px;
}

@media (max-width: 850px) {
    .site-footer-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 45px 25px;
        padding: 55px 25px;
    }

    .footer-identity {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .site-footer-inner {
        gap: 40px 20px;
        padding: 50px 25px 60px;
    }

    .footer-explore-nav a,
    .footer-policy-nav a {
        font-size: .85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-explore-nav a,
    .footer-policy-nav a {
        transition: none;
    }
}

/* ---------------------------------------------------------
   SMALL SCREENS
   --------------------------------------------------------- */

@media (max-width: 850px) {

    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .site-navigation {
        width: 100%;
        gap: 18px;
        overflow-x: auto;
    }

    .hero {
        display: block;
    }

    .hero-content {
        padding: 70px 25px;
    }

    .hero-image {
        min-height: 430px;
    }

    .schoolhouse-doors {
        display: block;
        padding: 50px 25px;
    }

    .door-card {
        display: block;
        min-height: auto;
        border: 0;
        border-top: 1px solid var(--line);
    }

    .door-card:last-child {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .door-card h3 {
        margin-top: 25px;
    }

    .history-teaser {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 70px 25px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        padding: 40px 25px;
    }

    .footer-note {
        text-align: left;
    }
}
/* =========================================================
   IN THE WINDOWS — LIVE INVENTORY
   ========================================================= */

.inventory-window {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 36px;
    background: none;
}

.window-item {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.window-item-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9e4d9;
    text-decoration: none;
}

.window-item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.window-item-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.window-item-details {
    padding-top: 16px;
}

.inventory-id {
    display: block;
    margin-bottom: 8px;
    color: var(--brick);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.window-item h3 {
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: normal;
    line-height: 1.2;
}

.window-item h3 a {
    color: var(--ink);
    text-decoration: none;
}

.window-item h3 a:hover {
    text-decoration: underline;
}

.window-item-price {
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.window-item-price del {
    color: var(--muted);
    margin-right: 6px;
}

.window-item-price ins {
    text-decoration: none;
}


/* Windows heading and collection navigation. */

.window-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.window-heading h2 {
    margin-bottom: 0;
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
}

.window-controls button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--green-dark);
    font-size: 1.4rem;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.window-controls button:hover:not(:disabled) {
    background: var(--green-dark);
    color: #fff;
}

.window-controls button:disabled {
    opacity: .3;
    cursor: default;
}

.window-controls button:focus-visible {
    outline: 3px solid #b96d49;
    outline-offset: 3px;
}

.window-display .inventory-window:focus-visible {
    outline: 2px solid var(--green-dark);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .window-heading {
        align-items: end;
        gap: 12px;
    }

    .window-controls button {
        width: 40px;
        height: 40px;
    }

    .window-heading h2 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
}

@media (max-width: 850px) {
    .window-display .window-item-image {
        aspect-ratio: 1 / 1;
    }

    .window-display .window-item-image::after {
        display: none;
    }

    .window-display .window-item-details {
        padding-top: 12px;
    }

    .window-display .window-item h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .window-display .inventory-id {
        font-size: .62rem;
        margin-bottom: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .window-controls button {
        transition: none;
    }
}

/* =========================================================
   IN THE WINDOWS — HORIZONTAL COLLECTION + DESTINATION
   ========================================================= */

.window-display .inventory-window {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;

    padding-bottom: 22px;
    scrollbar-width: thin;
}

.window-display .window-item,
.window-display .window-destination {
    flex: 0 0 calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

.window-destination {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 340px;
    padding: clamp(24px, 3vw, 40px);

    background: #20382c;
    color: #f5edda;
    border-radius: 12px;
    text-decoration: none;

    transition: background-color .25s ease;
}

.window-destination:hover {
    background: #2b4a38;
}

.window-destination:focus-visible {
    outline: 3px solid #b96d49;
    outline-offset: 4px;
}

.window-destination-eyebrow {
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #d5a985;
}

.window-destination-symbol {
    display: block;
    margin: 20px 0 12px;
    font-size: 3rem;
    line-height: 1;
    color: #e6b58b;
}

.window-destination-title {
    display: block;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    line-height: 1.15;
}

.window-destination-description {
    display: block;
    margin-top: 16px;
    font-family: var(--sans);
    font-size: .86rem;
    line-height: 1.6;
    color: #ddd9cc;
}

.window-destination-action {
    display: block;
    margin-top: 28px;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #f4c39b;
}

@media (max-width: 850px) {
    .window-display .inventory-window {
        gap: 16px;
    }

    .window-display .window-item,
    .window-display .window-destination {
        flex: 0 0 68%;
        width: 68%;
    }

    .window-display .window-destination {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .window-display .window-item,
    .window-display .window-destination {
        flex-basis: 74%;
        width: 74%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .window-destination {
        transition: none;
    }
}

/* =========================================================
   HOME — ARRIVAL / HERO
   ========================================================= */

.home .site-header {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;

    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.home .site-name {
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

.home .site-established {
    color: rgba(255, 255, 255, .72);
}

.home .site-navigation a {
    color: rgba(255, 255, 255, .9);
    transition:
        color .25s ease,
        opacity .25s ease;
}

.home .site-navigation a:hover {
    color: #fff;
    opacity: .72;
}


/* Turn the existing two-column hero into one photographic space */

.home .hero {
    position: relative;
    max-width: none;
    min-height: 88vh;
    overflow: hidden;

    display: flex;
    align-items: flex-end;
}


/* Photograph becomes the full hero background */

.home .hero-image {
    position: absolute;
    z-index: 0;
    inset: 0;

    min-height: 100%;

    background-size: cover;
    background-position: center 55%;

    transform: scale(1.025);
}


/* Darkening is intentionally uneven:
   enough behind the words without hiding the school */

.home .hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(14, 23, 18, .78) 0%,
            rgba(14, 23, 18, .60) 34%,
            rgba(14, 23, 18, .20) 64%,
            rgba(14, 23, 18, .06) 100%
        ),
        linear-gradient(
            0deg,
            rgba(10, 15, 12, .35) 0%,
            transparent 45%
        );
}


/* Remove the old photograph caption for this treatment */

.home .hero-image::after {
    display: none;
}


/* Copy now lives over the photograph */

.home .hero-content {
    position: relative;
    z-index: 2;

    width: min(760px, 65%);
    padding: 190px 40px 85px max(40px, calc((100vw - var(--page-width)) / 2 + 40px));

    color: #fff;
}

.home .hero .eyebrow {
    color: #e0b99d;
}

.home .hero h1 {
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .20);
}

.home .hero-intro {
    max-width: 570px;
    color: rgba(255, 255, 255, .88);
}

.home .hero .button.primary {
    background: rgba(244, 240, 230, .94);
    color: var(--green-dark);

    transition:
        background .25s ease,
        transform .25s ease;
}

.home .hero .button.primary:hover {
    background: #fff;
    transform: translateY(-2px);
}

.home .hero .text-link {
    color: #fff;
    transition: opacity .25s ease;
}

.home .hero .text-link:hover {
    color: #fff;
    opacity: .7;
}


/* Mobile version */

@media (max-width: 850px) {

    .home .site-header-inner {
        padding: 20px 22px;
    }

    .home .hero {
        min-height: 82vh;
    }

    .home .hero-content {
        width: 100%;
        padding: 180px 25px 65px;
    }

    .home .hero-image {
        min-height: 100%;
        background-position: 58% center;
    }

    .home .hero-image::before {
        background:
            linear-gradient(
                0deg,
                rgba(12, 20, 15, .86) 0%,
                rgba(12, 20, 15, .50) 58%,
                rgba(12, 20, 15, .22) 100%
            );
    }
}
/* =========================================================
   HOME — SCROLLING HEADER
   ========================================================= */

.home .site-header {
    position: fixed;

    transition:
        background-color .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        backdrop-filter .35s ease;
}

.home .site-header-inner {
    transition:
        min-height .35s ease,
        padding .35s ease;
}


/* Once the visitor leaves the top of the page */

.home .site-header.is-scrolled {
    background: rgba(23, 41, 31, .92);
    border-bottom-color: rgba(255, 255, 255, .12);

    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.home .site-header.is-scrolled .site-header-inner {
    min-height: 70px;
    padding-top: 11px;
    padding-bottom: 11px;
}

.home .site-header.is-scrolled .site-established {
    margin-top: 4px;
}


/* Respect visitors who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .home .site-header,
    .home .site-header-inner,
    .home .site-navigation a,
    .home .hero .button.primary {
        transition: none;
    }
}
/* =========================================================
   ELM DALE — SCROLL REVEALS
   ========================================================= */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* =========================================================
   HOME — DOOR INTERACTIONS
   ========================================================= */

.door-card {
    position: relative;
    overflow: hidden;

    transition:
        background-color .35s ease,
        transform .35s ease;
}

.door-card::after {
    content: "ENTER →";

    position: absolute;
    left: 35px;
    bottom: 28px;

    color: var(--brick);
    font-family: var(--sans);
    font-size: .65rem;
    font-weight: bold;
    letter-spacing: .16em;

    opacity: 0;
    transform: translateY(7px);

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.door-card h3 {
    transition:
        transform .35s ease,
        color .35s ease;
}

.door-card p {
    transition:
        transform .35s ease;
}

@media (hover: hover) {

    .door-card:hover {
        background: var(--paper-light);
        transform: translateY(-3px);
    }

    .door-card:hover h3,
    .door-card:hover p {
        transform: translateY(-8px);
    }

    .door-card:hover h3 {
        color: var(--brick);
    }

    .door-card:hover::after {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .door-card,
    .door-card h3,
    .door-card p,
    .door-card::after {
        transition: none;
    }
}
/* In the Windows — remove container top divider */
.window-display .inventory-window {
    border-top: none;
}

/* In the Windows — remove individual top borders */
.window-display .window-item {
    border-top: none;
    padding-top: 0;
}

/* In the Windows — photograph presentation */
.window-display .window-item-image {
    border-radius: 12px;
    border: 1px solid rgba(54, 49, 39, 0.10);
    box-sizing: border-box;
    background: #eee9df;
}

/* =========================================================
   IN THE WINDOWS — INTERACTION
   ========================================================= */

.window-item {
    position: relative;
}

.window-item-image {
    position: relative;
}

.window-item-image img {
    transition:
        transform .7s ease,
        filter .5s ease;
}

.window-item-image::after {
    content: "LOOK CLOSER →";

    position: absolute;
    right: 18px;
    bottom: 16px;

    padding: 7px 10px;

    background: rgba(23, 41, 31, .88);
    color: #fff;

    font-family: var(--sans);
    font-size: .6rem;
    font-weight: bold;
    letter-spacing: .14em;

    opacity: 0;
    transform: translateY(6px);

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.window-item h3 a {
    transition: color .3s ease;
}

@media (hover: hover) {

    .window-item:hover .window-item-image img {
        transform: scale(1.035);
    }

    .window-item:hover .window-item-image::after {
        opacity: 1;
        transform: translateY(0);
    }

    .window-item:hover h3 a {
        color: var(--brick);
        text-decoration: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .window-item-image img,
    .window-item-image::after,
    .window-item h3 a {
        transition: none;
    }
}
/* =========================================================
   HOME — ENTER THE SCHOOLHOUSE
   ========================================================= */

.schoolhouse-entry {
    max-width: none;
    padding: 0;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);

    background: var(--green);
    text-align: left;
}

.schoolhouse-entry-image {
    min-height: 580px;
    overflow: hidden;
}

.schoolhouse-entry-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 580px;

    object-fit: cover;
    object-position: center;

    transition: transform 1.2s ease;
}

.schoolhouse-entry-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 90px max(50px, calc((100vw - var(--page-width)) / 2 + 40px)) 90px 70px;
}

.schoolhouse-entry-copy h2 {
    max-width: 650px;
}

.schoolhouse-entry-copy > p:last-child {
    max-width: 590px;
}

@media (hover: hover) {

    .schoolhouse-entry:hover .schoolhouse-entry-image img {
        transform: scale(1.025);
    }
}

@media (max-width: 850px) {

    .schoolhouse-entry {
        grid-template-columns: 1fr;
    }

    .schoolhouse-entry-image {
        min-height: 430px;
    }

    .schoolhouse-entry-image img {
        min-height: 430px;
    }

    .schoolhouse-entry-copy {
        padding: 45px 25px 50px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .schoolhouse-entry-image img {
        transition: none;
    }
}
/* =========================================================
   HOME — CHOOSE A DOOR
   ========================================================= */

.schoolhouse-paths {
    background: var(--paper);
    padding: 75px 0 0;
}

.schoolhouse-paths-heading {
    width: min(var(--page-width), calc(100% - 80px));
    margin: 0 auto 40px;
}

.schoolhouse-paths-heading h2 {
    margin: 10px 0 0;

    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    font-weight: normal;
    line-height: 1;
}

.schoolhouse-paths .schoolhouse-doors {
    padding: 0 40px 55px;
}

.schoolhouse-paths .door-card {
    min-height: 235px;
}
@media (max-width: 850px) {

    .schoolhouse-paths {
        padding-top: 40px;
    }

    .schoolhouse-paths-heading {
        width: auto;
        margin: 0 25px 22px;
    }
}

/* =========================================================
   SHOP — ARRIVAL
   ========================================================= */

.shop-intro {
    background: var(--green);
    color: #fff;
}

.shop-intro-inner {
    width: min(var(--page-width), calc(100% - 80px));
    margin: 0 auto;
    padding: 85px 0 80px;
}

.shop-intro .section-label {
    color: #e0b99d;
}

.shop-intro h1 {
    margin: 12px 0 20px;

    max-width: 850px;

    color: #fff;
    font-family: var(--serif);
    font-size: clamp(3.2rem, 6vw, 6rem);
    font-weight: normal;
    line-height: .98;
}

.shop-intro-copy {
    max-width: 620px;
    margin: 0;

    color: rgba(255, 255, 255, .78);
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.65;
}

@media (max-width: 850px) {

    .shop-intro-inner {
        width: auto;
        padding: 65px 25px 60px;
    }

}

/* =========================================================
   SHOP — MERCHANDISE AREA
   ========================================================= */

.schoolhouse-commerce .commerce-inner {
    width: min(var(--page-width), calc(100% - 80px));
    margin: 0 auto;
    padding: 55px 0 90px;
}

/* Result count + sorting */

.woocommerce .woocommerce-result-count {
    margin: 0 0 35px;

    color: var(--muted);
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.woocommerce .woocommerce-ordering {
    margin: 0 0 35px;
}

.woocommerce .woocommerce-ordering select {
    padding: 10px 34px 10px 12px;

    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper-light);

    color: var(--ink);
    font-family: var(--sans);
    font-size: .75rem;
}

/* Product grid */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 65px 34px;

    clear: both;
    margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
}

/* Product photographs */

.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;

    margin: 0 0 22px;

    background: #e9e5da;

    transition: transform .5s ease;

    border-radius: 8px;
}

/* Product information */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 0;
    margin: 0 0 8px;

    color: #26332e;
    font-family: var(--sans);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.25;
}

.woocommerce ul.products li.product .price {
    margin: 0 0 18px;

    color: #315b48;
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 600;
}

/* Add to cart */

.woocommerce ul.products li.product .button {
    margin-top: 0;
    padding: 11px 15px;

    border-radius: 0;
    background: transparent;
    border: 1px solid var(--green);

    color: var(--green);
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: bold;
    letter-spacing: .12em;
    text-transform: uppercase;

    transition:
        background-color .25s ease,
        color .25s ease;
}

@media (hover: hover) {

    .woocommerce ul.products li.product:hover a img {
        transform: scale(1.015);
    }

    .woocommerce ul.products li.product .button:hover {
        background: var(--green);
        color: #fff;
    }
}

@media (max-width: 850px) {

    .schoolhouse-commerce .commerce-inner {
        width: auto;
        padding: 40px 25px 70px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px 20px;
    }
}

@media (max-width: 560px) {

    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   SINGLE PRODUCT — ELM DALE OBJECT PAGE
   ========================================================= */

/* Main product layout */

.single-product .schoolhouse-commerce .commerce-inner {
    padding-top: 70px;
}

.single-product div.product {
    color: var(--ink);
}

/* Main photograph */

.single-product div.product div.images img {
    border-radius: 8px;
}

.single-product div.product div.images {
    margin-bottom: 65px;
}

/* Product information */

.single-product div.product .summary {
    padding: 10px 0 0 35px;
}

.single-product div.product .product_title {
    margin: 0 0 25px;

    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: normal;
    line-height: 1.02;
}

.single-product div.product p.price {
    margin: 0 0 28px;

    color: var(--brick);
    font-family: var(--serif);
    font-size: 1.6rem;
}

/* Stock status */

.single-product div.product .stock {
    margin: 0 0 18px;

    color: var(--green);
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Add to cart */

.single-product div.product form.cart {
    margin: 0 0 35px;
}

.single-product div.product form.cart .button {
    padding: 15px 22px;

    border: 1px solid var(--green);
    border-radius: 0;

    background: var(--green);
    color: #fff;

    font-family: var(--sans);
    font-size: .72rem;
    font-weight: bold;
    letter-spacing: .12em;
    text-transform: uppercase;

    transition:
        background-color .25s ease,
        color .25s ease,
        transform .25s ease;
}

@media (hover: hover) {

    .single-product div.product form.cart .button:hover {
        background: var(--green-dark);
        color: #fff;
        transform: translateY(-2px);
    }
}

/* Object metadata */

.single-product div.product .product_meta {
    padding-top: 22px;

    border-top: 1px solid var(--line);

    color: var(--muted);
    font-family: var(--sans);
    font-size: .72rem;
    line-height: 1.8;
}

.single-product div.product .product_meta a {
    color: var(--green);
}

/* Description area */

.single-product .woocommerce-tabs {
    clear: both;

    margin-top: 25px;
    padding-top: 55px;

    border-top: 1px solid var(--line);
}

.single-product .woocommerce-tabs ul.tabs {
    display: none;
}

.single-product .woocommerce-tabs .panel {
    max-width: 760px;
    margin: 0 0 75px;
}

.single-product .woocommerce-tabs .panel h2 {
    margin: 0 0 22px;

    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: normal;
}

.single-product .woocommerce-tabs .panel p {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.08rem;
    line-height: 1.7;
}

/* Related objects */

.single-product .related.products {
    clear: both;

    padding-top: 55px;

    border-top: 1px solid var(--line);
}

.single-product .related.products > h2 {
    margin: 0 0 35px;

    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: normal;
}

/* Mobile */

@media (max-width: 850px) {

    .single-product .schoolhouse-commerce .commerce-inner {
        padding-top: 40px;
    }

    .single-product div.product .summary {
        padding: 25px 0 0;
    }

    .single-product div.product .product_title {
        font-size: clamp(2.4rem, 11vw, 3.5rem);
    }

    .single-product .woocommerce-tabs {
        margin-top: 10px;
        padding-top: 40px;
    }

    .single-product .related.products {
        padding-top: 40px;
    }
}

/* =========================================================
   SINGLE PRODUCT — OBJECT DETAILS
   ========================================================= */

.single-product .object-eyebrow {
    margin: 0 0 12px;

    color: var(--brick);
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: bold;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.single-product .object-description {
    max-width: 520px;
    margin: 0 0 28px;

    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.65;
}

.single-product .object-description p {
    margin: 0 0 14px;
}

.single-product .elmdale-object-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding-top: 22px;
    border-top: 1px solid var(--line);

    color: var(--muted);
    font-family: var(--sans);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.single-product .object-id {
    color: var(--green);
    font-weight: bold;
}

.single-product .related.products {
    margin-top: 60px;
}

/* =========================================================
   INTERIOR PAGES — SCROLLING HEADER
   ========================================================= */

body:not(.home) .site-header {
    position: sticky;
    z-index: 100;
    top: 0;

    background: var(--paper-light);

    transition:
        background-color .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        backdrop-filter .35s ease;
}

body:not(.home) .site-header-inner {
    transition:
        min-height .35s ease,
        padding .35s ease;
}

body:not(.home) .site-name {
    transition: color .3s ease;
}

body:not(.home) .site-established {
    transition: color .3s ease;
}

body:not(.home) .site-navigation a {
    transition:
        color .25s ease,
        opacity .25s ease;
}

@media (hover: hover) {

    body:not(.home) .site-navigation a:hover {
        color: var(--brick);
    }
}


/* Scrolled interior header */

body:not(.home) .site-header.is-scrolled {
    background: rgba(23, 41, 31, .94);
    border-bottom-color: rgba(255, 255, 255, .12);

    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

body:not(.home) .site-header.is-scrolled .site-header-inner {
    min-height: 70px;
    padding-top: 11px;
    padding-bottom: 11px;
}

body:not(.home) .site-header.is-scrolled .site-name {
    color: #fff;
}

body:not(.home) .site-header.is-scrolled .site-established {
    color: rgba(255, 255, 255, .68);
}

body:not(.home) .site-header.is-scrolled .site-navigation a {
    color: rgba(255, 255, 255, .88);
}

@media (hover: hover) {

    body:not(.home) .site-header.is-scrolled .site-navigation a:hover {
        color: #fff;
        opacity: .68;
    }
}


/* WordPress admin bar compensation while logged in */

.admin-bar:not(.home) .site-header {
    top: 32px;
}

@media (max-width: 782px) {

    .admin-bar:not(.home) .site-header {
        top: 46px;
    }
}


@media (prefers-reduced-motion: reduce) {

    body:not(.home) .site-header,
    body:not(.home) .site-header-inner,
    body:not(.home) .site-name,
    body:not(.home) .site-established,
    body:not(.home) .site-navigation a {
        transition: none;
    }
}

/* =========================================================
   HEADER — BASKET
   ========================================================= */

.site-navigation .site-basket {
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid rgba(37, 40, 33, .18);

    color: var(--green);

    font-size: .68rem;
    font-weight: bold;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body:not(.home) .site-header.is-scrolled .site-navigation .site-basket {
    border-left-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.home .site-header:not(.is-scrolled) .site-navigation .site-basket {
    border-left-color: rgba(255, 255, 255, .24);
}

@media (hover: hover) {
    .site-navigation .site-basket:hover {
        color: var(--brick);
    }

    body:not(.home) .site-header.is-scrolled .site-navigation .site-basket:hover {
        color: #fff;
        opacity: .68;
    }
}

@media (max-width: 850px) {
    .site-navigation .site-basket {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }
}
/* =========================================================
   BASKET — ARRIVAL
   ========================================================= */

.basket-intro {
    background: var(--green);
    color: #fff;
}

.basket-intro-inner {
    width: min(var(--page-width), calc(100% - 80px));
    margin: 0 auto;
    padding: 70px 0 65px;
}

.basket-intro .section-label {
    color: #e0b99d;
}

.basket-intro h1 {
    margin: 10px 0 18px;
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: normal;
    line-height: 1;
}

.basket-intro-copy {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-family: var(--serif);
    font-size: 1.08rem;
    line-height: 1.6;
}


/* Basket content area */

.woocommerce-cart .schoolhouse-page-inner {
    width: min(var(--page-width), calc(100% - 80px));
    margin: 0 auto;
    padding: 55px 0 90px;
}

.woocommerce-cart .page-content {
    width: 100%;
}


@media (max-width: 850px) {

    .basket-intro-inner {
        width: auto;
        padding: 55px 25px 50px;
    }

    .woocommerce-cart .schoolhouse-page-inner {
        width: auto;
        padding: 40px 25px 70px;
    }
}
/* Basket arrival — compact utility treatment */

.basket-intro-inner {
    padding: 38px 0 34px;
}

.basket-intro h1 {
    margin: 7px 0 10px;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
}

.basket-intro-copy {
    font-size: 1rem;
}

.woocommerce-cart .schoolhouse-page-inner {
    padding-top: 38px;
}

@media (max-width: 850px) {
    .basket-intro-inner {
        padding: 35px 25px 32px;
    }

    .woocommerce-cart .schoolhouse-page-inner {
        padding-top: 30px;
    }
}
/* =========================================================
   BASKET — OBJECTS
   ========================================================= */

/* Column labels */

.woocommerce-cart .wc-block-cart-items th {
    padding-bottom: 14px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: bold;
    letter-spacing: .12em;
    text-transform: uppercase;
}


/* Individual object rows */

.woocommerce-cart .wc-block-cart-items__row {
    border-bottom: 1px solid var(--line);
}

.woocommerce-cart .wc-block-cart-items__row td {
    padding-top: 22px;
    padding-bottom: 22px;
}


/* Object photograph */

.woocommerce-cart .wc-block-cart-item__image {
    width: 105px;
    padding-right: 20px;
}

.woocommerce-cart .wc-block-cart-item__image img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    background: #e9e5da;
}


/* Object name */

.woocommerce-cart .wc-block-components-product-name {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.18rem;
    font-weight: normal;
    line-height: 1.25;
    text-decoration: none;
}

@media (hover: hover) {
    .woocommerce-cart .wc-block-components-product-name:hover {
        color: var(--brick);
    }
}


/* Price */

.woocommerce-cart .wc-block-cart-item__prices {
    margin-top: 6px;
    color: var(--brick);
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: bold;
}


/* Description / metadata */

.woocommerce-cart .wc-block-components-product-metadata {
    margin-top: 7px;
    max-width: 470px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: .88rem;
    line-height: 1.45;
}


/* Quantity and remove area */

.woocommerce-cart .wc-block-cart-item__quantity {
    margin-top: 12px;
}

.woocommerce-cart .wc-block-components-quantity-selector {
    border-color: var(--line);
    border-radius: 0;
}

.woocommerce-cart .wc-block-cart-item__remove-link {
    color: var(--muted);
    font-family: var(--sans);
    font-size: .66rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (hover: hover) {
    .woocommerce-cart .wc-block-cart-item__remove-link:hover {
        color: var(--brick);
    }
}


/* Line-item total */

.woocommerce-cart .wc-block-cart-item__total {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1rem;
}


/* Mobile */

@media (max-width: 700px) {

    .woocommerce-cart .wc-block-cart-item__image {
        width: 80px;
        padding-right: 14px;
    }

    .woocommerce-cart .wc-block-cart-item__image img {
        width: 68px;
        height: 68px;
    }

    .woocommerce-cart .wc-block-components-product-name {
        font-size: 1.05rem;
    }
}
/* Basket object typography adjustment */

.woocommerce-cart .wc-block-components-product-name {
    font-size: 1.35rem;
    line-height: 1.25;
}

.woocommerce-cart .wc-block-cart-item__prices {
    margin-top: 8px;
    font-size: .86rem;
}

.woocommerce-cart .wc-block-components-product-metadata {
    margin-top: 9px;
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .woocommerce-cart .wc-block-components-product-name {
        font-size: 1.18rem;
    }

    .woocommerce-cart .wc-block-components-product-metadata {
        font-size: .94rem;
    }
}

/* Basket typography — override Woo block defaults */

body.woocommerce-cart
.wc-block-cart
a.wc-block-components-product-name {
    font-family: var(--serif) !important;
    font-size: 1.35rem !important;
    font-weight: normal !important;
    line-height: 1.25 !important;
    color: var(--ink) !important;
    text-decoration: none !important;
}

body.woocommerce-cart
.wc-block-cart
.wc-block-components-product-metadata {
    margin-top: 9px !important;
    font-family: var(--serif) !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: var(--muted) !important;
}

body.woocommerce-cart
.wc-block-cart
.wc-block-components-product-metadata p {
    font-size: inherit !important;
    line-height: inherit !important;
}

body.woocommerce-cart
.wc-block-cart
.wc-block-cart-item__prices {
    margin-top: 7px !important;
    font-size: .86rem !important;
}
/* =========================================================
   BASKET — SUMMARY
   ========================================================= */

/* Basket summary heading */

body.woocommerce-cart
.wc-block-cart
.wc-block-cart__totals-title {
    color: var(--brick) !important;
    font-family: var(--sans) !important;
    font-size: .72rem !important;
    font-weight: bold !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
}


/* Coupon — keep it available, but quiet */

body.woocommerce-cart
.wc-block-cart
.wc-block-components-totals-coupon {
    border-color: var(--line) !important;
}

body.woocommerce-cart
.wc-block-cart
.wc-block-components-totals-coupon-link {
    color: var(--muted) !important;
    font-family: var(--sans) !important;
    font-size: .72rem !important;
    text-decoration: none !important;
}

@media (hover: hover) {
    body.woocommerce-cart
    .wc-block-cart
    .wc-block-components-totals-coupon-link:hover {
        color: var(--brick) !important;
    }
}


/* Estimated total */

body.woocommerce-cart
.wc-block-cart
.wc-block-components-totals-footer-item {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    border-top: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
}

body.woocommerce-cart
.wc-block-cart
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__label {
    color: var(--ink) !important;
    font-family: var(--serif) !important;
    font-size: 1.3rem !important;
    font-weight: normal !important;
}

body.woocommerce-cart
.wc-block-cart
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__value {
    color: var(--ink) !important;
    font-family: var(--serif) !important;
    font-size: 1.45rem !important;
    font-weight: normal !important;
}


/* Checkout */

body.woocommerce-cart
.wc-block-cart
.wc-block-cart__submit {
    margin-top: 14px !important;
}

body.woocommerce-cart
.wc-block-cart
.wc-block-cart__submit-button {
    min-height: 58px !important;

    border: 1px solid var(--green) !important;
    border-radius: 0 !important;

    background: var(--green) !important;
    color: #fff !important;

    font-family: var(--sans) !important;
    font-size: .72rem !important;
    font-weight: bold !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;

    transition:
        background-color .25s ease,
        transform .25s ease !important;
}

@media (hover: hover) {
    body.woocommerce-cart
    .wc-block-cart
    .wc-block-cart__submit-button:hover {
        background: var(--green-dark) !important;
        color: #fff !important;
        transform: translateY(-2px);
    }
}


/* Line totals — visible without competing with object price */

body.woocommerce-cart
.wc-block-cart
.wc-block-cart-item__total {
    color: var(--ink) !important;
    font-family: var(--serif) !important;
    font-size: .95rem !important;
}
/* =========================================================
   CHECKOUT — ARRIVAL
   ========================================================= */

.checkout-intro {
    background: var(--green);
    color: #fff;
}

.checkout-intro-inner {
    width: min(var(--page-width), calc(100% - 80px));
    margin: 0 auto;
    padding: 38px 0 34px;
}

.checkout-intro .section-label {
    color: #e0b99d;
}

.checkout-intro h1 {
    margin: 7px 0 10px;
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: normal;
    line-height: 1;
}

.checkout-intro-copy {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.6;
}


/* Checkout content */

.woocommerce-checkout .schoolhouse-page-inner {
    width: min(var(--page-width), calc(100% - 80px));
    margin: 0 auto;
    padding: 38px 0 90px;
}

.woocommerce-checkout .page-content {
    width: 100%;
}


@media (max-width: 850px) {

    .checkout-intro-inner {
        width: auto;
        padding: 35px 25px 32px;
    }

    .woocommerce-checkout .schoolhouse-page-inner {
        width: auto;
        padding: 30px 25px 70px;
    }
}
/* =========================================================
   CHECKOUT — FORM / LEFT SIDE
   ========================================================= */

/* Give the main checkout column comfortable breathing room */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__main {
    padding-right: 55px;
}


/* Section headings — Contact, Billing, Payment */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-checkout-step__heading {
    margin-bottom: 14px !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-checkout-step__title {
    margin: 0 !important;
    color: var(--ink) !important;
    font-family: var(--serif) !important;
    font-size: 1.35rem !important;
    font-weight: normal !important;
    line-height: 1.25 !important;
}


/* More separation between checkout sections */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-checkout-step {
    margin-bottom: 34px !important;
}


/* Text fields */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-text-input input,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-address-form input,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-combobox-control input {
    border-color: var(--line) !important;
    border-radius: 0 !important;
    background: var(--paper-light) !important;
    color: var(--ink) !important;
    font-family: var(--sans) !important;
}


/* Existing saved-address panel */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-address-card {
    border: 1px solid var(--line) !important;
    border-radius: 0 !important;
    background: transparent !important;
}


/* Payment method box */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__payment-method
.wc-block-components-radio-control {
    border-color: var(--line) !important;
    border-radius: 0 !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-radio-control__option {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}


/* Secondary checkout links */

body.woocommerce-checkout
.wc-block-checkout
a {
    color: var(--green);
}

@media (hover: hover) {
    body.woocommerce-checkout
    .wc-block-checkout
    a:hover {
        color: var(--brick);
    }
}


/* Order note / terms area */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__add-note {
    color: var(--muted);
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__terms {
    color: var(--muted);
    font-family: var(--serif);
    font-size: .88rem;
    line-height: 1.55;
}


/* Place Order — primary Elm Dale action */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-checkout-place-order-button {
    min-height: 58px !important;
    border: 1px solid var(--green) !important;
    border-radius: 0 !important;
    background: var(--green) !important;
    color: #fff !important;

    font-family: var(--sans) !important;
    font-size: .72rem !important;
    font-weight: bold !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;

    transition:
        background-color .25s ease,
        transform .25s ease !important;
}

@media (hover: hover) {
    body.woocommerce-checkout
    .wc-block-checkout
    .wc-block-components-checkout-place-order-button:hover {
        background: var(--green-dark) !important;
        color: #fff !important;
        transform: translateY(-2px);
    }
}


/* Keep the layout sensible as the viewport narrows */

@media (max-width: 900px) {
    body.woocommerce-checkout
    .wc-block-checkout
    .wc-block-checkout__main {
        padding-right: 0;
    }
}
/* =========================================================
   CHECKOUT — ORDER SUMMARY
   ========================================================= */

/* Summary container */

/* Summary container */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__sidebar {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* "Order summary" heading */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-checkout-order-summary__title {
    color: var(--ink) !important;
    font-family: var(--serif) !important;
    font-size: 1.35rem !important;
    font-weight: normal !important;
}


/* Individual objects */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-order-summary-item {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}


/* Object images */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-order-summary-item__image {
    width: 72px !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-order-summary-item__image img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    background: #e9e5da;
}


/* Object names */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-product-name {
    color: var(--ink) !important;
    font-family: var(--serif) !important;
    font-size: 1rem !important;
    font-weight: normal !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
}


/* Object metadata / descriptions */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-product-metadata {
    margin-top: 5px !important;
    color: var(--muted) !important;
    font-family: var(--serif) !important;
    font-size: .82rem !important;
    line-height: 1.4 !important;
}


/* Prices */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-product-price {
    color: var(--brick) !important;
    font-family: var(--sans) !important;
    font-size: .76rem !important;
    font-weight: bold !important;
}


/* Coupon section */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-totals-coupon {
    border-color: var(--line) !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-totals-coupon-link {
    color: var(--muted) !important;
    font-family: var(--sans) !important;
    font-size: .7rem !important;
    text-decoration: none !important;
}


/* Subtotal and total rows */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-totals-item {
    border-color: var(--line) !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__label {
    color: var(--ink) !important;
    font-family: var(--serif) !important;
    font-size: 1.2rem !important;
    font-weight: normal !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__value {
    color: var(--ink) !important;
    font-family: var(--serif) !important;
    font-size: 1.3rem !important;
    font-weight: normal !important;
}


/* Mobile — let Woo stack the columns naturally */

@media (max-width: 900px) {
    body.woocommerce-checkout
    .wc-block-checkout
    .wc-block-checkout__sidebar {
        border-left: 0 !important;
        border-right: 0 !important;
    }
}
/* =========================================================
   CHECKOUT — TYPOGRAPHY CORRECTION
   ========================================================= */

/* Left-side normal/supporting text */

body.woocommerce-checkout
.wc-block-checkout {
    font-size: 1rem;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-text-input label {
    font-size: .82rem !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-address-card {
    font-size: .9rem !important;
    line-height: 1.55 !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-radio-control__label,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-radio-control__description {
    font-size: .9rem !important;
    line-height: 1.5 !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__add-note {
    font-size: .88rem !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__terms {
    font-size: .92rem !important;
}


/* ---------------------------------------------------------
   Order summary — stronger readable hierarchy
   --------------------------------------------------------- */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-checkout-order-summary__title {
    font-size: 1.45rem !important;
}


/* Product name */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-order-summary-item
.wc-block-components-product-name {
    font-size: 1.08rem !important;
    line-height: 1.3 !important;
}


/* Price directly beneath product name */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-order-summary-item
.wc-block-components-product-price {
    font-size: .86rem !important;
    line-height: 1.4 !important;
}


/* Description / metadata */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-order-summary-item
.wc-block-components-product-metadata {
    font-size: .9rem !important;
    line-height: 1.45 !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-order-summary-item
.wc-block-components-product-metadata p {
    font-size: inherit !important;
    line-height: inherit !important;
}


/* Price at far right of each object */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-order-summary-item__total-price {
    color: var(--brick) !important;
    font-size: .88rem !important;
    font-weight: bold !important;
}


/* Coupon */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-totals-coupon-link {
    font-size: .8rem !important;
}


/* Subtotal and other ordinary total rows */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-totals-item__label,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-totals-item__value {
    font-size: .9rem !important;
}


/* Final total gets its own stronger hierarchy */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__label {
    font-family: var(--serif) !important;
    font-size: 1.3rem !important;
    font-weight: normal !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__value {
    font-family: var(--serif) !important;
    font-size: 1.4rem !important;
    font-weight: normal !important;
}
/* =========================================================
   CHECKOUT — FINAL READABILITY PASS
   ========================================================= */

/* Saved address and its edit control */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-address-card address,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-address-card__address {
    font-size: .95rem !important;
    line-height: 1.55 !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-address-card button {
    font-size: .82rem !important;
}


/* Payment method */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-radio-control__label {
    font-size: .95rem !important;
}

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-radio-control__description,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-radio-control__description p {
    font-size: .9rem !important;
    line-height: 1.55 !important;
}


/* Order note */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__add-note,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__add-note span {
    font-size: .9rem !important;
}


/* Terms / privacy */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__terms,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__terms span,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__terms a {
    font-size: .9rem !important;
    line-height: 1.55 !important;
}


/* Summary supporting text */

body.woocommerce-checkout
.wc-block-checkout__sidebar
.wc-block-components-totals-item__label,
body.woocommerce-checkout
.wc-block-checkout__sidebar
.wc-block-components-totals-item__value,
body.woocommerce-checkout
.wc-block-checkout__sidebar
.wc-block-components-totals-coupon-link {
    font-size: .9rem !important;
}


/* Product descriptions in summary */

body.woocommerce-checkout
.wc-block-checkout__sidebar
.wc-block-components-product-metadata,
body.woocommerce-checkout
.wc-block-checkout__sidebar
.wc-block-components-product-metadata p {
    font-size: .9rem !important;
    line-height: 1.5 !important;
}

/* =========================================================
   CHECKOUT — WOO SMALL-TEXT OVERRIDES
   ========================================================= */

/* Payment method explanatory text */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-radio-control-accordion-content,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-radio-control-accordion-content div,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-components-radio-control-accordion-content p {
    font-family: var(--serif) !important;
    font-size: .95rem !important;
    line-height: 1.55 !important;
    color: var(--ink) !important;
}


/* Order note section */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__order-notes,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__order-notes label,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__order-notes span {
    font-size: .95rem !important;
    line-height: 1.5 !important;
}


/* Customer-entered order note */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__order-notes textarea {
    font-family: var(--serif) !important;
    font-size: .95rem !important;
    line-height: 1.5 !important;
}


/* Terms / privacy section */

body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__terms,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__terms *,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__terms-with-separator,
body.woocommerce-checkout
.wc-block-checkout
.wc-block-checkout__terms-with-separator * {
    font-size: .95rem !important;
    line-height: 1.55 !important;
}
/* =========================================================
   ORDER RECEIVED — ELM DALE SCHOOL
   ========================================================= */

.order-received-intro {
    background: var(--green);
    color: var(--paper-light);
}

.order-received-intro-inner {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 42px 40px 46px;
}

.order-received-intro .section-label {
    color: #d8c7a5;
    margin-bottom: 12px;
}

.order-received-intro h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: normal;
    line-height: 1.1;
    color: var(--paper-light);
    margin: 0 0 14px;
}

.order-received-intro-copy {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--paper-light);
    margin: 0;
}

@media (max-width: 700px) {
    .order-received-intro-inner {
        padding: 34px 24px 38px;
    }
}
/* =========================================================
   ORDER RECEIVED — REMOVE DUPLICATE WOO MESSAGE
   ========================================================= */

body.woocommerce-order-received
.woocommerce-thankyou-order-received {
    display: none;
}

/* =========================================================
   ELM DALE SCHOOL — INDIVIDUAL STOREFRONTS
   ========================================================= */

/* Shared storefront details */

.elmdale-storefront {
    --store-accent: #385342;
    --store-paper: #f7f3e9;
    --store-detail: #b99b68;
}

.elmdale-storefront .shop-intro {
    background: var(--store-accent);
    position: relative;
    overflow: hidden;
    border-bottom: 6px solid var(--store-detail);
}

.elmdale-storefront .shop-intro-inner {
    position: relative;
    z-index: 1;
}

.elmdale-storefront .shop-intro h1 {
    letter-spacing: -.025em;
}

.elmdale-storefront .shop-intro .section-label {
    color: var(--store-detail);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .72rem;
}

.elmdale-storefront .shop-intro-copy {
    color: rgba(255, 255, 255, .85);
}

.elmdale-storefront .shop-intro-copy p {
    margin: 0;
}

.elmdale-storefront .commerce-inner {
    background: var(--store-paper);
}

/* ---------------------------------------------------------
   THE RESALE SHOP
   Vintage general store
   --------------------------------------------------------- */

.elmdale-storefront.shop-resale-shop {
    --store-accent: #304b3b;
    --store-paper: #f5f0e5;
    --store-detail: #c6a46c;
}

.shop-resale-shop .shop-intro {
    background:
        linear-gradient(
            135deg,
            #304b3b 0%,
            #21382c 100%
        );
}

.shop-resale-shop .shop-intro h1 {
    font-family: var(--serif);
    font-style: normal;
}

.shop-resale-shop .shop-intro-inner::after {
    content: "EST. 1911";
    position: absolute;
    right: 0;
    bottom: 45px;
    color: rgba(255, 255, 255, .08);
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 8rem);
    pointer-events: none;
}

/* ---------------------------------------------------------
   THE TACKLE BOX
   Wisconsin fishing and sporting goods
   --------------------------------------------------------- */

.elmdale-storefront.shop-tackle-box {
    --store-accent: #244b5c;
    --store-paper: #f2f0e8;
    --store-detail: #d0a778;
}

.shop-tackle-box .shop-intro {
    background:
        linear-gradient(
            145deg,
            #315d70 0%,
            #193947 100%
        );
}

.shop-tackle-box .shop-intro h1 {
    font-family: var(--serif);
    font-style: italic;
}

.shop-tackle-box .shop-intro::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -140px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(255, 255, 255, .025),
        0 0 0 90px rgba(255, 255, 255, .025),
        0 0 0 135px rgba(255, 255, 255, .025);
    pointer-events: none;
}

/* ---------------------------------------------------------
   KIDS CORNER
   Nostalgic classroom and childhood discoveries
   --------------------------------------------------------- */

.elmdale-storefront.shop-kids-corner {
    --store-accent: #9a493c;
    --store-paper: #faf4e4;
    --store-detail: #e7bf70;
}

.shop-kids-corner .shop-intro {
    background:
        linear-gradient(
            135deg,
            #a95343 0%,
            #793c34 100%
        );
}

.shop-kids-corner .shop-intro h1 {
    font-family: var(--serif);
    letter-spacing: -.04em;
}

.shop-kids-corner .shop-intro::after {
    content: "A B C";
    position: absolute;
    right: 7%;
    bottom: 20px;
    font-family: var(--serif);
    font-size: clamp(5rem, 12vw, 11rem);
    font-weight: bold;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .065);
    transform: rotate(-8deg);
    pointer-events: none;
}

/* ---------------------------------------------------------
   Responsive storefront details
   --------------------------------------------------------- */

@media (max-width: 850px) {

    .shop-resale-shop .shop-intro-inner::after {
        display: none;
    }

    .shop-tackle-box .shop-intro::after {
        width: 260px;
        height: 260px;
        right: -140px;
        bottom: -100px;
    }

    .shop-kids-corner .shop-intro::after {
        right: -20px;
        bottom: 0;
        font-size: 5rem;
    }
}
/* =========================================================
   THE TACKLE BOX — ILLUSTRATED BANNER
   ========================================================= */

.shop-tackle-box .shop-intro {
    position: relative;
    isolation: isolate;
    min-height: 390px;
}

/* Walleye and fishing equipment */

.shop-tackle-box .shop-intro::before {
    content: "";
    position: absolute;
    z-index: 0;

    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;

    background-image: url("assets/images/tackle-box-art.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;

    opacity: 0;

    animation: tackle-art-appear 1.4s ease-out forwards;

    pointer-events: none;
}

/* Keep the shop heading above the artwork */

.shop-tackle-box .shop-intro-inner {
    position: relative;
    z-index: 2;
}

.shop-tackle-box .shop-intro h1,
.shop-tackle-box .shop-intro-copy {
    max-width: 52%;
}

/* Gentle appearance */

@keyframes tackle-art-appear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Smaller screens */

@media (max-width: 850px) {

    .shop-tackle-box .shop-intro {
        min-height: 0;
    }

    .shop-tackle-box .shop-intro::before {
        width: 100%;
        opacity: 0.25;
        background-position: center right;
        background-size: cover;
        animation: none;
    }

    .shop-tackle-box .shop-intro h1,
    .shop-tackle-box .shop-intro-copy {
        max-width: 100%;
    }
}

/* Accessibility: respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {

    .shop-tackle-box .shop-intro::before {
        animation: none;
        opacity: 0.95;
        transform: none;
    }
}
/* =========================================================
   KIDS CORNER — ILLUSTRATED BANNER
   ========================================================= */

.shop-kids-corner .shop-intro {
    position: relative;
    isolation: isolate;
    min-height: 390px;
}

/* Vintage and modern toys */

.shop-kids-corner .shop-intro::before {
    content: "";
    position: absolute;
    z-index: 0;

    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;

    background-image: url("assets/images/kids-corner-art.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;

    opacity: 0;
    animation: kids-art-appear 1.4s ease-out forwards;

    pointer-events: none;
}

/* Keep heading and description readable */

.shop-kids-corner .shop-intro-inner {
    position: relative;
    z-index: 2;
}

.shop-kids-corner .shop-intro h1,
.shop-kids-corner .shop-intro-copy {
    max-width: 52%;
}

/* Gentle fade and upward movement */

@keyframes kids-art-appear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Mobile layout */

@media (max-width: 850px) {

    .shop-kids-corner .shop-intro {
        min-height: 0;
    }

    .shop-kids-corner .shop-intro::before {
        width: 100%;
        background-size: cover;
        background-position: center right;
        animation: none;
        opacity: 0.2;
    }

    .shop-kids-corner .shop-intro h1,
    .shop-kids-corner .shop-intro-copy {
        max-width: 100%;
    }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {

    .shop-kids-corner .shop-intro::before {
        animation: none;
        opacity: 0.95;
        transform: none;
    }
}

/* Keep artwork subtle on small screens */

@media (max-width: 850px) and (prefers-reduced-motion: reduce) {

    .shop-kids-corner .shop-intro::before {
        opacity: 0.2;
    }
}
/* =========================================================
   THE TACKLE BOX — LAYERED SCROLL EXPERIMENT
   ========================================================= */

@media (min-width: 851px) {

    /* Keep the banner in view while merchandise approaches */

    .elmdale-storefront.shop-tackle-box .shop-intro,
    .elmdale-storefront.shop-kids-corner .shop-intro, 
    .elmdale-storefront.shop-resale-shop .shop-intro {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    /* Merchandise passes in front of the banner */

    .elmdale-storefront.shop-tackle-box .commerce-inner,
    .elmdale-storefront.shop-kids-corner .commerce-inner,
    .elmdale-storefront.shop-resale-shop .commerce-inner {
        position: relative;
        z-index: 2;

        background: var(--store-paper);

        box-shadow: 0 -14px 35px rgba(0, 0, 0, 0.12);

        /* Extend background to both edges of the viewport */
        box-shadow:
            0 -14px 35px rgba(0, 0, 0, 0.12),
            0 0 0 100vmax var(--store-paper);
        clip-path: inset(-35px -100vmax 0 -100vmax);
    }
}
/* =========================================================
   THE RESALE SHOP — ILLUSTRATED BANNER
   ========================================================= */

.shop-resale-shop .shop-intro {
    position: relative;
    isolation: isolate;
    min-height: 390px;
}

/* Antique general-store collection */

.shop-resale-shop .shop-intro::before {
    content: "";
    position: absolute;
    z-index: 0;

    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;

    background-image: url("assets/images/resale-shop-art.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;

    opacity: 0;
    animation: resale-art-appear 1.4s ease-out forwards;

    pointer-events: none;
}

/* Keep the heading above the artwork */

.shop-resale-shop .shop-intro-inner {
    position: relative;
    z-index: 2;
}

.shop-resale-shop .shop-intro h1,
.shop-resale-shop .shop-intro-copy {
    max-width: 52%;
}

/* Gentle entrance */

@keyframes resale-art-appear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Smaller screens */

@media (max-width: 850px) {

    .shop-resale-shop .shop-intro {
        min-height: 0;
    }

    .shop-resale-shop .shop-intro::before {
        width: 100%;
        background-size: cover;
        background-position: center right;
        animation: none;
        opacity: 0.2;
    }

    .shop-resale-shop .shop-intro h1,
    .shop-resale-shop .shop-intro-copy {
        max-width: 100%;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {

    .shop-resale-shop .shop-intro::before {
        animation: none;
        opacity: 0.95;
        transform: none;
    }
}

@media (max-width: 850px) and (prefers-reduced-motion: reduce) {

    .shop-resale-shop .shop-intro::before {
        opacity: 0.2;
    }
}

/* =========================================================
   THE ART ROOM — ILLUSTRATED BANNER
   ========================================================= */

.elmdale-storefront.shop-art-room {
    --store-accent: #b87a28;
    --store-paper: #f8f1e4;
    --store-detail: #68431d;
}

.shop-art-room .shop-intro {
    position: relative;
    isolation: isolate;
    min-height: 390px;
    background: #c99542;
}

.shop-art-room .shop-intro::before {
    content: "";
    position: absolute;
    z-index: 0;

    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;

    background-image: url("assets/images/art-room-art.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;

    opacity: 0;
    animation: art-room-appear 1.4s ease-out forwards;
    pointer-events: none;
}

.shop-art-room .shop-intro-inner {
    position: relative;
    z-index: 2;
}

.shop-art-room .shop-intro h1,
.shop-art-room .shop-intro-copy {
    max-width: 52%;
}

@keyframes art-room-appear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

@media (max-width: 850px) {
    .shop-art-room .shop-intro {
        min-height: 0;
    }

    .shop-art-room .shop-intro::before {
        width: 100%;
        background-size: cover;
        background-position: center right;
        animation: none;
        opacity: 0.2;
    }

    .shop-art-room .shop-intro h1,
    .shop-art-room .shop-intro-copy {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-art-room .shop-intro::before {
        animation: none;
        opacity: 0.95;
        transform: none;
    }
}

@media (max-width: 850px) and (prefers-reduced-motion: reduce) {
    .shop-art-room .shop-intro::before {
        opacity: 0.2;
    }
}

/* Art Room layered scrolling */

@media (min-width: 851px) {
    .elmdale-storefront.shop-art-room .shop-intro {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .elmdale-storefront.shop-art-room .commerce-inner {
        position: relative;
        z-index: 2;
        background: var(--store-paper);

        box-shadow:
            0 -14px 35px rgba(0, 0, 0, 0.12),
            0 0 0 100vmax var(--store-paper);

        clip-path: inset(-35px -100vmax 0 -100vmax);
    }
}


/* Art Room — vintage mustard background */
.shop-art-room .shop-intro {
    background: #B99A35;
}


/* =========================================================
   THE LIBRARY — ILLUSTRATED BANNER
   ========================================================= */

.elmdale-storefront.shop-library {
    --store-accent: #713D48;
    --store-paper: #f8f1e8;
    --store-detail: #56303a;
}

.shop-library .shop-intro {
    position: relative;
    isolation: isolate;
    min-height: 390px;
    background: #713D48;
}

.shop-library .shop-intro::before {
    content: "";
    position: absolute;
    z-index: 0;

    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;

    background-image: url("assets/images/library-art.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;

    opacity: 0;
    animation: library-art-appear 1.4s ease-out forwards;

    pointer-events: none;
}

.shop-library .shop-intro-inner {
    position: relative;
    z-index: 2;
}

.shop-library .shop-intro h1,
.shop-library .shop-intro-copy {
    max-width: 52%;
}

@keyframes library-art-appear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Mobile layout */

@media (max-width: 850px) {
    .shop-library .shop-intro {
        min-height: 0;
    }

    .shop-library .shop-intro::before {
        width: 100%;
        background-size: cover;
        background-position: center right;
        animation: none;
        opacity: 0.2;
    }

    .shop-library .shop-intro h1,
    .shop-library .shop-intro-copy {
        max-width: 100%;
    }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    .shop-library .shop-intro::before {
        animation: none;
        opacity: 0.95;
        transform: none;
    }
}

@media (max-width: 850px) and (prefers-reduced-motion: reduce) {
    .shop-library .shop-intro::before {
        opacity: 0.2;
    }
}

/* Layered scrolling */

@media (min-width: 851px) {
    .elmdale-storefront.shop-library .shop-intro {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .elmdale-storefront.shop-library .commerce-inner {
        position: relative;
        z-index: 2;

        background: var(--store-paper);

        box-shadow:
            0 -14px 35px rgba(0, 0, 0, 0.12),
            0 0 0 100vmax var(--store-paper);

        clip-path: inset(-35px -100vmax 0 -100vmax);
    }
}


/* =========================================================
   THE CLOAK ROOM — ILLUSTRATED STOREFRONT
   ========================================================= */

.elmdale-storefront.shop-cloak-room {
    --store-accent: #353632;
    --store-paper: #f7f1e8;
    --store-detail: #555047;
}

.shop-cloak-room .shop-intro {
    position: relative;
    isolation: isolate;
    min-height: 390px;
    background: #353632;
}

.shop-cloak-room .shop-intro::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;

    background-image: url("assets/images/cloak-room-art.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;

    opacity: 0;
    animation: cloak-room-art-appear 1.4s ease-out forwards;
    pointer-events: none;
}

.shop-cloak-room .shop-intro-inner {
    position: relative;
    z-index: 2;
}

.shop-cloak-room .shop-intro h1,
.shop-cloak-room .shop-intro-copy {
    max-width: 52%;
}

@keyframes cloak-room-art-appear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Mobile layout */

@media (max-width: 850px) {
    .shop-cloak-room .shop-intro {
        min-height: 0;
    }

    .shop-cloak-room .shop-intro::before {
        width: 100%;
        background-size: cover;
        background-position: center right;
        animation: none;
        opacity: 0.2;
    }

    .shop-cloak-room .shop-intro h1,
    .shop-cloak-room .shop-intro-copy {
        max-width: 100%;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .shop-cloak-room .shop-intro::before {
        animation: none;
        opacity: 0.95;
        transform: none;
    }
}

@media (max-width: 850px) and (prefers-reduced-motion: reduce) {
    .shop-cloak-room .shop-intro::before {
        opacity: 0.2;
    }
}

/* Layered scrolling */

@media (min-width: 851px) {
    .elmdale-storefront.shop-cloak-room .shop-intro {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .elmdale-storefront.shop-cloak-room .commerce-inner {
        position: relative;
        z-index: 2;
        background: var(--store-paper);

        box-shadow:
            0 -14px 35px rgba(0, 0, 0, 0.12),
            0 0 0 100vmax var(--store-paper);

        clip-path: inset(-35px -100vmax 0 -100vmax);
    }
}


/* =========================================================
   THE TECH. ED SHOP — ILLUSTRATED STOREFRONT
   ========================================================= */

.elmdale-storefront.shop-tech-shop {
    --store-accent: #394d61;
    --store-paper: #f5f1e9;
    --store-detail: #526477;
}

.shop-tech-shop .shop-intro {
    position: relative;
    isolation: isolate;
    min-height: 390px;
    background: #394d61;
}

.shop-tech-shop .shop-intro::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;

    background-image: url("assets/images/tech-ed-art.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;

    opacity: 0;
    animation: tech-ed-art-appear 1.4s ease-out forwards;
    pointer-events: none;
}

.shop-tech-shop .shop-intro-inner {
    position: relative;
    z-index: 2;
}

.shop-tech-shop .shop-intro h1,
.shop-tech-shop .shop-intro-copy {
    max-width: 52%;
}

@keyframes tech-ed-art-appear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Mobile layout */

@media (max-width: 850px) {
    .shop-tech-shop .shop-intro {
        min-height: 0;
    }

    .shop-tech-shop .shop-intro::before {
        width: 100%;
        background-size: cover;
        background-position: center right;
        animation: none;
        opacity: 0.2;
    }

    .shop-tech-shop .shop-intro h1,
    .shop-tech-shop .shop-intro-copy {
        max-width: 100%;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .shop-tech-shop .shop-intro::before {
        animation: none;
        opacity: 0.95;
        transform: none;
    }
}

@media (max-width: 850px) and (prefers-reduced-motion: reduce) {
    .shop-tech-shop .shop-intro::before {
        opacity: 0.2;
    }
}

/* Layered scrolling */

@media (min-width: 851px) {
    .elmdale-storefront.shop-tech-shop .shop-intro {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .elmdale-storefront.shop-tech-shop .commerce-inner {
        position: relative;
        z-index: 2;
        background: var(--store-paper);

        box-shadow:
            0 -14px 35px rgba(0, 0, 0, 0.12),
            0 0 0 100vmax var(--store-paper);

        clip-path: inset(-35px -100vmax 0 -100vmax);
    }
}


/* =========================================================
   ELM DALE SCHOOL — CENTRAL SHOP DIRECTORY
   ========================================================= */

.elmdale-directory {
    background: #f7f3e9;
}

.directory-inner {
    width: min(var(--page-width), calc(100% - 80px));
    margin: 0 auto;
}

/* Welcome */

.directory-intro {
    background: #304b3b;
    color: #fff;
}

.directory-intro-inner {
    width: min(var(--page-width), calc(100% - 80px));
    margin: 0 auto;
    padding: 95px 0 100px;
}

.directory-intro .section-label {
    color: #d6b98a;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .72rem;
}

.directory-intro h1 {
    max-width: 950px;
    margin: 18px 0 25px;
    color: #fff;
    font-family: var(--serif);
    font-weight: normal;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.02;
}

.directory-intro p:not(.section-label) {
    max-width: 650px;
    color: rgba(255, 255, 255, .83);
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1.65;
}

/* Sections */

.directory-shops {
    padding: 60px 0 100px;
}

.directory-section-heading {
    margin-bottom: 40px;
}

.directory-section-heading .section-label {
    color: #9a7657;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
}

.directory-section-heading h2 {
    margin: 12px 0;
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: normal;
    color: var(--ink);
}

.directory-section-heading > p:last-child:not(.section-label) {
    color: var(--muted);
}

/* Illustrated cards */

.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.directory-card {
    --card-color: #304b3b;

    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 310px;
    overflow: hidden;
    padding: 36px;

    background: var(--card-color);
    color: #fff;
    text-decoration: none;

    border-radius: 5px;

    transition: transform .3s ease, box-shadow .3s ease;
}

.directory-card-art {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 25%;

    background-repeat: no-repeat;
    background-size: contain;
    background-position: center right;

    opacity: .85;
    transition: transform .5s ease;
}

.directory-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;

    background: linear-gradient(
        90deg,
        var(--card-color) 0%,
        var(--card-color) 18%,
        transparent 100%
    );
    pointer-events: none;
}

.directory-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 65%;
    position: relative;
    z-index: 1;
}

.directory-card-eyebrow {
    margin-bottom: 14px;
    color: #e1c5a4;
    font-family: var(--sans);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.directory-card-title {
    margin-bottom: 14px;
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 2.7vw, 2.7rem);
    line-height: 1.05;
}

.directory-card-description {
    color: rgba(255, 255, 255, .88);
    font-family: var(--serif);
    font-size: .95rem;
    line-height: 1.5;
}

.directory-card-link {
    margin-top: 22px;
    color: #f0d2a6;
    font-family: var(--sans);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: bold;
}

.directory-card-resale-shop { --card-color: #304b3b; }
.directory-card-art-room    { --card-color: #B99A35; }
.directory-card-tackle-box  { --card-color: #314e63; }
.directory-card-library     { --card-color: #713D48; }
.directory-card-kids-corner { --card-color: #a34439; }
.directory-card-cloak-room  { --card-color: #353632; }
.directory-card-tech-shop     { --card-color: #394d61; }

/* Let the final card span the full row */

.directory-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (hover: hover) {
    .directory-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 35px rgba(0, 0, 0, .14);
    }

    .directory-card:hover .directory-card-art {
        transform: scale(1.035);
    }
}

.directory-card:focus-visible {
    outline: 3px solid #b77d3e;
    outline-offset: 4px;
}

/* Recently Added */

.directory-recent {
    padding: 80px 0 110px;
    background: #eee9df;
}

.directory-recent .woocommerce ul.products,
.woocommerce .directory-recent ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 35px 24px;
}

/* Mobile */

@media (max-width: 850px) {
    .directory-inner,
    .directory-intro-inner {
        width: auto;
        margin: 0 25px;
    }

    .directory-intro-inner {
        padding: 70px 0 75px;
    }

    .directory-shops {
        padding: 65px 0 75px;
    }

    .directory-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .directory-card {
        min-height: 270px;
        padding: 28px;
    }

    .directory-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .directory-recent {
        padding: 65px 0 80px;
    }

    .directory-recent .woocommerce ul.products,
    .woocommerce .directory-recent ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .directory-card-content {
        max-width: 78%;
    }

    .directory-card-art {
        opacity: .6;
    }

    .directory-recent .woocommerce ul.products,
    .woocommerce .directory-recent ul.products {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .directory-card,
    .directory-card-art {
        transition: none;
    }
}


/* =========================================================
   SHOP DIRECTORY — ILLUSTRATED HERO
   ========================================================= */

.elmdale-directory .directory-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background-color: #173a2d;
    background-image: url("assets/images/shop-directory-art.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Gentle shading behind the real text */

.elmdale-directory .directory-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background: linear-gradient(
        90deg,
        rgba(12, 37, 29, .50) 0%,
        rgba(12, 37, 29, .30) 35%,
        rgba(12, 37, 29, 0) 70%
    );
    pointer-events: none;
}

.elmdale-directory .directory-intro-inner {
    position: relative;
    z-index: 1;
    padding: 60px 0 65px;
}

.elmdale-directory .directory-intro h1 {
    max-width: 660px;
    font-size: clamp(2.8rem, 4.4vw, 4.8rem);
    line-height: 1.02;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.elmdale-directory .directory-intro p:not(.section-label) {
    max-width: 550px;
    font-size: 1.05rem;
    line-height: 1.55;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}

/* Scroll link */

.elmdale-directory .directory-explore-link {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 20px;

    border: 1px solid rgba(255, 255, 255, .65);
    background: rgba(19, 46, 35, .65);

    color: #fff;
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: bold;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;

    transition: background-color .25s ease;
}

.elmdale-directory .directory-explore-link:hover,
.elmdale-directory .directory-explore-link:focus-visible {
    background: #b77d3e;
    color: #fff;
}

/* Tablet */

@media (max-width: 850px) {
    .elmdale-directory .directory-intro {
        background-position: 62% center;
    }

    .elmdale-directory .directory-intro-inner {
        padding: 60px 0 65px;
    }
}

/* Phone */

@media (max-width: 560px) {
    .elmdale-directory .directory-intro {
        background-position: 65% center;
    }

    .elmdale-directory .directory-intro::before {
        background: rgba(12, 37, 29, .65);
    }

    .elmdale-directory .directory-intro-inner {
        padding: 50px 0 55px;
    }

    .elmdale-directory .directory-intro h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .elmdale-directory .directory-explore-link {
        transition: none;
    }
}


/* Shop directory — keep introduction clear of illustration */

@media (min-width: 851px) {

    .elmdale-directory .directory-intro h1 {
        max-width: 530px;
        font-size: clamp(2.8rem, 3.7vw, 4rem);
    }

    .elmdale-directory .directory-intro p:not(.section-label) {
        max-width: 420px;
    }

}


/* =========================================================
   HOMEPAGE — SCHOOLHOUSE SHOPS INVITATION
   ========================================================= */

/* Allow the hero's two content areas to occupy opposite sides */

.home .hero {
    justify-content: space-between;
}

/* Vintage-inspired shop invitation */

.home .hero-shop-invitation {
    position: relative;
    z-index: 3;

    flex: 0 0 315px;
    align-self: flex-end;

    margin: 0 max(45px, calc((100vw - var(--page-width)) / 2 + 30px)) 90px 20px;

    padding: 7px;

    background: rgba(244, 235, 211, .96);
    border: 1px solid #b6a17d;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .32),
        inset 0 0 0 2px rgba(255, 255, 255, .45);

    color: #2f4035;
}

.home .hero-shop-invitation-inner {
    padding: 30px 25px 28px;
    border: 1px solid rgba(82, 76, 57, .35);
    text-align: center;
}

.home .hero-shop-eyebrow {
    margin: 0 0 18px;

    color: #8b6747;
    font-family: var(--sans);
    font-size: .65rem;
    font-weight: bold;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.home .hero-shop-invitation h2 {
    margin: 0 0 18px;

    color: #304b3b;
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: normal;
    line-height: 1.05;
}

.home .hero-shop-invitation-inner > p:not(.hero-shop-eyebrow) {
    margin: 0 0 25px;

    color: #5f5b50;
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.5;
}

.home .hero-shop-invitation a {
    display: inline-block;
    padding: 12px 17px;

    background: #304b3b;
    color: #fff;

    font-family: var(--sans);
    font-size: .68rem;
    font-weight: bold;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;

    transition: background-color .25s ease;
}

.home .hero-shop-invitation a:hover,
.home .hero-shop-invitation a:focus-visible {
    background: #8b6747;
    color: #fff;
}

/* Tablet and phone */

@media (max-width: 1100px) {
    .home .hero {
        flex-wrap: wrap;
    }

    .home .hero-content {
        width: 100%;
        padding-bottom: 35px;
    }

    .home .hero-shop-invitation {
        flex: 0 1 315px;
        margin: 0 25px 55px;
    }
}

@media (max-width: 560px) {
    .home .hero {
        align-items: flex-start;
    }

    .home .hero-content {
        padding-bottom: 30px;
    }

    .home .hero-shop-invitation {
        width: calc(100% - 50px);
        max-width: 360px;
        flex-basis: auto;
        margin: 0 25px 45px;
    }

    .home .hero-shop-invitation-inner {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home .hero-shop-invitation a {
        transition: none;
    }
}


/* =========================================================
   HOMEPAGE — FULL-WIDTH PHOTOGRAPHIC PARALLAX
   ========================================================= */

/* The hero owns the full-width photographic background. */

.home .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Background layer fills the hero without joining the flex layout. */

.home .hero-image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    transform: none;
    pointer-events: none;
    overflow: hidden;
}

/* The photograph itself is independently movable. */

.home .hero-photo {
    position: absolute;
    inset: -12% 0;
    background-size: cover;
    background-position: center 55%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* Preserve the original dark gradient over the photograph. */

.home .hero-image::before {
    z-index: 2;
}

/* Keep foreground content above the photograph. */

.home .hero-content,
.home .hero-shop-invitation {
    position: relative;
    z-index: 3;
}

/* Desktop composition */

@media (min-width: 1101px) {

    .home .hero {
        min-height: 190vh;
        align-items: flex-start;
        justify-content: space-between;
    }

    .home .hero-content {
        width: min(850px, 62%);
        flex-shrink: 0;
        padding-top: 190px;
    }

    .home .hero h1 {
        font-size: clamp(3rem, 4.3vw, 4.7rem);
        letter-spacing: -.045em;
    }

    .home .hero-shop-invitation {
        align-self: flex-start;
        margin-top: 270px;
        margin-bottom: 90px;
    }
}

/* Vintage sign translucency */

.home .hero-shop-invitation {
    background: rgba(244, 235, 211, .91);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Mobile: allow a little extra scrolling space. */

@media (max-width: 1100px) {

    .home .hero {
        min-height: 105vh;
    }

    .home .hero-photo {
        inset: -8% 0;
        background-position: 58% center;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .home .hero-photo {
        inset: 0;
        transform: none !important;
        will-change: auto;
    }

    .home .hero {
        min-height: 88vh;
    }
}

/* =========================================================
   HOMEPAGE — STORYTELLING PARALLAX REFINEMENT
   ========================================================= */

/* Photograph fills the viewport rather than the full 190vh hero. */

.home .hero-image {
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.home .hero-photo {
    position: absolute;
    inset: -7% 0;
    background-size: cover;
    background-position: center 55%;
}

/* Second storytelling moment */

.home .hero-story {
    position: absolute;
    z-index: 3;

    top: 108vh;
    left: max(40px, calc((100vw - var(--page-width)) / 2 + 40px));

    width: min(650px, 75%);

    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
}

.home .hero-story-eyebrow {
    margin: 0 0 24px;

    color: #e0b99d;
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: bold;
    letter-spacing: .22em;
}

.home .hero-story h2 {
    margin: 0 0 30px;

    color: #fff;
    font-family: var(--serif);
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: normal;
    line-height: 1.05;
}

.home .hero-story-words {
    margin: 0 0 28px;

    color: #f0d7b4;
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    line-height: 1.5;
}

.home .hero-story-description {
    max-width: 550px;
    margin: 0;

    font-family: var(--serif);
    font-size: 1.1rem;
    line-height: 1.75;
}

/* =========================================================
   MOBILE HOMEPAGE — SEQUENTIAL STORYTELLING
   ========================================================= */

@media (max-width: 850px) {

    /*
     * On mobile, the hero's three content sections participate
     * in one vertical layout instead of overlapping.
     */

    .home .hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        min-height: 0;
        padding-bottom: 65px;
    }

    /* Opening introduction */

    .home .hero-content {
        position: relative;
        z-index: 3;
        width: 100%;
        flex: 0 0 auto;
        padding: 155px 25px 75px;
        margin: 0;
    }

    /* Second storytelling moment */

    .home .hero-story {
        position: relative;
        z-index: 3;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;

        width: auto;
        max-width: 650px;
        flex: 0 0 auto;

        margin: 80px 25px 95px;
    }

    .home .hero-story h2 {
        font-size: clamp(2.7rem, 9vw, 4rem);
    }

    .home .hero-story-description {
        font-size: 1rem;
    }

    /* Schoolhouse Shops invitation */

    .home .hero-shop-invitation {
        position: relative;
        z-index: 3;

        order: 3;
        align-self: center;
        flex: 0 0 auto;

        width: calc(100% - 50px);
        max-width: 380px;

        margin: 0 25px 25px;
    }

    .home .hero-shop-invitation-inner {
        padding: 25px 20px;
    }

    /* Photograph remains behind the entire story */

    .home .hero-image {
        position: absolute;
        z-index: 0;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        min-height: 0;
        margin: 0;
    }
}

/* =========================================================
   MOBILE HEADER — COMPACT, CONSISTENT NAVIGATION
   ========================================================= */

.mobile-header-actions {
    display: none;
}

@media (max-width: 850px) {

    .site-header,
    .home .site-header,
    body:not(.home) .site-header {
        z-index: 1000;
    }

    .site-header .site-header-inner,
    .home .site-header .site-header-inner,
    .home .site-header.is-scrolled .site-header-inner,
    body:not(.home) .site-header .site-header-inner,
    body:not(.home) .site-header.is-scrolled .site-header-inner {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
        min-height: 68px;
        padding: 12px 18px;
    }

    .site-header .site-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-header .site-name {
        font-size: clamp(.95rem, 4vw, 1.25rem);
        letter-spacing: .035em;
    }

    .site-header .site-established {
        font-size: .55rem;
        letter-spacing: .1em;
    }

    .site-header .mobile-header-actions {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 14px;
    }

    .site-header .mobile-menu-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        border: 0;
        padding: 8px 0;
        background: transparent;
        font-family: var(--sans);
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        cursor: pointer;
    }

    .site-header .mobile-menu-icon {
        font-size: 1.2rem;
        line-height: 1;
    }

    .site-header .mobile-basket {
        font-family: var(--sans);
        font-size: .7rem;
        font-weight: 700;
        text-transform: uppercase;
        text-decoration: none;
        white-space: nowrap;
    }

    /* Mobile header: dark controls on light interior-page headers. */
    .site-header .mobile-basket,
    .site-header .mobile-menu-toggle {
        color: #173327;
    }

    /* STEP 1606: Homepage header is dark from the first screen. */
    .home .site-header {
        background: rgba(23, 41, 31, .98);
        border-bottom-color: rgba(255, 255, 255, .12);
    }

    .home .site-header .mobile-basket,
    .home .site-header .mobile-menu-toggle {
        color: #fff;
    }

    /* Light controls when the header changes to its dark state. */
    .site-header.is-scrolled .mobile-basket,
    .site-header.is-scrolled .mobile-menu-toggle,
    .site-header.menu-open .mobile-basket,
    .site-header.menu-open .mobile-menu-toggle {
        color: #fff;
    }

    /* Keep the desktop navigation completely hidden on mobile. */

    .site-header .site-navigation,
    .home .site-header .site-navigation,
    body:not(.home) .site-header .site-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        padding: 12px 18px 20px;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: visible;
        background: rgba(23, 41, 31, .98);
        border-top: 1px solid rgba(255,255,255,.15);
        box-shadow: 0 12px 24px rgba(0,0,0,.16);
    }

    .site-header.menu-open .site-navigation,
    .home .site-header.menu-open .site-navigation,
    body:not(.home) .site-header.menu-open .site-navigation {
        display: flex;
    }

    .site-header .site-navigation a {
        display: block;
        padding: 13px 5px;
        color: #fff;
        font-size: .82rem;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .site-header .site-navigation .site-basket {
        display: none;
    }

    /* Keep the mobile header's dimensions stable during scrolling. */

    .home .site-header.is-scrolled .site-header-inner,
    body:not(.home) .site-header.is-scrolled .site-header-inner {
        min-height: 68px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-header.menu-open {
        background: rgba(23, 41, 31, .98);
    }

    .site-header.menu-open .site-name,
    .site-header.menu-open .site-established,
    .site-header.menu-open .mobile-basket,
    .site-header.menu-open .mobile-menu-toggle {
        color: #fff;
    }
}

@media (min-width: 851px) {
    .mobile-header-actions {
        display: none;
    }
}
/* Elm Dale — Product gallery visibility fallback */


/* Elm Dale — Product gallery visibility fallback */

.single-product .elmdale-sold-message {
    color: var(--brick, #8a4535);
    font-style: italic;
    font-size: 1.05rem;
    margin: 0.5rem 0 1.25rem;
}


/* =========================================================
   ELM DALE — MOBILE SHOP DIRECTORY REFINEMENTS
   ========================================================= */

@media (max-width: 600px) {

    .directory-intro-inner {
        padding: 45px 0 50px;
    }

    .directory-intro h1 {
        font-size: 2.375rem;
        line-height: 1.08;
        margin: 16px 0 20px;
    }

    .directory-intro p:not(.section-label) {
        font-size: 1.0625rem;
        line-height: 1.55;
    }

    .directory-shops {
        padding-top: 35px;
    }

}

/* =========================================================
   ELM DALE — MOBILE SHOP CARD TEXT READABILITY
   ========================================================= */

@media (max-width: 600px) {

    .directory-card::after {
        background: linear-gradient(
            90deg,
            var(--card-color) 0%,
            var(--card-color) 28%,
            color-mix(in srgb, var(--card-color) 85%, transparent) 55%,
            transparent 100%
        );
    }

}

/* =========================================================
   ELM DALE — MOBILE STOREFRONT PRODUCT GRID
   ========================================================= */

@media (max-width: 560px) {

    .elmdale-storefront .woocommerce ul.products {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .elmdale-storefront .woocommerce ul.products li.product,
    .woocommerce .elmdale-storefront ul.products li.product {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0;
        min-width: 0;
    }

    .elmdale-storefront .woocommerce ul.products li.product a img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

}

/* =========================================================
   ELM DALE — RESALE SHOP COMPACT MOBILE GRID EXPERIMENT
   ========================================================= */

@media (max-width: 600px) {

    /* Two-column merchandise grid */

    .elmdale-storefront.shop-resale-shop ul.products {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px;
    }

    /* Reset WooCommerce product dimensions */

    .elmdale-storefront.shop-resale-shop ul.products li.product {
        float: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    /* Square photographs */

    .elmdale-storefront.shop-resale-shop ul.products li.product a img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    /* Compact product titles */

    .elmdale-storefront.shop-resale-shop ul.products li.product
    .woocommerce-loop-product__title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    /* Prominent prices */

    .elmdale-storefront.shop-resale-shop ul.products li.product .price {
        font-size: .9rem;
        margin-bottom: 0;
    }

    /* Purchasing happens on the product detail page */

    .elmdale-storefront.shop-resale-shop ul.products li.product .button {
        display: none;
    }

}


/* Elm Dale — colorful Explore This buttons */

.woocommerce ul.products li.product .elmdale-explore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 0;
    padding: 12px 19px;

    border: 2px solid transparent;
    border-radius: 9px;

    background: #c93838;
    color: #ffffff;

    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;

    box-shadow: 0 3px 0 rgba(0, 0, 0, .15);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

/* Alternate colors across the product grid */

.woocommerce ul.products li.product:nth-child(5n+1) .elmdale-explore-button {
    background: #c93838;
    color: #ffffff;
}

.woocommerce ul.products li.product:nth-child(5n+2) .elmdale-explore-button {
    background: #245cba;
    color: #ffffff;
}

.woocommerce ul.products li.product:nth-child(5n+3) .elmdale-explore-button {
    background: #f2bf32;
    color: #282414;
}

.woocommerce ul.products li.product:nth-child(5n+4) .elmdale-explore-button {
    background: #287a43;
    color: #ffffff;
}

.woocommerce ul.products li.product:nth-child(5n+5) .elmdale-explore-button {
    background: #d85c20;
    color: #ffffff;
}

/* Hover and keyboard focus */

@media (hover: hover) {
    .woocommerce ul.products li.product .elmdale-explore-button:hover {
        filter: brightness(1.08);
        transform: translateY(-3px);
        box-shadow: 0 6px 0 rgba(0, 0, 0, .12);
    }
}

.woocommerce ul.products li.product .elmdale-explore-button:focus-visible {
    outline: 3px solid #222;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .woocommerce ul.products li.product .elmdale-explore-button {
        transition: none;
    }
}


/* Elm Dale — show Explore This in the Resale Shop */

/* Override the older rule that hid purchase buttons. */
.elmdale-storefront.shop-resale-shop ul.products li.product .elmdale-explore-button {
    display: inline-flex;
}


/* ELM DALE — OBJECT EXHIBIT DESIGN V1 */

/* Give the object information its own catalogue card */

.single-product div.product .summary {
    box-sizing: border-box;
    padding: 34px 36px 38px;
    background: #fffaf0;
    border: 1px solid #ded1b9;
    border-radius: 12px;
    box-shadow: 6px 7px 0 rgba(56, 74, 55, .10);
}

/* Decorative classroom-style accent */

.single-product div.product .summary::before {
    content: "";
    display: block;
    width: 68px;
    height: 6px;
    margin-bottom: 26px;
    border-radius: 4px;
    background: #d97848;
}

/* Make the title feel like an exhibit heading */

.single-product div.product .product_title {
    font-size: clamp(2.3rem, 3.4vw, 3.7rem);
    line-height: 1.08;
    margin-bottom: 22px;
}

/* A little more warmth around the price */

.single-product div.product p.price {
    font-size: 1.9rem;
    margin-bottom: 24px;
}

/* Colorful wooden-block-inspired purchase button */

.single-product div.product form.cart .button {
    background: #e5a33a;
    border: 2px solid #bd7921;
    border-radius: 9px;
    color: #203b32;
    padding: 16px 25px;
    box-shadow: 0 5px 0 #bd7921;
    font-size: .76rem;
    letter-spacing: .09em;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

@media (hover: hover) {
    .single-product div.product form.cart .button:hover {
        background: #f0b752;
        color: #203b32;
        transform: translateY(2px);
        box-shadow: 0 3px 0 #bd7921;
    }
}

/* Subtle photographic presentation */

.single-product div.product div.images img {
    border-radius: 10px;
    border: 1px solid rgba(54, 69, 55, .13);
    box-shadow: 0 7px 24px rgba(37, 43, 34, .09);
}

/* Catalogue identifier */

.single-product .elmdale-object-meta {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px dashed #c9b99e;
}

/* Keep the card comfortable on smaller screens */

@media (max-width: 850px) {
    .single-product div.product .summary {
        padding: 28px 24px 32px;
    }

    .single-product div.product .product_title {
        font-size: clamp(2.2rem, 9vw, 3.3rem);
    }
}


/* ELM DALE — CURIOUS SHOP OBJECT PAGE V2 */

/* Return to an open, editorial layout */

.single-product div.product .summary {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 0 0 35px;
}

/* Remove the V1 decorative stripe */

.single-product div.product .summary::before {
    display: none;
}

/* Small, colorful schoolhouse label */

.single-product .object-eyebrow {
    display: inline-block;
    padding: 9px 13px;
    margin-bottom: 24px;
    background: #e6b34d;
    color: #263e34;
    border-radius: 4px;
    font-size: .65rem;
    letter-spacing: .13em;
    transform: rotate(-1deg);
}

/* Strong, editorial title */

.single-product div.product .product_title {
    font-size: clamp(2.7rem, 4vw, 4.4rem);
    line-height: 1.04;
    margin-bottom: 30px;
}

/* Price and availability */

.single-product div.product p.price {
    font-size: 2rem;
    margin-bottom: 24px;
}

.single-product div.product .stock {
    margin-bottom: 25px;
}

/* Give purchasing its own visual space */

.single-product div.product form.cart {
    padding: 24px 0 30px;
    margin-bottom: 22px;
    border-top: 1px solid #d6cbb9;
    border-bottom: 1px solid #d6cbb9;
}

/* A more confident, less toy-like purchase button */

.single-product div.product form.cart .button {
    background: #ad4938;
    border: 1px solid #ad4938;
    border-radius: 5px;
    box-shadow: none;
    color: #fffaf0;
    padding: 16px 25px;
    font-size: .76rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

@media (hover: hover) {
    .single-product div.product form.cart .button:hover {
        background: #87382c;
        border-color: #87382c;
        color: #fffaf0;
        transform: translateY(-2px);
        box-shadow: none;
    }
}

/* Catalogue number as a small archival detail */

.single-product .elmdale-object-meta {
    border-top: 0;
    padding-top: 0;
    margin-top: 10px;
}

.single-product .object-id {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 12px;
    background: #e9e4d5;
    border: 1px solid #d4cbb8;
    border-radius: 3px;
    color: #385246;
    font-size: .68rem;
    letter-spacing: .12em;
}

/* Mobile layout */

@media (max-width: 850px) {
    .single-product div.product .summary {
        padding: 28px 0 0;
    }

    .single-product div.product .product_title {
        font-size: clamp(2.5rem, 10vw, 3.7rem);
    }
}


/* =========================================================
   ELM DALE OBJECT CABINET V1
   Custom single-product experience
   ========================================================= */

.single-product .elmdale-object-archive {
    --cabinet-green: #183d35;
    --cabinet-paper: #f5edda;
    --cabinet-yellow: #f4c44e;
    --cabinet-orange: #ee6846;

    width: 100%;
    color: var(--cabinet-paper);
}

/* Collection heading */

.single-product .elmdale-cabinet-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    margin-bottom: 30px;
    padding-bottom: 16px;

    border-bottom: 1px solid rgba(245,237,218,.28);

    font-family: var(--sans);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.single-product .elmdale-cabinet-heading-left {
    display: flex;
    align-items: center;
    gap: 12px;
}


.single-product .elmdale-cabinet-heading-right {
    color: var(--cabinet-paper);
}

/* Main composition */

.single-product .elmdale-archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

/* Exhibit */

.single-product .elmdale-archive-exhibit {
    min-width: 0;
    padding: clamp(12px, 2vw, 26px);

    background: #294b40;
    border: 1px solid rgba(245,237,218,.22);
    border-radius: 5px;
}

.single-product .elmdale-archive-exhibit-inner {
    min-width: 0;
}

.single-product .elmdale-archive-exhibit div.images {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
}

.single-product .elmdale-archive-exhibit div.images img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

/* Object record */

.single-product .elmdale-archive-record {
    min-width: 0;
    padding: 10px 0 0;
}

.single-product .elmdale-archive-record .summary {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.single-product .elmdale-archive-record .summary::before {
    display: none;
}

/* Typography */

.single-product .elmdale-archive-record .product_title {
    color: var(--cabinet-paper);
    font-size: clamp(2.6rem, 4vw, 4.6rem);
    line-height: 1.04;
}

.single-product .elmdale-archive-record .object-eyebrow {
    color: var(--cabinet-green);
    background: var(--cabinet-yellow);
}

.single-product .elmdale-archive-record .object-description,
.single-product .elmdale-archive-record .object-description p {
    color: var(--cabinet-paper);
}

.single-product .elmdale-archive-record p.price {
    color: var(--cabinet-yellow);
    font-size: 2.1rem;
}

/* Availability */

.single-product .elmdale-archive-record .stock {
    color: var(--cabinet-paper);
}

/* Purchase area */

.single-product .elmdale-archive-record form.cart {
    padding: 24px 0;
    margin: 24px 0;

    border-top: 1px solid rgba(245,237,218,.25);
    border-bottom: 1px solid rgba(245,237,218,.25);
}

.single-product .elmdale-archive-record form.cart .button {
    min-height: 52px;
    padding: 16px 28px;

    background: var(--cabinet-orange);
    border: 1px solid var(--cabinet-orange);
    border-radius: 4px;
    box-shadow: none;

    color: #fff;
    font-weight: 700;
}

@media (hover: hover) {
    .single-product .elmdale-archive-record form.cart .button:hover {
        background: #ff8059;
        border-color: #ff8059;
        color: #fff;
        transform: translateY(-2px);
    }
}

/* Object number */

.single-product .elmdale-archive-record .object-id {
    background: rgba(245,237,218,.1);
    border: 1px solid rgba(245,237,218,.25);
    color: var(--cabinet-paper);
}

/* Related objects */

.single-product .elmdale-archive-related {
    clear: both;
    margin-top: clamp(55px, 7vw, 95px);
}

.single-product .elmdale-archive-related .related.products {
    margin-top: 0;
}

/* Mobile */

@media (max-width: 850px) {

    .single-product .elmdale-archive-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .single-product .elmdale-archive-exhibit {
        padding: 12px;
    }

    .single-product .elmdale-archive-record {
        padding: 0;
    }

    .single-product .elmdale-archive-record .product_title {
        font-size: clamp(2.5rem, 10vw, 3.8rem);
    }

    .single-product .elmdale-cabinet-heading {
        font-size: .57rem;
        letter-spacing: .1em;
    }

    .single-product .elmdale-cabinet-heading-right {
        text-align: right;
    }
}

@media (prefers-reduced-motion: reduce) {
    .single-product .elmdale-archive-record form.cart .button {
        transition: none;
    }
}

/* =========================================================
   ELM DALE OBJECT CABINET V1.4
   Consolidated presentation and gallery refinements
   ========================================================= */

/* Collection identity */

.single-product .elmdale-cabinet-heading,
.single-product .elmdale-cabinet-heading-left,
.single-product .elmdale-cabinet-collection-name {
    color: #f5edda;
}

.single-product .elmdale-cabinet-heading-right {
    color: #e8c48a;
}

.single-product .elmdale-cabinet-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    min-height: 34px;
    padding: 7px 12px;

    background: #f4c44e;
    border: 1px solid #f4c44e;
    border-radius: 5px;

    color: #20382e;

    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.2;
}

.single-product .elmdale-cabinet-collection-name {
    font-weight: 700;
    letter-spacing: .14em;
}

/* Presentation */

.single-product .elmdale-archive-record .object-eyebrow {
    display: block;
    width: auto;
    max-width: none;

    padding: 0;
    margin: 0 0 18px;

    background: transparent;
    border: 0;
    border-radius: 0;

    color: #f4c44e;
    opacity: 1;

    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: .02em;
    line-height: 1.4;

    text-transform: none;
    transform: none;
}

/* Warm availability and metadata */

.single-product .elmdale-archive-record .stock {
    color: #f5edda;
}

.single-product .elmdale-archive-record .object-category {
    color: #e8c48a;
}

/* Remove empty metadata area when no categories exist */

.single-product .elmdale-object-meta:empty {
    display: none;
}

/* Photograph presentation */

.single-product .elmdale-archive-exhibit {
    border-radius: 10px;
    overflow: hidden;
}

.single-product .elmdale-archive-exhibit
.woocommerce-product-gallery {
    width: 100%;
    border-radius: 8px;
}

.single-product .elmdale-archive-exhibit
.woocommerce-product-gallery__image {
    overflow: hidden;
    border-radius: 10px;
}

.single-product .elmdale-archive-exhibit
.woocommerce-product-gallery__image img {
    display: block;
    border-radius: 10px;
}

/* Keyboard accessibility */

.single-product .elmdale-archive-exhibit a:focus-visible,
.single-product .elmdale-archive-record button:focus-visible {
    outline: 3px solid #f4c44e;
    outline-offset: 4px;
}

/* Mobile */

@media (max-width: 850px) {
    .single-product .elmdale-archive-record .object-eyebrow {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .single-product .elmdale-cabinet-heading {
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .single-product .elmdale-cabinet-heading {
        align-items: flex-start;
    }

    .single-product .elmdale-cabinet-heading-left {
        flex-wrap: wrap;
        gap: 10px;
    }

    .single-product .elmdale-cabinet-number {
        padding: 7px 10px;
        font-size: .65rem;
    }

    .single-product .elmdale-cabinet-collection-name {
        letter-spacing: .08em;
    }

    .single-product .elmdale-archive-exhibit
    .flex-control-thumbs li {
        width: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .single-product .elmdale-archive-exhibit
    .flex-control-thumbs img {
        transition: none;
    }
}


/* ELM DALE — RELATED PRODUCTS GRID CORRECTION */

/* Three full-width product cards per row */
.single-product .elmdale-archive-related
ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 34px;
}

/* Allow each product to occupy its complete grid cell */
.single-product .elmdale-archive-related
ul.products li.product {
    float: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    clear: none;
}

/* Restore full-width photographs */
.single-product .elmdale-archive-related
ul.products li.product img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Mobile and tablet layouts */
@media (max-width: 850px) {
    .single-product .elmdale-archive-related
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 18px;
    }
}

/* Elsewhere in the Schoolhouse — compact mobile collection. */
@media (max-width: 520px) {

    .single-product .elmdale-archive-related
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px;
    }

    .single-product .elmdale-archive-related
    ul.products li.product {
        min-width: 0;
        width: 100%;
        margin: 0;
    }

    .single-product .elmdale-archive-related
    ul.products li.product img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }

    .single-product .elmdale-archive-related
    ul.products li.product:nth-child(3n+2) img {
        aspect-ratio: 1 / 1;
    }

    .single-product .elmdale-archive-related
    ul.products li.product:nth-child(3n+3) img {
        aspect-ratio: 5 / 4;
    }

    .single-product .elmdale-archive-related
    ul.products li.product .woocommerce-loop-product__title {
        font-size: .95rem;
        line-height: 1.3;
    }

    .single-product .elmdale-archive-related
    ul.products li.product .price {
        font-size: .85rem;
    }

    .single-product .elmdale-archive-related
    ul.products li.product .elmdale-explore-button {
        display: inline-flex;
        width: auto;
        min-height: 36px;
        padding: 8px 11px;
        border-radius: 5px;

        background: transparent;
        color: #e9c7a3;
        border: 1px solid rgba(233, 199, 163, .45);

        font-size: .65rem;
        letter-spacing: .04em;
        box-shadow: none;
        transform: none;
    }
}


/* ELM DALE — SHOP NAVIGATION DROPDOWN */

.elmdale-nav-shop {
    position: relative;
}

.elmdale-nav-shop-heading {
    display: flex;
    align-items: center;
    gap: 5px;
}

.elmdale-nav-shop-toggle {
    border: 0;
    padding: 6px;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.elmdale-shop-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    z-index: 1100;
    min-width: 215px;
    padding: 10px;
    background: #f4f0e6;
    border: 1px solid rgba(70, 60, 40, .15);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

.elmdale-nav-shop.is-open .elmdale-shop-submenu {
    display: block;
}

.elmdale-shop-submenu a {
    display: block;
    padding: 10px 12px;
    color: #23382b !important;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 4px;
}

.elmdale-shop-submenu a:hover,
.elmdale-shop-submenu a:focus-visible {
    background: rgba(115, 65, 45, .1);
    color: #873f30 !important;
}

.elmdale-shop-directory-link {
    border-bottom: 1px solid rgba(70, 60, 40, .15);
    margin-bottom: 5px;
}

@media (hover: hover) and (min-width: 851px) {
    .elmdale-nav-shop:hover .elmdale-shop-submenu {
        display: block;
    }
}

@media (max-width: 850px) {
    .site-header .elmdale-nav-shop {
        width: 100%;
    }

    .site-header .elmdale-nav-shop-heading {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .site-header .elmdale-nav-shop-heading > a {
        flex: 1;
        border-bottom: 0;
    }

    .site-header .elmdale-nav-shop-toggle {
        color: #fff;
        padding: 10px 16px;
    }

    .site-header .elmdale-shop-submenu {
        position: static;
        min-width: 0;
        padding: 0 0 8px 15px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .site-header .elmdale-shop-submenu a {
        color: #fff !important;
        white-space: normal;
        padding: 10px 5px;
        font-size: .75rem;
    }

    .site-header .elmdale-shop-directory-link {
        border-bottom-color: rgba(255,255,255,.12);
    }
}

/* ELM DALE — MOBILE SHOP TOUCH TARGET */

@media (max-width: 850px) {

    .site-header .elmdale-nav-shop-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 52px;
        width: 52px;
        min-height: 48px;
        padding: 0;
        margin-left: 8px;
        color: #fff;
        border-left: 1px solid rgba(255,255,255,.2);
        border-radius: 0;
        touch-action: manipulation;
    }

    .site-header .elmdale-nav-shop-toggle span {
        display: inline-block;
        font-size: 0;
        line-height: 1;
    }

    .site-header .elmdale-nav-shop-toggle span::after {
        content: "";
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
    }

    .site-header .elmdale-nav-shop.is-open
    .elmdale-nav-shop-toggle span::after {
        transform: rotate(225deg);
    }

    .site-header .elmdale-nav-shop-toggle:focus-visible {
        outline: 2px solid #fff;
        outline-offset: -3px;
    }
}


/* ELM DALE — ALL SHOPS COMPACT MOBILE GRID */

@media (max-width: 600px) {

    .elmdale-storefront ul.products {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px;
    }

    .elmdale-storefront ul.products li.product {
        float: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .elmdale-storefront ul.products li.product a img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .elmdale-storefront ul.products li.product
    .woocommerce-loop-product__title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .elmdale-storefront ul.products li.product .price {
        font-size: .9rem;
        margin-bottom: 0;
    }
}


/* =========================================================
   ELM DALE — DISCOVERY WALL EXPERIMENT V1
   Resale Shop only / mobile only
   ========================================================= */

@media (max-width: 600px) {

    .elmdale-storefront.shop-resale-shop ul.products {
        display: block;
        columns: 2;
        column-gap: 14px;
    }

    .elmdale-storefront.shop-resale-shop ul.products li.product {
        display: inline-block;
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 24px;
        break-inside: avoid;
        page-break-inside: avoid;
        vertical-align: top;
    }

    .elmdale-storefront.shop-resale-shop ul.products li.product a img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

}


/* =========================================================
   ELM DALE — DISCOVERY WALL IMAGE VARIETY V1
   Resale Shop / mobile only
   ========================================================= */

@media (max-width: 600px) {

    /* Default: square photographs */

    .elmdale-storefront.shop-resale-shop
    ul.products li.product a img {
        aspect-ratio: 1 / 1;
        object-fit: contain;
        background: #e9e5dc;
    }

    /* Taller photographs */

    .elmdale-storefront.shop-resale-shop
    ul.products li.product:nth-child(5n+2) a img,
    .elmdale-storefront.shop-resale-shop
    ul.products li.product:nth-child(5n+5) a img {
        aspect-ratio: 3 / 4;
    }

    /* Wider photographs */

    .elmdale-storefront.shop-resale-shop
    ul.products li.product:nth-child(5n+4) a img {
        aspect-ratio: 4 / 3;
    }

}


/* =========================================================
   ELM DALE — DISCOVERY WALL V2
   Stable mobile masonry foundation
   Resale Shop only
   ========================================================= */

@media (max-width: 600px) {

    .elmdale-storefront.shop-resale-shop ul.products {
        display: grid;
        columns: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 8px;
        column-gap: 14px;
        row-gap: 0;
        align-items: start;
    }

    .elmdale-storefront.shop-resale-shop ul.products li.product {
        display: block;
        float: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
        break-inside: auto;
    }

}



/* =========================================================
   ELM DALE — SHARED DISCOVERY WALL V1
   Mobile masonry for all individual shops
   ========================================================= */

@media (max-width: 600px) {

    .elmdale-storefront ul.products {
        display: grid;
        columns: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 8px;
        column-gap: 14px;
        row-gap: 0;
        align-items: start;
    }

    .elmdale-storefront ul.products li.product {
        display: block;
        float: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
        break-inside: auto;
    }

    .elmdale-storefront ul.products li.product a img {
        aspect-ratio: 1 / 1;
        object-fit: contain;
        background: #e9e5dc;
    }

    .elmdale-storefront ul.products
    li.product:nth-child(5n+2) a img,
    .elmdale-storefront ul.products
    li.product:nth-child(5n+5) a img {
        aspect-ratio: 3 / 4;
    }

    .elmdale-storefront ul.products
    li.product:nth-child(5n+4) a img {
        aspect-ratio: 4 / 3;
    }

}


/* =========================================================
   ELM DALE — SHOP ENDING V1
   Shared transition from Discovery Wall to Never-Ending Shelf
   ========================================================= */

.elmdale-storefront .elmdale-shop-ending {
    box-sizing: border-box;
    max-width: 760px;
    margin: 28px auto 24px;
    padding: 24px 22px;
    background: #fff0b8;
    border-radius: 16px;
    border-left: 6px solid #e76f36;
    text-align: left;
}

.elmdale-storefront .elmdale-shop-ending[hidden] {
    display: none !important;
}

.elmdale-storefront .elmdale-shop-ending h2 {
    margin: 0 0 10px;
    color: #253b32;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    font-size: clamp(1.45rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.elmdale-storefront .elmdale-shop-ending p {
    margin: 0;
    color: #34453a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 600px) {

    .elmdale-storefront .elmdale-shop-ending {
        margin: 20px 14px 22px;
        padding: 20px 18px;
        border-radius: 14px;
    }

    .elmdale-storefront .elmdale-shop-ending h2 {
        font-size: 1.55rem;
    }

    .elmdale-storefront .elmdale-shop-ending p {
        font-size: .95rem;
    }
}


/* ELM DALE — NEVER-ENDING SHELF V1 */

/*
 * A photograph-first horizontal discovery experience.
 * Independent of the vertical Discovery Wall.
 */

.elmdale-storefront .elmdale-never-ending-shelf {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto 48px;
    padding: 22px 0 28px;
    overflow: hidden;
}

.elmdale-storefront .elmdale-never-ending-shelf[hidden] {
    display: none !important;
}

.elmdale-storefront .elmdale-shelf-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.elmdale-storefront .elmdale-shelf-inner > .section-label,
.elmdale-storefront .elmdale-shelf-inner > h2 {
    margin-left: 24px;
    margin-right: 24px;
}

.elmdale-storefront .elmdale-shelf-inner > h2 {
    margin-top: 6px;
    margin-bottom: 22px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.elmdale-storefront .elmdale-shelf-track {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 4px 24px 18px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.elmdale-storefront .elmdale-shelf-card {
    flex: 0 0 auto;
    width: clamp(145px, 18vw, 205px);
    min-width: 0;
    scroll-snap-align: start;
}

.elmdale-storefront .elmdale-shelf-photo {
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #e9e5dc;
}

.elmdale-storefront .elmdale-shelf-photo img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    transition: transform 180ms ease;
}

@media (hover: hover) {
    .elmdale-storefront .elmdale-shelf-photo:hover img {
        transform: scale(1.035);
    }
}

.elmdale-storefront .elmdale-shelf-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 9px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
}

.elmdale-storefront .elmdale-shelf-price {
    font-weight: 700;
}

.elmdale-storefront .elmdale-shelf-explore {
    font-weight: 650;
    text-decoration: none;
}

.elmdale-storefront .elmdale-shelf-explore:hover {
    text-decoration: underline;
}

.elmdale-storefront .elmdale-shelf-photo:focus-visible,
.elmdale-storefront .elmdale-shelf-explore:focus-visible {
    outline: 3px solid #e76f36;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .elmdale-storefront .elmdale-shelf-photo img {
        transition: none;
    }
}

@media (max-width: 600px) {

    .elmdale-storefront .elmdale-never-ending-shelf {
        margin-bottom: 28px;
        padding-top: 14px;
    }

    .elmdale-storefront .elmdale-shelf-inner > .section-label,
    .elmdale-storefront .elmdale-shelf-inner > h2 {
        margin-left: 16px;
        margin-right: 16px;
    }

    .elmdale-storefront .elmdale-shelf-track {
        gap: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .elmdale-storefront .elmdale-shelf-card {
        width: 158px;
    }

    .elmdale-storefront .elmdale-shelf-photo img {
        height: 174px;
    }
}


/* ELM DALE — SHELF MINIMAL CARDS V2 */

.elmdale-storefront .elmdale-shelf-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    gap: 0;
}

.elmdale-storefront .elmdale-shelf-price {
    display: block;
    width: 100%;
    color: #36483e;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.elmdale-storefront .elmdale-shelf-price .amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}



/* ELM DALE — SHELF SWIPE HINT V1 */

.elmdale-storefront .elmdale-shelf-swipe-hint {
    margin: 4px 24px 0;
    color: #67766b;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-align: right;
}

.elmdale-storefront .elmdale-shelf-swipe-hint[hidden] {
    display: none !important;
}

.elmdale-storefront .elmdale-never-ending-shelf {
    margin-bottom: 12px;
    padding-bottom: 14px;
}

@media (max-width: 600px) {
    .elmdale-storefront .elmdale-shelf-swipe-hint {
        margin-left: 16px;
        margin-right: 16px;
    }

    .elmdale-storefront .elmdale-never-ending-shelf {
        margin-bottom: 8px;
        padding-bottom: 12px;
    }
}


/* ELM DALE — STOREFRONT HEADER SCROLL FIX V1 */

/*
 * Individual shop headers should scroll away naturally.
 * Prevent old sticky-header layering from reappearing
 * behind the ending panel and Never-Ending Shelf.
 */

@media (min-width: 851px) {
    .elmdale-storefront .shop-intro {
        position: relative;
        top: auto;
    }
}


/* ELM DALE — STOREFRONT HEADER SCROLL FIX V2 */

/*
 * Override the old layered-scrolling experiment.
 * Match the original sticky rule's specificity.
 *
 * The shop banner should remain in normal document flow
 * and scroll away before the product collection.
 */

@media (min-width: 851px) {
    .schoolhouse-commerce.elmdale-storefront .shop-intro {
        position: relative;
        top: auto;
        z-index: auto;
    }
}


/* ELM DALE — SHELF FLOATING NAVIGATION V1 */

.elmdale-storefront .elmdale-shelf-navigation {
    position: relative;
    width: 100%;
}

.elmdale-storefront .elmdale-shelf-track {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.elmdale-storefront .elmdale-shelf-track::-webkit-scrollbar {
    display: none;
}

.elmdale-storefront .elmdale-shelf-arrow {
    display: none;
}

@media (min-width: 768px) {

    .elmdale-storefront .elmdale-shelf-arrow {
        position: absolute;
        z-index: 5;
        top: 43%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 1px solid rgba(38, 53, 45, 0.16);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.94);
        color: #26352d;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
        font-family: Georgia, serif;
        font-size: 35px;
        line-height: 1;
        cursor: pointer;
        transform: translateY(-50%);
        transition: background 160ms ease,
                    box-shadow 160ms ease;
    }

    .elmdale-storefront .elmdale-shelf-arrow-left {
        left: 8px;
    }

    .elmdale-storefront .elmdale-shelf-arrow-right {
        right: 8px;
    }

    .elmdale-storefront .elmdale-shelf-arrow[hidden] {
        display: none !important;
    }

    .elmdale-storefront .elmdale-shelf-arrow:hover {
        background: #fff5d9;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    }

    .elmdale-storefront .elmdale-shelf-arrow:focus-visible {
        outline: 3px solid #e76f36;
        outline-offset: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elmdale-storefront .elmdale-shelf-arrow {
        transition: none;
    }
}


/* ELM DALE EDITORIAL PAGES — V1 */

.schoolhouse-editorial .editorial-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(420px, 65vh, 760px);
    overflow: hidden;
    background: var(--green-dark);
    color: white;
}

.schoolhouse-editorial .editorial-hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.schoolhouse-editorial .editorial-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(12, 25, 19, .88),
        rgba(12, 25, 19, .08) 85%
    );
}

.schoolhouse-editorial .editorial-hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: clamp(36px, 7vw, 100px);
}

.schoolhouse-editorial .editorial-hero .section-label {
    color: #e9d3a6;
}

.schoolhouse-editorial .editorial-hero h1 {
    max-width: 900px;
    margin: 12px 0 20px;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.schoolhouse-editorial .editorial-hero-content > p:last-child {
    max-width: 640px;
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.schoolhouse-editorial .schoolhouse-page-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 110px) clamp(22px, 6vw, 80px);
}

.schoolhouse-editorial .page-content {
    max-width: 760px;
    margin: 0 auto;
}

.schoolhouse-editorial .page-content h2 {
    margin: 2.8em 0 .6em;
    color: var(--green-dark);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.13;
    letter-spacing: -.025em;
}

.schoolhouse-editorial .page-content h2:first-child {
    margin-top: 0;
}

.schoolhouse-editorial .page-content p {
    margin: 0 0 1.4em;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.8;
}

@media (max-width: 700px) {
    .schoolhouse-editorial .editorial-hero {
        min-height: 480px;
    }

    .schoolhouse-editorial .editorial-hero-content {
        padding: 36px 24px 42px;
    }

    .schoolhouse-editorial .editorial-hero h1 {
        font-size: clamp(2.8rem, 11vw, 4.2rem);
    }

    .schoolhouse-editorial .schoolhouse-page-inner {
        padding: 48px 24px 72px;
    }

    .schoolhouse-editorial .page-content h2 {
        margin-top: 2.2em;
    }
}


/* ELM DALE VISIT PAGE — V2 */

.elmdale-visit {
    background: var(--paper);
    overflow: hidden;
}

.elmdale-visit .visit-introduction {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 650px;
    background: var(--green-dark);
    color: var(--paper-light);
}

.elmdale-visit .visit-introduction-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(45px, 7vw, 110px);
}

.elmdale-visit .visit-introduction .section-label {
    color: #d9bd91;
}

.elmdale-visit .visit-introduction h1 {
    max-width: 700px;
    margin: 18px 0 28px;
    font-size: clamp(3.4rem, 6.2vw, 7rem);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.elmdale-visit .visit-introduction-copy > p:not(.section-label) {
    max-width: 510px;
    margin: 0 0 35px;
    font-size: 1.15rem;
    line-height: 1.7;
}

.elmdale-visit .visit-introduction-photo {
    min-height: 500px;
    overflow: hidden;
}

.elmdale-visit .visit-introduction-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.elmdale-visit .visit-location,
.elmdale-visit .visit-planning {
    max-width: 1380px;
    margin: 0 auto;
    padding: clamp(65px, 9vw, 130px) clamp(24px, 5vw, 70px);
}

.elmdale-visit .visit-section-heading {
    margin-bottom: 45px;
}

.elmdale-visit .visit-section-heading h2 {
    margin: 12px 0 0;
    color: var(--green-dark);
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.elmdale-visit .visit-location-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    background: var(--paper-light);
    border: 1px solid var(--line);
    box-shadow: 14px 14px 0 rgba(38, 62, 50, .08);
}

.elmdale-visit .visit-map {
    min-height: 480px;
    background: #e5e6dc;
}

.elmdale-visit .visit-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
}

.elmdale-visit .visit-address {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 4vw, 65px);
}

.elmdale-visit .visit-small-label {
    margin: 0 0 18px;
    color: var(--brick);
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: bold;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.elmdale-visit .visit-address address {
    margin-bottom: 30px;
    color: var(--green-dark);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-style: normal;
    font-weight: bold;
    line-height: 1.4;
}

.elmdale-visit .visit-directions-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 24px;
    background: var(--green);
    color: white;
    font-family: var(--sans);
    font-size: .85rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease;
}

.elmdale-visit .visit-directions-button:hover {
    background: var(--brick);
}

.elmdale-visit .visit-arrival-note {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.elmdale-visit .visit-arrival-note h3 {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-size: 1.3rem;
}

.elmdale-visit .visit-arrival-note p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
}

.elmdale-visit .visit-planning {
    padding-top: 25px;
}

.elmdale-visit .visit-planning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.elmdale-visit .visit-planning-card {
    position: relative;
    min-height: 310px;
    padding: clamp(35px, 5vw, 65px);
    background: var(--paper-light);
    border-top: 5px solid var(--brick);
}

.elmdale-visit .visit-planning-card:nth-child(2) {
    background: #e4e9df;
    border-color: var(--green);
}

.elmdale-visit .visit-card-number {
    display: block;
    margin-bottom: 40px;
    color: var(--brick);
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: bold;
    letter-spacing: .14em;
}

.elmdale-visit .visit-planning-card h3 {
    margin: 0 0 18px;
    color: var(--green-dark);
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.1;
}

.elmdale-visit .visit-planning-card p {
    max-width: 460px;
    margin: 0;
    line-height: 1.75;
}

.elmdale-visit .visit-closing {
    padding: clamp(75px, 10vw, 145px) 24px;
    background: var(--green-dark);
    color: white;
    text-align: center;
}

.elmdale-visit .visit-closing .section-label {
    color: #d9bd91;
}

.elmdale-visit .visit-closing h2 {
    max-width: 800px;
    margin: 15px auto 20px;
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    line-height: 1.08;
}

.elmdale-visit .visit-closing p:not(.section-label) {
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .elmdale-visit .visit-introduction {
        grid-template-columns: 1fr;
    }

    .elmdale-visit .visit-introduction-copy {
        padding: 65px 30px;
    }

    .elmdale-visit .visit-introduction-photo {
        min-height: 420px;
        max-height: 550px;
    }

    .elmdale-visit .visit-location-grid {
        grid-template-columns: 1fr;
    }

    .elmdale-visit .visit-map,
    .elmdale-visit .visit-map iframe {
        min-height: 380px;
    }
}

@media (max-width: 600px) {
    .elmdale-visit .visit-introduction h1 {
        font-size: clamp(3rem, 12vw, 4.5rem);
    }

    .elmdale-visit .visit-introduction-photo {
        min-height: 350px;
    }

    .elmdale-visit .visit-location,
    .elmdale-visit .visit-planning {
        padding: 65px 22px;
    }

    .elmdale-visit .visit-planning {
        padding-top: 10px;
    }

    .elmdale-visit .visit-planning-grid {
        grid-template-columns: 1fr;
    }

    .elmdale-visit .visit-planning-card {
        min-height: 0;
        padding: 35px 28px;
    }

    .elmdale-visit .visit-card-number {
        margin-bottom: 25px;
    }

    .elmdale-visit .visit-map,
    .elmdale-visit .visit-map iframe {
        min-height: 320px;
    }

    .elmdale-visit .visit-address {
        padding: 35px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elmdale-visit .visit-directions-button {
        transition: none;
    }
}


/* ELM DALE VISIT PAGE — V3 REFINEMENTS */

/* A more compact, purposeful introduction */
@media (min-width: 901px) {
    .elmdale-visit .visit-introduction {
        min-height: 490px;
    }

    .elmdale-visit .visit-introduction h1 {
        font-size: clamp(3.2rem, 5vw, 5.8rem);
    }

    .elmdale-visit .visit-introduction-copy {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .elmdale-visit .visit-introduction-photo {
        min-height: 490px;
    }
}

/* Bring useful visitor information closer together */
.elmdale-visit .visit-location,
.elmdale-visit .visit-planning {
    padding-top: clamp(48px, 6vw, 85px);
    padding-bottom: clamp(48px, 6vw, 85px);
}

.elmdale-visit .visit-planning {
    padding-top: 10px;
}

.elmdale-visit .visit-section-heading {
    margin-bottom: 32px;
}

/* Make the navigation action easier to recognize */
.elmdale-visit .visit-directions-button {
    min-height: 54px;
    border-radius: 5px;
    box-shadow: 0 5px 0 rgba(23, 41, 31, .14);
}

.elmdale-visit .visit-directions-button:focus-visible {
    outline: 3px solid var(--brick);
    outline-offset: 4px;
}

/* Keep the final invitation from becoming another oversized hero */
.elmdale-visit .visit-closing {
    padding-top: clamp(60px, 7vw, 95px);
    padding-bottom: clamp(60px, 7vw, 95px);
}

.elmdale-visit .visit-closing h2 {
    font-size: clamp(2.4rem, 4.2vw, 4.5rem);
}

@media (max-width: 600px) {
    .elmdale-visit .visit-introduction-copy {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .elmdale-visit .visit-location,
    .elmdale-visit .visit-planning {
        padding: 48px 22px;
    }

    .elmdale-visit .visit-planning {
        padding-top: 0;
    }
}


/* ELM DALE OUR STORY — V1 */

.elmdale-story {
    overflow: hidden;
    background: var(--paper);
}

.elmdale-story .story-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 570px;
    background: var(--green-dark);
    color: white;
}

.elmdale-story .story-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(45px, 7vw, 110px);
}

.elmdale-story .story-hero .section-label {
    color: #e0c79e;
}

.elmdale-story .story-hero h1 {
    margin: 20px 0 25px;
    font-size: clamp(3.3rem, 6vw, 6.5rem);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.elmdale-story .story-hero-copy > p:last-child {
    max-width: 530px;
    font-size: 1.2rem;
    line-height: 1.7;
}

.elmdale-story .story-hero-photo {
    min-height: 480px;
    overflow: hidden;
}

.elmdale-story .story-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elmdale-story .story-introduction {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(85px, 10vw, 155px) 30px;
    text-align: center;
}

.elmdale-story .story-introduction h2 {
    max-width: 950px;
    margin: 20px auto 30px;
    color: var(--green-dark);
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.elmdale-story .story-introduction > p:last-child {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.elmdale-story .story-timeline {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 30px 100px;
}

.elmdale-story .story-chapter {
    display: grid;
    grid-template-columns: minmax(160px, .35fr) 1fr;
    gap: clamp(30px, 6vw, 90px);
    padding: clamp(55px, 7vw, 100px) 0;
    border-top: 1px solid var(--line);
}

.elmdale-story .story-chapter-date {
    color: var(--brick);
    font-family: var(--sans);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: bold;
    letter-spacing: -.06em;
    line-height: 1;
}

.elmdale-story .story-chapter-content {
    max-width: 760px;
}

.elmdale-story .story-chapter h2 {
    margin: 15px 0 25px;
    color: var(--green-dark);
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.elmdale-story .story-chapter p:not(.section-label) {
    max-width: 670px;
    margin: 0 0 20px;
    font-size: 1.12rem;
    line-height: 1.85;
}

.elmdale-story .story-chapter-featured {
    position: relative;
    margin: 0 -30px;
    padding: clamp(65px, 8vw, 110px) 30px;
    background: #e6e8dd;
    border-top: 0;
}

.elmdale-story .story-chapter-present {
    margin: 0 -30px;
    padding: clamp(65px, 8vw, 110px) 30px;
    background: var(--green);
    color: white;
    border: 0;
}

.elmdale-story .story-chapter-present h2,
.elmdale-story .story-chapter-present .story-chapter-date {
    color: white;
}

.elmdale-story .story-chapter-present .section-label {
    color: #e0c79e;
}

.elmdale-story .story-traces {
    padding: clamp(90px, 11vw, 160px) 30px;
    background: var(--paper-light);
}

.elmdale-story .story-traces-copy {
    max-width: 850px;
    margin: 0 auto;
}

.elmdale-story .story-traces h2 {
    margin: 18px 0 30px;
    color: var(--green-dark);
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    line-height: 1.1;
}

.elmdale-story .story-traces p:not(.section-label) {
    max-width: 720px;
    font-size: 1.15rem;
    line-height: 1.8;
}

.elmdale-story .story-traces .text-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--brick);
    font-family: var(--sans);
    font-weight: bold;
    text-decoration: none;
}

.elmdale-story .story-ending {
    padding: clamp(90px, 11vw, 160px) 30px;
    background: var(--green-dark);
    color: white;
    text-align: center;
}

.elmdale-story .story-ending .section-label {
    color: #e0c79e;
}

.elmdale-story .story-ending h2 {
    max-width: 850px;
    margin: 20px auto 25px;
    font-size: clamp(3rem, 5.5vw, 6rem);
    line-height: 1.08;
}

.elmdale-story .story-ending > p:not(.section-label) {
    max-width: 650px;
    margin: 0 auto 35px;
    font-size: 1.2rem;
}

@media (max-width: 850px) {
    .elmdale-story .story-hero {
        grid-template-columns: 1fr;
    }

    .elmdale-story .story-hero-copy {
        padding: 65px 30px;
    }

    .elmdale-story .story-hero-photo {
        min-height: 350px;
        max-height: 550px;
    }
}

@media (max-width: 650px) {
    .elmdale-story .story-introduction {
        padding: 75px 24px;
    }

    .elmdale-story .story-timeline {
        padding: 0 24px 70px;
    }

    .elmdale-story .story-chapter {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 55px 0;
    }

    .elmdale-story .story-chapter-date {
        font-size: 3rem;
    }

    .elmdale-story .story-chapter-featured,
    .elmdale-story .story-chapter-present {
        margin: 0 -24px;
        padding: 60px 24px;
    }

    .elmdale-story .story-traces,
    .elmdale-story .story-ending {
        padding: 80px 24px;
    }
}

/* =========================================================
   ELM DALE BUILDING PAGE — V1
   ========================================================= */

.elmdale-building {
    --building-ink: #203b30;
    --building-paper: #f8f5ed;
    --building-accent: #d66c3b;
    background: var(--building-paper);
    color: var(--building-ink);
    overflow: hidden;
}

.elmdale-building *,
.elmdale-building *::before,
.elmdale-building *::after {
    box-sizing: border-box;
}

.elmdale-building .building-container {
    width: min(100% - 48px, 1240px);
    margin-inline: auto;
}

.elmdale-building .section-label {
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.elmdale-building h1,
.elmdale-building h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -.045em;
}

.elmdale-building h2 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.08;
}

.elmdale-building p {
    line-height: 1.7;
}

.elmdale-building figure {
    margin: 0;
}

.elmdale-building img {
    display: block;
    width: 100%;
}

/* HERO */

.elmdale-building .building-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(550px, 78vh, 850px);
    background: #24382e;
    color: white;
}

.elmdale-building .building-hero-photo,
.elmdale-building .building-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.elmdale-building .building-hero-photo {
    object-fit: cover;
    object-position: center;
}

.elmdale-building .building-hero-shade {
    background: linear-gradient(
        0deg,
        rgba(12, 29, 22, .9) 0%,
        rgba(12, 29, 22, .42) 48%,
        rgba(12, 29, 22, .05) 100%
    );
}

.elmdale-building .building-hero-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 100px 48px 80px;
}

.elmdale-building .building-hero .section-label {
    color: #f2d5aa;
}

.elmdale-building .building-hero h1 {
    max-width: 1050px;
    margin: 18px 0 26px;
    font-size: clamp(3.5rem, 7.5vw, 7rem);
    line-height: .98;
}

.elmdale-building .building-hero-copy > p:last-child {
    max-width: 620px;
    margin: 0;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

/* INTRODUCTION */

.elmdale-building .building-intro {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(40px, 8vw, 130px);
    align-items: start;
    padding-block: clamp(90px, 12vw, 170px);
}

.elmdale-building .building-intro h2 {
    margin: 20px 0 0;
}

.elmdale-building .building-intro-copy {
    padding-top: 40px;
}

.elmdale-building .building-intro-copy p {
    font-size: 1.12rem;
}

.elmdale-building .building-intro-copy .building-lead {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.4;
    font-weight: 500;
}

/* ARCHITECTURE FEATURE */

.elmdale-building .building-feature {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(40px, 7vw, 110px);
    align-items: center;
    padding-bottom: clamp(100px, 12vw, 170px);
}

.elmdale-building .building-feature-photo img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
}

.elmdale-building figcaption {
    margin-top: 14px;
    font-size: .85rem;
    letter-spacing: .03em;
    opacity: .75;
}

.elmdale-building .building-feature-copy h2 {
    margin: 20px 0 26px;
}

.elmdale-building .building-feature-copy p:not(.section-label) {
    max-width: 450px;
    font-size: 1.1rem;
}

/* INTERIOR */

.elmdale-building .building-interior {
    padding: clamp(90px, 10vw, 140px) 0;
    background: #e7e7db;
}

.elmdale-building .building-interior-heading {
    display: grid;
    grid-template-columns: 1fr .55fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 55px;
}

.elmdale-building .building-interior-heading h2 {
    margin: 18px 0 0;
}

.elmdale-building .building-interior-heading > p {
    max-width: 390px;
    font-size: 1.1rem;
}

.elmdale-building .building-interior-photo img {
    max-height: 760px;
    object-fit: cover;
    border-radius: 4px;
}

/* DISCOVERIES */

.elmdale-building .building-discoveries {
    padding-block: clamp(100px, 12vw, 170px);
}

.elmdale-building .building-discoveries-heading {
    max-width: 780px;
    margin-bottom: 65px;
}

.elmdale-building .building-discoveries-heading h2 {
    margin: 18px 0 22px;
}

.elmdale-building .building-discoveries-heading > p:last-child {
    max-width: 560px;
    font-size: 1.15rem;
}

.elmdale-building .building-discoveries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.elmdale-building .building-discoveries-grid img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
}

/* NEXT CHAPTER */

.elmdale-building .building-future {
    padding: clamp(100px, 12vw, 170px) 0;
    background: #203b30;
    color: #fffaf0;
}

.elmdale-building .building-future-inner {
    max-width: 900px;
    text-align: center;
}

.elmdale-building .building-future .section-label {
    color: #e4c391;
}

.elmdale-building .building-future h2 {
    margin: 20px 0 30px;
}

.elmdale-building .building-future-inner > p:not(.section-label) {
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.elmdale-building .building-future-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 45px;
}

.elmdale-building .building-future-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 52px;
    padding: 12px 25px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-weight: 650;
    transition: background 160ms ease, color 160ms ease;
}

.elmdale-building .building-future-links a:hover {
    background: #fffaf0;
    color: #203b30;
}

.elmdale-building .building-future-links a:focus-visible {
    outline: 3px solid #f3bf78;
    outline-offset: 4px;
}

/* MOBILE */

@media (max-width: 800px) {
    .elmdale-building .building-container {
        width: min(100% - 40px, 1240px);
    }

    .elmdale-building .building-intro,
    .elmdale-building .building-feature,
    .elmdale-building .building-interior-heading {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .elmdale-building .building-intro-copy {
        padding-top: 0;
    }

    .elmdale-building .building-feature-copy {
        order: -1;
    }

    .elmdale-building .building-interior-heading {
        margin-bottom: 35px;
    }

    .elmdale-building .building-hero {
        min-height: 600px;
    }

    .elmdale-building .building-hero-copy {
        padding: 100px 24px 55px;
    }

    .elmdale-building .building-hero h1 {
        font-size: clamp(3rem, 11vw, 5rem);
    }

    .elmdale-building .building-discoveries-grid {
        gap: 16px;
    }
}

@media (max-width: 540px) {
    .elmdale-building .building-hero {
        min-height: 540px;
    }

    .elmdale-building .building-hero h1 {
        font-size: clamp(2.8rem, 12vw, 4rem);
    }

    .elmdale-building .building-intro {
        padding-block: 75px;
    }

    .elmdale-building .building-feature {
        padding-bottom: 85px;
    }

    .elmdale-building .building-discoveries-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .elmdale-building .building-future-links {
        flex-direction: column;
    }

    .elmdale-building .building-future-links a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elmdale-building .building-future-links a {
        transition: none;
    }
}

/* ==========================================================
   ELM DALE OUR STORY V2 STYLES
   Scoped to the Our Story page.
   ========================================================== */

.elmdale-story.story-v2 {
    overflow: hidden;
}

.elmdale-story.story-v2 *,
.elmdale-story.story-v2 *::before,
.elmdale-story.story-v2 *::after {
    box-sizing: border-box;
}

.elmdale-story.story-v2 .story-v2-introduction {
    padding-top: clamp(72px, 9vw, 136px);
    padding-bottom: clamp(72px, 9vw, 136px);
}

.elmdale-story.story-v2 .story-v2-history {
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 6% 112px;
}

.elmdale-story.story-v2 .story-v2-history-heading {
    margin-bottom: 38px;
}

.elmdale-story.story-v2 .story-v2-history-heading h2 {
    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -.035em;
    margin: 12px 0 0;
}

.elmdale-story.story-v2 .story-v2-history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.elmdale-story.story-v2 .story-v2-history-item {
    background: #f1eee7;
    border-radius: 12px;
    padding: clamp(24px, 3vw, 42px);
    min-height: 290px;
    border-top: 5px solid #d8a54c;
}

.elmdale-story.story-v2 .story-v2-history-year {
    display: block;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 800;
    letter-spacing: -.055em;
    color: #a64b31;
    margin-bottom: 34px;
}

.elmdale-story.story-v2 .story-v2-history-item h3 {
    font-family: Georgia, serif;
    font-size: clamp(22px, 2.2vw, 29px);
    line-height: 1.15;
    margin: 0 0 14px;
}

.elmdale-story.story-v2 .story-v2-history-item p {
    line-height: 1.65;
    margin: 0;
    max-width: 38ch;
}

.elmdale-story.story-v2 .story-v2-history > .text-link {
    display: inline-flex;
    margin-top: 12px;
    font-weight: 700;
}

.elmdale-story.story-v2 .story-v2-vision {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(30px, 6vw, 100px);
    padding: clamp(80px, 11vw, 170px) max(6%, calc((100vw - 1320px) / 2));
    background: #263e43;
    color: #fffaf0;
    isolation: isolate;
}

.elmdale-story.story-v2 .story-v2-vision::before {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: #d2a052;
    opacity: .12;
    filter: blur(8px);
    left: -150px;
    bottom: -180px;
    z-index: -1;
}

.elmdale-story.story-v2 .story-v2-vision-year {
    font-size: clamp(110px, 17vw, 300px);
    font-weight: 900;
    line-height: .8;
    letter-spacing: -.095em;
    color: #e4b76a;
    transform: rotate(-5deg);
    text-align: center;
}

.elmdale-story.story-v2 .story-v2-vision-copy {
    max-width: 650px;
}

.elmdale-story.story-v2 .story-v2-vision .section-label {
    color: #f2c67b;
}

.elmdale-story.story-v2 .story-v2-vision h2 {
    font-family: Georgia, serif;
    font-size: clamp(44px, 5vw, 76px);
    line-height: 1.06;
    letter-spacing: -.04em;
    margin: 18px 0 28px;
    color: inherit;
}

.elmdale-story.story-v2 .story-v2-vision-copy p:not(.section-label) {
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.8;
    color: #e4e9e5;
    margin: 0 0 20px;
}

.elmdale-story.story-v2 .story-v2-vision-copy .story-v2-lead {
    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.45;
    font-weight: 650;
    color: #fffaf0;
}

.elmdale-story.story-v2 .story-v2-possibilities {
    padding: clamp(90px, 11vw, 160px) 6%;
    background: #faf8f3;
}

.elmdale-story.story-v2 .story-v2-possibilities-heading {
    max-width: 1320px;
    margin: 0 auto 56px;
}

.elmdale-story.story-v2 .story-v2-possibilities-heading h2 {
    max-width: 950px;
    font-family: Georgia, serif;
    font-size: clamp(40px, 5.5vw, 78px);
    line-height: 1.08;
    letter-spacing: -.04em;
    margin: 14px 0 22px;
}

.elmdale-story.story-v2 .story-v2-possibilities-heading > p:last-child {
    max-width: 700px;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.7;
}

.elmdale-story.story-v2 .story-v2-possibilities-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.elmdale-story.story-v2 .story-v2-possibilities-grid article {
    min-height: 310px;
    padding: 28px;
    border-radius: 14px;
    background: #e9d5b7;
    display: flex;
    flex-direction: column;
}

.elmdale-story.story-v2 .story-v2-possibilities-grid article:nth-child(2) {
    background: #d5e4db;
}

.elmdale-story.story-v2 .story-v2-possibilities-grid article:nth-child(3) {
    background: #e5d9ec;
}

.elmdale-story.story-v2 .story-v2-possibilities-grid article:nth-child(4) {
    background: #d7e4ef;
}

.elmdale-story.story-v2 .story-v2-possibility-number {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .12em;
    opacity: .65;
}

.elmdale-story.story-v2 .story-v2-possibilities-grid h3 {
    font-family: Georgia, serif;
    font-size: clamp(38px, 3.6vw, 58px);
    line-height: 1;
    margin: auto 0 22px;
    letter-spacing: -.05em;
}

.elmdale-story.story-v2 .story-v2-possibilities-grid p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.elmdale-story.story-v2 .story-v2-present {
    padding: clamp(90px, 11vw, 160px) 6%;
    background: #f1eee7;
}

.elmdale-story.story-v2 .story-v2-present-copy {
    max-width: 900px;
    margin: 0 auto;
}

.elmdale-story.story-v2 .story-v2-present h2 {
    font-family: Georgia, serif;
    font-size: clamp(42px, 5.5vw, 78px);
    line-height: 1.07;
    letter-spacing: -.04em;
    margin: 14px 0 34px;
}

.elmdale-story.story-v2 .story-v2-present p:not(.section-label) {
    max-width: 750px;
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.75;
    margin: 0 0 22px;
}

.elmdale-story.story-v2 .story-v2-ending {
    padding-top: clamp(90px, 11vw, 150px);
    padding-bottom: clamp(90px, 11vw, 150px);
}

@media (max-width: 980px) {
    .elmdale-story.story-v2 .story-v2-possibilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .elmdale-story.story-v2 .story-v2-vision {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .elmdale-story.story-v2 .story-v2-vision-year {
        text-align: left;
        transform: rotate(-3deg);
    }
}

@media (max-width: 700px) {
    .elmdale-story.story-v2 .story-v2-history {
        padding: 20px 6% 76px;
    }

    .elmdale-story.story-v2 .story-v2-history-grid,
    .elmdale-story.story-v2 .story-v2-possibilities-grid {
        grid-template-columns: 1fr;
    }

    .elmdale-story.story-v2 .story-v2-history-item {
        min-height: auto;
    }

    .elmdale-story.story-v2 .story-v2-possibilities-grid article {
        min-height: 230px;
    }

    .elmdale-story.story-v2 .story-v2-vision {
        padding: 90px 6%;
    }

    .elmdale-story.story-v2 .story-v2-vision-year {
        font-size: clamp(100px, 24vw, 160px);
    }
}


/* =========================================================
   ELM DALE CONTACT PAGE V1 STYLES
   ========================================================= */

.elmdale-contact {
    color: #253a3e;
    overflow: hidden;
}

/* =========================================================
   ELM DALE CONTACT HERO V2
   ========================================================= */

.elmdale-contact .contact-introduction {
    position: relative;
    isolation: isolate;
    padding: clamp(32px, 5vw, 64px) 24px;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 88% 28%,
            rgba(255, 221, 127, 0.85) 0%,
            rgba(255, 232, 170, 0.50) 28%,
            transparent 65%
        ),
        linear-gradient(
            115deg,
            #e8f0ed 0%,
            #eef1df 48%,
            #fff0c8 100%
        );
}

.elmdale-contact .contact-introduction::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: #e9bd79;
    opacity: 0.55;
    right: -85px;
    bottom: -115px;
    pointer-events: none;
    z-index: -1;
}

.elmdale-contact .contact-introduction-inner {
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.elmdale-contact .contact-introduction h1 {
    font-family: Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
    max-width: 920px;
    margin: 12px 0 16px;
}

.elmdale-contact .contact-highlight {
    position: relative;
    display: inline-block;
    z-index: 0;
    white-space: nowrap;
}

.elmdale-contact .contact-highlight::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -0.035em;
    right: -0.065em;
    top: 0.48em;
    bottom: 0.08em;
    border-radius: 40% 18% 24% 12% / 25% 35% 20% 30%;
    background: rgba(255, 232, 58, 0.88);
    transform: rotate(-1.5deg);
    pointer-events: none;
}

.elmdale-contact .contact-question-mark {
    display: inline-block;
    position: relative;
    margin-left: 0.12em;
    top: 0.12em;
    color: #a74736;
    transform-origin: 50% 10%;
    animation: elmdale-question-swing 14s ease-in-out infinite;
}

@keyframes elmdale-question-swing {
    /* Resting inverted position */
    0% {
        transform: rotate(0deg);
    }

    /* Small swings */
    5% {
        transform: rotate(-12deg);
    }

    10% {
        transform: rotate(16deg);
    }

    15% {
        transform: rotate(-28deg);
    }

    /* Gathering energy */
    21% {
        transform: rotate(42deg);
    }

    27% {
        transform: rotate(-65deg);
    }

    33% {
        transform: rotate(105deg);
    }

    39% {
        transform: rotate(-145deg);
    }

    /* Swing upward to the balancing point */
    45% {
        transform: rotate(-180deg);
    }

    /* Balance upside down for about three seconds */
    66% {
        transform: rotate(-180deg);
    }

    /* Complete the rotation */
    76% {
        transform: rotate(-270deg);
    }

    86% {
        transform: rotate(-360deg);
    }

    /* Settle before repeating */
    92% {
        transform: rotate(-352deg);
    }

    96% {
        transform: rotate(-365deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

.elmdale-contact .contact-intro-copy {
    font-size: clamp(1.12rem, 1.8vw, 1.4rem);
    line-height: 1.7;
    max-width: 650px;
}

@media (prefers-reduced-motion: reduce) {
    .elmdale-contact .contact-question-mark {
        animation: none;
        transform: none;
    }
}

.elmdale-contact .contact-main {
    padding: clamp(28px, 4vw, 56px) 24px;
    background: #faf9f5;
}

.elmdale-contact .contact-main-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: start;
}

.elmdale-contact .contact-form-panel {
    background: #ffffff;
    border: 1px solid rgba(37, 58, 62, 0.12);
    border-radius: 18px;
    padding: clamp(28px, 5vw, 60px);
    box-shadow: 0 18px 45px rgba(37, 58, 62, 0.06);
}

.elmdale-contact .contact-form-panel h2 {
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin: 16px 0 24px;
}

.elmdale-contact .contact-form-panel > p:not(.section-label) {
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 470px;
    margin-bottom: 30px;
}

.elmdale-contact .contact-information {
    display: grid;
    gap: 34px;
}

.elmdale-contact .contact-info-block {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(37, 58, 62, 0.15);
}

.elmdale-contact .contact-info-block:last-child {
    border-bottom: 0;
}

.elmdale-contact .contact-info-block h3 {
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    line-height: 1.25;
    margin: 12px 0 18px;
}

.elmdale-contact .contact-info-block p:not(.section-label) {
    line-height: 1.7;
}

.elmdale-contact .contact-info-block a {
    color: #a74736;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.elmdale-contact .contact-info-block a:hover {
    color: #743024;
}

.elmdale-contact .contact-address {
    background: #f4e9cf;
    padding: 30px;
    border: 1px solid #e8d7b2;
    border-radius: 12px;
    transform: rotate(-1deg);
}

.elmdale-contact .contact-address address {
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.85;
    margin: 18px 0;
}

.elmdale-contact .contact-letter-note {
    font-size: 0.98rem;
    line-height: 1.7;
}

@media (max-width: 850px) {
    .elmdale-contact .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .elmdale-contact .contact-information {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .elmdale-contact .contact-address {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .elmdale-contact .contact-introduction {
        padding: 70px 22px 80px;
    }

    .elmdale-contact .contact-main {
        padding: 48px 18px 70px;
    }

    .elmdale-contact .contact-form-panel {
        padding: 30px 24px;
    }

    .elmdale-contact .contact-information {
        grid-template-columns: 1fr;
    }

    .elmdale-contact .contact-address {
        grid-column: auto;
        transform: none;
    }

    .elmdale-contact .contact-info-block {
        padding-bottom: 24px;
    }
}


/* =========================================================
   ELM DALE MAKER INVITATION V1
   ========================================================= */

.elmdale-contact .contact-maker-invitation {
    position: relative;
    padding: clamp(42px, 6vw, 75px) 24px;
    background: #244e50;
    color: #fffaf0;
    overflow: hidden;
}

.elmdale-contact .contact-maker-invitation::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border: 2px solid rgba(255, 250, 240, 0.12);
    border-radius: 50%;
    top: -190px;
    right: -120px;
    pointer-events: none;
}

.elmdale-contact .contact-maker-invitation::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    background: #e9b95c;
    border-radius: 50%;
    bottom: -105px;
    left: 7%;
    opacity: 0.7;
    pointer-events: none;
}

.elmdale-contact .contact-maker-inner {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
}

.elmdale-contact .contact-maker-copy {
    max-width: 790px;
}

.elmdale-contact .contact-maker-copy .section-label {
    color: #f1c977;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.elmdale-contact .contact-maker-copy h2 {
    color: #fffaf0;
    font-family: Georgia, serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin: 14px 0 22px;
}

.elmdale-contact .contact-maker-copy p:not(.section-label) {
    color: #f3f0e8;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    max-width: 690px;
    margin: 0 0 16px;
}

.elmdale-contact .contact-maker-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 12px;
    padding: 15px 28px;
    background: #f1c977;
    color: #243a3d;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.elmdale-contact .contact-maker-button:hover {
    background: #ffdc92;
    color: #243a3d;
    transform: translateY(-2px);
}

.elmdale-contact .contact-maker-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .elmdale-contact .contact-maker-invitation {
        padding: 42px 22px 55px;
    }

    .elmdale-contact .contact-maker-copy h2 {
        margin-bottom: 26px;
    }

    .elmdale-contact .contact-maker-button {
        width: 100%;
        max-width: 340px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elmdale-contact .contact-maker-button {
        transition: none;
    }

    .elmdale-contact .contact-maker-button:hover {
        transform: none;
    }
}

/* ELM DALE QUESTION MARK GYMNAST V1 */


/* =========================================================
   ELM DALE CONTACT FORM V1
   ========================================================= */

.elmdale-contact .elmdale-contact-form {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.elmdale-contact .contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.elmdale-contact .contact-field label {
    font-size: 0.95rem;
    font-weight: 650;
    color: #253a3e;
}

.elmdale-contact .contact-field input,
.elmdale-contact .contact-field select,
.elmdale-contact .contact-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #c8d1cd;
    border-radius: 10px;
    background: #fff;
    color: #253a3e;
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.elmdale-contact .contact-field input,
.elmdale-contact .contact-field select {
    min-height: 50px;
}

.elmdale-contact .contact-field textarea {
    min-height: 155px;
    resize: vertical;
}

.elmdale-contact .contact-field input:hover,
.elmdale-contact .contact-field select:hover,
.elmdale-contact .contact-field textarea:hover {
    border-color: #879c95;
}

.elmdale-contact .contact-field input:focus-visible,
.elmdale-contact .contact-field select:focus-visible,
.elmdale-contact .contact-field textarea:focus-visible {
    outline: 2px solid #a74736;
    outline-offset: 2px;
    border-color: #a74736;
}

.elmdale-contact .contact-field select {
    cursor: pointer;
}

.elmdale-contact .contact-submit {
    justify-self: start;
    min-height: 50px;
    padding: 13px 26px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.elmdale-contact .contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(37, 58, 62, 0.15);
}

.elmdale-contact .contact-submit:focus-visible {
    outline: 3px solid #a74736;
    outline-offset: 3px;
}

.elmdale-contact .contact-form-notice {
    padding: 16px 18px;
    margin: 20px 0;
    border-radius: 10px;
    background: #e8f0ed;
    border-left: 4px solid #537b6e;
    color: #253a3e;
    font-weight: 600;
    line-height: 1.5;
}

.elmdale-contact .contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .elmdale-contact .elmdale-contact-form {
        gap: 18px;
    }

    .elmdale-contact .contact-field input,
    .elmdale-contact .contact-field select,
    .elmdale-contact .contact-field textarea {
        font-size: 16px;
    }

    .elmdale-contact .contact-submit {
        width: 100%;
        justify-self: stretch;
    }
}


/* ELM DALE CONTACT TYPOGRAPHY EXPERIMENT */



.elmdale-contact {
    font-family: 'DM Sans', Arial, sans-serif;
}

.elmdale-contact .contact-introduction h1,
.elmdale-contact .contact-form-panel h2,
.elmdale-contact .contact-info-block h3,
.elmdale-contact .contact-maker-copy h2 {
    font-family: 'Fraunces', Georgia, serif;
}

.elmdale-contact .section-label,
.elmdale-contact .contact-field label,
.elmdale-contact .contact-field input,
.elmdale-contact .contact-field select,
.elmdale-contact .contact-field textarea,
.elmdale-contact .contact-submit {
    font-family: 'DM Sans', Arial, sans-serif;
}


/* ELM DALE CONTACT FORM STATUS COLORS V1 */

.elmdale-contact .contact-form-notice--invalid,
.elmdale-contact .contact-form-notice--rate_limited {
    background: #fff3d8;
    border-left-color: #b77924;
    color: #624316;
}

.elmdale-contact .contact-form-notice--error {
    background: #fce9e6;
    border-left-color: #b34b42;
    color: #742e29;
}


/* =========================================================
   ELM DALE — EMPTY BASKET GRID V1
   Scoped to the empty-cart product-new collection.
   ========================================================= */

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-woocommerce-product-new
.wc-block-grid__products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-woocommerce-product-new
.wc-block-grid__product {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-woocommerce-product-new
.wc-block-grid__product-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-woocommerce-product-new
.wc-block-grid__product-title {
    margin-top: 12px;
    font-size: clamp(.88rem, 1.2vw, 1.05rem);
    line-height: 1.35;
    color: var(--ink);
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-woocommerce-product-new
.wc-block-grid__product-price {
    margin-top: 7px;
    font-size: .9rem;
    color: var(--green-dark);
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-woocommerce-product-new
.wc-block-grid__product-add-to-cart {
    margin-top: 12px;
}

body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-woocommerce-product-new
.elmdale-explore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--green-dark);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .025em;
    text-decoration: none;
}

@media (max-width: 850px) {
    body.woocommerce-cart
    .wp-block-woocommerce-empty-cart-block
    .wp-block-woocommerce-product-new
    .wc-block-grid__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 14px;
    }
}

@media (max-width: 480px) {
    body.woocommerce-cart
    .wp-block-woocommerce-empty-cart-block
    .wp-block-woocommerce-product-new
    .wc-block-grid__product-title {
        font-size: .9rem;
    }
}


/* Elm Dale Schoolhouse — mobile branding */
@media (max-width: 850px) {
    .site-header .site-name {
        font-size: clamp(.78rem, 3.1vw, 1.1rem);
        letter-spacing: .015em;
    }
}

@media (max-width: 380px) {
    .site-header .mobile-header-actions {
        gap: 8px;
    }

    .site-header .site-established {
        font-size: .49rem;
        letter-spacing: .06em;
    }
}


/* =========================================================
   ELM DALE — CONTINUE SHOPPING LINK V1
   ========================================================= */

body.woocommerce-cart .elmdale-continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 10px 15px;

    color: var(--green-dark, #173327);
    font-family: var(--sans, Arial, sans-serif);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .035em;
    text-align: center;
    text-decoration: none;

    transition: color .2s ease;
}

body.woocommerce-cart .elmdale-continue-shopping:hover,
body.woocommerce-cart .elmdale-continue-shopping:focus-visible {
    color: var(--brick, #9a4938);
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.woocommerce-cart .elmdale-continue-shopping:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}


/* =========================================================
   ELM DALE — ADD TO BASKET NOTICE V1
   A calm, unmistakable success confirmation.
   ========================================================= */

body.single-product .woocommerce-notices-wrapper
.woocommerce-message {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;

    margin: 0 0 32px !important;
    padding: 22px 24px !important;

    background: #f8f4e9 !important;
    color: #243a2e !important;

    border: 1px solid #c9d6c8 !important;
    border-left: 4px solid #477c51 !important;
    border-radius: 8px !important;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .07);

    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.55;
}

/* WooCommerce's existing success icon */

body.single-product .woocommerce-notices-wrapper
.woocommerce-message::before {
    position: static !important;
    display: inline-block;
    flex: 0 0 auto;

    margin: 0 !important;
    color: #477c51 !important;
}

/* The existing View Basket link */

body.single-product .woocommerce-notices-wrapper
.woocommerce-message .button.wc-forward {
    float: none !important;
    order: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    margin: 0 0 0 auto !important;
    padding: 11px 17px !important;

    background: #243a2e !important;
    color: #fff !important;

    border: 1px solid #243a2e !important;
    border-radius: 4px !important;

    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

body.single-product .woocommerce-notices-wrapper
.woocommerce-message .button.wc-forward:hover {
    background: #355743 !important;
    border-color: #355743 !important;
}

body.single-product .woocommerce-notices-wrapper
.woocommerce-message .button.wc-forward:focus-visible {
    outline: 3px solid #b78a42;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    body.single-product .woocommerce-notices-wrapper
    .woocommerce-message {
        display: block;
        padding: 20px 20px 18px !important;
        font-size: .95rem;
    }

    body.single-product .woocommerce-notices-wrapper
    .woocommerce-message::before {
        margin-right: 9px !important;
    }

    body.single-product .woocommerce-notices-wrapper
    .woocommerce-message .button.wc-forward {
        display: flex;
        width: 100%;
        margin: 18px 0 0 !important;
    }
}


/* =========================================================
   ELM DALE — SUCCESS NOTICE BORDER REFINEMENT V1
   ========================================================= */

/* Keep the confirmation calm and clearly successful. */

body.single-product .woocommerce-notices-wrapper
.woocommerce-message {
    border: 1px solid #c9d6c8 !important;
    border-left: 4px solid #477c51 !important;
    outline: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .07) !important;
}

/* Remove decorative outlines from the notice container. */

body.single-product .woocommerce-notices-wrapper {
    outline: none !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   ELM DALE — PRODUCT NOTICE DISMISS V1
   ========================================================= */

body.single-product .woocommerce-notices-wrapper
.woocommerce-message {
    position: relative;
    padding-right: 45px !important;
}

body.single-product .elmdale-notice-close {
    position: absolute;
    top: 8px;
    right: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 50%;

    color: #476052;
    font-family: var(--sans);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

body.single-product .elmdale-notice-close:hover {
    background: rgba(36, 58, 46, .08);
}

body.single-product .elmdale-notice-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 10px 14px;

    background: transparent;
    border: 1px solid #9cac9b;
    border-radius: 4px;

    color: #243a2e;
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

body.single-product .elmdale-notice-continue:hover {
    background: #e9eee5;
}

body.single-product .elmdale-notice-close:focus-visible,
body.single-product .elmdale-notice-continue:focus-visible {
    outline: 3px solid #b78a42;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    body.single-product .woocommerce-notices-wrapper
    .woocommerce-message {
        padding-right: 45px !important;
    }

    body.single-product .elmdale-notice-continue {
        display: flex;
        width: 100%;
        margin-top: 10px;
    }
}


/* =========================================================
   ELM DALE — STEP 1603 MOBILE HERO
   Simplified mobile arrival.
   Desktop presentation remains unchanged.
   ========================================================= */

@media (max-width: 850px) {

    .home .hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
        flex-wrap: nowrap;
        min-height: 0;
        padding-bottom: 0;
    }

    .home .hero-content {
        position: relative;
        z-index: 3;
        width: 100%;
        min-height: min(760px, 100svh);
        padding: 130px 25px 55px;
        margin: 0;
        justify-content: flex-end;
    }

    .home .hero-story,
    .home .hero-shop-invitation {
        display: none;
    }

    .home .hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        transform: none !important;
    }

    .home .hero-photo {
        inset: 0;
        transform: none !important;
        will-change: auto;
    }
}

/* =========================================================
   ELM DALE POLICY PAGES — V1
   Contemporary informational / editorial design
   ========================================================= */

.schoolhouse-policy {
    background: var(--paper-light);
    color: var(--ink);
}

/* Introduction */

.policy-introduction {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.policy-introduction-inner {
    width: min(1120px, calc(100% - 80px));
    margin: 0 auto;
    padding: clamp(65px, 8vw, 115px) 0 clamp(55px, 6vw, 85px);
}

.policy-introduction .section-label {
    margin-bottom: 22px;
}

.policy-introduction h1 {
    max-width: 900px;
    margin: 0;
    color: var(--green-dark);
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: normal;
    line-height: 1.06;
    letter-spacing: -.045em;
}

.policy-description {
    max-width: 680px;
    margin: 26px 0 0;
    color: var(--muted);
    font-family: var(--sans);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
}

/* Main document layout */

.policy-layout {
    width: min(1120px, calc(100% - 80px));
    margin: 0 auto;
    padding: clamp(55px, 7vw, 95px) 0 110px;

    display: grid;
    grid-template-columns: minmax(190px, 245px) minmax(0, 1fr);
    gap: clamp(50px, 7vw, 105px);
    align-items: start;
}

/* Section navigation */

.policy-navigation {
    position: sticky;
    top: 35px;
    align-self: start;
}

.policy-navigation-label {
    margin: 0 0 22px;
    color: var(--brick);
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: bold;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.policy-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.policy-navigation li {
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.policy-navigation a {
    display: block;
    padding: 12px 0;
    color: var(--muted);
    font-family: var(--sans);
    font-size: .83rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color .15s ease, padding-left .15s ease;
}

.policy-navigation a:hover {
    color: var(--green-dark);
    padding-left: 5px;
}

.policy-navigation a:focus-visible {
    outline: 2px solid var(--brick);
    outline-offset: 4px;
}

/* Policy document */

.policy-article {
    min-width: 0;
}

.policy-content {
    max-width: 740px;
}

.policy-content h2 {
    margin: 0 0 22px;
    padding-top: 42px;
    border-top: 1px solid var(--line);

    color: var(--green-dark);
    font-family: var(--serif);
    font-size: clamp(1.65rem, 2.6vw, 2.3rem);
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: -.025em;
    scroll-margin-top: 35px;
}

.policy-content h2:first-child {
    padding-top: 0;
    border-top: 0;
}

.policy-content p,
.policy-content li {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.85;
}

.policy-content p {
    margin: 0 0 22px;
}

.policy-content ul,
.policy-content ol {
    margin: 0 0 28px;
    padding-left: 25px;
}

.policy-content li {
    margin-bottom: 10px;
}

.policy-content strong {
    color: var(--green-dark);
    font-weight: 700;
}

.policy-content a {
    color: var(--brick);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.policy-content a:hover {
    color: var(--green-dark);
}

.policy-content a:focus-visible {
    outline: 2px solid var(--brick);
    outline-offset: 3px;
}

/* Tablet and mobile */

@media (max-width: 850px) {

    .policy-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .policy-navigation {
        position: static;
        padding-bottom: 25px;
        border-bottom: 1px solid var(--line);
    }

    .policy-navigation ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 24px;
    }

    .policy-content {
        max-width: 100%;
    }
}

@media (max-width: 600px) {

    .policy-introduction-inner,
    .policy-layout {
        width: calc(100% - 44px);
    }

    .policy-introduction-inner {
        padding: 55px 0 50px;
    }

    .policy-introduction h1 {
        font-size: clamp(2.6rem, 11vw, 3.7rem);
    }

    .policy-description {
        margin-top: 20px;
        font-size: 1rem;
    }

    .policy-layout {
        padding: 45px 0 75px;
        gap: 40px;
    }

    .policy-navigation ul {
        grid-template-columns: 1fr;
    }

    .policy-navigation a {
        padding: 10px 0;
    }

    .policy-content h2 {
        font-size: 1.7rem;
        padding-top: 34px;
        scroll-margin-top: 20px;
    }

    .policy-content p,
    .policy-content li {
        font-size: .97rem;
        line-height: 1.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    .policy-navigation a {
        transition: none;
    }
}



/* =========================================================
   ELM DALE POLICY BACK TO TOP — STEP 1641
   ========================================================= */

.policy-back-to-top {
    position: fixed;
    right: 24px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;

    background: var(--green-dark);
    color: white;

    font-family: var(--sans);
    font-size: 1.8rem;
    line-height: 1;

    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .18);

    transition:
        background .15s ease,
        transform .15s ease;
}

.policy-back-to-top[hidden] {
    display: none !important;
}

.policy-back-to-top:hover {
    background: var(--brick);
    transform: translateY(calc(-50% - 3px));
}

.policy-back-to-top:focus-visible {
    outline: 3px solid var(--brick);
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .policy-back-to-top {
        right: 12px;
        top: 50%;
        bottom: auto;
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .policy-back-to-top {
        transition: none;
    }
}


/* =========================================================
   ELM DALE CUSTOM 404 — STEP 1649
   ========================================================= */

.elmdale-not-found {
    background: var(--paper-light);
    color: var(--ink);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.elmdale-not-found .not-found-inner {
    width: min(100% - 48px, 900px);
    margin: 0 auto;
    padding: clamp(72px, 10vw, 140px) 0;
}

.elmdale-not-found .section-label {
    margin-bottom: 24px;
    color: var(--brick);
    font-weight: 700;
    letter-spacing: .12em;
}

.elmdale-not-found h1 {
    max-width: 750px;
    margin: 0 0 24px;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: var(--green-dark);
}

.elmdale-not-found .not-found-description {
    max-width: 570px;
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.75;
    color: var(--muted);
}

.elmdale-not-found .not-found-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    margin-top: 38px;
}

.elmdale-not-found .not-found-home-link {
    color: var(--green-dark);
    font-family: var(--sans);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
}

.elmdale-not-found .not-found-home-link:hover {
    color: var(--brick);
}

.elmdale-not-found .not-found-home-link:focus-visible {
    outline: 3px solid var(--brick);
    outline-offset: 5px;
}

@media (max-width: 600px) {
    .elmdale-not-found .not-found-inner {
        width: min(100% - 36px, 900px);
        padding: 72px 0 90px;
    }

    .elmdale-not-found .not-found-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }
}


/* ELM_DALE_STOCK_AVAILABILITY_GREEN_V1 */
.single-product .woocommerce-variation-availability .stock.in-stock,
.single-product .summary .stock.in-stock {
    color: #168447;
    font-weight: 700;
    letter-spacing: 0.015em;
}


/* ELM_DALE_PRODUCT_SHARE_STYLE_V1 */

.single-product .elmdale-product-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 20px;
}

.single-product .elmdale-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 15px;
    border: 1px solid rgba(32, 59, 48, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--ink, #203b30);
    font-family: var(--sans, sans-serif);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

.single-product .elmdale-share-button svg {
    display: block;
    flex: 0 0 auto;
}

.single-product .elmdale-share-button:hover {
    background: #ffffff;
    border-color: currentColor;
    transform: translateY(-1px);
}

.single-product .elmdale-share-button:focus-visible {
    outline: 3px solid var(--brick, #9a4938);
    outline-offset: 3px;
}

.single-product .elmdale-share-feedback {
    font-family: var(--sans, sans-serif);
    font-size: 0.82rem;
    color: var(--ink, #203b30);
}

@media (prefers-reduced-motion: reduce) {
    .single-product .elmdale-share-button {
        transition: none;
    }

    .single-product .elmdale-share-button:hover {
        transform: none;
    }
}

/* END ELM_DALE_PRODUCT_SHARE_STYLE_V1 */


/* ELM_DALE_CHECKOUT_POLICY_STYLE_V1 */

.elmdale-checkout-policy-summary {
    max-width: 1100px;
    margin: 28px auto 36px;
    padding: 28px 34px;
    background: #f7f3eb;
    border-left: 5px solid var(--brick, #9a4938);
    border-radius: 10px;
    color: var(--ink, #203b30);
    box-sizing: border-box;
}

.elmdale-checkout-policy-summary h2 {
    margin: 0 0 18px;
    color: var(--ink, #203b30);
    font-family: var(--serif, Georgia, serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.elmdale-checkout-policy-summary p {
    margin: 0 0 12px;
    font-family: var(--sans, sans-serif);
    font-size: 0.98rem;
    line-height: 1.65;
}

.elmdale-checkout-policy-summary p:last-child {
    margin-bottom: 0;
}

.elmdale-checkout-policy-summary strong {
    color: var(--ink, #203b30);
    font-weight: 750;
}

.elmdale-checkout-policy-summary a {
    color: var(--brick, #9a4938);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.elmdale-checkout-policy-summary a:hover {
    text-decoration-thickness: 2px;
}

.elmdale-checkout-policy-summary a:focus-visible {
    outline: 3px solid var(--brick, #9a4938);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .elmdale-checkout-policy-summary {
        margin: 20px 0 28px;
        padding: 22px 20px;
    }

    .elmdale-checkout-policy-summary h2 {
        font-size: 1.5rem;
    }

    .elmdale-checkout-policy-summary p {
        font-size: 0.95rem;
    }
}

/* END ELM_DALE_CHECKOUT_POLICY_STYLE_V1 */


/* ELM_DALE_SOLD_LABEL_STYLE_V1 */

/*
 * Public-facing SOLD presentation.
 * Does not alter available product prices.
 */

.woocommerce .price .elmdale-sold-label,
.woocommerce ul.products li.product .price .elmdale-sold-label,
.single-product .elmdale-archive-record p.price .elmdale-sold-label {
    color: var(--brick, #9a4938);
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* END ELM_DALE_SOLD_LABEL_STYLE_V1 */

/* Elm Dale — Keep shipping selection and pricing in checkout, not basket. */
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block,
body.woocommerce-cart .wc-block-components-totals-shipping {
    display: none !important;
}
