/* =====================================================
   HUATONG Insulated Decorative Panels — shared styles
   Mobile-first · responsive PC + mobile
   ===================================================== */

:root {
  --blue: #0f6cb4;
  --blue-dark: #0b4f86;
  --blue-deep: #093c68;
  --orange: #ed7c1b;
  --orange-dark: #d5690d;
  --ink: #1b2833;
  --muted: #5c6c7b;
  --line: #e2eaf2;
  --bg-soft: #f3f7fb;
  --bg-warm: #faf8f5;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 60, 105, 0.08);
  --shadow-lg: 0 14px 40px rgba(11, 60, 105, 0.14);
  --maxw: 1180px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px;
  background: var(--orange);
  color: #fff;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: 0.04em; color: var(--blue-deep); }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--blue); }
.main-nav a.active { color: var(--blue); }
.main-nav a.nav-cta {
  background: var(--orange);
  color: #fff;
  margin-left: 8px;
}
.main-nav a.nav-cta:hover { background: var(--orange-dark); color: #fff; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 8px 20px 16px; }
.mobile-nav a {
  display: block;
  padding: 13px 6px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-nav li:last-child a { border-bottom: none; }
.mobile-nav a.active { color: var(--blue); }
.mobile-nav .mobile-cta {
  margin-top: 10px;
  background: var(--orange);
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  border-bottom: none;
}

@media (min-width: 961px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 62%, #2e8fd0 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 64px 0 72px;
  max-width: 640px;
}
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd9b0;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.18;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #dcebf8;
  margin-bottom: 28px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
  opacity: 0.24;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* inner page hero */
.page-hero {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff;
  padding: 46px 0 42px;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 10px; }
.page-hero p { color: #d8e8f6; max-width: 720px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,0.75); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--blue); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-warm { background: var(--bg-warm); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  color: var(--orange);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--blue-deep);
}
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 19px; color: var(--blue-deep); }
.card-body p { color: var(--muted); font-size: 15px; flex: 1; }
.card-link { font-weight: 700; font-size: 14.5px; }

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: #fff; padding: 26px 18px; text-align: center; }
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--blue); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); }

/* feature list */
.feature { display: flex; gap: 14px; }
.feature-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: #e8f1fa;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.feature h3 { font-size: 17px; margin-bottom: 4px; color: var(--blue-deep); }
.feature p { font-size: 14.5px; color: var(--muted); }

