/* ── Brand design tokens ── */
:root {
  --color-brand-teal:       #001e2b;
  --color-brand-teal-mid:   #003d4f;
  --color-brand-green:      #00ed64;
  --color-green-deep:       #00b545;
  --color-brand-green-dark: #00684a;
  --color-brand-green-soft: #c3f0d2;
  --color-accent-orange:    #fa6e39;
  --color-accent-blue:      #3d4f9f;
  --color-surface-feature:  #e3fcef;
  --color-hairline:         #e1e5e8;
  --color-slate:            #3d4f5b;
  --ink: var(--color-brand-teal);
  --motion-ease-emphasis: cubic-bezier(0.25, 1, 0.5, 1);
  --motion-text-mark-duration: 1300ms;
  --motion-text-mark-delay: 280ms;
  --text-mark-underline-thickness: 8px;
  --text-mark-underline-position: 0.86em;
  --ordered-list-marker-size: 1.75rem;
  --surface-feature: var(--color-surface-feature);
  --brand-green: var(--color-brand-green);
}

/* ── Focus visible — keyboard navigation indicator ── */
:focus-visible {
  outline: 2px solid var(--color-green-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up { opacity: 1; transform: none; transition: none; }
  .anim-fade-up.anim-visible { opacity: 1; transform: none; }
  #main-nav, .nav-panel, #nav-overlay, #lightbox, .chapter-card { transition: none !important; }
  .why-point, .why-point-mark { transition: none !important; transform: none !important; }
}

/* ── Nav scroll transitions ── */
#main-nav { transition: background-color .3s ease, box-shadow .3s ease, color .3s ease; }
#main-nav.nav-top  { background: transparent; }
#main-nav.nav-scrolled { background: rgba(255,255,255,0.5); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--color-hairline); }
#main-nav.nav-top  .nav-logo,
#main-nav.nav-top  .nav-contact { color: #ffffff; }
#main-nav.nav-top  .nav-hamburger span { background: #ffffff; }
#main-nav.nav-scrolled .nav-logo,
#main-nav.nav-scrolled .nav-contact { color: var(--color-brand-teal); }
#main-nav.nav-scrolled .nav-hamburger span { background: var(--color-brand-teal); }
#main-nav.nav-top .nav-contact { border-color: rgba(255,255,255,0.5); }
#main-nav.nav-scrolled .nav-contact { border-color: #c1ccd6; }

/* ── Hamburger ── */
.nav-hamburger { display:flex; flex-direction:column; gap:5px; cursor:pointer; padding:6px; min-width:44px; min-height:44px; justify-content:center; align-items:center; }
.nav-hamburger span { display:block; width:22px; height:2px; border-radius:2px; transition: background .3s; }

/* ── Nav Overlay ── */
#nav-overlay { transition: opacity .3s ease; }
.nav-panel { transition: transform .25s ease, opacity .25s ease; }

/* ── Nav overlay decorative radial glow (extracted from inline style="") ── */
.nav-overlay-glow {
  background: radial-gradient(ellipse at 30% 70%, var(--color-brand-green), transparent 60%);
}

/* ── Scroll animations ── */
.anim-fade-up { opacity:0; transform:translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.anim-fade-up.anim-visible { opacity:1; transform:translateY(0); }

/* ── Hero geometric background ── */
.hero-bg {
  background:
    linear-gradient(135deg, rgba(0,30,43,0.78) 0%, rgba(0,61,79,0.62) 100%),
    url('../assets/img/hero.webp') center / cover no-repeat;
  position: relative; overflow: hidden;
}
.hero-bg::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 700px 500px at 80% 30%, rgba(0,237,100,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(0,237,100,0.05) 0%, transparent 60%);
}
.hero-bg::after {
  content:''; position:absolute; top:-200px; right:-200px;
  width:600px; height:600px; border-radius:50%;
  border: 1px solid rgba(0,237,100,0.1);
}

/* ── Hero headline — fluid size + tight tracking (extracted from inline style="") ── */
.hero-headline {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -1px;
}

/* ── Section headings — tight tracking (extracted from inline style="") ── */
.heading-tight {
  letter-spacing: -0.5px;
}

/* ── KPI glass card ── */
.kpi-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}

/* ── Section heading accent ── */
.section-accent { display:inline-block; width:3px; height:1em; background:var(--color-green-deep); margin-right:10px; border-radius:2px; vertical-align:middle; }

/* ── Why section: subtle system delight ── */
.why-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
}
.why-title {
  max-width: 13ch;
  font-size: clamp(2.15rem, 3.6vw, 2.95rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.why-lede {
  max-width: 62ch;
  font-size: 1.125rem;
  line-height: 1.72;
  font-weight: 400;
}
.why-point {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-left: -0.75rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.why-point:hover {
  background: #f9fbfa;
  border-color: var(--color-hairline);
  transform: translateX(4px);
}
.why-point-mark {
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.why-point:hover .why-point-mark {
  background: var(--color-surface-feature);
  color: var(--color-brand-green-dark);
  transform: rotate(45deg);
}
.why-point-copy {
  display: grid;
  gap: 0.15rem;
  line-height: 1.55;
}
.why-point-copy strong {
  color: var(--color-brand-teal);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}
.why-point-copy strong::after {
  content: none;
}
.why-point-copy span {
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.65;
}
.why-system-card {
  position: relative;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  overflow: hidden;
}
.why-system-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,30,43,0.08), rgba(0,237,100,0.08)),
    radial-gradient(circle at 50% 48%, rgba(0,237,100,0.18), transparent 42%);
}
.why-system-visual {
  position: relative;
  width: min(100%, 26rem);
  height: 13.5rem;
  z-index: 1;
}
.why-system-core,
.why-system-node {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(0,104,74,0.18);
  background: rgba(251,253,252,0.92);
  box-shadow: 0 10px 28px rgba(0,30,43,0.08);
}
.why-system-core {
  left: 50%;
  top: 50%;
  width: 9.5rem;
  min-height: 4.5rem;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.why-system-core span {
  color: var(--color-brand-teal);
  font-weight: 700;
}
.why-system-core small {
  color: var(--color-slate);
  font-size: 0.7rem;
  margin-top: 0.25rem;
}
.why-system-node {
  min-width: 5.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 9999px;
  color: var(--color-brand-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}
.why-system-node-top { left: 50%; top: 0; transform: translateX(-50%); }
.why-system-node-left { left: 0; bottom: 0.5rem; }
.why-system-node-right { right: 0; bottom: 0.5rem; }
.why-system-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,104,74,0.42), transparent);
  transform-origin: center;
}
.why-system-line-a { width: 7rem; left: 50%; top: 4.2rem; transform: translateX(-50%) rotate(90deg); }
.why-system-line-b { width: 9rem; left: 4.1rem; bottom: 4.5rem; transform: rotate(-23deg); }
.why-system-line-c { width: 9rem; right: 4.1rem; bottom: 4.5rem; transform: rotate(23deg); }
.why-system-caption {
  position: relative;
  z-index: 1;
}
.why-system-image-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  background: #f9fbfa;
  box-shadow: 0 20px 48px rgba(0, 30, 43, 0.12);
}
.why-system-image-card::before {
  z-index: 1;
  background: linear-gradient(180deg, transparent 64%, rgba(0, 30, 43, 0.62) 100%);
  pointer-events: none;
}
.why-system-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.why-system-image-card .why-system-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
}

/* ── Nav logo accent: bright green on dark bg, deep green when nav is white ── */
.logo-accent { color: var(--color-brand-green); }
.nav-scrolled .logo-accent { color: var(--color-green-deep); }

