:root {
  color-scheme: light;
  --canvas: #f7f8f2;
  --white: #fff;
  --ink: #17271e;
  --muted: #4d6054;
  --forest: #1c4c35;
  --deep: #153b2b;
  --accent: #cff28a;
  --line: #d9e2d7;
  --wash: #edf3e8;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.042em; }
button, input, select { font: inherit; }
a { color: var(--forest); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid #477f56; outline-offset: 3px; }
.wrap { width: min(1184px, 100% - 64px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; inset: 8px auto auto 8px; padding: 8px 12px; background: var(--white); }
.site-header { position: sticky; top: 0; z-index: 2; background: var(--canvas); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: -.075em;
  white-space: nowrap;
  text-decoration: none;
}
.brand span:last-child { color: var(--forest); }
.brand-mark {
  display: inline-block;
  position: relative;
  width: 31px;
  height: 31px;
  border-radius: 11px;
  background: var(--accent);
  margin-right: 9px;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.6px solid var(--deep);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4.5px var(--deep);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  background: var(--deep);
  left: 15px;
  top: 15px;
  transform: rotate(-40deg);
  transform-origin: left;
}
.header-inner nav, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; }
.header-inner nav a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration: none; }
.header-inner nav a:hover, .footer-links a:hover { text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}
.button:hover { background: var(--wash); }
.button.primary { color: var(--white); background: var(--forest); border-color: var(--forest); }
.button.primary:hover { background: var(--deep); }
#list-count { min-width: 25px; height: 25px; padding-inline: 5px; text-align: center; border-radius: 50px; background: var(--accent); font-size: .9rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  margin-block: 32px 54px;
  border-radius: 26px;
  overflow: hidden;
  background: #eaf2df;
}
.hero-copy { align-self: center; padding: clamp(28px, 4vw, 52px); }
.eyebrow { font-size: .875rem; text-transform: uppercase; font-weight: 800; color: var(--forest); letter-spacing: .11em; }
.hero h1 { max-width: 15ch; margin-top: 14px; font-size: clamp(2.85rem, 6.2vw, 4.65rem); line-height: .99; letter-spacing: -.065em; }
.hero h1 em { color: var(--forest); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 41ch; margin: 18px 0 24px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.16rem); }
.hero-art { min-width: 0; background: var(--deep); }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.section-head { display: flex; gap: 14px 28px; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.section-head h2, .methodology h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
.section-head p { margin-top: 6px; color: var(--muted); }
.snapshot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50px;
  white-space: nowrap;
  font-size: .91rem;
  color: var(--muted);
}
.snapshot-dot { width: 7px; height: 7px; background: #477f56; border-radius: 50%; margin-right: 3px; }
.location-panel {
  margin-bottom: 24px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #bfd0bd;
  border-radius: 19px;
  background: linear-gradient(135deg, var(--white), #f0f6e9);
}
.location-panel h2, .location-panel h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.location-panel > p, .location-help { max-width: 68ch; color: var(--muted); }
.location-panel > p { margin-top: 7px; }
.location-form {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(210px, 1.3fr);
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}
.location-field { display: grid; gap: 5px; min-width: 0; }
.location-field label { font-size: .94rem; font-weight: 750; }
.location-field input, .location-field select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  color: var(--ink);
  border: 1px solid #8fa494;
  border-radius: 10px;
  background: var(--white);
}
.location-field input::placeholder { color: #667a6d; opacity: 1; }
.location-field input[aria-invalid="true"], .location-field select[aria-invalid="true"] {
  border-color: #a33126;
  box-shadow: 0 0 0 1px #a33126;
}
.location-actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.location-actions .button { flex: 0 0 auto; }
.location-form > .location-help, .location-form > .location-feedback { grid-column: 1 / -1; }
.location-help { margin-top: 9px; font-size: .91rem; }
.location-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 4px solid #557264;
  border-radius: 7px;
  color: #263d31;
  background: #edf3ef;
}
.location-feedback:empty { display: none; }
.location-feedback[data-state="error"], .location-feedback.is-error, .location-feedback[role="alert"] {
  border-left-color: #a33126;
  color: #6e2019;
  background: #fff0ee;
}
.location-feedback[data-state="success"], .location-feedback.is-success {
  border-left-color: #39744a;
  color: #214e2e;
  background: #edf7ef;
}
.location-feedback[data-state="limited"], .location-feedback[data-state="coverage"] {
  border-left-color: #aa7b21;
  color: #61450f;
  background: #fff7e5;
}
.location-required {
  margin-block: 18px;
  padding: 20px;
  border: 1px dashed #8fa494;
  border-radius: 14px;
  color: var(--muted);
  background: var(--white);
}
.location-required strong { display: block; margin-bottom: 3px; color: var(--ink); }
.location-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 16px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--wash);
}
.location-summary p { color: var(--muted); }
.location-summary strong { color: var(--ink); }
.pilot-note { margin: 0 0 18px; padding: 12px 14px; border-left: 4px solid #39744a; border-radius: 8px; color: #214e2e; background: #edf7ef; }
.pilot-note[data-state="limited"] { border-left-color: #c8a96b; color: #574012; background: #fff7e5; }
.coverage-watch {
  margin: 14px 0 20px;
  padding: 15px;
  border: 1px solid #c8a96b;
  border-radius: 12px;
  color: var(--ink);
  background: #fffaf0;
}
.location-required .coverage-watch { margin-bottom: 0; text-align: left; }
.coverage-watch p { max-width: 68ch; color: var(--muted); }
.coverage-watch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.coverage-watch-status { min-height: 1.55em; margin-top: 8px; font-size: .91rem; }
.nearby-stores { margin: 20px 0 24px; }
#nearby-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nearby-store {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}
.nearby-store > :first-child { min-width: 0; }
.nearby-store p, .nearby-store span { color: var(--muted); font-size: .91rem; }
.nearby-store h4 { font-size: 1.08rem; }
.nearby-store .coverage-badge { justify-self: start; white-space: normal; }
.local-ranking-callout { margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--wash); }
.local-ranking-callout h2 { font-size: 1.35rem; }
.local-ranking-callout p { margin: 7px 0 14px; color: var(--muted); }
.coverage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid #9fb89f;
  border-radius: 999px;
  color: #214e2e;
  background: #edf7ef;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}
.coverage-badge[data-state="limited"], .coverage-badge.is-limited {
  border-color: #c8a96b;
  color: #684b13;
  background: #fff7e5;
}
.coverage-badge[data-state="unavailable"], .coverage-badge.is-unavailable {
  border-color: #c7cdca;
  color: #4d6054;
  background: #f1f3f1;
}
.national-coverage { margin-block: 58px; }
.national-coverage .section-head { max-width: 780px; }
.national-coverage .section-head h2 { margin-top: 7px; font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
.coverage-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--line);
}
.coverage-totals div { display: grid; align-content: center; min-height: 104px; padding: 18px; background: var(--white); }
.coverage-totals strong { color: var(--forest); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1; }
.coverage-totals span { margin-top: 7px; color: var(--muted); font-size: .92rem; line-height: 1.35; }
.province-coverage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.province-coverage-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}
.province-coverage-card[data-state="priced"] { border-color: #9fb89f; background: #f5faf1; }
.province-coverage-card > div { display: grid; justify-items: start; gap: 8px; }
.province-coverage-card h3 { font-size: 1.13rem; }
.province-coverage-card p { margin-top: 10px; color: var(--muted); font-size: .91rem; }
.coverage-disclosure { max-width: 78ch; margin-top: 14px; color: var(--muted); font-size: .92rem; }
.comparison-shell { min-width: 0; }
.filters {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) repeat(3, minmax(0, 1fr)) max-content;
  align-items: end;
  gap: 13px 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
}
.filter-field { display: grid; gap: 4px; min-width: 0; }
.filter-field label, .specials-filter { font-weight: 700; font-size: .92rem; }
.filter-field input, .filter-field select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #aabbad;
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink);
  padding: 8px 12px;
}
.filter-field select {
  appearance: none;
  padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.specials-filter { display: flex; align-items: center; gap: 8px; min-height: 46px; padding-inline: 7px; white-space: nowrap; cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--forest); }
