/*
Theme Name: Supermarket Starter
Theme URI: https://hinabor.com/
Author: OpenAI
Description: A lightweight, responsive WordPress theme for local supermarkets with homepage sliders, featured callouts, departments, weekly ad, locations, and mobile-friendly navigation.
Version: 1.0.84
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: supermarket-starter
*/

:root {
  --sm-bg: #ffffff;
  --sm-text: #1f2933;
  --sm-muted: #667085;
  --sm-border: #e5e7eb;
  --sm-primary: #5b2a86;
  --sm-accent: #f2c94c;
  --sm-dark: #151515;
  --sm-radius: 18px;
  --sm-shadow: 0 10px 30px rgba(0,0,0,.08);
  --sm-max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sm-bg);
  color: var(--sm-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.sm-container { width: min(calc(100% - 32px), var(--sm-max)); margin-inline: auto; }

.site-header { background: #fff; border-bottom: 1px solid var(--sm-border); position: relative; z-index: 20; }
.site-branding { min-height: 120px; display:flex; align-items:center; justify-content:center; padding: 20px 0; }
.custom-logo { max-height: 88px; width:auto; }
.site-title { margin:0; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; text-decoration:none; }
.site-description { margin:.35rem 0 0; text-align:center; color:var(--sm-muted); }

.primary-nav-wrap { background: var(--sm-dark); color:#fff; }
.primary-nav { min-height: 56px; display:flex; align-items:center; justify-content:center; position:relative; }
.primary-nav ul { list-style:none; display:flex; gap: 8px; padding:0; margin:0; align-items:center; }
.primary-nav a { display:block; padding: 17px 16px; text-decoration:none; font-weight:700; }
.primary-nav a:hover, .primary-nav a:focus { background: rgba(255,255,255,.1); }
.primary-nav li { position:relative; }
.primary-nav ul ul { display:none; position:absolute; top:100%; left:0; min-width:220px; background:var(--sm-dark); box-shadow:var(--sm-shadow); z-index:30; }
.primary-nav li:hover > ul, .primary-nav li:focus-within > ul { display:block; }
.primary-nav ul ul a { padding:12px 16px; }
.menu-toggle { display:none; border:0; background:transparent; color:#fff; font-size:1rem; font-weight:800; padding:16px; cursor:pointer; }

.sm-hero { position:relative; width:100%; overflow:hidden; background:#111; }
/* Slider rebuild: render artwork as a normal image at its intrinsic aspect ratio.
   Avoid absolute-position scaling and opacity compositing, both of which can soften images in browsers. */
.sm-slides { position:relative; width:100%; }
.sm-slide { display:none; width:100%; margin:0; }
.sm-slide.is-active { display:block; }
.sm-slide a.sm-slide-link,
.sm-slide picture { display:block; width:100%; }
.sm-slide img,
.sm-slide .wp-post-image,
.sm-slide a.sm-slide-link > img,
.sm-slide picture > img {
  display:block !important;
  position:static !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  max-height:none !important;
  object-fit:initial !important;
  object-position:initial !important;
  transform:none !important;
  filter:none !important;
}
.sm-slide-overlay { position:absolute; inset:0; display:flex; align-items:center; pointer-events:none; background:linear-gradient(90deg, rgba(0,0,0,.52), rgba(0,0,0,.03) 60%); }
.sm-slide-content { width:min(92%, 700px); margin-left:max(4vw,24px); color:#fff; text-shadow:0 2px 12px rgba(0,0,0,.35); }
.sm-slide-content h1, .sm-slide-content h2 { font-size:clamp(2.1rem,5vw,4.7rem); line-height:1.02; margin:0 0 15px; }
.sm-slide-content p { font-size:clamp(1rem,2vw,1.35rem); max-width:650px; margin:0 0 24px; }
.sm-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--sm-primary); color:#fff; border-radius:999px; padding:12px 22px; text-decoration:none; font-weight:800; border:2px solid transparent; }
.sm-button:hover { filter:brightness(.92); }
.sm-button--accent { background:var(--sm-accent); color:#111; }
.sm-button--light { background:#fff; color:#111; }
.sm-slider-controls { position:absolute; inset-inline:0; bottom:18px; display:flex; align-items:center; justify-content:center; gap:14px; z-index:5; }
.sm-arrow { width:44px; height:44px; border-radius:999px; border:0; background:rgba(0,0,0,.55); color:#fff; font-size:1.35rem; cursor:pointer; }
.sm-dots { display:flex; gap:8px; }
.sm-dot { width:11px; height:11px; border-radius:999px; border:0; background:rgba(255,255,255,.55); cursor:pointer; padding:0; }
.sm-dot.is-active { background:#fff; transform:scale(1.25); }

.sm-section { padding: 64px 0; }
.sm-section--soft { background:#f7f7f8; }
.sm-section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:28px; }
.sm-section-heading h2 { margin:0; font-size:clamp(2rem,4vw,3.2rem); line-height:1.1; }
.sm-section-heading p { margin:.55rem 0 0; color:var(--sm-muted); max-width:720px; }
.sm-feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.sm-feature-card { overflow:hidden; border-radius:var(--sm-radius); background:#fff; box-shadow:var(--sm-shadow); min-height:100%; }
.sm-feature-card > a { text-decoration:none; display:block; height:100%; }
.sm-feature-card img { width:100%; aspect-ratio:16/10; object-fit:cover; transition:transform .3s ease; }
.sm-feature-card:hover img { transform:scale(1.025); }
.sm-feature-card-body { padding:22px; }
.sm-feature-card h3 { margin:0 0 8px; font-size:1.5rem; line-height:1.2; }
.sm-feature-card p { margin:0; color:var(--sm-muted); }
.sm-card-cta { margin-top:18px; font-weight:800; color:var(--sm-primary); display:inline-block; }

.sm-promo { display:grid; grid-template-columns:1.1fr .9fr; align-items:stretch; overflow:hidden; border-radius:var(--sm-radius); background:var(--sm-dark); color:#fff; box-shadow:var(--sm-shadow); }
.sm-promo-media img { width:100%; height:100%; min-height:360px; object-fit:cover; }
.sm-promo-body { padding:clamp(30px,5vw,64px); display:flex; flex-direction:column; justify-content:center; }
.sm-promo-body h2 { font-size:clamp(2rem,4vw,3.6rem); line-height:1.04; margin:0 0 15px; }
.sm-promo-body p { color:#e5e7eb; font-size:1.1rem; }

.entry-wrap { padding:52px 0 72px; }
.entry-title { font-size:clamp(2.2rem,4vw,4rem); line-height:1.08; margin:0 0 24px; }
.entry-content > * { max-width:850px; }
.entry-content > .alignwide { max-width:var(--sm-max); }
.entry-content > .alignfull { max-width:none; width:100vw; margin-left:calc(50% - 50vw); }

.site-footer { background:#111; color:#fff; padding:54px 0 24px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:36px; }
.footer-title { font-size:1.15rem; margin:0 0 12px; }
.site-footer ul { list-style:none; padding:0; margin:0; }
.site-footer li { margin:8px 0; }
.site-footer a { color:#fff; text-decoration:none; }
.site-footer a:hover { text-decoration:underline; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.16); margin-top:36px; padding-top:20px; color:#cbd5e1; font-size:.92rem; }

@media (max-width: 900px) {
  .site-branding { min-height:96px; }
  .custom-logo { max-height:68px; }
  .menu-toggle { display:block; margin-inline:auto; }
  .primary-nav { display:block; min-height:auto; }
  /* Keep the mobile navigation collapsed until the Menu button is tapped.
     This also covers WordPress's fallback page-menu container. */
  .primary-nav > div, .primary-nav > ul { display:none; }
  .primary-nav.is-open > div, .primary-nav.is-open > ul { display:block; }
  .primary-nav ul { flex-direction:column; align-items:stretch; gap:0; }
  .primary-nav ul ul { position:static; display:block; box-shadow:none; background:rgba(255,255,255,.05); }
  .primary-nav a { padding:14px 18px; }
  .sm-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sm-promo { grid-template-columns:1fr; }
  .sm-promo-media img { min-height:260px; max-height:420px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 640px) {
  .sm-container { width:min(calc(100% - 22px), var(--sm-max)); }
  /* On phones, let the actual slide artwork determine the slider height.
     This removes the old forced square canvas and the large black area beneath
     wide desktop artwork. A dedicated mobile image will still display naturally. */
  .sm-hero { background:transparent; }
  .sm-slides { aspect-ratio:auto; min-height:0; }
  .sm-slide,
  .sm-slide.is-active,
  .sm-slide a.sm-slide-link,
  .sm-slide picture { height:auto; min-height:0; }
  .sm-slide img,
  .sm-slide picture > img { width:100% !important; height:auto !important; min-height:0 !important; }

  /* Float the slider navigation over the bottom of the artwork instead of
     reserving a separate black control area. */
  .sm-slider-controls {
    bottom:10px;
    gap:10px;
    width:max-content;
    left:50%;
    right:auto;
    transform:translateX(-50%);
    padding:6px 9px;
    border-radius:999px;
    background:rgba(0,0,0,.42);
    backdrop-filter:blur(3px);
  }
  .sm-arrow { width:36px; height:36px; font-size:1.15rem; background:rgba(0,0,0,.45); }
  .sm-dot { width:9px; height:9px; }

  .sm-slide-overlay { background:linear-gradient(0deg, rgba(0,0,0,.66), rgba(0,0,0,.04) 75%); align-items:end; padding-bottom:64px; }
  .sm-slide-content { margin:0 20px; }
  .sm-section { padding:46px 0; }
  .sm-section-heading { display:block; }
  .sm-feature-grid { grid-template-columns:1fr; gap:18px; }
  .footer-grid { grid-template-columns:1fr; }
}


/* v1.0.6 — Hi Nabor navigation + centered page content */
.main-navigation,
.site-navigation,
.primary-navigation,
#site-navigation,
nav[aria-label="Primary"],
header nav {
    background: #364469 !important;
}

/* Keep menu links readable against Hi Nabor blue */
.main-navigation a,
.site-navigation a,
.primary-navigation a,
#site-navigation a,
nav[aria-label="Primary"] a,
header nav a {
    color: #fff !important;
}

/* Center normal interior page titles and page content */
body:not(.home) .site-main,
body:not(.home) main,
body:not(.home) .content-area {
    text-align: center;
}

body:not(.home) .entry-header,
body:not(.home) .page-header,
body:not(.home) .entry-title,
body:not(.home) .page-title {
    text-align: center !important;
}

body:not(.home) .entry-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

body:not(.home) .entry-content > * {
    margin-left: auto;
    margin-right: auto;
}

/* Center common WordPress media/content blocks on pages */
body:not(.home) .entry-content img,
body:not(.home) .entry-content figure,
body:not(.home) .entry-content .wp-block-image,
body:not(.home) .entry-content .wp-block-gallery,
body:not(.home) .entry-content .wp-block-group,
body:not(.home) .entry-content .wp-block-columns,
body:not(.home) .entry-content .wp-block-embed {
    margin-left: auto;
    margin-right: auto;
}

/* Preserve intentionally wide/full-width blocks while centering their contents */
body:not(.home) .entry-content .alignwide,
body:not(.home) .entry-content .alignfull {
    text-align: center;
}

/* Mobile menu uses the same Hi Nabor blue */
@media (max-width: 782px) {
    .main-navigation,
    .site-navigation,
    .primary-navigation,
    #site-navigation,
    nav[aria-label="Primary"],
    header nav {
        background: #364469 !important;
    }
}


/* v1.0.7 — force the ENTIRE primary navigation band to Hi Nabor blue */
.site-header .nav-wrap,
.site-header .navigation-wrap,
.site-header .menu-wrap,
.site-header .menu-bar,
.site-header .primary-menu-wrap,
.site-header .main-navigation,
.site-header .site-navigation,
.site-header .primary-navigation,
.site-header #site-navigation,
.site-header nav,
.main-navigation,
.site-navigation,
.primary-navigation,
#site-navigation {
    background-color: #364469 !important;
}

/* Full viewport-width blue band even when the menu itself sits in a centered container */
.site-header .main-navigation,
.site-header .site-navigation,
.site-header .primary-navigation,
.site-header #site-navigation,
.site-header nav {
    box-shadow: 0 0 0 100vmax #364469 !important;
    clip-path: inset(0 -100vmax) !important;
}

.site-header nav a,
.site-header .main-navigation a,
.site-header .site-navigation a,
.site-header .primary-navigation a,
.site-header #site-navigation a {
    color: #ffffff !important;
}

/* Automatic featured image on normal pages */
.page-featured-image {
    width: 100%;
    text-align: center;
    margin: 0 auto 2rem;
}
.page-featured-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


/* v1.0.8 — exact navigation wrapper and page featured image fixes */
.primary-nav-wrap {
    background: #364469 !important;
    width: 100%;
}
.primary-nav {
    background: #364469 !important;
}
.page-featured-image {
    text-align: center;
    margin: 0 auto 2rem;
}
.page-featured-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


/* v1.0.9 — restore desktop dropdown menus.
   The old full-width blue-band clip-path was clipping submenus below the nav. */
.site-header .main-navigation,
.site-header .site-navigation,
.site-header .primary-navigation,
.site-header #site-navigation,
.site-header nav {
    box-shadow: none !important;
    clip-path: none !important;
    overflow: visible !important;
}

.primary-nav-wrap {
    background: #364469 !important;
    overflow: visible !important;
}

.primary-nav {
    background: #364469 !important;
    overflow: visible !important;
    z-index: 100;
}

.primary-nav .menu-primary-container,
.primary-nav ul,
.primary-nav li {
    overflow: visible !important;
}

.primary-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #364469 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    z-index: 9999;
}

.primary-nav li:hover > ul,
.primary-nav li:focus-within > ul {
    display: block;
}

.primary-nav ul ul a {
    background: #364469;
    color: #fff !important;
    white-space: nowrap;
}

.primary-nav ul ul a:hover,
.primary-nav ul ul a:focus {
    background: rgba(255,255,255,.12);
}

/* On mobile, nested menu items remain visible once the main Menu is opened. */
@media (max-width: 900px) {
    .primary-nav ul ul {
        position: static;
        display: block;
        min-width: 0;
        box-shadow: none;
        background: rgba(255,255,255,.06) !important;
    }
}

/* v1.0.10 — blog/posts page card layout */
.blog-index-wrap {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}

.blog-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-page-title {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.blog-card-list {
    display: grid;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-entry-card {
    display: grid;
    grid-template-columns: minmax(280px, 42%) 1fr;
    min-height: 250px;
    border: 1px solid #d9d9d9;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    text-align: left;
}

.blog-entry-image {
    display: block;
    min-height: 250px;
    background: #f2f2f2;
    overflow: hidden;
}

.blog-entry-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    margin: 0;
}

.blog-entry-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: #f2f2f2;
}

.blog-entry-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 2.25rem;
    text-align: left;
}

.blog-entry-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
    font-weight: 500;
}

.blog-entry-title a {
    color: inherit;
    text-decoration: none;
}

.blog-entry-title a:hover,
.blog-entry-title a:focus {
    text-decoration: underline;
}

.blog-entry-date {
    margin: 0 0 1.5rem;
    font-size: .95rem;
    letter-spacing: .01em;
}

.blog-read-more {
    display: inline-block;
    padding: .7rem 1rem;
    background: #364469;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 2px;
}

.blog-read-more:hover,
.blog-read-more:focus {
    opacity: .9;
}

.blog-pagination {
    max-width: 1100px;
    margin: 2rem auto 0;
    text-align: center;
}

@media (max-width: 700px) {
    .blog-index-wrap {
        padding-top: 2rem;
    }

    .blog-entry-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .blog-entry-image,
    .blog-entry-image img,
    .blog-entry-image-placeholder {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .blog-entry-details {
        padding: 1.4rem 1.25rem 1.6rem;
    }

    .blog-entry-title {
        margin-bottom: .8rem;
    }

    .blog-entry-date {
        margin-bottom: 1.1rem;
    }
}


/* v1.0.11 — fixed-height blog listing cards + full single-post layout */
@media (min-width: 701px) {
    .blog-entry-card {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }

    .blog-entry-image,
    .blog-entry-image-placeholder {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }

    .blog-entry-image img {
        width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        object-fit: cover !important;
        object-position: center center;
    }

    .blog-entry-details {
        height: 250px;
        box-sizing: border-box;
        overflow: hidden;
    }
}

/* Individual blog post */
.single-post-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem 4rem;
    text-align: center;
}

.single-post-header {
    margin-bottom: 2rem;
}

.single-post-title {
    margin: 0 0 .8rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
}

.single-post-date {
    margin: 0;
    font-size: .95rem;
}

.single-post-featured-image {
    margin: 0 auto 2.25rem;
}

.single-post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 6px;
}

.single-post-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.7;
}

.single-post-content > * {
    max-width: 100%;
}

.single-post-content img,
.single-post-content figure {
    max-width: 100%;
    height: auto;
}

@media (max-width: 700px) {
    .single-post-wrap {
        padding-top: 2rem;
    }

    .single-post-content {
        font-size: 1rem;
    }
}


/* v1.0.12 — image-only Featured This Week cards */
.sm-feature-card--image-only {
    padding: 0 !important;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: transparent;
}

.sm-feature-card--image-only .sm-feature-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sm-feature-card--image-only img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 3 / 2;
    object-fit: cover !important;
    margin: 0 !important;
}

.sm-feature-card--image-only:not(:has(a)) img {
    width: 100% !important;
    height: 100% !important;
}

.sm-feature-card--image-only .sm-feature-card-body {
    display: none !important;
}


/* v1.0.13 — dedicated Weekly Ad promo image */
.sm-promo-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}


/* v1.0.14 — header email signup widget + footer social links */
.site-branding.has-header-widget {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 360px);
    align-items: center;
    gap: 32px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.site-branding.has-header-widget .site-branding-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.header-signup-area {
    width: 100%;
    max-width: 360px;
    justify-self: end;
    text-align: left;
}

.header-signup-widget {
    margin: 0;
}

.header-signup-widget > :first-child {
    margin-top: 0;
}

.header-signup-widget > :last-child {
    margin-bottom: 0;
}

.header-signup-title {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.2;
}

/* Keep common signup form widgets compact inside the header. */
.header-signup-area form {
    margin: 0;
}

.header-signup-area label {
    display: block;
    margin: 0 0 4px;
    font-weight: 700;
    font-size: .9rem;
}

.header-signup-area input[type="text"],
.header-signup-area input[type="email"],
.header-signup-area input[type="tel"],
.header-signup-area input[type="url"] {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
}

.header-signup-area input[type="submit"],
.header-signup-area button[type="submit"] {
    min-height: 38px;
    padding: 8px 16px;
    border: 0;
    border-radius: 4px;
    background: #364469;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.header-signup-area p {
    margin: 0 0 8px;
}

.footer-social-links {
    display: grid;
    gap: 8px;
}

.site-footer .footer-social-links li {
    margin: 0;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.footer-social-badge {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #364469;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    flex: 0 0 30px;
}

.footer-social-link:hover .footer-social-badge,
.footer-social-link:focus .footer-social-badge {
    background: #fff;
    color: #364469;
}

@media (max-width: 900px) {
    .site-branding.has-header-widget {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .header-signup-area {
        justify-self: center;
        max-width: 420px;
    }
}

@media (max-width: 640px) {
    .site-branding.has-header-widget {
        padding-left: 10px;
        padding-right: 10px;
    }

    .header-signup-area {
        max-width: 100%;
    }
}


/* v1.0.15 — Visit Us footer store details */
.footer-visit-us {
    line-height: 1.5;
}

.footer-hours {
    margin: 0 0 18px;
    font-size: .95rem;
}

.footer-store {
    margin: 0 0 18px;
}

.footer-store:last-child {
    margin-bottom: 0;
}

.footer-store strong {
    display: inline-block;
    margin-bottom: 2px;
}

.footer-store a {
    text-decoration: none;
}

.footer-store a:hover,
.footer-store a:focus {
    text-decoration: underline;
}


/* v1.0.16 — compact two-column footer + real social platform icons */
.footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr) !important;
}

.footer-social-badge svg {
    width: 18px;
    height: 18px;
    display: block;
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}


/* v1.0.17 — full clickable weekly deal promo + centered footer blocks */
.sm-promo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--sm-radius);
}

.sm-promo-link:focus-visible {
    outline: 3px solid var(--sm-accent);
    outline-offset: 4px;
}

.sm-promo-link .sm-promo {
    transition: transform .18s ease, box-shadow .18s ease;
}

.sm-promo-link:hover .sm-promo,
.sm-promo-link:focus .sm-promo {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

.footer-grid {
    justify-items: center;
    text-align: center;
}

.footer-grid > div {
    width: 100%;
    max-width: 420px;
}

.footer-social-links {
    justify-items: center;
}

.footer-social-link {
    justify-content: center;
}

.footer-bottom {
    text-align: center;
}


/* v1.0.18 — footer layout matching supplied reference */
.footer-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 260px !important;
    gap: 48px !important;
    align-items: start !important;
    justify-items: stretch !important;
    text-align: left !important;
}

.footer-grid > div {
    width: 100% !important;
    max-width: none !important;
}

/* Main/about block centered within its column */
.footer-grid > div:first-child {
    text-align: center !important;
}

.footer-grid > div:first-child .footer-title {
    text-align: center !important;
}

.footer-grid > div:first-child p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Social block stays compact like the reference */
.footer-grid > div:nth-child(2) {
    text-align: left !important;
    justify-self: center !important;
    max-width: 220px !important;
}

.footer-grid > div:nth-child(2) .footer-title {
    text-align: left !important;
}

.footer-social-links {
    justify-items: start !important;
}

.footer-social-link {
    justify-content: flex-start !important;
}

.footer-bottom {
    text-align: center !important;
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .footer-grid > div:nth-child(2) {
        justify-self: center !important;
        text-align: center !important;
    }

    .footer-grid > div:nth-child(2) .footer-title {
        text-align: center !important;
    }

    .footer-social-links {
        justify-items: center !important;
    }
}


/* v1.0.19 — dedicated modern Careers page */
.careers-page {
    --career-blue: #364469;
    --career-blue-dark: #273452;
    --career-soft: #f5f7fb;
    --career-card-border: #e1e6ef;
    text-align: left !important;
}

.careers-page * {
    box-sizing: border-box;
}

.careers-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.11) 0 110px, transparent 111px),
        radial-gradient(circle at 93% 55%, rgba(255,255,255,.06) 0 220px, transparent 221px),
        linear-gradient(135deg, var(--career-blue-dark), var(--career-blue));
    color: #fff;
}

.careers-hero-inner {
    padding-top: clamp(68px, 8vw, 112px);
    padding-bottom: clamp(68px, 8vw, 112px);
    text-align: center;
}

.careers-eyebrow,
.careers-kicker {
    margin: 0 0 10px;
    color: #53668f;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.careers-eyebrow {
    color: #fff;
    opacity: .75;
}

.careers-hero h1 {
    max-width: 820px;
    margin: 0 auto 20px;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.careers-hero-copy {
    max-width: 720px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,.88);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.careers-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 24px;
    border-radius: 999px;
    background: #fff;
    color: var(--career-blue-dark);
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(0,0,0,.13);
}

.careers-primary-button:hover,
.careers-primary-button:focus {
    transform: translateY(-1px);
}

.careers-section {
    padding: clamp(60px, 7vw, 92px) 0;
}

.careers-section-soft {
    background: var(--career-soft);
}

.careers-section-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.careers-section-heading h2,
.careers-benefits-intro h2 {
    margin: 0 0 14px;
    font-size: clamp(2.15rem, 4vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.careers-section-heading > p:last-child,
.careers-benefits-intro > p {
    color: var(--sm-muted);
}

.careers-values-grid,
.careers-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
}

.careers-value-card,
.careers-location-card {
    border: 1px solid var(--career-card-border);
    border-radius: 18px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(24,39,75,.05);
}

.careers-value-card {
    text-align: center;
}

.careers-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(54,68,105,.10);
    color: var(--career-blue);
    font-weight: 900;
}

.careers-value-card h3,
.careers-location-card h3,
.careers-job-group h3,
.careers-benefit-cards h3 {
    margin: 0 0 8px;
    line-height: 1.2;
}

.careers-value-card p,
.careers-location-card p,
.careers-benefit-cards p {
    margin: 0;
    color: var(--sm-muted);
}

.careers-location-card {
    position: relative;
    padding-top: 48px;
}

.careers-location-number {
    position: absolute;
    top: 18px;
    right: 22px;
    color: rgba(54,68,105,.18);
    font-size: 2.1rem;
    font-weight: 900;
}

.careers-location-card a {
    display: inline-block;
    margin-top: 18px;
    color: var(--career-blue);
    text-decoration: none;
    font-weight: 800;
}

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

.careers-job-group {
    overflow: hidden;
    border: 1px solid var(--career-card-border);
    border-radius: 18px;
    background: #fff;
}

.careers-job-group > h3 {
    margin: 0;
    padding: 20px 22px;
    background: var(--career-blue);
    color: #fff;
    font-size: 1.15rem;
}

.careers-job-links {
    padding: 8px 22px 14px;
}

.careers-job-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f5;
    color: var(--sm-text);
    text-decoration: none;
    font-weight: 700;
}

