:root {
  color-scheme: light;
  --ink: #231f20;
  --navy: #073b4c;
  --blue: #0b6e99;
  --red: #981f33;
  --red-dark: #701426;
  --cream: #f4f0bd;
  --sand: #f0dfb7;
  --muted: #5c5657;
  --line: #d8d0bd;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #8de4ff;
  background-image: url("../Background.png");
  background-repeat: repeat;
}

.site-shell {
  width: min(1200px, calc(100% - 24px));
  margin: 18px auto;
  border: 2px solid darkblue;
  background: #fff;
  box-shadow: 0 10px 26px rgba(7, 59, 76, .16);
}

.site-header { padding: 10px 10px 0; text-align: center; }
.site-header > a { display: block; width: min(1000px, 100%); margin: auto; }
.site-header img { display: block; width: 100%; height: auto; }
.steam-pot-title {
  margin: 4px 0 10px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 8px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #655d5d;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible { background: var(--cream); }

.prices-shell { padding: clamp(12px, 2.5vw, 24px); }
.hero { padding: 28px 18px 30px; border-bottom: 2px solid var(--cream); text-align: center; }
.hero h1 { margin: 5px 0 10px; color: var(--navy); font-size: clamp(30px, 5vw, 50px); line-height: 1.05; }
.hero > p:not(.eyebrow) { max-width: 720px; margin: 0 auto 22px; color: var(--muted); font-size: 18px; }
.eyebrow { margin: 0; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.update-button { display: inline-block; padding: 13px 18px; border: 2px solid var(--red-dark); border-radius: 8px; background: var(--red); color: #fff; font-weight: 800; text-decoration: none; }
.update-button:hover, .update-button:focus { background: var(--red-dark); }

.prices-card { margin-top: 24px; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 3px 0 0; color: var(--navy); font-size: 30px; }
.last-updated { margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.loading { padding: 24px; color: var(--muted); text-align: center; }
.loading.error, .noscript { color: var(--red); font-weight: 700; }
.retry-button { display: inline-block; width: auto; margin-left: 8px; padding: 8px 13px; border: 0; border-radius: 7px; background: var(--red); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.retry-button:hover, .retry-button:focus { background: var(--red-dark); }
.price-list { display: grid; gap: 16px; }

.vendor-group { overflow: hidden; scroll-margin-top: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fffdf3; }
.vendor-group:target { outline: 4px solid rgba(11, 110, 153, .25); }
.vendor-group .vendor-heading { padding: 14px 17px; background: var(--navy); color: #fff; }
.vendor-group .vendor-heading h3 { margin: 0; padding: 0; background: none; color: #fff; font-size: 22px; }
.vendor-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-align: left; cursor: default; }
.vendor-arrow { display: none; }
.business-address { display: inline-block; margin-top: 3px; color: #d9edf4; font-size: 14px; text-underline-offset: 3px; }
.business-address:hover, .business-address:focus { color: #fff; }
.vendor-group .product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 17px; }
.vendor-group .product-row, .vendor-group .product-row:first-child { min-width: 0; padding: 13px; border: 1px solid #dfd1ae; border-radius: 9px; background: #fff; }
.price-top { display: flex; justify-content: space-between; gap: 16px; }
.product-name { font-weight: 700; }
.price { color: var(--red); font-size: 25px; font-weight: 800; white-space: nowrap; }
.notes { margin: 6px 0 0; }
.meta { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.vendor-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 17px; border-top: 1px solid #dfd1ae; background: #fff9dc; }
.contact-info { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; color: var(--muted); font-size: 14px; }
.contact-info strong { color: var(--ink); }
.contact-info a, .flyer-link { color: var(--blue); font-weight: 700; text-underline-offset: 3px; }
.vendor-group .group-share { flex: 0 0 auto; padding: 0; border: 0; text-align: right; }
.vendor-group .share-status { min-height: 0; }

.price-note { margin: 20px 0 14px; padding: 15px 17px; border-left: 5px solid var(--red); border-radius: 8px; background: #fff4d6; }
.back-link { margin: 20px; text-align: center; }
.back-link a { color: var(--navy); font-weight: 800; }
body > footer { width: fit-content; max-width: calc(100% - 24px); margin: 0 auto 28px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--muted); font-size: 13px; text-align: center; }
body > footer a { color: inherit; }
.noscript { text-align: center; }

.flyer-modal[hidden] { display: none; }
.flyer-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; overflow: auto; padding: 20px; background: rgba(3, 31, 41, .82); }
.flyer-dialog { position: relative; width: min(760px, 100%); margin: auto; padding: 24px; border: 3px solid var(--sand); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.flyer-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--navy); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.flyer-copy { padding-right: 50px; }
.flyer-copy h2 { margin: 3px 0 6px; color: var(--navy); font-size: 28px; }
.flyer-copy > p:last-child { margin: 0 0 16px; color: var(--muted); }
#flyer-canvas { display: block; width: min(100%, 540px); height: auto; margin: 0 auto; border: 1px solid #b8c4c9; border-radius: 10px; background: var(--navy); box-shadow: 0 10px 26px rgba(7, 59, 76, .18); }
.flyer-actions { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.flyer-actions button { padding: 12px 17px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 800; cursor: pointer; }
.flyer-actions button:first-child { background: var(--navy); }
.flyer-actions button:disabled { opacity: .55; cursor: wait; }
.flyer-message { min-height: 22px; margin: 9px 0 0; color: #16713c; font-weight: 700; text-align: center; }

@media (max-width: 700px) {
  .site-shell { width: min(100% - 12px, 1200px); margin: 6px auto; }
  .prices-shell { padding: 10px; }
  .hero { padding: 16px 8px 18px; }
  .hero h1 { margin: 3px 0 7px; font-size: 27px; }
  .hero > p:not(.eyebrow) { margin-bottom: 14px; font-size: 15px; line-height: 1.4; }
  .hero .eyebrow { font-size: 11px; }
  .update-button { padding: 10px 14px; font-size: 14px; }
  .section-heading { display: block; }
  .last-updated { margin-top: 8px; text-align: left; }
  .vendor-group .product-list { grid-template-columns: 1fr; }
  .vendor-toggle { cursor: pointer; }
  .vendor-arrow { display: block; flex: 0 0 auto; width: 10px; height: 10px; margin-right: 3px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(225deg); transition: transform .18s ease; }
  .vendor-toggle[aria-expanded="false"] .vendor-arrow { transform: rotate(45deg); }
  .vendor-group.is-collapsed .business-address,
  .vendor-group.is-collapsed .vendor-content { display: none; }
  .vendor-footer { align-items: flex-start; flex-direction: column; }
  .vendor-group .group-share { text-align: left; }
}

@media (max-width: 560px) {
  .site-nav a { flex: 1 1 auto; justify-content: center; }
  .price-top { display: block; }
  .price { margin-top: 5px; }
  .flyer-dialog { padding: 18px 14px; }
  .flyer-actions { flex-direction: column; }
  .flyer-actions button { width: 100%; }
}
