/* ============================================================
   MooreCharm® (默辰) — Design System  ·  Light / Editorial
   Aesthetic: spacious, restrained, semiconductor-grade precision.
   Paper white · graphite ink · deep engineering blue.
   ============================================================ */

:root {
  /* ---- Surfaces ---- */
  --bg:      #FFFFFF;
  --bg-soft: #F6F7F9;
  --bg-2:    #EEF1F5;
  --bg-ink:  #0C1220;      /* rare dark inversion (footer / cta) */

  /* ---- Ink / text ---- */
  --text:    #14181F;
  --text-dim:#525C6B;
  --text-mut:#8A93A2;
  --on-ink:  #E9EDF4;
  --on-ink-dim:#9AA6BC;

  /* ---- Accent ---- */
  --blue:    #1B4DFF;
  --blue-dk: #1338C4;
  --blue-tint:#EEF2FF;
  --blue-line:rgba(27,77,255,0.18);

  /* ---- Lines / shadow ---- */
  --line:    rgba(20,24,31,0.09);
  --line-2:  rgba(20,24,31,0.05);
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
  --shadow-md: 0 8px 24px -8px rgba(16,24,40,0.12);
  --shadow-lg: 0 24px 60px -20px rgba(16,24,40,0.18);
  --shadow-blue: 0 12px 30px -10px rgba(27,77,255,0.35);

  --radius:  12px;
  --radius-lg: 20px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Native-first typography keeps Chinese/English mixed text balanced without
     adding another remote font request to the critical rendering path. */
  --font-display: "Segoe UI Variable", "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Segoe UI Variable", "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}


* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.is-loading { background: #fff; }
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--text);
  opacity: 1;
  transition: opacity .58s var(--ease), visibility .58s var(--ease);
}
.site-loader.is-ready { opacity: 0; visibility: hidden; pointer-events: none; }
.site-loader-core { display: grid; justify-items: center; min-width: 214px; }
.site-loader-mark {
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 21px;
  border: 1px solid rgba(20, 24, 31, .16);
  border-radius: 50%;
}
.site-loader-mark::before,
.site-loader-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(138, 147, 162, .7);
  border-radius: 50%;
}
.site-loader-mark::after {
  inset: -1px;
  border-color: #1b4dff transparent transparent;
  animation: loader-spin 1.3s linear infinite;
}
.site-loader-mark span { display: none; }
.site-loader-core strong { font: 700 17px/1 var(--font-display); letter-spacing: 0; }
.site-loader-core strong span { color: #6f8cff; font-size: 9px; vertical-align: super; }
.site-loader-core small { margin-top: 11px; color: var(--text-mut); font: 600 9px/1 var(--font-display); letter-spacing: .2em; }
.site-loader-track { position: relative; width: 164px; height: 2px; margin-top: 28px; overflow: hidden; background: rgba(20, 24, 31, .12); }
.site-loader-track i { display: block; width: 42%; height: 100%; background: #1b4dff; animation: loader-progress 1.35s var(--ease) infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-progress { 0% { transform: translateX(-120%); } 100% { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) {
  .site-loader, .site-loader-mark::after, .site-loader-track i { animation: none; transition-duration: .2s; }
}
:lang(zh) {
  --font-display: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 900px; }

/* ---- Section rhythm ---- */
section { position: relative; padding: 104px 0; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; line-height: 1.14; color: var(--text); }
.section-head { max-width: 640px; margin-bottom: 8px; }
.section-title { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 18px; }
.section-lead { color: var(--text-dim); font-size: 17px; }

/* ============================================================
   NAV
   ============================================================ */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(16,24,40,0.02);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; gap: 11px; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0; color: var(--text); }
.brand .mark { width: 28px; height: 28px; flex: none; }
.brand .reg { font-size: 9px; vertical-align: super; color: var(--blue); font-weight: 600; }
.brand > span, .brand .cn { white-space: nowrap; }
.brand .cn { color: var(--text-mut); font-weight: 500; font-size: 13.5px; margin-left: 3px; letter-spacing: .04em; }
html[lang="en"] .brand .cn { display: none; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 14.5px; color: var(--text-dim); font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--blue); }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-chevron { font-size: 15px; line-height: 1; color: var(--text-mut); transform: translateY(-1px); }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 172px; padding: 6px; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-5px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.nav-menu a { display: block; padding: 10px 12px; white-space: nowrap; }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; background: var(--bg);
}
.lang-toggle button {
  background: none; border: none; color: var(--text-mut); cursor: pointer;
  padding: 6px 13px; transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-toggle button.active { background: var(--text); color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  padding: 11px 22px; border-radius: 100px; border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-dk); box-shadow: 0 16px 36px -10px rgba(27,77,255,0.45); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--bg); }
.btn-ghost:hover { border-color: var(--text); background: var(--bg); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 9px 17px; font-size: 13.5px; }

.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, a.lnk:hover .arrow { transform: translateX(3px); }

.lnk { color: var(--blue); font-weight: 600; font-family: var(--font-display); font-size: 14.5px; display: inline-flex; align-items: center; gap: 7px; }

.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }
.nav-menu-language { display: none; }

