/*
Theme Name: Martin Street Storefront
Description: Martin Street presentation for Storefront, with an editable homepage pattern, Martin Street Home page template, bundled book artwork and green link/button styling. Requires Storefront; Features one book with uncropped WebP hero artwork; WooCommerce powers the product page and shopping features.
Template: storefront
Version: 0.1.44
Requires at least: 6.6
Requires PHP: 7.4
Author: 48 Martin Street
Author URI: https://48martinstreet.com/
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, blog, custom-logo, custom-menu, featured-images, full-width-template
Text Domain: martin-street-storefront
*/

/* Override Storefront's basket glyph using the bundled Font Awesome 7.3.1 icon font. */
body .site-header-cart .cart-contents::after,
body .storefront-handheld-footer-bar ul li.cart>a::before {
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    content: "\f07a";
}

body {
    --ms-site-background: #eaf3f8;
    --ms-button-padding: .75em 1.25em;
    background: var(--ms-site-background);
    color: #182e3b;
    font-family: Arial, Helvetica, sans-serif;
}

body h1,
body h2,
body h3,
body h4 {
    color: #182e3b;
}

body .site-header,
body .site-footer {
    color: #182e3b;
}

body .site-footer {
    background: #eaf3f8;
}

/* Override Customizer backgrounds, including an inline header image.
   Keep the header above artwork positioned behind it, without moving page content. */
body #masthead.site-header {
    background: transparent !important;
    border-bottom: 0;
    box-shadow: none;
    position: relative;
    z-index: 100;
}

body .site-header .storefront-primary-navigation,
body .site-header .ms-header-inner {
    background: transparent;
}

body .site-header a,
body .site-footer a {
    color: #182e3b;
}

body .site-branding .site-title a {
    color: #182e3b;
}

body .site-header .custom-logo-link img {
    max-width: 180px;
}

body .main-navigation ul li a {
    color: #182e3b;
    font-weight: 600;
}

body .main-navigation ul ul {
    background: #f9fbfc;
}

body button,
body input[type="submit"],
body .button,
body .added_to_cart {
    background: #00783e;
    color: #fff;
    border-radius: 10px;
}

body .button:hover,
body button:hover,
body input[type="submit"]:hover {
    background: #005c30;
    color: #fff;
}

body a:focus-visible,
body button:focus-visible,
body input:focus-visible {
    outline: 3px solid #b78400;
    outline-offset: 3px;
}

body .storefront-handheld-footer-bar ul li>a {
    color: #182e3b;
    background: #f9fbfc;
}

.ms-home.content-area {
    width: 100%;
    float: none;
    margin: 0;
}

.ms-home .site-main {
    margin: 0;
}

.ms-home .wp-block-group {
    box-sizing: border-box;
}

.ms-home .ms-wrap {
    width: calc(100% - 48px);
    max-width: 1180px;
    margin-inline: auto;
}

.ms-home .ms-section {
    padding-block: 64px;
}

.ms-home .ms-eyebrow {
    font-size: 12px;
    letter-spacing: .22em;
    font-weight: 700;
}

.ms-home h2 {
    font: 700 clamp(28px, 3.4vw, 44px)/1.15 Georgia, serif;
}

.ms-home h3 {
    font-size: 20px;
    font-weight: 700;
}

.ms-home p {
    line-height: 1.65;
}

.ms-home .ms-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: auto;
    min-height: 0;
}

.ms-home .ms-hero-art {
    position: absolute;
    inset: 0 0 0 24%;
    z-index: -2;
    margin: 0;
}

.ms-home .ms-hero-art img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.ms-home .ms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #eaf3f8 27%, #eaf3f8f2 43%, #eaf3f8a6 54%, #eaf3f800 60%);
}

.ms-home .ms-hero-copy {
    padding-block: 42px 120px;
}

.ms-home .ms-hero h1 {
    font: 800 clamp(46px, 4.8vw, 72px)/1.02 Arial, sans-serif;
    letter-spacing: -3px;
    max-width: 560px;
    margin-bottom: 20px;
}

.ms-home .ms-gold {
    color: #b78400;
}

.ms-home .ms-summary {
    max-width: 390px;
    font-size: 20px;
    line-height: 1.4;
}

.ms-home .ms-pillars {
    font-size: 12px;
    font-weight: 700;
    max-width: 430px;
}

.ms-home .ms-fine {
    font-size: 13px;
}