.list-status { color: var(--muted); margin: 14px 0 12px; font-size: .93rem; }
.catalogue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grocery-card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); }
.product-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 87px;
  padding: 15px 18px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}
.product-heading h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
.product-heading p { margin-top: 3px; font-size: .9rem; color: var(--muted); }
.product-icon {
  display: grid;
  place-items: center;
  flex: 0 0 47px;
  height: 47px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  font-size: 1.48rem;
}
.prices, .stores, #list-items { list-style: none; margin: 0; padding: 0; }
.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  column-gap: 12px;
  padding: 13px 18px 7px;
}
.price + .price { border-top: 1px solid var(--line); }
.price-copy, .price-numbers { display: grid; line-height: 1.35; gap: 2px; }
.price-product { font-size: 1.04rem; font-weight: 760; }
.price-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-top: 4px; }
.price-pack, .price-store, .price-numbers span, .price-conditions { font-size: .9rem; color: var(--muted); }
.price-pack { padding: 2px 7px; border-radius: 6px; background: var(--wash); color: var(--ink); font-weight: 680; }
.price-numbers { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-numbers strong { font-size: 1.36rem; }
.price-conditions { grid-column: 1 / -1; margin-top: 7px; }
.price-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.source-link, .save-price, .remove-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 680;
  font-size: .9rem;
}
.save-price, .remove-item {
  color: var(--forest);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
}
.save-price:hover, .remove-item:hover { text-decoration: underline; }
.save-price[aria-pressed=true] { color: var(--ink); }
.no-prices { color: var(--muted); padding: 16px 18px; }
.empty-state { padding: 28px; text-align: center; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.empty-state p { margin: 8px 0 18px; color: var(--muted); }
.store-section { padding: 46px 0; margin-top: 52px; background: var(--wash); }
.stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stores li { padding: 5px 14px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); }
.stores a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 730; }
.stores span { display: block; font-size: .9rem; color: var(--muted); }
.methodology, .prose { padding-block: 52px; }
.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.tips article { border-top: 2px solid var(--line); padding-top: 13px; }
.tips p, .prose p { color: var(--muted); margin-top: 7px; max-width: 67ch; }
.prose h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.prose h2 { margin-top: 26px; }
.prose .button { margin-top: 18px; }
.product-guide-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: .94rem; }
.methodology > .product-guide-link { margin-top: 10px; }
.comparison-guide, .product-detail { max-width: 790px; }
.comparison-guide .eyebrow { margin-bottom: 10px; }
.comparison-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 20px; }
.comparison-links a { display: inline-flex; align-items: center; min-height: 44px; }
.product-detail { padding-block: clamp(25px, 5vw, 55px); }
.product-detail nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.product-detail nav a { display: inline-flex; align-items: center; min-height: 44px; }
.product-detail h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.product-intro { margin: 12px 0 30px; color: var(--muted); }
.product-detail-prices { border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.offer-ended { display: inline-block; border-radius: 5px; background: #f5eee4; color: #64421f; padding: 1px 6px; }
.product-advice { margin-top: 34px; }
.product-advice p { margin: 7px 0 18px; color: var(--muted); }
.site-footer { background: var(--deep); color: var(--white); }
.site-footer a, .site-footer .brand span:last-child { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--accent); }
.footer-inner { padding-block: 16px; }
.footer-links button {
  background: transparent;
  border: none;
  min-height: 44px;
  color: var(--white);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

.shopping-list {
  max-block-size: 88dvh;
  overflow: auto;
  width: min(100% - 28px, 520px);
  padding: 22px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}
.shopping-list::backdrop { background: rgb(10 25 16 / 56%); }
.list-top, .list-total > div, .saved-item { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.list-top { position: sticky; top: -22px; z-index: 1; margin-bottom: 12px; padding-top: 22px; background: var(--white); }
.list-top p, #list-empty, .list-total p, .saved-item span { color: var(--muted); font-size: .94rem; }
.saved-item { padding: 13px 0; border-top: 1px solid var(--line); }
.saved-item span { display: block; }
.remove-item { padding: 0; }
.saved-item .saved-price { text-align: right; white-space: nowrap; }
.list-total { background: var(--wash); border-radius: 12px; padding: 14px; margin-top: 12px; }
.list-total p { margin-top: 4px; }

.measurement-settings {
  position: fixed;
  inset: auto auto 16px 16px;
  z-index: 3;
  width: min(490px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 12px 42px rgb(21 59 43 / 17%);
}
.measurement-settings p { margin: 7px 0 13px; color: var(--muted); }
.measurement-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.measurement-settings details { margin-top: 7px; }
.measurement-settings summary { cursor: pointer; padding-block: 5px; }
.check-row { display: flex; align-items: center; gap: 9px; min-height: 44px; }

@media (max-width: 1050px) {
  .location-form { grid-template-columns: minmax(0, 1fr); }
  .location-actions { justify-content: flex-start; }
}
@media (max-width: 820px) {
  .wrap { width: calc(100% - 40px); }
  .hero-copy { padding: 30px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .specials-filter { align-self: end; }
  .coverage-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .province-coverage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 116px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding-top: 8px; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; gap: 10px; }
  .header-inner nav a { font-size: .9rem; }
  .list-button { grid-row: 1; grid-column: 2; padding-inline: 10px; }
  .hero { grid-template-columns: minmax(0, 1fr); margin-block: 18px 34px; border-radius: 18px; }
  .hero-copy { padding: 23px 21px; }
  .hero-art { height: clamp(152px, 42vw, 240px); }
  .hero-art img { object-position: center 52%; }
  .section-head { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 16px; }
  .location-panel { padding: 17px; border-radius: 15px; }
  .location-summary { align-items: flex-start; flex-direction: column; }
  #nearby-stores { grid-template-columns: minmax(0, 1fr); }
  .nearby-store { align-items: flex-start; flex-direction: column; }
  .coverage-badge { white-space: normal; }
  .filters { gap: 11px; padding: 12px; }
  .search-field { grid-column: 1 / -1; }
  .catalogue, .tips { grid-template-columns: minmax(0, 1fr); }
  .province-coverage-list { grid-template-columns: minmax(0, 1fr); }
  .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: column; align-items: start; gap: 4px; }
  .footer-links { gap: 0 14px; }
}
@media (max-width: 380px) {
  .location-actions { align-items: stretch; flex-direction: column; }
  .location-actions .button { width: 100%; }
  .location-required { padding: 16px; }
  .coverage-totals { grid-template-columns: minmax(0, 1fr); }
}
