@font-face {
  font-family: "DM Sans"; src: url("/assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo Black"; src: url("/assets/fonts/archivo-black.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root.market-view {
  --font: "DM Sans", Arial, sans-serif; --display: "Archivo Black", "Arial Black", sans-serif;
  --gutter: clamp(20px, 4.7vw, 80px); --width: min(1392px, calc(100% - var(--gutter) * 2));
  --blue: #2449cf; --blue-dark: #1734a7; --lemon: #faefaa; --on-blue: #fff;
  --hero-paper: var(--lemon); --hero-ink: #19211e; --hero-accent: var(--blue);
}
:root.market-view[data-theme="light"] {
  color-scheme: light; --bg: #fffefa; --surface: #fff; --surface-hi: #eff1eb; --rail: #f3f3ec;
  --ink: #19211e; --muted: #535d57; --dim: #5b655e; --line: #dddfd7; --edge: #a9b0a6;
  --accent: var(--blue); --accent-wash: #e8edff; --lime: var(--blue); --on-accent: #fff;
}
:root.market-view[data-theme="dark"] {
  color-scheme: dark; --bg: #171e26; --surface: #202934; --surface-hi: #2d3847; --rail: #1b242f;
  --ink: #f0f2ec; --muted: #bcc6cd; --dim: #aebcc5; --line: #384451; --edge: #677688;
  --accent: #a9bdff; --accent-wash: #2c3c65; --lime: var(--accent); --on-accent: #152449;
  --hero-paper: #242e47; --hero-ink: #f9f4dc; --hero-accent: #f7e994;
}
.market-view { --store-secondary: var(--muted); --store-ink: var(--ink); --store-paper: var(--bg); }
.market-width, main > .inner-page { width: var(--width); margin-inline: auto; }
.market-view main { min-height: 68vh; }
.market-view .glyph { vertical-align: middle; }
.market-view :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.market-view .solid { background: var(--blue); color: var(--on-blue); }
.market-view .solid:hover { background: var(--blue-dark); }
.market-view .icon-btn { border-radius: 50%; color: var(--accent); width: 42px; height: 42px; }
.market-view .icon-btn:hover { background: var(--accent-wash); }
.market-view ::selection { color: #19211e; background: var(--lemon); }
.market-mast { position: relative; z-index: 4; background: var(--bg); }
.mast-inner, .mast-nav, .mast-actions, .mast-saved, .market-brand { display: flex; align-items: center; }
.mast-inner { min-height: 72px; gap: clamp(30px, 5vw, 88px); }
.market-brand { flex: none; gap: 9px; white-space: nowrap; }
.market-brand img { width: 34px; height: 34px; }
.market-brand span { font: 560 clamp(19px,1.65vw,24px)/1 var(--font); letter-spacing: -.075em; }
.market-brand strong { font-weight: 840; }
.mast-nav { align-self: stretch; gap: clamp(18px, 2.2vw, 35px); }
.mast-nav a { align-content: center; position: relative; font-size: 14px; font-weight: 650; }
.mast-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--accent); }
.mast-nav a:hover, .market-foot a:hover { color: var(--accent); }
.mast-actions { margin-left: auto; gap: 8px; }
.mast-saved { min-height: 42px; gap: 6px; border-radius: 24px; padding: 5px 9px; font-weight: 650; font-size: 14px; }
.mast-saved:hover { background: var(--accent-wash); }
.mast-saved .glyph, .more-links .glyph, .search-field > .glyph, .directory-search .glyph, .category-row > .glyph:first-child { color: var(--accent); }
.mast-saved b { background: var(--accent); color: var(--bg); font: 720 12px/19px var(--font); text-align: center; min-width: 19px; padding-inline: 3px; border-radius: 20px; }
.market-mast .menu-trigger { display: none; }
.market-view .search-submit { width: auto; height: auto; min-height: 39px; padding: 8px 20px; background: var(--blue); color: white; font-weight: 700; border-radius: 5px; }
.market-view .search-submit:hover { background: var(--blue-dark); }
.search-field { padding: 5px 5px 5px 14px; border-color: var(--ink); border-radius: 8px; }
.search-field input { padding-block: 6px; font-size: 16px; }
.market-hero { background: var(--hero-paper); color: var(--hero-ink); }
.hero-inner { display: grid; align-items: center; grid-template-columns: .94fr 1.06fr; position: relative; min-height: 439px; }
.hero-copy { padding-block: 34px; position: relative; z-index: 1; min-width: 0; }
.hero-copy h1, .market-heading, .page-head h1, .merchant-title h1 { font-family: var(--display); font-weight: 400; letter-spacing: -.067em; }
.hero-copy h1 { font-size: clamp(68px, 6.8vw, 105px); line-height: .92; }
.hero-copy h1 em { color: var(--hero-accent); font-style: normal; }
.hero-copy > p { margin: 15px 0 21px; font-size: clamp(15px,1.2vw,18px); line-height: 1.45; }
.hero-copy .search-form { max-width: 465px; }
.hero-copy .search-field { min-height: 53px; }
.try-stores { display: flex; gap: 11px; flex-wrap: wrap; align-items: baseline; margin-top: 11px; font-size: 13px; font-weight: 640; }
.try-stores span { font-weight: 450; }
.try-stores a, .rail-intro a, .market-heading-row > a { text-decoration: underline; text-underline-offset: 3px; }
.hero-art { position: relative; align-self: stretch; min-width: 0; }
.hero-art picture { display: block; position: absolute; inset: 0 1% 0 0; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; transform: scale(.94); }
.basket-tag { position: absolute; bottom: 22px; right: 0; display: flex; align-items: center; gap: 9px; max-width: min(275px, 85%); padding: 8px 12px 8px 8px; background: #fffef6; color: #19211e; border: 1px solid #d6c87f; border-radius: 7px; transform: rotate(-3deg); }
.basket-tag:hover { transform: none; }
.tag-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: var(--lemon); color: var(--blue); border-radius: 4px; }
.basket-tag small, .basket-tag strong { display: block; }
.basket-tag small { font-size: 11px; font-weight: 620; }
.basket-tag strong { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-rail { border-bottom: 1px solid var(--line); }
.rail-inner { min-height: 94px; display: flex; align-items: center; gap: 24px; }
.rail-intro { padding-right: clamp(12px,2.7vw,43px); border-right: 1px solid var(--line); flex: none; }
.rail-intro h2 { font-size: 17px; font-weight: 750; letter-spacing: -.035em; }
.rail-intro a { font-size: 12px; }
.brand-strip { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.brand-strip a { min-width: 0; display: flex; justify-content: center; align-items: center; gap: 6px; height: 55px; padding: 4px; border-radius: 5px; font: 700 14px/1.25 var(--font); text-align: center; }
.brand-strip span { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.brand-strip a:hover { background: var(--surface-hi); }
.brand-strip img { flex: none; width: 36px; height: 36px; object-fit: contain; border-radius: 5px; background: #fff; }
.market-shelf { padding-block: 40px 46px; }
.market-heading { font-size: clamp(32px,3.15vw,48px); line-height: 1.07; }
.market-heading span { color: var(--accent); }
.market-shelf .feed-bar { align-items: center; }
.market-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.market-heading-row > a { font-size: 13px; flex: none; }
.feed-bar { gap: 9px 18px; margin: 0 0 16px; }
.type-tabs { width: fit-content; display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 3px; }
.type-tabs .filter-link { display: inline-flex; min-height: 33px; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 24px; font: 640 13px/1.35 var(--font); color: var(--muted); white-space: nowrap; }
.type-tabs .filter-link[aria-current] { background: var(--ink); color: var(--bg); }
.market-view .type-tabs .filter-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.select-wrap > .glyph:not(:last-child) { position: absolute; left: 0; pointer-events: none; color: var(--accent); }
.select-wrap select { font: 610 13px var(--font); color: var(--ink); padding-left: 22px; }
.market-categories { padding-bottom: 46px; }
.market-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.5vw,24px); }
.market-tiles a { position: relative; overflow: hidden; aspect-ratio: 2.4; border-radius: 9px; background: #edece5; }
.market-tiles img { width: 100%; height: 100%; object-fit: cover; }
.market-tiles a:hover img { transform: scale(1.035); }
.market-tiles span { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); display: grid; gap: 5px; justify-items: start; font: 400 clamp(21px,2vw,34px)/1.15 var(--display); letter-spacing: -.06em; color: #19211e; }
.market-tiles .glyph { color: var(--blue-dark); }
.market-guide { padding-bottom: 48px; }
.market-guide > p { margin-bottom: 19px; color: var(--muted); line-height: 1.55; }
.market-view .faq-block h2 { font: 740 clamp(22px,2.1vw,34px)/1.18 var(--font); letter-spacing: -.045em; }
.market-foot { background: var(--rail); border-top: 1px solid var(--line); padding-block: 24px; }
.foot-row, .foot-row nav { display: flex; gap: 12px 22px; flex-wrap: wrap; align-items: center; }
.foot-row { justify-content: space-between; }
.foot-row nav { font-size: 13px; }
.foot-row button { display: inline-flex; gap: 5px; align-items: center; }
.foot-meta { margin-top: 19px; font-size: 12px; color: var(--muted); }
.foot-meta nav { font-size: inherit; }
.page-head { padding-block: 35px 25px; }
.page-head h1 { font-size: clamp(34px,4.4vw,68px); line-height: 1.06; overflow-wrap: anywhere; }
.inner-page { padding-bottom: 46px; }
.directory-grid, .category-grid { gap: 12px; }
.store-row, .category-row { min-width: 0; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.store-row .glyph, .category-row .glyph { color: var(--accent); }
.store-row:hover, .category-row:hover { border-color: var(--accent); }
.more-row { display: flex; justify-content: center; margin-top: 22px; }

[data-tone] { --wash: #dce4fb; --deep: #233c87; }
[data-tone="mint"] { --wash: #d8efe1; --deep: #205444; }
[data-tone="peach"] { --wash: #ffdfc6; --deep: #823a1b; }
[data-tone="blush"] { --wash: #f6dbe5; --deep: #78354f; }
[data-tone="aqua"] { --wash: #cfe9ef; --deep: #205267; }
[data-tone="sand"] { --wash: #f2e6b9; --deep: #69521f; }
[data-theme="dark"] [data-tone] { --wash: #2b3855; --deep: #cfdbff; }
[data-theme="dark"] [data-tone="mint"] { --wash: #263f37; --deep: #b9eed1; }
[data-theme="dark"] [data-tone="peach"] { --wash: #49352b; --deep: #fbd1ad; }
[data-theme="dark"] [data-tone="blush"] { --wash: #49323f; --deep: #f4cadd; }
[data-theme="dark"] [data-tone="aqua"] { --wash: #233f49; --deep: #b8e5f5; }
[data-theme="dark"] [data-tone="sand"] { --wash: #423d2b; --deep: #f1e0a4; }
.ticket-list, #saved-list:has(.offer-ticket) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(13px,1.5vw,24px); }
.offer-ticket, .offer-group { --ticket-line: color-mix(in srgb,var(--deep) 20%,var(--surface)); border: 1px solid var(--ticket-line); border-radius: 13px; background: var(--surface); min-width: 0; }
.offer-ticket { display: flex; flex-direction: column; overflow: hidden; }
.offer-ticket.is-deal:has(.shelf-value) { --wash: var(--lemon); --deep: #604a1f; }
[data-theme="dark"] .offer-ticket.is-deal:has(.shelf-value) { --wash: #4b412c; --deep: #f1dfa2; }
.shelf-face { display: flex; flex: 1; flex-direction: column; align-items: start; min-width: 0; padding: 14px 20px 19px; background: color-mix(in srgb,var(--wash) 24%,var(--surface)); }
.offer-ticket.is-code .shelf-face { background: color-mix(in srgb,var(--accent-wash) 55%,var(--surface)); }
.shelf-byline, .shelf-foot { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.shelf-byline { gap: 9px; min-height: 40px; margin-bottom: 13px; }
.shelf-identity { min-width: 0; display: flex; align-items: center; gap: 9px; }
.shelf-identity > div { min-width: 0; }
.shelf-stamp { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: var(--deep); background: var(--wash); }
.is-code .shelf-stamp { color: var(--accent); background: var(--accent-wash); }
.shelf-byline .ticket-merchant { display: block; color: var(--ink); font: 680 14px/1.3 var(--font); overflow-wrap: anywhere; }
.shelf-kind { display: block; color: var(--deep); font: 680 12px/1.4 var(--font); letter-spacing: .015em; }
.is-code .shelf-kind { color: var(--accent); }
.shelf-identity a + .shelf-kind { color: var(--muted); font-size: 11px; font-weight: 550; }
.shelf-byline .ticket-exclusive { font: 650 11px/1.4 var(--font); }
.shelf-byline .save-btn { margin: 0 -6px 0 auto; flex: none; color: var(--muted); }
.market-view [data-save][aria-pressed="true"] { color: var(--lemon); background: var(--blue); }
.market-view [data-save][aria-pressed="true"] .glyph { fill: currentColor; }
.shelf-value { display: block; margin: 4px 0 5px; font: 400 clamp(39px,3.7vw,58px)/1.04 var(--display); letter-spacing: -.062em; overflow-wrap: anywhere; }
.shelf-value small { display: inline; font: 660 clamp(14px,1.3vw,20px)/1.2 var(--font); letter-spacing: -.025em; }
.shelf-value .amount-prefix { font-size: 14px; }
.shelf-value .plain-saving { font: 400 .74em/1.15 var(--display); letter-spacing: -.055em; }
.shelf-face .shelf-value { margin: 0 0 5px; color: var(--deep); font-size: clamp(34px,3.15vw,48px); }
.shelf-subject { margin: 0; color: var(--ink); font: 650 clamp(17px,1.4vw,21px)/1.38 var(--font); letter-spacing: -.025em; overflow-wrap: anywhere; }
.shelf-value + .shelf-subject { font: 560 clamp(15px,1.15vw,17px)/1.45 var(--font); letter-spacing: -.01em; }
.shelf-subject a, .shelf-face .ticket-terms { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.shelf-subject a { -webkit-line-clamp: 3; }
.shelf-subject a:hover, .shelf-byline a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.shelf-face .ticket-terms { -webkit-line-clamp: 2; margin: 6px 0 0; color: var(--muted); font: 450 13px/1.5 var(--font); }
.shelf-foot { padding: 9px 16px; min-height: 61px; position: relative; border-top: 1px dashed var(--ticket-line); }
.shelf-foot::before, .shelf-foot::after { content: ""; position: absolute; top: -6px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ticket-line); background: var(--bg); pointer-events: none; }
.shelf-foot::before { left: -6px; }
.shelf-foot::after { right: -6px; }
.shelf-meta { display: flex; align-items: center; gap: 5px; font: 500 12px/1.4 var(--font); color: var(--muted); }
.shelf-meta .glyph { color: var(--accent); }
.shelf-face .offer-steps { margin: 7px 0 0; font: 450 14px/1.5 var(--font); color: var(--ink); overflow-wrap: anywhere; }
.offer-verification { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-block: 7px 2px; color: var(--muted); font: 500 12px/1.4 var(--font); }
.ingestion-payload { white-space: pre-wrap; overflow-wrap: anywhere; }
.shelf-action, .merchant-feature small { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.shelf-action { min-height: 42px; padding: 8px 13px; flex: none; border: 1px solid var(--ticket-line); border-radius: 7px; color: var(--deep); background: var(--surface); font: 680 13px/1.2 var(--font); }
.shelf-action:hover { background: var(--wash); border-color: var(--deep); }
.is-code .shelf-action { background: var(--blue); color: white; border-color: var(--blue); }
.is-code .shelf-action:hover { background: var(--blue-dark); }
.offer-group { grid-column: 1/-1; padding: 0 16px; }
.offer-group summary { display: flex; gap: 12px; align-items: center; min-height: 76px; cursor: pointer; list-style: none; }
.offer-group summary::-webkit-details-marker { display: none; }
.offer-group summary strong, .offer-group summary small { display: block; }
.offer-group summary small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.offer-group summary > .glyph { margin-left: auto; color: var(--accent); }
.offer-group[open] summary > .glyph { transform: rotate(180deg); }
.offer-group ul { list-style: none; padding: 0; margin: 0 0 8px; }
.offer-group li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.offer-group li > a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.market-view .merchant-page { padding: 0 0 42px; }
.market-merchant { background: var(--wash); }
.market-merchant .merchant-trail { padding-top: 20px; min-height: 48px; color: var(--deep); font-size: 12px; flex-wrap: wrap; }
.merchant-front { display: grid; grid-template-columns: minmax(0,2fr) minmax(230px,.76fr); gap: 6%; align-items: center; padding: 22px 0 43px; }
.merchant-identity { display: flex; gap: clamp(18px,2.4vw,40px); align-items: flex-start; min-width: 0; }
.merchant-identity .merchant-mark { flex: none; width: clamp(75px,7.4vw,112px); aspect-ratio: 1; padding: 10px; border-radius: 8px; background: #fff; color: #233c87; }
.merchant-identity .monogram { font: 400 clamp(24px,2.7vw,40px)/1 var(--display); letter-spacing: -.06em; }
.merchant-title h1 { font-size: clamp(39px,4.5vw,75px); line-height: 1.05; color: var(--ink); }
.merchant-title .merchant-h1-tail { display: block; margin: 3px 0 0; font: 400 .6em/1.1 var(--display); letter-spacing: -.055em; color: var(--deep); }
.merchant-title p { margin: 10px 0; color: var(--ink); font: 480 15px/1.5 var(--font); }
.market-category-link, .merchant-feature > span, .merchant-links a { display: inline-flex; align-items: center; gap: 6px; }
.market-category-link { font: 710 13px/1.45 var(--font); color: var(--deep); margin-bottom: 5px; }
.market-category-link .glyph, .merchant-feature > span .glyph { color: var(--accent); }
.merchant-links { gap: 10px 18px; }
.merchant-links a { min-height: 35px; font: 670 13px/1.35 var(--font); color: var(--deep); text-underline-offset: 3px; text-decoration: underline; }
.merchant-feature { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; border: 1px solid color-mix(in srgb,var(--deep) 30%,var(--wash)); border-radius: 10px; padding: 19px 22px; background: color-mix(in srgb,var(--surface) 80%,var(--wash)); color: var(--deep); }
.merchant-feature:hover { background: var(--surface); }
.merchant-feature > span, .merchant-feature small:last-child:not(.plain-saving) { font: 710 13px/1.35 var(--font); }
.merchant-feature .shelf-value { margin: 0; }
.merchant-feature b { font: 620 16px/1.4 var(--font); color: var(--ink); overflow-wrap: anywhere; }
.merchant-feature > small { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.market-view .merchant-columns { display: block; margin: 0 auto; padding-top: 32px; }
.merchant-offers > h2 { margin: 0 0 16px; font: 400 clamp(26px,2.65vw,42px)/1.14 var(--display); letter-spacing: -.055em; overflow-wrap: anywhere; }
.merchant-offers > #store-offers { scroll-margin-top: 16px; }
/* Filter and pagination links focus the heading. The next Tab reaches the filter controls. */
.merchant-offers > #store-offers:focus { outline: none; }
.merchant-side h2 { font-family: var(--font); font-weight: 720; }
.merchant-facts dd { font-family: var(--font); }
.offer-pass { margin: 14px 0 19px; padding: 22px; border-radius: 9px; color: var(--deep); background: var(--wash); }
#sheet-body .dialog-value, .standalone-offer .dialog-value { font: 400 clamp(44px,5vw,67px)/1.06 var(--display); letter-spacing: -.065em; color: var(--deep); margin: 0; padding: 0; overflow-wrap: anywhere; }
.dialog-value .amount-prefix,.dialog-value .amount-condition { display: inline; }
.dialog-value .plain-saving { font: 400 .7em/1.1 var(--display); }
.offer-pass .dialog-lede { color: var(--ink); font: 650 clamp(19px,2vw,24px)/1.38 var(--font); letter-spacing: -.025em; margin: 0; }
.offer-pass .dialog-value + .dialog-lede { margin-top: 7px; font: 600 18px/1.42 var(--font); letter-spacing: -.015em; }
.market-view .store-visit { background: var(--blue); color: white; border-color: var(--blue); }
.market-view .store-visit:hover { background: var(--blue-dark); }
.offer-sheet-head .merchant-name { color: var(--ink); }
.terms .glyph, .automatic > .glyph { color: var(--accent); }
.market-view .dialog-close { z-index: 1; }
.market-view .standalone-offer { border-radius: 10px; background: var(--surface); }
.market-view .toast { bottom: 17px; }
@media (max-width: 950px) {
  .hero-inner { min-height: 370px; }
  .hero-copy h1 { font-size: clamp(54px,7.4vw,72px); }
  .mast-inner { gap: 28px; }
  .brand-strip { gap: 5px; }
  .ticket-list, #saved-list:has(.offer-ticket) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .merchant-front { gap: 22px; grid-template-columns: minmax(0,1.5fr) minmax(205px,.75fr); }
}
@media (max-width: 760px) {
  :root.market-view { --gutter: clamp(16px,4.4vw,28px); }
  .mast-inner { min-height: 58px; gap: 8px; }
  .market-brand img { width: 29px; height: 29px; }
  .market-brand span { font-size: 20px; }
  .mast-nav, .mast-saved > span { display: none; }
  .mast-actions { gap: 1px; }
  .market-mast .menu-trigger { display: inline-grid; }
  .mast-saved { padding-inline: 7px; }
  .market-tiles a { aspect-ratio: 1.8; }
  .foot-row { gap: 15px; }
}
@media (max-width: 600px) {
  .hero-inner { min-height: 0; grid-template-columns: minmax(0,1.03fr) minmax(0,.97fr); padding-block: 13px 22px; }
  .hero-copy, .hero-art { display: contents; }
  .hero-copy h1 { position: relative; z-index: 1; grid-column: 1; grid-row: 1; font-size: clamp(36px,10.7vw,62px); white-space: nowrap; line-height: .94; }
  .hero-article { display: none; }
  .hero-noun { text-transform: capitalize; }
  .hero-art picture { position: relative; inset: auto; grid-column: 2; grid-row: 1; height: clamp(133px,35.6vw,174px); margin-left: -10px; }
  .hero-art picture img { transform: scale(1.03); }
  .hero-copy > p, .hero-copy .search-form, .try-stores { grid-column: 1/-1; }
  .hero-copy > p { grid-row: 2; margin: 0 0 12px; font-size: 14px; }
  .hero-copy .search-form { grid-row: 3; max-width: none; }
  .try-stores { grid-row: 4; font-size: 12px; gap: 5px 9px; }
  .basket-tag { display: none; }
  .rail-inner { min-height: 72px; gap: 10px; }
  .rail-intro { padding-right: 12px; }
  .rail-intro h2 { font-size: 14px; }
  .rail-intro a { font-size: 11px; }
  .brand-strip { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .brand-strip a { flex: 0 0 auto; max-width: 142px; min-width: 84px; height: 46px; padding-inline: 6px; scroll-snap-align: start; font-size: 12px; }
  .brand-strip img { height: 27px; width: 27px; }
  .market-shelf { padding-block: 24px 32px; }
  .market-heading { font-size: clamp(27px,6.9vw,36px); }
  .market-heading-row { gap: 7px; margin-bottom: 14px; }
  .type-tabs .filter-link { padding: 6px 9px; font-size: 12px; }
  .ticket-list, #saved-list:has(.offer-ticket), .market-tiles, .directory-grid { grid-template-columns: 1fr; }
  .ticket-list, #saved-list:has(.offer-ticket) { gap: 12px; }
  .shelf-face { padding: 10px 16px 15px; }
  .shelf-byline { margin-bottom: 8px; }
  .shelf-face .shelf-value { font-size: 36px; }
  .shelf-subject { font-size: 17px; line-height: 1.45; }
  .shelf-foot { padding: 7px 13px 7px 16px; min-height: 59px; }
  .shelf-action { min-height: 44px; }
  .market-tiles a { aspect-ratio: 3; }
  .market-tiles span { font-size: 27px; }
  .market-guide, .market-categories { padding-bottom: 32px; }
  .market-merchant .merchant-trail { padding-top: 9px; min-height: 36px; }
  .merchant-front { display: block; padding: 10px 0 22px; }
  .merchant-identity { gap: 12px; }
  .merchant-identity .merchant-mark { width: 56px; height: 50px; padding: 5px; }
  .merchant-title h1 { font-size: clamp(31px,8vw,47px); }
  .merchant-title p { font-size: 13px; margin: 6px 0 0; }
  .merchant-feature { margin-top: 14px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; }
  .merchant-feature:not(:has(.shelf-value)) { grid-template-columns: minmax(0,1fr); }
  .merchant-feature .shelf-value { grid-column: 2; grid-row: 1/3; align-self: center; font-size: 32px; }
  .merchant-feature b { font-size: 15px; }
  .merchant-feature > small { justify-self: start; }
  .market-view .merchant-columns { padding-top: 22px; }
  .offer-pass { margin: 9px 0 15px; padding: 17px; }
}
@media (max-width: 355px) {
  .market-brand span { font-size: 17px; }
  .market-brand img { width: 25px; height: 25px; }
  .mast-actions .icon-btn { width: 34px; }
  .mast-saved { padding-inline: 4px; }
  .shelf-action { padding-inline: 9px; }
}

/* Region preference: a pill that opens a right-aligned popover of submit buttons, listed inline in the mobile menu. */
.region-menu { position: relative; flex: none; }
.region-trigger { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 5px 10px 5px 11px; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); font: 650 14px/1 var(--font); white-space: nowrap; cursor: pointer; list-style: none; user-select: none; }
.region-trigger::-webkit-details-marker { display: none; }
.region-trigger::marker { content: ""; }
.region-trigger > .glyph { color: var(--accent); }
.region-trigger:hover, .region-menu[open] > .region-trigger { border-color: var(--edge); background: var(--accent-wash); }
.region-current-code { display: none; letter-spacing: .03em; }
@media (min-width: 761px) and (max-width: 1023px) {
  /* Between the phone layout and full desktop the masthead is tight, so the trigger shows the region code. */
  .region-current { display: none; }
  .region-current-code { display: inline; }
  .region-trigger { padding-inline: 9px 8px; gap: 5px; }
  .mast-inner { gap: 22px; }
  .mast-nav a { white-space: nowrap; }
  .mast-saved > span { display: none; }
}
.region-caret { display: inline-grid; color: var(--muted); transition: transform .18s ease; }
.region-menu[open] .region-caret { transform: rotate(180deg); }
.region-popover { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(272px, calc(100vw - 24px)); padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 14px 34px rgb(25 33 30 / .14), 0 2px 6px rgb(25 33 30 / .08); }
.region-heading { margin: 4px 8px 6px; color: var(--muted); font: 700 11px/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.region-options { display: grid; gap: 2px; }
.region-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 7px 10px; border-radius: 9px; color: var(--ink); font: 600 14px/1.25 var(--font); text-align: left; cursor: pointer; }
.region-option:hover { background: var(--surface-hi); }
.region-option.is-current { background: var(--accent-wash); color: var(--accent); }
.region-option > .glyph { margin-left: auto; flex: none; color: var(--accent); }
.region-code { flex: none; min-width: 34px; padding: 3px 0; border: 1px solid var(--edge); border-radius: 5px; color: var(--muted); font: 750 11px/1.2 var(--font); letter-spacing: .04em; text-align: center; }
.region-option.is-current .region-code { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.region-sheet { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.region-sheet .region-heading { margin-inline: 2px; }
.region-sheet .region-options { grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); gap: 6px; }
.region-sheet .region-option { min-height: 44px; border: 1px solid var(--line); }
.region-sheet .region-option.is-current { border-color: color-mix(in srgb,var(--accent) 45%,transparent); }
.region-badge { flex: none; display: inline-block; margin-left: auto; padding: 2px 6px; border: 1px solid var(--edge); border-radius: 4px; color: var(--muted); font: 700 11px/1.3 var(--font); letter-spacing: .04em; }
.store-row .region-badge { margin-right: 4px; }
.brand-strip a .region-badge { margin-left: 2px; }
.region-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--accent-wash); }
.region-empty p { margin: 0; font-weight: 650; }
@media (max-width: 760px) {
  .region-mast { display: none; }
}

/* Store page insights: offer comparison table, discount history ruler, savings by month and related stores.
   Charts are inline SVG drawn with geometry attributes; every colour and size comes from these classes. */
.offer-compare, .savings-season { margin-top: clamp(28px,3.2vw,46px); }
.offer-compare h2, .savings-insight h2 { margin: 0 0 12px; font: 720 clamp(21px,1.9vw,28px)/1.18 var(--font); letter-spacing: -.03em; overflow-wrap: anywhere; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.compare-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer-compare table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.offer-compare thead th { padding: 11px 14px; background: var(--rail); color: var(--muted); font: 700 12px/1.3 var(--font); letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.offer-compare td, .offer-compare tbody th { padding: 12px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.offer-compare tbody th { font-weight: 400; }
.offer-compare tbody th a { display: block; color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px; overflow-wrap: anywhere; }
.offer-compare tbody th a:hover { color: var(--accent); text-decoration-color: currentColor; }
.offer-compare tbody th small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.compare-saving { color: var(--accent); font-weight: 750; white-space: nowrap; }
.offer-compare td:nth-child(2) { color: var(--muted); white-space: nowrap; }
.compare-status { min-width: 128px; color: var(--muted); font-size: 13px; }
.compare-status span { display: block; }
.compare-status .compare-verified { color: var(--ink); font-weight: 600; }
.savings-insight { min-width: 0; }
.savings-benchmark { padding: clamp(18px,1.8vw,29px); border: 1px solid var(--line); border-radius: 10px; }
.savings-insight p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.savings-insight .insight-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.insight-chart { display: block; width: 100%; height: auto; overflow: visible; }
.insight-chart text { font: 600 11px/1 var(--font); fill: var(--muted); }
.benchmark-ruler { max-width: 420px; }
.benchmark-ruler text { font-size: 12px; }
.ruler-track { fill: var(--surface-hi); }
.ruler-range { fill: var(--accent-wash); stroke: color-mix(in srgb,var(--accent) 35%,transparent); stroke-width: 1; }
.ruler-typical { stroke: var(--ink); stroke-width: 2; }
.ruler-peak { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 2; }
.ruler-today { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.insight-chart .ruler-label { fill: var(--ink); }
.insight-chart .ruler-label.is-today { fill: var(--accent); font-weight: 750; }
.season-chart { max-width: 540px; }
.season-axis { stroke: var(--edge); stroke-width: 1; }
.season-bar { fill: color-mix(in srgb,var(--accent) 28%,var(--surface)); }
.season-month.is-empty .season-bar { fill: var(--line); }
.season-month.is-peak .season-bar { fill: var(--accent); }
.insight-chart .season-month.is-peak text { fill: var(--accent); font-weight: 750; }
.insight-chart .season-value { font-size: 10px; }
.merchant-related .related-copy { display: grid; gap: 1px; min-width: 0; }
.merchant-related .related-copy > span { overflow-wrap: anywhere; }
.merchant-related .related-copy small { color: var(--muted); font-size: 13px; font-weight: 500; }
.merchant-related > a { padding: 6px 0; border-top: 1px solid var(--line); }
.merchant-related > a:first-of-type { border-top: 0; }
.merchant-related > a > .region-badge { margin-left: auto; }
.merchant-related > a > .region-badge + .glyph { margin-left: 0; }
@media (max-width: 600px) {
  .offer-compare table { min-width: 540px; font-size: 13px; }
  .offer-compare td, .offer-compare tbody th, .offer-compare thead th { padding: 10px; }
  .insight-chart .season-value { font-size: 9px; }
}

/* Store page layout: offers with a sidebar of cards from 1080px, two card columns on tablets, one column on phones.
   The sidebar scrolls with the page, so no card is clipped and there is no nested scroll area. */
.merchant-side { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; align-items: start; margin-top: 26px; }
@media (min-width: 700px) and (max-width: 1079px) {
  .merchant-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 1080px) {
  .market-view .merchant-columns { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 32px; align-items: start; }
  .market-view .merchant-columns.solo { display: block; }
  .merchant-side { display: flex; flex-direction: column; align-items: stretch; gap: 18px; margin: 0; }
  .merchant-side > * { flex: none; }
}
/* One card language for the four sidebar blocks. */
.merchant-side > .merchant-summary, .merchant-side > .savings-benchmark, .merchant-side > .merchant-related, .merchant-side > .merchant-story {
  min-width: 0; height: auto; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.merchant-side > * > h2 { margin: 0 0 12px; font: 720 17px/1.3 var(--font); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merchant-side .merchant-summary p, .merchant-side .savings-insight p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.merchant-side .merchant-story p { font-size: 15px; }
.merchant-side .merchant-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.merchant-side .merchant-facts dt { font-size: 11px; letter-spacing: .05em; }
.merchant-side .merchant-facts dd { margin-top: 3px; font: 700 17px/1.25 var(--font); letter-spacing: -.01em; }
.merchant-side .benchmark-ruler { max-width: none; margin: 4px 0 2px; }
.merchant-side .merchant-related > a:last-child { padding-bottom: 0; }
