/* ==========================================================================
   上海门店索引 — 设计系统
   概念：一份可供查阅的坐标索引。纸、墨、细线、表格数字。
   字体：拉丁/数字用 Instrument Serif，中文用 Noto Serif SC（按需子集）
        正文走系统无衬线，保证清晰与加载速度
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* 纸墨 */
  --paper:      #F4F1EA;
  --paper-2:    #EAE6DD;
  --paper-3:    #DFDACF;
  --ink:        #17140F;
  --ink-2:      #46403A;
  --muted:      #625B4F;
  --faint:      #7C7466;
  --rule:       rgba(23, 20, 15, .13);
  --rule-2:     rgba(23, 20, 15, .28);

  /* 梯次色（功能性，不是装饰） */
  --tier-2:     #A63527;   /* 2 梯 */
  --tier-2-ink: #FFFFFF;
  --tier-4:     #2C6659;   /* 4 梯 */
  --tier-4-ink: #FFFFFF;
  --tier-x:     #6B6252;   /* 其他 */

  --accent:     var(--tier-2);

  /* 字体角色 */
  --font-display: 'latin-display', 'serif-sc', 'Songti SC', 'Source Han Serif SC', serif;
  --font-serif:   'serif-sc', 'Songti SC', 'Source Han Serif SC', serif;
  --font-sans:    system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
                  'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Consolas, monospace;

  /* 流式字号 */
  --t--2: clamp(.68rem, .66rem + .10vw, .74rem);
  --t--1: clamp(.78rem, .75rem + .16vw, .87rem);
  --t-0:  clamp(.95rem, .90rem + .26vw, 1.06rem);
  --t-1:  clamp(1.14rem, 1.04rem + .48vw, 1.40rem);
  --t-2:  clamp(1.48rem, 1.26rem + 1.05vw, 2.10rem);
  --t-3:  clamp(1.95rem, 1.52rem + 2.10vw, 3.30rem);
  --t-4:  clamp(2.55rem, 1.70rem + 4.20vw, 5.20rem);
  --t-5:  clamp(3.00rem, 1.40rem + 6.90vw, 7.40rem);

  /* 节奏 */
  --gutter:  clamp(20px, 4.2vw, 64px);
  --section: clamp(72px, 9vw, 148px);

  --radius: 3px;
  --shadow: 0 1px 2px rgba(23,20,15,.04), 0 8px 28px -13px rgba(23,20,15,.22);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .42s;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #14120E;
    --paper-2: #1D1A15;
    --paper-3: #272319;
    --ink:     #F1ECE2;
    --ink-2:   #CFC7B8;
    --muted:   #A29A8B;
    --faint:   #948C7C;
    --rule:    rgba(241, 236, 226, .14);
    --rule-2:  rgba(241, 236, 226, .30);
    --tier-2:  #E0705F;
    --tier-2-ink: #1A0F0C;
    --tier-4:  #67B7A2;
    --tier-4-ink: #06201A;
    --tier-x:  #9C9484;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 34px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-0);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

::selection { background: var(--tier-2); color: var(--tier-2-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t--1);
}
.skip:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- type */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.serif {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.012em;
}
.label {
  font-family: var(--font-mono);
  font-size: var(--t--2);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.topbar[data-stuck="true"] { border-bottom-color: var(--rule); }

.topbar__in {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  height: 68px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
  padding-block: 11px;   /* 保证 logo 也是 44px 级触控目标 */
}
.brand__mark {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: var(--t--2);
  letter-spacing: .16em;
  color: var(--faint);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); }
.nav a {
  font-size: var(--t--1);
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .34s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.searchbtn {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 7px 13px 7px 11px;
  font-size: var(--t--1);
  color: var(--ink-2);
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.searchbtn:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.searchbtn kbd {
  font-family: var(--font-mono);
  font-size: .66rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1px 4px;
  color: var(--faint);
}

/* ---------------------------------------------------------------- hero */
.hero { padding-block: clamp(40px, 5.5vw, 84px) clamp(22px, 2.6vw, 38px); }

.hero__eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: clamp(16px, 2.2vw, 26px);
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tier-2);
  flex: 0 0 auto;
}

.hero h1 {
  font-size: var(--t-5);
  margin-bottom: clamp(16px, 2vw, 24px);
  text-wrap: pretty;
}
.hero h1 em { font-style: italic; }

