/* 51青楼 · 51qinglou.lol
   design tokens 取自本地保存站点的主题样式表与页面类名
   （主题色 #EC4899、页面底 #F5F5F5、正文 #525252、檐线 H1 衬线、圆角 0.25rem）。
   全站只做浅色底。 */

:root {
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --surface-2: #FAFAFA;
  --tint: #FDF2F8;
  --ink: #1F2937;
  --ink-2: #525252;
  --ink-3: #616161;
  --muted: #5F6469;
  --line: #E5E7EB;
  --line-2: #F5C6DC;
  --primary: #EC4899;
  --primary-deep: #A8115C;
  --primary-fill: #C2185B;
  --primary-fill-hover: #9E1350;
  --gold: #F9B233;
  --gold-deep: #7A4E00;
  --gold-tint: #FFF7E8;
  --r-card: 4px;
  --r-tile: 4px;
  --r-pill: 999px;
  --r-search: 24px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-lift: 0 6px 18px rgba(236, 72, 153, .14);
  --ease: cubic-bezier(.25, .1, .25, 1);
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", "Source Han Serif SC", serif;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --container: 1160px;
  --head-h: 56px;
  --cta-space: 98px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-bottom: calc(var(--cta-space) + 8px);
  background-color: #F5F5F5;
  color: #525252;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
h1, h2 { font-family: var(--font-serif); font-weight: 700; letter-spacing: .5px; }
h1 { font-size: 24px; line-height: 1.4; }
h2 { font-size: 20px; }
h3 { font-family: var(--font); font-size: 17px; font-weight: 700; }
h4 { font-family: var(--font); font-size: 16px; font-weight: 700; }
p { margin: 0; overflow-wrap: anywhere; }
ul, ol { margin: 0; padding-left: 1.2em; }
li { overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--primary-deep); text-decoration: none; }
a:hover { color: var(--primary-deep); }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 12px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--primary-fill); color: #fff; padding: 10px 16px; }
.skip:focus { left: 0; }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.head-strip { height: 2px; background: var(--primary-fill); }
.head-bar {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--head-h);
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 12px;
}
.head-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; cursor: pointer;
  background: transparent; border: 0; color: var(--primary-deep);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; display: block; }