.ms-home .wp-block-button__link {
    background: #00783e;
    color: #fff;
    border-radius: 12px;
    padding: 15px 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ms-home .wp-block-button__link:hover {
    background: #005c30;
}

.ms-home .is-style-outline .wp-block-button__link {
    color: #182e3b;
    background: #eaf3f8;
    border: 1px solid #182e3b;
}

.ms-home .ms-benefits {
    padding-block: 28px 38px;
    position: relative;
}

.ms-home .ms-benefits>.wp-block-columns {
    align-items: center;
    gap: 32px;
}

.ms-home .ms-book {
    margin-top: -130px;
    transform: rotate(-4deg);
}

.ms-home .ms-book img {
    box-shadow: 10px 15px 20px #182e3b30;
}

.ms-home .ms-benefits h2 {
    font: 700 18px/1.2 Arial, sans-serif;
}

.ms-home .ms-benefits p {
    font-size: 14px;
}

.ms-home .ms-values {
    background: #182e3b;
    color: #fff;
    padding: 24px;
    text-align: center;
}

.ms-home .ms-values p {
    margin: 0;
}

.ms-home .ms-authors {
    border-top: 1px solid #182e3b30;
}

.ms-home .ms-schools {
    background: #dcece1;
    padding: 40px;
    border-radius: 16px;
}

.ms-home .ms-faq details {
    border-bottom: 1px solid #182e3b30;
    padding: 20px 0;
}

.ms-home .ms-faq summary {
    cursor: pointer;
    font-weight: 700;
}

.ms-home .ms-collection ul.products li.product img {
    max-height: 320px;
    width: auto;
    margin-inline: auto;
}

/* Interaction palette. Explicit states also cover previously saved purple accents. */
body a,
body a:visited {
    color: #00783e;
}

body a:hover,
body a:focus,
body a:active {
    color: #005c30;
}

body .site-header a,
body .site-header a:visited,
body .site-footer a,
body .site-footer a:visited {
    color: #182e3b;
}

body .site-header a:hover,
body .site-header a:focus,
body .site-footer a:hover,
body .site-footer a:focus {
    color: #00783e;
}

body .main-navigation ul li>a:is(:hover, :focus, :active),
body .main-navigation ul li:is(.current-menu-item, .current-menu-ancestor, .current_page_item)>a,
body .main-navigation a[aria-current="page"],
body .woocommerce-MyAccount-navigation li.is-active a {
    color: #005c30;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

body .entry-content p a:not(.button):not(.wp-block-button__link) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body :is(.button, .button.alt, .added_to_cart, .wp-block-button__link, .wc-block-components-button),
body :is(.button, .button.alt, .added_to_cart, .wp-block-button__link, .wc-block-components-button):visited,
body :is(button.alt, input[type="button"], input[type="reset"], input[type="submit"]),
body .widget a.button,
body .widget-area .widget a.button.alt {
    background-color: #00783e;
    border-color: #00783e;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
}

body :is(.button, .button.alt, .added_to_cart, .wp-block-button__link, .wc-block-components-button, button.alt, input[type="button"], input[type="reset"], input[type="submit"]):is(:hover, :focus),
body .widget a.button:is(:hover, :focus),
body .widget-area .widget a.button.alt:is(:hover, :focus) {
    background-color: #005c30;
    border-color: #005c30;
    color: #fff;
}

body :is(.button, .button.alt, .added_to_cart, .wp-block-button__link, .wc-block-components-button, button.alt, input[type="submit"]):active {
    background-color: #004625;
    border-color: #004625;
    color: #fff;
}

body .is-style-outline .wp-block-button__link,
body .is-style-outline .wp-block-button__link:visited {
    background: #eaf3f8;
    border: 1px solid #182e3b;
    color: #182e3b;
}

body .is-style-outline .wp-block-button__link:is(:hover, :focus, :active) {
    background: #d6e7ef;
    border-color: #005c30;
    color: #005c30;
}

body :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid #b78400;
    outline-offset: 3px;
}

body :is(button, input[type="submit"], .button, .wc-block-components-button):disabled,
body :is(.button, .wc-block-components-button)[aria-disabled="true"] {
    background-color: #d6e0e5;
    border-color: #d6e0e5;
    color: #455d6b;
    cursor: not-allowed;
    opacity: 1;
}

body .woocommerce-pagination .page-numbers li .page-numbers.current {
    background: #00783e;
    color: #fff;
}

@media(max-width:781px) {
    .ms-home .ms-hero {
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .ms-home .ms-hero-art {
        position: relative;
        inset: auto;
        order: 2;
        z-index: 0;
    }

    .ms-home .ms-hero-art img {
        height: auto;
    }

    .ms-home .ms-hero::before {
        display: none;
    }

    .ms-home .ms-hero-copy {
        padding-block: 32px;
        text-align: center;
    }

    .ms-home .ms-hero h1 {
        font-size: clamp(40px, 9vw, 60px);
        letter-spacing: -2px;
    }

    .ms-home .ms-hero h1,
    .ms-home .ms-summary,
    .ms-home .ms-pillars {
        margin-inline: auto;
    }

    .ms-home .wp-block-buttons {
        justify-content: center;
    }

    .ms-home .ms-book {
        margin: 0 auto 24px;
        max-width: 150px;
    }

    .ms-home .ms-section {
        padding-block: 40px;
    }

    .ms-home .ms-schools {
        padding: 24px;
    }
}

/* Dedicated homepage template: preserve normal Storefront layouts elsewhere. */
body.page-template-template-martin-home .site-header {
    margin-bottom: 0;
}

body.page-template-template-martin-home #content>.col-full {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* v0.1.5: shorter shop introduction; show the complete artwork, never crop it. */
.ms-home .ms-hero {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    align-items: center;
    min-height: 0;
    overflow: visible;
}

.ms-home .ms-hero::before {
    display: none;
}

.ms-home .ms-hero-art {
    position: static;
    inset: auto;
    z-index: auto;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin: 0;
    align-self: center;
}

.ms-home .ms-hero-art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    /* Follow replacement artwork's intrinsic proportions instead of a 3:2 box. */
    aspect-ratio: auto;
    object-fit: contain;
}

.ms-home .ms-hero-copy {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    max-width: 540px;
    padding: 32px 24px;
    margin-inline: auto;
}

.ms-home .ms-hero h1 {
    font-size: clamp(34px, 3.6vw, 54px);
    letter-spacing: -1.8px;
}

.ms-home .ms-summary {
    font-size: 18px;
}

.ms-home .ms-featured-note {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-block: 32px;
}

.ms-home .ms-featured-cover {
    flex: 0 0 110px;
    margin: 0;
}

.ms-home .ms-featured-cover img {
    width: 110px;
    height: auto;
    box-shadow: 6px 8px 20px #182e3b20;
}

.ms-home .ms-featured-copy {
    max-width: 720px;
}

.ms-home .ms-featured-copy h2 {
    font-size: 32px;
}

.ms-home .ms-welcome-note {
    border-top: 1px solid #182e3b30;
    padding-block: 32px 48px;
}

.ms-home .ms-welcome-note h2 {
    font-size: 30px;
}

.ms-home .ms-welcome-note p {
    max-width: 820px;
}

@media(max-width:781px) {
    .ms-home .ms-hero {
        display: flex;
        flex-direction: column;
    }

    .ms-home .ms-hero-copy {
        order: 1;
        padding: 28px 24px;
    }

    .ms-home .ms-hero-art {
        order: 2;
        width: 100%;
    }

    .ms-home .ms-featured-note {
        gap: 20px;
        align-items: flex-start;
    }

    .ms-home .ms-featured-cover {
        flex-basis: 80px;
    }

    .ms-home .ms-featured-cover img {
        width: 80px;
    }

    .ms-home .ms-featured-copy h2 {
        font-size: 26px;
    }
}

/* Layout B: logo | native navigation | native WooCommerce cart.
   Keep the existing brand palette and interaction styles above. */
body .site-header {
    padding-block: 0;
}

body .site-header .ms-header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 80px;
}

