.fusion-article header { margin-bottom: 2.5rem; }
.reactor-render { margin: 2rem 0 3rem; }
.reactor-image { position: relative; }
.reactor-image img { display: block; width: 100%; height: auto; border-radius: 10px; }
.reactor-pin { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 1.65rem; height: 1.65rem; transform: translate(-50%, -50%); border: 1px solid #fff; border-radius: 50%; background: #14213c; color: #fff; font-size: 0.82rem; font-weight: 700; line-height: 1; box-shadow: 0 1px 5px #000a; }
.reactor-render figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.91rem; line-height: 1.5; }
.reactor-render figcaption p { margin-bottom: 0.9rem; }
.reactor-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; padding: 0; list-style: none; counter-reset: reactor-key; }
.reactor-key li { display: flex; gap: 0.5rem; margin: 0; }
.reactor-key li::before { content: counter(reactor-key); counter-increment: reactor-key; display: grid; flex: 0 0 1.3rem; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 13%, var(--background)); color: var(--accent); font-size: 0.72rem; font-weight: 700; line-height: 1; }
.reactor-key strong { color: var(--text); }
.fusion-article .lead { margin: 1.25rem 0 0; font-size: 1.2rem; line-height: 1.58; }
.fusion-contents { margin: 2rem 0; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--accent) 4%, var(--background)); }
.fusion-contents h2 { margin: 0 0 0.75rem; font: 600 1rem/1.4 system-ui, sans-serif; letter-spacing: 0; }
.fusion-contents ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.fusion-contents li { margin: 0; }
.fusion-contents a { display: inline-block; padding: 0.15rem 0; }
.fusion-article .fusion-back { margin: 0 0 1.2rem; font-size: 0.95rem; }
.fusion-article .fusion-detail-link { margin-top: 1.1rem; }
.fusion-article section { margin: 3rem 0; }
.fusion-article h2 { margin: 0 0 1rem; font: 400 clamp(1.65rem, 4vw, 2rem)/1.25 Georgia, "Times New Roman", serif; letter-spacing: -0.02em; }
.fusion-article h3 { margin: 1.7rem 0 0.6rem; font-size: 1.1rem; line-height: 1.4; }
.fusion-article p, .fusion-article ul, .fusion-article ol { margin: 0 0 1.1rem; }
.fusion-article li { margin-bottom: 0.45rem; }
.fusion-article sup { line-height: 0; }
.fusion-article .footnote-sparkle, .fusion-footnotes .ai-marker { font-size: 0.75em; }
.fusion-sequence { max-width: 32rem; margin: 2rem auto; }
.fusion-sequence img { display: block; width: 100%; height: auto; border-radius: 12px; }
.fusion-sequence figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.fusion-note { padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--background)); font-size: 0.98rem; }
.fusion-note p:last-child { margin-bottom: 0; }
.cycle-figure { position: relative; left: 50%; width: min(50rem, calc(100vw - 1rem)); transform: translateX(-50%); margin: 2rem 0; }
.cycle-diagram-wrap { position: relative; overflow: hidden; border-radius: 12px; background: #101d2c; }
.cycle-chart { display: block; width: 100%; height: auto; }
.cycle-interaction-hint { margin: 0 0 0.55rem !important; color: var(--muted); font-size: 0.9rem; }
.cycle-interaction-hint[hidden], .cycle-targets[hidden], .cycle-phases[hidden] { display: none; }
.cycle-phases { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0 0 0.75rem; color: var(--muted); font-size: 0.9rem; }
.cycle-phases button { min-width: 2.75rem; min-height: 2.75rem; padding: 0.25rem 0.65rem; border: 1px solid var(--line); border-radius: 6px; background: var(--background); color: var(--text); font: inherit; font-size: 1.35rem; line-height: 1.1; cursor: pointer; }
.cycle-phases button:hover, .cycle-phases button:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.cycle-targets { position: absolute; inset: 0; pointer-events: none; }
.cycle-target { position: absolute; left: var(--mobile-x); top: var(--mobile-y); width: max(44px, 15.28%); height: max(44px, 7.54%); padding: 0; transform: translate(-50%, -50%); border: 2px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; pointer-events: auto; }
.cycle-target:hover, .cycle-target:focus-visible { outline: 3px solid #fff; outline-offset: 2px; background: #ffffff18; }
@media (min-width: 42rem) { .cycle-target { left: var(--wide-x); top: var(--wide-y); width: max(44px, 11%); height: max(44px, 13.14%); } }
.cycle-figure figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.fusion-table-wrap { margin: 1.5rem 0; overflow-x: auto; }
.fusion-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fusion-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.fusion-table th, .fusion-table td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fusion-energy-wrap { position: relative; left: 50%; width: min(50rem, calc(100vw - 1rem)); transform: translateX(-50%); }
.fusion-energy-table { font-variant-numeric: tabular-nums; }
.fusion-energy-table caption { padding: 0 0 0.6rem; color: var(--muted); text-align: left; font-size: 0.9rem; }
.fusion-energy-table th:first-child { width: 50%; }
.fusion-energy-table td { text-align: right; white-space: nowrap; }
.fusion-energy-table thead th:not(:first-child) { text-align: right; }
.fusion-energy-table tbody th { color: var(--text); font-weight: 400; }
.fusion-energy-table .energy-subtotal th, .fusion-energy-table .energy-subtotal td { font-weight: 650; }
.fusion-energy-table .energy-total th, .fusion-energy-table .energy-total td { border-top: 2px solid var(--line); color: var(--text); font-weight: 700; }
.fusion-table th { color: var(--muted); font-weight: 600; }
.fusion-stage-wrap { position: relative; left: 50%; width: min(54rem, calc(100vw - 3.5rem)); transform: translateX(-50%); }
.fusion-stage-table { min-width: 45rem; table-layout: fixed; font-size: 0.9rem; }
.fusion-stage-table caption { padding: 0 0 0.6rem; color: var(--muted); text-align: left; font-size: 0.9rem; }
.fusion-stage-table .stage-col { width: 31%; }
.fusion-stage-table .mix-col { width: 33%; }
.fusion-stage-table .result-col { width: 36%; }
.fusion-stage-table .stage-name { color: var(--text); font-weight: 650; }
.fusion-stage-table .stage-detail { display: block; margin-top: 0.35rem; font-weight: 400; }
.fusion-component-table { min-width: 47rem; }
.fusion-component-table .component-name-col { width: 22%; }
.fusion-component-table .component-design-col { width: 33%; }
.fusion-component-table .component-score-col { width: 20%; }
.fusion-component-table .component-risk-col { width: 25%; }
.fusion-component-table tbody th { color: var(--text); }
.fusion-component-method { font-size: 0.92rem; line-height: 1.55; }
.fusion-component-method summary { color: var(--accent); cursor: pointer; }
.fusion-component-method[open] summary { margin-bottom: 0.8rem; }
.fusion-scroll-hint { display: none; color: var(--muted); font-size: 0.9rem; }
.fusion-research-list { padding-left: 1.4rem; }
.fusion-research-list li { margin-bottom: 1rem; }
@media (max-width: 50rem) { .fusion-scroll-hint { display: block; } }
.fusion-math { margin: 1.4rem 0; padding: 0.9rem 1.1rem; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--background)); overflow-x: auto; }
.fusion-math p { min-width: max-content; margin: 0; }
.fusion-article .fusion-footnotes, .fusion-article .fusion-sources { padding: 0; list-style: none; font-size: 0.95rem; line-height: 1.6; }
.fusion-article .fusion-footnotes li { padding-left: 2.9rem; text-indent: -2.9rem; margin-bottom: 1.3rem; }
.fusion-article .fusion-sources li { margin-bottom: 0.8rem; }
@media (max-width: 560px) {
  .fusion-contents ul { grid-template-columns: 1fr; }
  .fusion-article .lead { font-size: 1.08rem; }
  .reactor-key { grid-template-columns: 1fr; }
  .reactor-pin { width: 1.3rem; height: 1.3rem; font-size: 0.72rem; }
  .fusion-table { min-width: 34rem; }
  .fusion-energy-table { min-width: 0; font-size: 0.85rem; }
  .fusion-energy-table th, .fusion-energy-table td { padding: 0.6rem 0.35rem; }
  .fusion-stage-table { min-width: calc(150vw - 5.25rem); }
  .fusion-component-table { min-width: 42rem; }
  .fusion-stage-table .stage-col { width: 28%; }
  .fusion-stage-table .mix-col { width: 33.5%; }
  .fusion-stage-table .result-col { width: 38.5%; }
  .fusion-stage-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--background); box-shadow: 1px 0 var(--line); }
}