/* layered panel diagram */
.layers { display: flex; flex-direction: column; gap: 8px; }
.layer {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  font-size: 14.5px;
}
.layer b { display: block; font-size: 15.5px; }
.layer small { opacity: 0.85; }
.layer-1 { background: linear-gradient(90deg, #8a8f96, #a8adb4); }
.layer-2 { background: linear-gradient(90deg, #d5a26e, #e2b789); color: #4a2f10; }
.layer-2 b { color: #4a2f10; }
.layer-3 { background: linear-gradient(90deg, #e8e478, #f1ee9e); color: #55511a; }
.layer-3 b { color: #55511a; }
.layer-4 { background: linear-gradient(90deg, #9aa3ab, #b7bfc7); color: #2c353d; }
.layer-4 b { color: #2c353d; }
@media (min-width: 800px) {
  .layers { gap: 0; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
  .layer { border-radius: 0; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,0.25); }
  .layer:last-child { border-bottom: none; }
}

/* swatches */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 640px) { .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .swatch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.swatch {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.swatch-img { aspect-ratio: 4 / 3; background: var(--bg-soft); }
.swatch-img img { width: 100%; height: 100%; object-fit: cover; }
.swatch-name {
  display: block;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.swatch-name small { display: block; color: var(--muted); font-weight: 400; }

/* chip grid (coated series, many) */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) { .chip-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .chip-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.chip-img { aspect-ratio: 5 / 4; background: var(--bg-soft); }
.chip-img img { width: 100%; height: 100%; object-fit: cover; }
.chip-name { display: block; padding: 8px 9px; font-size: 12.5px; line-height: 1.3; color: var(--ink); }
.chip-name small { display: block; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.compare th, table.compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--blue); color: #fff; font-size: 14px; white-space: nowrap; }
table.compare tbody tr:nth-child(even) { background: var(--bg-soft); }
table.compare tbody tr:last-child td { border-bottom: none; }
.td-good { color: var(--blue-dark); font-weight: 600; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.note-strong { color: var(--ink); font-weight: 600; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.step-img { aspect-ratio: 16 / 10; background: var(--bg-soft); }
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step-label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; }
.step-no {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-label span { font-size: 13.5px; font-weight: 600; line-height: 1.4; }

/* process timeline */
.process { display: grid; gap: 16px; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.process-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: relative;
}
.process-item .p-no {
  display: inline-flex;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
}
.process-item h3 { font-size: 15.5px; color: var(--blue-deep); margin-bottom: 6px; }
.process-item p { font-size: 13.5px; color: var(--muted); }

/* node diagrams */
.node-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 760px) { .node-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.node-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.node-card img { border-radius: 6px; margin-bottom: 12px; background: #fff; }
.node-card h3 { font-size: 16px; color: var(--blue-deep); }
.node-card p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* project cards */
.proj-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-dark);
  background: #e8f1fa;
  border-radius: 999px;
  padding: 4px 12px;
}
.proj-list { columns: 2; column-gap: 28px; font-size: 14.5px; color: var(--ink); }
@media (min-width: 860px) { .proj-list { columns: 3; } }
.proj-list li { margin: 0 0 9px 18px; break-inside: avoid; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--line); }

/* CTA band */
.cta-band {
  background: linear-gradient(115deg, var(--blue-deep), var(--blue) 70%, #2e8fd0);
  color: #fff;
  padding: 56px 0;
}
.cta-band .container { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 900px) {
  .cta-band .container { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 8px; }
.cta-band p { color: #d8e8f6; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px; }
@media (min-width: 760px) { .form-card { padding: 36px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field label .req { color: var(--orange); }
.field label .opt { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9d6e2;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-note { font-size: 13px; color: var(--muted); }

/* contact info cards */
.contact-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-tile h3 { font-size: 16px; color: var(--blue-deep); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.contact-tile p, .contact-tile a { font-size: 14.5px; color: var(--muted); }
.contact-tile a { font-weight: 600; }

/* intent tabs on contact page */
.intent-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 34px; }
@media (min-width: 900px) { .intent-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.intent-tab {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s;
}
.intent-tab:hover { border-color: var(--blue); }
.intent-tab.selected { border-color: var(--orange); background: #fff8f1; }
.intent-tab .ic { font-size: 24px; display: block; margin-bottom: 8px; }
.intent-tab b { display: block; font-size: 15px; color: var(--blue-deep); margin-bottom: 3px; }
.intent-tab span { font-size: 12.5px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-deep); color: #c7d9ea; margin-top: 0; }
.footer-grid {
  display: grid;
  gap: 32px;
  padding: 52px 0 36px;
}
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0.03em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 14px; }
.site-footer a { color: #c7d9ea; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* misc */
.badge {
  display: inline-block;
  background: #e8f1fa;
  color: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.05fr 1fr; align-items: center; } }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.check-list { list-style: none; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  background: #e8f1fa;
  color: var(--blue);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skeleton-note {
  background: #fff8f1;
  border: 1px dashed var(--orange);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #7c4a12;
  margin-top: 18px;
}

/* narrow phones: feature grid stacks */
@media (max-width: 640px) {
  .features-grid { grid-template-columns: minmax(0, 1fr); }
  .feature { align-items: flex-start; }
}
/* uniform aspect for product sample thumbs */
.sample-thumb { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ================= =================
   v2 additions: language switch, FAQ,
   image annotation pill, SVG nodes
   ================= ================= */

/* language switcher (desktop header) */
.lang-switch { display: none; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 700; margin-right: 4px; }
.lang-switch a { padding: 7px 11px; border-radius: 7px; color: var(--muted); white-space: nowrap; }
.lang-switch a:hover { color: var(--blue); }
.lang-switch a.active { background: #e8f1fa; color: var(--blue); }
@media (min-width: 1080px) { .lang-switch { display: inline-flex; } }

/* language row in mobile drawer */
.mobile-nav .lang-row { display: flex; gap: 10px; padding: 12px 0 6px; border-bottom: none; }
.mobile-nav .lang-row a {
  flex: 1; text-align: center; border: 1.5px solid var(--line);
  border-radius: 8px; padding: 10px !important; color: var(--muted);
}
.mobile-nav .lang-row a.active { border-color: var(--blue); color: var(--blue); background: #e8f1fa; }

/* FAQ */
.faq-list { max-width: 860px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; padding: 2px 22px; }
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 15px 30px 15px 0; list-style: none;
  position: relative; font-size: 16.5px; color: var(--blue-deep); line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 11px;
  font-size: 24px; color: var(--orange); font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 0 17px; color: var(--muted); font-size: 15px; }
.faq-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* localized annotation pill over photos */
.img-wrap { position: relative; display: block; }
.img-pill {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(255, 255, 255, 0.94); color: var(--blue-deep);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 5px 13px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(9, 40, 68, 0.25);
}

/* SVG node diagrams */
.node-svg { width: 100%; height: auto; background: #fff; border-radius: 6px; border: 1px solid var(--line); display: block; }
.node-svg text { font-family: var(--font); font-size: 11.5px; fill: #33424f; font-weight: 600; }
.node-svg .lead-line { stroke: #8fa2b1; stroke-width: 1; fill: none; }
.node-svg .dim { font-size: 10px; fill: #7d8f9f; font-weight: 400; }

/* ================= =================
   Image lightbox (click to enlarge)
   ================= ================= */
main img.lb-item, .gallery img { cursor: zoom-in; }
main img.lb-item.lb-dragging { cursor: grabbing; }
body.lb-open { overflow: hidden; }

.lb-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(7, 22, 38, 0.93);
  display: flex; align-items: center; justify-content: center;
  animation: lb-fade 0.16s ease;
}
.lb-backdrop[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lb-figure { margin: 0; max-width: 92vw; display: flex; align-items: center; justify-content: center; }
.lb-img {
  max-width: 92vw; max-height: 78vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease;
  will-change: transform;
}
.lb-img.lb-dragging { transition: none; }

.lb-toolbar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px;
  background: rgba(12, 32, 52, 0.85); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px; backdrop-filter: blur(6px);
}
.lb-btn {
  width: 42px; height: 42px; border: none; border-radius: 50%;
  background: transparent; color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font);
  transition: background 0.14s ease, color 0.14s ease;
}
.lb-btn:hover, .lb-btn:focus-visible { background: var(--orange); color: #fff; outline: none; }
.lb-btn:focus-visible { box-shadow: 0 0 0 2px rgba(237, 124, 27, 0.6); }
.lb-close { position: fixed; top: 18px; right: 18px; font-size: 26px; background: rgba(12, 32, 52, 0.85); }

.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  font-size: 30px; width: 48px; height: 48px;
  background: rgba(12, 32, 52, 0.85);
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

.lb-caption {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  max-width: 86vw; display: flex; gap: 10px; align-items: baseline;
  color: rgba(255, 255, 255, 0.92); font-size: 13.5px;
  pointer-events: none;
}
.lb-count { font-weight: 700; color: var(--orange); white-space: nowrap; }
.lb-alt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
  .lb-img { max-width: 96vw; max-height: 72vh; }
  .lb-nav { display: none; }
  .lb-btn { width: 38px; height: 38px; }
  .lb-caption { bottom: 76px; font-size: 12px; }
}