/* ── Chapter cards ── */
.chapter-card {
  display: flex;
  flex-direction: column;
  min-height: 268px;
  background: #fbfdfc;
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.chapter-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,237,100,0.35);
  box-shadow: 0 12px 32px rgba(0,30,43,0.12);
}
.chapter-card-media {
  min-height: 108px;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,237,100,0.18), rgba(0,61,79,0.35)),
    linear-gradient(135deg, #dfe8e6 0%, #b9c9c5 100%);
}
.chapter-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,30,43,0.62), rgba(0,30,43,0.38)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 14px);
  z-index: 1;
}
.chapter-card-media > * { position: relative; z-index: 2; }
.chapter-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0 !important;
}
.chapter-card-ghost {
  position: absolute;
  right: 0.75rem;
  bottom: -0.15rem;
  z-index: 2;
  font-family: 'Montserrat','Noto Sans TC',sans-serif;
  font-size: 4.85rem;
  font-weight: 900;
  line-height: 0.8;
  color: rgba(255,255,255,0.08);
  user-select: none;
}
.chapter-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.1rem;
}
.chapter-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.35rem;
  background: #eef4f2;
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
}
.chapter-tab {
  min-height: 44px;
  padding: 0.65rem 0.5rem;
  border-radius: 6px;
  color: var(--color-slate);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.chapter-tab.is-active {
  background: #fbfdfc;
  color: var(--color-brand-teal);
  box-shadow: 0 1px 0 rgba(0,30,43,0.08);
}
@media (min-width: 640px) {
  .chapter-tabs { display: none; }
}
.chapter-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.75rem 0 1rem;
  margin: -0.75rem 0 -1rem;
}
.chapter-carousel::-webkit-scrollbar { display: none; }
.chapter-carousel .chapter-card {
  min-width: 0;
  width: 100%;
  scroll-snap-align: start;
}
.chapter-carousel-control:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Footer: bolder brand close ── */
.footer-bold {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 760px 420px at 78% 20%, rgba(0,237,100,0.10), transparent 62%),
    linear-gradient(135deg, var(--color-brand-teal) 0%, #002938 58%, var(--color-brand-teal) 100%);
}
.footer-bold::before {
  content: '2026';
  position: absolute;
  right: clamp(1rem, 6vw, 5rem);
  bottom: -0.22em;
  font-family: 'Montserrat','Noto Sans TC',sans-serif;
  font-size: clamp(7rem, 19vw, 18rem);
  font-weight: 900;
  line-height: 0.8;
  color: rgba(255,255,255,0.035);
  pointer-events: none;
}
.footer-brand-copy,
.footer-contact-text {
  font-size: 0.9375rem;
  line-height: 1.65;
}
.footer-section-title {
  font-size: 0.9375rem;
  line-height: 1.4;
}
.footer-chapter-link {
  font-size: 0.9375rem;
  line-height: 1.45;
}
.footer-meta,
.footer-copyright {
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 639px) {
  .chapter-tab-panel { display: none; }
  .chapter-tab-panel.is-active { display: block; }
  .chapter-group-heading { display: none; }
  .chapter-card {
    min-height: 250px;
    width: 100%;
  }
  .chapter-card-media { min-height: 96px; }
  .chapter-carousel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }
}

/* ── Placeholder image ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-surface-feature) 0%, #c3f0d2 100%);
  display:flex; align-items:center; justify-content:center;
  color:var(--color-brand-green-dark); font-size:13px; font-weight:500;
  border-radius:8px; cursor:zoom-in;
}

/* ── Lightbox trigger cursor (replaces el.style.cursor in JS) ── */
[data-lightbox] { cursor: zoom-in; }

/* ── Lightbox ── */
#lightbox { transition: opacity .3s ease; }

/* ── Tag chips ── */
.audience-chip { background:var(--color-surface-feature); color:var(--color-brand-green-dark); border:1px solid #c3f0d2; }

/* ── Chapter 02 communication image module ── */
.chapter-02-intro-media,
.chapter-02-communication-media {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f9fbfa;
  box-shadow: 0 18px 42px rgba(0, 30, 43, 0.10);
}
.chapter-02-intro-media {
  aspect-ratio: 4 / 3;
}
.chapter-02-communication-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 30, 43, 0.64) 100%);
  pointer-events: none;
}
.chapter-02-intro-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 30, 43, 0.58) 100%);
  pointer-events: none;
}
.chapter-02-intro-media img,
.chapter-02-communication-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.chapter-02-intro-media figcaption,
.chapter-02-communication-media figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: #f9fbfa;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ── Chapter 03 cooperation image module ── */
.chapter-03-cooperation-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background: #f9fbfa;
  box-shadow: 0 18px 42px rgba(0, 30, 43, 0.10);
}
.chapter-03-cooperation-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 30, 43, 0.62) 100%);
  pointer-events: none;
}
.chapter-03-cooperation-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.chapter-03-cooperation-media figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: #f9fbfa;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ── Value list icons ── */
.value-icon { width:40px; height:40px; background:var(--color-surface-feature); border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* =============================================================
   CHAPTER PAGE STYLES
   (used by chapter-01.html … chapter-10.html)
   ============================================================= */

/* ── Reading progress bar ── */
#reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--color-green-deep); z-index: 9999;
  transition: width .1s linear;
}

/* ── Nav: chapter pages always show white nav ── */
#main-nav.nav-chapter {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--color-hairline);
}
#main-nav.nav-chapter .nav-logo,
#main-nav.nav-chapter .nav-contact { color: var(--color-brand-teal); }
#main-nav.nav-chapter .nav-hamburger span { background: var(--color-brand-teal); }
#main-nav.nav-chapter .nav-contact { border-color: #c1ccd6; }

/* ── Chapter header dark gradient band ── */
.chapter-header-bg {
  background:
    linear-gradient(135deg, rgba(0,30,43,0.68) 0%, rgba(0,61,79,0.52) 100%),
    var(--ch-banner, linear-gradient(135deg, var(--color-brand-teal) 0%, var(--color-brand-teal-mid) 100%));
  background-size: cover;
  background-position: center;
  position: relative; overflow: hidden;
}
.chapter-header-bg::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 500px 300px at 80% 50%, rgba(0,237,100,0.07) 0%, transparent 70%);
}

.chapter-header-ch1  { --ch-banner: url('../assets/img/banner_ch1.webp'); }
.chapter-header-ch2  { --ch-banner: url('../assets/img/banner_ch2.webp'); }
.chapter-header-ch3  { --ch-banner: url('../assets/img/banner_ch3.webp'); }
.chapter-header-ch4  { --ch-banner: url('../assets/img/banner_ch4.webp'); }
.chapter-header-ch5  { --ch-banner: url('../assets/img/banner_ch5.webp'); }
.chapter-header-ch6  { --ch-banner: url('../assets/img/banner_ch6.webp'); }
.chapter-header-ch7  { --ch-banner: url('../assets/img/banner_ch7.webp'); }
.chapter-header-ch8  { --ch-banner: url('../assets/img/banner_ch8.webp'); }
.chapter-header-ch9  { --ch-banner: url('../assets/img/banner_ch9.webp'); }
.chapter-header-ch10 { --ch-banner: url('../assets/img/banner_ch10.webp'); }

/* ── Chapter <h1> fluid headline (extracted from inline style="") ── */
.chapter-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.5px;
}