/* Article navigation and introduction */
.fusion-layout .fusion-sidebar { margin: 0 0 2rem; font-size: 0.88rem; line-height: 1.4; }
.fusion-sidebar-inner { display: flex; gap: 0.6rem 1rem; align-items: baseline; overflow-x: auto; padding: 0.5rem 0; }
.fusion-sidebar .sidebar-label { flex: none; margin: 0; color: var(--muted); font-weight: 700; white-space: nowrap; }
.fusion-sidebar ul { display: flex; flex: none; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.fusion-sidebar li { white-space: nowrap; }
.fusion-sidebar a { display: inline-block; padding: 0.3rem 0; }
.fusion-intro { display: flex; flex-direction: column; gap: 1.4rem; }
.fusion-intro-copy { order: 0; }
.fusion-intro .reactor-render { order: 1; margin: 0; }
.reactor-render > img { display: block; width: 100%; height: auto; border-radius: 10px; }
.fusion-article section.fusion-subtopic { margin-block: 2.2rem; }
.fusion-article .fusion-subtopic h3 { margin: 0 0 0.7rem; font: 400 1.35rem/1.3 Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }
@media (min-width: 52rem) {
  main.fusion-layout { max-width: 77rem; display: grid; grid-template-columns: 12rem minmax(0, 1fr); column-gap: 2rem; align-items: start; }
  .fusion-layout .page-header { grid-column: 1 / -1; }
  .fusion-layout .fusion-sidebar { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; }
  .fusion-sidebar-inner { display: block; overflow: visible; padding: 0; }
  .fusion-sidebar .sidebar-label { margin: 1.25rem 0 0.4rem; }
  .fusion-sidebar .sidebar-label:first-child { margin-top: 0; }
  .fusion-sidebar ul { display: block; }
  .fusion-sidebar li { white-space: normal; }
  .fusion-article > section { max-width: 44rem; margin-left: auto; margin-right: auto; }
  .fusion-layout .cycle-figure { width: min(50rem, 100%); }
  .fusion-intro { display: flow-root; }
  .fusion-intro .reactor-render { float: right; width: min(38%, 22rem); margin: 1.25rem 0 1rem 1.4rem; }
}

.reactor-render > img { cursor: zoom-in; }
.reactor-enlarge { display: inline-block; margin-top: 0.3rem; font-size: 0.85rem; }
.reactor-viewer { width: min(96vw, 100rem); max-width: none; max-height: 94vh; padding: 2.8rem 1rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--background); color: var(--text); }
.reactor-viewer::backdrop { background: rgb(0 0 0 / 0.86); }
.reactor-viewer img { display: block; max-width: 100%; max-height: calc(94vh - 4rem); width: auto; height: auto; margin: auto; }
.reactor-viewer-close { position: absolute; top: 0.4rem; right: 0.6rem; min-width: 2.25rem; min-height: 2.25rem; border: 1px solid var(--line); border-radius: 5px; background: var(--background); color: var(--text); font: 1.5rem/1 system-ui, sans-serif; cursor: pointer; }
.fusion-visuals { display: grid; gap: 1.5rem; margin: 2rem 0; }
.fusion-visuals figure { max-width: none; margin: 0; }
.fusion-scale img { display: block; width: 100%; height: auto; border-radius: 12px; }
.fusion-scale figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
@media (min-width: 42rem) { .fusion-visuals { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* Animated operating sequence */
.pulse-animation { margin: 2rem 0; }
.pulse-animation[hidden], .pulse-fallback[hidden] { display: none; }
.pulse-animation svg { display: block; width: 100%; height: auto; border-radius: 12px; background: #0e1b2b; }
.pulse-animation svg text { fill: #c9d9e7; font: 13px system-ui, sans-serif; }
.pulse-animation svg .pulse-helium { fill: #a9e8bc; font-weight: 700; }
@media (max-width: 38.99rem) { .pulse-animation svg text { font-size: 21px; } }
.pulse-launcher { stroke: #7898ae; stroke-width: 2; }
.pulse-port { fill: #b7d5e5; }
.pulse-packet { fill: #a6e4ff; }
.pulse-ejecta { fill: #ffcd83; }
.pulse-heat { fill: none; stroke: #ffb06c; stroke-width: 2; stroke-linecap: round; }
.pulse-controls { display: flex; align-items: stretch; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.pulse-controls button { border: 1px solid var(--line); background: var(--background); color: var(--text); border-radius: 5px; padding: .45rem .6rem; font: inherit; font-size: .85rem; cursor: pointer; }
.pulse-controls button.is-active { border-color: #62ade0; background: #183851; color: #f0f8ff; }
.pulse-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pulse-status { color: var(--muted); font-size: .9rem; }
.pulse-animation figcaption { margin-top: .65rem; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* The operating sequence follows the same timeline as the reactor. */
.pulse-visual-layout { display: grid; gap: 1rem; align-items: start; }
.pulse-sequence { padding: .25rem 0; color: var(--text); }
.fusion-article .pulse-sequence-title { margin: 0 0 .65rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fusion-article .pulse-steps { list-style: none; padding: 0; margin: 0; }
.fusion-article .pulse-steps li { margin: 0; }
.pulse-steps li + li::before { content: '↓'; display: block; color: #88bbdc; text-align: center; font-size: 1rem; line-height: 1.1; }
.pulse-steps button { position: relative; overflow: hidden; width: 100%; display: flex; gap: .6rem; align-items: baseline; text-align: left; border: 1px solid #49677c; border-radius: 7px; padding: .48rem .55rem; color: #e4f1f9; background: #192e40; font: inherit; cursor: pointer; }
.pulse-steps button::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--progress, 0%); background: #366788; opacity: 0; pointer-events: none; }
.pulse-steps button.is-active { border-color: #9ad9ff; box-shadow: 0 0 0 1px #9ad9ff; }
.pulse-steps button.is-active::before { opacity: .38; }
.pulse-steps button > span { position: relative; }
.pulse-steps button strong, .pulse-steps button small { display: block; }
.pulse-steps button strong { font-size: .9rem; line-height: 1.25; }
.pulse-steps button small { font-size: .75rem; line-height: 1.3; color: #c6dae8; margin-top: .15rem; }
.pulse-step-number { color: #88c5e8; font-weight: 700; font-size: .72rem; }
.pulse-steps button:hover { border-color: #9ad9ff; }
.pulse-steps button:focus-visible, .pulse-playback button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fusion-article .pulse-return { margin: .7rem 0; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.pulse-playback { display: flex; gap: .65rem; align-items: center; }
.pulse-playback button { border: 1px solid #789bb4; border-radius: 5px; padding: .35rem .65rem; background: transparent; color: var(--text); font: inherit; font-size: .8rem; cursor: pointer; }
.pulse-playback .pulse-status { color: var(--muted); font-size: .75rem; }
@media (min-width: 39rem) {
  .pulse-visual-layout { grid-template-columns: minmax(0, 1fr) minmax(13rem, 13.5rem); align-items: stretch; }
  .pulse-sequence { display: flex; flex-direction: column; }
  .fusion-article .pulse-steps { display: flex; flex: 1; flex-direction: column; }
  .fusion-article .pulse-steps li { display: flex; flex: 1; flex-direction: column; }
  .pulse-steps button { flex: 1; align-items: center; }
}

@media (min-width: 52rem) {
  .fusion-article .pulse-animation { position: relative; left: 50%; width: min(58rem, calc(100vw - 16rem)); transform: translateX(-50%); }
}
