/* Santajaay Artillery Field Maps: original 18 interactive maps, mobile-first presentation */
:root{color-scheme:dark;--sj-bg:#101f17;--sj-panel:#1c3023;--sj-line:#506a53;--sj-ink:#f6f1e3;--sj-muted:#c5d4c4;--sj-gold:#e6cc88}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--sj-bg);color:var(--sj-ink);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-text-size-adjust:100%}
main.sja-artillery-map{width:min(100%,1040px);margin:0 auto;padding:16px 15px 52px;min-width:0}
a{color:var(--sj-gold)}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid #cbe7ed;outline-offset:3px}
.map-topbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 13px}
.map-return{font-size:12px;font-weight:750;color:#f1dca7;text-decoration:none;padding:7px 0}
.map-return:hover{text-decoration:underline}
.map-topbar-tag{font-size:10px;letter-spacing:.12em;font-weight:800;color:#aabca9}
.map-heading{margin:0 0 15px}
.map-kicker{font-size:10px;letter-spacing:.11em;font-weight:850;color:#e8cf8d;margin:0 0 5px}
.map-heading h1{font-size:clamp(22px,3.4vw,30px);font-weight:850;line-height:1.15;letter-spacing:-.02em;margin:0 0 9px;color:#f8f0dc}
.map-intro{max-width:800px;margin:0;color:#cfddcf;font-size:13px;line-height:1.6}
.map-workspace{border:1px solid #59715a;border-radius:11px;overflow:hidden;background:#16291d;box-shadow:0 5px 19px #06110933;min-width:0}
.map-primary{padding:11px 12px 9px;background:#1b3425}
.map-control-label{display:block;color:#cabb8e;font-size:9px;font-weight:850;letter-spacing:.13em;margin:0 0 7px}
.tool-row{display:grid;gap:8px}
.tool-row button{appearance:none;min-width:0;min-height:40px;padding:8px 9px;border:1px solid #6a826b;border-radius:7px;background:#274030;color:#f0f0e5;line-height:1.2;font:750 12px/1.25 system-ui,sans-serif;cursor:pointer;white-space:normal;transition:background-color .15s,border-color .15s}
.tool-row button:hover:not(:disabled){border-color:#e3cc93;background:#35503a}
.tool-row button[aria-pressed="true"]{background:var(--sj-gold);border-color:var(--sj-gold);color:#17281d}
.tool-row button:disabled{opacity:.38;cursor:not-allowed}
.tool-row .calc{background:#2d5138;border-color:#87a38a}
.map-primary .tool-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.map-visual{background:#15291e;padding:0}
.map-scroll{overflow:auto;max-height:min(76vh,780px);border:0;background:#253c2c;overscroll-behavior-x:contain;position:relative}
.map-scroll svg{display:block;width:100%;height:auto;min-width:0;user-select:none}
.map-scroll.marking svg{touch-action:pan-y;cursor:crosshair}
.map-scroll:not(.marking) svg{touch-action:pan-x pan-y;cursor:grab}
.user-map-mark{cursor:move;pointer-events:all;touch-action:none}
.map-legend{display:flex;gap:9px 16px;flex-wrap:wrap;align-items:center;padding:10px 13px;border-top:1px solid #4b6250;background:#1c3223}
.map-legend-item{display:inline-flex;gap:6px;align-items:center;font-size:11px;font-weight:700;color:#e6eadf}
.map-legend-dot{width:10px;height:10px;flex:none;display:inline-block;border-radius:50%;border:1px solid #ffffff64}
.map-legend-dot.friendly{background:#5ac2f2}
.map-legend-dot.enemy{background:#ea746b}
.map-legend-dot.he{background:#e9c66f}
.map-legend-dot.smoke{background:#d6deda}
.map-mapinfo{padding:8px 13px;background:#192d21;color:#b6c8b8;font-size:11px;line-height:1.45}
.map-mapinfo strong{color:#e9d496}
.map-tools{padding:11px 12px 12px;background:#203627;border-top:1px solid #526a56}
.map-tools .tool-row{margin:0}
.map-tools .tool-row+.tool-row{margin-top:9px}
.map-tools .tool-row.zoom{grid-template-columns:repeat(4,minmax(0,1fr))}
.map-tools .tool-row.actions{display:flex;flex-wrap:wrap;gap:8px}
.map-tools .tool-row.actions button{flex:1 1 auto;min-height:39px}
.map-tools .tool-row.actions button:disabled{display:none}
.map-tools .tool-row.actions:empty{display:none}
.map-status{min-height:18px;margin:9px 1px 0;font-size:11px;font-weight:600;color:#e6d4a4;line-height:1.45}
.map-brief{margin:15px 0 12px;border:1px solid #4f6751;border-left:3px solid var(--sj-gold);border-radius:7px;padding:13px 15px;background:#1b3022}
.map-brief-label{display:block;font-size:10px;color:#edd394;letter-spacing:.11em;font-weight:850;margin-bottom:5px}
.map-brief p{margin:0;color:#dae5d9;font-size:13px;line-height:1.65}
.map-bottom{margin:18px 0 0}
.map-bottom a{display:inline-flex;align-items:center;min-height:40px;color:#f4d99c;font-size:12px;font-weight:800;text-decoration:none}
.map-bottom a:hover{text-decoration:underline}
@media(max-width:620px){
 main.sja-artillery-map{padding:10px 10px 43px}
 .map-topbar{margin:0 0 11px}
 .map-topbar-tag{font-size:9px}
 .map-heading{margin-bottom:12px}
 .map-heading h1{font-size:23px}
 .map-primary{padding:9px 9px 8px}
 .map-control-label{margin-bottom:6px}
 .tool-row{gap:6px}
 .tool-row button{min-height:40px;font-size:11px;padding:8px 5px;border-radius:6px}
 .map-primary .tool-row button{min-height:42px}
 .map-tools{padding:9px}
 .map-tools .tool-row.zoom{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .map-tools .tool-row.zoom button{font-size:11px;padding:7px 3px}
 .map-tools .tool-row.actions button{min-height:37px}
 .map-scroll{max-height:64vh}
 .map-legend{padding:9px 10px;gap:8px 14px}
 .map-legend-item{font-size:10px}
 .map-mapinfo{padding:8px 10px;font-size:10px}
 .map-brief{margin-top:13px;padding:11px 12px}
 .map-brief p{font-size:12px}
}
@media(max-width:345px){
 .map-topbar-tag{display:none}
 .map-tools .tool-row.zoom button{font-size:10px}
 .map-legend{gap:7px 10px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.tool-row button{transition:none}}