/* ── Prose content ── */
.prose-content h2 { font-family: 'Montserrat','Noto Sans TC',sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--color-brand-teal); margin: 2.5rem 0 1rem; letter-spacing: -0.3px; }
.prose-content h3 { font-size: 1.125rem; font-weight: 600; color: #1c2d38; margin: 1.75rem 0 0.75rem; }
.prose-content p:not(.section-eyebrow) { color: var(--color-slate); font-size: large; line-height: 1.75; margin-bottom: 1rem; }
.prose-content ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.prose-content ul li { color: var(--color-slate); font-size: large; line-height: 1.75; padding: 0.35rem 0 0.35rem 1.5rem; position: relative; }
.prose-content ul li::before { content:''; position:absolute; left:0; top:0.7rem; width:6px; height:6px; border-radius:50%; background:var(--color-green-deep); }
.prose-content strong { color: var(--color-brand-teal); font-weight: 600; }
.prose-content .section-divider { height: 2px; background: linear-gradient(90deg, var(--color-green-deep), transparent); border: none; margin: 2.5rem 0; border-radius: 1px; }
.prose-content blockquote { border-left: 3px solid var(--color-green-deep); padding: 1rem 1.5rem; background: var(--color-surface-feature); border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.prose-content blockquote p { color: var(--color-brand-green-dark); margin: 0; font-weight: 500; line-height: 1.7; }

.chapter-07-inline-heading {
  margin: 1.5rem 0 1rem;
}

/* ── MD3 Component Animations ── */
.md3-card {
  box-shadow: 0 1px 2px rgba(0,30,43,0.04);
  transition: box-shadow 250ms cubic-bezier(0.2,0,0,1),
              transform   250ms cubic-bezier(0.2,0,0,1),
              border-color 200ms ease;
  will-change: transform;
}
.md3-card:hover {
  box-shadow: 0 6px 18px rgba(0,30,43,0.10),
              0 2px  6px rgba(0,30,43,0.06);
  transform: translateY(-3px);
  border-color: var(--color-hairline-strong, #c1ccd6);
}
.md3-row { transition: background-color 180ms cubic-bezier(0.2,0,0,1); }
.md3-row:hover { background-color: rgba(0,30,43,0.025); }
@media (prefers-reduced-motion: reduce) {
  .md3-card { transition: border-color 200ms ease; will-change: auto; }
  .md3-card:hover { transform: none; box-shadow: 0 2px 8px rgba(0,30,43,0.07); }
  .md3-row { transition: none; }
}

/* ── Chapter 04 timeline ── */
.chapter-04-timeline {
  position: relative;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chapter-04-timeline::before {
  content: '';
  position: absolute;
  left: 1.125rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 2px;
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--color-brand-green), rgba(0,61,79,0.18));
}
.chapter-04-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
.chapter-04-timeline-marker {
  position: relative;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-teal-mid);
  color: var(--color-brand-green);
  box-shadow: 0 0 0 5px #fff;
  font-family: 'Montserrat','Noto Sans TC',sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}
.chapter-04-timeline-content {
  border-bottom: 1px solid var(--color-hairline);
  padding: 0.1rem 0 1rem;
}
.chapter-04-timeline-content h3 {
  margin: 0 0 0.45rem;
  color: var(--color-brand-teal);
  font-family: 'Montserrat','Noto Sans TC',sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.chapter-04-timeline-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.chapter-04-timeline-compare p {
  margin: 0;
  padding: 0.15rem 1rem 0.15rem 0;
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.6;
}
.chapter-04-timeline-compare p:last-child {
  border-left: 1px solid rgba(0,61,79,0.14);
  padding-left: 1rem;
  padding-right: 0;
  color: var(--color-brand-teal);
  font-weight: 600;
}
.chapter-04-timeline-compare span {
  display: block;
  margin-bottom: 0.2rem;
  color: #71808c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.chapter-04-timeline-compare p:last-child span {
  color: var(--color-brand-green-dark);
}

.chapter-04-advantage-card {
  border-color: var(--color-hairline);
}
.chapter-04-advantage-card:hover {
  border-color: var(--color-brand-green);
}

/* ── Chapter 05 transformation cards ── */
/* === Chapter 05 Stage Cards — MD3 Elevated === */
.chapter-05-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Base card */
.chapter-05-stage-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100%;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid transparent;
  transition: box-shadow 220ms ease, transform 200ms ease;
  overflow: hidden;
}
.chapter-05-stage-card:hover {
  transform: translateY(-4px);
}

/* Stage 01 — Surface 白色 */
.chapter-05-stage-card--deep {
  background: #ffffff;
  color: var(--color-brand-teal);
  border-color: rgba(0,104,74,0.14);
  box-shadow: 0 1px 3px rgba(0,30,43,0.07), 0 3px 8px rgba(0,30,43,0.05);
}
.chapter-05-stage-card--deep:hover {
  box-shadow: 0 4px 12px rgba(0,30,43,0.10), 0 8px 24px rgba(0,30,43,0.07);
}

/* Stage 02 — Tonal Surface 淺綠 */
.chapter-05-stage-card--bright {
  background: #e3fcef;
  color: var(--color-brand-teal);
  border-color: #a7f3c7;
  box-shadow: 0 1px 3px rgba(0,30,43,0.07), 0 3px 8px rgba(0,30,43,0.05);
}
.chapter-05-stage-card--bright:hover {
  box-shadow: 0 4px 12px rgba(0,30,43,0.10), 0 8px 24px rgba(0,30,43,0.07);
}

/* Final Stage — Primary Container 深綠 */
.chapter-05-stage-card--soft {
  background: var(--color-brand-green-dark);
  color: #f0fdf4;
  border-color: rgba(0,237,100,0.18);
  box-shadow: 0 4px 12px rgba(0,30,43,0.22), 0 8px 24px rgba(0,30,43,0.14);
}
.chapter-05-stage-card--soft:hover {
  box-shadow: 0 8px 24px rgba(0,30,43,0.28), 0 16px 40px rgba(0,30,43,0.18);
}

/* Kicker chip */
.chapter-05-stage-kicker {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.9rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}
.chapter-05-stage-card--deep .chapter-05-stage-kicker {
  background: rgba(0,104,74,0.08);
  color: var(--color-brand-green-dark);
}
.chapter-05-stage-card--bright .chapter-05-stage-kicker {
  background: rgba(0,104,74,0.12);
  color: var(--color-brand-green-dark);
}
.chapter-05-stage-card--soft .chapter-05-stage-kicker {
  background: rgba(0,237,100,0.15);
  color: var(--color-brand-green);
}

/* Heading */
.chapter-05-stage-card h3 {
  margin: 0 0 1.25rem;
  font-family: 'Montserrat','Noto Sans TC',sans-serif;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
}
.chapter-05-stage-card--deep h3,
.chapter-05-stage-card--bright h3 {
  color: var(--color-brand-teal);
}
.chapter-05-stage-card--soft h3 {
  color: #ffffff;
}

/* DL grid */
.chapter-05-stage-card dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}
.chapter-05-stage-card dl > div {
  display: grid;
  gap: 0.2rem;
}

/* DT label row */
.chapter-05-stage-card dt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
}
.chapter-05-stage-card--deep dt,
.chapter-05-stage-card--bright dt {
  color: var(--color-brand-teal);
}
.chapter-05-stage-card--soft dt {
  color: rgba(255,255,255,0.95);
}

/* DD value */
.chapter-05-stage-card dd {
  margin: 0;
  padding-left: 1.55rem;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
}
.chapter-05-stage-card--deep dd,
.chapter-05-stage-card--bright dd {
  color: rgba(0,30,43,0.68);
}
.chapter-05-stage-card--soft dd {
  color: rgba(255,255,255,0.75);
}

/* Icon */
.chapter-05-stage-card svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  stroke-width: 1.8;
}
.chapter-05-stage-card--deep svg,
.chapter-05-stage-card--bright svg {
  color: #00b545;
}
.chapter-05-stage-card--soft svg {
  color: var(--color-brand-green);
}

/* === Chapter 05 Section 5.2 Flow Cards === */
.ch05-flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ch05-flow-card {
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid var(--color-hairline);
  background: var(--color-canvas, #fff);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,30,43,0.04);
}

.ch05-flow-card--negative {
  border-color: var(--color-hairline);
}

.ch05-flow-card--positive {
  border-color: var(--color-brand-green);
}

.ch05-flow-label {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.ch05-flow-label--negative {
  background: var(--color-accent-orange);
  color: #f9fbfa;
}

.ch05-flow-label--positive {
  background: var(--color-accent-blue);
  color: #f9fbfa;
}

.ch05-flow-card h3 {
  font-family: 'Montserrat','Noto Sans TC',sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--color-brand-teal);
}

.ch05-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ch05-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0 0.85rem;
  padding-bottom: 1.1rem;
}

.ch05-flow-step:last-child {
  padding-bottom: 0;
}

/* Connector line between steps */
.ch05-flow-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  bottom: 0;
  left: 0.875rem;
  transform: translateX(-50%);
  width: 1.5px;
  border-radius: 1px;
}

.ch05-flow-card--negative .ch05-flow-step:not(:last-child)::before {
  background: #cbd5e1;
}

.ch05-flow-card--positive .ch05-flow-step:not(:last-child)::before {
  background: var(--color-brand-green-soft);
}

.ch05-flow-step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.ch05-flow-card--negative .ch05-flow-step-num {
  background: #e2e8f0;
  color: #475569;
}

.ch05-flow-card--positive .ch05-flow-step-num {
  background: var(--color-brand-teal-mid);
  color: var(--color-brand-green);
}

.ch05-flow-step-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.2rem;
}

.ch05-flow-step-content strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-brand-teal);
}

.ch05-flow-step-content span {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(0,30,43,0.65);
}

/* === Chapter 05 Section 5.4 problem cards === */
.chapter-05-working-media {
  min-height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-surface-feature);
  border: 1px solid var(--color-hairline);
}

.chapter-05-problem-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
  align-items: stretch;
}

.chapter-05-problem-card {
  min-height: 100%;
  padding: clamp(1rem, 1.6vw, 1.35rem);
}

.chapter-05-problem-card.chapter-09-priority-card > strong {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.chapter-05-problem-card.chapter-09-priority-card p {
  margin-top: 0;
}

.chapter-05-brand-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2rem;
  margin-top: 1.25rem;
}

.prose-content .chapter-05-brand-list li {
  padding: 0.9rem 0 0.9rem 1.65rem;
  border-bottom: 1px solid var(--color-hairline);
}

.prose-content .chapter-05-brand-list li::before {
  top: 1.55rem;
  background: var(--color-brand-green);
}

.chapter-05-solution-section {
  padding-top: 0.5rem;
}

.chapter-05-solution-content > h2 {
  margin-bottom: 1.25rem;
}

.chapter-05-system-block {
  max-width: 72ch;
}

.chapter-05-system-block h3 {
  margin-top: 0;
}

.chapter-05-system-media {
  margin: 1.25rem 0 clamp(2.25rem, 4vw, 3.75rem);
  width: 80%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-surface-feature);
  border: 1px solid var(--color-hairline);
  margin-left: auto;
  margin-right: auto;
}

.chapter-05-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin-top: 0;
}

.chapter-05-case-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.chapter-05-case-copy h3 {
  margin-top: 0;
}

.chapter-05-case-carousel {
  margin: 0;
  width: 100%;
  justify-self: center;
}

.chapter-05-case-stage {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-hairline);
  background: var(--color-surface-feature);
}

.chapter-05-case-slide {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.chapter-05-case-slide[hidden] {
  display: none;
}

.chapter-05-case-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 9999px;
  background: rgba(0, 30, 43, 0.58);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 12px 30px rgba(0, 30, 43, 0.22);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.chapter-05-case-arrow:hover {
  border-color: var(--color-brand-green);
  background: rgba(0, 61, 79, 0.82);
  transform: translateY(-50%) scale(1.04);
}

.chapter-05-case-arrow--prev {
  left: 0.9rem;
}

.chapter-05-case-arrow--next {
  right: 0.9rem;
}

.chapter-05-case-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.chapter-05-case-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--color-brand-teal);
  background: var(--color-brand-teal);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.chapter-05-case-dot:hover,