body .site-header .ms-header-inner .site-branding {
    flex: 0 1 220px;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
}

body .site-header .ms-header-inner .custom-logo-link img {
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
}

body .site-header .ms-header-inner .main-navigation {
    flex: 1 1 auto;
    float: none;
    width: auto;
    min-width: 0;
    clear: none;
    margin: 0 0 0 auto;
}

@media (min-width:768px) {

    body .ms-header-inner .primary-navigation>ul.menu,
    body .ms-header-inner .primary-navigation>ul.nav-menu,
    body .ms-header-inner .primary-navigation>div>ul {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0 24px;
        margin: 0;
    }

    body .ms-header-inner .primary-navigation ul.menu>li>a,
    body .ms-header-inner .primary-navigation ul.nav-menu>li>a {
        padding: 12px 0;
        font-size: 15px;
    }

    body .site-header .ms-header-inner .site-header-cart {
        flex: 0 0 170px;
        float: none;
        width: 170px;
        margin: 0;
    }

    body .ms-header-inner .site-header-cart .cart-contents {
        padding: 12px 0;
    }
}

@media (max-width:767px) {
    body .site-header .ms-header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 64px;
        gap: 0 16px;
        padding-block: 12px;
        position: relative;
    }

    body .site-header .ms-header-inner .site-branding {
        grid-column: 1;
        grid-row: 1;
        max-width: 100%;
    }

    /* Keep the toggle in the header row; the menu opens outside its sizing. */
    body .site-header .ms-header-inner .main-navigation {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        margin: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        pointer-events: none;
        position: static; /* Anchor the dropdown to the complete header row. */
    }

    body .ms-header-inner .main-navigation::before,
    body .ms-header-inner .main-navigation::after {
        content: none;
    }

    body .ms-header-inner .menu-toggle {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        pointer-events: auto;
    }

    body .ms-header-inner .handheld-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 3;
        background: var(--ms-site-background);
        width: 100%;
        pointer-events: auto;
    }

    body .ms-header-inner .site-header-cart {
        display: none;
    }
}

