/* Read the essentials, compare an example, then open only the detail you need. */
#modal > .sheet { width: min(850px, 100%); padding: 32px; scroll-padding-top: 54px; background: #10232d; }
#modal .guide-kicker { margin-bottom: 10px; color: #acc6c7; letter-spacing: .14em; }
#modal #modal-title { margin-bottom: 10px; font-size: 38px; letter-spacing: -.045em; }
#modal .guide-intro { margin: 0 48px 8px 0; color: #e2ebe5; font: 500 19px/1.45 var(--ui); }
#modal .guide-essentials { max-width: 65ch; margin: 0 0 26px; color: #b6c8cf; font: 14px/1.65 var(--ui); }
#modal .briefing-steps { gap: 22px; margin-bottom: 28px; }
#modal .briefing-steps article { padding: 0; border: 0; border-radius: 0; background: none; }
#modal .briefing-number { position: static; display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px; border: 1px solid #668584; border-radius: 50%; color: #c6e5d8; font: 12px var(--ui); }
#modal .briefing-steps h3 { font-size: 15px; margin: 0 0 7px; letter-spacing: -.01em; }
#modal .briefing-steps p { font-size: 13px; line-height: 1.6; color: #b2c6ce; }
#modal .briefing-steps b { color: #d4e7dc; font-size: 11px; letter-spacing: .035em; }
#modal .guide-example { overflow: hidden; border: 1px solid #39515b; border-radius: 12px; background: #0b1b25; }
.guide-example-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; padding: 19px 22px 12px; }
#modal .guide-example-heading h3 { margin: 0; color: #ebeee6; font: 600 16px/1.4 var(--ui); letter-spacing: -.015em; text-transform: none; }
.guide-example-heading > span { color: #a8bec8; font: 11px/1.5 var(--ui); }
.guide-outcomes { display: flex; gap: 4px; margin: 0 18px; padding: 4px; background: #142c36; border-radius: 7px; }
.guide-outcomes button { flex: 1; min-width: 0; min-height: 44px; border: 1px solid transparent; padding: 9px 12px; border-radius: 5px; font: 500 12px/1.4 var(--ui); color: #b9cbd2; background: none; cursor: pointer; }
.guide-outcomes button[aria-pressed="true"] { border-color: #5f817c; background: #29483f; color: #e3f1e7; }
[data-outcome="lost"] .guide-outcomes button[aria-pressed="true"] { border-color: #886967; background: #433337; color: #f4ded8; }
.guide-diagram { position: relative; margin: 0 12px; padding: 9px 0 0; }
.guide-diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.guide-diagram path { fill: none; stroke-linecap: round; }
.guide-waterline { stroke: #253f4e; }
.guide-route { stroke: #88b5b7; stroke-width: 2; }
.guide-after-exit { stroke: #596e7b; stroke-width: 2; stroke-dasharray: 4 6; }
.guide-start { fill: #91bdc6; }
.guide-exit { fill: #b5e6c7; stroke: #0b1b25; stroke-width: 5; }
.guide-breach { stroke: #e6a393; stroke-width: 2; }
.guide-diagram text { fill: #dfebe9; font: 600 17px var(--ui); }
.guide-diagram text.guide-label { fill: #b2c6cf; font: 12px var(--ui); }
.guide-diagram #guide-sub-art { position: absolute; width: 25%; height: auto; left: 24%; top: 8%; pointer-events: none; }
[data-outcome="lost"] .guide-exit { fill: #8babb5; }
[data-outcome="lost"] .guide-after-exit { stroke-dasharray: none; }
#guide-example-result { padding: 12px 22px 0; }
.guide-equation { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 0 0; border-top: 1px solid #30444e; }
.guide-equation > span { display: flex; flex-direction: column; gap: 6px; }
.guide-equation small { color: #aac0c9; font: 11px/1.4 var(--ui); }
.guide-equation b { color: #e9eee6; font: 500 25px/1.2 var(--ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-equation em { color: #b8ced0; font: normal 10px var(--ui); }
.guide-equation .guide-return b { color: #b5e6c7; }
[data-outcome="lost"] .guide-return b { color: #efb1a3; }
.guide-equation .guide-operator { color: #74929f; }
#modal .guide-result-caption { margin: 15px 0 0; min-height: 42px; color: #bed0d5; font: 13px/1.6 var(--ui); }
#modal .guide-example-note { margin: 10px 22px 18px; color: #9eb5c1; font: 11px/1.6 var(--ui); }
#modal .guide-key-note { margin: 17px 0; color: #afc4cc; font: 12px/1.65 var(--ui); }
.guide-finish { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 27px; }
#guide-done { min-height: 44px; padding: 10px 18px; font: 600 13px var(--ui); background: #c2e1d4; border-color: #c2e1d4; color: #15352b; box-shadow: none; }
#guide-done span { margin-left: 18px; }
.guide-finish a { display: inline-flex; align-items: center; min-height: 44px; color: #c4d7dc; font-size: 12px; text-underline-offset: 4px; }
#modal .guide-more-heading { margin: 4px 0 13px; color: #a7bfc9; font: 400 13px/1.5 var(--ui); text-transform: none; letter-spacing: 0; }
.guide-detail { border-top: 1px solid #35505c; scroll-margin-top: 54px; }
.guide-detail summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 15px 0; padding-right: 48px; color: #d5e2e3; font: 500 14px/1.5 var(--ui); cursor: pointer; list-style: none; scroll-margin-top: 52px; }
.guide-detail summary::-webkit-details-marker { display: none; }
.guide-detail summary span { font: 300 20px var(--ui); color: #94b7c3; }
.guide-detail[open] > summary span { transform: rotate(45deg); }
#modal .guide-detail summary:focus-visible { outline: 2px solid #b4dfcf; outline-offset: -2px; border-radius: 5px; }
#modal .guide-detail-body { padding: 0 0 22px; }
#modal .guide-detail-body .guide-section { margin: 0; padding: 0; border: 0; }
#modal .guide-detail-body p { color: #b9cbd3; font-size: 13px; line-height: 1.75; }
#modal .guide-detail-body .facts { margin-bottom: 20px; }
#modal .guide-detail-body .facts li { gap: 15px; }
#modal .guide-detail-body .facts b { overflow-wrap: anywhere; text-align: right; }
#modal .guide-detail-body .ocean-field-guide { margin-top: 0; }
#modal .guide-support p { margin: 15px 0 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  #modal > .sheet { padding: 24px 18px; }
  #modal #modal-title { font-size: 32px; }
  #modal .guide-intro { margin-right: 0; font-size: 17px; }
  #modal .guide-essentials { font-size: 13px; margin-bottom: 21px; }
  #modal .briefing-steps { gap: 16px; margin-bottom: 23px; }
  #modal .briefing-steps article { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; }
  #modal .briefing-number { grid-row: 1 / 3; margin: 0; }
  #modal .briefing-steps h3 { grid-column: 2; margin-bottom: 3px; }
  #modal .briefing-steps p { grid-column: 2; }
  .guide-example-heading { padding: 16px 14px 12px; }
  #modal .guide-example-heading h3 { font-size: 15px; }
  .guide-outcomes { margin-inline: 10px; }
  .guide-outcomes button { padding: 8px 6px; font-size: 12px; }
  .guide-diagram { margin: 9px 0; }
  .guide-diagram text { font-size: 30px; }
  .guide-diagram text.guide-label { font-size: 22px; }
  #guide-example-result { padding: 0 14px; }
  .guide-equation { gap: 5px; }
  .guide-equation b { font-size: 21px; }
  .guide-equation em { display: block; margin-top: 4px; }
  .guide-equation small { font-size: 10px; }
  #modal .guide-result-caption { min-height: 63px; font-size: 12px; }
  #modal .guide-example-note { margin-inline: 14px; }
  .guide-finish { gap: 9px; }
  #guide-done { padding-inline: 12px; }
  #guide-done span { margin-left: 8px; }
  .guide-detail summary { font-size: 13px; }
}
