/* ============================================================
   SHANGHAI — /shanghai  (§6 Food · closing content page)
   Layered on base.css + v3.css + v9.css. Reuses tokens, type,
   .btn / .eyebrow / .display / .section-head / .link-quiet
   / .container / footer / nav.
   Register: quiet reassurance ("familiar food is never far"), NOT a
   restaurant guide. Shared by shanghai.html (full/B) and
   shanghai-trimmed.html (A) — version differences live in the markup.
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.sh-hero { padding: 24px 0 96px; }
.sh-crumb {
  display: flex; align-items: center; gap: 8px; margin: 24px 0 40px;
  font-family: var(--font-sans);
  font-size: var(--fs-note); color: var(--slate-mid); font-weight: 500;
  letter-spacing: 0.04em;
}
.sh-crumb a { color: var(--slate-mid); border-bottom: 1px solid transparent; }
.sh-crumb a:hover { color: var(--fg-strong); }
.sh-crumb .sep { color: var(--slate-light); }
.sh-crumb .here { color: var(--fg-strong); }

.sh-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.sh-hero-text h1 { max-width: 15ch; }
.sh-hero-text h1 em { font-style: italic; }
.sh-standfirst {
  margin-top: 26px; max-width: var(--measure); font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.62; color: var(--slate-dark);
}
.sh-standfirst em { font-style: italic; color: var(--fg-strong); }

/* Hero image — a real, owned neighborhood shot (user-filled) */
.sh-hero-media {
  position: relative; margin: 0; border-radius: 10px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--sage-pale);
  box-shadow: 0 30px 70px -40px rgba(31, 42, 38, 0.5);
}
.sh-hero-media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.sh-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   FOOD — the range + specialties  (OWNS / CATEGORY)
   ============================================================ */
.sh-food { background: var(--bg-alt); }
.sh-food-grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 5vw, 88px); align-items: start;
}
.sh-food-head .eyebrow { margin-bottom: 22px; }
.sh-food-head h2 { max-width: 20ch; }
.sh-food-head h2 em { font-style: italic; }
.sh-food-head .sh-food-tag {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep);
}
.sh-food-head .sh-food-tag::before { content: ""; width: 22px; height: 1px; background: currentColor; }

.sh-food-body > p { font-size: 16px; line-height: 1.72; color: var(--slate-dark); max-width: var(--measure); }
.sh-food-body > p + p { margin-top: 18px; }
.sh-food-body strong { color: var(--fg-strong); font-weight: 600; }
.sh-food-body em { font-style: italic; }

/* The range — an editorial index of cuisines, not a menu */
.sh-range { margin-top: 30px; }
.sh-range-k {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep);
}
.sh-range-list {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 12px; list-style: none; padding: 0;
}
.sh-range-list li {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--font-sans); font-weight: 500; font-size: 17px; letter-spacing: -0.005em;
  color: var(--fg-strong); padding: 8px 16px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--bg-card);
}
.sh-range-list li.local { border-color: var(--accent-deep); color: var(--accent-deep); }
.sh-range-list li.local::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 9px; flex: 0 0 auto;
}

/* Specialties — the one restrained callout: named dishes, typographic */
.sh-specialties {
  margin-top: 4px; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border-soft); border-radius: 10px; overflow: hidden;
}
.sh-specialty {
  background: var(--bg-card); padding: 26px 26px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.sh-specialty .hanzi {
  font-family: var(--font-serif); font-size: 26px; font-weight:500; line-height: 1;
  color: var(--accent-deep); letter-spacing: 0.04em;
}
.sh-specialty .name {
  font-family: var(--font-sans); font-weight: 500; font-size: 21px; letter-spacing: -0.005em;
  color: var(--fg-strong); margin-top: 8px;
}
.sh-specialty .pinyin {
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-mid);
}
.sh-specialties-cap {
  grid-column: 1 / -1; background: var(--bg-card); padding: 16px 26px;
  font-size: var(--fs-sm); line-height: 1.5; color: var(--slate-mid);
}
.sh-specialties-cap em { font-style: italic; color: var(--slate-dark); }

/* ============================================================
   FOOD PHOTO STRIP — real / owned shots only (V-B, optional)
   ============================================================ */
.sh-strip { margin-top: clamp(48px, 6vw, 72px); }
.sh-strip-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.sh-strip-head .k {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep);
}
.sh-strip-head .note { font-size: 13px; color: var(--slate-mid); max-width: 44ch; }
.sh-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sh-strip-cell {
  position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--sage-pale);
}
.sh-strip-cell image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.sh-strip-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-strip-cap {
  margin-top: 10px; font-size: var(--fs-note); line-height: 1.4; color: var(--slate-mid);
  font-family: var(--font-sans); letter-spacing: 0.01em;
}

/* ============================================================
   DIETARY CLOSE — routes concern to the support team, no clinical claim
   ============================================================ */