.careers-job-links a:last-child {
    border-bottom: 0;
}

.careers-job-links a span {
    color: var(--career-blue);
    transition: transform .15s ease;
}

.careers-job-links a:hover {
    color: var(--career-blue);
}

.careers-job-links a:hover span {
    transform: translateX(3px);
}

.careers-benefits-section {
    background: #f7f8fa;
}

.careers-benefits-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(36px, 6vw, 74px);
    align-items: start;
}

.careers-benefits-intro {
    padding-top: 6px;
}

.careers-benefit-cards {
    display: grid;
    gap: 14px;
}

.careers-benefit-cards article {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--career-card-border);
    border-radius: 14px;
    background: #fff;
}

.careers-benefit-cards article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--career-blue);
    color: #fff;
    font-weight: 900;
}

.careers-benefit-cards h3 {
    font-size: 1.02rem;
}

.careers-benefit-cards p {
    font-size: .94rem;
}

.careers-fulltime {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
    padding: 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--career-card-border);
    text-align: center;
}

.careers-fulltime strong {
    width: 100%;
    margin-bottom: 4px;
}

.careers-fulltime span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef1f7;
    color: #44516d;
    font-size: .9rem;
    font-weight: 700;
}

.careers-cta {
    padding: 0 0 clamp(60px, 7vw, 92px);
}

