/* Scoped to the dynamic native location block. */
.sks-multi { min-width:0; width:100%; }
.sks-multi [hidden] { display:none!important; }
.sks-multi-nav { display:flex; flex-wrap:wrap; gap:.55rem; margin:0 0 1.3rem; }
.sks-multi-tab { font:inherit; font-size:.9rem; font-weight:600; cursor:pointer; border:1px solid #157b3b; color:#155b31; background:#fff; border-radius:999px; padding:.55rem 1rem; text-align:left; }
.sks-multi-tab[aria-pressed="true"] { color:#fff; background:#157b3b; }
.sks-multi-tab:focus-visible { outline:2px solid #157b3b; outline-offset:3px; }
.sks-multi-panel { min-width:0; }
.sks-multi-panel + .sks-multi-panel { margin-top:1.5rem; }
.sks-multi.is-enhanced .sks-multi-panel { margin-top:0; }
.sks-multi-branch { display:grid; grid-template-columns:minmax(0,1fr); gap:1.5rem; align-items:center; }
.sks-multi-photo { margin:0; }
.sks-multi-photo img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:var(--sks-radius,16px); }
.sks-multi-map { min-width:0; }
.sks-home-location.sks-multi-branch-selected { grid-template-columns:minmax(0,1fr); }
.sks-home-location.sks-multi-branch-selected > .sks-home-location__img { display:none!important; }
@media(min-width: 900px) {
  .sks-home-location.sks-multi-branch-selected .sks-multi-branch:has(>.sks-multi-photo) { grid-template-columns:minmax(0,1fr) minmax(0,2.4fr); gap:var(--sks-s6,2rem); }
}
@media(max-width: 600px) { .sks-multi-nav { gap:.4rem; } .sks-multi-tab { font-size:.85rem; padding:.5rem .75rem; } .sks-multi-branch .sks-location { grid-template-columns:1fr; } }

/* V1.1: full-width centred section heading and branch selector. */
.sks-multi-nav {
    display:flex; flex-direction:column; align-items:center; text-align:center;
    gap:0; margin:0 0 1.75rem; padding:0 0 1.5rem;
    border-bottom:1px solid var(--sks-line,#e0e7e2); min-width:0;
}
.sks-multi-title {
    font-family:var(--sks-font-body,inherit); font-size:clamp(1.5rem,2.2vw,2rem);
    line-height:1.25; font-weight:700; color:var(--sks-forest,#123c28); margin:0;
}
.sks-multi-subtitle { margin:.35rem 0 1rem; color:var(--sks-muted,#666); font-size:.95rem; }
.sks-multi-tabs { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:.55rem; max-width:100%; }
.sks-multi-tab {
    display:inline-flex; align-items:center; justify-content:center; gap:.35rem;
    min-height:48px; padding:.65rem 1.05rem; border:1px solid transparent;
    background:#edf3ef; color:#123c28; font-weight:600; text-align:center;
    max-width:100%; white-space:normal; overflow-wrap:anywhere;
}
.sks-multi-tab .sks-icon { flex:none; width:16px; height:16px; color:#157b3b; }
.sks-multi-tab[aria-pressed="true"] { background:#147b38; color:#fff; }
.sks-multi-tab[aria-pressed="true"] .sks-icon { color:#fff; }
.sks-multi-tab:hover:not([aria-pressed="true"]) { background:#e0eee4; }
/* The theme contributes the main photograph as a sibling of the block.
   Promote enhanced block children to the existing grid without moving DOM or changing JS. */
@supports selector(:has(*)) {
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-multi.is-enhanced { display:contents; }
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-multi > .sks-multi-nav {
        grid-column:1 / -1; grid-row:1; margin:0; width:100%; box-sizing:border-box;
    }
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-home-location__img { grid-row:2; grid-column:1; }
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-multi > [data-sks-panel="main"] {
        grid-row:2; grid-column:2; margin:0; width:100%; box-sizing:border-box;
    }
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-multi > [data-sks-panel="branch"] {
        grid-row:2; grid-column:1 / -1; margin:0; width:100%; box-sizing:border-box;
    }
    @media(max-width:1080px) {
        .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-multi > [data-sks-panel="main"] { grid-column:1 / -1; }
    }
}
@media(max-width:600px) {
    .sks-multi-nav { padding-bottom:1rem; }
    .sks-multi-tabs { gap:.4rem; }
    .sks-multi-tab { min-height:44px; font-size:.85rem; padding:.5rem .8rem; }
}

/* Location landing page: scoped to shortcode, no change to Order or catalog. */
.sks-branch-page { width:min(100%,1080px); margin:1.5rem auto 3rem; color:var(--sks-forest,#123c28); }
.sks-branch-page__hero { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap:clamp(1.25rem,4vw,3rem); align-items:center; background:#f4f9f5; border:1px solid #dfe9e2; border-radius:20px; padding:clamp(1rem,3vw,2rem); }
.sks-branch-page__hero:not(:has(.sks-branch-page__photo)) { grid-template-columns:1fr; }
.sks-branch-page__photo img { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:14px; display:block; }
.sks-branch-page__intro { min-width:0; }
.sks-branch-page__eyebrow { color:#17743b; font-weight:700; font-size:.85rem; letter-spacing:.04em; text-transform:uppercase; margin:0 0 .6rem; }
.sks-branch-page__intro h2 { font-size:clamp(1.6rem,3vw,2.35rem); margin:0 0 .9rem; line-height:1.2; }
.sks-branch-page__intro address { font-style:normal; line-height:1.8; margin-top:1rem; }
.sks-branch-page__description { line-height:1.75; }
.sks-branch-page__actions { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.4rem; }
.sks-branch-page__button { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:.7rem 1.05rem; background:#147b38; border:1px solid #147b38; border-radius:999px; color:#fff!important; text-decoration:none!important; font-weight:700; font-size:.9rem; }
.sks-branch-page__button--outline { color:#147b38!important; background:transparent; }
.sks-branch-page__button:focus-visible, .sks-branch-detail-link:focus-visible { outline:3px solid #e2a429; outline-offset:3px; }
.sks-branch-page__details { margin-top:1.25rem; padding:clamp(1rem,3vw,2rem); border:1px solid #dfe9e2; border-radius:16px; }
.sks-branch-page__details h3 { margin-top:0; }
.sks-branch-page__details li { margin:.35rem 0; }
.sks-branch-detail-link { display:inline-flex; margin-left:.6rem; }
@media(max-width:760px) { .sks-branch-page__hero { grid-template-columns:1fr; } .sks-branch-detail-link { margin:.6rem 0 0; } }

/* QA UI pass: shared, balanced cards for native multi-location block.
   All selectors are scoped to this block; shortcode landing pages stay unchanged. */
.sks-multi .sks-multi-panel { min-width:0; }
.sks-multi .sks-location {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:clamp(1rem,2.5vw,1.75rem); align-items:stretch;
}
.sks-multi .sks-location__info {
    min-width:0; box-sizing:border-box; padding:clamp(1rem,2.5vw,1.75rem);
    border:1px solid #dfe9e2; border-radius:18px;
    background:#f7faf8; display:flex; flex-direction:column; align-items:flex-start;
    gap:.8rem;
}
.sks-multi .sks-location__info > * { max-width:100%; }
.sks-multi .sks-location__info .sks-sec-title {
    margin:0; font-size:clamp(1.3rem,2.2vw,1.75rem); line-height:1.28;
    overflow-wrap:anywhere;
}
.sks-multi .sks-location__info address {
    margin:0; font-size:1rem; line-height:1.65; overflow-wrap:anywhere;
}
.sks-multi .sks-location__info p { margin:0; line-height:1.7; }
.sks-multi .sks-location__info .sks-btn {
    margin:0; min-height:44px; display:inline-flex; align-items:center;
    justify-content:center; max-width:100%; box-sizing:border-box;
}
.sks-multi .sks-location__info .sks-branch-detail-link { margin-left:0; }
.sks-multi .sks-local-native-details { width:100%; box-sizing:border-box; }
.sks-multi .sks-location__map { min-width:0; overflow:hidden; border-radius:18px; }
.sks-multi .sks-location__map iframe {
    display:block; width:100%; height:100%; min-height:300px;
    border:0; border-radius:18px; box-shadow:none;
}
.sks-multi .sks-multi-map:has(iframe) > a { display:none; }
.sks-multi .sks-multi-photo {
    margin:0 0 .25rem; width:100%; max-width:260px;
}
.sks-multi .sks-multi-photo img,
.sks-multi .sks-multi-photo .sks-multi-photo__image {
    display:block; width:100%; height:auto; aspect-ratio:16/10;
    object-fit:cover; border-radius:12px;
}
/* Branch now uses the same two-column information/map geometry as the main office. */
.sks-multi .sks-multi-branch { display:block; }
/* Preserve the theme's existing main image on the homepage, but don't let it
   force branch cards into a narrower layout. */
.sks-home-location.sks-multi-branch-selected > .sks-home-location__img { display:none!important; }
@supports selector(:has(*)) {
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-multi > [data-sks-panel="branch"] {
        grid-column:1/-1;
    }
}
@media(max-width:900px) {
    .sks-multi .sks-location { grid-template-columns:minmax(0,1fr); }
    .sks-multi .sks-location__map iframe { height:300px; min-height:0; }
}
@media(max-width:600px) {
    .sks-multi .sks-location__info { padding:1rem; border-radius:14px; }
    .sks-multi .sks-location__map { border-radius:14px; }
    .sks-multi .sks-location__map iframe { height:255px; border-radius:14px; }
    .sks-multi .sks-location__info .sks-btn,
    .sks-multi .sks-location__info .sks-branch-detail-link { width:100%; }
}

/* QA visual refinement: equal photo | information | map columns (desktop).
 * Applies only to multi-location block. No shortcode, schema or order changes. */
@media (min-width:1100px) {
  /* About Us, and normal block placement: three columns when photo exists. */
  .sks-multi .sks-location:has(> .sks-multi-photo) {
    grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1.12fr);
    align-items:stretch;
    gap:clamp(1rem,2vw,1.5rem);
  }
  .sks-multi .sks-location:not(:has(> .sks-multi-photo)) {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  .sks-multi .sks-location > .sks-multi-photo {
    align-self:center;
    width:100%;
    max-width:none;
    margin:0;
  }
  .sks-multi .sks-location > .sks-multi-photo img {
    width:100%; height:auto; aspect-ratio:4/3; object-fit:cover;
    border-radius:16px;
  }
  .sks-multi .sks-location__info { justify-content:center; }
  .sks-multi .sks-location__map iframe { min-height:320px; }
}
/* Main office on homepage: theme supplies photo outside the dynamic block.
 * Flatten just the main panel into the existing homepage grid. */
@supports selector(:has(*)) {
  @media(min-width:1100px) {
    .sks-home-location:has(> .sks-multi.is-enhanced) {
      grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1.12fr);
      align-items:stretch; gap:clamp(1rem,2vw,1.5rem);
    }
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-multi > [data-sks-panel="main"] {
      display:contents;
    }
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-multi > [data-sks-panel="main"] > .sks-location {
      display:contents;
    }
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-home-location__img {
      grid-column:1; grid-row:2; align-self:center; min-width:0;
    }
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-home-location__img img {
      width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:16px;
    }
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-multi > [data-sks-panel="main"] > .sks-location > .sks-multi-main-photo {
      display:none;
    }
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-multi > [data-sks-panel="main"] > .sks-location > .sks-location__info {
      grid-column:2; grid-row:2;
    }
    .sks-home-location:has(> .sks-multi.is-enhanced) > .sks-multi > [data-sks-panel="main"] > .sks-location > .sks-location__map {
      grid-column:3; grid-row:2;
    }
    .sks-home-location.sks-multi-branch-selected > .sks-multi > [data-sks-panel="branch"] {
      grid-column:1/-1; grid-row:2;
    }
  }
}
/* At medium widths favour readability over squeezing three columns. */
@media (min-width:901px) and (max-width:1099px) {
  .sks-multi .sks-location:has(> .sks-multi-photo) {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  .sks-multi .sks-location > .sks-multi-photo { grid-column:1/-1; max-width:400px; }
}
@media(max-width:900px) {
  .sks-multi .sks-location > .sks-multi-photo { max-width:100%; width:100%; }
  .sks-multi .sks-location > .sks-multi-photo img { width:100%; max-height:320px; object-fit:cover; }
}