.chapter-05-case-dot.is-active {
  border-color: var(--color-brand-green);
  background: var(--color-brand-green);
  transform: scale(1.08);
}

.chapter-06-seasonal-media {
  background: var(--color-surface-feature);
}

.chapter-06-intro-media {
  background: var(--color-surface-feature);
}

.chapter-07-comparison-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: 70%;
}
.chapter-07-comparison-stage {
  position: relative;
  width: 100%;
  height: clamp(320px, 42vw, 540px);
  border-radius: 16px;
  border: 1px solid var(--color-hairline);
  background: #f9fbfa;
  overflow: visible;
}
.chapter-07-comparison-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}
.chapter-07-comparison-slide[hidden] {
  display: none;
}
.chapter-07-comparison-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.chapter-07-comparison-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--color-brand-teal);
  background: var(--color-brand-teal);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.chapter-07-comparison-dot:hover,
.chapter-07-comparison-dot.is-active {
  border-color: var(--color-brand-green);
  background: var(--color-brand-green);
  transform: scale(1.08);
}
.chapter-07-comparison-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(0,61,79,0.16);
  background: rgba(249,251,250,0.9);
  color: var(--color-brand-teal-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  box-shadow: 0 8px 24px rgba(0,30,43,0.12);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.chapter-07-comparison-arrow:hover {
  border-color: var(--color-brand-green);
  color: var(--color-brand-teal);
  background: var(--color-surface-feature);
  transform: translateY(-50%) scale(1.04);
}
.chapter-07-comparison-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
}
.chapter-07-comparison-arrow--prev {
  left: -3.25rem;
}
.chapter-07-comparison-arrow--next {
  right: -3.25rem;
}

.chapter-07-communication-media {
  background: var(--color-surface-feature);
}

.chapter-07-communication-panel {
  display: flex;
  width: 100%;
}
.chapter-07-communication-panel .chapter-07-communication-media {
  flex: 1;
  min-height: 0;
}

