/* SZ Factory Tour — Editorial Travel & Field Guide Design System (v3.0)
   Restrained daylight print aesthetic: warm paper, crisp ink, real documentary photography,
   subtle natural motion, zero SaaS badges or dark-terminal tropes. */

@font-face {
  font-family: "Manrope";
  src: url("./fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-soft: #F3EFE7;
  --surface-tint: #EFEAE0;
  --ink: #161614;
  --ink-2: #3A3935;
  --muted: #67655E;
  --line: #E4DFD4;
  --line-strong: #C9C2B4;
  --accent: #B83B1F;       /* Signal brick / terracotta */
  --accent-hover: #962E16;
  --ink-btn: #1B2A24;
  --ink-btn-hover: #101A16;
  --ok: #1E6B47;
  --danger: #B42318;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-soft: 0 2px 10px rgba(22, 22, 20, 0.04);
  --shadow-hover: 0 10px 26px rgba(22, 22, 20, 0.08);
  --max-w: 1140px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 10px 14px;
  border-radius: var(--radius-sm); z-index: 1000; text-decoration: none;
}
.skip-link:focus { left: 12px; }

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

/* Masthead Header (clean print publication style) */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 66px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-serif); font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
}
.brand-sub {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.02em;
}
@media (max-width: 640px) { .brand-sub { display: none; } }

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop a {
  text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-desktop a:hover { color: var(--ink); background: var(--surface-soft); }
.nav-desktop a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-desktop .nav-cta {
  margin-left: 8px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
  font-weight: 600;
}
.nav-desktop .nav-cta:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--ink);
  font-size: 14px; font-weight: 600; padding: 0 14px; cursor: pointer;
}
.nav-mobile {
  display: none; border-top: 1px solid var(--line);
  background: var(--bg); padding: 12px 24px 20px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: 11px 0; text-decoration: none;
  color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 920px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-top: 0;
  font-weight: 600;
}
h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 18px; }
h1 em { font-style: italic; font-weight: 400; color: var(--ink-2); }
h2 { font-size: clamp(24px, 3vw, 33px); margin-bottom: 10px; }
h3 { font-size: 20px; margin-bottom: 8px; font-family: var(--font-serif); }

.dateline {
  font-size: 13px; color: var(--muted); font-weight: 500;
  margin: 0 0 14px; letter-spacing: 0.01em;
}
.lead {
  font-size: 17px; color: var(--ink-2); max-width: 56ch; margin: 0 0 24px; line-height: 1.65;
}
.disclosure-note {
  font-size: 13px; color: var(--muted); margin: 0;
  border-top: 1px solid var(--line); padding-top: 12px;
}

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-weight: 600; font-size: 14.5px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ink { background: var(--ink-btn); color: #fff; border-color: var(--ink-btn); }
.btn-ink:hover { background: var(--ink-btn-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-soft); border-color: var(--ink); color: var(--ink); }
.btn-accent { background: var(--ink-btn); color: #fff; border-color: var(--ink-btn); }
.btn-accent:hover { background: var(--ink-btn-hover); color: #fff; }

.text-link {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px;
  padding: 10px 4px;
}
.text-link:hover { color: var(--accent); }

/* Editorial Hero */
.hero {
  padding: 44px 0 54px;
  border-bottom: 1px solid var(--line);
}
.hero-editorial {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 44px; align-items: center;
}
@media (max-width: 960px) {
  .hero { padding: 30px 0 40px; }
  .hero-editorial { grid-template-columns: 1fr; gap: 28px; }
}

.hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) {
  .hero-facts { grid-template-columns: 1fr; gap: 12px; }
}
.fact-num {
  font-family: var(--font-serif); font-size: 23px; font-weight: 600;
  color: var(--ink); line-height: 1.15; margin-bottom: 3px;
}
.fact-label {
  font-size: 13px; color: var(--muted); line-height: 1.4;
}

/* Interactive Real-Photo Field Reel (Natural Motion, Zero AI SVG) */
.reel-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.reel-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1C1B18;
}
.reel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
}
.reel-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.reel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1);
}
.reel-slide.active img {
  animation: kenBurns 12s ease-out forwards;
}
@keyframes kenBurns {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.065); }
}

.reel-caption-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 18px 14px;
  background: linear-gradient(180deg, rgba(16, 16, 14, 0) 0%, rgba(16, 16, 14, 0.78) 100%);
  color: #FAF8F4;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
}
.reel-loc {
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
}
.reel-credit {
  font-size: 11px; color: rgba(250, 248, 244, 0.75); white-space: nowrap;
}
.reel-progress {
  height: 2px; background: var(--line); overflow: hidden;
}
.reel-progress-bar {
  height: 100%; width: 0%;
  background: var(--accent);
}
.reel-progress-bar.running {
  animation: reelFill 6.5s linear forwards;
}
@keyframes reelFill {
  from { width: 0%; }
  to   { width: 100%; }
}