.careers-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(32px, 5vw, 54px);
    border-radius: 22px;
    background: var(--career-blue);
    color: #fff;
}

.careers-cta-box .careers-kicker {
    color: rgba(255,255,255,.65);
}

.careers-cta-box h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem,4vw,3rem);
    line-height: 1.05;
}

.careers-cta-box p:last-child {
    margin-bottom: 0;
    color: rgba(255,255,255,.82);
}

.careers-button-light {
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .careers-values-grid,
    .careers-location-grid {
        grid-template-columns: 1fr;
    }

    .careers-jobs-grid,
    .careers-benefits-layout {
        grid-template-columns: 1fr;
    }

    .careers-cta-box {
        display: block;
        text-align: center;
    }

    .careers-cta-box .careers-primary-button {
        margin-top: 22px;
    }
}

@media (max-width: 640px) {
    .careers-hero-inner {
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .careers-section {
        padding: 52px 0;
    }

    .careers-job-group > h3 {
        padding: 18px;
    }

    .careers-job-links {
        padding-left: 18px;
        padding-right: 18px;
    }

    .careers-cta {
        padding-bottom: 52px;
    }
}


/* v1.0.20 — Careers hero image + modern Locations page */

/* Careers hero now uses the provided produce image */
.careers-hero {
    background:
        linear-gradient(rgba(20,27,42,.64), rgba(20,27,42,.66)),
        url("assets/images/careers-produce-hero.png") center center / cover no-repeat !important;
}

/* Locations */
.locations-page {
    --loc-blue: #364469;
    --loc-blue-dark: #273452;
    --loc-soft: #f5f7fb;
    text-align: left !important;
}

.locations-hero {
    background: linear-gradient(135deg, var(--loc-blue-dark), var(--loc-blue));
    color: #fff;
}

.locations-hero-inner {
    padding-top: clamp(64px, 8vw, 104px);
    padding-bottom: clamp(64px, 8vw, 104px);
    text-align: center;
}

.locations-eyebrow,
.location-kicker {
    margin: 0 0 10px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .15em;
    color: #6c7ba0;
}

.locations-eyebrow {
    color: rgba(255,255,255,.72);
}

.locations-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.locations-hero p {
    margin: 0 auto;
    max-width: 700px;
    color: rgba(255,255,255,.88);
    font-size: 1.15rem;
}

.locations-hours-pill {
    display: inline-flex;
    margin-top: 28px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: .92rem;
    font-weight: 900;
}

.locations-section {
    padding: clamp(54px, 7vw, 88px) 0;
}

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

.location-card {
    overflow: hidden;
    border: 1px solid #e2e6ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24,39,75,.07);
}

.location-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 18px;
}

.location-card-top h2 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.1;
}

.location-number {
    order: 2;
    color: rgba(54,68,105,.18);
    font-size: 2.1rem;
    font-weight: 900;
}

.location-map-wrap {
    height: 230px;
    background: #eef1f5;
}

.location-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.location-info {
    padding: 24px;
}

.location-info > p {
    margin-top: 0;
}

.location-contact-list {
    padding: 14px 0;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.location-contact-list p {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin: 7px 0;
}

.location-contact-list span {
    color: var(--sm-muted);
    font-size: .9rem;
}

.location-contact-list a,
.location-manager a {
    color: var(--loc-blue);
    text-decoration: none;
}

.location-manager {
    display: grid;
    gap: 3px;
    margin: 18px 0 20px;
}

.location-manager > span {
    color: var(--sm-muted);
    font-size: .85rem;
}

.location-directions-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    background: var(--loc-blue);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
}

.locations-notary {
    padding: 0 0 clamp(58px, 7vw, 90px);
}

.locations-notary-card {
    padding: clamp(28px, 5vw, 48px);
    border-radius: 22px;
    background: var(--loc-soft);
    border: 1px solid #e2e6ee;
}

.locations-notary-card > div:first-child {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.locations-notary-card h2 {
    margin: 0 0 10px;
    font-size: clamp(2rem,4vw,3rem);
    line-height: 1.05;
}

.locations-notary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
}

.locations-notary-grid > div {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.locations-notary-grid a {
    color: var(--loc-blue);
    text-decoration: none;
    font-weight: 800;
}

.locations-notary-grid span {
    color: var(--sm-muted);
    font-size: .9rem;
}

@media (max-width: 980px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .location-map-wrap {
        height: 280px;
    }

    .locations-notary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .locations-hero-inner {
        padding-top: 52px;
        padding-bottom: 56px;
    }

    .locations-section {
        padding: 48px 0;
    }

    .location-card-top,
    .location-info {
        padding-left: 20px;
        padding-right: 20px;
    }

    .location-map-wrap {
        height: 220px;
    }
}


/* v1.0.21 — Locations hero photo + left-aligned About Us footer */
.locations-hero {
    position: relative;
    background:
        linear-gradient(rgba(20,27,42,.58), rgba(20,27,42,.64)),
        url("assets/images/locations-store-hero.jpg") center 48% / cover no-repeat !important;
}

.locations-hero-inner {
    position: relative;
    z-index: 1;
}

/* About Us block should read like a normal left-aligned footer column. */
.footer-grid > div:first-child,
.footer-grid > div:first-child .footer-title,
.footer-grid > div:first-child p {
    text-align: left !important;
}

.footer-grid > div:first-child p {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 800px) {
    .footer-grid > div:first-child,
    .footer-grid > div:first-child .footer-title,
    .footer-grid > div:first-child p {
        text-align: left !important;
    }
}


/* v1.0.23 — Neighborhood Auto Title callout */
.locations-notary-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.neighborhood-title-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fb 0%, #eef2f8 100%);
    transition: transform .18s ease, box-shadow .18s ease;
}

