/* The War Hall figure is also inserted when following a guide link from the archive. */
body[data-atlas] #main .bd-reader {
  --bd-line:#36515b; --bd-ink:#e4eeee; --bd-body:#c2d2d3; --bd-accent:#a8dcd0;
  container:base-reader / inline-size;
}
#main .bd-reader .bd-path {display:block; box-sizing:border-box; margin:.8rem 0 1.25rem; padding:clamp(.8rem,2.2vw,1.15rem); border:1px solid var(--bd-line); border-radius:.65rem; background:#14272f}
#main .bd-reader .bd-path figcaption {margin:0; padding:0; text-align:start; color:var(--bd-ink)}
#main .bd-reader .bd-path figcaption h2 {margin:0; font:650 1rem/1.4 system-ui,sans-serif; color:var(--bd-ink)}
#main .bd-reader .bd-path ol {display:grid; gap:0; padding:0; margin:.45rem 0 0; list-style:none}
#main .bd-reader .bd-path li {position:relative; display:grid; grid-template-columns:1.8rem minmax(0,1fr); column-gap:.58rem; margin:0; padding:.55rem 0; align-content:start; border:0}
#main .bd-reader .bd-path li+li {border-top:1px solid #2d434d}
#main .bd-reader .bd-path li:last-child {padding-bottom:.06rem}
#main .bd-reader .bd-path strong {color:var(--bd-ink); font:650 .89rem/1.45 system-ui,sans-serif}
#main .bd-reader .bd-path .bd-action {display:block; grid-column:2; color:var(--bd-body); font:400 .86rem/1.48 system-ui,sans-serif}
#main .bd-reader .bd-mark {display:grid; place-items:center; align-self:start; grid-row:span 2; width:1.7rem; height:1.7rem; border-radius:.4rem; border:1px solid #406168; color:#a4d7c9; background:#193239; box-sizing:border-box}
#main .bd-reader .bd-mark i {position:relative; display:block; font-size:1rem; width:1em; height:1em; box-sizing:border-box}
#main .bd-reader .bd-mark i::before,#main .bd-reader .bd-mark i::after {position:absolute; content:""; box-sizing:border-box}
#main .bd-reader .bd-person::before {border:1.5px solid; border-radius:50%; width:.43em; height:.43em; top:0; left:.29em}
#main .bd-reader .bd-person::after {border:1.5px solid; border-bottom:0; border-radius:.45em .45em 0 0; width:.84em; height:.43em; bottom:.07em; left:.08em}
#main .bd-reader .bd-units::before {width:.34em; height:.34em; top:.11em; left:.32em; background:currentColor; box-shadow:-.24em .47em currentColor,.24em .47em currentColor}
#main .bd-reader .bd-formation::before {width:.32em; height:.32em; top:.09em; left:.09em; border:1px solid; box-shadow:.50em 0 currentColor,0 .50em currentColor,.50em .50em currentColor}
#main .bd-reader .bd-order::before {width:.78em; height:.12em; top:.18em; left:.12em; background:currentColor; box-shadow:0 .27em currentColor,0 .54em currentColor}
#main .bd-reader .bd-path li:nth-child(n+3) .bd-mark {border-color:#64573f; color:#e5c991; background:#302e29}
#main .bd-reader :is(.bd-rules,.bd-report) {margin:1.15rem 0; padding:0; min-width:0}
#main .bd-reader :is(.bd-rules,.bd-report) h2, #main .bd-reader .bd-related h2 {margin:0 0 .4rem; font:650 1.05rem/1.38 system-ui,sans-serif; color:var(--bd-ink)}
#main .bd-reader .bd-rules dl {margin:.3rem 0 .6rem}
#main .bd-reader .bd-rules dl div {padding:.55rem 0; border-bottom:1px solid var(--bd-line)}
#main .bd-reader .bd-rules dt, #main .bd-reader .bd-report h3 {font:620 .89rem/1.45 system-ui,sans-serif; color:var(--bd-ink); margin:0}
#main .bd-reader :is(.bd-rules dd,.bd-report p,.bd-rules p) {margin:.12rem 0 0; color:var(--bd-body); font:400 .875rem/1.55 system-ui,sans-serif; max-width:72ch; overflow-wrap:anywhere}
#main .bd-reader .bd-report p+p {margin-top:.5rem}
#main .bd-reader .bd-report h3 {margin-top:.7rem}
#main .bd-reader .bd-related {margin:1rem 0 .45rem}
#main .bd-reader .bd-links {display:flex; flex-wrap:wrap; align-items:start; gap:0 1rem; margin:0}
#main .bd-reader .bd-links a {display:inline-flex; align-items:center; min-height:44px; box-sizing:border-box; min-width:0; max-width:100%; overflow-wrap:anywhere; padding:.2rem 0; color:var(--bd-accent); font:570 .84rem/1.45 system-ui,sans-serif; background:none; text-underline-offset:.2em}
#main .bd-reader :is(#share,#prepare,#sources) {max-width:100%; box-sizing:border-box}
#main .bd-reader :is(#share,#prepare,#sources) summary {min-height:44px; box-sizing:border-box; overflow-wrap:anywhere; font-size:.9rem}
#main .bd-reader #prepare .event-check {display:flex; align-items:center; gap:.6rem; min-height:44px; font:400 .86rem/1.45 system-ui,sans-serif; overflow-wrap:anywhere}
#main .bd-reader #prepare input {flex:none}
#main .bd-reader .bd-share-fields {display:grid; gap:.7rem; padding:.5rem 0 0}
#main .bd-reader .bd-share-fields label {display:block; font:600 .85rem/1.4 system-ui,sans-serif}
#main .bd-reader .bd-share-fields :is(input,textarea) {display:block; width:100%; max-width:100%; min-width:0; min-height:44px; box-sizing:border-box; margin:.25rem 0 .3rem; padding:.45rem .55rem; font:400 1rem/1.45 system-ui,sans-serif; border:1px solid #45616e; border-radius:.35rem; background:#10212a; color:var(--bd-ink)}
#main .bd-reader .bd-share-fields textarea {resize:vertical}
#main .bd-reader .bd-share-fields button:not([hidden]) {display:inline-flex; align-items:center; min-height:44px; padding:.3rem .65rem; border:1px solid #47616e; border-radius:.35rem; color:var(--bd-accent); background:#1a313a; font:600 .84rem/1.45 system-ui,sans-serif}
#main .bd-reader .bd-share-fields [role=status]:empty {display:none}
#main .bd-reader .bd-share-fields [role=status] {margin:0; color:var(--bd-body); font-size:.86rem}
#main .bd-reader .bd-alias {display:block; height:0}
#main .bd-reader :is(#overview,#play,#scoring,#rewards,#player-tips) {scroll-margin-block-start:calc(var(--hq-reader-head,0px) + var(--hq-reader-summary,48px) + 12px)}
@container base-reader (min-width:34rem) {
 #main .bd-reader .bd-path ol {grid-template-columns:1fr 1fr; gap:0 1.4rem}
 #main .bd-reader .bd-path li:nth-child(2) {border-top:0}
 #main .bd-reader .bd-path li:nth-child(3) {padding-bottom:.06rem}
}

@container base-reader (max-width:18rem) {
  #main .bd-reader .bd-path {padding:10px}
  #main .bd-reader .bd-path li {grid-template-columns:28px minmax(0,1fr); gap:4px 8px}
  #main .bd-reader .bd-path strong {align-self:center}
  #main .bd-reader .bd-mark {grid-row:1; width:28px; height:28px}
  #main .bd-reader .bd-mark i {font-size:16px}
  #main .bd-reader .bd-path .bd-action {grid-column:1 / -1}
}