.reel-stops {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) {
  .reel-stops { grid-template-columns: repeat(2, 1fr); }
}
.reel-stop {
  appearance: none; background: transparent; border: none;
  border-right: 1px solid var(--line);
  padding: 12px 12px; text-align: left; cursor: pointer;
  min-height: 54px; font-family: var(--font-sans);
  transition: background 0.15s ease;
}
.reel-stop:last-child { border-right: none; }
.reel-stop:hover { background: var(--surface-soft); }
.reel-stop.active { background: var(--surface-soft); }
.reel-stop-num {
  display: block; font-size: 11px; color: var(--muted); font-weight: 600;
  margin-bottom: 2px;
}
.reel-stop.active .reel-stop-num { color: var(--accent); }
.reel-stop-name {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.25;
}

.reel-detail {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
}
.reel-detail strong { color: var(--ink); }

/* Sections */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 14px; margin-bottom: 26px;
}
.section-head-copy { max-width: 66ch; }
.section-sub { color: var(--muted); margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; }

/* Real-Photo Tour Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 920px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.tour-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}
.tour-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}
.tour-photo-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E8E3D8;
  position: relative;
}
.tour-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.tour-card:hover .tour-photo-wrap img {
  transform: scale(1.04);
}
.tour-card-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; flex: 1;
}
.tour-kicker {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 8px;
}
.tour-stars { color: #A66E14; font-weight: 700; letter-spacing: 0.01em; }
.tour-card h3 {
  font-size: 20.5px; line-height: 1.24; margin: 0 0 10px;
}
.tour-desc {
  font-size: 14px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.56;
}
.tour-highlights {
  list-style: none; padding: 0; margin: 0 0 18px; flex: 1;
  display: grid; gap: 6px;
}
.tour-highlights li {
  font-size: 13.5px; color: var(--ink-2); padding-left: 16px; position: relative; line-height: 1.45;
}
.tour-highlights li::before {
  content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.tour-price-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; margin-bottom: 14px;
  border-top: 1px solid var(--line);
}
.tour-price {
  font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--ink);
}
.tour-price-note {
  font-size: 12.5px; color: var(--muted);
}

/* 3-Step Editorial How-It-Works Strip */
.process-strip {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
@media (max-width: 760px) { .process-strip { grid-template-columns: 1fr; } }
.process-step {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}
.process-step:last-child { border-right: none; }
@media (max-width: 760px) {
  .process-step { border-right: none; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: none; }
}
.process-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  font-weight: 700; margin-bottom: 6px;
}
.process-step h3 {
  font-family: var(--font-serif); font-size: 17px; margin: 0 0 5px;
}
.process-step p {
  margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5;
}

/* Generic Card (subpages) */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.meta-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: 13px; color: var(--muted); margin: 10px 0 12px;
}
.tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--ink-2); background: var(--surface-soft);
  padding: 3px 9px; border-radius: 3px; margin-bottom: 10px;
}

/* Daylight Print Workbench (Cost Estimator) */
.workbench {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.workbench-head {
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px;
}
.workbench-head h2 { margin: 0; font-size: 23px; }
.workbench-note { font-size: 13px; color: var(--muted); }
.workbench-body {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px; padding: 26px;
}
@media (max-width: 860px) {
  .workbench-body { grid-template-columns: 1fr; padding: 20px; gap: 22px; }
}

.field-group { margin-bottom: 18px; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field-help { font-size: 13px; color: var(--muted); margin-top: 5px; }

.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--ink); background: var(--surface);
}
.error-msg { font-size: 13px; color: var(--danger); margin-top: 6px; font-weight: 600; }

.pill-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 40px; padding: 7px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.active, .pill[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

.check-list { display: grid; gap: 9px; }
.check-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); cursor: pointer;
}
.check-item:hover { border-color: var(--line-strong); }
.check-item input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
.check-item-text { flex: 1; font-size: 14px; color: var(--ink-2); }
.check-item-price { font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; }

