/* D-101/D-102: single-province layout for bc.haidasandwich.ca and on.haidasandwich.ca.
   Loaded after styles.css only on province builds (<html data-site-province="bc|on">); the combined apex
   never loads it. Every selector is scoped to html[data-site-province], so the shared stylesheet is unchanged.
   This file deliberately leaves the home hero alone: .hero-facts, .hero-media .hero-still, .hero-clip-nav,
   the .hero-grid stacking order and the wide-screen anchored hero (min-width 1440px, D-098/D-105) all come from
   styles.css as they are. */

/* One province box or group instead of two side by side (order and menu sheets, call sheet, home showcase,
   offers and rewards panels, franchise maps). */
html[data-site-province] .order-branch-grid,
html[data-site-province] .call-groups,
html[data-site-province] .region-columns,
html[data-site-province] .province-feature-grid,
html[data-site-province] .franchise-maps-grid {
  grid-template-columns: minmax(0, 1fr);
}

/* The home showcase is a two-province sideways scroller on phones that bleeds past the shell; one province
   stays inside the shell. (The offers and rewards panels are already one full-width column below 821px.) */
@media (max-width: 540px) {
  html[data-site-province] .region-columns {
    width: var(--shell);
    padding-right: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
}

/* The showcase's outline watermark is the combined count ("07" in styles.css). A province page shows the
   all-seven total only inside the labelled daily-count block, so the watermark is dropped here.
   scripts/check-province.mjs (A8) requires an override like this for every count in a styles.css content string. */
html[data-site-province] .location-showcase::before {
  content: none;
}

/* Locations finder with one province card: no sideways track, and no province tabs
   (app.js un-hides [data-finder-tabs] when it builds them). */
html[data-site-province] .lf-track {
  margin: 0;
  padding: 0 0 20px;
  overflow: visible;
  scroll-snap-type: none;
}

html[data-site-province] .lf-track .lf-card {
  flex: 1 1 100%;
}

html[data-site-province] [data-finder-tabs] {
  display: none;
}

/* A single wide card puts the map beside the branch list, so the 4:3 map does not fill the screen. D-105: the list
   comes first (left) and the map after it (right). */
@media (min-width: 900px) {
  html[data-site-province] .lf-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }

  html[data-site-province] .lf-card > .lf-head {
    grid-column: 1 / -1;
  }

  html[data-site-province] .lf-card > .lf-map {
    position: sticky;
    top: calc(var(--header-height) + 16px);
    border-left: 1px solid #262624;
    border-bottom: 0;
  }
}

/* on. has no Instagram photo strip, so the band is the copy column alone. */
html[data-site-province="on"] .home-social-inner {
  grid-template-columns: minmax(0, 1fr);
}

/* Footer switch to the sibling province site (the only cross-link between province hosts). */
html[data-site-province] .site-switch {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--acid);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

html[data-site-province] .site-switch:hover,
html[data-site-province] .site-switch:focus-visible {
  color: var(--acid);
}

/* D-105 (2026-10-18): location first. On a province host the restaurants lead the order and call sheets, the
   /order/ panel, the on. menu chooser, the Locations finder and the home showcase: large bold names, the address,
   the live status and a clear action on one full-width tap target each. The province is a small line under the
   sheet title, not a boxed heading. */