.sh-dietary {
  margin-top: clamp(44px, 5vw, 64px); padding: 30px 34px;
  background: var(--bg-card); border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; max-width: 780px;
}
.sh-dietary .icon {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  display: flex; align-items: center; justify-content: center; color: var(--accent-deep);
}
.sh-dietary .icon svg { width: 20px; height: 20px; }
.sh-dietary .k {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep);
}
.sh-dietary p { margin-top: 8px; font-size: 15.5px; line-height: 1.62; color: var(--fg-strong); }
.sh-dietary em { font-style: italic; color: var(--accent-deep); }

/* ============================================================
   THE CITY — evening mosaic  (context, kept light)
   ============================================================ */
.sh-city-head { max-width: 820px; margin-bottom: 44px; }
.sh-city-head .eyebrow { margin-bottom: 20px; }
.sh-city-head h2 { max-width: 16ch; }
.sh-city-head h2 em { font-style: italic; }
.sh-city-head p {
  margin-top: 22px; font-size: 16px; line-height: 1.72; color: var(--slate-dark); max-width: var(--measure);
}
.sh-city-head strong { color: var(--fg-strong); font-weight: 600; }
.sh-city-mosaic {
  display: grid; gap: 14px;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: 224px 224px 190px;
  grid-template-areas:
    "tall bund bund"
    "tall yu   nanjing"
    "pano pano pano";
}
.sh-city-fig { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: var(--sage-pale); }
.sh-city-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-city-fig figcaption {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--font-sans); font-size: var(--fs-note); font-weight: 500; letter-spacing: 0.01em;
  color: #F6F2EA; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.sh-city-fig::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 20, 17, 0.5) 100%);
}
.sh-city-fig.tall { grid-area: tall; }
.sh-city-fig.bund { grid-area: bund; }
.sh-city-fig.yu { grid-area: yu; }
.sh-city-fig.nanjing { grid-area: nanjing; }
.sh-city-fig.pano { grid-area: pano; }

/* ============================================================
   WHERE YOU'LL STAY — single image beside the closing routes
   ============================================================ */
.sh-stay {
  margin: 0 0 clamp(40px, 5vw, 64px); display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
}
.sh-stay-fig { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sage-pale); box-shadow: 0 30px 70px -44px rgba(31, 42, 38, 0.5); }
.sh-stay-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-stay-text .eyebrow { margin-bottom: 20px; }
.sh-stay-text h3 { font-family: var(--font-serif); font-weight:500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.01em; color: var(--fg-strong); max-width: 16ch; }
.sh-stay-text h3 em { font-style: italic; }
.sh-stay-text p { margin-top: 18px; font-size: 15.5px; line-height: 1.68; color: var(--slate-dark); max-width: 42ch; }

/* Single inline food photo (trimmed / Version A) */
.sh-food-photo { position: relative; margin: 30px 0 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sage-pale); }
.sh-food-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-food-photo figcaption {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--font-sans); font-size: var(--fs-note); font-weight: 500;
  color: #F6F2EA; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.sh-food-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 20, 17, 0.5) 100%);
}

/* ============================================================
   CLOSING  (→ /journey, /the-hospital, /eligibility)
   ============================================================ */
.sh-closing { padding-bottom: var(--section-py); }
.sh-closing-panel {
  background: var(--bg-card); border-radius: 10px;
  padding: clamp(48px, 6vw, 88px) clamp(40px, 6vw, 96px); text-align: center;
}
.sh-closing-panel .eyebrow { justify-content: center; margin-bottom: 22px; }
.sh-closing-panel h2 { max-width: 20ch; margin: 0 auto; }
.sh-closing-panel h2 em { font-style: italic; }
.sh-closing-panel .lede { margin: 24px auto 0; max-width: var(--measure); color: var(--slate-dark); }
.sh-closing-routes {
  margin: 44px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.sh-route {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 22px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  text-align: left; transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
.sh-route:hover { border-color: var(--accent-deep); transform: translateY(-2px); }
.sh-route.primary { background: var(--sage-pale); border-color: transparent; }
.sh-route .t { display: flex; flex-direction: column; gap: 3px; }
.sh-route .k { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); }
.sh-route .v { font-family: var(--font-sans); font-weight: 500; font-size: 19px; color: var(--fg-strong); letter-spacing: -0.005em; }
.sh-route .arrow { color: var(--fg-strong); transition: transform 160ms var(--ease); flex: 0 0 auto;}
.sh-route:hover .arrow { transform: translateX(4px);}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .sh-hero-grid, .sh-food-grid { grid-template-columns: 1fr; gap: 44px; }
  .sh-hero-media { aspect-ratio: 16 / 9; max-width: 640px; }
  .sh-strip-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .sh-closing-routes { grid-template-columns: 1fr; }
  .sh-stay { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .sh-city-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 190px 150px;
    grid-template-areas:
      "tall tall"
      "bund bund"
      "yu   nanjing";
  }
  .sh-city-fig.pano { display: none; }
}
@media (max-width: 640px) {
  .sh-specialties { grid-template-columns: 1fr; }
  .sh-strip-grid { grid-template-columns: 1fr 1fr; }
  .sh-dietary { grid-template-columns: 1fr; gap: 14px; }
}