/* Compact cart artwork; preserve the comfortable header tap target. */
body .site-header .ms-header-inner .site-header-cart {
    display: block;
    flex: 0 0 80px;
    width: 80px;
    float: none;
    margin: 0;
    align-self: stretch;
}

body .ms-header-inner .site-header-cart>li:first-child {
    height: 100%;
}

body .ms-header-inner .site-header-cart .cart-contents {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    --ms-cart-icon-size: 25px;
    width: 100%;
    height: 100%;
    min-height: 80px;
    padding: 0;
    text-decoration: none;
}

body .ms-header-inner .site-header-cart .cart-contents::after {
    content: "\f07a";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    display: block;
    float: none;
    font-size: var(--ms-cart-icon-size);
    line-height: 1;
    height: auto;
}

body .ms-header-inner .site-header-cart .cart-contents .count {
    position: absolute;
    top: calc(48% - var(--ms-cart-icon-size) / 2 - 8px);
    right: auto;
    left: calc(80% - var(--ms-cart-icon-size) / 2 - 8px);
    bottom: auto;
    transform: none;
    z-index: 1;

}

/* Use the footer badge's line box for both counts. The icon pseudo-element
   does not affect the independently positioned count's text alignment. */
body .ms-header-inner .site-header-cart .cart-contents .count,
body .storefront-handheld-footer-bar .footer-cart-contents .count {
    display: block;
    width: 2em;
    min-width: 0;
    height: 2em;
    line-height: 2;
    box-sizing: content-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    text-indent: 0;
    padding: 0;
    margin: 0;
    border-radius: 100%;
    border: 1px solid #eaf3f8;
    background: #00783e;
    color: #fff;
    opacity: 1;
}

/* The dropdown needs its own width now that the trigger is icon-sized. */
body .ms-header-inner .site-header-cart .widget_shopping_cart {
    width: 320px;
    max-width: calc(100vw - 32px);
}

@media (max-width:767px) {
    body .site-header .ms-header-inner {
        grid-template-columns: minmax(0, 1fr) auto 64px;
        gap: 0 12px;
    }

    body .site-header .ms-header-inner .main-navigation {
        grid-template-columns: minmax(0, 1fr) auto 64px;
        column-gap: 12px;
    }

    body .site-header .ms-header-inner .site-header-cart {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        width: 64px;
        z-index: 2;
    }

    body .ms-header-inner .site-header-cart .cart-contents {
        --ms-cart-icon-size: 25px;
        min-height: 64px;
        height: 64px;
    }

    /* Tap navigates to Cart; avoid a hover-only dropdown on small screens. */
    body .ms-header-inner .site-header-cart>li:nth-child(2) {
        display: none;
    }
}

/* Navigation stays bold; hover and current-page colours/markers are retained. */
body .site-header .main-navigation ul li>a {
    font-weight: 700;
    text-decoration: none;
}

body .site-header .main-navigation ul li>a:hover {
    color: #005c30;
    font-weight: 700;
    text-decoration: none;
}