@media (max-width: 639px) {
  .chapter-05-stage-grid {
    grid-template-columns: 1fr;
  }
  .chapter-05-stage-card {
    padding: 1.25rem;
  }
  .ch05-flow-grid {
    grid-template-columns: 1fr;
  }
  .chapter-05-problem-card-grid {
    grid-template-columns: 1fr;
  }
  .chapter-05-working-media {
    min-height: 220px;
  }
  .chapter-05-brand-list {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .chapter-05-system-media {
    width: 100%;
  }
  .chapter-05-case-layout {
    grid-template-columns: 1fr;
  }
  .chapter-04-timeline::before {
    left: 1rem;
  }
  .chapter-04-timeline-item {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.85rem;
  }
  .chapter-04-timeline-marker {
    width: 2rem;
    height: 2rem;
    font-size: 0.72rem;
  }
  .chapter-04-timeline-content {
    padding: 0 0 1rem;
  }
  .chapter-04-timeline-compare {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .chapter-04-timeline-compare p {
    padding: 0;
  }
  .chapter-04-timeline-compare p:last-child {
    border-left: 0;
    padding-left: 0;
  }
  .chapter-07-comparison-figure {
    width: 100%;
  }
  .chapter-07-comparison-stage {
    height: clamp(240px, 70vw, 380px);
  }
  .chapter-07-comparison-arrow {
    width: 2.1rem;
    height: 2.1rem;
  }
  .chapter-07-comparison-arrow--prev {
    left: 0.65rem;
  }
  .chapter-07-comparison-arrow--next {
    right: 0.65rem;
  }
  .chapter-07-communication-panel {
    height: auto !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .chapter-05-stage-grid {
    grid-template-columns: 1fr;
  }
  .chapter-05-problem-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chapter-05-case-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .chapter-05-problem-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Chapter section body text (outside .prose-content) ── */
/* Covers card descriptions, matrix rows, standalone paragraphs in content sections.
   Excludes: section eyebrows, chart captions, and mobile-only meta labels (sm:hidden). */
section.anim-fade-up p:not(.section-eyebrow):not(.chart-card-source):not(.chart-card-label):not(.ch05-flow-label):not([class*="sm:hidden"]) {
  font-size: large;
}

/* ── Ordered list marker — reusable numbered list emphasis ── */
.ordered-list-marker {
  width: var(--ordered-list-marker-size);
  height: var(--ordered-list-marker-size);
  border-radius: 9999px;
  background: var(--color-brand-teal-mid);
  color: var(--color-brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Light glass panels — bright, readable feature blocks ── */
.light-glass-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(225, 229, 232, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 30, 43, 0.08);
}

.line-advantage-item {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(225, 229, 232, 0.9);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.line-advantage-title {
  display: block;
  color: var(--color-brand-teal);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.line-advantage-description {
  display: block;
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Warranty cards — border-only service guarantees ── */
.warranty-card {
  border: 1px solid var(--color-hairline);
  border-radius: 24px;
  padding: 1.5rem;
  background: transparent;
  opacity: 0;
  transform: translateY(16px);
  transition:
    border-color 220ms var(--motion-ease-emphasis),
    box-shadow 220ms var(--motion-ease-emphasis),
    transform 220ms var(--motion-ease-emphasis);
}

.warranty-card:hover {
  border-color: var(--color-brand-green);
  box-shadow: 0 14px 32px rgba(0, 30, 43, 0.10);
  transform: translateY(-3px);
}

.warranty-card-icon {
  width: 2rem;
  height: 2rem;
  color: var(--color-brand-green-dark);
  margin-bottom: 1rem;
}

.warranty-card h3 {
  color: var(--color-brand-teal);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.warranty-card p {
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}
.audience-card {
  min-height: 100%;
}
.audience-card > div:first-child {
  line-height: 1;
}

/* ── Defect accordion — native details, collapsed by default ── */
.defect-accordion {
  display: grid;
  gap: 0.75rem;
}

.defect-accordion-item {
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
}

.defect-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  transition: background-color 180ms var(--motion-ease-emphasis), border-color 180ms var(--motion-ease-emphasis);
}

.defect-accordion-summary > span:first-child {
  color: #003d4f;
}

.defect-accordion-summary::-webkit-details-marker {
  display: none;
}

.defect-accordion-summary::after {
  content: '▾';
  color: var(--color-green-deep);
  font-size: 1rem;
  line-height: 1;
  transition: transform 180ms var(--motion-ease-emphasis);
}

.defect-accordion-item[open] .defect-accordion-summary {
  background: var(--color-surface-feature);
}

.defect-accordion-item[open] .defect-accordion-summary::after {
  transform: rotate(180deg);
}

.defect-accordion-body {
  padding: 0 1rem 1rem;
}

.anim-visible .warranty-card {
  animation: warranty-card-enter 520ms var(--motion-ease-emphasis) forwards;
}

.anim-visible .warranty-card:nth-child(2) { animation-delay: 90ms; }
.anim-visible .warranty-card:nth-child(3) { animation-delay: 180ms; }
.anim-visible .warranty-card:nth-child(4) { animation-delay: 270ms; }

@keyframes warranty-card-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Data highlight box ── */
.data-callout { background: #f9fbfa; border: 1px solid var(--color-hairline); border-left: 4px solid var(--color-green-deep); border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }

/* ── Insight callout — reusable full-width insight emphasis ── */
.insight-callout,
.trend-callout {
  position: relative;
  overflow: visible;
  background: var(--surface-feature);
  border: 2px solid var(--brand-green);
  border-radius: 16px;
  color: var(--color-brand-teal);
  padding: 2rem 1.5rem 1.5rem;
  opacity: 0;
  transform: translateY(14px);
}

.insight-callout-badge,
.trend-callout-badge {
  display: inline-flex;
  align-items: center;
  position: absolute;
  left: 1.5rem;
  top: 0;
  transform: translateY(-50%);
  min-height: 1.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--color-brand-teal-mid);
  color: var(--color-brand-green);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.insight-callout p,
.trend-callout p {
  color: var(--color-brand-teal);
  font-weight: 400;
}

.anim-visible .insight-callout,
.anim-visible .trend-callout,
.insight-callout.is-visible,
.trend-callout.is-visible {
  animation: insight-callout-enter 520ms var(--motion-ease-emphasis) 160ms forwards;
}

@keyframes insight-callout-enter {
  0% {
    opacity: 0;
    transform: translateY(14px);
    border-color: var(--color-brand-green-soft);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--brand-green);
  }
}

/* ── Text mark underline — reusable inline evidence emphasis ── */
.text-mark-underline,
.animated-underline-mark {
  color: var(--ink);
  font-weight: 500;
  background-image: linear-gradient(var(--color-brand-green-soft), var(--color-brand-green-soft));
  background-repeat: no-repeat;
  background-size: 0% var(--text-mark-underline-thickness);
  background-position: 0 var(--text-mark-underline-position);
  animation: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.anim-visible .text-mark-underline,
.anim-visible .animated-underline-mark,
.text-mark-underline.is-visible,
.animated-underline-mark.is-visible {
  animation: text-mark-underline-draw var(--motion-text-mark-duration) var(--motion-ease-emphasis) var(--motion-text-mark-delay) forwards;
}

@keyframes text-mark-underline-draw {
  to { background-size: 100% var(--text-mark-underline-thickness); }
}

@media (prefers-reduced-motion: reduce) {
  .insight-callout,
  .trend-callout,
  .warranty-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .warranty-card {
    transition: border-color 200ms ease, box-shadow 200ms ease;
  }

  .warranty-card:hover {
    transform: none;
  }

  .defect-accordion-summary,
  .defect-accordion-summary::after {
    transition: none;
  }

  .text-mark-underline,
  .animated-underline-mark {
    animation: none;
    background-size: 100% var(--text-mark-underline-thickness);
  }
}

/* ── Data table ── */
.data-table { width:100%; border-collapse:collapse; font-size:0.875rem; }
.data-table th { background:var(--color-brand-teal-mid); color:#fff; padding:0.65rem 1rem; text-align:left; font-weight:600; font-size:0.8rem; white-space:nowrap; }
.data-table th:first-child { border-radius:8px 0 0 0; }
.data-table th:last-child  { border-radius:0 8px 0 0; }
.data-table td { padding:0.75rem 1rem; border-bottom:1px solid var(--color-hairline); color:var(--color-slate); line-height:1.5; vertical-align:top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background:#f9fbfa; }
.data-table tr:hover td { background:var(--color-surface-feature); }

/* ── Chapter bottom navigation ── */
.chapter-nav-link { transition: background .2s, color .2s; }
.chapter-nav-link:hover { background: var(--color-surface-feature); }

/* ── Pain point cards (ch02+) ── */
.pain-card { border-left: 3px solid; padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; }

/* ── Section eyebrow label — 顧問報告識別標籤（所有章節通用） ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-green-dark);
  margin-bottom: 0.75rem;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--color-green-deep);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ── Report table — 白皮書輕色表頭（data-table 保留供其他章節使用深色版） ── */
.report-table { width: 100%; border-collapse: collapse; font-size: medium; }
.report-table th {
  background: var(--color-brand-teal-mid);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid var(--color-brand-green);
}
.report-table th:first-child { border-radius: 8px 0 0 0; }
.report-table th:last-child  { border-radius: 0 8px 0 0; }
.report-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--color-hairline); color: var(--color-slate); line-height: 1.55; vertical-align: top; }
.report-table tr:last-child td { border-bottom: none; }
.report-table tbody tr:hover td { background: #fafcfb; }

.chapter-08-gap-table-wrapper {
  height: 100%;
}

.chapter-08-gap-table {
  table-layout: fixed;
  min-width: 0;
  font-size: 0.9375rem;
}

.chapter-08-gap-table th,
.chapter-08-gap-table td {
  padding-inline: 0.75rem;
  white-space: normal;
}

.chapter-08-gap-table th:nth-child(1),
.chapter-08-gap-table td:nth-child(1) {
  width: 30%;
}

.chapter-08-gap-table th:nth-child(2),
.chapter-08-gap-table td:nth-child(2),
.chapter-08-gap-table th:nth-child(3),
.chapter-08-gap-table td:nth-child(3) {
  width: 24%;
}

.chapter-08-gap-table th:nth-child(4),
.chapter-08-gap-table td:nth-child(4) {
  width: 22%;
}

@media (max-width: 767px) {
  .chapter-08-gap-table {
    min-width: 640px;
  }
}

/* ── Risk badge — 簡約字色+細框（用於 1.2 表格 badge，取代彩色背景） ── */
.risk-badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; background: transparent; border: 1px solid currentColor; }
.risk-badge--neutral { color: var(--color-brand-green-dark); }
.risk-badge--warn    { color: #92704a; }
.risk-badge--risk    { color: #b03a3a; }

/* ── Chart card — 圖表右欄容器（頂部綠色細條） ── */
.chart-card { background: #f9fbfa; border: 1px solid var(--color-hairline); border-radius: 12px; padding: 1.25rem 1.25rem 1rem; position: relative; overflow: hidden; }
.chart-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-green-deep), transparent); border-radius: 12px 12px 0 0; }
.chart-card canvas { max-width: 100%; }
.chart-card-label { font-family: 'Montserrat', sans-serif; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5c6c7a; margin-bottom: 1rem; display: block; }
.chart-card-source { font-size: 0.6875rem; color: #7c8c9a; text-align: center; margin-top: 0.75rem; line-height: 1.4; display: block; }

.image-placeholder {
  margin: 0;
}

.image-placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
  padding: 2rem;
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0, 237, 100, 0.12), rgba(0, 61, 79, 0.08)),
    var(--color-surface-soft);
  color: var(--color-brand-teal);
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.image-placeholder figcaption {
  color: var(--color-steel);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 0.75rem;
  text-align: center;
}

.chapter-10-publication-note {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-hairline);
  color: var(--color-steel);
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: center;
}

.chapter-10-publication-note p {
  margin: 0;
}

.chapter-10-publication-note p + p {
  margin-top: 0.35rem;
}

.chapter-10-publication-note strong {
  color: var(--color-brand-teal);
  font-weight: 600;
}

.chapter-10-roadmap-timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  max-width: 58rem;
  margin-top: 1.5rem;
}

.chapter-10-roadmap-timeline::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 2.45rem;
  width: 1px;
  background: var(--color-hairline);
}

.chapter-10-roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.chapter-10-roadmap-year {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.9rem;
  min-height: 2.6rem;
  border: 1px solid var(--color-brand-green);
  border-radius: 9999px;
  background: var(--color-brand-teal);
  color: var(--color-brand-green);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.chapter-10-roadmap-content {
  padding: 0.15rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.chapter-10-roadmap-content span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.chapter-10-roadmap-badge--intro {
  background: #7b3ff2;
}

.chapter-10-roadmap-badge--mature {
  background: #3d4f9f;
}

.chapter-10-roadmap-content p {
  color: var(--color-slate);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.chapter-10-section-heading {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.chapter-10-ai-recognition .prose-content p:last-child {
  margin-bottom: 0;
}

.chapter-10-ai-copy {
  max-width: none;
}

.chapter-10-roadmap-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.8fr);
  align-items: stretch;
}

.chapter-10-roadmap-layout .chapter-10-roadmap-timeline {
  align-self: center;
  margin-top: 0;
}

.chapter-10-roadmap-visual {
  width: 100%;
  min-height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface-feature);
}

.chapter-10-intro-media {
  background: var(--color-surface-feature);
}

.chapter-10-ai-app-layout {
  margin-top: 0;
}

.chapter-10-vision-section {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.chapter-10-vision-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.25rem);
  border: 1px solid var(--color-brand-green);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 237, 100, 0.16), transparent 32%),
    linear-gradient(135deg, var(--color-brand-teal) 0%, var(--color-brand-teal-mid) 100%);
}

.chapter-10-vision-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -35% auto;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(0, 237, 100, 0.22);
  border-radius: 9999px;
  pointer-events: none;
}

.chapter-10-vision-card .section-eyebrow {
  color: var(--color-brand-green);
  margin-bottom: 0.75rem;
}

.chapter-10-vision-card h2 {
  max-width: 16ch;
  color: #f9fbfa;
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0 0 clamp(1.35rem, 3vw, 2rem);
}

.chapter-10-vision-card blockquote {
  max-width: 62rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.chapter-10-vision-card blockquote p {
  color: #f9fbfa;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.75;
  margin: 0;
}

.chapter-10-vision-card > p:last-child {
  max-width: 44rem;
  margin: clamp(1.35rem, 3vw, 2rem) 0 0;
  color: rgba(249, 251, 250, 0.78);
  font-size: 1.05rem;
  line-height: 1.75;
}

.chart-card--comparison {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chart-card-canvas {
  flex: 1;
  min-height: 0;
  position: relative;
}

.chart-card--comparison canvas {
  width: 100% !important;
  height: 100% !important;
}

.analysis-03-callout-align-body {
  padding-top: 7rem;
}

@media (max-width: 1023px) {
  .analysis-03-callout-align-body {
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .chapter-10-roadmap-timeline::before {
    left: 1.3rem;
  }

  .chapter-10-roadmap-item {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 0.9rem;
  }

  .chapter-10-roadmap-year {
    width: 2.6rem;
    min-height: 2.6rem;
    font-size: 0.72rem;
  }
}

/* ── Chapter 08 analysis fields — compact consultant-style comparison ── */
.analysis-field-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.analysis-field-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  background:
    linear-gradient(70deg, rgba(0, 30, 43, 0.58) 0%, rgba(0, 61, 79, 0.74) 46%, rgba(0, 30, 43, 0.52) 100%),
    url('../assets/img/ch8_inspector.webp') center / cover no-repeat;
  overflow: hidden;
}

.analysis-field-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(70deg, rgba(0, 237, 100, 0.18), transparent 54%);
  pointer-events: none;
}

.analysis-field-intro > * {
  position: relative;
  z-index: 1;
}

.analysis-field-kicker {
  color: var(--color-brand-green);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.analysis-field-intro p:last-child {
  color: #f4f7f6;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
  margin: 1.25rem 0 0;
}

.chapter-10-ai-app-intro {
  background:
    linear-gradient(70deg, rgba(0, 30, 43, 0.58) 0%, rgba(0, 61, 79, 0.74) 46%, rgba(0, 30, 43, 0.52) 100%),
    url('../assets/img/ch10_GenerativeAI.webp') center / cover no-repeat;
}

.analysis-field-stack {
  display: grid;
  gap: 0.75rem;
}

.analysis-field-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  background: #fbfdfc;
  transition:
    border-color 220ms var(--motion-ease-emphasis),
    box-shadow 220ms var(--motion-ease-emphasis),
    transform 220ms var(--motion-ease-emphasis);
}

.analysis-field-item:hover {
  border-color: var(--color-brand-green);
  box-shadow: 0 12px 28px rgba(0, 30, 43, 0.08);
  transform: translateY(-2px);
}

.analysis-field-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--color-brand-teal-mid);
  color: var(--color-brand-green);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

.analysis-field-item h3,
.analysis-field-item h4 {
  color: var(--color-brand-teal);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.4rem;
}

.analysis-field-item p {
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 1023px) {
  .analysis-field-layout {
    grid-template-columns: 1fr;
  }

  .analysis-field-intro {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analysis-field-item {
    transition: border-color 200ms ease, box-shadow 200ms ease;
  }

.analysis-field-item:hover {
    transform: none;
  }
}

/* ── Chapter 08 recommendations — strategic response system ── */
.recommendation-system {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr);
  gap: 1.5rem;
  align-items: start;
}

.recommendation-lead {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  height: 24.25rem;
  padding: 1.5rem;
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  background:
    linear-gradient(70deg, rgba(0, 30, 43, 0.58) 0%, rgba(0, 61, 79, 0.74) 46%, rgba(0, 30, 43, 0.52) 100%),
    url('../assets/img/ch08_Strategic.webp') center / cover no-repeat;
  color: #f4f7f6;
}

.recommendation-lead::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(70deg, rgba(0, 237, 100, 0.18), transparent 54%);
  pointer-events: none;
}

.recommendation-lead > * {
  position: relative;
  z-index: 1;
}

.recommendation-kicker {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: var(--color-brand-green);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.recommendation-lead > p:not(.recommendation-kicker) {
  color: #f4f7f6;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.75;
  margin: 0;
}

.recommendation-class-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.recommendation-class-grid div {
  padding: 1rem;
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  background: #fbfdfc;
}

.recommendation-class-grid span {
  display: block;
  color: var(--color-brand-green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.recommendation-class-grid strong {
  display: block;
  color: var(--color-brand-teal);
  font-size: 1rem;
  line-height: 1.4;
}

.recommendation-class-grid p {
  color: var(--color-slate);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0.25rem 0 0;
}

.recommendation-accordion {
  display: grid;
  gap: 0.75rem;
}

.recommendation-accordion-item {
  border: 1px solid var(--color-hairline);
  border-radius: 16px;
  background: #fbfdfc;
  overflow: hidden;
}

.recommendation-accordion-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  color: var(--color-brand-teal);
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  transition:
    background-color 220ms var(--motion-ease-emphasis),
    border-color 220ms var(--motion-ease-emphasis),
    box-shadow 220ms var(--motion-ease-emphasis),
    transform 220ms var(--motion-ease-emphasis);
}

.recommendation-accordion-summary::-webkit-details-marker {
  display: none;
}

.recommendation-accordion-summary::after {
  content: '▾';
  justify-self: end;
  color: var(--color-green-deep);
  font-size: 1rem;
  line-height: 1;
  transition: transform 180ms var(--motion-ease-emphasis);
}

.recommendation-accordion-item:hover {
  border-color: var(--color-brand-green);
  box-shadow: 0 12px 28px rgba(0, 30, 43, 0.08);
}

.recommendation-accordion-item[open] .recommendation-accordion-summary {
  background: var(--color-surface-feature);
}

.recommendation-accordion-item[open] .recommendation-accordion-summary::after {
  transform: rotate(180deg);
}

.recommendation-accordion-body {
  padding: 0 1.2rem 1.2rem 4.2rem;
}

.recommendation-accordion-body p,
.recommendation-accordion-body li {
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.7;
}

.recommendation-accordion-body p {
  margin: 0;
}

.recommendation-accordion-body ul {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.recommendation-accordion-body li {
  position: relative;
  padding-left: 1rem;
}

.recommendation-accordion-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: var(--color-green-deep);
}

@media (max-width: 1023px) {
  .recommendation-system {
    grid-template-columns: 1fr;
  }

  .recommendation-lead {
    height: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recommendation-accordion-summary,
  .recommendation-accordion-summary::after {
    transition: border-color 200ms ease, box-shadow 200ms ease;
  }
}

/* ── Segmented tabs — underline-style tabs from DESIGN.md ── */
.seg-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.seg-tab {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 4rem;
  padding: 1.5rem 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--color-steel);
  cursor: pointer;
  text-align: left;
  transition:
    background-color 180ms var(--motion-ease-emphasis),
    border-color 180ms var(--motion-ease-emphasis),
    color 180ms var(--motion-ease-emphasis);
}

.seg-tab span {
  color: var(--color-stone);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin:0 auto;
}

.seg-tab strong {
	display:block;
  color: inherit;
  font-size: clamp(1.5rem, 2.4vw, 1.12rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing:1px;
  margin:0 auto;
}

.seg-tab:hover {
  /*border-bottom-color: var(--color-hairline-strong);*/
  background: #efefef;
  color: var(--color-ink);
}

.seg-tab:focus-visible {
  outline: 3px solid rgba(0, 104, 74, 0.25);
  outline-offset: -3px;
}

.seg-tab.is-active {
  /*background: var(--color-brand-green-dark);*/
  background:#e5765c;
  color: #fff;
}
.seg-tab.is-active .triangle{
   border-bottom: 10px solid #fff;
}

.seg-tab.is-active span {
  color: #fff;
}
.triangle {
  width: 20px;
  height: 20px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #001e2b;
  transform: rotate(180deg);
  margin:10px auto 0 auto;
  
  animation: scrollDown 1.5s infinite ease-in-out;
}


.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 3px solid #333; /* 箭頭線條顏色 */
  border-bottom: 3px solid #333;
  transform: rotate(45deg);     /* 旋轉 45 度變成向下箭頭 */
  margin: 10px auto;
  
  /* 綁定動畫：名稱、時間、無限循環、速度曲線 */
  animation: scrollDown 1.5s infinite ease-in-out;
}
@keyframes scrollDown {
  0% {
    transform: rotate(180deg) translateY(0);
    opacity: 0;
  }
  50% {
    opacity: 1; /* 移到中間時最亮 */
  }
  100% {
    transform: rotate(180deg) translateY(0px); /* 往下位移 15 像素 */
    opacity: 0.4; /* 到底部時消失 */
  }
}

/* ── Chapter 09 report tabs and report-specific component variants ── */
.m9{
	margin:5% 0 0 0;
}
.chapter-report-tabbar {
  position: sticky;
  top: 4rem;
  z-index: 30;
  border-bottom: 1px solid var(--color-hairline);
  border-top: 1px solid var(--color-hairline);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.chapter-report-tabs {
  border-bottom: 0;
}

.chapter-report-panel[hidden] {
  display: none !important;
}

.chapter-09-wide-table {
  min-width: 58rem;
}

.chapter-09-ranking-clean-table {
  table-layout: fixed;
  min-width: 54rem;
}

.chapter-09-ranking-clean-table .chapter-09-rank-col {
  width: 4rem;
}

.chapter-09-ranking-clean-table .chapter-09-type-col {
  width: 7.5rem;
}

.chapter-09-ranking-clean-table .chapter-09-count-col,
.chapter-09-ranking-clean-table .chapter-09-share-col {
  width: 6.25rem;
}

.chapter-09-ranking-clean-table .chapter-09-action-col {
  width: auto;
}

.chapter-09-defect-ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
  margin: 1.25rem 0 2rem;
}

.chapter-09-ranking-column {
  display: grid;
  gap: 0.85rem;
}

.chapter-09-ranking-table {
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  background: #ffffff;
}

.chapter-09-ranking-note {
  max-width: 68ch;
  text-align: left;
}

.chapter-09-ranking-clean-table td:nth-child(1),
.chapter-09-ranking-clean-table td:nth-child(3),
.chapter-09-ranking-clean-table td:nth-child(4) {
  white-space: nowrap;
}

.chapter-09-pie-panel {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  background: var(--color-surface);
}

.chapter-09-pie-kicker {
  color: var(--color-brand-green-dark);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  text-align: center;
}

.chapter-09-pie-panel h4 {
  color: var(--color-brand-teal);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

.chapter-09-pie-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 15rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(
      #003d4f 0% 28.9%,
      #00684a 28.9% 49.7%,
      #00b545 49.7% 63.9%,
      #008c7a 63.9% 68.8%,
      #3a8fa4 68.8% 72.6%,
      #4aa987 72.6% 76.3%,
      #5aa6b8 76.3% 79.9%,
      #6bc6a2 79.9% 82.9%,
      #7bcfc3 82.9% 85.7%,
      #9bd8cf 85.7% 87.1%,
      #d7e5e2 87.1% 100%
    );
  box-shadow: inset 0 0 0 1px rgba(0, 30, 43, 0.08);
}

.chapter-09-pie-chart::after {
  content: '';
  position: absolute;
  inset: 23%;
  border-radius: 50%;
  background: var(--color-surface);
}

.chapter-09-pie-chart span {
  position: relative;
  z-index: 1;
  color: var(--color-brand-teal);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.chapter-09-pie-note {
  color: var(--color-slate);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  text-align: center;
}

.chapter-09-pie-legend {
  display: grid;
  gap: 0.55rem 0.8rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-09-pie-legend li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-slate);
  font-size: 0.875rem;
  line-height: 1.35;
}

.chapter-09-pie-legend strong {
  color: var(--color-ink);
  font-weight: 500;
}

.chapter-09-pie-legend em {
  color: var(--color-steel);
  font-style: normal;
  font-weight: 600;
}

.legend-swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
}

.legend-swatch-1 { background: #003d4f; }
.legend-swatch-2 { background: #00684a; }
.legend-swatch-3 { background: #00b545; }
.legend-swatch-4 { background: #008c7a; }
.legend-swatch-5 { background: #3a8fa4; }
.legend-swatch-6 { background: #4aa987; }
.legend-swatch-7 { background: #5aa6b8; }
.legend-swatch-8 { background: #6bc6a2; }
.legend-swatch-9 { background: #7bcfc3; }
.legend-swatch-10 { background: #9bd8cf; }
.legend-swatch-11 { background: #d7e5e2; }

.chapter-09-report-section {
  margin-bottom: 4rem;
}

.chapter-09-report-title {
  width: 100%;
  margin: 0 0 3rem;
  text-align: center;
}

.chapter-09-report-title h2 {
  color: var(--color-brand-teal);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0;
}

.chapter-09-section-heading {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  margin: 0 0 2rem;
}

.chapter-09-section-heading h2 {
  flex: 0 0 auto;
  color: var(--color-brand-teal);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0;
}

.chapter-09-section-heading .section-divider {
  flex: 1 1 auto;
  height: 2px;
  min-width: 4rem;
  margin: 0;
  border: none;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--color-green-deep), transparent);
}

.chapter-09-table-block {
  margin: 1.25rem 0 2rem;
}

.chapter-09-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.75fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.chapter-09-summary-table {
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  background: #ffffff;
}

.chapter-09-basic-table {
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  background: #ffffff;
}

.chapter-09-background-stack {
  display: grid;
  gap: 1.25rem;
}

.chapter-09-background-stack .prose-content h3 {
  margin-top: 0;
}

.chapter-09-framed-table {
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  background: #ffffff;
}

.chapter-09-priority-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
  margin-top: 1.25rem;
}

.chapter-09-priority-card {
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: clamp(1.25rem, 2vw, 1.65rem);
}

.chapter-09-priority-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-brand-green-dark);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 1rem;
}

.chapter-09-priority-card h3 span {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--color-brand-green);
  flex: 0 0 auto;
}

.chapter-09-priority-card > strong {
  display: block;
  color: var(--color-brand-teal);
  font-size: clamp(1.15rem, 1.4vw, 1.32rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 1rem;
}

.chapter-09-priority-card p {
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.7;
  margin: auto 0 0;
}

.chapter-09-cause-card-grid {
  margin-top: 1.25rem;
}

.chapter-09-report2-cause-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.chapter-09-cause-card {
  display: flex;
  flex-direction: column;
  min-height: 13rem;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  background: #ffffff;
}

.chapter-09-cause-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: var(--color-brand-teal);
  color: var(--color-brand-green);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.chapter-09-cause-card h4 {
  color: var(--color-brand-teal);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 0.75rem;
}

.chapter-09-cause-card p {
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.chapter-09-compact-recommendations {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.chapter-09-compact-recommendations .prose-content h3 {
  margin-top: 0;
}

.chapter-09-compact-recommendation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.chapter-09-compact-recommendation-list li {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-hairline);
  border-radius: 10px;
  background: #ffffff;
}

.chapter-09-compact-recommendation-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 9999px;
  background: var(--color-brand-teal);
  color: var(--color-brand-green);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.chapter-09-compact-recommendation-list p {
  color: var(--color-slate);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

.chapter-09-subsection {
  margin-top: 2.25rem;
}

.chapter-09-trade-analysis-list {
  display: grid;
  gap: 2rem;
  margin: 1.25rem 0 0 clamp(1rem, 4vw, 4rem);
}

.chapter-09-trade-analysis {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.chapter-09-trade-analysis .prose-content h3 {
  margin-top: 0;
}

.chapter-09-trade-analysis .prose-content p {
  margin-bottom: 0;
}

.chapter-09-single-accordion {
  margin: 1.25rem 0 2.25rem;
}

.chapter-09-table-note {
  color: var(--color-slate);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 1rem 0 0;
}

.chapter-09-countermeasures-heading {
  max-width: 58rem;
}

.chapter-09-countermeasure-list {
  display: grid;
  gap: 1.25rem;
  margin-left: clamp(1rem, 4vw, 4rem);
}

.chapter-09-countermeasure {
  padding-left: 0;
  border-left: 0;
}

.chapter-09-countermeasure h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-brand-teal);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.chapter-09-countermeasure h3 span {
  display: inline;
  color: inherit;
  font: inherit;
}

.chapter-09-countermeasure-overview {
  max-width: 58rem;
  color: var(--color-slate);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}

.chapter-09-countermeasure-overview strong {
  color: var(--color-ink);
  font-weight: 600;
}

.chapter-09-countermeasure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chapter-09-countermeasure-card {
  padding: 1.15rem;
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  background: #ffffff;
}

.chapter-09-countermeasure-card h4 {
  color: var(--color-brand-teal);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.85rem;
}

.chapter-09-countermeasure-card ul {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chapter-09-countermeasure-card li {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: var(--color-slate);
  font-size: 0.98rem;
  line-height: 1.65;
}

.chapter-09-countermeasure-card li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.chapter-09-countermeasure-card--risk li span {
  background: var(--color-surface-soft);
  color: var(--color-stone);
}

.chapter-09-countermeasure-card--action li span {
  background: var(--color-brand-teal);
  color: var(--color-brand-green);
}

.chapter-09-timeline {
  position: relative;
  display: grid;
  gap: 1.1rem;
  margin: 1.25rem 0 0 clamp(1rem, 4vw, 4rem);
}

.chapter-09-timeline::before {
  content: "";
  position: absolute;
  top: 1.7rem;
  bottom: 1.7rem;
  left: 1.15rem;
  width: 1px;
  background: var(--color-hairline);
}

.chapter-09-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.chapter-09-timeline-marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 9999px;
  background: var(--color-brand-teal);
  color: var(--color-brand-green);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.chapter-09-timeline-content {
  padding: 1.1rem clamp(1.15rem, 2vw, 1.5rem);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  background: #ffffff;
}

.chapter-09-timeline-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.chapter-09-timeline-heading h3 {
  color: var(--color-brand-teal);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.chapter-09-timeline-heading span {
  flex: 0 0 auto;
  color: var(--color-brand-green-dark);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.chapter-09-timeline-content p {
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.chapter-09-timeline-content p + p {
  margin-top: 0.45rem;
}

.chapter-09-timeline-content strong {
  color: var(--color-ink);
  font-weight: 600;
}

.chapter-09-goal-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0 2rem;
}

.chapter-09-goal-item {
  display: grid;
  grid-template-columns: minmax(13rem, 0.9fr) minmax(11rem, 0.55fr) minmax(16rem, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  background: #ffffff;
}

.chapter-09-goal-metric,
.chapter-09-goal-target,
.chapter-09-goal-method {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.chapter-09-goal-target,
.chapter-09-goal-method {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--color-surface);
}

.chapter-09-goal-target {
  background: var(--color-surface-feature);
}

.chapter-09-goal-item span {
  color: var(--color-brand-green-dark);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.chapter-09-goal-item h4 {
  color: var(--color-brand-teal);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.4rem;
}

.chapter-09-goal-item strong {
  color: var(--color-brand-teal);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
}

.chapter-09-goal-item p {
  color: var(--color-slate);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.chapter-09-conclusion-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.chapter-09-conclusion-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-hairline);
}

.chapter-09-conclusion-item h4 {
  color: var(--color-brand-teal);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 0.55rem;
}

.chapter-09-conclusion-item p {
  color: var(--color-slate);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

.chapter-09-action-callout {
  margin-top: 2rem;
}

.chapter-09-action-callout h3 {
  color: var(--color-brand-teal);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.chapter-09-priority-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.chapter-09-priority-list li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.chapter-09-priority-list li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--color-brand-teal);
  color: var(--color-brand-green);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

.chapter-09-priority-list p {
  color: var(--color-slate);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
}

.chapter-09-priority-list strong {
  color: var(--color-brand-teal);
  font-weight: 700;
}

.chapter-09-recommendation-lead,
.chapter-09-analysis-intro {
  background:
    linear-gradient(70deg, rgba(0, 30, 43, 0.48) 0%, rgba(0, 61, 79, 0.7) 50%, rgba(0, 30, 43, 0.54) 100%),
    url('../assets/img/banner_ch9.webp') center / cover no-repeat;
}

.chapter-09-insight-callout {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.chapter-09-insight-callout p {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75;
  margin: 0;
}

#chapter-09-panel-1 {
  --chapter-09-panel-section-gap: clamp(3.5rem, 6vw, 5.5rem);
  --chapter-09-panel-inner-gap: clamp(1.5rem, 3vw, 2.5rem);
}

#chapter-09-panel-1 .chapter-09-report-title {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

#chapter-09-panel-1 .chapter-09-report-section {
  margin-bottom: var(--chapter-09-panel-section-gap);
}

#chapter-09-panel-1 .chapter-09-report-section:last-child {
  margin-bottom: 0;
}

#chapter-09-panel-1 .chapter-09-section-heading {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

#chapter-09-panel-1 .chapter-09-summary-grid {
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

#chapter-09-panel-1 .chapter-09-table-block {
  margin: clamp(1rem, 2vw, 1.5rem) 0 clamp(1.75rem, 3vw, 2.5rem);
}

#chapter-09-panel-1 .chapter-09-subsection {
  margin-top: clamp(2rem, 4vw, 3rem);
}

#chapter-09-panel-1 .chapter-09-countermeasures-heading {
  max-width: 68ch;
  margin-bottom: var(--chapter-09-panel-inner-gap);
}

#chapter-09-panel-1 .chapter-09-countermeasure-list {
  gap: clamp(1.5rem, 2.8vw, 2.25rem);
  margin-left: 0;
}

#chapter-09-panel-1 .chapter-09-countermeasure {
  padding-top: 0.25rem;
}

#chapter-09-panel-1 .chapter-09-goal-list {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

#chapter-09-panel-1 .chapter-09-conclusion-list {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

#chapter-09-panel-1 .chapter-09-action-callout {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

#chapter-09-panel-2 {
  --chapter-09-panel-section-gap: clamp(4rem, 7vw, 6rem);
  --chapter-09-panel-inner-gap: clamp(1.5rem, 3vw, 2.5rem);
  --chapter-09-panel-indent: clamp(1rem, 4vw, 4rem);
}

#chapter-09-panel-2 .chapter-09-report-title {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

#chapter-09-panel-2 .chapter-09-report-section {
  margin-bottom: var(--chapter-09-panel-section-gap);
}

#chapter-09-panel-2 .chapter-09-report-section:last-child {
  margin-bottom: 0;
}

#chapter-09-panel-2 .chapter-09-section-heading {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

#chapter-09-panel-2 .chapter-09-summary-grid {
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

#chapter-09-panel-2 .chapter-09-summary-table {
  align-self: stretch;
}

#chapter-09-panel-2 .chapter-09-priority-card-grid {
  margin-top: var(--chapter-09-panel-inner-gap);
}

#chapter-09-panel-2 .chapter-09-compact-recommendations {
  max-width: 62rem;
}

#chapter-09-panel-2 .chapter-09-background-stack {
  gap: clamp(1.25rem, 2.6vw, 2rem);
}

#chapter-09-panel-2 .chapter-09-background-stack > .prose-content {
  max-width: 72ch;
}

