:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f7;
  --panel: #ffffff;
  --card: #ffffff;
  --line: #d5deea;
  --blue: #bc360a;
  --text: #152033;
  --muted: #5c6b82;
  --soon: #b45309;
  --good: #157a45;
  --tone: #bc360a;
  --head: #ffffff;
  --head-line: #e2e8f2;
  --field: #f7f9fc;
  --nav-hover: #e8eef8;
  --ad: #f7f9fc;
  --ad-ink: #6b7c93;
  --link: #bc360a;
  --rule: #000;
  --date-label: #3d4d66;
  --jump: #f4f7fb;
  --thumb: #e7edf6;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b14;
  --panel: #121a2e;
  --card: #0c1324;
  --line: #2a3d62;
  --blue: #bc360a;
  --text: #f5f7fb;
  --muted: #9aa6bd;
  --soon: #f0b429;
  --good: #7ddea8;
  --tone: #bc360a;
  --head: #05080f;
  --head-line: #1c2944;
  --field: #10182c;
  --nav-hover: #18233c;
  --ad: #0c1322;
  --ad-ink: #7e8cab;
  --link: #e08a62;
  --rule: #f5f7fb;
  --date-label: #c5d0e4;
  --jump: #0e1628;
  --thumb: #182238;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

h1, h2, p { margin: 0; }

a { color: inherit; }

button, input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid #8eb0ff;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--head);
  border-bottom: 1px solid var(--head-line);
}

body.home .site-head { position: static; }

.util-bar {
  background: #fff;
  border-bottom: 1px solid var(--head-line);
}

[data-theme="dark"] .util-bar { background: var(--head); }

.util-inner {
  width: calc(100% - 28px);
  margin: 0 auto;
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
}

.head-top {
  width: calc(100% - 28px);
  margin: 0 auto;
  min-height: 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 0 12px;
}

.head-side {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.menu-toggle,
.nav-close { display: none; }

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(2.15rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue);
  min-width: 0;
}

.top-menu {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  margin: 0;
  background: transparent;
  overflow-x: auto;
}

[data-theme="dark"] .top-menu { background: var(--head); }

.top-menu a {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.top-menu a:first-child { padding-left: 0; }

.top-menu a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 0 -3px 0 #000;
}

.top-menu a:hover { background: var(--nav-hover); }

.nav-bar { display: none; }

.nav-foot {
  min-height: 48px;
  display: flex;
  align-items: stretch;
}

.nav-foot a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  border-right: 1px solid var(--head-line);
}

.nav-foot a[aria-current="page"],
.nav-foot a:hover { color: var(--text); background: var(--nav-hover); }

#nav-stores a {
  display: block;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

#nav-stores a[aria-current="page"],
#nav-stores a:hover { background: var(--nav-hover); }

.search { position: relative; }

.head-search {
  width: min(620px, 100%);
  margin: 0;
  align-self: center;
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  z-index: 60;
  box-shadow: 0 12px 28px rgba(20, 32, 54, 0.12);
}

.search-results[hidden] { display: none; }

.search-results a,
.search-results p {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 8px;
}

.search-results a:hover { background: var(--nav-hover); }

.search-results p { color: var(--muted); margin: 0; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex: none;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  font-weight: 700;
  cursor: pointer;
  color: inherit;
}

.theme-icon { width: 18px; height: 18px; display: block; }

.icon-sun { display: none; }

[data-theme="dark"] .icon-moon { display: none; }

[data-theme="dark"] .icon-sun { display: block; }

.search input {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.head-search input {
  padding: 15px 18px 15px 46px;
  font-size: 1.08rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bc360a' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 20px;
}

.layout {
  width: calc(100% - 28px);
  margin: 16px auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.pickers { margin-bottom: 12px; }

.pickers select {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--rule);
  border-radius: 8px;
  padding: 13px 12px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  min-width: 0;
  max-width: 100%;
}

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--blue);
  color: white;
  padding: 12px 14px;
  border-radius: 0;
  border-bottom: 3px solid #000;
  font-weight: 700;
}

.panel-title { display: grid; gap: 2px; min-width: 0; text-align: left; }

.panel-bar h1,
.panel-bar h2 { font-size: 1.15rem; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }

.panel-title p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.bar-tools { display: flex; align-items: center; gap: 10px; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}

.card[hidden] { display: none; }

.poster { position: relative; display: block; text-decoration: none; }