body .site-header .main-navigation ul li:is(.current-menu-item, .current-menu-ancestor, .current_page_item)>a,
body .site-header .main-navigation ul li>a[aria-current="page"] {
    color: #005c30;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* Keep the current-page marker while hovering it, too. */
body .site-header .main-navigation ul li:is(.current-menu-item, .current-menu-ancestor, .current_page_item)>a:hover,
body .site-header .main-navigation ul li>a[aria-current="page"]:hover {
    font-weight: 700;
}

/* Gutenberg's classic-theme Group wrapper must not become the lone grid item.
   Flatten only layout wrappers; keep the copy wrapper for normal text flow. */
.ms-home .ms-hero>.wp-block-group__inner-container,
.ms-home .ms-featured-note>.wp-block-group__inner-container {
    display: contents;
}

@media (min-width:901px) {
    body.page-template-template-martin-home {
        --ms-content-max: 66.4989378333em;
        --ms-content-gutter: 2.617924em;
        --ms-hero-text-max: 540px;
    }

    /* Share content bounds across the homepage; keep the artwork full-width. */
    body.page-template-template-martin-home #masthead>.col-full,
    body.page-template-template-martin-home .ms-home .ms-hero-copy,
    body.page-template-template-martin-home .ms-home .ms-featured-note,
    body.page-template-template-martin-home .ms-home .ms-welcome-note {
        box-sizing: border-box;
        width: calc(100% - var(--ms-content-gutter) - var(--ms-content-gutter));
        max-width: var(--ms-content-max);
        margin-inline: auto;
        padding-inline: 0;
    }

    body.page-template-template-martin-home .ms-home .ms-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-template-template-martin-home .ms-home .ms-hero-art {
        grid-area: 1 / 1;
        width: 70%;
        margin: 0 0 0 auto;
        z-index: 0;
    }

    body.page-template-template-martin-home .ms-home .ms-hero::before {
        display: block;
        z-index: 1;
        pointer-events: none;
    }

    body.page-template-template-martin-home .ms-home .ms-hero-copy {
        grid-area: 1 / 1;
        position: relative;
        z-index: 2;
        /* Anchor copy to the artwork top instead of centering in its tall row. */
        min-width: 0;
        justify-self: center;
        align-self: start;
    }

    /* Keep the inner text measure separate from the shared outer container. */
    body.page-template-template-martin-home .ms-hero-copy>.wp-block-group__inner-container {
        width: 100%;
        max-width: var(--ms-hero-text-max);
        margin-inline: 0;
    }

    body.page-template-template-martin-home .ms-hero-copy> :not(.wp-block-group__inner-container) {
        max-width: min(100%, var(--ms-hero-text-max));
        margin-inline: 0;
    }

    body.page-template-template-martin-home .ms-hero-copy .ms-summary {
        max-width: min(100%, 390px);
    }

    body.page-template-template-martin-home .ms-home .ms-hero.ms-header-overlay-enabled {
        margin-top: calc(-1 * var(--ms-header-overlap, 0px));
    }

    body.page-template-template-martin-home .ms-home .ms-hero.ms-header-overlay-enabled .ms-hero-copy {
        padding-top: calc(32px + var(--ms-header-overlap, 0px));
    }
}

/* Pale backing protects dark navigation/cart over the artwork. */
body.page-template-template-martin-home #masthead.site-header {
    background: linear-gradient(to bottom,
            rgba(234, 243, 248, .98) 0%,
            rgba(234, 243, 248, .94) 70%,
            rgba(234, 243, 248, .65) 100%) !important;
}

/* A proportional bottom fade, independent of the existing horizontal gradient. */
body.page-template-template-martin-home .ms-home .ms-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(234, 243, 248, 0), #eaf3f8);
}

@media (min-width:901px) {
    body.page-template-template-martin-home .ms-home .ms-hero-art {
        align-self: start;
    }
}

/* v0.1.19: bundled lower-section layouts; desktop bounds use the shared rule above. */
.ms-home .ms-home-mockup {
    width: min(1180px, calc(100% - 80px));
    max-width: 1180px;
    margin-inline: auto;
    font: 16px/1.65 Arial, Helvetica, sans-serif;
    color: #182e3b;
}

/* WordPress may insert a classic-theme Group inner container. */
.ms-home .ms-home-mockup > .wp-block-group__inner-container {
    display: contents;
}

.ms-home .ms-home-mockup h2 {
    font: 400 37px/1.13 Georgia, "Times New Roman", serif;
    letter-spacing: -.9px;
    margin: 0;
}

.ms-home .ms-home-mockup p {
    margin-block: 1em;
}

.ms-home .ms-home-mockup .ms-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    color: #00783e;
    margin: 0 0 23px;
}

.ms-home .ms-featured-note.ms-home-mockup {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    padding-block: 35px;
}

.ms-home .ms-home-mockup .ms-featured-cover {
    width: 168px;
    margin: 0;
}

.ms-home .ms-home-mockup .ms-featured-cover img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 6px 8px 20px #182e3b20;
}

.ms-home .ms-home-mockup .ms-featured-copy {
    min-width: 0;
    max-width: none;
}

.ms-home .ms-home-mockup .ms-featured-copy h2 {
    margin-block: 6px 12px;
}

.ms-home .ms-home-mockup .ms-featured-copy p {
    max-width: 650px;
}

.ms-home .ms-home-mockup .ms-featured-link {
    margin: 0;
}

.ms-home .ms-home-mockup .ms-featured-link a {
    background: none;
    border: 0;
    padding: 0;
    color: #182e3b;
    font-size: 13px;
    text-decoration: none;
    text-underline-offset: 5px;
}

.ms-home .ms-home-mockup .ms-featured-link a:hover {
    text-decoration: underline;
}

.ms-home .ms-home-mockup a:focus-visible {
    outline: 3px solid #b78400;
    outline-offset: 4px;
}

.ms-home .ms-welcome-note.ms-home-mockup {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding-block: 35px 55px;
    border-top: 1px solid #182e3b30;
}

.ms-home .ms-welcome-note.ms-home-mockup h2 {
    font-size: 30px;
}