.head-menu { display: none; align-items: center; gap: 2px; margin-left: 14px; }
.head-menu a {
  font-size: 15px; color: var(--ink-2);
  padding: 8px 12px; white-space: nowrap;
}
.head-menu a:hover { color: var(--primary-deep); }
.head-menu a[aria-current="page"] { color: var(--primary-deep); font-weight: 700; }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.head-search { display: none; position: relative; }
.head-search input {
  width: 220px; height: 38px; padding: 0 42px 0 16px;
  font-size: 14px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-search);
}
.head-search input::placeholder { color: var(--muted); }
.head-search .go {
  position: absolute; right: 12px; top: 0; height: 38px; width: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; color: var(--primary-deep);
}
.search-out {
  position: absolute; left: 0; right: 0; top: 44px; z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12); overflow: hidden;
}
.search-out[hidden] { display: none; }
.search-out a { display: block; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.search-out a:last-child { border-bottom: 0; }
.search-out a:hover { background: var(--tint); }
.search-out b { display: block; font-size: 14px; color: var(--ink); }
.search-out span { font-size: 12px; color: var(--muted); }
.search-out .none { padding: 10px 14px; font-size: 13px; color: var(--muted); }

.head-open {
  display: inline-flex; align-items: center; min-height: 34px;
  padding: 5px 13px; border-radius: var(--r-pill); font-size: 14px;
  background: var(--primary-fill); color: #fff; white-space: nowrap;
}
.head-open:hover { background: var(--primary-fill-hover); color: #fff; }
.head-ghost {
  display: none; align-items: center; min-height: 34px;
  padding: 5px 13px; border-radius: var(--r-pill); font-size: 14px;
  border: 1px solid var(--line-2); color: var(--primary-deep); white-space: nowrap;
}
.head-ghost:hover { background: var(--tint); color: var(--primary-deep); }

/* drawer */
.drawer[hidden] { display: none; }
.drawer-mask { position: fixed; inset: 0; z-index: 90; background: rgba(31, 41, 55, .45); }
.drawer-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(84vw, 330px); padding: 14px 16px 28px; overflow-y: auto;
  background: #fff; border-left: 1px solid var(--line);
  box-shadow: -10px 0 26px rgba(0, 0, 0, .16);
  animation: drawer-in .3s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-search { margin-bottom: 10px; }
.drawer-search input {
  width: 100%; height: 38px; padding: 0 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-2);
}
.drawer-group { margin-bottom: 12px; }
.drawer-group h2 { font-family: var(--font); font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.drawer-group a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 16px; color: var(--ink-2); }
.drawer-group a:hover { color: var(--primary-deep); background: var(--tint); }
.drawer-close {
  width: 36px; height: 36px; margin-left: auto; cursor: pointer; font-size: 20px; line-height: 1;
  background: transparent; border: 0; color: var(--ink-2);
}

/* tip bar */
.tipbar {
  display: flex; align-items: center; gap: 9px;
  margin: 10px 0; padding: 9px 12px;
  background: var(--gold-tint); border: 1px solid #F2E0BC; border-radius: var(--r-card);
}
.tipbar .dot {
  width: 22px; height: 22px; flex: none; border-radius: var(--r-tile);
  background: var(--gold); color: #4A2F00;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.tipbar p { font-size: 13px; color: var(--ink-2); }

/* hero */
.cf-hero { margin: 12px 0 0; }
.cf-hero-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cf-hero h1 { margin: 0; color: var(--ink); }
.cf-hero-count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cf-hero p { margin: 0; font-size: 13px; line-height: 1.7; max-width: 760px; color: var(--muted); }
.cf-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 10px 0 0; flex-wrap: wrap; }
.cf-crumbs a { color: var(--muted); }
.cf-crumbs a:hover { color: var(--primary-deep); }
.cf-crumbs .sep { color: #C4C4C4; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.tiles-shell { background: #fff; border-radius: var(--r-card); padding: 10px 6px; margin: 10px 0; box-shadow: var(--shadow-card); }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 2px; text-align: center; border-radius: var(--r-tile);
}
.tile:hover { background: var(--tint); }
.tile i { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary-deep); }
.tile i svg { width: 26px; height: 26px; display: block; }
.tile span { font-size: 12px; color: var(--ink-2); line-height: 1.35; }

/* city chips */
.citymod { background: #fff; border-radius: var(--r-card); padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-card); }
.city-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.city-row:last-child { margin-bottom: 0; }
.city-label { font-size: 13px; color: var(--muted); flex: none; padding-top: 7px; }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 240px; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: var(--r-pill); padding: 6px 13px; font-size: 13.5px;
  cursor: pointer; min-height: 36px;
}
.chip:hover { border-color: var(--line-2); color: var(--primary-deep); background: var(--tint); }
.chip[aria-pressed="true"] { background: var(--primary-fill); border-color: var(--primary-fill); color: #fff; }
.chip-all { border-style: dashed; color: var(--primary-deep); }
[data-extra][hidden] { display: none; }

/* sort control */
.list-head { display: flex; align-items: center; gap: 10px; padding: 6px 2px 10px; flex-wrap: wrap; }
.list-head .t { display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--ink); }
.list-head .t svg { color: var(--primary-deep); width: 18px; height: 18px; }
.sortbox { position: relative; }
.sortbtn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: var(--r-pill); padding: 6px 12px; font-size: 13.5px; cursor: pointer; min-height: 36px;
}
.sortbtn:hover { border-color: var(--line-2); color: var(--primary-deep); }
.sortmenu {
  position: absolute; left: 0; top: 42px; z-index: 40; min-width: 150px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12); overflow: hidden;
}
.sortmenu[hidden] { display: none; }
.sortmenu button {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  background: transparent; border: 0; cursor: pointer; font-size: 14px; color: var(--ink-2);
}
.sortmenu button:hover { background: var(--tint); color: var(--primary-deep); }
.sortmenu button[aria-pressed="true"] { color: var(--primary-deep); font-weight: 700; }