/* ---- SEMI standards page ---- */
.standards-local-nav { position: sticky; top: 72px; z-index: 50; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line-2); backdrop-filter: blur(14px) saturate(150%); }
.standards-local-nav .container { display: flex; gap: 28px; align-items: center; min-height: 58px; }
.standards-local-nav a { position: relative; padding: 18px 0 15px; color: var(--text-mut); font-size: 13.5px; font-weight: 600; }
.standards-local-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s var(--ease); }
.standards-local-nav a:hover, .standards-local-nav a.active { color: var(--blue); }
.standards-local-nav a.active::after { transform: scaleX(1); }
.standards-section { padding: 100px 0; scroll-margin-top: 130px; }
.standards-overview-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.standards-intro-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 70px; align-items: start; }
.standards-copy { color: var(--text-dim); font-size: 15.5px; line-height: 1.85; margin-top: 18px; }
.standards-metrics { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.standards-metric { min-height: 128px; padding: 25px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); }
.standards-metric strong { display: block; font-family: var(--font-display); color: var(--blue); font-size: 30px; line-height: 1; }
.standards-metric span { display: block; margin-top: 13px; color: var(--text-mut); font-size: 12.5px; line-height: 1.4; }
.standards-story-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; margin-top: 94px; padding-top: 52px; border-top: 1px solid var(--line); }
.standards-story-grid h3, .standards-importance h3 { font-size: 27px; margin-bottom: 17px; }
.standards-story-grid p, .standards-importance p { color: var(--text-dim); font-size: 15px; line-height: 1.85; margin-bottom: 15px; }
.standards-milestones { border-left: 1px solid var(--blue-line); padding-left: 30px; }
.milestone { position: relative; padding: 0 0 28px 22px; }
.milestone:last-child { padding-bottom: 0; }
.milestone::before { content: ""; position: absolute; left: -36px; top: 5px; width: 9px; height: 9px; border: 2px solid var(--blue); border-radius: 50%; background: var(--bg); }
.milestone strong { display: block; color: var(--blue); font-family: var(--font-display); font-size: 20px; }
.milestone span { display: block; color: var(--text-dim); font-size: 14px; margin-top: 3px; }
.standards-importance { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; margin-top: 92px; padding: 46px 0 0; border-top: 1px solid var(--line); }
.standards-library { margin-top: 100px; padding-top: 55px; border-top: 1px solid var(--line); }
.standards-library .section-head { max-width: 720px; }
.standards-library h3 { font-size: 30px; margin-bottom: 15px; }
.standards-search { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 34px 0 18px auto; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); box-shadow: var(--shadow-sm); }
.standards-search span { color: var(--blue); font-size: 21px; line-height: 1; }
.standards-search input { width: 100%; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; }
.standards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.standard-reference { display: grid; grid-template-columns: 34px 78px 1fr 18px; gap: 12px; align-items: start; min-height: 104px; padding: 20px 18px; border: 1px solid var(--line); background: var(--bg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.standard-reference:hover { border-color: var(--blue-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.standard-reference-number { color: var(--text-mut); font: 600 12px var(--font-display); padding-top: 3px; }
.standard-reference-code { color: var(--blue); font: 700 13.5px var(--font-display); padding-top: 2px; }
.standard-reference-title strong { display: block; color: var(--text); font-size: 15.5px; font-weight: 600; line-height: 1.55; }
.standard-reference-arrow { color: var(--blue); font-size: 16px; opacity: .6; }
.standards-empty { grid-column: 1 / -1; padding: 35px; text-align: center; color: var(--text-mut); border: 1px dashed var(--line); }
.standards-levels-section { background: var(--bg-ink); color: var(--on-ink); }
.standards-levels-section h2, .standards-levels-section h3, .standards-levels-section h4 { color: var(--on-ink); }
.standards-levels-section .section-lead, .standards-levels-section .standards-copy { color: var(--on-ink-dim); }
.standards-levels-section .eyebrow { color: #86a2ff; }
.standards-levels-section .eyebrow::before { background: #86a2ff; }
.credential-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.credential-level { min-height: 280px; padding: 26px; border: 1px solid rgba(233,237,244,.14); background: rgba(255,255,255,.045); }
.credential-level-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid rgba(233,237,244,.12); }
.credential-level-top strong { color: #fff; font: 700 42px var(--font-display); letter-spacing: .01em; }
.credential-index { color: #86a2ff; font: 600 12px var(--font-display); }
.credential-level h3 { font-size: 19px; margin: 25px 0 13px; }
.credential-level p, .route-step p, .standards-note p { color: var(--on-ink-dim); font-size: 14px; line-height: 1.75; }
.standards-route { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; margin-top: 86px; padding-top: 48px; border-top: 1px solid rgba(233,237,244,.14); }
.standards-route h3 { font-size: 27px; }
.route-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.route-step strong { display: block; color: #86a2ff; font: 700 14px var(--font-display); margin-bottom: 20px; }
.route-step h4 { font-size: 16px; margin-bottom: 10px; }
.standards-note { display: flex; align-items: center; gap: 16px; margin-top: 60px; padding: 20px 22px; border: 1px solid rgba(233,237,244,.14); background: rgba(255,255,255,.045); }
.standards-note > span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #86a2ff; border-radius: 50%; color: #86a2ff; font-weight: 700; flex: 0 0 auto; }
.standards-note p { flex: 1; }
.prog-cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #0c1220; }
.prog-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.prog-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 17, 34, .04) 35%, rgba(7, 17, 34, .78) 100%); pointer-events: none; }
.prog-cover-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #193d9c, #0c1220); }
.prog-category { position: absolute; z-index: 1; left: 16px; bottom: 15px; max-width: calc(100% - 64px); color: #fff; background: rgba(12, 18, 32, .48); border: 1px solid rgba(255, 255, 255, .28); padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(8px); }
.prog-arrow { position: absolute; z-index: 1; right: 17px; bottom: 13px; color: #fff; font-size: 22px; line-height: 1; opacity: .88; }
.prog:hover .prog-cover img { transform: scale(1.04); }
.business-page-head { min-height: 500px; padding: 146px 0 96px; background: #F4F7F9 url("/assets/images/wafer-service-studio.webp") center / cover no-repeat; }
.business-page-head .hero-bg { display: none; }
body[data-page="business"] header.nav .container { max-width: 1280px; }
.business-page-head .container { max-width: 1280px; }
.business-page-head h1 { max-width: 650px; font-size: clamp(36px, 5vw, 64px); }
.business-page-head p { max-width: 520px; }
.business-service { padding: 0 0 110px; background: #F7F8FA; }
.business-shell > .container { max-width: 1280px; }
.business-index-nav { position: sticky; top: 72px; z-index: 20; display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); background: rgba(247,248,250,.94); backdrop-filter: blur(14px); }
.business-index-nav a { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 18px 22px 16px 0; margin-right: 28px; border-bottom: 2px solid transparent; color: var(--text-mut); font: 600 12px var(--font-display); letter-spacing: .04em; white-space: nowrap; }
.business-index-nav a:first-child { padding-left: 2px; }
.business-index-nav a:hover, .business-index-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.business-index-nav a span { color: var(--text-dim); font: 500 14px var(--font-body); letter-spacing: 0; }
.business-index-nav a:hover span, .business-index-nav a.active span { color: var(--text); }
.business-content { max-width: 1100px; }
.business-block { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; padding: 76px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 132px; }
.business-block:last-child { border-bottom: 0; }
.business-block-head { display: flex; align-items: flex-start; gap: 12px; }
.business-index { color: var(--blue); font: 700 12px var(--font-display); letter-spacing: .12em; padding-top: 5px; flex: none; }
.business-block h2 { margin: 0; font-size: clamp(23px, 2.4vw, 32px); line-height: 1.2; }
.business-richtext { max-width: 780px; color: var(--text-dim); font-size: 16px; line-height: 1.9; }
.business-richtext p { margin: 0 0 14px; }
.business-richtext p:last-child { margin-bottom: 0; }
.business-richtext ul, .business-richtext ol { margin: 0; padding-left: 24px; }
.business-richtext li { margin: 10px 0; }
.business-richtext strong { color: var(--text); font-weight: 700; }
.business-richtext a { color: var(--blue); overflow-wrap: anywhere; }
.business-intro .business-richtext { color: var(--text); font-size: 20px; line-height: 1.7; }
.business-notices .business-richtext ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; padding: 0; list-style: none; }
.business-notices .business-richtext li { margin: 0; padding: 16px 0 16px 24px; border-top: 1px solid var(--line); position: relative; }
.business-notices .business-richtext li::before { content: ""; width: 6px; height: 6px; position: absolute; left: 2px; top: 25px; border-radius: 50%; background: var(--blue); }
.business-process .business-richtext ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; counter-reset: process; }
.business-process .business-richtext li { counter-increment: process; margin: 0; padding: 18px 14px 0 0; border-top: 2px solid var(--text); }
.business-process .business-richtext li::before { content: "0" counter(process); display: block; margin-bottom: 34px; color: var(--blue); font: 700 12px var(--font-display); letter-spacing: .12em; }
.business-process .business-richtext li br { display: none; }
.business-offerings .business-richtext ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 0; list-style: none; }
.business-offerings .business-richtext li { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.business-contact { grid-template-columns: 190px minmax(0, 1fr); padding-bottom: 28px; }
@media (max-width: 720px) {
  .business-page-head { min-height: 500px; padding: 124px 0 66px; background-position: 64% center; }
  .business-page-head h1 { font-size: 38px; }
  .business-service { padding: 0 0 72px; }
  .business-index-nav { top: 64px; margin: 0 -16px; padding-left: 16px; }
  .business-index-nav a { padding-top: 15px; padding-bottom: 13px; margin-right: 22px; }
  .business-block, .business-contact { grid-template-columns: 1fr; gap: 18px; padding: 48px 0; }
  .business-block-head { gap: 10px; }
  .business-block h2 { font-size: 23px; }
  .business-richtext, .business-intro .business-richtext { font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
  .business-notices .business-richtext ul, .business-process .business-richtext ol, .business-offerings .business-richtext ul { grid-template-columns: 1fr; gap: 14px; }
  .business-process .business-richtext li::before { margin-bottom: 14px; }
}

/* Keep the generated wafer photograph above the global page-head theme override. */
.business-page-head {
  background-color: #F4F7F9;
  background-image: url("/assets/images/wafer-service-studio.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.business-page-head .hero-bg { display: none; }
@media (max-width: 720px) {
  .business-page-head { background-position: 64% center; }
}

/* ---- Refined sign-in button ---- */
.nav-auth { display: flex; align-items: center; }
.btn-signin {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text);
  height: 36px; min-height: 36px; box-sizing: border-box;
  padding: 0 14px; border-radius: 100px; border: 1px solid var(--line); background: var(--bg);
  transition: border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn-signin svg { width: 15px; height: 15px; color: var(--blue); transition: transform .2s var(--ease); }
.btn-signin:hover { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); transform: translateY(-1px); }

/* ---- Account chip + dropdown ---- */
.acct { display: flex; align-items: center; gap: 8px; height: 36px; min-height: 36px; box-sizing: border-box; padding: 4px 10px 4px 4px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--bg); cursor: pointer; position: relative; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.acct:hover, .acct:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.acct-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 12px; }
.acct-name { font-size: 13.5px; font-weight: 600; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct svg:last-of-type { color: var(--text-mut); }
.acct-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 180px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s var(--ease); z-index: 20; }
.acct:hover .acct-menu, .acct:focus-within .acct-menu { opacity: 1; visibility: visible; transform: none; }
.acct-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--text-dim); font-weight: 500; }
.acct-menu a:hover { background: var(--bg-soft); color: var(--text); }
.acct-menu a#logout-btn { color: #DC2626; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 124px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 75% 15%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 15%, #000 0%, transparent 70%);
}
.hero-bg .tint { position: absolute; top: -25%; right: -10%; width: 780px; height: 780px;
  background: radial-gradient(circle, rgba(27,77,255,0.07), transparent 60%); }
.hero-wafer { position: absolute; top: 50%; right: -140px; width: 560px; height: 560px; transform: translateY(-50%); opacity: .9; }

.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); letter-spacing: 0; }
.hero h1 .accent { color: var(--blue); }
.hero-sub { margin: 26px 0 34px; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--text-dim); max-width: 500px; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.hero-badge .num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.hero-badge .lbl { font-size: 13px; color: var(--text-mut); margin-top: 4px; }

/* Lookup card */
.lookup-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.lookup-card h3 { font-size: 18px; margin-bottom: 6px; }
.lookup-card .lc-sub { font-size: 13.5px; color: var(--text-mut); margin-bottom: 20px; }
.lookup-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--bg-soft); padding: 4px; border-radius: 11px; }
.lookup-tabs .lt {
  flex: 1; text-align: center; font-size: 13px; padding: 8px; border-radius: 8px;
  color: var(--text-dim); cursor: pointer; transition: all .2s var(--ease); font-weight: 500;
}
.lookup-tabs .lt.active { background: var(--bg); color: var(--blue); box-shadow: var(--shadow-sm); }
.lookup-input { display: flex; gap: 10px; }
.lookup-input input {
  flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: 14px; font-family: var(--font-body);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.lookup-input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.lookup-note { font-size: 11.5px; color: var(--text-mut); margin-top: 14px; display: flex; align-items: center; gap: 6px; }

/* ============================================================
   SEGMENTS
   ============================================================ */
.segments-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 52px; }
.segment {
  position: relative; padding: 38px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--bg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.segment::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--blue); transition: width .4s var(--ease); }