#chapter-09-panel-2 .chapter-09-subsection {
  max-width: 72ch;
}

#chapter-09-panel-2 .chapter-09-defect-ranking-layout {
  margin: 1.25rem 0 0;
}

#chapter-09-panel-2 .chapter-09-wide-table {
  min-width: 86rem;
}

#chapter-09-panel-2 .chapter-09-single-accordion {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

#chapter-09-panel-2 .chapter-09-report2-cause-grid {
  margin-left: var(--chapter-09-panel-indent);
}

#chapter-09-panel-2 .chapter-09-trade-analysis-list {
  gap: clamp(2rem, 4vw, 3rem);
}

#chapter-09-panel-2 .chapter-09-countermeasures-heading {
  max-width: 72ch;
  margin-left: var(--chapter-09-panel-indent);
  margin-bottom: var(--chapter-09-panel-inner-gap);
}

#chapter-09-panel-2 .chapter-09-countermeasure-list {
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

#chapter-09-panel-2 .chapter-09-countermeasure {
  padding-block: 0.25rem 0.5rem;
}

#chapter-09-panel-2 .chapter-09-timeline {
  max-width: 68rem;
}

#chapter-09-panel-2 .chapter-09-conclusion-list,
#chapter-09-panel-2 .chapter-09-action-callout {
  margin-left: var(--chapter-09-panel-indent);
}