.locations-notary-link:hover .neighborhood-title-card,
.locations-notary-link:focus .neighborhood-title-card {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(24,39,75,.10);
}

.neighborhood-title-content {
    max-width: 760px;
    margin: 0 auto !important;
    text-align: center !important;
}

.neighborhood-title-content h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.neighborhood-title-content > p:not(.location-kicker) {
    margin: 0 auto;
    max-width: 650px;
    color: var(--sm-muted);
}

.neighborhood-title-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #364469;
    color: #fff;
    font-weight: 800;
}


/* v1.0.24 — modern Weekly Ad page + revised Neighborhood Auto Title copy */
.weekly-ad-page {
    --ad-blue: #364469;
    --ad-blue-dark: #273452;
    --ad-soft: #f5f7fb;
    text-align: left !important;
}

.weekly-ad-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(20,27,42,.58), rgba(20,27,42,.68)),
        url("assets/images/weekly-ad-hero.png") center center / cover no-repeat;
    color: #fff;
}

.weekly-ad-hero-inner {
    padding-top: clamp(66px, 8vw, 108px);
    padding-bottom: clamp(66px, 8vw, 108px);
    text-align: center;
}

.weekly-ad-eyebrow,
.weekly-ad-kicker {
    margin: 0 0 10px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.weekly-ad-eyebrow {
    color: rgba(255,255,255,.78);
}

.weekly-ad-kicker {
    color: #68799f;
}

.weekly-ad-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.weekly-ad-hero-copy {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255,255,255,.9);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.weekly-ad-hero-pill {
    display: inline-flex;
    margin-top: 28px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: .9rem;
    font-weight: 900;
}

.weekly-ad-section {
    padding: clamp(54px, 7vw, 86px) 0;
}

.weekly-ad-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.weekly-ad-heading h2,
.weekly-ad-signup-copy h2 {
    margin: 0 0 10px;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.weekly-ad-heading > div:first-child > p:last-child,
.weekly-ad-signup-copy > p:last-child {
    margin-bottom: 0;
    color: var(--sm-muted);
}

.weekly-ad-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.weekly-ad-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid #d7ddea;
    border-radius: 999px;
    background: #fff;
    color: var(--ad-blue);
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.weekly-ad-action:hover,
.weekly-ad-action:focus {
    border-color: var(--ad-blue);
    background: #f7f8fb;
}

/* Turn the legacy WordPress table into a modern responsive ad grid. */
.weekly-ad-content table,
.weekly-ad-content tbody,
.weekly-ad-content tr {
    display: contents !important;
}

.weekly-ad-content {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    max-width: none !important;
    text-align: initial !important;
}

.weekly-ad-content td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.weekly-ad-content p,
.weekly-ad-content figure,
.weekly-ad-content .wp-block-image {
    margin: 0 !important;
    max-width: none !important;
}

.weekly-ad-image-link,
.weekly-ad-content td > a {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24,39,75,.09);
    border: 1px solid #e2e6ee;
    transition: transform .16s ease, box-shadow .16s ease;
}

.weekly-ad-image-link:hover,
.weekly-ad-content td > a:hover,
.weekly-ad-image-link:focus,
.weekly-ad-content td > a:focus {
    transform: translateY(-2px);
    box-shadow: 0 13px 30px rgba(24,39,75,.14);
}

.weekly-ad-content img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.weekly-ad-signup-section {
    padding: 0 0 clamp(60px, 7vw, 90px);
}

.weekly-ad-signup-card {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
    padding: clamp(30px, 5vw, 52px);
    border-radius: 22px;
    background: var(--ad-soft);
    border: 1px solid #e0e5ef;
}

.weekly-ad-signup-form {
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(24,39,75,.06);
}

.weekly-ad-signup-form .wpforms-container {
    margin: 0 !important;
}

.weekly-ad-signup-form input[type="text"],
.weekly-ad-signup-form input[type="email"] {
    width: 100% !important;
    min-height: 44px !important;
    border: 1px solid #cad2e1 !important;
    border-radius: 6px !important;
}

.weekly-ad-signup-form button[type="submit"] {
    min-height: 44px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--ad-blue) !important;
    color: #fff !important;
    font-weight: 800 !important;
    padding: 10px 22px !important;
}

@media (max-width: 900px) {
    .weekly-ad-heading {
        display: block;
    }

    .weekly-ad-actions {
        justify-content: flex-start;
        margin-top: 20px;
    }

    .weekly-ad-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weekly-ad-signup-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .weekly-ad-hero-inner {
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .weekly-ad-section {
        padding: 48px 0;
    }

    .weekly-ad-content {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .weekly-ad-action {
        flex: 1 1 auto;
    }
}

/* Print only the actual ad pages. */
@media print {
    body * {
        visibility: hidden !important;
    }

    .weekly-ad-content,
    .weekly-ad-content * {
        visibility: visible !important;
    }

    .weekly-ad-content {
        position: absolute;
        inset: 0;
        display: block !important;
        width: 100% !important;
    }

    .weekly-ad-content td,
    .weekly-ad-content img,
    .weekly-ad-image-link {
        display: block !important;
        width: 100% !important;
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 0 !important;
    }
}


/* v1.0.25 — dedicated modern Floral page */
.floral-page {
    --floral-green: #2f6b55;
    --floral-green-dark: #214b3d;
    --floral-blush: #f8f2f3;
    --floral-soft: #f7f9f7;
    text-align: left !important;
}

.floral-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.10) 0 120px, transparent 121px),
        radial-gradient(circle at 92% 60%, rgba(255,255,255,.06) 0 220px, transparent 221px),
        linear-gradient(135deg, var(--floral-green-dark), var(--floral-green));
    color: #fff;
}

.floral-hero-inner {
    padding-top: clamp(68px, 8vw, 112px);
    padding-bottom: clamp(68px, 8vw, 112px);
    text-align: center;
}

.floral-eyebrow,
.floral-kicker {
    margin: 0 0 10px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.floral-eyebrow {
    color: rgba(255,255,255,.75);
}

.floral-kicker {
    color: #6d7e77;
}

.floral-hero h1 {
    max-width: 900px;
    margin: 0 auto 18px;
    font-size: clamp(3rem, 6vw, 5.3rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.floral-hero-copy {
    max-width: 720px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,.9);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.floral-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 24px;
    border-radius: 999px;
    background: #fff;
    color: var(--floral-green-dark);
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(0,0,0,.13);
}

.floral-section {
    padding: clamp(60px, 7vw, 92px) 0;
}

.floral-section-heading {
    max-width: 780px;
    margin: 0 auto 38px;
    text-align: center;
}

.floral-section-heading h2,
.floral-feature-copy h2,
.floral-contact-card h2 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.floral-section-heading > p:last-child,
.floral-feature-copy > p,
.floral-contact-card > div:first-child > p:last-child {
    color: var(--sm-muted);
}

.floral-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
}

.floral-card {
    padding: 30px;
    border: 1px solid #e3e9e6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26,58,46,.05);
    text-align: center;
}

.floral-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #edf5f1;
    color: var(--floral-green);
    font-size: 1.5rem;
    font-weight: 900;
}

.floral-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.floral-card p {
    margin: 0;
    color: var(--sm-muted);
}

.floral-feature-section {
    padding: 0 0 clamp(60px, 7vw, 92px);
}

.floral-feature {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    overflow: hidden;
    border-radius: 24px;
    background: var(--floral-soft);
    border: 1px solid #e2e8e4;
}

.floral-feature-copy {
    padding: clamp(34px, 5vw, 60px);
}

.floral-feature-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.floral-feature-points span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dfe7e2;
    color: #486256;
    font-size: .9rem;
    font-weight: 800;
}

.floral-feature-art {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,.95) 0 60px, transparent 61px),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,.8) 0 90px, transparent 91px),
        linear-gradient(135deg, #e7f0ea, #f7e9ed);
}

.floral-bloom {
    position: absolute;
    color: var(--floral-green);
    opacity: .8;
    line-height: 1;
}

.floral-bloom-1 {
    top: 18%;
    left: 18%;
    font-size: 7rem;
}

.floral-bloom-2 {
    top: 46%;
    right: 16%;
    font-size: 9rem;
    color: #b46f83;
}

.floral-bloom-3 {
    bottom: 8%;
    left: 38%;
    font-size: 6rem;
    color: #7b967f;
}

.floral-contact-section {
    padding: 0 0 clamp(60px, 7vw, 92px);
}

.floral-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(34px, 5vw, 54px);
    border-radius: 22px;
    background: var(--floral-green);
    color: #fff;
}

.floral-contact-card .floral-kicker {
    color: rgba(255,255,255,.7);
}

.floral-contact-card h2 {
    color: #fff;
}

.floral-contact-card > div:first-child > p:last-child {
    color: rgba(255,255,255,.82);
    margin-bottom: 0;
}

.floral-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

.floral-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 20px;
    border-radius: 999px;
    background: #fff;
    color: var(--floral-green-dark);
    text-decoration: none;
    font-weight: 900;
}

.floral-contact-button-light {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
}

