@font-face {
  font-family: "InterVar";
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "InterVar";
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b1224;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6e8f0;
  --bg: #f6f7fb;
  --card: #fff;
  --brand: #4338ca;
  --brand-2: #0891b2;
  --brand-soft: #eef0ff;
  --accent: #f97316;
  --hot: #e11d48;
  --ok: #059669;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 24px 48px -20px rgba(30, 27, 75, 0.28);
  --font: "InterVar", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  font-weight: 750;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
.sr-only,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap.narrow {
  max-width: 860px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.ic {
  display: inline-flex;
  vertical-align: -0.2em;
}
.section {
  padding-top: 36px;
  padding-bottom: 12px;
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(230, 232, 240, 0.8);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo:hover {
  text-decoration: none;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #4338ca 45%, #0891b2);
  box-shadow: 0 6px 16px -6px rgba(67, 56, 202, 0.7);
}
.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
}
.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f3f9;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 12px;
  height: 42px;
  width: 280px;
  color: var(--muted);
  transition: 0.2s;
}
.header-search:focus-within {
  background: #fff;
  border-color: #c7cbf7;
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  color: var(--ink);
}
.mobile-menu {
  display: none;
  margin-left: auto;
}
.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.burger {
  display: grid;
  gap: 5px;
}
.burger i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px;
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}
.mobile-panel a {
  padding: 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
}
.mobile-panel a:hover {
  background: var(--brand-soft);
  text-decoration: none;
}
.mobile-search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 6px;
}

/* ---------- buttons / chips / badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 8px 20px -10px rgba(67, 56, 202, 0.8);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 12px 24px -10px rgba(67, 56, 202, 0.9);
}
.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover {
  box-shadow: var(--shadow);
}
.btn-light {
  background: #fff;
  color: var(--brand);
}
.btn-block {
  width: 100%;
  margin-top: 10px;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 9px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.chip:hover {
  border-color: #c7cbf7;
  color: var(--brand);
  text-decoration: none;
}
.chip-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.chip-on:hover {
  color: #fff;
}
.chip .count {
  font-size: 0.75rem;
  background: rgba(100, 116, 139, 0.12);
  border-radius: 999px;
  padding: 1px 7px;
}
.chip-on .count {
  background: rgba(255, 255, 255, 0.2);
}
.chip-bank::before,
.bank-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--b, var(--brand));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--b, var(--brand)) 20%, transparent);
}
.bank-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: thin;
}
.bank-row {
  padding-top: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-soft {
  background: #eef2ff;
  color: #3730a3;
}
.badge-hot {
  background: #ffe4e6;
  color: #be123c;
}
.badge-gray {
  background: #f1f5f9;
  color: #64748b;
}
.badge-sponsor {
  background: #fef3c7;
  color: #92400e;
}

/* ---------- home ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  background: radial-gradient(900px 420px at 85% -10%, rgba(8, 145, 178, 0.18), transparent 60%), radial-gradient(700px 400px at -5% 20%, rgba(99, 102, 241, 0.2), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg));
  border-bottom: 1px solid var(--line);
}
.home-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.home-hero h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  letter-spacing: -0.035em;
  background: linear-gradient(120deg, var(--ink) 30%, #4338ca 70%, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 6px 12px;
}
.lead {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 62ch;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 7px 7px 7px 16px;
  box-shadow: var(--shadow-lg);
  max-width: 620px;
  color: var(--muted);
  margin: 18px 0;
}
.hero-search input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 1.05rem;
  min-width: 0;
  color: var(--ink);
  background: transparent;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-stack {
  position: relative;
  height: 380px;
}
.hero-stack img {
  position: absolute;
  width: 78%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}
.stack-0 {
  right: 0;
  top: 0;
  transform: rotate(3deg);
  z-index: 3;
}
.stack-1 {
  left: 0;
  top: 120px;
  transform: rotate(-5deg);
  z-index: 2;
}
.stack-2 {
  right: 6%;
  bottom: -10px;
  transform: rotate(-1deg);
  z-index: 1;
  opacity: 0.9;
}
.band {
  background: linear-gradient(180deg, #eef0ff, #f6f7fb);
  border-block: 1px solid var(--line);
  margin-top: 36px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(600px 200px at 90% 0, rgba(34, 211, 238, 0.35), transparent 60%), linear-gradient(135deg, #1e1b4b, #4338ca);
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* ---------- section head / grids / cards ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 0;
}
.more {
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card-media {
  display: block;
  aspect-ratio: 1200 / 630;
  background: #eef0f6;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-media img {
  transform: scale(1.03);
}
.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
}
.card-title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 2px 0 0;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a {
  color: var(--ink);
}
.card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card {
  position: relative;
}
.card-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reward {
  margin: 0;
  font-weight: 800;
  color: var(--brand);
  font-size: 0.95rem;
}
.card-foot {
  margin-top: auto;
  padding-top: 6px;
}

/* tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.tile-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 28px;
}
.link-tile {
  --h: 240;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  transition: 0.18s;
}
.link-tile:hover {
  text-decoration: none;
  border-color: hsl(var(--h) 70% 80%);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.tile-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: hsl(var(--h) 85% 95%);
  color: hsl(var(--h) 65% 38%);
}
.tile-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.tile-text strong {
  font-size: 0.98rem;
}
.tile-text span {
  color: var(--muted);
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.store-tile {
  --h: 140;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  transition: 0.18s;
}
.store-tile:hover {
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.store-initial {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 30) 70% 35%));
}
.store-name {
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.2;
}
.store-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.store-tile.has-cover {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  padding: 0 0 10px;
  overflow: hidden;
  row-gap: 2px;
}
.store-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  background: #eef0f6;
  margin-bottom: 8px;
}
.store-ph {
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 55%), linear-gradient(135deg, hsl(var(--h) 65% 45%), hsl(calc(var(--h) + 35) 70% 32%));
}
.has-cover .store-name,
.has-cover .store-sub {
  padding: 0 12px;
}

/* brochure gallery */
.brochure {
  padding: 4px 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.brochure:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}