.result-panel {
  background: #1B1B18;
  color: #FAF8F4;
  border: 1px solid #1B1B18;
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.result-label { font-size: 12.5px; color: #B8B3A7; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 4px; }
.price-big {
  font-family: var(--font-serif); font-size: clamp(34px, 4.2vw, 44px);
  font-weight: 700; color: #FAF8F4; line-height: 1.05;
}
.price-meta { font-size: 13.5px; color: #C2BEB2; margin-top: 5px; }
.breakdown { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.breakdown li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: #DEDAD0;
}
.breakdown li strong { color: #FFFFFF; }
.result-panel .btn-ink { background: var(--accent); border-color: var(--accent); color: #fff; }
.result-panel .btn-ink:hover { background: #D0492A; border-color: #D0492A; }
.result-panel .btn-secondary {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); color: #FAF8F4;
}
.result-panel .btn-secondary:hover { background: rgba(255, 255, 255, 0.16); border-color: #FAF8F4; color: #fff; }
.share-status { font-size: 13px; color: #7EE0A6; font-weight: 600; min-height: 18px; }
.boundary-note {
  font-size: 13px; color: #B8B3A7; line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 12px;
}
.boundary-note strong { color: #FAF8F4; }
.boundary-note a { color: #F5B29E; }
.boundary-note a:hover { color: #fff; }

/* Open Editorial Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td {
  text-align: left; padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
th {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid var(--ink); letter-spacing: 0.02em;
}
td { color: var(--ink-2); }
td strong { color: var(--ink); }

/* Editorial Magazine Directory (Replaces 6-card AI Grid) */
.directory-split {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 44px; align-items: start;
}
@media (max-width: 900px) {
  .directory-split { grid-template-columns: 1fr; gap: 28px; }
}
.editorial-figure {
  margin: 0;
  position: sticky; top: 88px;
}
@media (max-width: 900px) { .editorial-figure { position: static; } }
.editorial-figure img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.editorial-figure figcaption {
  font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5;
}

.guide-index {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--ink);
}
.guide-index li {
  border-bottom: 1px solid var(--line);
}
.guide-index a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px;
  gap: 14px; align-items: start;
  padding: 18px 6px; text-decoration: none;
  transition: background 0.14s ease, padding-left 0.14s ease;
}
.guide-index a:hover {
  background: var(--surface-soft);
  padding-left: 12px;
}
.guide-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: 4px;
}
.guide-title {
  display: block; font-family: var(--font-serif); font-size: 20px; font-weight: 600;
  color: var(--ink); line-height: 1.25; margin-bottom: 4px;
}
.guide-index a:hover .guide-title { color: var(--accent); }
.guide-summary {
  display: block; font-size: 14px; color: var(--muted); line-height: 1.5;
}
.guide-arrow {
  font-size: 18px; color: var(--muted); padding-top: 2px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.guide-index a:hover .guide-arrow { transform: translateX(4px); color: var(--accent); }

/* Daylight Architectural Blueprint (Huaqiangbei 5-Tower Interactive Map) */
.blueprint-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.blueprint-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 8px; margin-bottom: 12px; font-size: 13.5px; color: var(--muted);
}
.blueprint-head strong { color: var(--ink); font-family: var(--font-serif); font-size: 17px; }
.elev-svg { width: 100%; height: auto; display: block; }
.elev-tower { transition: opacity 0.25s ease, transform 0.25s ease; opacity: 0.32; }
.elev-tower.lit { opacity: 1; }
.rail-flow { stroke-dasharray: 8 8; animation: railMove 2.2s linear infinite; }
@keyframes railMove { to { stroke-dashoffset: -32; } }

/* Huaqiangbei Building Cards & Subpage Helpers */
.search-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-bottom: 16px;
}
@media (max-width: 600px) { .search-bar { grid-template-columns: 1fr; } }
.building-grid { display: grid; gap: 16px; margin-top: 18px; }
.building-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.building-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px;
}
.building-head h3 { margin: 0; font-size: 21px; }
.floor-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.floor-list li {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px;
  font-size: 14.5px; padding: 6px 0; border-bottom: 1px solid var(--line);
}
.floor-list li:last-child { border-bottom: none; }
.floor-badge { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: 13px; }
.empty-state {
  text-align: center; padding: 36px 20px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); background: var(--surface); color: var(--muted);
}

.verdict-box {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 22px;
}
.verdict-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
.verdict-label { font-weight: 700; color: var(--ink); }
.verdict-box p { margin: 0; font-size: 15px; color: var(--ink-2); }

.tabs-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.photo-banner {
  margin: 24px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.photo-banner img { width: 100%; max-height: 360px; object-fit: cover; }
.photo-banner figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 34px; }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 22px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* FAQ (Clean Print Accordion) */
.faq-list { border-top: 1px solid var(--ink); max-width: 820px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq-item summary {
  font-family: var(--font-serif); font-size: 19px; font-weight: 600;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-sans); font-size: 20px; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; color: var(--ink); }
.faq-item p { margin: 10px 0 2px; color: var(--ink-2); font-size: 15px; max-width: 68ch; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(22, 22, 20, 0.56);
  display: none; align-items: center; justify-content: center; padding: 16px; z-index: 300;
}
.modal-backdrop.open { display: flex; }
.modal-dialog {
  width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-close {
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  width: 40px; height: 40px; font-size: 20px; cursor: pointer; color: var(--ink);
}
.draft-output {
  background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; font-family: var(--font-mono); font-size: 12.5px;
  white-space: pre-wrap; margin: 12px 0; color: var(--ink);
}

/* Footer */
.site-footer {
  background: #1B1B18; color: #D8D4CB;
  padding: 46px 0 32px; margin-top: 40px; font-size: 14px;
}
.site-footer a { color: #FAF8F4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #FAF8F4; font-family: var(--font-serif); font-size: 16px; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: #A6A298;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