@media (max-width: 900px) {
    .floral-card-grid,
    .floral-feature {
        grid-template-columns: 1fr;
    }

    .floral-feature-art {
        min-height: 280px;
    }

    .floral-contact-card {
        display: block;
        text-align: center;
    }

    .floral-contact-actions {
        justify-content: center;
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .floral-hero-inner {
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .floral-section {
        padding: 52px 0;
    }

    .floral-card {
        padding: 24px;
    }

    .floral-feature-copy {
        padding: 28px 24px;
    }

    .floral-contact-actions {
        display: grid;
    }
}


/* v1.0.26 — larger mobile logo + taller mobile hero slider */
@media (max-width: 640px) {

    /* Approximately double the previous mobile logo size. */
    .site-branding {
        min-height: 180px !important;
        padding-top: 26px !important;
        padding-bottom: 26px !important;
    }

    .site-branding .custom-logo,
    .site-branding-logo .custom-logo {
        max-height: 136px !important;
        max-width: min(92vw, 620px) !important;
        width: auto !important;
        height: auto !important;
    }

    /* If the email signup widget is active, retain the larger logo without
       forcing the whole header into one row. */
    .site-branding.has-header-widget {
        min-height: 180px !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    /*
     * Mobile slider:
     * The previous natural-height desktop artwork was only about 200–280px tall
     * on a phone, which did not leave enough vertical room for overlay copy.
     * Give mobile slides a taller canvas while leaving desktop untouched.
     */
    .sm-hero,
    .sm-slides,
    .sm-slide,
    .sm-slide.is-active,
    .sm-slide a.sm-slide-link,
    .sm-slide picture {
        min-height: 460px !important;
        height: 460px !important;
    }

    .sm-slide img,
    .sm-slide .wp-post-image,
    .sm-slide a.sm-slide-link > img,
    .sm-slide picture > img {
        width: 100% !important;
        height: 460px !important;
        min-height: 460px !important;
        max-height: 460px !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    /* Give the slider copy a defined safe area above the navigation controls. */
    .sm-slide-overlay {
        position: absolute !important;
        inset: 0 !important;
        display: flex !important;
        align-items: flex-end !important;
        padding: 24px 20px 82px !important;
        background: linear-gradient(
            0deg,
            rgba(0,0,0,.78) 0%,
            rgba(0,0,0,.48) 45%,
            rgba(0,0,0,.08) 82%
        ) !important;
        overflow: hidden !important;
    }

    .sm-slide-content {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .sm-slide-content h1,
    .sm-slide-content h2 {
        margin: 0 0 10px !important;
        font-size: clamp(1.7rem, 8vw, 2.25rem) !important;
        line-height: 1.05 !important;
    }

    .sm-slide-content p {
        margin: 0 0 12px !important;
        max-width: none !important;
        font-size: clamp(.98rem, 4.2vw, 1.12rem) !important;
        line-height: 1.35 !important;
    }

    .sm-slide-content p:last-child {
        margin-bottom: 0 !important;
    }

    .sm-slider-controls {
        bottom: 12px !important;
        z-index: 10 !important;
    }
}


/* v1.0.27 — larger desktop logo + configurable slider speed */
@media (min-width: 641px) {
    .site-branding {
        min-height: 210px !important;
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    .site-branding .custom-logo,
    .site-branding-logo .custom-logo {
        max-height: 176px !important;
        max-width: min(92vw, 840px) !important;
        width: auto !important;
        height: auto !important;
    }

    .site-branding.has-header-widget {
        min-height: 210px !important;
    }
}


/* v1.0.30 — large, tight desktop branding header */
@media (min-width: 641px) {
    .site-branding,
    .site-branding.has-header-widget {
        min-height: 0 !important;
        height: auto !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .site-branding-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
    }

    .site-branding .custom-logo-link,
    .site-branding-logo .custom-logo-link {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
    }

    .site-branding .custom-logo,
    .site-branding-logo .custom-logo {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-height: 210px !important;
        max-width: min(94vw, 1050px) !important;
        margin: 0 auto !important;
    }

    .site-header {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}


/* v1.0.31 — use exact uploaded Hi Nabor logo artwork in the header */
.site-branding-logo,
.theme-logo-link {
    line-height: 0 !important;
}

.theme-logo-link {
    display: block;
    width: 100%;
    text-align: center;
}

.theme-main-logo {
    display: block;
    width: auto;
    height: auto;
    margin: 0 auto;
}

/* Desktop: make logo span approximately from Locations through Services. */
@media (min-width: 901px) {
    .site-branding,
    .site-branding.has-header-widget {
        min-height: 0 !important;
        height: auto !important;
        padding: 2px 0 !important;
        margin: 0 !important;
    }

    .site-branding-logo {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .theme-main-logo {
        width: min(68vw, 980px) !important;
        max-width: 980px !important;
        max-height: none !important;
    }
}

/* Tablet: still large, but keep it contained. */
@media (min-width: 641px) and (max-width: 900px) {
    .site-branding,
    .site-branding.has-header-widget {
        min-height: 0 !important;
        padding: 4px 0 !important;
    }

    .theme-main-logo {
        width: min(84vw, 760px) !important;
    }
}

/* Mobile: keep the larger treatment but fit comfortably on screen. */
@media (max-width: 640px) {
    .site-branding,
    .site-branding.has-header-widget {
        min-height: 0 !important;
        height: auto !important;
        padding: 8px 0 !important;
    }

    .site-branding-logo {
        width: 100% !important;
    }

    .theme-main-logo {
        width: 92vw !important;
        max-width: 620px !important;
    }
}


/* v1.0.32 — exact desktop logo centering + YouTube slider support */

/* Center the brand against the viewport, not against header widget/grid columns. */
@media (min-width: 901px) {
    .site-branding,
    .site-branding.has-header-widget {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        padding: 2px 0 !important;
    }

    .site-branding-logo {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .theme-logo-link {
        width: auto !important;
        display: inline-block !important;
        margin: 0 auto !important;
    }

    .theme-main-logo {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Header widget, if used, floats to the right without moving the logo off center. */
    .header-signup-area {
        position: absolute !important;
        right: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 2;
    }
}

.sm-slide {
    position: relative;
}

.sm-video-slide {
    position: relative;
    width: 100%;
    aspect-ratio: 2560 / 867;
    overflow: hidden;
    background: #000;
}

.sm-video-slide iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 177.78vh;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.sm-video-click-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.sm-slide-overlay {
    z-index: 3;
}

.sm-slider-controls {
    z-index: 5;
}

@media (max-width: 640px) {
    .sm-video-slide {
        width: 100%;
        height: 460px !important;
        min-height: 460px !important;
        aspect-ratio: auto;
    }

    .sm-video-slide iframe {
        width: 817.78px;
        height: 460px;
        min-width: 817.78px;
        min-height: 460px;
    }
}


/* v1.0.33 — manual YouTube playback + Home icon in primary navigation */
.primary-nav {
    gap: 4px;
}

.primary-home-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 56px;
    flex: 0 0 50px;
    padding: 0 !important;
    color: #fff !important;
    text-decoration: none;
}

.primary-home-link svg {
    width: 22px;
    height: 22px;
    display: block;
}

.primary-home-link:hover,
.primary-home-link:focus {
    background: rgba(255,255,255,.1);
}

/* Allow users to press Play and use YouTube controls. */
.sm-video-slide iframe {
    pointer-events: auto !important;
}

/* A destination click-layer would block the YouTube player, so disable it for video slides. */
.sm-video-click-layer {
    display: none !important;
}

@media (max-width: 900px) {
    .primary-home-link {
        display: flex !important;
        width: 100%;
        height: 52px;
        justify-content: center;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
}


/* v1.0.34 — Home icon is now a real WordPress menu item */
.primary-home-link {
    display: none !important;
}

.primary-nav .menu-item-home-icon > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 50px;
    min-width: 50px;
    height: 56px;
    padding: 0 !important;
    color: #fff !important;
}

.primary-nav .menu-item-home-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Because the Home icon now lives inside .menu-primary-container,
   it automatically hides/shows with the rest of the mobile menu. */
@media (max-width: 900px) {
    .primary-nav .menu-item-home-icon > a {
        width: 100% !important;
        height: 52px;
        justify-content: flex-start !important;
        padding: 14px 18px !important;
    }

    .primary-nav .menu-item-home-icon svg {
        width: 24px;
        height: 24px;
    }
}


/* v1.0.35 — site-wide announcement banner */
.site-announcement-banner {
    width: 100%;
    background: #364469;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.site-announcement-banner > a,
.site-announcement-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 9px 18px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.3;
}

.site-announcement-banner > a:hover,
.site-announcement-banner > a:focus {
    background: rgba(0,0,0,.08);
    color: #fff;
}

.site-announcement-arrow {
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform .15s ease;
}

.site-announcement-banner > a:hover .site-announcement-arrow,
.site-announcement-banner > a:focus .site-announcement-arrow {
    transform: translateX(3px);
}

@media (max-width: 640px) {
    .site-announcement-banner > a,
    .site-announcement-inner {
        min-height: 46px;
        padding: 10px 14px;
        font-size: .9rem;
    }
}


/* v1.0.36 — customizable announcement banner colors */
.site-announcement-banner {
    background: var(--announcement-bg, #364469) !important;
    color: var(--announcement-color, #FFFFFF) !important;
}

.site-announcement-banner > a,
.site-announcement-inner {
    color: var(--announcement-color, #FFFFFF) !important;
}

.site-announcement-banner > a:hover,
.site-announcement-banner > a:focus {
    color: var(--announcement-color, #FFFFFF) !important;
}


/* v1.0.37 — Weekly Ad: 4x2 desktop grid, vertical mobile stack */
.weekly-ad-content {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: start;
}

.weekly-ad-content .weekly-ad-image-link {
    width: 100%;
    height: auto;
}

.weekly-ad-content .weekly-ad-page-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

@media (max-width: 1100px) and (min-width: 641px) {
    .weekly-ad-content {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}

@media (max-width: 640px) {
    .weekly-ad-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .weekly-ad-content .weekly-ad-image-link {
        border-radius: 10px;
    }

    .weekly-ad-content .weekly-ad-page-image {
        width: 100% !important;
        height: auto !important;
    }
}


/* v1.0.38 — force Weekly Ad pages into a true responsive grid */
.weekly-ad-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}

.weekly-ad-pages-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px 18px !important;
    width: 100% !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    align-items: start !important;
}

.weekly-ad-pages-grid .weekly-ad-page {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}

.weekly-ad-pages-grid .weekly-ad-page-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
}

@media (max-width: 900px) {
    .weekly-ad-pages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .weekly-ad-pages-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 12px !important;
    }

    .weekly-ad-pages-grid .weekly-ad-page-image {
        width: 100% !important;
    }
}


/* v1.0.40 — permanent automatic page-number badges */
.weekly-ad-pages-grid .weekly-ad-page {
    position: relative !important;
    overflow: visible !important;
}

.weekly-ad-page-number {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 5 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;
    border: 3px solid #fff !important;
    background: #364469 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.25) !important;
    font-family: inherit !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    pointer-events: none !important;
}

.weekly-ad-page-word {
    display: block !important;
    margin-bottom: 3px !important;
    font-size: 13px !important;
    line-height: 1 !important;
}

.weekly-ad-page-digit {
    display: block !important;
    font-size: 25px !important;
    line-height: .9 !important;
}

@media (max-width: 640px) {
    .weekly-ad-page-number {
        top: 12px !important;
        left: 12px !important;
        width: 66px !important;
        height: 66px !important;
    }
}


/* v1.0.41 — Weekly Ad commercial header */
.weekly-ad-commercial-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(8,13,22,.68), rgba(8,13,22,.72)),
        url("assets/images/weekly-ad-header-bg.jpg") center center / cover no-repeat;
}

.weekly-ad-commercial-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at center, rgba(0,0,0,.04) 0%, rgba(0,0,0,.18) 65%, rgba(0,0,0,.30) 100%);
}

.weekly-ad-commercial-inner {
    position: relative;
    z-index: 1;
    padding-top: 20px;
    padding-bottom: 28px;
}

.weekly-ad-date-banner {
    width: min(100%, 900px);
    margin: 0 auto 8px;
    padding: 8px 16px;
    border-radius: 3px 3px 0 0;
    background: #98241f;
    color: #fff;
    text-align: center;
    font-size: clamp(.8rem, 1.6vw, 1rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .01em;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.weekly-ad-video-shell {
    width: min(100%, 900px);
    margin: 0 auto;
}

.weekly-ad-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.85);
    background: #000;
    box-shadow: 0 10px 34px rgba(0,0,0,.35);
}

.weekly-ad-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.weekly-ad-video-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    min-height: 360px;
    padding: 30px;
    border: 2px solid rgba(255,255,255,.65);
    background: rgba(0,0,0,.46);
    color: #fff;
    text-align: center;
}

.weekly-ad-video-placeholder strong {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.weekly-ad-video-placeholder span {
    max-width: 600px;
    color: rgba(255,255,255,.78);
}

@media (max-width: 640px) {
    .weekly-ad-commercial-inner {
        padding-top: 14px;
        padding-bottom: 18px;
    }

    .weekly-ad-date-banner {
        margin-bottom: 6px;
        padding: 8px 10px;
        border-radius: 0;
        font-size: .78rem;
    }

    .weekly-ad-video-shell,
    .weekly-ad-date-banner {
        width: 100%;
    }

    .weekly-ad-video-frame {
        border-left: 0;
        border-right: 0;
    }

    .weekly-ad-video-placeholder {
        min-height: 230px;
    }
}


/* v1.0.42 — date strip removed; pricing dates are part of the weekly video */
.weekly-ad-date-banner {
    display: none !important;
}


/* v1.0.43 — dedicated Services landing page */
.services-page {
    --services-blue: #364469;
    --services-blue-dark: #273452;
    --services-soft: #f5f7fb;
    text-align: left !important;
}

.services-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 20%, rgba(255,255,255,.10) 0 120px, transparent 121px),
        radial-gradient(circle at 93% 65%, rgba(255,255,255,.06) 0 220px, transparent 221px),
        linear-gradient(135deg, var(--services-blue-dark), var(--services-blue));
    color: #fff;
}

.services-hero-inner {
    padding-top: clamp(68px, 8vw, 110px);
    padding-bottom: clamp(68px, 8vw, 110px);
    text-align: center;
}

.services-eyebrow,
.services-kicker {
    margin: 0 0 10px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.services-eyebrow {
    color: rgba(255,255,255,.74);
}

.services-kicker {
    color: #68799f;
}

.services-hero h1 {
    max-width: 900px;
    margin: 0 auto 18px;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.services-hero-copy {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255,255,255,.9);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.services-section {
    padding: clamp(58px, 7vw, 92px) 0;
}

.services-section-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.services-section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.services-section-heading > p:last-child {
    color: var(--sm-muted);
    margin-bottom: 0;
}

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

.service-card {
    display: block;
    min-height: 100%;
    padding: 30px;
    border: 1px solid #e1e6ef;
    border-radius: 20px;
    background: #fff;
    color: var(--sm-text);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(24,39,75,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover,
.service-card:focus {
    transform: translateY(-3px);
    border-color: #c7d0e1;
    box-shadow: 0 14px 32px rgba(24,39,75,.12);
}

.service-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: var(--services-soft);
    font-size: 2rem;
}

.service-card-content h3 {
    margin: 0 0 10px;
    font-size: 1.55rem;
    line-height: 1.15;
}

.service-card-content p {
    margin: 0 0 20px;
    color: var(--sm-muted);
    line-height: 1.6;
}

.service-card-link {
    display: inline-block;
    color: var(--services-blue);
    font-weight: 900;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .services-hero-inner {
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .services-section {
        padding: 50px 0;
    }

    .service-card {
        padding: 24px;
    }
}


/* v1.0.44 — Meat & Seafood department posts page */
.department-posts-page {
    --dept-blue: #364469;
    --dept-blue-dark: #273452;
    --dept-soft: #f5f7fb;
    text-align: left !important;
}

.department-posts-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.09) 0 120px, transparent 121px),
        radial-gradient(circle at 92% 64%, rgba(255,255,255,.05) 0 220px, transparent 221px),
        linear-gradient(135deg, var(--dept-blue-dark), var(--dept-blue));
    color: #fff;
}

.department-posts-hero-inner {
    padding-top: clamp(68px, 8vw, 108px);
    padding-bottom: clamp(68px, 8vw, 108px);
    text-align: center;
}

.department-posts-eyebrow,
.department-posts-kicker {
    margin: 0 0 10px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.department-posts-eyebrow {
    color: rgba(255,255,255,.75);
}

.department-posts-kicker {
    color: #68799f;
}

.department-posts-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.department-posts-hero-copy {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255,255,255,.9);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.department-posts-section {
    padding: clamp(56px, 7vw, 90px) 0;
}

.department-posts-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.department-posts-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.department-posts-heading > p:last-child {
    color: var(--sm-muted);
    margin-bottom: 0;
}

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

.department-post-card {
    overflow: hidden;
    border: 1px solid #e1e6ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24,39,75,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.department-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(24,39,75,.12);
}

.department-post-image-link {
    display: block;
}

.department-post-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eef1f5;
}

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

.department-post-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: #7b8496;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
}

.department-post-content {
    padding: 24px;
}

.department-post-date {
    margin: 0 0 8px;
    color: #6d7890;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.department-post-content h3 {
    margin: 0 0 12px;
    font-size: 1.45rem;
    line-height: 1.2;
}

.department-post-content h3 a {
    color: var(--sm-text);
    text-decoration: none;
}

.department-post-content h3 a:hover,
.department-post-content h3 a:focus {
    color: var(--dept-blue);
}

.department-post-excerpt {
    margin: 0 0 20px;
    color: var(--sm-muted);
    line-height: 1.6;
}

.department-post-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--dept-blue);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
}

.department-posts-empty {
    max-width: 700px;
    margin: 0 auto;
    padding: 34px;
    border: 1px solid #e1e6ef;
    border-radius: 18px;
    background: var(--dept-soft);
    text-align: center;
}

.department-posts-empty h3 {
    margin-top: 0;
}

@media (max-width: 1000px) {
    .department-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .department-posts-hero-inner {
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .department-posts-section {
        padding: 50px 0;
    }

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

    .department-post-content {
        padding: 20px;
    }
}


/* v1.0.46 — Floral Custom Arrangements image slider */
.floral-feature-slider {
    position: relative;
    min-height: 360px;
    aspect-ratio: 6 / 5;
    overflow: hidden;
    background: #edf1ef;
}

.floral-feature-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease;
}

.floral-feature-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.floral-feature-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floral-feature-slide-placeholder {
    display: grid;
    place-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #e7f0ea, #f7e9ed);
    color: #486256;
    text-align: center;
}

.floral-feature-slide-placeholder > div {
    display: grid;
    gap: 8px;
}

.floral-feature-slide-placeholder strong {
    font-size: 1.35rem;
}

.floral-feature-slide-placeholder span {
    color: #6d7e77;
}

.floral-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.floral-slider-prev {
    left: 14px;
}

.floral-slider-next {
    right: 14px;
}

.floral-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(0,0,0,.45);
}

.floral-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer;
}