.segment:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line); }
.segment:hover::after { width: 100%; }
.segment .idx { font-family: var(--font-display); font-size: 12.5px; color: var(--blue); letter-spacing: .12em; font-weight: 600; }
.segment h3 { font-size: 25px; margin: 16px 0 12px; }
.segment p { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }
.segment .seg-icon { position: absolute; top: 34px; right: 34px; width: 42px; height: 42px; color: var(--blue); opacity: .9; }
.seg-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-tags span { font-size: 12px; color: var(--text-dim); background: var(--bg-soft); padding: 6px 13px; border-radius: 100px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.svc {
  padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc .svc-ic { width: 34px; height: 34px; margin-bottom: 18px; color: var(--blue); }
.svc h4 { font-size: 17px; margin-bottom: 9px; }
.svc p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.svc .region { position: absolute; top: 22px; right: 22px; font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue); background: var(--blue-tint); padding: 4px 9px; border-radius: 100px; font-weight: 600; }
.svc .region.cn { color: #B26A00; background: #FFF3E0; }

/* ============================================================
   STRIP
   ============================================================ */
.strip { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.strip-item .n { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.strip-item .t { font-size: 13.5px; color: var(--text-dim); margin-top: 8px; }

/* ============================================================
   CTA
   ============================================================ */
.cta-box {
  border-radius: var(--radius-lg); padding: 76px 40px; text-align: center;
  background: var(--bg-ink); color: var(--on-ink); position: relative; overflow: hidden;
}
.cta-box .grid-o { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(ellipse at center, #000, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 72%); }
.cta-box h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; color: #fff; position: relative; }
.cta-box p { color: var(--on-ink-dim); max-width: 520px; margin: 0 auto 32px; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--bg-ink); color: var(--on-ink-dim); padding: 76px 0 34px; }
footer .brand { color: #fff; }
footer .brand .cn { color: var(--on-ink-dim); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--on-ink-dim); font-size: 13.5px; margin-top: 16px; max-width: 280px; }
.foot-col h5 { font-family: var(--font-display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.foot-col a { display: block; color: var(--on-ink-dim); font-size: 14px; margin-bottom: 11px; transition: color .2s var(--ease); }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12.5px; color: var(--on-ink-dim); }
.foot-bottom a:hover { color: #fff; }

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-head { padding: 112px 0 60px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line-2); }
.page-head .hero-bg { z-index: 0; }
.page-head .hero-bg .grid { background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 55% 120% at 85% -10%, #000, transparent 62%);
  -webkit-mask-image: radial-gradient(ellipse 55% 120% at 85% -10%, #000, transparent 62%); }
.page-head .hero-bg .tint { top: -40%; right: -14%; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(27,77,255,0.10), transparent 60%); }
.page-head .container { position: relative; z-index: 1; }
.page-head .ph-label { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
  background: var(--bg); border: 1px solid var(--blue-line); padding: 7px 15px; border-radius: 100px; margin-bottom: 22px; }
.page-head .ph-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: 0; position: relative; padding-left: 22px; }
.page-head h1::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--blue), transparent); }
.page-head p { color: var(--text-dim); font-size: 17px; max-width: 580px; margin-top: 18px; padding-left: 22px; }
.breadcrumb { font-size: 12.5px; color: var(--text-mut); margin-bottom: 20px; font-family: var(--font-display); letter-spacing: .03em; }
.breadcrumb a:hover { color: var(--blue); }
.page-head .ph-motif { position: absolute; top: 50%; right: 4%; transform: translateY(-50%); width: 200px; height: 200px;
  z-index: 0; opacity: .5; }
@media (max-width: 720px) { .page-head .ph-motif { display: none; } }

/* ---- Filters / chips ---- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.chip {
  font-size: 13.5px; font-weight: 500; padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--text-dim); cursor: pointer; background: var(--bg);
  transition: all .2s var(--ease); font-family: var(--font-body);
}
.chip:hover { border-color: var(--text-mut); }
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ---- Activity cards ---- */
.activity-list { display: grid; gap: 16px; }
.activity {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: center;
  padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); position: relative;
}
.activity:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.activity .a-date { text-align: center; border-right: 1px solid var(--line-2); padding-right: 20px; }
.activity .a-date .d { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--text); line-height: 1; }
.activity .a-date .m { font-size: 12px; color: var(--text-mut); letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.activity .a-body h4 { font-size: 18px; margin-bottom: 7px; }
.activity .a-body p { font-size: 14px; color: var(--text-dim); }
.activity .a-meta { display: flex; gap: 14px; margin-top: 11px; font-size: 12.5px; color: var(--text-mut); }
.activity .a-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tag { font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 100px; letter-spacing: .04em; text-transform: uppercase; }
.tag.upcoming { color: var(--blue); background: var(--blue-tint); }
.tag.past { color: var(--text-mut); background: var(--bg-2); }

/* ---- Past case gallery ---- */
.case-gallery { padding: 88px 0 24px; }
.case-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-photo { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.case-photo > a { display: block; position: relative; overflow: hidden; cursor: zoom-in; }
.case-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s var(--ease), filter .45s var(--ease); }
.case-photo > a:hover img { transform: scale(1.035); filter: saturate(1.08); }
.case-photo-zoom { display: none; }
.case-photo > a:hover .case-photo-zoom { transform: translate(2px, -2px); background: rgba(27,77,255,.86); }
.case-photo figcaption { padding: 13px 16px 15px; color: var(--text-dim); font-size: 13px; }
.activity-archive { padding: 70px 0 42px; }
.case-intro-grid { display: grid; grid-template-columns: .62fr 1.38fr; gap: 56px; align-items: end; margin-bottom: 76px; }
.case-intro-copy { padding-bottom: 20px; }
.case-feature { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 330px; background: #0c1220; color: #fff; overflow: hidden; }
.case-feature-image { min-height: 330px; overflow: hidden; }
.case-feature-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.case-feature:hover .case-feature-image img { transform: scale(1.04); }
.case-feature-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; background: linear-gradient(145deg, #182957, #0c1220); }
.case-feature-index, .a-index { color: #8aa6ff; font: 700 11px var(--font-display); letter-spacing: .14em; }
.case-feature-copy h3 { color: #fff; font-size: 24px; line-height: 1.2; margin: 13px 0 12px; }
.case-feature-copy p { color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.7; margin-bottom: 22px; }
.case-feature-copy .lnk { color: #fff; }
.archive-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.archive-toolbar .chips { margin: 0; }
.activity-list { position: relative; gap: 0; }
.activity-list::before { content: ""; position: absolute; left: 20px; top: 16px; bottom: 16px; width: 1px; background: var(--blue-line); }
.activity { display: grid; grid-template-columns: 42px 94px 180px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 26px 24px 26px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.activity:hover { transform: none; box-shadow: none; background: linear-gradient(90deg, transparent, var(--bg-soft)); }
.activity .a-index { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--blue); border-radius: 50%; background: var(--bg); color: var(--blue); letter-spacing: 0; }
.activity .a-date { text-align: left; border-right: 1px solid var(--line-2); padding-right: 20px; }
.activity .a-media { overflow: hidden; aspect-ratio: 16 / 10; }
.activity .a-media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.86); transition: transform .35s var(--ease), filter .35s var(--ease); }
.activity:hover .a-media img { transform: scale(1.04); filter: saturate(1); }
.activity .a-status { justify-self: end; padding-right: 4px; text-align: right; }
.activity .a-media { position: relative; display: block; text-decoration: none; background: var(--bg-soft); }
.activity .a-photo-count { position: absolute; right: 9px; bottom: 9px; padding: 5px 8px; border-radius: 3px; color: #fff; background: rgba(12,18,32,.78); font: 600 11px var(--font-display); }
.activity .a-photo-empty { display: grid; height: 100%; place-items: center; color: var(--text-mut); font: 600 13px var(--font-display); letter-spacing: .08em; }
.activity .a-body h4 a { color: inherit; text-decoration: none; }
.activity .a-body h4 a:hover { color: var(--blue); }
.case-read { display: block; margin-top: 12px; color: var(--blue); font-size: 12px; text-decoration: none; white-space: nowrap; }
.case-read span { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.case-read:hover span { transform: translateX(3px); }
.activity-photo-section { margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--line); }
.case-photo-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.case-photo-heading h3 { margin: 0; }
.case-photo-heading span { color: var(--text-mut); font-size: 13px; }
.activity-detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.activity-detail-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.activity-detail-gallery figure:first-child { grid-column: 1 / -1; }
.activity-detail-gallery a { display: block; cursor: zoom-in; }
.activity-detail-gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s var(--ease); }
.activity-detail-gallery figure:first-child img { aspect-ratio: 2.2 / 1; }
.activity-detail-gallery a:hover img { transform: scale(1.02); }
.activity-detail-gallery figcaption { display: flex; justify-content: space-between; padding: 10px 13px; color: var(--text-mut); font-size: 12px; }
.activity-detail-gallery figcaption span { color: var(--blue); font-family: var(--font-display); }
.photo-lightbox[hidden] { display: none; }
.photo-lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); opacity: 0; transition: opacity .18s ease; }
.photo-lightbox.is-open { opacity: 1; }
.photo-lightbox-backdrop { position: absolute; inset: 0; background: rgba(5, 10, 20, .86); backdrop-filter: blur(16px) saturate(120%); }
.photo-lightbox-dialog { position: relative; z-index: 1; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(1120px, 100%); max-height: calc(100vh - 48px); overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: #101827; box-shadow: 0 30px 100px rgba(0,0,0,.45); transform: translateY(8px) scale(.985); transition: transform .24s var(--ease); }
.photo-lightbox.is-open .photo-lightbox-dialog { transform: none; }
.photo-lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.66); font: 600 11px var(--font-display); letter-spacing: .13em; }
.photo-lightbox-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: rgba(255,255,255,.07); cursor: pointer; font: 300 25px/1 var(--font-body); transition: background .2s ease, transform .2s ease; }
.photo-lightbox-close:hover { background: rgba(255,255,255,.16); transform: rotate(5deg); }
.photo-lightbox-stage { position: relative; display: grid; min-height: 0; place-items: center; padding: 20px clamp(54px, 7vw, 96px); background: #08101e; }
.photo-lightbox-image { display: block; max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 18px 48px rgba(0,0,0,.38); opacity: .35; transition: opacity .2s ease; }
.photo-lightbox-image.is-loaded { opacity: 1; }
.photo-lightbox-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; font: 300 32px/1 var(--font-body); transform: translateY(-50%); transition: background .2s ease, border-color .2s ease; }
.photo-lightbox-nav:hover:not(:disabled) { border-color: rgba(255,255,255,.5); background: rgba(27,77,255,.8); }
.photo-lightbox-nav:disabled { opacity: .25; cursor: not-allowed; }
.photo-lightbox-nav.is-prev { left: 16px; }
.photo-lightbox-nav.is-next { right: 16px; }
.photo-lightbox-caption { min-height: 46px; padding: 13px 18px 15px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.5; }
body.lightbox-open { overflow: hidden; }
.case-story p { margin-bottom: 14px; }
.case-aside-title { font: 700 17px var(--font-display); color: var(--text); }
.training-catalog-section { padding: 72px 0 110px; }
.training-catalog-section .course-group { margin-top: 0; padding: 0; }
.training-catalog-section .course-group + .course-group { margin-top: 64px; padding-top: 54px; border-top: 1px solid var(--line); }
.course-group-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 20px; }
.course-group-head h3 { font-size: 25px; margin-top: 8px; }
.course-group-head p { max-width: 390px; color: var(--text-dim); font-size: 14px; line-height: 1.7; }

/* ---- Verify / query ---- */
.verify-panel { max-width: 720px; margin: 0 auto; }
.verify-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; background: var(--bg); box-shadow: var(--shadow-md); }
.verify-box .lookup-tabs { margin-bottom: 22px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 9px; font-family: var(--font-display); }
.big-input { display: flex; gap: 12px; }
.big-input input { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; font-size: 15px; color: var(--text); font-family: var(--font-body); transition: border-color .2s, box-shadow .2s; }
.big-input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }

.result { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.result-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; background: #F0FBF4; border-bottom: 1px solid var(--line-2); }
.result-head .ok { width: 26px; height: 26px; border-radius: 50%; background: #16A34A; display: grid; place-items: center; flex: none; }
.result-head .rt { font-family: var(--font-display); font-weight: 600; color: #15803D; }
.result-body { padding: 8px 24px 20px; }
.result-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.result-row:last-child { border-bottom: none; }
.result-row .k { color: var(--text-mut); }
.result-row .v { color: var(--text); font-weight: 500; }

/* ---- Course / program cards ---- */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prog { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.prog:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.prog .p-body { padding: 22px 24px 26px; }
.prog .p-body h4 { font-size: 17px; margin-bottom: 9px; }
.prog .p-body p { font-size: 13.5px; color: var(--text-dim); margin-bottom: 18px; }
.prog .p-foot { display: flex; align-items: center; justify-content: space-between; }
.prog .p-foot .dur { font-size: 12.5px; color: var(--text-mut); }

/* ---- Exam / gated ---- */
.gate { max-width: 760px; margin: 0 auto; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 60px 40px; background: var(--bg); box-shadow: var(--shadow-md); }
.gate .lock { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; margin: 0 auto 24px; }
.gate h2 { font-size: 28px; margin-bottom: 14px; }
.gate p { color: var(--text-dim); max-width: 480px; margin: 0 auto 28px; }
.exam-types { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; text-align: left; }
.exam-type { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.exam-type:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.exam-type .et-ic { width: 40px; height: 40px; color: var(--blue); margin-bottom: 16px; }
.exam-type h4 { font-size: 18px; margin-bottom: 8px; }
.exam-type p { font-size: 14px; color: var(--text-dim); }

[data-href] { cursor: pointer; }

/* ---- Standards rows ---- */
.std-list { display: grid; gap: 12px; margin-top: 14px; }
.std-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center;
  padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.std-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.std-code { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text); }
.std-code .std-ed { color: var(--text-mut); font-weight: 500; font-size: 13px; }
.std-title { font-weight: 500; font-size: 14.5px; margin-bottom: 4px; }
.std-scope { font-size: 13px; color: var(--text-mut); }
.std-tags { display: flex; gap: 8px; align-items: center; }
.std-cat { font-size: 11.5px; color: var(--text-dim); background: var(--bg-soft); padding: 4px 11px; border-radius: 100px; }
.std-status { font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 100px; text-transform: uppercase; letter-spacing: .04em; }
.std-status.a { color: #15803D; background: #ECFDF3; }
.std-status.s { color: var(--text-mut); background: var(--bg-2); }

/* ---- Verify empty / muted ---- */
.result-empty { padding: 26px; text-align: center; color: var(--text-mut); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-soft); margin-top: 22px; }
.reports-empty {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 194px;
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 72%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.reports-empty-visual {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 112px;
  padding: 16px 14px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background:
    linear-gradient(rgba(27, 77, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 77, 255, .08) 1px, transparent 1px),
    #fff;
  background-size: 100% 25%, 25% 100%, auto;
}
.reports-empty-visual span {
  display: block;
  flex: 1;
  min-width: 8px;
  height: 30%;
  border-radius: 3px 3px 0 0;
  background: #c8d5ff;
}
.reports-empty-visual span:nth-child(2) { height: 48%; background: #a9baff; }
.reports-empty-visual span:nth-child(3) { height: 40%; background: #7f9cff; }
.reports-empty-visual span:nth-child(4) { height: 68%; background: #5478ff; }
.reports-empty-visual span:nth-child(5) { height: 84%; background: var(--blue); }
.reports-empty-copy { min-width: 0; text-align: left; }
.reports-empty-kicker { display: block; color: var(--blue); font: 700 11px var(--font-display); letter-spacing: .16em; }
.reports-empty-copy strong { display: block; margin-top: 9px; color: var(--text); font: 600 22px/1.25 var(--font-display); }
.reports-empty-copy p { max-width: 520px; margin-top: 8px; color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.reports-empty-copy .btn { margin-top: 16px; }
.muted { color: var(--text-mut); font-size: 14px; padding: 14px 0; }

/* ---- Reports: category filter ---- */
.rep-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }

/* ---- Featured report (editorial hero) ---- */
.rp-featured { display: grid; grid-template-columns: 1fr 0.92fr; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); box-shadow: var(--shadow-md); margin-bottom: 40px; }
.rpf-left { padding: 40px 42px; display: flex; flex-direction: column; }
.rpf-tags { display: flex; gap: 8px; margin-bottom: 20px; }
.rpf-cat { font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-tint); padding: 5px 12px; border-radius: 100px; }
.rpf-tier { font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 100px; letter-spacing: .04em; }
.rpf-tier.premium { color: var(--text); background: var(--bg-2); }
.rpf-tier.free { color: #15803D; background: #ECFDF3; }
.rpf-left h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: 0; margin-bottom: 14px; }
.rpf-left > p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-bottom: 26px; }
.rpf-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-bottom: 26px; }
.rpf-kpi .v { font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--text); letter-spacing: 0; }
.rpf-kpi .v .d { font-size: 12.5px; font-weight: 600; color: #15803D; margin-left: 5px; }
.rpf-kpi .l { font-size: 12px; color: var(--text-mut); margin-top: 4px; }
.rpf-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rpf-meta { font-size: 12.5px; color: var(--text-mut); font-family: var(--font-display); }
.rpf-meta b { color: var(--text); font-weight: 600; }
.rpf-right { background: linear-gradient(160deg, #0C1220, #1a2540);
  padding: 34px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.rpf-right .ch-title { color: #cbd5e8; font-size: 12.5px; font-family: var(--font-display); letter-spacing: .04em; margin-bottom: 18px; }
.rpf-right svg { width: 100%; height: 190px; display: block; }
.rpf-legend { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.rpf-legend span { font-size: 11.5px; color: #9aa6bc; display: inline-flex; align-items: center; gap: 6px; }
.rpf-legend span::before { content: ""; width: 10px; height: 3px; border-radius: 2px; background: var(--lc, #1B4DFF); }

/* ---- Report cards (library grid) ---- */
.reports-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.report { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.report:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-line); }
.rp-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.rp-cat2 { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.rp-tier2 { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 100px; letter-spacing: .03em; }
.rp-tier2.premium { color: var(--blue); background: var(--blue-tint); }
.rp-tier2.free { color: #15803D; background: #ECFDF3; }
.rp-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.rp-body h4 { font-size: 16.5px; line-height: 1.35; margin-bottom: 10px; }
.rp-body > p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rp-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line-2); }
.rp-meta { font-size: 12px; color: var(--text-mut); font-family: var(--font-display); }
.rp-price { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }
.rp-price.free { color: #15803D; }

/* ---- Exam mock paper ---- */
.mock-paper { margin-top: 30px; display: grid; gap: 16px; }
.mock-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: var(--bg); }
.mq-stem { font-weight: 600; font-size: 16px; margin-bottom: 16px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mq-i { font-family: var(--font-display); color: #fff; background: var(--blue); width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 13px; flex: none; }
.mq-bank { font-size: 11px; color: var(--text-mut); background: var(--bg-soft); padding: 3px 10px; border-radius: 100px; font-weight: 500; margin-left: auto; }
.mq-opts { display: grid; gap: 8px; }
.mq-opt { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14.5px; transition: border-color .2s, background .2s; }
.mq-opt:hover { border-color: var(--blue); background: var(--blue-tint); }
.mq-opt input { accent-color: var(--blue); }
.mq-opt span { font-weight: 600; color: var(--text-mut); }

/* ============================================================
   STATIC PAGE BLOCKS (about / contact)
   ============================================================ */
.mission { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; margin-bottom: 80px; }
.mission-left h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: 0; }
.mission-left .eyebrow { margin-bottom: 16px; }
.mission-right p { font-size: 18px; line-height: 1.7; color: var(--text-dim); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.value-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .vc-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.value-card h4 { font-size: 17px; margin-bottom: 9px; }
.value-card p { font-size: 14px; color: var(--text-dim); }

/* contact */
.contact-body { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 44px; align-items: start; }
.contact-form { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; background: var(--bg); box-shadow: var(--shadow-md); }
.contact-form .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .fld { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; font-family: var(--font-display); margin-bottom: 8px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; font-family: var(--font-body); color: var(--text); transition: border-color .18s, box-shadow .18s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { margin-top: 4px; }
.contact-success { display: none; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 10px; background: var(--blue-tint); color: var(--blue); font-weight: 500; font-size: 14px; margin-bottom: 18px; border: 1px solid var(--blue-line); }
.contact-success.show { display: flex; }
.contact-aside .ca-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg); box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.contact-aside .ca-card h5 { font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mut); margin-bottom: 10px; }
.contact-aside .ca-card .v { font-size: 15px; color: var(--text); font-weight: 500; }
.contact-aside .ca-card .v a { color: var(--blue); }

@media (max-width: 880px) {
  .mission, .contact-body { grid-template-columns: 1fr; gap: 32px; }
  .value-grid { grid-template-columns: 1fr; }
  .contact-form .cf-row { grid-template-columns: 1fr; }
}

/* ============================================================
   DETAIL PAGES
   ============================================================ */
.detail-body { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; padding: 60px 0 100px; }
.detail-main h3 { font-size: 21px; margin: 38px 0 14px; }
.detail-main h3:first-child { margin-top: 0; }
.detail-main p { color: var(--text-dim); font-size: 15.5px; line-height: 1.75; margin-bottom: 14px; }
.detail-lead { font-size: 18px !important; color: var(--text) !important; line-height: 1.7 !important; }
.course-richtext { color: var(--text-dim); font-size: 15.5px; line-height: 1.75; }
.course-richtext p { margin-bottom: 14px; }
.course-richtext ul, .course-richtext ol { margin: 6px 0 18px; padding-left: 24px; color: var(--text-dim); }
.course-richtext li { margin: 6px 0; }
.course-richtext h4 { margin: 8px 0 10px; color: var(--text); font-size: 17px; }
.rich-table-wrap { position: relative; max-width: 100%; max-height: min(70vh, 620px); overflow: auto; margin: 14px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.course-richtext table { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 1.6; }
.course-richtext th, .course-richtext td { border: 1px solid var(--line-2); padding: 11px 13px; text-align: left; vertical-align: top; }
.course-richtext th { position: sticky; top: 0; z-index: 4; background: var(--bg-soft); color: var(--text); font-weight: 700; white-space: nowrap; box-shadow: 0 1px 0 var(--line); }
.course-richtext td { color: var(--text-dim); background: var(--bg); }
.course-richtext th:nth-child(1), .course-richtext td:nth-child(1) { width: 132px; min-width: 132px; }
.course-richtext th:nth-child(2), .course-richtext td:nth-child(2) { width: 220px; min-width: 220px; }
.course-richtext tbody tr:nth-child(even) td { background: #fbfcff; }
.course-richtext th:nth-child(1), .course-richtext td:nth-child(1) { position: sticky; z-index: 2; }
.course-richtext th:nth-child(1), .course-richtext td:nth-child(1) { left: 0; box-shadow: 1px 0 0 var(--line); }
.course-richtext thead th:nth-child(1) { z-index: 6; }
.detail-main ul.bullets { list-style: none; margin: 4px 0 8px; }
.detail-main ul.bullets li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--text-dim); font-size: 15px; }
.detail-main ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }

.toc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.toc-item { display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.toc-item:last-child { border-bottom: none; }
.toc-item .ti-n { font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: 14px; width: 28px; }
.toc-item .ti-t { flex: 1; color: var(--text); font-weight: 500; }
.toc-item .ti-m { font-size: 12.5px; color: var(--text-mut); font-family: var(--font-display); }
.course-outline { border-top: 1px solid var(--line); }
.outline-group { padding: 22px 0 8px; border-bottom: 1px solid var(--line-2); }
.outline-head { display: flex; gap: 16px; align-items: flex-start; }
.outline-head .ti-n { color: var(--blue); font-family: var(--font-display); font-weight: 700; width: 28px; flex: 0 0 28px; }
.outline-head h4 { font-size: 16px; line-height: 1.4; margin: 0 0 5px; }
.outline-head span { color: var(--text-mut); font-size: 12px; }
.outline-group .bullets { margin: 12px 0 0 44px !important; }

.detail-chart { background: linear-gradient(160deg, #0C1220, #1a2540); border-radius: var(--radius); padding: 28px; margin: 8px 0 10px; }
.detail-chart .ch-title { color: #cbd5e8; font-size: 13px; font-family: var(--font-display); margin-bottom: 16px; }
.detail-chart svg { width: 100%; height: 220px; }
.detail-chart .rpf-legend { margin-top: 16px; }
.detail-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 10px; }
.detail-kpis .kpi { background: var(--bg-soft); border-radius: 10px; padding: 18px; }
.detail-kpis .kpi .v { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: 0; }
.detail-kpis .kpi .v .d { font-size: 12.5px; color: #15803D; margin-left: 5px; font-weight: 600; }
.detail-kpis .kpi .l { font-size: 12px; color: var(--text-mut); margin-top: 5px; }

.detail-aside { position: sticky; top: 96px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-md); overflow: hidden; }
.aside-card .ac-top { padding: 26px 26px 22px; border-bottom: 1px solid var(--line-2); }
.aside-price { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: 0; }
.aside-price.free { color: #15803D; }
.aside-price .cur { font-size: 18px; color: var(--text-mut); font-weight: 600; }
.aside-rows { padding: 18px 26px; }
.aside-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; }
.aside-row .k { color: var(--text-mut); }
.aside-row .v { color: var(--text); font-weight: 500; }
.aside-cta { padding: 6px 26px 26px; }
.aside-cta .btn { width: 100%; justify-content: center; }
.aside-note { font-size: 12px; color: var(--text-mut); text-align: center; margin-top: 12px; display: flex; gap: 6px; align-items: center; justify-content: center; }

.detail-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 100px; }
.detail-status.upcoming { color: var(--blue); background: var(--blue-tint); }
.detail-status.past { color: var(--text-mut); background: var(--bg-2); }
.dh-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 20px; padding-left: 22px; }
.dh-meta .m { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); }
.dh-meta .m svg { color: var(--blue); }

@media (max-width: 900px) {
  .detail-body { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .detail-aside { position: static; }
  .detail-kpis { grid-template-columns: 1fr 1fr; }
  .standards-intro-grid, .standards-story-grid, .standards-importance, .standards-route { grid-template-columns: 1fr; gap: 36px; }
  .credential-levels { grid-template-columns: 1fr; }
  .standards-metrics { max-width: 560px; }
}

/* ============================================================
   Reveal animation — subtle, staggered
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
.reveal[data-d="5"] { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .home-proof-art img { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-wafer { display: none; }
  .segments-grid { grid-template-columns: 1fr; }
  .services-grid, .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .exam-types { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .case-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) and (min-width: 641px) {
  .activity { grid-template-columns: 38px 82px 150px minmax(0, 1fr) 92px; gap: 16px; padding-right: 20px; }
  .activity .a-body { min-width: 0; }
  .activity .a-body h4, .activity .a-body p { overflow-wrap: anywhere; }
  .activity .a-status { padding-right: 0; }
}
@media (max-width: 640px) {
  section { padding: 74px 0; }
  .hero { padding: 100px 0 64px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .services-grid, .prog-grid, .foot-grid { grid-template-columns: 1fr; }
  .case-gallery-grid { grid-template-columns: 1fr; }
  .brand .cn { display: none; }
  .activity { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .activity .a-date { display: flex; gap: 10px; align-items: baseline; border-right: none; padding-right: 0; text-align: left; }
  .activity .a-date .m { margin-top: 0; }
  .case-intro-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .case-feature { grid-template-columns: 1fr; }
  .case-feature-image { min-height: 220px; aspect-ratio: 16 / 10; }
  .case-feature-copy { padding: 25px; min-height: 230px; }
  .case-feature-copy h3 { font-size: 21px; }
  .archive-toolbar { display: block; }
  .archive-toolbar .chips { margin-top: 16px; }
  .activity-list::before { left: 16px; }
  .activity { grid-template-columns: 34px 1fr auto; gap: 14px; padding: 22px 0; }
  .activity .a-index { width: 32px; height: 32px; font-size: 10px; }
  .activity .a-date { grid-column: 2 / -1; border: 0; padding: 0; display: flex; gap: 9px; align-items: baseline; }
  .activity .a-media { grid-column: 2 / -1; max-width: none; }
  .activity .a-body { grid-column: 2 / -1; }
  .activity .a-status { grid-column: 3; grid-row: 1; }
  .activity-detail-gallery { grid-template-columns: 1fr; gap: 12px; }
  .activity-detail-gallery figure:first-child { grid-column: auto; }
  .activity-detail-gallery figure:first-child img { aspect-ratio: 16 / 10; }
  .activity-photo-section { margin-top: 38px; padding-top: 26px; }
  .photo-lightbox { padding: 12px; }
  .photo-lightbox-dialog { max-height: calc(100vh - 24px); border-radius: 14px; }
  .photo-lightbox-stage { padding: 16px 43px; }
  .photo-lightbox-image { max-height: calc(100vh - 150px); border-radius: 5px; }
  .photo-lightbox-nav { width: 34px; height: 34px; font-size: 26px; }
  .photo-lightbox-nav.is-prev { left: 8px; }
  .photo-lightbox-nav.is-next { right: 8px; }
  .photo-lightbox-caption { padding: 11px 14px 13px; font-size: 12px; }
  .training-catalog-section { padding: 48px 0 72px; }
  .training-catalog-section .course-group + .course-group { margin-top: 42px; padding-top: 38px; }
  .course-group-head { display: block; margin-bottom: 17px; }
  .course-group-head h3 { font-size: 21px; }
  .course-group-head p { margin-top: 10px; }
  .std-row { grid-template-columns: 1fr; gap: 12px; }
  .rp-kpis { grid-template-columns: 1fr 1fr; }
  .outline-head { gap: 10px; }
  .outline-group .bullets { margin-left: 0 !important; }
  .nav-item { display: none; }
  .standards-local-nav { top: 0; }
  .standards-section { padding: 76px 0; }
  .standards-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standards-metric { min-height: 112px; padding: 20px 16px; }
  .standards-metric strong { font-size: 27px; }
  .standards-metric span { margin-top: 9px; font-size: 11px; }
  .standards-grid { grid-template-columns: 1fr; }
  .standards-search { margin-left: 0; max-width: none; }
  .standard-reference { grid-template-columns: 28px 70px 1fr 16px; min-height: 96px; padding: 17px 13px; }
  .standard-reference-title strong { font-size: 15px; }
  .standards-note { align-items: flex-start; flex-wrap: wrap; }
  .standards-note .btn { margin-left: 40px; }
  .route-steps { grid-template-columns: 1fr; gap: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-lightbox, .photo-lightbox-dialog, .photo-lightbox-image, .case-photo img, .case-photo-zoom { transition: none; }
}

/* ============================================================
   Warm public polish
   Keep the original white/blue character; add only a barely visible
   warm cast to large background planes.
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --bg-2: #EEF1F5;
  --warm-line: rgba(180, 123, 32, 0.055);
  --line: rgba(20,24,31,0.09);
  --line-2: rgba(20,24,31,0.05);
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
  --shadow-md: 0 8px 24px -8px rgba(16,24,40,0.12);
  --shadow-lg: 0 24px 60px -20px rgba(16,24,40,0.18);
}

body {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FFFDF8 18%, #F8FAFC 58%, #FFFFFF 100%);
}

header.nav.scrolled {
  background: rgba(255, 255, 255, 0.84);
  border-bottom-color: var(--line-2);
}

.hero,
.page-head {
  background:
    linear-gradient(180deg, rgba(255, 250, 235, 0.26) 0%, rgba(255, 255, 255, 0.78) 46%, rgba(255, 255, 255, 0) 100%);
}

.hero-bg .grid {
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
}

.hero-bg .tint {
  background:
    radial-gradient(circle, rgba(27,77,255,0.07), transparent 60%),
    radial-gradient(circle at 30% 15%, rgba(255, 243, 199, 0.12), transparent 48%);
}

.page-head {
  border-bottom-color: var(--line-2);
}

.strip {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.34), var(--bg-soft));
  border-color: var(--line-2);
}

.svc .region.cn {
  color: #B26A00;
  background: #FFF3E0;
}

/* Navigation and standards polish */
header.nav.scrolled { background: rgba(255,255,255,.96); border-bottom-color: var(--line); box-shadow: 0 8px 22px -20px rgba(16,24,40,.45); }
.nav-inner { position: relative; }
header.nav.nav-over-media {
  --nav-media-bg: rgba(7, 17, 34, .62);
  background: var(--nav-media-bg);
  border-bottom-color: rgba(255, 255, 255, .16);
  box-shadow: 0 8px 22px -20px rgba(0, 0, 0, .6);
  backdrop-filter: blur(16px) saturate(150%);
}
header.nav.nav-over-media .brand { color: #fff; }
header.nav.nav-over-media .brand .cn { color: rgba(255, 255, 255, .7); }
header.nav.nav-over-media .nav-links a { color: rgba(255, 255, 255, .78); }
header.nav.nav-over-media .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
header.nav.nav-over-media .nav-links a.active { color: #a9baff; }
header.nav.nav-over-media .nav-chevron { color: rgba(255, 255, 255, .65); }
header.nav.nav-over-media .lang-toggle { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .12); }
header.nav.nav-over-media .lang-toggle button { color: rgba(255, 255, 255, .78); }
header.nav.nav-over-media .lang-toggle button.active { background: rgba(255, 255, 255, .92); color: var(--text); }
header.nav.nav-over-media .nav-toggle { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .92); color: var(--text); }
.standards-local-nav { background: #fff; box-shadow: 0 8px 18px -20px rgba(16,24,40,.55); }
.standards-levels-section { background: linear-gradient(180deg, #F1F5FF 0%, #F8FAFC 100%); color: var(--text); }
.standards-levels-section h2, .standards-levels-section h3, .standards-levels-section h4 { color: var(--text); }
.standards-levels-section .section-lead, .standards-levels-section .standards-copy, .standards-levels-section .credential-level p, .standards-levels-section .route-step p, .standards-levels-section .standards-note p { color: var(--text-dim); }
.standards-levels-section .eyebrow { color: var(--blue); }
.standards-levels-section .eyebrow::before { background: var(--blue); }
.credential-level { border-color: var(--line); background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }
.credential-level-top { border-bottom-color: var(--line); }
.credential-level-top strong { color: var(--text); }
.credential-index, .route-step strong { color: var(--blue); }
.standards-route { border-top-color: var(--line); }
.standards-note { border-color: var(--line); background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }
.credential-application { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--blue-line); border-left: 3px solid var(--blue); background: rgba(255,255,255,.78); }
.credential-application .eyebrow { margin-bottom: 10px; }
.credential-application p { color: var(--text-dim); font-size: 14px; line-height: 1.8; }

/* Image-led pages keep the navigation over the hero image. The expanded mobile
   menu gets its own opaque surface below so its links remain readable. */
header.nav.nav-over-media {
  background: rgba(7, 17, 34, .62);
  border-bottom-color: rgba(255, 255, 255, .16);
  box-shadow: 0 8px 22px -20px rgba(0, 0, 0, .6);
  backdrop-filter: blur(16px) saturate(150%);
}
header.nav.nav-over-media .brand { color: #fff; }
header.nav.nav-over-media .brand .cn { color: rgba(255, 255, 255, .7); }
header.nav.nav-over-media .nav-links a { color: rgba(255, 255, 255, .78); }
header.nav.nav-over-media .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
header.nav.nav-over-media .nav-links a.active { color: #a9baff; }
header.nav.nav-over-media .nav-chevron { color: rgba(255, 255, 255, .65); }
header.nav.nav-over-media .lang-toggle { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .12); }
header.nav.nav-over-media .lang-toggle button { color: rgba(255, 255, 255, .78); }
header.nav.nav-over-media .lang-toggle button.active { background: rgba(255, 255, 255, .92); color: var(--text); }
header.nav.nav-over-media .nav-toggle { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .92); color: var(--text); }

@media (max-width: 1180px) and (min-width: 641px) {
  .nav-inner { height: 66px; padding: 0 24px; gap: 12px; }
  .brand { min-width: 0; flex: 1; gap: 8px; font-size: 18px; }
  .brand .cn { display: none; }
  .nav-right { gap: 8px; flex: none; }
  .lang-toggle button { padding: 6px 10px; }
  .acct { padding: 5px 9px 5px 5px; }
  .acct-name { max-width: 92px; }
  .nav-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
  .nav-links { display: none; position: absolute; top: 66px; left: 24px; right: 24px; padding: 10px; flex-direction: column; align-items: stretch; gap: 3px; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 18px 30px -24px rgba(16,24,40,.55); }
  header.nav.menu-open .nav-links { display: flex; }
  .nav-links > a, .nav-item > a { display: flex; justify-content: space-between; width: 100%; padding: 11px 12px; border-radius: 8px; white-space: nowrap; }
  .nav-item { display: block; }
  .nav-menu { position: static; display: block; min-width: 0; padding: 0 0 4px 12px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .nav-menu a { padding: 8px 10px; font-size: 13px; }
  .nav-menu-language { display: flex; align-items: center; justify-content: flex-start; margin-top: 8px; padding: 14px 10px 4px; border-top: 1px solid var(--line); }
  .nav-menu-language .lang-toggle { border-color: var(--line); background: var(--bg); }
  .nav-menu-language .lang-toggle button { color: var(--text-mut); }
  .nav-menu-language .lang-toggle button.active { background: var(--text); color: #fff; }
}

@media (max-width: 640px) {
  header.nav { background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line-2); }
  .nav-inner { height: 64px; padding: 0 16px; gap: 8px; }
  .brand { min-width: 0; flex: 1; gap: 8px; font-size: 17px; }
  .brand .mark { width: 26px; height: 26px; }
  .brand > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand .cn { display: none; }
  .nav-right { gap: 6px; flex: none; }
  .lang-toggle button { padding: 6px 8px; }
  .btn-signin { padding: 7px; width: 34px; height: 34px; justify-content: center; }
  .btn-signin span, .acct-name, .acct > svg:last-of-type { display: none; }
  .acct { padding: 4px; width: 34px; height: 34px; justify-content: center; }
  .nav-toggle { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 10px 16px 14px; flex-direction: column; align-items: stretch; gap: 3px; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-top: 0; box-shadow: 0 18px 30px -24px rgba(16,24,40,.55); }
  header.nav.menu-open .nav-links { display: flex; }
  .nav-links > a, .nav-item > a { display: flex; justify-content: space-between; width: 100%; padding: 12px 10px; border-radius: 8px; }
  .nav-item { display: block; }
  .nav-menu { position: static; display: block; min-width: 0; padding: 0 0 4px 12px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .nav-menu a { padding: 8px 10px; font-size: 13px; }
  .standards-local-nav { top: 64px; }
  .standards-levels-section { margin-top: 0; }
  footer { padding: 48px 0 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-brand p { max-width: 330px; font-size: 13px; }
  .foot-col h5 { margin-bottom: 12px; }
  .foot-col a { font-size: 13px; margin-bottom: 8px; }
  .foot-bottom { align-items: flex-start; flex-direction: column; gap: 7px; margin-top: 34px; padding-top: 18px; font-size: 11px; }
}

/* Business service page: keep this override after the shared page theme. */
.business-page-head {
  min-height: 468px;
  padding: 148px 0 86px;
  background-color: #eef2f5;
  background-image:
    linear-gradient(90deg, rgba(247, 249, 250, .98) 0%, rgba(247, 249, 250, .9) 28%, rgba(247, 249, 250, .42) 58%, rgba(247, 249, 250, .08) 100%),
    url("/assets/images/wafer-service-studio.webp");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
.business-page-head .hero-bg { display: none; }
.business-page-head .container { max-width: 1280px; }
.business-page-head .breadcrumb { margin-bottom: 22px; color: #647082; }
.business-page-head h1 {
  max-width: 680px;
  padding-left: 0;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 0;
}
.business-page-head h1::before { display: none; }
.business-page-head p { max-width: 520px; padding-left: 0; margin-top: 20px; color: #536174; }
.business-service { padding-bottom: 0; background: #f7f9fa; }
.business-shell > .container { max-width: 1280px; }
.business-index-nav {
  top: 72px;
  margin: 0 -32px;
  padding: 0 32px;
  background: rgba(247, 249, 250, .9);
  border-bottom-color: rgba(20, 24, 31, .12);
}
.business-content { max-width: 1160px; }
.business-block { padding: 68px 0; }
.business-block-head { position: relative; }
.business-block-head::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 2px;
  width: 1px;
  height: 58px;
  background: linear-gradient(#1b4dff, rgba(27, 77, 255, 0));
}
.business-index { position: relative; z-index: 1; padding: 0; }
.business-block h2 { letter-spacing: 0; }
.business-intro.business-block { padding-top: 82px; padding-bottom: 92px; }
.business-intro .business-block-head { padding-top: 4px; }
.business-intro .business-richtext { max-width: 720px; color: #2f3b4d; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.82; letter-spacing: 0; }
.business-intro .business-richtext p { max-width: 720px; }
.business-notices .business-richtext li { background: rgba(255, 255, 255, .54); padding: 17px 18px 17px 34px; border-top-color: rgba(20, 24, 31, .08); }
.business-notices .business-richtext li::before { left: 14px; top: 27px; }
.business-process .business-richtext li { min-height: 164px; padding-right: 18px; border-top-color: #1b4dff; }
.business-offerings .business-richtext li { padding: 20px 18px 0 0; }
.business-contact { padding: 42px 0 48px; }
.business-contact .business-index { padding-bottom: 0; }
.business-contact-email { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.business-contact-email-label { color: inherit; }
@media (max-width: 720px) {
  .business-page-head {
    min-height: 408px;
    padding: 112px 0 54px;
    background-image:
      linear-gradient(90deg, rgba(247, 249, 250, .97) 0%, rgba(247, 249, 250, .76) 52%, rgba(247, 249, 250, .18) 100%),
      url("/assets/images/wafer-service-studio.webp");
    background-position: center, 70% center;
    background-size: cover, cover;
  }
  .business-page-head h1 { max-width: 480px; font-size: 38px; }
  .business-page-head p { max-width: 360px; font-size: 15px; }
  .business-index-nav { top: 64px; margin: 0 -16px; padding: 0 16px; }
  .business-block-head::after { top: 27px; height: 42px; }
  .business-index { padding-bottom: 0; }
  .business-contact { padding: 38px 0 36px; }
  .business-contact .business-index { padding-bottom: 0; }
  .business-contact .business-richtext { font-size: 14px; line-height: 1.85; }
  .business-intro.business-block { padding-top: 58px; padding-bottom: 64px; }
  .business-intro .business-richtext { max-width: none; font-size: 18px; line-height: 1.85; }
  .business-process .business-richtext li { min-height: 0; }
}

/* Editorial image headers for the main public sections. */
.page-head.media-head {
  --head-image: url("/assets/images/wafer-service-studio.webp");
  min-height: 432px;
  padding: 142px 0 82px;
  background-color: #edf2f5;
  background-image:
    linear-gradient(90deg, rgba(247, 249, 250, .96) 0%, rgba(247, 249, 250, .78) 35%, rgba(247, 249, 250, .16) 100%),
    var(--head-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-head.media-head .hero-bg { display: none; }
.page-head.media-head .container { max-width: var(--maxw); }
.page-head.media-head .breadcrumb { margin-bottom: 22px; color: #647082; }
.page-head.media-head h1 { max-width: 720px; padding-left: 0; font-size: clamp(38px, 5vw, 64px); letter-spacing: 0; }
.page-head.media-head h1::before { display: none; }
.page-head.media-head p { max-width: 560px; padding-left: 0; margin-top: 20px; color: #536174; }
.page-head.about-head { --head-image: url("/assets/images/page-headers/about-hero-v2.webp"); }
.page-head.exam-head { --head-image: url("/assets/images/page-headers/exam-hero-v3.webp"); }
.page-head.reports-head { --head-image: url("/assets/images/page-headers/reports-hero.webp"); }
.page-head.standards-head { --head-image: url("/assets/images/page-headers/standards-hero.webp"); }
.page-head.contact-head { --head-image: url("/assets/images/page-headers/contact-hero-v2.webp"); }
.page-head.training-head { --head-image: url("/assets/images/page-headers/training-hero.webp"); }
.page-head.verify-head { --head-image: url("/assets/images/course-covers/equipment-safety-pre-level-1.webp"); }
.page-head.activities-head { --head-image: url("/assets/images/page-headers/activities-hero-v3.webp"); }
.page-head.activities-head,
.page-head.activity-detail-head {
  background-image:
    linear-gradient(90deg, rgba(247, 249, 250, .86) 0%, rgba(247, 249, 250, .62) 35%, rgba(247, 249, 250, .08) 100%),
    var(--head-image);
}
.page-head.activity-detail-head {
  min-height: 468px;
  background-position: center;
}
.page-head.activity-detail-head h1 { max-width: 850px; }
.page-head.activity-detail-head .dh-meta { gap: 12px 22px; margin-top: 16px; padding-left: 0; }
.page-head.media-head.head-dark {
  background-image:
    linear-gradient(90deg, rgba(7, 17, 34, .86) 0%, rgba(7, 17, 34, .58) 46%, rgba(7, 17, 34, .12) 100%),
    var(--head-image);
}
.page-head.media-head.head-dark .breadcrumb,
.page-head.media-head.head-dark .breadcrumb a,
.page-head.media-head.head-dark p { color: rgba(255, 255, 255, .78); }
.page-head.media-head.head-dark h1 { color: #fff; }
.page-head.course-detail-head {
  min-height: 468px;
  background-image:
    linear-gradient(90deg, rgba(7, 17, 34, .86) 0%, rgba(7, 17, 34, .56) 48%, rgba(7, 17, 34, .12) 100%),
    var(--head-image);
}
@media (min-width: 721px) {
  /* Main section covers need a taller desktop canvas; course detail covers
     stay compact because their content ends directly after the title. */
  .page-head.media-head:not(.course-detail-head) {
    min-height: 600px;
    padding: 154px 0 90px;
  }
  .page-head.course-detail-head {
    min-height: 480px;
    padding: 184px 0 24px;
    background-position: center 50%;
  }
  body[data-page="detail"] header.nav.nav-over-media {
    background: rgba(255, 255, 255, .86);
    border-bottom-color: rgba(20, 24, 31, .1);
    box-shadow: 0 8px 22px -20px rgba(16, 24, 40, .55);
    backdrop-filter: blur(16px) saturate(150%);
  }
  body[data-page="detail"] header.nav.nav-over-media .brand { color: var(--text); }
  body[data-page="detail"] header.nav.nav-over-media .brand .cn { color: var(--text-mut); }
  body[data-page="detail"] header.nav.nav-over-media .nav-links a { color: var(--text-dim); }
  body[data-page="detail"] header.nav.nav-over-media .nav-links a:hover { color: var(--text); background: rgba(16, 24, 40, .06); }
  body[data-page="detail"] header.nav.nav-over-media .nav-links a.active { color: var(--blue); }
  body[data-page="detail"] header.nav.nav-over-media .nav-chevron { color: var(--text-mut); }
  body[data-page="detail"] header.nav.nav-over-media .lang-toggle { border-color: var(--line); background: rgba(255, 255, 255, .88); }
  body[data-page="detail"] header.nav.nav-over-media .lang-toggle button { color: var(--text-mut); }
  body[data-page="detail"] header.nav.nav-over-media .lang-toggle button.active { background: var(--text); color: #fff; }
  body[data-page="detail"] header.nav.nav-over-media .nav-toggle { border-color: var(--line); background: rgba(255, 255, 255, .92); color: var(--text); }
}
.page-head.course-detail-head .detail-status.upcoming {
  color: #fff;
  background: rgba(27, 77, 255, .72);
  border: 1px solid rgba(255, 255, 255, .3);
}
.page-head.course-detail-head h1 {
  max-width: 850px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(7, 17, 34, .2);
}
.page-head.course-detail-head .breadcrumb,
.page-head.course-detail-head .breadcrumb a { color: rgba(255, 255, 255, .8); }
.page-head.course-detail-head .breadcrumb a:hover { color: #fff; }

/* Course detail pages must shrink with the viewport instead of inheriting the
   wide minimum width of rich-text tables. */
.detail-main, .detail-aside, .course-richtext { min-width: 0; }
.course-richtext { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .page-head.media-head {
    min-height: 374px;
    padding: 108px 0 52px;
    background-position: 62% center;
  }
  .page-head.media-head h1 { font-size: 38px; }
  .page-head.media-head p { max-width: 390px; font-size: 15px; }
  .page-head.media-head.head-dark { background-position: 64% center; }
  /* Course detail has no subtitle/meta row, so the shared media-head spacing
     leaves an oversized empty band below the title on narrow screens. */
  .page-head.course-detail-head {
    min-height: 380px;
    padding: 96px 0 28px;
    background-position: 68% 44%;
  }
  .page-head.activity-detail-head { min-height: 430px; background-position: 62% center; }
}

@media (max-width: 640px) {
  html, body, #detail-root { width: 100%; max-width: 100%; overflow-x: hidden; }
  .container { width: 100%; max-width: 100%; min-width: 0; padding-left: 24px; padding-right: 24px; }
  .nav-inner { width: 100%; min-width: 0; }
  .nav-right, .nav-auth { display: flex; min-width: 0; }
  .btn-signin { width: auto; min-width: 0; padding: 7px 10px; }
  .btn-signin span { display: inline; }
  .acct { width: auto; min-width: 0; padding: 4px 8px 4px 4px; }
  .acct-name { display: inline; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .acct > svg:last-of-type { display: none; }
  .lang-toggle button, .lang-toggle button[data-lang="zh"] { min-width: 0; padding: 6px 7px; }
  .detail-body, .detail-main, .detail-aside, .course-richtext { max-width: 100%; }
  .page-head.course-detail-head h1 { max-width: 100%; font-size: clamp(32px, 9vw, 42px); overflow-wrap: anywhere; }
  .page-head.activity-detail-head .detail-status { margin-bottom: 10px !important; }
  .page-head.activity-detail-head .dh-meta { gap: 8px 16px; margin-top: 12px; }
  .page-head.activity-detail-head .dh-meta .m { gap: 6px; font-size: 13px; }
  .home-hero .hero-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
  }
  .home-hero .hero-badge,
  .home-hero .hero-badge + .hero-badge {
    min-width: 0;
    padding: 0 8px;
  }
  .home-hero .hero-badge .num { font-size: 26px; }
  .home-hero .hero-badge .lbl { font-size: 11px; white-space: nowrap; }
  .reports-empty { grid-template-columns: 86px minmax(0, 1fr); gap: 16px; min-height: 166px; padding: 18px; }
  .reports-empty-visual { height: 96px; gap: 5px; padding: 12px 9px 10px; }
  .reports-empty-copy strong { font-size: 17px; }
  .reports-empty-copy p { font-size: 12px; line-height: 1.6; }
  .reports-empty-copy .btn { margin-top: 12px; padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 390px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .btn-signin { width: 34px; height: 34px; padding: 7px; justify-content: center; }
  .btn-signin span, .acct-name { display: none; }
  .acct { width: 34px; height: 34px; padding: 4px; justify-content: center; }
  .lang-toggle button, .lang-toggle button[data-lang="zh"] { padding-left: 6px; padding-right: 6px; }
}

/* Desktop navigation: keep translated labels on one visual baseline. */
@media (min-width: 1181px) {
  .nav-inner { gap: 20px; }
  .nav-links { flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 4px; }
  .nav-links > a, .nav-item > a { padding: 9px 11px; font-size: 15px; white-space: nowrap; }
  .nav-right { flex: 0 0 auto; gap: 8px; }
}
.lang-toggle button { min-width: 44px; white-space: nowrap; line-height: 1.2; }
.lang-toggle button[data-lang="zh"] { min-width: 50px; }
@media (max-width: 1400px) and (min-width: 641px) {
  .nav-inner { height: 66px; padding: 0 24px; gap: 12px; }
  .brand { min-width: 0; flex: 1; gap: 8px; font-size: 18px; }
  .brand .cn { display: none; }
  .nav-right { gap: 8px; flex: none; }
  .lang-toggle button { padding: 6px 9px; }
  .acct { padding: 5px 9px 5px 5px; }
  .acct-name { max-width: 92px; }
  .nav-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
  .nav-links { display: none; position: absolute; top: 66px; left: 24px; right: 24px; padding: 10px; flex-direction: column; align-items: stretch; gap: 3px; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 18px 30px -24px rgba(16,24,40,.55); }
  header.nav.menu-open .nav-links { display: flex; }
  .nav-links > a, .nav-item > a { display: flex; justify-content: space-between; width: 100%; padding: 11px 12px; border-radius: 8px; white-space: nowrap; }
  .nav-item { display: block; }
  .nav-menu { position: static; display: block; min-width: 0; padding: 0 0 4px 12px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .nav-menu a { padding: 8px 10px; font-size: 13px; }
}

/* Home page: a more editorial, image-led rhythm. */
.site-scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), #54d6ff);
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  background: rgba(20, 24, 31, .88);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(16, 24, 40, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  cursor: pointer;
  transition: opacity .22s var(--ease), visibility .22s, transform .22s var(--ease), background .22s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--blue); transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (min-width: 641px) {
  .back-to-top {
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }
}
@media (max-width: 640px) {
  .back-to-top { right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
}

.lookup-tabs .lt {
  position: relative;
}

.lookup-tabs .lt:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.lookup-tabs .lt.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.hero-badge {
  transition: transform .25s var(--ease);
}

.hero-badge:hover {
  transform: translateY(-3px);
}

.home-business-section .segment:focus-visible,
.home-services-section .svc:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.home-services-section .svc {
  transition: padding-left .25s var(--ease), background .25s var(--ease);
}

.home-services-section .svc:hover {
  padding-left: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge:hover,
  .home-services-section .svc:hover {
    transform: none;
    padding-left: inherit;
  }
}
body[data-page="home"] .home-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding: 142px 0 96px;
  background-color: #eef2f5;
  background-image:
    linear-gradient(90deg, rgba(247, 249, 250, .98) 0%, rgba(247, 249, 250, .9) 34%, rgba(247, 249, 250, .4) 63%, rgba(247, 249, 250, .08) 100%),
    url("/assets/images/wafer-service-studio.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
body[data-page="home"] .home-hero .hero-bg { display: none; }
.home-hero .hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(340px, .74fr); gap: 74px; }
.home-hero .eyebrow { margin-bottom: 24px; }
.home-hero h1 { max-width: 670px; font-size: clamp(48px, 5.5vw, 76px); line-height: 1.04; letter-spacing: 0; }
.home-hero .hero-sub { max-width: 540px; margin-top: 28px; color: #4e5b6d; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; }
.home-hero .hero-badges { max-width: 560px; gap: 0; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(20, 24, 31, .14); }
.home-hero .hero-badge { min-width: 145px; padding-right: 26px; }
.home-hero .hero-badge + .hero-badge { padding-left: 26px; border-left: 1px solid rgba(20, 24, 31, .14); }
.home-hero .lookup-card { border-color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .9); box-shadow: 0 28px 70px -28px rgba(12, 18, 32, .26); backdrop-filter: blur(14px); }
.home-hero .lookup-card h3 { font-size: 21px; }
.home-hero .lookup-card .lc-sub { color: #687486; line-height: 1.6; }
.home-hero .lookup-note { padding-top: 13px; border-top: 1px solid rgba(20, 24, 31, .08); }

.home-business-section { padding: 116px 0 124px; background: #fff; }
.home-business-section .section-head { max-width: 690px; }
.home-business-section .segments-grid { grid-template-columns: 1.08fr .92fr; gap: 18px; margin-top: 54px; }
.home-business-section .segment {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: #0c1220;
  isolation: isolate;
}
.home-business-section .segment::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(7, 17, 34, .08) 20%, rgba(7, 17, 34, .88) 100%), url("/assets/images/course-covers/process-equipment-ehs-l1-l2.webp") center / cover no-repeat;
  transition: transform .5s var(--ease);
}
.home-business-section .segment:nth-child(2)::before { background-image: linear-gradient(180deg, rgba(7, 17, 34, .04) 16%, rgba(7, 17, 34, .82) 100%), url("/assets/images/wafer-service-studio.webp"); }
.home-business-section .segment::after { top: auto; bottom: 22px; left: 36px; width: 42px; height: 2px; background: #7f9cff; }
.home-business-section .segment:hover::before { transform: scale(1.035); }
.home-business-section .segment .seg-icon { display: none; }
.home-business-section .segment .idx { color: #a9baff; }
.home-business-section .segment h3 { max-width: 420px; margin: 14px 0 10px; color: #fff; font-size: 29px; letter-spacing: 0; }
.home-business-section .segment p { max-width: 450px; margin-bottom: 22px; color: rgba(255, 255, 255, .76); line-height: 1.7; }
.home-business-section .seg-tags span { color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .13); }

.home-services-section { padding: 78px 0 116px; background: #f7f9fa; }
.home-services-section .section-head { max-width: 680px; }
.home-services-section .services-grid { grid-template-columns: repeat(3, 1fr); gap: 0 34px; margin-top: 46px; border-top: 1px solid rgba(20, 24, 31, .12); }
.home-services-section .svc { min-height: 164px; padding: 29px 34px 25px 0; border: 0; border-bottom: 1px solid rgba(20, 24, 31, .12); border-radius: 0; background: transparent; box-shadow: none; }
.home-services-section .svc::before { content: "0" counter(home-service); counter-increment: home-service; display: block; margin-bottom: 18px; color: var(--blue); font: 700 12px var(--font-display); letter-spacing: .12em; }
.home-services-section .services-grid { counter-reset: home-service; }
.home-services-section .svc:hover { transform: none; box-shadow: none; background: rgba(255, 255, 255, .54); }
.home-services-section .svc .svc-ic { display: none; }
.home-services-section .svc .region { top: 29px; right: 0; padding: 0; color: var(--text-mut); background: transparent; font-size: 10px; }
.home-services-section .svc .region.cn { color: #a36a12; background: transparent; }
.home-services-section .svc h4 { max-width: 230px; margin-bottom: 8px; font-size: 18px; }
.home-services-section .svc p { max-width: 260px; line-height: 1.65; }

.home-proof-strip { position: relative; isolation: isolate; overflow: hidden; background: #0c1220; border-color: #0c1220; }
.home-proof-strip::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(12, 18, 32, .92) 0%, rgba(12, 18, 32, .46) 50%, rgba(12, 18, 32, .16) 100%); z-index: 0; }
.home-proof-art { position: absolute; inset: -16% -5% -34%; overflow: hidden; pointer-events: none; z-index: 0; opacity: .42; }
.home-proof-art img { position: absolute; right: -2%; bottom: -25%; width: min(1120px, 78vw); max-width: none; height: auto; filter: saturate(.82) brightness(.9); animation: home-proof-rise 18s ease-in-out infinite alternate; }
.home-proof-strip .strip-grid { gap: 0; }
.home-proof-strip .container, .home-proof-strip .strip-grid { position: relative; z-index: 1; }
.home-proof-strip .strip-item { padding: 0 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.home-proof-strip .strip-item:first-child { border-left: 0; }
.home-proof-strip .strip-item .n { color: #fff; font-size: 48px; }
.home-proof-strip .strip-item .t { color: rgba(233, 237, 244, .68); }
@keyframes home-proof-rise {
  from { transform: translate3d(0, 26px, 0) scale(.98); opacity: .56; }
  to { transform: translate3d(0, -20px, 0) scale(1.02); opacity: .96; }
}

.home-cases { padding: 116px 0 124px; background: #fff; }
.home-cases .section-head { gap: 26px; }
.home-cases .activity-list { margin-top: 44px; }
.home-cases .result-empty { min-height: 150px; display: grid; place-items: center start; padding: 28px; border: 1px dashed rgba(20, 24, 31, .18); color: var(--text-mut); background: #f8fafc; }
.home-cta .cta-box { border-radius: 16px; }

@media (max-width: 960px) {
  body[data-page="home"] .home-hero { min-height: auto; padding: 120px 0 80px; }
  .home-hero .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .home-hero .lookup-card { max-width: 560px; }
  .home-business-section .segments-grid { grid-template-columns: 1fr; }
  .home-services-section .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body[data-page="home"] .home-hero {
    padding: 108px 0 62px;
    background-image:
      linear-gradient(90deg, rgba(247, 249, 250, .98) 0%, rgba(247, 249, 250, .84) 54%, rgba(247, 249, 250, .2) 100%),
      url("/assets/images/wafer-service-studio.webp");
    background-position: center, 70% center;
  }
  .home-hero h1 { font-size: 48px; }
  .home-hero .hero-sub { font-size: 16px; }
  .home-hero .hero-badges { gap: 22px 0; }
  .home-hero .hero-badge { min-width: 50%; padding-right: 12px; }
  .home-hero .hero-badge + .hero-badge { padding-left: 12px; }
  .home-business-section, .home-cases { padding: 78px 0 84px; }
  .home-business-section .segment { min-height: 320px; padding: 28px; }
  .home-business-section .segment h3 { font-size: 25px; }
  .home-services-section { padding: 64px 0 78px; }
  .home-services-section .services-grid { grid-template-columns: 1fr; }
  .home-services-section .svc { min-height: 142px; }
  .home-proof-strip .strip-grid { gap: 30px 0; }
  .home-proof-art { inset: -12% -28% -20%; opacity: .23; }
  .home-proof-art img { right: -15%; bottom: -16%; width: 145vw; animation-duration: 22s; }
  .home-proof-strip .strip-item { padding: 0 12px; }
  .home-proof-strip .strip-item .n { font-size: 38px; }
  .home-cases .section-head { align-items: flex-start !important; flex-direction: column; }
}

/* Mobile menu must stay readable on image-led pages. The media navigation
   treatment belongs to the header, not to the expanded menu panel. */
@media (max-width: 640px) {
  header.nav.nav-over-media {
    background: rgba(7, 17, 34, .76);
    border-bottom-color: rgba(255, 255, 255, .14);
    box-shadow: 0 8px 22px -20px rgba(0, 0, 0, .6);
  }
  header.nav.nav-over-media .brand { color: #fff; }
  header.nav.nav-over-media .brand .cn { color: rgba(255, 255, 255, .7); }
  header.nav.nav-over-media .lang-toggle { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .12); }
  header.nav.nav-over-media .lang-toggle button { color: rgba(255, 255, 255, .78); }
  header.nav.nav-over-media .lang-toggle button.active { background: rgba(255, 255, 255, .92); color: var(--text); }
  header.nav.nav-over-media .nav-toggle { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .92); color: var(--text); }
  header.nav.nav-over-media .nav-links {
    z-index: 101;
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 20px 34px -24px rgba(16, 24, 40, .42);
  }
  header.nav.nav-over-media .nav-links > a,
  header.nav.nav-over-media .nav-links .nav-item > a,
  header.nav.nav-over-media .nav-links .nav-menu a { color: var(--text-dim); }
  header.nav.nav-over-media .nav-links > a:hover,
  header.nav.nav-over-media .nav-links .nav-item > a:hover,
  header.nav.nav-over-media .nav-links .nav-menu a:hover { color: var(--text); background: var(--bg-soft); }
  header.nav.nav-over-media .nav-links a.active { color: var(--blue); }
  header.nav.nav-over-media .nav-links .nav-chevron { color: var(--text-mut); }
  header.nav.nav-over-media .nav-menu-language .lang-toggle { border-color: var(--line); background: var(--bg); }
  header.nav.nav-over-media .nav-menu-language .lang-toggle button { color: var(--text-mut); }
  header.nav.nav-over-media .nav-menu-language .lang-toggle button.active { background: var(--text); color: #fff; }
}

/* Keep the image-led pages on the same bright navigation system as the rest
   of the site while preserving their image-under-navigation layout. */
header.nav.nav-over-media {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
header.nav.nav-over-media .brand { color: var(--text); }
header.nav.nav-over-media .brand .cn { color: var(--text-mut); }
header.nav.nav-over-media .nav-links a { color: var(--text-dim); }
header.nav.nav-over-media .nav-links a:hover { color: var(--text); background: var(--bg-soft); }
header.nav.nav-over-media .nav-links a.active { color: var(--blue); }
header.nav.nav-over-media .nav-chevron { color: var(--text-mut); }
header.nav.nav-over-media .lang-toggle { border-color: var(--line); background: var(--bg); }
header.nav.nav-over-media .lang-toggle button { color: var(--text-mut); }
header.nav.nav-over-media .lang-toggle button.active { background: var(--text); color: #fff; }
header.nav.nav-over-media .nav-toggle { border-color: var(--line); background: #fff; color: var(--text); }
header.nav.nav-over-media.scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 22px -20px rgba(16, 24, 40, .45);
  backdrop-filter: blur(16px) saturate(180%);
}

/* Language control: compact on desktop, discoverable inside the mobile menu. */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 8px 0 10px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text-dim);
}
.lang-icon { display: inline-flex; color: var(--blue); }
.lang-label { color: var(--text-mut); font-size: 12px; white-space: nowrap; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 52px;
  padding: 6px 5px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: 600 12px/1.2 var(--font-display);
}
.lang-trigger svg { color: var(--text-mut); transition: transform .2s var(--ease); }
.lang-toggle.is-open .lang-trigger svg { transform: rotate(180deg); }
.lang-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 210;
  display: grid;
  min-width: 126px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.lang-toggle.is-open .lang-options { opacity: 1; visibility: visible; transform: none; }
.lang-options button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  text-align: left;
  font: 500 13px/1.2 var(--font-body);
}
.lang-options button:hover, .lang-options button.active { background: var(--bg-soft); color: var(--blue); }

@media (min-width: 641px) {
  .lang-label { display: none; }
  .nav-links > a, .nav-item > a, .nav-menu a {
    font-size: 15px;
    font-weight: 550;
    line-height: 1.35;
  }
}

@media (max-width: 640px) {
  .nav-menu-language {
    display: flex;
    width: 100%;
    margin-top: 8px;
    padding: 12px 10px 2px;
    border-top: 1px solid var(--line);
  }
  .nav-menu-language .lang-toggle {
    width: 100%;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .nav-menu-language .lang-label { display: inline; }
  .nav-menu-language .lang-trigger {
    min-width: 88px;
    justify-content: space-between;
    margin-left: auto;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
  }
  .nav-menu-language .lang-options {
    position: static;
    display: none;
    flex-basis: 100%;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-menu-language .lang-toggle.is-open { flex-wrap: wrap; }
  .nav-menu-language .lang-toggle.is-open .lang-options { display: grid; }
}

/* Course detail navigation starts over a dark cover and resolves to the
   shared light navigation after the first scroll. */
body[data-page="detail"].course-detail-page header.nav.nav-over-media {
  background: rgba(7, 17, 34, .62);
  border-bottom-color: rgba(255, 255, 255, .16);
  box-shadow: 0 8px 22px -20px rgba(0, 0, 0, .6);
  backdrop-filter: blur(16px) saturate(150%);
}
body[data-page="detail"].course-detail-page header.nav.nav-over-media .brand,
body[data-page="detail"].course-detail-page header.nav.nav-over-media .brand .reg { color: #fff; }
body[data-page="detail"].course-detail-page header.nav.nav-over-media .brand .mark { filter: brightness(0) invert(1); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media .brand .cn { color: rgba(255, 255, 255, .7); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media .nav-links a { color: rgba(255, 255, 255, .82); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media .nav-links a.active { color: #b9c7ff; }
body[data-page="detail"].course-detail-page header.nav.nav-over-media .nav-chevron { color: rgba(255, 255, 255, .7); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media .lang-toggle { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .12); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media .lang-toggle button { color: rgba(255, 255, 255, .82); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media .lang-toggle button.active { background: rgba(255, 255, 255, .92); color: var(--text); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media .btn-signin,
body[data-page="detail"].course-detail-page header.nav.nav-over-media .acct { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .92); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media .nav-toggle { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .92); color: var(--text); }

body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: rgba(20, 24, 31, .1);
  box-shadow: 0 8px 22px -20px rgba(16, 24, 40, .55);
  backdrop-filter: blur(16px) saturate(150%);
}
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .brand { color: var(--text); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .brand .mark { filter: none; }
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .brand .reg { color: var(--blue); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .brand .cn { color: var(--text-mut); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .nav-links a { color: var(--text-dim); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .nav-links a:hover { color: var(--text); background: rgba(16, 24, 40, .06); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .nav-links a.active { color: var(--blue); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .nav-chevron { color: var(--text-mut); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .lang-toggle { border-color: var(--line); background: rgba(255, 255, 255, .88); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .lang-toggle button { color: var(--text-mut); }
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .lang-toggle button.active { background: var(--text); color: #fff; }
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .btn-signin,
body[data-page="detail"].course-detail-page header.nav.nav-over-media.scrolled .acct { border-color: var(--line); background: var(--bg); }

body[data-page="detail"].course-detail-page header.nav,
body[data-page="detail"].course-detail-page header.nav .brand,
body[data-page="detail"].course-detail-page header.nav .brand .mark,
body[data-page="detail"].course-detail-page header.nav .brand .cn,
body[data-page="detail"].course-detail-page header.nav .brand .reg,
body[data-page="detail"].course-detail-page header.nav .nav-links a,
body[data-page="detail"].course-detail-page header.nav .nav-chevron,
body[data-page="detail"].course-detail-page header.nav .lang-toggle,
body[data-page="detail"].course-detail-page header.nav .lang-toggle button,
body[data-page="detail"].course-detail-page header.nav .btn-signin,
body[data-page="detail"].course-detail-page header.nav .acct {
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease), filter .4s var(--ease);
}

@media (max-width: 640px) {
  /* The mobile drawer is light even while the detail hero keeps a dark nav. */
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-links {
    background: rgba(255, 255, 255, .98);
    border-color: var(--line);
    box-shadow: 0 18px 30px -24px rgba(16, 24, 40, .55);
  }
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-links > a,
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-links .nav-item > a,
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-links .nav-menu a {
    color: var(--text-dim);
  }
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-links a:hover {
    color: var(--text);
    background: var(--bg-soft);
  }
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-links a.active {
    color: var(--blue);
  }
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-chevron {
    color: var(--text-mut);
  }
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-menu-language .lang-toggle {
    border-color: transparent;
    background: transparent;
    color: var(--text-dim);
  }
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-menu-language .lang-label,
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-menu-language .lang-trigger,
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-menu-language .lang-trigger svg {
    color: var(--text-dim);
  }
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-menu-language .lang-options button {
    color: var(--text-dim);
  }
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-menu-language .lang-options button:hover,
  body[data-page="detail"].course-detail-page header.nav.nav-over-media.menu-open .nav-menu-language .lang-options button.active {
    background: var(--text);
    color: #fff;
  }
}


/* Course detail templates: standard remains the default; alternate layouts are selected per course. */
@media (min-width: 721px) {
  .page-head.course-detail-head.course-template-editorial {
    min-height: 430px;
    padding-bottom: 42px;
  }

  .course-detail-body.course-template-editorial {
    grid-template-columns: minmax(0, 900px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    gap: 34px;
    padding-top: 54px;
    padding-bottom: 86px;
  }

  .course-detail-body.course-template-editorial .detail-aside {
    position: static;
    order: -1;
  }

  .course-detail-body.course-template-editorial .aside-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 28px;
  }

  .course-detail-body.course-template-editorial .aside-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  .course-detail-body.course-template-editorial .aside-cta {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .page-head.course-detail-head.course-template-compact {
    min-height: 410px;
    padding-top: 160px;
  }

  .course-detail-body.course-template-compact {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .course-detail-body.course-template-compact .course-richtext {
    font-size: 14.5px;
    line-height: 1.7;
  }

  .course-detail-body.course-template-compact .detail-aside {
    top: 84px;
  }
}

@media (max-width: 720px) {
  .page-head.course-detail-head.course-template-editorial {
    min-height: 350px;
    padding-bottom: 26px;
  }

  .course-detail-body.course-template-editorial {
    padding-top: 32px;
    padding-bottom: 60px;
  }

  .course-detail-body.course-template-editorial .detail-aside {
    order: -1;
  }

  .page-head.course-detail-head.course-template-compact {
    min-height: 350px;
    padding-top: 88px;
  }

  .course-detail-body.course-template-compact {
    gap: 24px;
    padding-top: 30px;
    padding-bottom: 56px;
  }
}