/* list card */
.tlist { display: grid; gap: 8px; }
.lcard {
  background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: 12px; display: block;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.lcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.lcard[hidden] { display: none; }
.lcard-title { font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.lcard:hover .lcard-title { color: var(--primary-deep); }
.lcard-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.lcard-meta span { display: inline-flex; align-items: center; gap: 4px; }
.lcard-meta svg { width: 13px; height: 13px; }
.lcard-note { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.lcard-city { font-size: 13px; color: var(--primary-deep); display: inline-flex; align-items: center; gap: 4px; }
.lcard-city svg { width: 13px; height: 13px; }
.lcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12px; border-radius: var(--r-tile); padding: 2px 7px; background: var(--tint); color: var(--primary-deep); }
.tag-gold { background: var(--gold-tint); color: var(--gold-deep); }

/* filter card (merchant) */
.filter-zone { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 12px; margin-bottom: 10px; }
.filter-row { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; flex-wrap: wrap; }
.filter-row .lb { font-size: 13px; color: var(--muted); flex: none; padding-top: 7px; min-width: 3.5em; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 240px; min-width: 0; }
.chip-active { background: var(--primary-fill); border-color: var(--primary-fill); color: #fff; }

/* video grid */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vcard { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 8px; display: block; transition: transform .25s var(--ease); }
.vcard:hover { transform: translateY(-2px); }
.vthumb {
  position: relative; width: 100%; padding-bottom: 133.33%;
  background: #EDEDED; border-radius: var(--r-tile); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.vthumb .mark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #B9B9B9;
}
.vthumb .mark svg { width: 40px; height: 40px; }
.vinfo { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin: 7px 0 4px; }
.vinfo .play { display: inline-flex; align-items: center; gap: 4px; }
.vinfo .play svg { width: 12px; height: 12px; color: var(--primary-deep); }
.vtitle { font-size: 13px; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* generic panels */
.panel { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 14px; margin-bottom: 10px; }
.sec { margin-bottom: 16px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.sec-head p { font-size: 13px; color: var(--muted); }

/* tables */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
table { width: 100%; min-width: 560px; border-collapse: collapse; }
caption { caption-side: top; text-align: left; padding: 10px 12px 0; font-size: 13px; color: var(--muted); }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; font-size: 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* prose */
.block { margin-bottom: 16px; }
.block h2 { margin-bottom: 8px; }
.block h3 { margin: 14px 0 6px; }
.block p { color: var(--ink-2); margin-bottom: 9px; }
.block ul, .block ol { color: var(--ink-2); margin-bottom: 9px; }
.block li { margin-bottom: 5px; }
.block li b { color: var(--ink); }
.callout {
  background: var(--tint); border: 1px solid var(--line-2); border-radius: var(--r-card);
  padding: 11px 13px; margin: 11px 0; font-size: 14px; color: var(--ink-2);
}
.callout-gold { background: var(--gold-tint); border-color: #F2E0BC; }
.steps { counter-reset: step; display: grid; gap: 8px; padding: 0; list-style: none; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 11px 13px 11px 44px; font-size: 14px; color: var(--ink-2);
}
.steps li::before {
  content: counter(step); position: absolute; left: 11px; top: 11px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-fill); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.steps li b { display: block; color: var(--ink); margin-bottom: 2px; }

details.faq { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 12px 14px; margin-bottom: 8px; }
details.faq summary {
  cursor: pointer; font-size: 15px; font-weight: 700; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "\25BE"; color: var(--primary-deep); flex: none; }
details.faq[open] summary::after { content: "\25B4"; }
details.faq p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
details.faq p + p { margin-top: 7px; }

.qlist { display: grid; gap: 10px; }
.qitem { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 13px 14px; }
.qitem h3 { font-size: 15px; margin-bottom: 5px; }
.qitem p { font-size: 14px; color: var(--ink-2); }
.qitem p + p { margin-top: 6px; }

.jump { display: grid; gap: 8px; }
.jump a { display: block; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 12px 13px; }
.jump a:hover { box-shadow: var(--shadow-lift); }
.jump b { display: block; font-size: 15px; color: var(--ink); }
.jump span { font-size: 13px; color: var(--muted); }

.entry { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 13px 14px; margin-bottom: 8px; }
.entry h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.entry h3 em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--primary-deep); background: var(--tint); border-radius: var(--r-tile); padding: 2px 7px; }
.entry p { font-size: 14px; color: var(--ink-2); margin-top: 5px; }

/* footer */
.site-foot { margin-top: 18px; background: #fff; border-top: 1px solid var(--line); padding: 18px 0 22px; }
.foot-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.foot-brand img { height: 28px; width: auto; }
.foot-brand a { font-size: 16px; font-weight: 700; color: var(--ink); }
.foot-brand a:hover { color: var(--primary-deep); }
.foot-cols { display: grid; gap: 14px; margin-bottom: 14px; }
.foot-col h2 { font-family: var(--font); font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.foot-col a { display: block; font-size: 14px; color: var(--ink-2); padding: 3px 0; }
.foot-col a:hover { color: var(--primary-deep); }
.foot-note { font-size: 13px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 12px; }
.foot-copy { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* back to top */
.to-top {
  position: fixed; right: 14px; z-index: 70;
  bottom: calc(var(--cta-space) + 12px);
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #6B7280; color: #fff; border: 0; cursor: pointer;
}
.to-top:hover { background: #4B5563; }
.to-top[hidden] { display: none; }

/* sole xunfang CTA */
.site-cta {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 80;
  display: flex; align-items: center; justify-content: center;
  width: min(500px, calc(100% - 32px)); min-height: 56px; padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--primary-fill); color: #fff;
  font-size: 18px; font-weight: 800; letter-spacing: .01em; text-align: center;
  box-shadow: 0 10px 24px rgba(194, 24, 91, .32), 0 2px 6px rgba(0, 0, 0, .12);
  overflow: hidden;
  transition: background-color .25s var(--ease);
}
.site-cta:hover, .site-cta:focus-visible { background: var(--primary-fill-hover); color: #fff; }
.site-cta:active { background: var(--primary-fill-hover); }
.site-cta .cta-text { position: relative; z-index: 2; }
.site-cta::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -26%; height: 128%;
  background: radial-gradient(62% 96% at 50% 112%, rgba(122, 62, 0, .26) 0%, rgba(122, 62, 0, .12) 46%, rgba(122, 62, 0, 0) 74%);
  opacity: 0; transform: scale(1); transform-origin: 50% 100%;
  animation: cta-lamp 2.9s cubic-bezier(.2, .7, .3, 1) infinite;
  z-index: 0; pointer-events: none;
}
.site-cta::after {
  content: ""; position: absolute; left: 20%; right: 20%; top: 50%; height: 2px;
  background: rgba(255, 255, 255, .78); border-radius: 2px;
  transform: scaleX(0) translateX(120%); transform-origin: right;
  animation: cta-halfstitch 2.9s cubic-bezier(.2, .7, .3, 1) infinite;
  z-index: 1; pointer-events: none;
}
@keyframes cta-lamp {
  0%, 48% { opacity: 0; transform: scale(1); }
  62% { opacity: 1; transform: scale(1.05); }
  88%, 100% { opacity: 0; transform: scale(1.1); }
}
@keyframes cta-halfstitch {
  0%, 52% { transform: scaleX(0) translateX(120%); opacity: 0; }
  60% { opacity: 1; }
  78% { transform: scaleX(1) translateX(0); }
  90%, 100% { transform: scaleX(1) translateX(0); opacity: 0; }
}

/* route progress */
.route-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 130;
  background: linear-gradient(90deg, #EC4899, #F9A8D4, #EC4899);
  background-size: 200% 100%; animation: route-run .9s ease-in-out infinite;
}
.route-bar[hidden] { display: none; }
@keyframes route-run { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.narrow { max-width: 820px; }

/* tablet */
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap { padding: 0 16px; }
  .head-bar { padding: 0 16px; }
  h1 { font-size: 26px; }
}
@media (min-width: 960px) {
  .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .jump { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sec-head h2 { font-size: 21px; }
  h1 { font-size: 28px; }
}
@media (min-width: 1024px) {
  .head-burger { display: none; }
  .head-menu { display: flex; }
  .head-search { display: block; }
  .head-ghost { display: inline-flex; }
  .head-bar { padding: 0 20px; }
  .wrap { padding: 0 20px; }
  :root { --head-h: 64px; }
  .drawer { display: none; }
}

/* mobile CTA anchoring */
@media (max-width: 767px) {
  .site-cta {
    left: 14px; right: 14px; transform: none; width: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    font-size: 16px; min-height: 56px;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .site-cta::before { animation: none; opacity: .16; transform: scale(1); }
  .site-cta::after { animation: none; transform: scaleX(1) translateX(0); opacity: .62; }
  .lcard:hover, .vcard:hover { transform: none; }
  .drawer-panel { animation: none; }
  .route-bar { animation: none; }
}
