/* Module 2: measured reporter results and model-guided validation. */
.module-two { scroll-margin-top: 112px; }
.module-two [id] { scroll-margin-top: 112px; }
.module-two .m2-hero {
  margin: 1rem 0 1.35rem;
  padding: clamp(1.5rem, 3vw, 2.8rem);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background: linear-gradient(115deg, #fff 20%, #edf6ee 100%);
  box-shadow: var(--shadow-soft);
}
.module-two .m2-hero h1 { max-width: none; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.08; }
.module-two .m2-hero .lead-copy { max-width: none; margin: 1.2rem 0; }
.module-two .m2-hero h1::after { margin-top: 1.1rem; }
.module-two .m2-eyebrow { display: block; color: var(--green-700); font-size: 0.71rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.module-two .m2-nav { margin-bottom: 1.6rem; gap: 0.5rem; }
.module-two .m2-nav a { padding: 0.45rem 0.85rem; border-width: 1px; font-size: 0.8rem; }
.module-two .module-report { padding: clamp(1.3rem, 3vw, 2.65rem); }
.module-two .reading-section { margin-bottom: 3.2rem; }
.module-two .reading-section + .reading-section { padding-top: 2.4rem; border-top: 1px solid var(--border-soft); }
.module-two .reading-section:last-child { margin-bottom: 0; }
.module-two .section-heading .section-label { font-size: 0.72rem; }
.module-two .reading-section .section-title { max-width: 850px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.25; }
.module-two .text-column { line-height: 1.8; }
.module-two .text-column p { color: var(--text-muted); }
.module-two .m2-system-figure { margin: 1.6rem 0 0; }
.module-two .m2-system-canvas { overflow-x: auto; }
.module-two .m2-system-diagram { display: block; width: 100%; height: auto; min-width: 940px; }
.module-two .m2-system-diagram text { font-family: "Inter", "Segoe UI", sans-serif; fill: var(--text-main); }
.module-two .m2-system-diagram .m2-svg-label { font-size: 18px; font-weight: 500; }
.module-two .m2-system-diagram .m2-svg-gene-label { font-size: 18px; font-style: italic; }
.module-two .m2-system-diagram .m2-svg-plasmid-label { fill: var(--text-muted); font-size: 17px; }
.module-two .m2-system-diagram .m2-svg-process-label { fill: var(--text-muted); font-size: 16px; }
.module-two .m2-system-diagram .m2-svg-process { fill: none; stroke: #526a60; stroke-width: 2; marker-end: url(#m2-system-arrow); }
.module-two .m2-system-diagram .m2-svg-leader { fill: none; stroke: #86978e; stroke-width: 1.3; }
.module-two .m2-system-diagram .m2-plasmid-backbone { fill: none; stroke: #84978b; stroke-width: 4; }
.module-two .m2-system-diagram .m2-plasmid-promoter { fill: none; stroke: #486d86; stroke-width: 12; }
.module-two .m2-system-diagram .m2-plasmid-gene--luxr { fill: #397e5f; }
.module-two .m2-system-diagram .m2-plasmid-gene--sfgfp { fill: #83b749; }
.module-two .m2-system-diagram .m2-luxr-protein { fill: #d5e9dd; stroke: #397e5f; stroke-width: 2; }
.module-two .m2-system-diagram .m2-ahl-molecule { fill: #e9c16b; stroke: #9c742a; stroke-width: 2; }
.module-two .m2-system-scroll-note { display: none; margin: 0 0 0.6rem; color: var(--text-muted); font-size: 0.76rem; }
.module-two .m2-system-figure figcaption { margin: 0.5rem 0 0; color: var(--text-muted); font-size: 0.79rem; line-height: 1.75; }
@media (max-width: 1050px) {
  .module-two .m2-system-scroll-note { display: block; }
}
.module-two .m2-note { color: var(--text-muted); font-size: 0.84rem; line-height: 1.75; margin: 1rem 0 0; }
.module-two .m2-main-figure { max-width: none; margin: 1.8rem 0; }
.module-two .m2-mobile-figure-note { display: none; }
.module-two .m2-figure-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.module-two .m2-figure-topline > span:last-child { color: var(--text-muted); font-size: 0.75rem; }
.module-two .module-figure img { border: 1px solid #e4eae5; background: #fff; border-radius: 0.6rem; }
.module-two .module-figure a:has(img) { display: block; cursor: zoom-in; }
.module-two .module-figure figcaption { font-size: 0.79rem; line-height: 1.75; }
.module-two .module-figure figcaption a { white-space: nowrap; font-weight: 600; }
.module-two .m2-decision { margin: 1.8rem 0 1.3rem; border-top: 1px solid var(--border-soft); }
.module-two .m2-decision-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; padding: 1rem 0; border-bottom: 1px solid var(--border-soft); }
.module-two .m2-decision-heading h3 { margin: 0; color: var(--green-900); font-size: 1.15rem; }
.module-two .m2-tabs { display: flex; gap: 1rem; }
.module-two .m2-tabs button { min-height: 44px; padding: 0.5rem 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-muted); font-size: 0.8rem; font-weight: 500; line-height: 1.35; }
.module-two .m2-tabs button[aria-selected="true"] { color: var(--green-900); border-bottom-color: var(--green-700); font-weight: 700; }
.module-two .m2-tabs button:hover { color: var(--green-900); border-bottom-color: var(--green-600); }
.module-two .m2-decision-content { display: grid; grid-template-columns: 0.85fr 1.8fr; align-items: start; gap: 1.8rem; padding: 1.25rem 0; }
.module-two .m2-decision-stat strong { display: block; color: var(--green-900); font-size: 1.8rem; font-family: "IBM Plex Serif", Georgia, serif; font-weight: 500; }
.module-two .m2-decision-stat small { font-size: 1.2rem; white-space: nowrap; }
.module-two .m2-decision-content p { margin-bottom: 0; color: var(--text-muted); font-size: 0.9rem; }
.module-two .m2-decision-content p strong { color: var(--green-900); font-weight: 600; }
.module-two .m2-decision-content .m2-note { margin-top: 0.7rem; font-size: 0.79rem; }
.module-two .m2-details { margin-top: 0; border-bottom: 1px solid var(--border-soft); }
.module-two .m2-details summary { position: relative; padding: 1.1rem 2rem 1.1rem 0; list-style: none; cursor: pointer; color: var(--green-900); font-size: 0.92rem; font-weight: 600; }
.module-two .m2-details summary::-webkit-details-marker { display: none; }
.module-two .m2-details summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.9rem; font-size: 1.3rem; font-weight: 400; color: var(--green-700); }
.module-two .m2-details[open] > summary::after { content: "−"; }
.module-two .m2-summary-meta { display: block; margin-top: 0.2rem; color: var(--text-muted); font-size: 0.74rem; font-weight: 400; }
.module-two .m2-table-wrap { width: 100%; max-width: none; margin-top: 0; padding-bottom: 0.6rem; }
.module-two table { font-variant-numeric: tabular-nums; }
.module-two table caption { caption-side: bottom; padding: 0.9rem 0 0.25rem; font-size: 0.76rem; color: var(--text-muted); }
.module-two .m2-results-table { min-width: 760px; font-size: 0.86rem; }
.module-two table th, .module-two table td { padding: 0.8rem 0.7rem; vertical-align: middle; }
.module-two table thead th { font-family: inherit; font-size: 0.72rem; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.module-two table thead th span { color: var(--text-muted); font-size: 0.68rem; font-weight: 400; }
.module-two table tbody th { font-weight: 600; }
.module-two .m2-candidate-row { background: rgba(223, 241, 228, 0.5); }
.module-two .m2-plan { margin: 1.2rem 0 0; padding-left: 1.4rem; list-style: decimal; }
.module-two .m2-plan li { padding: 1rem 0 1rem 0.4rem; border-top: 1px solid var(--border-soft); }
.module-two .m2-plan li::marker { color: var(--green-800); font-weight: 600; }
.module-two .m2-plan h3 { margin: 0 0 0.4rem; color: var(--green-900); font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.5; }
.module-two .m2-plan p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.8; }
.module-two .m2-details-body { padding: 0.3rem 1.8rem 1.2rem 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.8; }
.module-two .m2-details-body p:last-child { margin-bottom: 0; }
.module-two .m2-details-body code { color: var(--green-800); overflow-wrap: anywhere; }
.module-two .m2-equation { padding: 0.8rem 0; color: var(--green-900); font-size: 0.88rem; font-weight: 600; }
.module-two .m2-back-top { display: inline-block; margin-top: 1.8rem; color: var(--text-muted); font-size: 0.8rem; }
.module-two a:focus-visible, .module-two button:focus-visible, .module-two summary:focus-visible, .module-two [tabindex="0"]:focus-visible { outline: 2px solid var(--green-700); outline-offset: 4px; }
.module-two [hidden] { display: none !important; }
@media (max-width: 639.98px) {
  .module-two .m2-mobile-figure-note { display: block; margin-bottom: 0.6rem; color: var(--text-muted); font-size: 0.72rem; }
  .module-two .m2-main-figure > a { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 0.6rem; }
  .module-two .m2-main-figure img { min-width: 760px; border: 0; border-radius: 0; }
  .module-two .m2-hero { border-radius: 1.5rem; }
  .module-two .m2-decision-content { grid-template-columns: 1fr; }
  .module-two .m2-nav { gap: 0.4rem; }
  .module-two .m2-nav a { font-size: 0.72rem; padding: 0.4rem 0.65rem; }
  .module-two .reading-section { margin-bottom: 2rem; }
  .module-two .reading-section + .reading-section { padding-top: 1.8rem; }
  .module-two .m2-decision-heading { padding: 1rem 0; }
  .module-two .m2-tabs { width: 100%; }
  .module-two .m2-tabs button { flex: 1; padding: 0.65rem 0; }
  .module-two .m2-decision-content { padding: 1.1rem 0; gap: 1rem; }

  .module-two .m2-details-body { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .module-two a, .module-two button { transition: none; }
}

/* The complete schematic remains visible without JavaScript. */
.module-two .m2-animation-actors { display: none; pointer-events: none; }
.module-two .m2-system-figure.is-animated .m2-animation-actors { display: inline; }
.module-two .m2-system-figure.is-animated .m2-static-molecule { opacity: 0.12; }
.module-two .m2-system-figure[data-phase="production"] [data-m2-luxr-gene],
.module-two .m2-system-figure[data-phase="expression"] [data-m2-sfgfp-gene] { stroke: #3b7654; stroke-width: 3; }
.module-two .m2-system-figure[data-phase="promoter"] [data-m2-reporter-promoter],
.module-two .m2-system-figure[data-phase="expression"] [data-m2-reporter-promoter],
.module-two .m2-system-figure[data-phase="complete"] [data-m2-reporter-promoter] { stroke: #245f89; stroke-width: 16; }
.module-two .m2-system-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem; padding: 0.5rem 0; }
.module-two .m2-system-controls button { min-height: 40px; padding: 0.35rem 0.9rem; border: 1px solid var(--border-soft); border-radius: 0.35rem; background: transparent; color: var(--green-900); font: inherit; font-size: 0.82rem; }
.module-two .m2-system-controls button:hover { background: var(--green-100); }
.module-two .m2-animation-stage { margin-left: 0.35rem; color: var(--text-muted); font-size: 0.82rem; }

.module-two .m2-analysis h3 { margin: 1.3rem 0 0.5rem; color: var(--green-900); font-size: 1.2rem; }
.module-two .m2-analysis h3:first-child { margin-top: 0; }