.brochure-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.brochure-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.brochure-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.brochure-pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.brochure-pages.few {
  grid-template-columns: repeat(auto-fill, minmax(220px, 300px));
}
.bpage {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f1f3f9;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.bpage:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.bpage img {
  width: 100%;
  height: auto;
}
.bpage-no {
  position: absolute;
  left: 8px;
  bottom: 8px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: rgba(11, 18, 36, 0.72);
}
.brochure-foot {
  margin: 12px 0 0;
}
.lightbox {
  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 10, 20, 0.92);
}
.lightbox::backdrop {
  background: rgba(8, 10, 20, 0.92);
}
.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  margin: 4vh auto 0;
  border-radius: 8px;
}
.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.lb-prev {
  left: 14px;
}
.lb-next {
  right: 14px;
}
.lb-close {
  top: 30px;
  right: 14px;
  transform: none;
}
.lb-count {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  color: #cbd5e1;
  font-size: 0.9rem;
}
.letter-group {
  margin-bottom: 18px;
}
.letter {
  font-size: 1rem;
  color: var(--brand);
  margin: 0 0 8px;
}

/* ---------- page hero / article layout ---------- */
.page-hero {
  padding: 22px 0 30px;
  background: radial-gradient(800px 300px at 100% 0, rgba(8, 145, 178, 0.1), transparent 60%), radial-gradient(600px 300px at 0 0, rgba(99, 102, 241, 0.12), transparent 60%), #fff;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--muted);
}
.crumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: #a3aab8;
}
.crumbs a {
  color: var(--ink-2);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.hero-grid.no-cover {
  grid-template-columns: 1fr;
  max-width: 860px;
}
.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.hero-reward {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #0891b2);
  padding: 8px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 24px -12px rgba(79, 70, 229, 0.9);
}
.hero-cover {
  margin: 0;
}
.hero-cover img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.updated {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
  margin: 6px 0 0;
}
.updated .sep {
  opacity: 0.5;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}
.main-col {
  min-width: 0;
}
.side-col {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 88px;
}
.sticky {
  position: sticky;
  top: 88px;
}
.hero-text {
  min-width: 0;
}
.side-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.side-title {
  font-weight: 800;
  margin: 0 0 10px;
}
.side-links {
  display: grid;
  gap: 2px;
}
.side-links a {
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 550;
}
.side-links a:hover {
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
}
.side-links.cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}
.countdown {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 8px 0 0;
}
.notice {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--brand-soft);
  border: 1px solid #dfe2ff;
  margin-bottom: 18px;
}
.notice-warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.sponsor-notice {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

/* fact card / key points / toc */
.fact-card,
.brochure-box,
.child-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.h-small {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fact-card dl,
.mini-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 20px;
  margin: 0;
}
.fact-card dt,
.mini-facts dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.fact-card dd,
.mini-facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}
.mini-facts {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.brochure-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.brochure-list li {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}
.brochure-list p {
  margin: 6px 0 0;
}
.key-points {
  position: relative;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 22px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #818cf8, #22d3ee) border-box;
  border: 2px solid transparent;
}
.kp-title {
  font-weight: 800;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--brand);
  margin: 0 0 8px;
}
.key-points ul {
  margin: 0;
  padding-left: 20px;
}
.key-points li {
  margin: 4px 0;
}
.toc {
  background: #f8f9fe;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.toc-title {
  font-weight: 800;
  margin: 0 0 6px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}
.toc li {
  margin: 3px 0;
  break-inside: avoid;
}
.toc a {
  color: var(--ink-2);
  font-size: 0.93rem;
}