.floral-slider-dot.is-active {
    background: #fff;
}

@media (max-width: 900px) {
    .floral-feature-slider {
        min-height: 0;
        aspect-ratio: 6 / 5;
    }
}


/* v1.0.48 — compact department heroes */
.meat-seafood-page .department-posts-hero-inner {
    padding-top: clamp(34px, 4vw, 54px);
    padding-bottom: clamp(34px, 4vw, 54px);
}

/* Floral page hero: approximately half the previous vertical height */
.floral-page .floral-hero-inner,
.floral-page .department-hero-inner,
body.page-template-page-floral .floral-hero-inner,
body.page-template-page-floral .department-hero-inner {
    padding-top: clamp(34px, 4vw, 54px);
    padding-bottom: clamp(34px, 4vw, 54px);
}

@media (max-width: 640px) {
    .meat-seafood-page .department-posts-hero-inner,
    .floral-page .floral-hero-inner,
    .floral-page .department-hero-inner,
    body.page-template-page-floral .floral-hero-inner,
    body.page-template-page-floral .department-hero-inner {
        padding-top: 27px;
        padding-bottom: 29px;
    }
}


/* v1.0.49 — compact Services hero + Floral top spacing */

/* Services page: reduce the main page hero/header to about half height */
body.page-template-page-services .services-hero,
body.page-template-page-services .department-hero {
    min-height: 0 !important;
}

body.page-template-page-services .services-hero-inner,
body.page-template-page-services .department-hero-inner {
    padding-top: clamp(34px, 4vw, 54px) !important;
    padding-bottom: clamp(34px, 4vw, 54px) !important;
}

/* Floral: add breathing room between the hero/header and first content card */
body.page-template-page-floral .floral-main,
body.page-template-page-floral .floral-content,
.floral-page .floral-main,
.floral-page .floral-content {
    padding-top: 28px;
}

/* Fallback for the first floral section if there is no content wrapper */
body.page-template-page-floral main > section:first-child,
.floral-page main > section:first-child {
    margin-top: 28px;
}

@media (max-width: 640px) {
    body.page-template-page-services .services-hero-inner,
    body.page-template-page-services .department-hero-inner {
        padding-top: 27px !important;
        padding-bottom: 29px !important;
    }

    body.page-template-page-floral .floral-main,
    body.page-template-page-floral .floral-content {
        padding-top: 20px;
    }

    body.page-template-page-floral main > section:first-child,
    .floral-page main > section:first-child {
        margin-top: 20px;
    }
}


/* v1.0.50 — corrected selectors */

/* SERVICES: page markup is <main class="services-page">, so target it directly.
   This makes the blue hero roughly half its former height. */
.services-page .services-hero {
    min-height: 0 !important;
}