html[data-site-province] .order-flow-heading .sheet-region {
  margin: 2px 0 6px;
  color: var(--acid);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Order sheet, /order/ panel and the on. menu chooser: one card per restaurant. */
html[data-site-province] .order-branch-card {
  border: 0;
  background: transparent;
}

html[data-site-province] .order-flow-single .order-location-options {
  gap: 10px;
}

html[data-site-province] .order-flow-single .order-location-option,
html[data-site-province] .order-flow-single a.order-location-option:hover,
html[data-site-province] .order-flow-single a.order-location-option:active,
html[data-site-province] .order-flow-single .order-location-option.is-nearest {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 16px;
  transform: none;
}

html[data-site-province] .order-flow-single .order-location-option {
  border: 1px solid #2f2f2c;
  color: var(--white);
  background: var(--ink-soft);
}

html[data-site-province] .order-flow-single .order-location-option:last-child {
  border-bottom: 1px solid #2f2f2c;
}

html[data-site-province] .order-flow-single a.order-location-option:hover,
html[data-site-province] .order-flow-single a.order-location-option:active {
  border-color: var(--acid);
  color: var(--white);
  background: #1d1d1b;
}

html[data-site-province] .order-flow-single .order-location-option.is-nearest {
  border-color: var(--acid);
  outline: 0;
  background: #17180c;
}

html[data-site-province] .order-flow-single .order-option-copy strong {
  font-family: "Anton", var(--display);
  font-size: clamp(1.75rem, 8.2vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

html[data-site-province] .order-flow-single .order-option-copy small {
  display: block;
  margin-top: 6px;
  color: #b8b8b2;
  font-size: 0.9rem;
  line-height: 1.3;
}

html[data-site-province] .order-flow-single a.order-location-option:hover .order-option-copy small {
  color: #d8d8d2;
}

html[data-site-province] .order-flow .order-option-copy .live-status {
  margin-top: 6px;
  font-size: 0.86rem;
}

html[data-site-province] .order-flow-single .order-option-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--white);
  background: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

html[data-site-province] .order-flow-single .order-option-action-label {
  display: inline;
}

html[data-site-province] .order-flow-single a.order-location-option:hover .order-option-action,
html[data-site-province] .order-flow-single a.order-location-option:active .order-option-action {
  color: var(--white);
  background: var(--red-deep);
}

html[data-site-province] .menu-modal .order-flow-single .order-option-action,
html[data-site-province] .menu-modal .order-flow-single a.order-location-option:hover .order-option-action {
  color: var(--ink);
  background: var(--acid);
}

/* Call sheet: the same cards, with the number in a full-width call button. */
html[data-site-province] .call-list {
  gap: 10px;
}

html[data-site-province] .call-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 16px;
  border: 1px solid #2f2f2c;
  border-radius: 0;
  color: var(--white);
  background: var(--ink-soft);
}

html[data-site-province] .call-row:hover {
  border-color: var(--acid);
  background: #1d1d1b;
}

html[data-site-province] .call-row-copy {
  display: grid;
  min-width: 0;
}

html[data-site-province] .call-row-name {
  display: block;
  font-family: "Anton", var(--display);
  font-size: clamp(1.75rem, 8.2vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

html[data-site-province] .call-row-address {
  margin-top: 6px;
  color: #b8b8b2;
  font-size: 0.9rem;
  line-height: 1.3;
}

html[data-site-province] .call-row-copy .live-status {
  margin-top: 6px;
  font-size: 0.86rem;
}

html[data-site-province] .call-flow .live-status.is-open {
  color: #5fe08f;
}

html[data-site-province] .call-flow .live-status.is-closed {
  color: #ff8a80;
}

html[data-site-province] .call-row-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--acid);
  font-weight: 900;
}

html[data-site-province] .call-row-action .call-row-icon {
  display: inline-grid;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}

html[data-site-province] .call-row-action .call-row-phone {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Locations finder: the restaurants first, then the map; the province is a small label. */
html[data-site-province] .lf-head {
  padding: 12px 16px;
}

html[data-site-province] .lf-head h2,
html[data-site-province] .lf-head h2 span {
  color: var(--acid);
}

@media (max-width: 899px) {
  html[data-site-province] .lf-card > .lf-map {
    border-top: 1px solid #262624;
    border-bottom: 0;
  }
}

html[data-site-province] .lf-row-main {
  grid-template-columns: minmax(0, 1fr);
  padding: 18px 16px 12px;
}

html[data-site-province] .lf-row h3 {
  font-size: clamp(1.9rem, 9vw, 2.6rem);
  line-height: 0.95;
}

html[data-site-province] .lf-badge {
  font-size: 0.66rem;
}

html[data-site-province] .lf-status {
  margin-top: 8px;
  font-size: 0.86rem;
}

html[data-site-province] .lf-row-main .lf-addr {
  margin-top: 6px;
  color: #c4c4be;
  font-size: 0.92rem;
}

html[data-site-province] .lf-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 16px 10px;
}

html[data-site-province] .lf-row-actions .lf-act,
html[data-site-province] .lf-row-actions .lf-dact {
  justify-content: center;
  height: 46px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

html[data-site-province] .lf-row-actions .lf-menu {
  border-color: var(--acid);
  color: var(--ink);
  background: var(--acid);
}

html[data-site-province] .lf-row-actions .lf-menu:hover {
  color: var(--ink);
  background: #ecff7a;
}

html[data-site-province] .lf-row .lf-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin: 0 16px 14px;
  padding: 0 12px;
  border-color: #3a3a37;
  color: #d8d8d2;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-site-province] .lf-row .lf-more:hover,
html[data-site-province] .lf-row.is-open .lf-more {
  border-color: var(--acid);
  color: var(--acid);
  background: transparent;
}

html[data-site-province] .lf-details-inner {
  padding: 0 16px 16px;
  font-size: 0.82rem;
}

/* Home showcase: a small province label over large, bold restaurant links with their address and live status. */
html[data-site-province] .region-column-heading {
  min-height: 0;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
}

html[data-site-province] .region-column-heading > span {
  font-size: 1.6rem;
}

html[data-site-province] .region-column-heading small {
  display: none;
}

html[data-site-province] .region-column-heading h3 {
  color: var(--acid);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

html[data-site-province] .mini-location-list a {
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  align-items: start;
  gap: 4px 12px;
  padding: 20px 8px;
}

html[data-site-province] .mini-location-list a::before {
  grid-column: 1;
  grid-row: 1 / span 3;
  line-height: 1.1;
}

html[data-site-province] .mini-location-list a::after {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
}

html[data-site-province] .mini-location-list strong {
  grid-column: 2;
  color: var(--white);
  font-family: "Anton", var(--display);
  font-size: clamp(1.75rem, 7.6vw, 2.4rem);
  font-weight: 400;
  line-height: 0.95;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

html[data-site-province] .mini-location-list a span {
  display: block;
  grid-column: 2;
  color: #b8b8b2;
  font-size: 0.9rem;
}

html[data-site-province] .mini-location-list a .live-status {
  display: inline-flex;
  font-size: 0.86rem;
}

html[data-site-province] .mini-location-list a .live-status:empty {
  display: none;
}

html[data-site-province] .mini-location-list .live-status.is-open {
  color: #5fe08f;
}

html[data-site-province] .mini-location-list .live-status.is-closed {
  color: #ff8a80;
}

html[data-site-province] .mini-location-list a:hover .live-status {
  color: var(--white);
}

/* on. /menu/ hub (the no-JavaScript target of the Menu links): the four branches as a 2 x 2 grid (one column on
   phones). D-105: each branch name is large and bold, with its address and live status under it. */
html[data-site-province="on"] .ontario-menu-index {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

html[data-site-province="on"] .ontario-menu-index li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-bottom: 12px;
}

html[data-site-province="on"] .ontario-menu-index a {
  font-family: "Anton", var(--display);
  font-size: clamp(1.75rem, 7.6vw, 2.3rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

html[data-site-province="on"] .ontario-menu-index .directory-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* /order/ on phones: the restaurant panel comes straight after the heading; the partner note follows it. */
@media (max-width: 820px) {
  html[data-site-province] .order-page-grid {
    row-gap: 0;
  }

  html[data-site-province] .order-page-copy {
    display: contents;
  }

  html[data-site-province] .order-page-panel {
    order: 1;
    margin-top: 6px;
  }

  html[data-site-province] .order-page-copy .notice {
    order: 2;
    margin-top: 28px;
  }
}

@media (min-width: 721px) {
  html[data-site-province] .order-flow-single .order-location-option,
  html[data-site-province] .order-flow-single a.order-location-option:hover,
  html[data-site-province] .order-flow-single a.order-location-option:active,
  html[data-site-province] .order-flow-single .order-location-option.is-nearest,
  html[data-site-province] .call-row {
    padding: 18px 20px;
  }
}