.hero__lede {
  max-width: 48ch;
  font-size: var(--t-1);
  line-height: 1.62;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(24px, 3.2vw, 40px);
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--rule);
}
.fact__k {
  font-family: var(--font-mono);
  font-size: var(--t--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
}
.fact__v {
  font-family: var(--font-display);
  font-size: var(--t-2);
  line-height: 1;
  letter-spacing: -.01em;
}
.fact__v small { font-family: var(--font-sans); font-size: var(--t--1); color: var(--muted); margin-left: 5px; }

/* ------------------------------------------------------ energy scale */
.scale {
  margin-top: clamp(24px, 3vw, 40px);
  padding-block: 0 clamp(30px, 4vw, 56px);
}

.scale__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.scale__hint { font-size: var(--t--1); color: var(--faint); }

.scale__plot {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: clamp(4px, 1.4vw, 22px);
  padding-bottom: 34px;
  border-bottom: 1px solid var(--rule-2);
  min-height: 132px;
}

.col {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0;
  min-width: 0;
  min-height: 44px;
}
/* 每一档背后一道极淡的标尺线，让刻度读起来像量具而不是柱状图 */
.col::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
  transform: translateX(-.5px);
  pointer-events: none;
}
.col::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px;
  height: 1px;
  background: var(--rule-2);
  transform: translateX(-50%);
  pointer-events: none;
}
.col__stack {
  display: flex; flex-direction: column-reverse; align-items: center; gap: 5px;
  width: 100%;
}

.pip {
  width: 100%;
  max-width: 62px;
  height: 9px;
  border-radius: 1px;
  background: var(--tier-x);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease), opacity .2s var(--ease), filter .2s var(--ease);
  opacity: .92;
}
.pip[data-tier="2"] { background: var(--tier-2); }
.pip[data-tier="4"] { background: var(--tier-4); }
body[data-ready="true"] .pip { transform: scaleY(1); }

.col:hover .pip, .col:focus-visible .pip { filter: brightness(1.12); }
.col[data-dim="true"] .pip { opacity: .2; }
.col[aria-pressed="true"] .col__v { color: var(--ink); font-weight: 600; }

.col__v {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: var(--t--1);
  color: var(--muted);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.col:hover .col__v { color: var(--ink); }

.scale__legend {
  display: flex; flex-wrap: wrap; gap: 16px 22px;
  margin-top: 44px;
  font-size: var(--t--1);
  color: var(--muted);
}
.key { display: flex; align-items: center; gap: 7px; }
.key i { width: 14px; height: 8px; border-radius: 1px; display: inline-block; }

.scale__tip {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 8px 11px;
  font-size: var(--t--1);
  line-height: 1.45;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, -8px) scale(.97);
  transition: opacity .16s var(--ease), transform .16s var(--ease);
  white-space: nowrap;
  max-width: 280px;
}
.scale__tip[data-show="true"] { opacity: 1; transform: translate(-50%, -12px) scale(1); }
.scale__tip b { font-weight: 600; }
.scale__tip span { color: color-mix(in srgb, var(--paper) 62%, transparent); }

/* ---------------------------------------------------------------- index */
.index {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}

.index__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.index__head h2 { font-size: var(--t-3); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chipbtn {
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: var(--t--1);
  color: var(--ink-2);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chipbtn:hover { border-color: var(--ink); color: var(--ink); }
.chipbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.index__body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

/* 区索引（轨道） */
.rail {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rail__title {
  font-family: var(--font-mono);
  font-size: var(--t--2);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.rail__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  text-align: left;
  color: var(--muted);
  font-size: var(--t-0);
  position: relative;
  transition: color .22s var(--ease);
}
.rail__item .n {
  font-family: var(--font-mono);
  font-size: var(--t--2);
  color: var(--faint);
  transition: color .22s var(--ease);
  flex: 0 0 auto;
}
.rail__item .c {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--t--2);
  color: var(--faint);
}
.rail__item::before {
  content: '';
  position: absolute; left: -14px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform .3s var(--ease);
}
.rail__item:hover { color: var(--ink); }
.rail__item[aria-current="true"] { color: var(--ink); font-weight: 600; }
.rail__item[aria-current="true"] .n { color: var(--tier-2); }
.rail__item[aria-current="true"]::before { transform: scale(1); }

/* 区段 */
.districts { min-width: 0; }

.district { scroll-margin-top: 0; }
.district + .district {
  margin-top: clamp(48px, 6vw, 92px);
  padding-top: clamp(28px, 3.6vw, 46px);
  border-top: 1px solid var(--rule);
}
.district[hidden] { display: none; }

.district__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(20px, 2.6vw, 32px);
}
.district__num {
  font-family: var(--font-display);
  font-size: var(--t-1);
  color: var(--tier-2);
  flex: 0 0 auto;
}
.district__title { font-size: var(--t-2); }
.district__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--t--1);
  color: var(--faint);
}