.thumb {
  aspect-ratio: 3 / 4;
  background: var(--field);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #7f91a8;
}

.cover-logo {
  position: absolute;
  right: 12px;
  bottom: -18px;
  z-index: 2;
  width: 58px;
  height: 58px;
  padding: 6px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(20, 32, 54, 0.16);
  color: #152033;
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
}

.cover-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mini { height: 100%; display: flex; flex-direction: column; }

.mini-head {
  background: var(--tone);
  color: white;
  min-height: 34%;
  padding: 14px 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.mini-tiles {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: #f4efe6;
}

.mini-tiles span { border-radius: 8px; }
.mini-tiles span:nth-child(1) { background: #f3c7b4; }
.mini-tiles span:nth-child(2) { background: #f3e3a4; }
.mini-tiles span:nth-child(3) { background: #cfe0c4; }
.mini-tiles span:nth-child(4) { background: #d5e0f2; }

.card-copy {
  padding: 26px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  text-align: left;
}

.card-titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0;
  row-gap: 0;
  width: 100%;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 700;
  text-align: left;
}

.card h2 {
  display: inline;
  flex: 0 1 auto;
  margin: 0;
  max-width: 100%;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

.card h2 a { color: inherit; text-decoration: none; }

.card h2 a:hover { text-decoration: underline; }

.card-meta {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
}

.store-link {
  display: inline;
  flex: 0 1 auto;
  max-width: 100%;
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.store-link:hover { text-decoration: underline; }

.card-fact {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  justify-content: flex-start;
  font-size: 0.84rem;
  color: var(--muted);
}

.card-fact span:first-child { font-weight: 700; }

.card-fact span:last-child { white-space: nowrap; }

.pdf-file { color: inherit; font-weight: 600; white-space: nowrap; }

.left { color: var(--good); font-weight: 700; white-space: nowrap; }

.card[data-days="0"] .left,
.card[data-days="1"] .left,
.card[data-days="2"] .left { color: var(--soon); }

.go {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
}

.go::after { content: "›"; font-size: 1.2rem; }

.empty {
  text-align: center;
  padding: 36px 16px 42px;
  color: var(--muted);
}

.empty[hidden] { display: none; }

.empty p { color: var(--ink); font-size: 1.2rem; margin-bottom: 6px; }

.ads {
  position: sticky;
  top: calc(var(--head-h, 128px) + 12px);
  display: grid;
  gap: 12px;
}

.side-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}

.top-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.top-row:last-child { border-bottom: 0; }

.top-row:hover { background: var(--nav-hover); }

.top-mark {
  width: 40px;
  height: 40px;
  padding: 3px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: #152033;
  font-size: 0.72rem;
  font-weight: 700;
}

.top-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-copy strong { display: block; font-size: 0.95rem; }

.top-copy span { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }

.top-empty { margin: 0; padding: 12px; color: var(--muted); }

.store-grid { padding: 14px; }

.store-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.store-box:hover { border-color: var(--blue); }

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--tone);
  color: white;
  font-weight: 700;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.store-scroll {
  width: calc(100% - 28px);
  margin: 16px auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
}

body.home .store-scroll {
  position: sticky;
  top: 0;
  z-index: 30;
}

body.home .ads {
  top: calc(var(--stores-h, 200px) + 12px);
}

.logo-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-panel {
  border: 0;
  background: transparent;
  padding: 2px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.section-filter {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
}

.section-filter.is-plain {
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0;
}

.section-filter-label {
  margin: 0;
  flex: none;
  padding-right: 10px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.panel .section-filter {
  width: auto;
  margin: 12px 12px 0;
}

.store-tabs {
  display: flex;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.store-tabs::-webkit-scrollbar { display: none; }

.store-tabs button {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

.store-tabs button.is-on {
  color: var(--blue);
  box-shadow: inset 0 -3px 0 #000;
}

.section-filter-drop { display: none; }

.section-filter-drop select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px 12px;
  font-weight: 700;
}

.store-box.is-hidden,
.store-tab-empty[hidden] { display: none; }

.store-tab-empty { margin: 0; padding: 20px 14px 24px; color: var(--muted); }

.store-logo-card.is-hidden { display: none; }

.store-scroll-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-arrow {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 32, 54, 0.12);
}

.store-arrow svg { width: 22px; height: 22px; }

.store-arrow:hover { border-color: var(--blue); color: var(--blue); }

.store-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.store-scroll-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  padding: 2px;
}

.store-scroll-track::-webkit-scrollbar { display: none; }

.store-logo-card {
  flex: 0 0 118px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 102px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  text-align: center;
}

.store-logo-card img,
.store-logo-fallback {
  width: 86px;
  height: 44px;
  object-fit: contain;
}

.store-logo-fallback {
  display: grid;
  place-items: center;
  color: #152033;
  font-weight: 700;
}

.store-logo-name {
  color: #152033;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-view-all {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--link);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}

.store-view-all:hover { border-color: var(--blue); }

.store-box strong { display: block; }
.store-box span { color: var(--muted); font-size: 0.85rem; }

.site-foot {
  margin-top: 28px;
  background: #fff;
  color: #152033;
  border-top: 1px solid #d5deea;
  font-size: 0.9rem;
}

.foot-inner {
  width: calc(100% - 28px);
  margin: 0 auto;
  min-height: 72px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; }

.foot-nav a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.foot-nav a:hover { text-decoration: underline; }

.contact-copy {
  padding: 18px 16px 24px;
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.contact-copy a { color: var(--link); font-weight: 700; }

.tone-blue { --tone: #1e4d8c; }
.tone-teal { --tone: #0f6e68; }
.tone-rust { --tone: #9a3412; }
.tone-amber { --tone: #a16207; }
.tone-crimson { --tone: #9f1239; }
.tone-navy { --tone: #1e3a5f; }
.tone-violet { --tone: #5b21b6; }

.offer-details {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.offer-back { color: var(--link); }

.offer-identity { display: flex; gap: 14px; align-items: center; }

.offer-identity .logo { width: 56px; height: 56px; border-radius: 12px; }

.offer-identity .store { color: var(--link); font-size: 1.05rem; font-weight: 700; text-decoration: none; }

.offer-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.offer-meta div {
  background: var(--field);
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.offer-meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.offer-meta dd { margin: 2px 0 0; font-weight: 700; }

.reader-dock {
  border-bottom: 1px solid var(--line);
}

.reader-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
}

.reader-pager button {
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.reader-pager button:disabled { opacity: 0.4; cursor: default; }

.page-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  padding: 0 12px 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  z-index: 25;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.page-thumbs button {
  flex: 0 0 auto;
  width: 84px;
  padding: 3px;
  border: 2px solid transparent;
  background: var(--field);
  cursor: pointer;
}

.page-thumbs button[aria-current="true"] { border-color: var(--blue); }

.page-thumbs img,
.page-thumbs .thumb-fallback {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: contain;
  background: #fff;
}

.page-thumbs span {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

body:has(#flyer:not([hidden])) .site-head { position: static; }

body:has(#flyer:not([hidden])) { --head-h: 0px; }

.sticky-stack {
  display: contents;
}

.detail-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border-radius: 15px 15px 0 0;
}

.back { color: white; font-weight: 700; text-decoration: none; }

.who { display: flex; align-items: center; gap: 10px; min-width: 0; }

.who .logo { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); flex: none; }

.who h1 { font-size: 1.15rem; line-height: 1.15; }

.who .store { color: #dbe6ff; font-size: 0.82rem; text-decoration: none; font-weight: 700; }

.when { text-align: right; font-size: 0.88rem; }
.when p:first-child { font-weight: 700; }

.pager { white-space: nowrap; font-size: 0.88rem; }

.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 10px;
  background: var(--jump);
  border-bottom: 1px solid var(--line);
}

.jumps button {
  min-width: 36px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.jumps button[aria-current="true"] {
  background: var(--blue);
  border-color: var(--blue);
}

.sheets {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 16px;
  min-width: 0;
  max-width: 100%;
}

.sheet-block {
  scroll-margin-top: calc(var(--pages-h, 150px) + 12px);
  min-width: 0;
  max-width: 100%;
}

.sheet-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 8px 2px;
}

.pdf-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 1 / 1.35;
  background: #fffdf8;
  color: #1c1916;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20, 32, 54, 0.12);
}

.pdf-page.has-image {
  aspect-ratio: auto;
  background: #fff;
}

.sheet-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.sheet-banner {
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    var(--tone);
  color: white;
  padding: 36px 32px 28px;
}

.sheet-banner .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.85;
}

.sheet-banner h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 8px 0;
  color: white;
}

.sheet-banner .range {
  display: inline-block;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.9rem;
}

.pdf-canvas {
  flex: 1;
  margin: 18px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(#fffdf8, #fffdf8 27px, #efe6d8 28px);
}

.missing { padding: 28px 16px 36px; text-align: center; }
.missing .back { color: var(--link); }
.missing[hidden], #flyer[hidden] { display: none; }
.missing h1 { margin-bottom: 8px; }

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-bars { position: relative; }

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 28, 0.45);
  z-index: 60;
}

.nav-backdrop[hidden] { display: none; }

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-meta { grid-template-columns: 1fr 1fr; }
  .ads { position: static; }
  .detail-bar { grid-template-columns: 1fr auto; }
  .back { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }

  .head-top {
    display: flex;
    flex-wrap: wrap;
    min-height: 0;
    padding: 12px 0 8px;
    gap: 10px;
  }

  .brand { font-size: 1.7rem; }

  .head-side { margin-left: auto; }

  .head-search {
    width: min(620px, 100%);
    margin: 0 0 4px;
  }

  .top-menu a { padding: 0 12px; }

  .top-menu a:first-child { padding-left: 0; }

  .nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 70;
    background: var(--panel);
    border-top: 0;
    border-right: 1px solid var(--line);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.nav-open .nav-bar { transform: none; }

  .drawer-top {
    display: block;
    flex: none;
    padding: 14px 14px 8px;
  }

  .nav-close {
    display: block;
    margin-left: auto;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    background: var(--field);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .drawer-search { width: 100%; }

  .drawer-search .search-results {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }

  .nav {
    display: block;
    flex: 1;
    min-height: 0;
    width: auto;
    margin: 0;
    padding: 4px 14px 12px;
    overflow: auto;
  }

  .nav-foot {
    width: auto;
    margin: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: none;
    padding: 12px;
    border-top: 1px solid var(--line);
    background: var(--panel);
  }

  .nav-foot a {
    justify-content: center;
    border: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 12px 8px;
    background: var(--field);
  }

  .store-arrow { width: 34px; height: 34px; }
  .store-logo-card { flex-basis: 104px; min-height: 92px; }
}

body.nav-open { overflow: hidden; }

@media (max-width: 700px) {
  .util-inner,
  .head-top,
  .layout,
  .store-scroll,
  .foot-inner { width: calc(100% - 16px); }

  .util-inner { min-height: 32px; }
  .head-top { min-height: 52px; padding: 6px 0; gap: 10px; }
  .brand { font-size: 1.45rem; }
  .head-search { margin-bottom: 4px; }
  .head-search input { font-size: 16px; padding: 13px 14px 13px 42px; }

  .layout { margin-top: 12px; }

  body:has(#flyer:not([hidden])) .store-scroll { display: none; }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .card-titleline { font-size: 0.84rem; }
  .card-copy { padding: 22px 10px 10px; gap: 6px; }
  .card-fact { font-size: 0.78rem; }
  .go { padding: 10px 8px; }

  .panel-bar { flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 10px 12px; }
  .panel-bar h1 { font-size: 1.05rem; }
  .panel-title p { font-size: 0.78rem; }

  .offer-details { padding: 10px 12px; gap: 8px; }
  .offer-identity { gap: 10px; }
  .offer-identity .logo { width: 40px; height: 40px; }
  .offer-meta { grid-template-columns: 1fr 1fr; gap: 6px; }
  .offer-meta div { padding: 6px 8px; }
  .offer-meta dd { font-size: 0.9rem; }

  .page-thumbs button { width: 72px; }
  .page-thumbs img,
  .page-thumbs .thumb-fallback { height: 96px; }

  .sheets { padding: 8px; gap: 12px; }

  .sheet-block { scroll-margin-top: calc(var(--pages-h, 130px) + 8px); }

  .reader-pager button { min-height: 44px; min-width: 44px; padding: 8px 14px; }

  .store-tabs { display: none; }
  .section-filter { padding: 8px 10px; }
  .section-filter.is-plain { padding: 0; background: transparent; border: 0; }
  .section-filter-drop { display: block; flex: 1; min-width: 0; }

  input, select, textarea { font-size: 16px; }

  .foot-inner { min-height: 0; padding: 14px 0 18px; }
  .foot-nav { gap: 12px 16px; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-bar { transition: none; }
  .store-scroll-track { scroll-behavior: auto; }
}
