.deck-shadow {
  padding-block: clamp(24px, 4vw, 58px);
  border-top: 1px solid #c5d6cf;
  scroll-margin-top: 6rem;
}
.deck-shadow > header { position: static; background: transparent; color: #163e45; box-shadow: none; margin-bottom: 1.25rem; }
.deck-shadow h2 { margin: 0 0 .45rem; font: 500 clamp(2rem, 4vw, 3.8rem)/1.05 Georgia, serif; letter-spacing: -.045em; color: #123942; }
.deck-shadow header p { margin: 0; max-width: 66ch; line-height: 1.55; }
.shadow-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); gap: clamp(18px, 3vw, 44px); align-items: start; }
.shadow-layout[hidden] { display: none; }
.shadow-plan { margin: 0; border-radius: 12px; overflow: hidden; background: #102d37; color: #f6faf4; }
.shadow-plan canvas { display: block; width: 100%; height: auto; aspect-ratio: 600 / 320; }
.shadow-plan figcaption { display: flex; flex-wrap: wrap; gap: .65rem 1.15rem; padding: .9rem 1.15rem; border-top: 1px solid #38545b; line-height: 1.35; font-size: .94rem; }
.shadow-key { display: inline-flex; gap: .4rem; align-items: center; }
.shadow-paths { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; flex-basis: 100%; }
.shadow-paths[hidden] { display: none; }
.shadow-paths span { display: inline-flex; align-items: center; gap: .45rem; }
.shadow-paths span::before { content: ''; width: 1.3rem; border-top: 3px solid #ffe09b; }
.shadow-paths span + span::before { border-top: 2px dashed #e7eff0; }
.shadow-key b { display: inline-grid; place-items: center; border-radius: 50%; width: 1.4rem; height: 1.4rem; background: #eaf4ed; color: #12333d; }
.shadow-console fieldset { min-width: 0; border: 0; margin: 0 0 1.1rem; padding: 0; }
.shadow-console legend { padding: 0; margin: 0 0 .55rem; font-weight: 700; font-size: 1.03rem; color: #173e44; }
.shadow-console fieldset > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.shadow-console button { min-height: 44px; padding: .48rem .85rem; border: 1px solid #77958c; border-radius: 6px; background: #fff; color: #183e42; font: inherit; line-height: 1.3; cursor: pointer; }
.shadow-console button[aria-pressed=true] { background: #174f50; border-color: #174f50; color: white; }
.shadow-console button:focus-visible, .shadow-sheet:focus-visible { outline: 3px solid #ad5a11; outline-offset: 3px; }
.shadow-result p:empty { display: none; }
.shadow-result p { margin: 0 0 .6rem; padding: .78rem .95rem; line-height: 1.5; color: #1b4542; background: #e6f1e9; border-left: 3px solid #23736a; }
.shadow-note { max-width: 80ch; color: #42595a; font-size: .96rem; line-height: 1.55; margin: 1rem 0 .35rem; }
.shadow-sheet, .deck-shadow-jump { display: inline-block; padding-block: .65rem; font-weight: 650; color: #165c58; text-decoration: underline; text-underline-offset: .2em; }
.deck-intro .deck-shadow-jump { color: #d7fff0; }
.deck-intro figcaption a { color: inherit; }
@media (max-width: 760px) { .shadow-layout { grid-template-columns: minmax(0, 1fr); } }
