:root{color-scheme:light;--paper:#f8f5ee;--white:#fffdf7;--ink:#1c2926;--muted:#4e6059;--teal:#15594f;--dark:#123d36;--line:#d8d9cd;--tan:#f0e4d2;--brick:#9e4a37;--amber:#f2c992;--serif:Georgia,"Times New Roman",serif;--sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--mono:ui-monospace,SFMono-Regular,monospace}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:2.25rem}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 var(--sans)}
button{font:inherit}
a{color:var(--teal);text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid #a6512f;outline-offset:3px}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:fixed;top:1rem;left:1rem;z-index:4;background:var(--white);padding:.6rem 1rem}
.wrap{max-width:1168px;padding-inline:clamp(18px,4vw,36px);margin:auto}
.site-header{background:var(--white);border-bottom:1px solid var(--line)}
.masthead{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:.8rem 1.8rem}
.wordmark{display:flex;align-items:center;gap:.65rem;color:var(--ink);text-decoration:none;font:700 1.1rem var(--serif);white-space:nowrap}
.masthead nav,.footer-grid nav{display:flex;gap:clamp(.65rem,3vw,1.75rem);align-items:center;flex-wrap:wrap}
.masthead nav a{color:var(--ink);text-decoration:none;font-size:.91rem;font-weight:650}
.masthead nav a:hover,.masthead nav a[aria-current]{color:var(--teal);text-decoration:underline}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-family:var(--serif);line-height:1.08}
h1{font-size:clamp(2.65rem,7vw,5.2rem);letter-spacing:-.057em;margin-bottom:1rem}
h2{font-size:clamp(1.75rem,4vw,2.7rem);letter-spacing:-.04em;margin-bottom:.85rem}
h3{font-size:1.5rem;margin:1.65rem 0 .65rem}
p{margin-bottom:1rem}
.eyebrow{font:650 .7rem/1.4 var(--mono);letter-spacing:.12em;color:var(--teal);margin-bottom:.7rem}
.lead{font-size:clamp(1.05rem,2.5vw,1.29rem);line-height:1.55;color:var(--muted);max-width:55ch}
.actions{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}
.button{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;padding:.54rem 1rem;min-height:44px;border:1px solid var(--teal);background:var(--teal);color:#fff;cursor:pointer;font-size:.89rem;font-weight:725;text-decoration:none;line-height:1.35}
.button:hover{background:var(--dark);color:white;text-decoration:none}
.button.secondary{background:transparent;color:var(--teal)}
.button.secondary:hover{background:#e3ede6}
.home-hero{display:grid;grid-template-columns:1.13fr .87fr;align-items:center;gap:clamp(1.75rem,6vw,5rem);padding-block:clamp(2.35rem,7vw,6rem) clamp(2.65rem,6vw,5.5rem)}
.hero-copy h1{max-width:10ch}
.resume{display:inline-block;margin-top:.8rem}
.hero-practice{min-width:0;padding:clamp(1rem,3vw,1.7rem);background:var(--dark);color:#fffdf7;border-radius:15px;box-shadow:0 12px 30px #1c292629}
.hero-practice-top{display:flex;justify-content:space-between;align-items:center;gap:.45rem;padding-bottom:.75rem;border-bottom:1px solid #ffffff49;font:600 .68rem/1.45 var(--mono);letter-spacing:.06em;color:#e6d5b9}
.hero-practice .question{font:700 clamp(1.55rem,4vw,2.1rem)/1.1 var(--serif);margin-top:1.05rem}
.hero-practice .scenario{font-size:.92rem;color:#e6eee8}
.hero-practice .drill-next,.hero-practice .answer-reveal summary,.hero-practice .feedback,.hero-practice .button.secondary{color:#fff6e7}
.hero-practice .button.secondary{border-color:#bcd4c9}
.hero-practice .button.secondary:hover{background:#2b685e}
.hero-practice :focus-visible{outline-color:#fbd196}
.hero-practice .feedback:not(:empty){background:#264d43}
.drill-next{display:inline-block;margin-top:.6rem;font-size:.88rem;font-weight:650}
.home-main>.chapter{padding-block:1.45rem 2.1rem;margin:0;border-top:1px solid var(--line)}
.home-main>.chapter>p{max-width:65ch}
.feature-card,.task-card{display:flex;position:relative;gap:1rem;align-items:center;text-decoration:none;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:10px;padding:1rem 1.15rem;line-height:1.45}
.feature-card:hover,.task-card:hover{border-color:var(--teal);background:#f4faf4}
.feature-icon{background:var(--teal);color:white;border-radius:8px;display:grid;place-items:center;width:54px;height:54px;flex:none;font-size:1.55rem}
.feature-card strong,.task-card strong{font:700 1.22rem/1.15 var(--serif);display:block}
.feature-card span span,.task-card>span:not(.eyebrow){display:block;margin-top:.35rem;font-size:.9rem;color:var(--muted)}
.feature-card b,.task-card b{margin-left:auto;color:var(--teal)}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.task-card{display:block;padding:1.1rem 2rem 1.15rem 1rem}
.task-card b{position:absolute;top:1rem;right:.65rem}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:.2rem .5rem;font-size:.8rem;color:var(--muted);padding-top:1.05rem}
.article-intro{padding-block:clamp(1.75rem,5vw,4rem) 2.1rem;border-bottom:1px solid var(--line)}
.article-intro h1{max-width:16ch;font-size:clamp(2.65rem,6.6vw,4.9rem)}
.article-layout{display:grid;grid-template-columns:176px minmax(0,1fr);gap:clamp(.75rem,3vw,2rem);padding-top:1.85rem}
.article-layout:not(:has(.toc)){grid-template-columns:minmax(0,1fr)}
.article-body{min-width:0}
.toc nav{position:sticky;top:1rem;padding-bottom:1rem}
.toc nav a{display:block;padding:.42rem .15rem;font-size:.87rem;line-height:1.35;text-decoration:none}
.toc nav a:hover{text-decoration:underline}
.article-body>section,.article-body>.map,.article-body>.facts{margin-bottom:2.55rem}
.chapter>p,.article-body>p,.formation>p,.sources{max-width:68ch}
.muted,.scenario,figcaption{color:var(--muted)}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:0}
.facts>div{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:.7rem .8rem}
.facts dt{font-size:.75rem;font-weight:750;color:var(--teal)}
.facts dd{margin:.1rem 0 0;overflow-wrap:anywhere}
.map{display:flex;gap:1rem;align-items:flex-end;margin:1rem 0 1.3rem}
.map-grid{display:grid;grid-template-columns:repeat(10,1fr);aspect-ratio:1;width:min(55%,252px);flex:none;gap:2px;background:var(--line);border:1px solid var(--line)}
.map-grid>span{background:var(--white)}
.map-grid .top-zone{background:#e7bbad}
.map-grid .own-zone{background:#a1c3ae}
.map-grid .lake{background:#2d5e75}
.map figcaption{max-width:300px}
figcaption,.legend,.muted{font-size:.88rem}
.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:var(--white);margin-bottom:1rem}
table{border-collapse:collapse;width:100%;font-size:.9rem;line-height:1.45}
caption{text-align:left;padding:.6rem .75rem;font-weight:650}
th,td{padding:.55rem .65rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
thead th{background:#e6eee6;color:var(--dark)}
tbody tr:last-child>*{border-bottom:0}
.platform-comparison table{min-width:750px}
.mobile-label{display:none}
.callout,.sources{background:var(--white);border:1px solid var(--line);border-radius:9px;padding:1rem 1.15rem}
.sources h2{margin-top:0}
.sources{overflow-wrap:anywhere}
.drills{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.drills>li{min-width:0;background:var(--white);border:1px solid var(--line);border-radius:8px;padding:.8rem .9rem}
.drill .question{margin-bottom:.45rem}
.drill .scenario{margin-bottom:.55rem;font-size:.89rem}
.drill .feedback{margin:.55rem 0;padding:.4rem .55rem;background:#e6eee6;border-radius:5px;font-size:.9rem}
.drill .feedback[data-correct=false]{border-left:3px solid var(--brick)}
.feedback:empty,.board-status:empty,[data-cleared]:empty{margin:0;padding:0}
.answer-reveal{font-size:.87rem}
.answer-reveal summary{cursor:pointer;color:var(--teal);width:fit-content}
.answer-reveal p{margin:.35rem 0 .5rem}
.progress-tools{display:flex;gap:.65rem;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:.7rem}
.progress-tools p{margin:0}
.text-button{border:0;background:none;text-decoration:underline;cursor:pointer;color:var(--teal);padding:.4rem 0}
.plot{display:grid;place-items:center;background:var(--tan);width:clamp(36px,10vw,60px);aspect-ratio:1;border:1px solid #c9b69e;border-radius:5px}
.plot.opposing{background:#ecd2c2}
.diagram{display:flex;gap:.35rem;margin:.75rem 0}
.chip{display:grid;place-items:center;min-width:1.1em;padding:.05em .18em;border-radius:4px;background:#2f6657;color:white;font:750 .88rem/1.4 var(--mono);pointer-events:none}
.plot .chip{font-size:1.13rem;min-width:1.55em;aspect-ratio:1}
.chip-bomb,.chip-enemy{border-radius:50%;background:#863e30;color:#fff}
.chip-flag{background:#794812;color:white;border-radius:2px}
.chip-empty{background:none;color:var(--ink)}
.editor,.formation{margin:1rem 0;background:var(--white);border:1px solid var(--line);padding:clamp(.4rem,2vw,1.15rem);border-radius:10px}
.editor-head h2{margin-bottom:.5rem}
.editor-head p,.board-status{margin:.35rem 0}
.preset-buttons{display:flex;flex-wrap:wrap;gap:.4rem;margin:.75rem 0}
.preset-buttons button{min-height:44px;border:1px solid var(--teal);background:transparent;color:var(--teal);border-radius:6px;padding:.35rem .65rem;cursor:pointer;font-size:.84rem;font-weight:650}
.preset-buttons button[aria-pressed=true]{background:var(--teal);color:white}
.board-direction{font:650 .7rem/1.5 var(--mono);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:1rem 0 .4rem}
.board-back{margin:.4rem 0}
.setup-coach{margin:.75rem 0;padding:.6rem .85rem;border-inline-start:3px solid var(--teal);background:#edf2ea}
.setup-coach p{margin:.25rem 0}
.setup-coach ul{margin:.25rem 0 .7rem;padding-inline-start:1.25rem}
.setup-coach .example{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem}
.setup-coach button:disabled{cursor:default;opacity:.55}
.board tbody td.key-square{box-shadow:inset 0 -3px var(--teal)}
.board tbody td.example-square{box-shadow:inset 0 0 0 2px var(--brick)}
.position-study{max-width:525px;margin:1.15rem 0;padding:.85rem 1rem;background:var(--white);border:1px solid var(--line);border-radius:8px}
.position-states{display:flex;align-items:center;gap:clamp(.45rem,2vw,1rem);margin-top:.6rem}
.position-state .diagram{margin:.25rem 0 .55rem}
.position-state>strong{font-size:.75rem;color:var(--muted)}
.board{table-layout:fixed;max-width:615px;background:var(--line);border-collapse:separate;border-spacing:1px}
.board td,.board th{border:0;padding:0;text-align:center;vertical-align:middle}
.board th,.board thead td{background:#e6eee6;color:var(--dark);font:700 .69rem/1.3 var(--mono);padding:.31rem 0}
.board tbody td{background:var(--tan);height:clamp(24px,6vw,50px)}
.board tbody .chip{display:inline-grid;min-width:1.35em}
.board tbody td:nth-child(odd){background:#f7ead8}
.cell-button{width:100%;height:100%;min-height:inherit;display:block;border:0;background:transparent;cursor:pointer;padding:0}
.cell-button:disabled{opacity:1;cursor:default}
.cell-button[aria-pressed=true]{background:#ffcd84;box-shadow:inset 0 0 0 2px #884811}
.cell-button:focus-visible{position:relative;z-index:1;outline-offset:-2px}
.legend{margin:.65rem 0}
.static-formation{margin:.5rem 0 .8rem}
.static-formation figcaption{margin-top:.4rem}
.site-footer{margin-top:2rem;border-top:1px solid var(--line);background:var(--white);padding:1.6rem 0}
.footer-grid{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap}
.footer-brand{color:var(--ink);font:700 1.2rem var(--serif)}
.footer-grid p{margin:.35rem 0 0;max-width:56ch;font-size:.82rem;color:var(--muted)}
.consent{max-width:1168px;margin:1rem auto;padding:.8rem 1rem;border:1px solid var(--line);background:var(--white);border-radius:8px}
.consent p{margin-bottom:.5rem}
@media(max-width:850px){
  .platform-comparison{border:0;background:none;overflow:visible}
  .platform-comparison table{min-width:0;display:block}
  .platform-comparison thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .platform-comparison tbody{display:grid;gap:.75rem}
  .platform-comparison tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 .6rem;background:var(--white);border:1px solid var(--line);border-radius:9px;padding:.65rem}
  .platform-comparison td,.platform-comparison th{border:0;overflow-wrap:anywhere;padding:.4rem}
  .platform-comparison tbody th{grid-column:1/-1;font-size:1.05rem}
  .mobile-label{display:block;font-size:.72rem;font-weight:750;color:var(--teal)}
}
@media(max-width:700px){.home-hero,.article-layout{grid-template-columns:minmax(0,1fr)}.masthead{align-items:flex-start;flex-direction:column;gap:.45rem;padding-block:.7rem}.masthead nav{gap:.55rem 1.2rem}.masthead nav a{padding:.25rem 0}.hero-copy h1{max-width:14ch}.toc nav{position:static;display:flex;overflow-x:auto;gap:1rem;align-items:center;padding-bottom:.4rem}.toc .eyebrow{display:none}.toc a{white-space:nowrap}.cards{grid-template-columns:minmax(0,1fr)}.article-layout{gap:1rem}.article-intro{padding-bottom:1.35rem}.drills{grid-template-columns:minmax(0,1fr)}}
@media(max-width:375px){.board th{font-size:.58rem}.board .chip{font-size:.66rem}.hero-practice-top{font-size:.57rem}.button{padding-inline:.7rem}.map{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{
  @page{margin:13mm}
  *{color:#000!important;box-shadow:none!important}
  body{background:white;font-size:10pt}
  .site-header,.site-footer,.breadcrumbs,.toc,.actions,.consent,.skip,.hero-practice-top,.preset-buttons,.progress-tools,.board-status,.drill-next,.resume{display:none!important}
  .article-layout{display:block;padding:0}
  .article-intro{padding:0 0 10pt}
  .wrap{max-width:none;padding:0}
  h1{font-size:24pt}h2{font-size:16pt}
  .static-formation,.editor-print,.rank-sheet{break-inside:avoid;overflow:visible}
  .rank-table td,.rank-table th{padding:2pt 5pt}
  .board{max-width:175mm}
  .board tbody td{height:10mm}
  .board .chip{background:none!important;border:1px solid #444}
  body[data-print=setup] .article-intro,body[data-print=setup] .article-body>*:not(.editor),body[data-print=setup] .editor-head p:not(.eyebrow),body[data-print=setup] [data-board-help],
  body[data-print=rank] .article-intro,body[data-print=rank] .article-body>*:not(#ranks),body[data-print=rank] #ranks>p{display:none!important}
  .editor{border:0}
  .setup-coach{display:none}
  .board tbody td.key-square,.board tbody td.example-square{box-shadow:none}
}