/* prose */
.prose {
  font-size: 1.04rem;
  color: #1e293b;
}
.prose h2 {
  margin-top: 1.8em;
  padding-left: 14px;
  border-left: 4px solid;
  border-image: linear-gradient(#6366f1, #06b6d4) 1;
}
.prose h3 {
  margin-top: 1.4em;
}
.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 1.1em;
}
.prose li {
  margin: 6px 0;
}
.prose li::marker {
  color: var(--brand);
  font-weight: 700;
}
.prose strong {
  color: var(--ink);
}
.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 12px 12px 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
th,
td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #f6f7fb;
  font-weight: 700;
}
tr:last-child td {
  border-bottom: 0;
}
.steps ol {
  counter-reset: s;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.steps li::before {
  content: counter(s);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #0891b2);
}
.conditions ul {
  padding-left: 20px;
}
.faq {
  margin: 36px 0 24px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  padding: 15px 28px 15px 0;
  font-weight: 700;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 1.4rem;
  color: var(--brand);
  transition: 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 16px;
  color: var(--ink-2);
}
.sources {
  margin: 28px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.sources ul {
  margin: 0;
  padding-left: 18px;
}
.share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 0 8px;
  border-top: 1px solid var(--line);
}
.share a,
.share button {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
}
.mcc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.mcc-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.mcc-chip strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--brand);
}
.pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0;
}
.pager a,
.pager span {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  color: var(--ink-2);
}
.pager .current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- calculator ---------- */
.calc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}
.calc-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 1.05rem;
}
.calc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.field-label {
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.field-help {
  font-size: 0.78rem;
  color: var(--muted);
}
.field input,
.field select,
.field textarea,
.filter-bar input,
.filter-bar select,
.admin-actions input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d9dce7;
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #a5abf3;
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.input-wrap {
  position: relative;
  display: block;
}
.input-wrap .suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.85rem;
  pointer-events: none;
}
.input-wrap input {
  padding-right: 56px;
}
.calc-out {
  margin-top: 8px;
}
.calc-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #312e81, #4338ca 50%, #0e7490);
}
.calc-main strong {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}
.calc-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}
.calc-rows div {
  background: #f6f7fb;
  border-radius: 12px;
  padding: 10px 14px;
}
.calc-rows dt {
  font-size: 0.8rem;
  color: var(--muted);
}
.calc-rows dd {
  margin: 2px 0 0;
  font-weight: 700;
}
.calc-rows.bad dd {
  color: var(--hot);
}
.calc-table {
  margin-top: 12px;
}
.calc-table summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}
.calc-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 12px 0 0;
}

/* ---------- forms ---------- */
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid.four {
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 16px;
  font-size: 0.92rem;
}
.form-status {
  margin: 12px 0 0;
  font-weight: 600;
}
.form-status.ok {
  color: var(--ok);
}
.form-status.err {
  color: var(--hot);
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 56px;
  background: #0b1224;
  color: #cbd5e1;
  padding: 48px 0 24px;
}
.site-footer .logo {
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 0.92rem;
}
.footer-brand .muted {
  color: #8391a7;
}
.footer-title {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 12px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.site-footer a {
  color: #cbd5e1;
  font-size: 0.92rem;
}
.site-footer a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  font-size: 0.82rem;
  color: #8391a7;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  .header-search {
    width: auto;
    flex: 1;
    max-width: 420px;
  }
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tile-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mobile-menu {
    display: block;
    margin-left: 0;
  }
}
@media (max-width: 900px) {
  .home-hero-inner,
  .hero-grid,
  .content-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .hero-stack {
    height: 240px;
  }
  .side-col {
    position: static;
  }
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .toc ol {
    columns: 1;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }
  .form-grid.four {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .header-search {
    display: none;
  }
  .mobile-menu {
    margin-left: auto;
  }
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .tile-grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .side-links.cols,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .home-hero {
    padding-top: 32px;
  }
  .hero-stack {
    display: none;
  }
  .hero-search button {
    padding: 10px 14px;
  }
}

/* ---------- admin ---------- */
.admin {
  background: #f4f5fa;
}
.admin-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: #0b1224;
  color: #fff;
  flex-wrap: wrap;
}
.admin-bar .logo {
  color: #fff;
}
.admin-bar nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-bar nav a,
.linkish {
  color: #cbd5e1;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.admin-bar nav a:hover,
.linkish:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}
.admin-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.auth-card {
  max-width: 420px;
  margin: 8vh auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.code-input {
  font-size: 1.8rem !important;
  letter-spacing: 0.4em;
  text-align: center;
  font-weight: 800;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  color: var(--ink);
}
.stat strong {
  font-size: 1.8rem;
}
.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0;
}
.admin-actions form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-actions .wide,
.filter-bar .wide {
  min-width: 280px;
  flex: 1;
}
.admin-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}
.admin-table td {
  font-size: 0.9rem;
}
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}
.filter-bar input,
.filter-bar select {
  width: auto;
}
.edit-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
textarea.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}
form.inline {
  display: inline;
}
.nowrap {
  white-space: nowrap;
}
.msg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.msg-new {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px var(--brand-soft);
}