.venues {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

/* 门店卡 */
.venue {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color .26s var(--ease), transform .26s var(--ease),
              box-shadow .26s var(--ease), background .26s var(--ease);
  overflow: hidden;
  width: 100%;
}
.venue::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--tier-x);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform .38s var(--ease);
}
.venue[data-tier="2"]::before { background: var(--tier-2); }
.venue[data-tier="4"]::before { background: var(--tier-4); }
.venue:hover, .venue:focus-visible {
  border-color: var(--rule-2);
  background: color-mix(in srgb, var(--paper) 60%, var(--paper-2));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.venue:hover::before, .venue:focus-visible::before { transform: scaleY(1); }
.venue[data-hit="true"] { border-color: var(--tier-2); }
.venue[hidden] { display: none; }

.venue__top { display: flex; align-items: baseline; gap: 12px; }
.venue__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--t-1);
  line-height: 1.3;
  letter-spacing: -.01em;
  min-width: 0;
}
.venue__energy {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: var(--t-1);
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}
.venue__energy small {
  font-size: .56em;
  color: var(--faint);
  margin-right: 4px;
  letter-spacing: .06em;
}

.venue__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: var(--t--2);
  font-family: var(--font-mono);
  letter-spacing: .04em;
  padding: 2.5px 8px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  color: var(--muted);
  white-space: nowrap;
}
.chip[data-tier="2"] { border-color: color-mix(in srgb, var(--tier-2) 45%, transparent); color: var(--tier-2); }
.chip[data-tier="4"] { border-color: color-mix(in srgb, var(--tier-4) 45%, transparent); color: var(--tier-4); }

.venue__meta {
  display: flex; flex-direction: column; gap: 6px;
  font-size: var(--t--1);
  color: var(--ink-2);
  border-top: 1px solid var(--rule);
  padding-top: 11px;
  margin-top: auto;
}
.venue__row { display: flex; gap: 10px; }
.venue__row dt {
  flex: 0 0 34px;
  font-family: var(--font-mono);
  font-size: var(--t--2);
  letter-spacing: .06em;
  color: var(--faint);
  padding-top: 2px;
}
.venue__row dd { margin: 0; min-width: 0; text-wrap: pretty; }

.venue__flag {
  display: inline-block;
  font-size: var(--t--2);
  color: var(--tier-2);
  margin-top: 4px;
}
.venue--blocked { opacity: .6; }
.venue--blocked .venue__name { text-decoration: line-through; text-decoration-thickness: 1px; }

