/* ============================================================
   Baiyisen Blog — Editorial Light Theme
   Refined 2026: typography, cards, sticky TOC, reading progress
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #10233a;
  --ink-soft: #3d4f63;
  --muted: #64748b;
  --primary: #1c5d99;
  --primary-dark: #14456f;
  --primary-tint: #eaf2fa;
  --accent: #b8532a;
  --accent-tint: #fdf1ea;
  --wa: #25d366;
  --wa-dark: #1eb954;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --border: #e3e9f2;
  --border-soft: #eef2f8;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16,35,58,.05), 0 1px 3px rgba(16,35,58,.04);
  --shadow-md: 0 2px 6px rgba(16,35,58,.06), 0 12px 28px rgba(16,35,58,.07);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Reading progress ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), #4a9bd6);
  z-index: 200; transition: width .1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-text { line-height: 1.25; }
.brand-name { font-size: 16.5px; font-weight: 750; color: var(--ink); letter-spacing: -.01em; }
.brand-name span { display: block; font-size: 11.5px; font-weight: 550; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; margin-top: 2px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
  padding: 7px 13px; border-radius: 8px; transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--primary-tint); color: var(--primary-dark); text-decoration: none; }
.main-nav a.nav-cta { background: var(--primary); color: #fff; }
.main-nav a.nav-cta:hover { background: var(--primary-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 62px 24px 54px; background: #fbfcfe; border-bottom: 1px solid var(--border-soft); }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(28,93,153,.13), transparent 68%);
  top: -300px; right: -160px; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(184,83,42,.10), transparent 68%);
  bottom: -330px; left: -140px; pointer-events: none;
}
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--primary-dark); background: var(--primary-tint);
  border: 1px solid #d3e4f3; padding: 6px 15px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 44px); line-height: 1.18; letter-spacing: -.022em;
  color: var(--ink); font-weight: 780; margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { font-size: 17.5px; color: var(--muted); max-width: 690px; margin: 0 auto 30px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  max-width: 760px; margin: 0 auto; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.hero-stats div { background: #fff; padding: 18px 12px; }
.hero-stats b { display: block; font-size: 22px; font-weight: 780; color: var(--ink); letter-spacing: -.02em; }
.hero-stats span { font-size: 12.5px; color: var(--muted); font-weight: 550; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 10px; padding: 12px 24px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 2px 8px rgba(37,211,102,.28); }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--primary-tint); border-color: #cfe1f2; color: var(--primary-dark); }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 46px 0 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 25px; letter-spacing: -.018em; color: var(--ink); font-weight: 760; }
.section-head p { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* ---------- Category chips ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.cat-nav a {
  font-size: 13.5px; font-weight: 650; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; transition: all .15s; text-decoration: none;
}
.cat-nav a:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-tint); text-decoration: none; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d2e0ee; text-decoration: none; }
.card-img {
  position: relative; aspect-ratio: 1/1; overflow: hidden; border-bottom: 1px solid var(--border-soft);
  background: #ffffff;
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.card-img picture { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.045); }
.card-chip {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase;
  color: var(--primary-dark); background: rgba(255,255,255,.94);
  border-radius: 6px; padding: 5px 9px; backdrop-filter: blur(4px);
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-title { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.42; letter-spacing: -.008em; }
.card:hover .card-title { color: var(--primary); }
.card-excerpt {
  font-size: 14px; color: var(--muted); line-height: 1.62; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #93a3b6; font-weight: 550; }
.card-meta i { width: 3px; height: 3px; border-radius: 50%; background: #c3cedb; display: inline-block; }

/* ---------- Category blocks ---------- */
.category-block { margin-bottom: 54px; scroll-margin-top: 90px; }
.category-bar { display: flex; align-items: center; gap: 14px; margin: 40px 0 20px; }
.category-bar h2 { font-size: 20px; font-weight: 740; color: var(--ink); letter-spacing: -.012em; }
.category-bar .count {
  font-size: 11.5px; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-tint); border-radius: 6px; padding: 3px 9px;
}
.category-bar::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Featured ---------- */
.featured { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; margin: 40px 0 10px; }
.featured-main { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; text-decoration: none; display: block; }
.featured-main picture { display: block; background: #fff; padding: 18px; border-bottom: 1px solid var(--border-soft); }
.featured-main img { height: 268px; width: 100%; object-fit: contain; }
.featured-main .fm-body { padding: 22px 24px 24px; }
.featured-main .fm-kicker { font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.featured-main h3 { font-size: 21px; color: var(--ink); line-height: 1.35; font-weight: 740; margin-bottom: 8px; }
.featured-main p { font-size: 14.5px; color: var(--muted); }
.featured-side { display: flex; flex-direction: column; gap: 14px; }
.mini-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mini-card:hover { border-color: #d2e0ee; box-shadow: var(--shadow-sm); text-decoration: none; }
.mini-card img { width: 86px; height: 86px; object-fit: cover; border-radius: 8px; flex: none; background: #fff; }
.mini-card h4 { font-size: 14.5px; color: var(--ink); line-height: 1.4; font-weight: 680; margin-bottom: 5px; }
.mini-card span { font-size: 12px; color: #93a3b6; font-weight: 550; }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px 0 0; }
.trust span {
  font-size: 12.5px; font-weight: 650; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 7px 13px;
}

/* ---------- Article ---------- */
.article-shell { max-width: var(--max); margin: 0 auto; padding: 34px 24px 70px; }
.article-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 48px; align-items: start; }

.toc { position: sticky; top: 92px; font-size: 13.5px; }
.toc-inner { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 18px 16px; }
.toc-title { font-size: 11.5px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 9px; line-height: 1.45; }
.toc a { color: var(--ink-soft); font-weight: 550; text-decoration: none; display: block; padding-left: 22px; position: relative; }
.toc a::before {
  content: counter(toc); position: absolute; left: 0; top: 1px;
  font-size: 10.5px; font-weight: 700; color: #9fb0c3;
  width: 15px; height: 15px; border-radius: 50%; background: #f2f6fb;
  display: flex; align-items: center; justify-content: center;
}
.toc a:hover { color: var(--primary); }
.toc a.active { color: var(--primary-dark); font-weight: 700; }
.toc-cta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.toc-cta a { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--wa-dark); font-size: 13px; text-decoration: none; }
.toc-cta a:hover { text-decoration: none; color: #17903f; }
.toc-cta svg { width: 16px; height: 16px; fill: currentColor; }

.article-main { min-width: 0; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--muted); font-weight: 550; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #c3cedb; }

.article-header .kicker {
  display: inline-block; font-size: 11.5px; font-weight: 750; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-tint);
  border-radius: 6px; padding: 5px 11px; margin-bottom: 14px;
}
.article-header h1 {
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.24; letter-spacing: -.022em;
  color: var(--ink); font-weight: 780; margin-bottom: 16px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 13.5px; color: var(--muted); font-weight: 550;
  padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 26px;
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #c3cedb; }
.article-meta .author { color: var(--ink-soft); font-weight: 650; }

.feature-img {
  margin: 0 0 28px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
}
.feature-img picture { display: block; padding: 26px; }
.feature-img img { width: 100%; aspect-ratio: 16/8.4; object-fit: contain; }

/* Key takeaways */
.takeaways {
  background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
  border: 1px solid #d8e7f6; border-left: 4px solid var(--primary);
  border-radius: 10px; padding: 20px 22px; margin: 0 0 30px;
}
.takeaways h2 {
  font-size: 15px !important; font-weight: 750; color: var(--primary-dark);
  margin: 0 0 12px !important; padding: 0 !important; border: 0 !important;
  letter-spacing: .04em; text-transform: uppercase;
}
.takeaways ul { margin: 0; padding: 0; list-style: none; }
.takeaways li {
  position: relative; padding-left: 26px; margin-bottom: 9px;
  font-size: 15px; color: var(--ink-soft); line-height: 1.65;
}
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Body */
.article-body { font-size: 17px; color: var(--ink-soft); }
.article-body > p:first-of-type { font-size: 18.5px; line-height: 1.72; color: #2c3e52; }
.article-body h2 {
  font-size: 24px; line-height: 1.32; letter-spacing: -.016em; color: var(--ink);
  font-weight: 750; margin: 42px 0 14px; padding-top: 6px; scroll-margin-top: 92px;
}
.article-body h3 { font-size: 18.5px; color: #1d3752; font-weight: 720; margin: 28px 0 10px; scroll-margin-top: 92px; }
.article-body p { margin-bottom: 18px; }
.article-body a { border-bottom: 1px solid #cfe0f0; }
.article-body a:hover { border-bottom-color: var(--primary); text-decoration: none; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 0; list-style: none; counter-reset: item; }
.article-body ul li, .article-body ol li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.article-body ul li::before {
  content: ""; position: absolute; left: 7px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: #9dc0dd;
}
.article-body ol li { counter-increment: item; }
.article-body ol li::before {
  content: counter(item); position: absolute; left: 0; top: 2px;
  font-size: 12px; font-weight: 750; color: var(--primary);
  background: var(--primary-tint); width: 19px; height: 19px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.article-body li strong, .article-body p strong { color: var(--ink); font-weight: 680; }
.article-body blockquote {
  position: relative; margin: 24px 0; padding: 18px 22px 18px 26px;
  background: var(--accent-tint); border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0; color: #6b4530; font-size: 16.5px;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; -webkit-overflow-scrolling: touch; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.article-body th {
  background: #f3f7fc; text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--border); font-weight: 720; color: var(--ink);
  font-size: 13px; letter-spacing: .01em; white-space: nowrap;
}
.article-body td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.article-body tr:last-child td { border-bottom: none; }
.article-body tbody tr:nth-child(even) { background: #fbfcfe; }

/* Callouts */
.callout {
  background: #f3f8fd; border: 1px solid #d7e6f5; border-radius: 12px;
  padding: 20px 22px; margin: 30px 0; font-size: 15.5px; line-height: 1.68; color: var(--ink-soft);
}
.callout strong { color: var(--primary-dark); font-weight: 720; }

/* Pricing note (compliance) */
.price-note {
  background: #fffbf4; border: 1px solid #f3e2c7; border-radius: 12px;
  padding: 18px 20px 18px 46px; margin: 26px 0; position: relative;
  font-size: 14px; line-height: 1.65; color: #6d5330;
}
.price-note::before {
  content: "i"; position: absolute; left: 18px; top: 18px;
  width: 18px; height: 18px; border-radius: 50%; background: #d9a441; color: #fff;
  font-size: 12px; font-weight: 800; font-style: italic; font-family: Georgia, serif;
  display: flex; align-items: center; justify-content: center;
}
.price-note strong { color: #5c421f; font-weight: 720; }

/* FAQ */
.faq { margin-top: 44px; }
.faq > h2 { font-size: 24px; color: var(--ink); font-weight: 750; margin-bottom: 16px; letter-spacing: -.016em; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 20px; margin-bottom: 10px; transition: border-color .15s;
}
.faq details[open] { border-color: #cfe1f2; box-shadow: var(--shadow-sm); }
.faq summary {
  font-weight: 680; cursor: pointer; font-size: 16px; color: var(--ink);
  padding: 16px 26px 16px 0; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--primary); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* CTA */
.cta-box {
  background: linear-gradient(135deg, #f0fbf4 0%, #f7fdf9 55%, #eef7ff 100%);
  border: 1px solid #c8e8d5; border-radius: var(--radius);
  padding: 26px 28px; margin-top: 44px;
}
.cta-box h3 { font-size: 20px; color: #10402a; font-weight: 750; margin-bottom: 7px; letter-spacing: -.012em; }
.cta-box p { font-size: 14.5px; color: #3f6b53; margin-bottom: 18px; max-width: 640px; }
.cta-actions { display: flex; gap: 11px; flex-wrap: wrap; }

/* Author */
.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 22px; margin-top: 40px;
}
.author-box img { height: 44px; width: auto; flex: none; }
.author-box h4 { font-size: 15.5px; color: var(--ink); font-weight: 720; margin-bottom: 4px; }
.author-box p { font-size: 13.8px; color: var(--muted); line-height: 1.62; margin: 0; }
.author-box a { font-weight: 650; }

/* Related */
.related { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--border); }
.related h2 { font-size: 21px; color: var(--ink); font-weight: 740; margin-bottom: 20px; letter-spacing: -.012em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related .card-title { font-size: 15px; }
.related .card-body { padding: 14px 16px 16px; }
.related .card-chip { font-size: 10px; padding: 4px 7px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  display: flex; align-items: center; gap: 9px;
  background: var(--wa); color: #fff; border-radius: 999px;
  padding: 13px 20px; font-weight: 700; font-size: 14.5px;
  box-shadow: 0 6px 22px rgba(37,211,102,.38); text-decoration: none;
  transition: transform .16s, box-shadow .16s;
}
.wa-float:hover { transform: translateY(-2px) scale(1.02); color: #fff; text-decoration: none; box-shadow: 0 8px 26px rgba(37,211,102,.46); }
.wa-float svg { width: 21px; height: 21px; fill: #fff; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid rgba(37,211,102,.5); animation: wa-pulse 2.2s ease-out infinite; pointer-events: none;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 88px; z-index: 140;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s, background .15s;
  cursor: pointer;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--primary-tint); color: var(--primary-dark); }
.to-top svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: #10233a; color: #b9cade; margin-top: 70px; padding: 52px 24px 26px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 36px; }
.footer-brand img { height: 34px; background: #fff; border-radius: 6px; padding: 5px 9px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.68; color: #93a9bf; }
.site-footer h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer li { list-style: none; }
.site-footer a { color: #a7bdd3; font-size: 13.8px; display: block; margin-bottom: 9px; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .contact-line { font-size: 13.8px; color: #a7bdd3; margin-bottom: 9px; }
.site-footer .contact-line b { color: #fff; font-weight: 650; }
.footer-bottom {
  max-width: var(--max); margin: 34px auto 0; 
  border-top: 1px solid #1d3550; padding-top: 18px;
  font-size: 12.5px; color: #7b93ab; line-height: 1.7;
}
.footer-bottom p { margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .article-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-main img { height: 240px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .header-inner { padding: 9px 14px; gap: 8px; flex-wrap: nowrap; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { height: 26px; }
  .brand-name { font-size: 14px; white-space: nowrap; }
  .brand-name span { display: none; }
  .main-nav ul { gap: 0; }
  .main-nav a { font-size: 12.5px; padding: 6px 8px; }
  .main-nav li:nth-child(3),
  .main-nav li:nth-child(4),
  .main-nav li:nth-child(5) { display: none; }
  .hero { padding: 48px 18px 42px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 18px; }
  .cards, .related-grid { grid-template-columns: 1fr; }
  .article-shell { padding: 22px 18px 56px; }
  .article-meta { gap: 4px 14px; font-size: 13px; }
  .article-meta .dot { display: none; }
  .article-meta .author { width: 100%; }
  .feature-img picture { padding: 10px; }
  .feature-img img { aspect-ratio: 1/1; }
  .article-body { font-size: 16.5px; }
  .article-body h2 { font-size: 21px; margin-top: 34px; }
  .article-body h3 { font-size: 17.5px; }
  .article-body > p:first-of-type { font-size: 17.5px; }
  .cta-box, .author-box, .callout, .takeaways, .price-note { padding-left: 18px; padding-right: 18px; }
  .price-note { padding-left: 44px; }
  .wa-float { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 13.5px; }
  .to-top { bottom: 76px; right: 16px; width: 38px; height: 38px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .wa-float, .to-top, .read-progress, .cta-box, .related, .toc, .site-footer { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .article-grid { display: block; }
  .article-body h2 { page-break-after: avoid; }
}

/* ============================================================
   Trade-show photography: homepage band, gallery, article figure
   ============================================================ */

/* ---------- Homepage booth band ---------- */
.booth-band {
  background:
    radial-gradient(1100px 320px at 12% -10%, #e8f1fa 0%, rgba(232,241,250,0) 62%),
    #fbfcfe;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin: 26px 0 8px;
  padding: 52px 24px;
}
.booth-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 0.95fr 1.15fr; gap: 44px; align-items: center;
}
.booth-copy h2 {
  font-size: 30px; line-height: 1.24; letter-spacing: -.02em;
  color: var(--ink); margin: 14px 0 14px; font-weight: 760;
}
.booth-copy p { font-size: 16px; color: var(--ink-soft); margin-bottom: 18px; }
.booth-points { list-style: none; margin: 0 0 26px; padding: 0; }
.booth-points li {
  position: relative; padding-left: 26px; margin-bottom: 9px;
  font-size: 15.2px; color: var(--ink-soft);
}
.booth-points li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 14px; height: 8px; border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary); transform: rotate(-45deg);
}
.booth-points b { color: var(--ink); font-weight: 650; }

.booth-media {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.show-tile {
  position: relative; overflow: hidden; border-radius: 12px;
  background: #eef3f9; border: 1px solid var(--border);
  display: block;
}
.show-tile picture { display: block; width: 100%; height: 100%; }
.show-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transition: transform .5s ease; }
.show-tile:hover img { transform: scale(1.05); }
.show-tile.wide { grid-column: span 2; aspect-ratio: 16/7.2; }
.show-tile:not(.wide) { aspect-ratio: 1/1; }

/* ---------- Exhibition page ---------- */
.ex-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #f6f9fd;
}
.ex-hero-bg { position: absolute; inset: 0; }
.ex-hero-bg picture { display: block; width: 100%; height: 100%; }
.ex-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 46%; }
.ex-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(96deg, #fbfdff 0%, #fbfdff 32%, rgba(251,253,255,.97) 44%,
    rgba(251,253,255,.82) 54%, rgba(251,253,255,.38) 70%, rgba(251,253,255,.10) 87%, rgba(251,253,255,.02) 100%);
}
.ex-hero-photo { display: none; }
.ex-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; padding: 46px 24px 54px;
}
.ex-hero-inner h1 {
  font-size: 40px; line-height: 1.16; letter-spacing: -.024em;
  color: var(--ink); font-weight: 780; max-width: 15em; margin: 12px 0 16px;
}
.ex-hero-inner p { max-width: 34em; font-size: 16.5px; color: var(--ink-soft); margin-bottom: 26px; }
.ex-hero-inner .kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-tint); border-radius: 99px; padding: 5px 12px;
}

.ex-body { padding-top: 44px; padding-bottom: 64px; }
.ex-body > section { margin-bottom: 46px; }
.ex-body h2 {
  font-size: 25px; line-height: 1.3; letter-spacing: -.015em;
  color: var(--ink); font-weight: 730; margin-bottom: 14px;
}
.ex-body p { margin-bottom: 14px; max-width: 46em; }
.ex-body ul, .ex-body ol { margin: 0 0 18px; padding-left: 22px; max-width: 46em; }
.ex-body li { margin-bottom: 8px; }
.ex-body li b { color: var(--ink); font-weight: 650; }

/* ---------- Gallery: masonry ---------- */
.gallery-section { padding-top: 6px; }
.gal-intro { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.gal-wide { margin: 0 0 14px; }
.gal-wide .gal-img { aspect-ratio: 16/7.2; object-fit: cover; object-position: 50% 55%; }
.gal-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.gal-half .gal-img { aspect-ratio: 16/8; object-fit: cover; }
.gallery-grid { columns: 3; column-gap: 14px; }
.gal-item {
  break-inside: avoid; margin: 0 0 14px; border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.gal-item picture { display: block; }
.gal-img { width: 100%; height: auto; display: block; }
.gal-item figcaption {
  padding: 12px 14px 13px; font-size: 13.2px; line-height: 1.6; color: var(--muted);
  border-top: 1px solid var(--border-soft); background: #fdfefe;
}

/* ---------- Article inline booth figure ---------- */
.article-figure {
  margin: 26px 0 30px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.article-figure picture { display: block; }
.article-figure img { width: 100%; height: auto; display: block; }
.article-figure figcaption {
  padding: 11px 15px 12px; font-size: 13.2px; line-height: 1.6;
  color: var(--muted); border-top: 1px solid var(--border-soft); background: #fcfdfe;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .booth-inner { grid-template-columns: 1fr; gap: 30px; }
  .gallery-grid { columns: 2; }
}
@media (max-width: 760px) {
  .booth-band { padding: 40px 18px; }
  .booth-copy h2 { font-size: 25px; }
  .booth-media { gap: 8px; }
  .show-tile.wide { aspect-ratio: 16/10; }
  .ex-hero-inner { padding: 32px 18px 40px; }
  .ex-hero-inner h1 { font-size: 28px; }
  .ex-hero-inner p { font-size: 15.5px; }
  .ex-hero-bg { display: none; }
  .ex-hero-photo { display: block; margin-top: 26px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
  .ex-hero-photo picture { display: block; }
  .ex-hero-photo img { width: 100%; height: auto; display: block; aspect-ratio: 4/3; object-fit: cover; object-position: 50% 42%; }
  .ex-body { padding: 32px 18px 56px; }
  .ex-body h2 { font-size: 21px; }
}
@media (max-width: 620px) {
  .gallery-grid { columns: 1; }
  .booth-media { grid-template-columns: 1fr 1fr; }
  .gal-pair { grid-template-columns: 1fr; }
  .gal-wide .gal-img { aspect-ratio: 16/10; }
}