.services-page .services-hero-inner {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

/* Keep the large title, but tighten its vertical footprint. */
.services-page .services-hero h1 {
    margin-bottom: 10px !important;
}

.services-page .services-eyebrow {
    margin-bottom: 7px !important;
}

/* FLORAL: the first content section is .floral-feature-section.
   Add visible white space between the green hero and the card. */
.floral-page .floral-feature-section {
    padding-top: 28px !important;
}

@media (max-width: 640px) {
    .services-page .services-hero-inner {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

    .floral-page .floral-feature-section {
        padding-top: 20px !important;
    }
}


/* v1.0.51 — Customizer-managed Weekly Ad pages */
.weekly-ad-pages-grid:empty::before {
    content: "Add Weekly Ad Page images under Appearance → Customize → Weekly Ad Pages.";
    display: block;
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed #c9d1df;
    border-radius: 14px;
    background: #f7f8fb;
    color: #5f6b82;
    text-align: center;
    font-weight: 700;
}


/* v1.0.52 — Weekly Ad header actions */
.weekly-ad-actions {
    flex-wrap: wrap;
}

.weekly-ad-old-version {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .weekly-ad-actions {
        justify-content: center;
    }
}


/* v1.0.53 — old Weekly Ad help button below ad pages */
.weekly-ad-old-version-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 20px 32px;
}

.weekly-ad-old-version-wrap .weekly-ad-old-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* v1.0.54 — position old-ad help link in the gap above signup */
.weekly-ad-old-version-between {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    width: 100%;
    padding: 12px 20px 18px !important;
    margin: 0 auto !important;
}

.weekly-ad-old-version-between .weekly-ad-old-version {
    display: inline-flex;
    width: auto;
    margin: 0 auto;
}


/* v1.0.55 — Careers hero, dynamic ad spacing, blog date placement */

/* Careers page hero now matches the compact height used on other inner pages. */
.careers-page .careers-hero-inner {
    padding-top: clamp(34px, 4vw, 56px) !important;
    padding-bottom: clamp(34px, 4vw, 56px) !important;
}

/* Put the cache/old-ad help button visually halfway between the ad grid and signup. */
.weekly-ad-page .weekly-ad-section {
    padding-bottom: 20px !important;
}

.weekly-ad-old-version-between {
    padding: 0 20px 20px !important;
    margin: 0 auto !important;
}

.weekly-ad-page .weekly-ad-signup-section {
    padding-top: 0 !important;
}

/* Blog date now lives at the end of the full post. */
.single-post-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e3e7ee;
}

.single-post-footer .single-post-date {
    margin: 0;
    color: var(--sm-muted);
    font-size: .88rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .careers-page .careers-hero-inner {
        padding-top: 27px !important;
        padding-bottom: 29px !important;
    }

    .weekly-ad-page .weekly-ad-section {
        padding-bottom: 16px !important;
    }

    .weekly-ad-old-version-between {
        padding: 0 14px 16px !important;
    }
}


/* v1.0.57 — equal-height Weekly Ad pages on desktop */
@media (min-width: 641px) {
    .weekly-ad-pages-grid .weekly-ad-page {
        aspect-ratio: 3 / 5 !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #fff;
        overflow: hidden !important;
    }

    .weekly-ad-pages-grid .weekly-ad-page-image {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

/* Keep mobile pages natural-height, since that layout is already working well. */
@media (max-width: 640px) {
    .weekly-ad-pages-grid .weekly-ad-page {
        aspect-ratio: auto !important;
        height: auto !important;
    }

    .weekly-ad-pages-grid .weekly-ad-page-image {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}


/* v1.0.60 — dedicated Deli & Bakery page */
.deli-bakery-page {
    --deli-blue: #364469;
    --deli-blue-dark: #273452;
    --deli-wood: #6f472c;
    --deli-cream: #f7f4ee;
    text-align: left !important;
}

.deli-bakery-hero {
    background:
        radial-gradient(circle at 88% 20%, rgba(255,255,255,.08) 0 120px, transparent 121px),
        linear-gradient(135deg, var(--deli-blue-dark), var(--deli-blue));
    color: #fff;
}

.deli-bakery-hero-inner {
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
}

.deli-bakery-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.deli-bakery-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255,255,255,.88);
    font-size: 1.08rem;
}

.deli-menu-board-section {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 6vw, 72px) 0 clamp(52px, 7vw, 84px);
    background:
        linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.92)),
        repeating-linear-gradient(
            0deg,
            #ece7de 0,
            #ece7de 2px,
            #f7f4ee 2px,
            #f7f4ee 38px
        );
}

.deli-menu-board-heading {
    margin-bottom: 28px;
    text-align: center;
}

.deli-menu-board-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.deli-menu-board-heading p {
    margin: 0;
    color: var(--sm-muted);
}

.deli-tv-wall {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 44px);
    align-items: center;
    padding: clamp(26px, 4vw, 46px);
    border-radius: 24px;
    overflow: hidden;
    background: #202020;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 14px 34px rgba(40,31,25,.18);
}

.deli-tv-wall::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -18px;
    background-image: url("assets/images/deli-bakery-background.jpg");
    background-size: cover;
    background-position: center 52%;
    filter: blur(5px);
    transform: scale(1.04);
}

.deli-tv-wall::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(13, 18, 24, .48);
    pointer-events: none;
}

.deli-tv {
    position: relative;
    padding-bottom: 18px;
}

.deli-tv-screen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    padding: 10px;
    border: 5px solid #161616;
    border-radius: 7px;
    background: #0b0b0b;
    box-shadow:
        0 10px 22px rgba(0,0,0,.35),
        inset 0 0 0 1px rgba(255,255,255,.08);
}

.deli-tv-screen::after {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
    box-shadow: inset 0 0 22px rgba(0,0,0,.15);
}

.deli-tv-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.deli-tv-stand {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 28%;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 0 0 8px 8px;
    background: #151515;
    box-shadow: 0 5px 10px rgba(0,0,0,.28);
}

.deli-bakery-posts {
    padding-top: clamp(52px, 6vw, 76px);
    background: #fff;
}

/* Reuse the Meat & Seafood blog-card rules, but give Deli & Bakery its own accent. */
.deli-bakery-page .department-post-button {
    background: var(--deli-blue);
}

@media (max-width: 800px) {
    .deli-tv-wall {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .deli-bakery-hero-inner {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .deli-menu-board-section {
        padding-top: 36px;
        padding-bottom: 44px;
    }

    .deli-tv-wall {
        margin-left: -4px;
        margin-right: -4px;
        padding: 20px 14px 24px;
        border-radius: 16px;
    }

    .deli-tv-screen {
        padding: 6px;
        border-width: 4px;
    }
}


/* v1.0.62 — tighter homepage featured-to-blog spacing */
.home .featured-section,
.home .home-featured,
.home .featured-items-section {
    margin-bottom: clamp(22px, 3vw, 40px) !important;
    padding-bottom: clamp(22px, 3vw, 40px) !important;
}

.home .blog-section,
.home .home-blog,
.home .latest-posts-section {
    margin-top: 0 !important;
    padding-top: clamp(22px, 3vw, 40px) !important;
}


/* v1.0.68 — modern email signup Thank You page */
.thank-you-page {
    --ty-blue: #364469;
    --ty-blue-dark: #273452;
    --ty-soft: #f5f7fb;
    text-align: left !important;
}

.thank-you-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 87% 18%, rgba(255,255,255,.09) 0 125px, transparent 126px),
        radial-gradient(circle at 98% 78%, rgba(255,255,255,.05) 0 220px, transparent 221px),
        linear-gradient(135deg, var(--ty-blue-dark), var(--ty-blue));
    color: #fff;
}

.thank-you-hero-inner {
    max-width: 840px;
    padding-top: clamp(54px, 7vw, 86px);
    padding-bottom: clamp(54px, 7vw, 86px);
    text-align: center;
}

.thank-you-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #fff;
    color: var(--ty-blue);
    box-shadow: 0 10px 26px rgba(0,0,0,.16);
}

.thank-you-check svg { width: 46px; height: 46px; }

.thank-you-kicker,
.thank-you-section-kicker {
    margin: 0 0 8px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.thank-you-kicker { color: rgba(255,255,255,.7); }
.thank-you-section-kicker { color: #68799f; }

.thank-you-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(3rem, 6vw, 5.3rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.thank-you-lead {
    max-width: 700px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,.9);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
}

.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.thank-you-primary,
.thank-you-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
}

.thank-you-primary {
    background: #fff;
    color: var(--ty-blue-dark);
}

.thank-you-secondary {
    border: 1px solid rgba(255,255,255,.32);
    background: rgba(255,255,255,.08);
    color: #fff;
}

.thank-you-content {
    padding: clamp(48px, 7vw, 84px) 0;
}

.thank-you-message-card {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 36px;
    align-items: center;
    padding: clamp(30px, 5vw, 52px);
    border: 1px solid #e1e6ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24,39,75,.06);
}

.thank-you-message-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.thank-you-message-copy p {
    max-width: 720px;
    color: var(--sm-muted);
}

.thank-you-signoff {
    margin-bottom: 0;
    color: var(--sm-text) !important;
}

.thank-you-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    min-height: 250px;
    padding: 30px;
    border-radius: 50%;
    background: var(--ty-soft);
    color: var(--ty-blue);
    text-align: center;
}

.thank-you-badge span {
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.thank-you-badge strong {
    margin: 8px 0;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    line-height: .92;
}

.thank-you-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.thank-you-next-card {
    display: flex;
    gap: 18px;
    min-height: 100%;
    padding: 24px;
    border: 1px solid #e1e6ef;
    border-radius: 18px;
    background: var(--ty-soft);
    color: var(--sm-text);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.thank-you-next-card:hover,
.thank-you-next-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(24,39,75,.10);
}

.thank-you-next-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--ty-blue);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
}

.thank-you-next-card h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.thank-you-next-card p {
    margin: 0 0 8px;
    color: var(--sm-muted);
    line-height: 1.5;
}

.thank-you-next-card span {
    color: var(--ty-blue);
    font-weight: 900;
}

@media (max-width: 900px) {
    .thank-you-message-card { grid-template-columns: 1fr; }
    .thank-you-badge {
        width: min(280px, 80vw);
        min-height: 0;
        margin: 0 auto;
    }
    .thank-you-next-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .thank-you-hero-inner {
        padding-top: 44px;
        padding-bottom: 48px;
    }
    .thank-you-check {
        width: 64px;
        height: 64px;
    }
    .thank-you-check svg {
        width: 38px;
        height: 38px;
    }
    .thank-you-actions { display: grid; }
    .thank-you-content {
        padding-top: 36px;
        padding-bottom: 50px;
    }
    .thank-you-message-card { padding: 26px 22px; }
}