/* 空状态 */
.none {
  padding: 54px 0;
  text-align: center;
  color: var(--faint);
  font-size: var(--t-1);
  border: 1px dashed var(--rule-2);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------- guide */
.guide { padding-block: var(--section); border-top: 1px solid var(--rule); }
.guide__in {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.guide h2 { font-size: var(--t-2); margin-bottom: 20px; }
.prose { max-width: 68ch; font-size: var(--t-0); color: var(--ink-2); }
.prose p { margin: 0 0 1.05em; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .ghead { font-size: var(--t-1); margin: 2em 0 .6em; }
.prose .ghead:first-child { margin-top: 0; }
.prose .glist { margin: 0 0 1.1em; display: flex; flex-direction: column; gap: 5px; }
.prose .glist li { padding-left: 20px; position: relative; }
.prose .glist li::before {
  content: ''; position: absolute; left: 2px; top: .74em;
  width: 9px; height: 1px; background: var(--faint);
}
.prose .lead {
  font-size: var(--t-1);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- footer */
.foot {
  padding-block: clamp(40px, 5vw, 68px) clamp(30px, 4vw, 50px);
  border-top: 1px solid var(--rule);
  font-size: var(--t--1);
  color: var(--muted);
}
.foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.foot h3 {
  font-family: var(--font-mono);
  font-size: var(--t--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.foot a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule-2);
}
.foot a:hover { color: var(--ink); text-decoration-color: currentColor; }
.foot p a { display: inline-block; padding-block: 4px; }
.foot__end {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--t--2);
  letter-spacing: .06em;
  color: var(--faint);
}

/* ---------------------------------------------------------------- drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  justify-items: end;
  visibility: hidden;
}
.drawer[data-open="true"] { visibility: visible; }

.drawer__scrim {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ink) 42%, transparent);
  opacity: 0;
  transition: opacity .34s var(--ease);
}
.drawer[data-open="true"] .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: relative;
  width: min(560px, 100%);
  height: 100%;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  box-shadow: var(--shadow);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .42s var(--ease);
  padding: clamp(24px, 4vw, 44px);
  overscroll-behavior: contain;
}
.drawer[data-open="true"] .drawer__panel { transform: translateX(0); }

.drawer__close {
  position: sticky;
  top: 0;
  float: right;
  margin: -6px -6px 0 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px;
  color: var(--muted);
  background: var(--paper-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.drawer__close:hover { background: var(--ink); color: var(--paper); }
.drawer__close:focus-visible { outline-offset: 2px; }

.drawer__eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.drawer h2 { font-size: var(--t-2); margin-bottom: 6px; }
.drawer__energy {
  font-family: var(--font-display);
  font-size: var(--t-3);
  line-height: 1;
  margin: 14px 0 4px;
}
.drawer__energy small { font-size: .42em; color: var(--faint); margin-left: 4px; }
.drawer__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 22px; }

.drawer__dl { border-top: 1px solid var(--rule); margin-bottom: 22px; }
.drawer__dl > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t--1);
}
.drawer__dl dt {
  font-family: var(--font-mono);
  font-size: var(--t--2);
  letter-spacing: .08em;
  color: var(--faint);
  text-transform: uppercase;
  padding-top: 3px;
}
.drawer__dl dd { margin: 0; text-wrap: pretty; }
.drawer__dl dd .sub { display: block; color: var(--muted); font-size: .95em; margin-top: 2px; }

.drawer__notes {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: var(--t--1);
  color: var(--ink-2);
  margin-bottom: 22px;
}
.drawer__notes h3 {
  font-family: var(--font-mono);
  font-size: var(--t--2);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 7px;
}
.drawer__notes li { padding-left: 15px; position: relative; }
.drawer__notes li::before { content: '—'; position: absolute; left: 0; color: var(--faint); }

.drawer__acts { display: flex; flex-wrap: wrap; gap: 9px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: var(--t--1);
  color: var(--ink);
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--tier-2); border-color: var(--tier-2); color: var(--tier-2-ink); }

/* ---------------------------------------------------------------- search */
.search {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: start center;
  padding-top: clamp(60px, 14vh, 160px);
  visibility: hidden;
}
.search[data-open="true"] { visibility: visible; }
.search__scrim {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.search[data-open="true"] .search__scrim { opacity: 1; }
.search__panel {
  position: relative;
  width: min(660px, calc(100% - 32px));
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(-10px) scale(.99);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.search[data-open="true"] .search__panel { transform: none; opacity: 1; }

.search__field {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--rule);
}
.search__field input {
  flex: 1;
  border: 0; background: none; outline: none;
  font: inherit;
  font-size: var(--t-1);
  color: var(--ink);
}
.search__field input::placeholder { color: var(--faint); }
.search__field input::-webkit-search-cancel-button,
.search__field input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search__field input { appearance: none; }
.search__results { max-height: min(54vh, 430px); overflow-y: auto; }
.search__item {
  display: flex; align-items: baseline; gap: 12px;
  width: 100%; text-align: left;
  padding: 11px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t--1);
}
.search__item:last-child { border-bottom: 0; }
.search__item[data-sel="true"], .search__item:hover { background: var(--paper-2); }
.search__item .t { font-family: var(--font-serif); font-weight: 600; }
.search__item .d { color: var(--faint); font-size: var(--t--2); font-family: var(--font-mono); letter-spacing: .06em; }
.search__item .e { margin-left: auto; font-family: var(--font-display); color: var(--muted); }
.search__empty { padding: 26px 18px; color: var(--faint); font-size: var(--t--1); text-align: center; }
.search__foot {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 9px 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--t--2);
  color: var(--faint);
  letter-spacing: .05em;
}

/* ---------------------------------------------------------------- reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .66s var(--ease), transform .66s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal][data-in="true"] { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- no-js */
.nojs-note {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px dashed var(--rule-2);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: var(--t--1);
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  html { scroll-padding-top: 124px; }
  .index__body, .guide__in { grid-template-columns: 1fr; }
  .rail {
    position: sticky;
    top: 68px;
    z-index: 20;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 0;
    margin: 0 0 6px;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail__title { display: none; }
  .rail__item {
    flex: 0 0 auto;
    padding: 5px 11px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: var(--t--1);
  }
  .rail__item::before { display: none; }
  .rail__item[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .rail__item[aria-current="true"] .n { color: var(--paper); }
  .rail__item .c { display: none; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 128px; }
  .hero h1 { max-width: 100%; }
  .hero__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 22px;
  }
  .fact__v { font-size: var(--t-1); }
  .venues { grid-template-columns: 1fr; }
  .nav { display: none; }
  .brand__sub { display: none; }
  .scale__plot { gap: 3px; min-height: 104px; }
  .pip { height: 7px; }
  .col__v { font-size: .62rem; bottom: -26px; }
  .drawer__panel { width: 100%; }
  .drawer__dl > div { grid-template-columns: 1fr; gap: 3px; }
}

/* ---------------------------------------------------------------- motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .pip { transform: scaleY(1) !important; }
}

@media print {
  .topbar, .search, .drawer, .rail, .scale, .filters { display: none !important; }
  body { background: #fff; color: #000; }
  .venue { break-inside: avoid; border-color: #ccc; }
  .index__body, .guide__in { grid-template-columns: 1fr; }
}