#chapter-09-panel-2 .chapter-09-conclusion-list {
  max-width: 72rem;
}

#chapter-09-panel-2 .analysis-field-layout {
  margin-top: var(--chapter-09-panel-inner-gap);
}

#chapter-09-panel-2 .chapter-09-action-callout {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.chapter-09-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.chapter-09-risk-card {
  padding: clamp(1.25rem, 2vw, 1.6rem);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  background: #ffffff;
}

.chapter-09-risk-card h3 {
  color: var(--color-brand-teal);
  font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 0.8rem;
}

.chapter-09-risk-card p {
  color: var(--color-slate);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 0.8rem;
}

.chapter-09-risk-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .chapter-report-tabbar {
    top: 3.5rem;
  }

  .chapter-report-tabs {
    gap: 0;
  }

  .chapter-report-tab {
    min-height: 4.5rem;
    padding: 0.8rem;
  }

  .chapter-09-section-heading {
    gap: 0.85rem;
  }

  .chapter-09-summary-grid {
    grid-template-columns: 1fr;
  }

  .chapter-09-priority-card-grid {
    grid-template-columns: 1fr;
  }

  .chapter-09-compact-recommendation-list {
    grid-template-columns: 1fr;
  }

  .chapter-09-compact-recommendation-list li {
    grid-template-columns: 1.7rem minmax(0, 1fr);
  }

  .chapter-09-report2-cause-grid {
    grid-template-columns: 1fr;
  }

  #chapter-09-panel-2 .chapter-09-compact-recommendations,
  #chapter-09-panel-2 .chapter-09-report2-cause-grid,
  #chapter-09-panel-2 .chapter-09-countermeasures-heading,
  #chapter-09-panel-2 .chapter-09-conclusion-list,
  #chapter-09-panel-2 .chapter-09-action-callout {
    margin-left: 0;
  }

  .chapter-09-defect-ranking-layout {
    grid-template-columns: 1fr;
  }

  .chapter-09-trade-analysis-list {
    margin-left: 0;
  }

  .chapter-09-trade-analysis {
    grid-template-columns: 1fr;
  }

  .chapter-09-countermeasure-list {
    margin-left: 0;
  }

  .chapter-09-countermeasure {
    padding-left: 0;
  }

  .chapter-09-countermeasure-grid {
    grid-template-columns: 1fr;
  }

  .chapter-09-timeline {
    margin-left: 0;
  }

  .chapter-09-timeline-heading {
    display: grid;
    gap: 0.35rem;
  }

  .chapter-09-timeline-heading span {
    flex: initial;
  }

  .chapter-09-goal-item {
    grid-template-columns: 1fr;
  }

  .chapter-09-risk-grid {
    grid-template-columns: 1fr;
  }
}

/*FOR FORM*/
.tab {
  overflow: hidden;
  width:80%;
  margin:0 auto;
}
.tab button {
  background-color:#23444a;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 0;
  transition: 0.3s;
  font-size:20px;
  width:48%;
  margin:0 1%;
  color:#fff;

}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #4a947f;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #00b545;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 30px 10px;
  width:80%;
  margin:0 auto;
}
.form{
	
}
input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}
input[type=submit] {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}


input[type=button] {
  background-color: #444;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #45a049;
}

.tabbox{
	display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.pp1{
	width:65%;
	float:left;
}
.pp2{
	width:35%;
	float:right;
	text-align:right;
	padding:5px 0 0 0;
}

.psps{
	text-align:center;
	padding:20px 0;
}
.logotop{
	width:200px;
	margin:5% 0 0 0;
}

.logotop img{
	width:100%;
	height:auto;
}