@media (max-width: 850px) {
    .ms-home .ms-home-mockup {
        width: calc(100% - 40px);
    }
}

@media (max-width: 700px) {
    .ms-home .ms-featured-note.ms-home-mockup {
        grid-template-columns: 126px minmax(0, 1fr);
        gap: 20px;
    }
    .ms-home .ms-home-mockup .ms-featured-cover {
        width: 126px;
    }
    .ms-home .ms-home-mockup .ms-featured-copy h2 {
        font-size: 26px;
    }
    .ms-home .ms-welcome-note.ms-home-mockup {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}

/* A linked cover retains its dimensions and a visible keyboard target. */
.ms-home .ms-home-mockup .ms-featured-cover a {
    display: block;
}
.ms-home .ms-home-mockup .ms-welcome-heading {
    min-width: 0;
}

/* Storefront adds spacing before the header quantity; remove it for centering. */
body .ms-header-inner .site-header-cart .cart-contents .count::before,
body .ms-header-inner .site-header-cart .cart-contents .count::after {
    content: none;
}

@media (max-width:767px) {
    body .storefront-handheld-footer-bar ul li.cart .count {
        background: #00783e;
        color: #fff;
        border-color: #eaf3f8;
    }
}

/* Customer-facing navigation and editorial product content (0.1.23). */
body .storefront-breadcrumb {
    padding: 10px 0;
    margin-bottom: 24px;
}
body .woocommerce-breadcrumb {
    color: #182e3b;
    font: 400 13px/1.5 Arial, Helvetica, sans-serif;
    overflow-wrap: anywhere;
}
body .woocommerce-breadcrumb a { color: #00783e; }
body .woocommerce-breadcrumb a:is(:hover, :focus-visible) {
    color: #005c30;
    text-decoration: underline;
}
body .woocommerce-breadcrumb a:first-of-type::before,
body .woocommerce-breadcrumb .breadcrumb-separator::after { content: none; }
body .woocommerce-breadcrumb .breadcrumb-separator {
    display: inline;
    position: static;
    text-indent: 0;
    padding: 0 7px;
}
body.single-product div.product .woocommerce-tabs { clear: both; overflow: visible; }
body.single-product div.product .woocommerce-tabs ul.tabs,
body.single-product div.product .woocommerce-tabs .panel {
    float: none;
    width: 100%;
    margin: 0 0 24px;
}
body.single-product div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    border-top: 0;
    border-bottom: 1px solid #b8cbd4;
}
body.single-product div.product .woocommerce-tabs ul.tabs li {
    border: 0;
    margin: 0;
}
body.single-product div.product .woocommerce-tabs ul.tabs li::after { content: none; }
body.single-product div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    min-height: 44px;
    padding: 12px 4px;
    border-bottom: 3px solid transparent;
    color: #182e3b;
    font: 400 16px/1.5 Arial, Helvetica, sans-serif;
    text-decoration: none;
}
body.single-product div.product .woocommerce-tabs ul.tabs li.active a {
    border-bottom-color: #00783e;
    color: #00783e;
}
/* Account navigation remains a list of endpoint links, never product tabs. */
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
    margin: 0 0 24px;
    min-width: 0;
}
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    margin: 0;
    border-top: 0;
    border-bottom: 1px solid #b8cbd4;
}
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li {
    list-style: none;
    border: 0;
}
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link a {
    display: block;
    min-height: 44px;
    padding: 12px 4px;
    border-bottom: 3px solid transparent;
    color: #182e3b;
    font: 400 16px/1.5 Arial, Helvetica, sans-serif;
    text-decoration: none;
}
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li.is-active a {
    border-bottom-color: #00783e;
    color: #00783e;
}
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}
body.single-product .woocommerce-tabs ul.tabs a:focus-visible,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation a:focus-visible {
    outline: 2px solid #005c30;
    outline-offset: 2px;
}
.single-product .woocommerce-tabs .ms-product-story {
    color: #182e3b;
    font: 400 17px/1.65 Arial, Helvetica, sans-serif;
}
.single-product .woocommerce-tabs .ms-product-story > :is(div, section) + :is(div, section) { margin-top: 40px; }
.single-product .woocommerce-tabs .ms-product-story p,
.single-product .woocommerce-tabs .ms-product-story li { max-width: 68ch; }
.single-product .woocommerce-tabs .ms-product-story h2 {
    font: 400 clamp(26px, 3vw, 38px)/1.2 Georgia, serif;
    margin: 0 0 20px;
}
.single-product .woocommerce-tabs .ms-product-story h3 {
    font: 400 23px/1.3 Georgia, serif;
    margin: 0 0 12px;
}
.single-product .woocommerce-tabs .ms-product-story .ms-story-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #005c30;
}
.single-product .woocommerce-tabs .ms-product-story :is(.ms-story-intro, .ms-story-grid, .ms-story-author-grid) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
.single-product .woocommerce-tabs .ms-product-story :is(.ms-story-card, .ms-story-author) {
    min-width: 0;
    padding: 24px;
    border-top: 2px solid #00783e;
    background: #f9fbfc;
}
.single-product .woocommerce-tabs .ms-product-story :is(.ms-story-audience, .ms-story-callout) {
    padding: 28px;
    background: #dcece1;
    border-radius: 10px;
}
.single-product .woocommerce-tabs .ms-product-story img { max-width: 100%; height: auto; }
.single-product .woocommerce-tabs .ms-product-story a { color: #00783e; text-decoration: underline; }
.single-product .woocommerce-tabs .ms-product-story .ms-story-faq h3 { margin-top: 24px; }
.single-product .woocommerce-product-details__short-description p { margin-bottom: 1em; }
.single-product .woocommerce-product-details__short-description ul { margin: 0 0 1em 1.25em; }
@media (min-width: 768px) {
    .single-product .woocommerce-tabs .ms-product-story :is(.ms-story-intro, .ms-story-author-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .single-product .woocommerce-tabs .ms-product-story .ms-story-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    body .ms-header-inner .handheld-navigation,
    body .ms-header-inner .handheld-navigation ul,
    body .ms-header-inner .handheld-navigation ul ul {
        background: var(--ms-site-background);
    }
    body .ms-header-inner .main-navigation .handheld-navigation {
        visibility: hidden;
    }
    body .ms-header-inner .main-navigation.toggled .handheld-navigation {
        visibility: visible;
        max-height: 65vh;
        max-height: 65dvh;
        overflow-y: auto;
    }
    body .ms-header-inner .handheld-navigation a { overflow-wrap: anywhere; }
    body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul {
        gap: 0 16px;
    }
    .single-product .woocommerce-tabs .ms-product-story > :is(div, section) + :is(div, section) { margin-top: 24px; }
    .single-product .woocommerce-tabs .ms-product-story :is(.ms-story-card, .ms-story-author, .ms-story-audience, .ms-story-callout) {
        padding: 20px;
    }
}

/* Consistent spacing on Storefront action buttons, including account actions. */
body .button,
body .added_to_cart,
body button[type="submit"],
body input[type="button"],
body input[type="reset"],
body input[type="submit"] {
    padding: var(--ms-button-padding);
}
/* Double Storefront's .875em sale label while retaining its borderless style. */
body .onsale {
    border: 0;
    font-size: 1.75em;
    color: #c62828;
    font-weight: 700;
}
body.woocommerce-account .ms-account-navigation { padding-top: 12px; }
body.woocommerce-account .ms-account-navigation .woocommerce-MyAccount-navigation {
    margin-bottom: 12px;
}

/* Keep Cart and Checkout blocks inside Storefront's shared .col-full content bounds. */
body.woocommerce-cart #primary.content-area,
body.woocommerce-checkout #primary.content-area {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}
body.woocommerce-cart #main .hentry .entry-content,
body.woocommerce-checkout #main .hentry .entry-content {
    min-width: 0;
}
body.woocommerce-cart #main .hentry .entry-content [data-block-name="woocommerce/cart"],
body.woocommerce-cart #main .hentry .entry-content .wp-block-woocommerce-cart,
body.woocommerce-checkout #main .hentry .entry-content [data-block-name="woocommerce/checkout"],
body.woocommerce-checkout #main .hentry .entry-content .wp-block-woocommerce-checkout {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
/* Preserve WooCommerce's own column breakpoints and stacking behavior. */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-main,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-main,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-sidebar {
    min-width: 0;
}

/* Storefront notices reset .button to padding:0 plus padding-left.
   Outrank that rule and share the regular action-button spacing. */
body :is(.woocommerce-info, .woocommerce-message, .woocommerce-error,
    .woocommerce-noreviews, p.no-comments) .button {
    padding: var(--ms-button-padding);
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
/* Contain floated notice actions so the wrapper grows to their full height.
   Auto height accommodates wrapped text and zoom without clipping content. */
body :is(.woocommerce-info, .woocommerce-message, .woocommerce-error,
    .woocommerce-noreviews, p.no-comments) {
    display: flow-root;
    box-sizing: border-box;
    height: auto;
    max-width: 100%;
}
@media (max-width: 767px) {
    body :is(.woocommerce-info, .woocommerce-message, .woocommerce-error,
        .woocommerce-noreviews, p.no-comments) .button {
        float: none;
        display: table;
        margin: .5em 0;
    }
}

/* Orders: use the file-invoice icon from the bundled Font Awesome 7.3.1. */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a::before {
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    content: "\f571";
}

/* Addresses: use the map-marker-alt icon from the bundled Font Awesome 7.3.1. */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a::before {
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    content: "\f3c5";
}

/* Use hero-mockup/styles.css heading typography across storefront H1s. */
body h1,
body .ms-home .ms-hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
}

/* Product editorial sections and purchase summary (0.1.37). */
.single-product .woocommerce-tabs .ms-product-story .ms-story-card {
    background: transparent;
}
.single-product .woocommerce-tabs .ms-product-story > :is(section, div) {
    padding-top: 1em;
    padding-bottom: 1em;
}
/* Match hero-mockup/styles.css, including its small-screen spacing. */
.single-product .woocommerce-tabs .ms-product-story .level-number {
    font-family: Georgia, serif;
    font-size: 29px;
    color: #8a743f;
    display: block;
    margin-bottom: 23px;
}
@media (max-width: 600px) {
    .single-product .woocommerce-tabs .ms-product-story .level-number {
        margin-bottom: 10px;
    }
}
/* Share a root-relative size so nested price markup cannot compound em sizes. */
body.single-product div.product .summary {
    --ms-product-title-size: 2.617924rem;
}
body.single-product div.product .summary h1.product_title {
    font-size: var(--ms-product-title-size);
}
body.single-product div.product .summary .price .woocommerce-Price-amount.amount bdi {
    font-size: calc(var(--ms-product-title-size) * .8);
}
body.single-product div.product .summary > .onsale {
    position: static;
    display: block;
    float: none;
    width: fit-content;
    margin: 0 0 .25em;
}

/* Muted editorial copy matches hero-mockup/styles.css. */
.single-product .woocommerce-tabs .ms-product-story {
    --ms-muted: #516570;
}
.single-product .woocommerce-tabs .ms-product-story p.muted {
    color: var(--ms-muted);
}

/* Match the product H1 font while preserving the existing price size. */
body.single-product div.product .summary .price .woocommerce-Price-amount.amount bdi {
    font-family: Georgia, 'Times New Roman', serif;
}

/* Short-description content adapted from hero-mockup/product.html. */
.ms-product-info {
    --ms-muted: #516570;
    --ms-line: #cbdbe3;
    color: #182e3b;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}
.ms-product-info > p {
    font-size: 14px;
    color: var(--ms-muted);
    margin: 0 0 1em;
}
.ms-product-info > p.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    color: #244e40;
    margin: 0 0 23px;
}
.ms-product-info dl {
    margin: 25px 0;
    font-size: 12px;
}
.ms-product-info dl > div {
    display: flex;
    border-bottom: 1px solid var(--ms-line);
    padding: 9px 0;
}
.ms-product-info dt {
    flex: 0 0 100px;
    width: 100px;
    color: var(--ms-muted);
    font-weight: 400;
}
.ms-product-info dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

/* Audience landscape from hero-mockup/product.html. The image URL lives in
   the description markup so it remains editable with the product content. */
.single-product .woocommerce-tabs .ms-product-story .ms-story-audience {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 75px;
    align-items: center;
    background: transparent;
    border-radius: 0;
    padding: 1em 0;
}
.single-product .woocommerce-tabs .ms-product-story .landscape {
    box-sizing: border-box;
    min-width: 0;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    padding: 35px;
    background-color: #122e35;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
}
.single-product .woocommerce-tabs .ms-product-story .landscape span {
    font: italic 39px/1.2 Georgia, serif;
}
.single-product .woocommerce-tabs .ms-product-story .audience-copy { min-width: 0; }
@media (max-width: 850px) {
    .single-product .woocommerce-tabs .ms-product-story .ms-story-audience { gap: 35px; }
}
@media (max-width: 600px) {
    .single-product .woocommerce-tabs .ms-product-story .ms-story-audience { grid-template-columns: minmax(0, 1fr); }
    .single-product .woocommerce-tabs .ms-product-story .landscape { min-height: 240px; }
}

/* A decorative FA7 cart follows the product purchase button label. */
body.single-product .single_add_to_cart_button::after {
    content: "\f07a";
    content: "\f07a" / "";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    margin-inline-start: .65em;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

body .site-footer .site-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px 24px;
}
body .site-footer .ms-footer-copyright {
    text-align: left;
}
body .site-footer .ms-footer-maker {
    margin-left: auto;
    text-align: right;
    color: #516570;
}
body .site-footer .ms-footer-maker a,
body .site-footer .ms-footer-maker a:visited,
body .site-footer .ms-footer-maker a:hover,
body .site-footer .ms-footer-maker a:focus {
    color: #516570;
    font-weight: 700;
    text-decoration: none;
}

body .site-footer .ms-footer-maker a:hover {
    text-decoration: underline;
}