/* v1.0.69 — Thank You page aligned with other modern inner pages */
.thank-you-page {
    text-align: left !important;
}

.thank-you-hero {
    background:
        radial-gradient(circle at 88% 25%, rgba(255,255,255,.08) 0 120px, transparent 121px),
        linear-gradient(135deg, #273452, #364469);
    color: #fff;
}

.thank-you-hero-inner {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    text-align: center;
}

.thank-you-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(2.7rem, 5vw, 4.6rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.thank-you-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,.88);
    font-size: 1.08rem;
}

.thank-you-content {
    padding: clamp(44px, 6vw, 72px) 0;
}

.thank-you-card {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid #e1e6ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24,39,75,.06);
    text-align: center;
}

.thank-you-card h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.thank-you-card p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: var(--sm-muted);
    line-height: 1.65;
}

.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.thank-you-primary,
.thank-you-secondary-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
}

.thank-you-primary {
    background: #364469;
    color: #fff !important;
}

.thank-you-secondary-light {
    border: 1px solid #d7deea;
    background: #fff;
    color: #364469 !important;
}

.thank-you-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 28px auto 0;
}

.thank-you-next-card {
    display: block;
    padding: 24px;
    border: 1px solid #e1e6ef;
    border-radius: 18px;
    background: #f7f8fb;
    color: var(--sm-text);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.thank-you-next-card:hover,
.thank-you-next-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(24,39,75,.10);
}

.thank-you-next-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.thank-you-next-card p {
    margin: 0 0 10px;
    color: var(--sm-muted);
    line-height: 1.5;
}

.thank-you-next-card span {
    color: #364469;
    font-weight: 900;
}

@media (max-width: 900px) {
    .thank-you-next-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .thank-you-hero-inner {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .thank-you-content {
        padding-top: 34px;
        padding-bottom: 48px;
    }

    .thank-you-card {
        padding: 24px 20px;
    }

    .thank-you-actions {
        display: grid;
    }
}


/* v1.0.70 — Thank You action cards styled like Careers value cards */
.thank-you-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 32px auto 0;
}

.thank-you-next-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 215px;
    padding: 28px 30px;
    border: 1px solid #dce3ee;
    border-radius: 18px;
    background: #fff;
    color: var(--sm-text);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(24,39,75,.035);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.thank-you-next-card::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: #eef0f4;
    color: #364469;
    font-size: 1rem;
    font-weight: 900;
}

.thank-you-next-card:nth-child(1)::before {
    content: "$";
}

.thank-you-next-card:nth-child(2)::before {
    content: "HN";
}

.thank-you-next-card:nth-child(3)::before {
    content: "⌂";
    font-size: 1.3rem;
}

.thank-you-next-card:hover,
.thank-you-next-card:focus {
    transform: translateY(-3px);
    border-color: #cbd4e3;
    box-shadow: 0 12px 28px rgba(24,39,75,.09);
}

.thank-you-next-card h3 {
    margin: 0 0 10px;
    font-size: 1.22rem;
    line-height: 1.25;
}

.thank-you-next-card p {
    max-width: 320px;
    margin: 0 auto 12px;
    color: var(--sm-muted);
    line-height: 1.6;
}

.thank-you-next-card span {
    margin-top: auto;
    color: #364469;
    font-weight: 900;
}

@media (max-width: 900px) {
    .thank-you-next-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .thank-you-next-card {
        min-height: 0;
    }
}


/* v1.0.84 — use the exact Careers card treatment on Thank You options */
.thank-you-options-grid {
    margin-top: 30px;
}

.thank-you-option-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none !important;
    color: var(--sm-text) !important;
    cursor: pointer;
}

.thank-you-option-card .careers-icon {
    margin-bottom: 16px;
}

.thank-you-option-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.thank-you-option-card p {
    margin-bottom: 12px;
    color: var(--sm-muted);
}

.thank-you-option-link {
    margin-top: auto;
    color: #364469;
    font-weight: 900;
}

.thank-you-option-card:hover,
.thank-you-option-card:focus {
    text-decoration: none !important;
}


/* v1.0.84 — Thank You page footer spacing */
.thank-you-options-grid {
    margin-bottom: 64px !important;
}

@media (max-width: 767px) {
    .thank-you-options-grid {
        margin-bottom: 42px !important;
    }
}


/* v1.0.84 — visible breathing room between Thank You cards and footer */
body.page-template-page-thank-you .site-main,
body.page-template-page-thank-you main,
body.page-id-0 .thank-you-page {
    padding-bottom: 72px !important;
}

/* Keep the space attached directly to the final card section as well. */
.thank-you-page .careers-values-grid,
.thank-you-page .thank-you-options-grid {
    margin-bottom: 72px !important;
}

@media (max-width: 767px) {
    body.page-template-page-thank-you .site-main,
    body.page-template-page-thank-you main,
    body.page-id-0 .thank-you-page {
        padding-bottom: 48px !important;
    }

    .thank-you-page .careers-values-grid,
    .thank-you-page .thank-you-options-grid {
        margin-bottom: 48px !important;
    }
}


/* v1.0.84 — Around the Naborhood pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin: 34px auto 12px;
}

.blog-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #d8dfeb;
    border-radius: 999px;
    background: #fff;
    color: #364469;
    text-decoration: none;
    font-weight: 800;
}

.blog-pagination .page-numbers.current {
    border-color: #364469;
    background: #364469;
    color: #fff;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers:focus {
    border-color: #364469;
}


/* v1.0.84 — reliable Around the Naborhood pagination */
.blog-pagination {
    clear: both;
    display: flex !important;
    justify-content: center;
    width: 100%;
    margin: 36px auto 58px !important;
    padding: 0 20px;
}

.blog-pagination .nav-links {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid #d5ddea;
    border-radius: 999px;
    background: #fff;
    color: #364469;
    text-decoration: none;
    font-weight: 800;
}

.blog-pagination .page-numbers.current {
    border-color: #364469;
    background: #364469;
    color: #fff;
}

.blog-pagination .prev,
.blog-pagination .next {
    padding-left: 18px;
    padding-right: 18px;
}


/* v1.0.84 — optional image mode for Announcement Banner */
.site-announcement-banner.has-image {
    background: var(--announcement-bg, #364469) !important;
    overflow: hidden;
}

.site-announcement-image-link,
.site-announcement-image-wrap {
    display: block;
    width: 100%;
    line-height: 0;
}

.site-announcement-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
    margin: 0 auto;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 640px) {
    .site-announcement-image {
        min-height: 86px;
        max-height: 120px;
        object-fit: cover;
    }
}


/* v1.0.84 — optional live countdown overlays for Featured Sections */
.sm-feature-card.has-countdown {
    position: relative;
}

.sm-feature-card.has-countdown .sm-feature-image-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.sm-feature-countdown-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 34%,
        rgba(0,0,0,.16) 52%,
        rgba(0,0,0,.76) 100%
    );
}

.sm-feature-countdown-inner {
    width: 100%;
    max-width: 92%;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(18,24,38,.82);
    color: #fff;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.22);
    backdrop-filter: blur(3px);
}

.sm-feature-countdown-text {
    margin-bottom: 4px;
    font-size: clamp(.82rem, 1.25vw, 1rem);
    font-weight: 800;
    line-height: 1.25;
}

.sm-feature-countdown-value {
    font-size: clamp(1.55rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.025em;
}

.sm-feature-countdown-value.is-live {
    font-size: clamp(1.35rem, 2.6vw, 2.15rem);
}

@media (max-width: 640px) {
    .sm-feature-countdown-overlay {
        padding: 12px;
    }

    .sm-feature-countdown-inner {
        max-width: 100%;
        padding: 11px 12px;
        border-radius: 10px;
    }
}


/* v1.0.84 — countdown overlay stacking fix */
.sm-feature-card.has-countdown .sm-feature-image-link > img {
    position: relative;
    z-index: 1;
}

.sm-feature-card.has-countdown .sm-feature-countdown-overlay {
    z-index: 10 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sm-feature-card.has-countdown .sm-feature-countdown-inner,
.sm-feature-card.has-countdown .sm-feature-countdown-text,
.sm-feature-card.has-countdown .sm-feature-countdown-value {
    position: relative;
    z-index: 11;
    visibility: visible !important;
    opacity: 1 !important;
}


/* v1.0.84 — Featured countdown fills bottom third of image */
.sm-feature-card.has-countdown .sm-feature-countdown-overlay {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 33.333% !important;
    min-height: 0 !important;
    border-radius: 0 0 18px 18px !important;
    padding: 10px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.sm-feature-card.has-countdown .sm-feature-countdown-inner {
    width: 100%;
    text-align: center;
}

.sm-feature-card.has-countdown .sm-feature-countdown-text {
    margin: 0 0 4px;
}

.sm-feature-card.has-countdown .sm-feature-countdown-value {
    margin: 0;
}


/* v1.0.84 — correctly anchor countdown to bottom third of Featured image */
.sm-feature-card.has-countdown .sm-feature-image-link {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 18px !important;
}

.sm-feature-card.has-countdown .sm-feature-countdown-overlay {
    position: absolute !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 33.333% !important;
    transform: none !important;
    margin: 0 !important;
    padding: 10px 18px !important;
    border-radius: 0 0 18px 18px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sm-feature-card.has-countdown .sm-feature-image-link > img {
    display: block !important;
    width: 100% !important;
}


/* v1.0.84 — full-width Featured countdown band */
.sm-feature-card.has-countdown .sm-feature-image-link {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 18px !important;
}

.sm-feature-card.has-countdown .sm-feature-countdown-overlay {
    position: absolute !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 33.333% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    border-radius: 0 0 18px 18px !important;
    background: rgba(17, 24, 39, .90) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.sm-feature-card.has-countdown .sm-feature-countdown-inner {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 10px 18px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.sm-feature-card.has-countdown .sm-feature-countdown-text {
    margin: 0 0 6px !important;
    max-width: 95%;
    color: #fff !important;
    font-size: clamp(.82rem, 1.25vw, 1rem) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.sm-feature-card.has-countdown .sm-feature-countdown-value {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
    font-weight: 900 !important;
    line-height: .95 !important;
    letter-spacing: -.03em !important;
}

@media (max-width: 640px) {
    .sm-feature-card.has-countdown .sm-feature-countdown-inner {
        padding: 8px 10px !important;
    }

    .sm-feature-card.has-countdown .sm-feature-countdown-text {
        font-size: .78rem !important;
        margin-bottom: 4px !important;
    }

    .sm-feature-card.has-countdown .sm-feature-countdown-value {
        font-size: clamp(1.7rem, 8vw, 2.4rem) !important;
    }
}
