:root { color-scheme: light; --ink:#112d3a; --navy:#112f3d; --teal:#12635f; --gold:#e4b760; --paper:#fffdf6; --line:#cbd8d5; font:16px/1.55 system-ui,sans-serif; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:#eef4f2; color:var(--ink); }
.page { max-width:1240px; margin:auto; padding:1rem 1rem 2.5rem; }
nav { margin-bottom:.65rem; }
a { color:var(--teal); }
.skip { position:absolute; left:1rem; transform:translateY(-200%); background:white; padding:.5rem; }
.skip:focus { transform:none; }
h1,h2,h3,p { margin:0; }
h2 { font:700 clamp(1.4rem,4vw,2rem)/1.2 Georgia,serif; margin:.2rem 0 .55rem; }
h3 { font-size:1rem; margin:.85rem 0 .2rem; }
.hero img { display:block; width:100%; height:auto; border-radius:.9rem; }
.panel { margin-top:.85rem; padding:clamp(1rem,3vw,1.5rem); background:var(--paper); border:1px solid var(--line); border-radius:.85rem; }
.eyebrow { color:var(--teal); text-transform:uppercase; font-size:.74rem; font-weight:800; letter-spacing:.075em; }
.intro p + p { margin-top:.6rem; }
.section-row,.map-heading,.map-toolbar,.country-picker,.zoom-controls,.dialog-heading { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem .75rem; }
.section-row { margin-top:.8rem; }
.section-row p,.fine,.map-help,.credits { color:#45606b; font-size:.86rem; }
.map-heading,.map-toolbar,.dialog-heading { justify-content:space-between; }
.count { font-size:.85rem; font-weight:750; }
button,input,select,textarea { font:inherit; }
button { background:var(--teal); color:white; font-weight:750; padding:.45rem .75rem; border:1px solid transparent; border-radius:.45rem; cursor:pointer; }
button:disabled { opacity:.6; cursor:default; }
.secondary { background:var(--paper); border-color:#8aa7a0; color:var(--ink); }
.danger { background:#8c322a; }
input,select,textarea { border:1px solid #8aa7a0; border-radius:.4rem; padding:.4rem .55rem; color:var(--ink); background:white; max-width:100%; }
#country-select { max-width:min(100%,22rem); }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid #bd8732; outline-offset:3px; }
.map-help { margin:.5rem 0; }
.map-host { width:100%; aspect-ratio:1200/620; background:#123446; border:1px solid #406271; border-radius:.65rem; overflow:hidden; }
.map-host svg { display:block; width:100%; height:100%; touch-action:none; cursor:grab; }
.map-host svg.dragging { cursor:grabbing; }
.ocean { fill:#123446; }
.land { fill:#637c84; stroke:#adc0c2; stroke-width:.35; vector-effect:non-scaling-stroke; }
.country path { fill:#58a89e; stroke:#d1e7dd; stroke-width:.65; vector-effect:non-scaling-stroke; }
.country { cursor:pointer; }
.country:hover path,.country:focus path { fill:#99d0be; }
.country.reserved path { fill:#d5aa59; }
.country.submitted path { fill:#2d756c; }
.country.mine path { stroke:#fff3b3; stroke-width:1.4; }
.country:focus { outline:none; }
.map-marker { cursor:pointer; }
.map-marker rect { fill:#fffdf6; stroke:#102c3b; stroke-width:1; vector-effect:non-scaling-stroke; }
.map-marker:hover rect,.map-marker:focus rect { stroke:#ffdf8b; stroke-width:3; }
.map-marker:focus { outline:none; }
.map-marker image { pointer-events:none; }
.legend { display:flex; flex-wrap:wrap; gap:.7rem 1.1rem; list-style:none; padding:0; margin:.65rem 0; font-size:.85rem; }
.legend li { display:flex; align-items:center; gap:.35rem; }
.swatch { display:inline-block; width:1rem; height:1rem; border:1px solid #567b79; border-radius:.2rem; }
.swatch.available { background:#58a89e; }
.swatch.reserved { background:#d5aa59; }
.flag-sample { font-size:1.2rem; color:var(--teal); }
.fine { margin-top:.5rem; }
.submitted-list { display:flex; flex-wrap:wrap; gap:.5rem; list-style:none; margin:.8rem 0 0; padding:0; }
.submitted-list button { display:flex; align-items:center; gap:.5rem; background:#e3f0eb; color:var(--ink); border-color:#b3ccc3; }
.submitted-list img { width:28px; height:21px; object-fit:cover; border:1px solid #8da59d; }
.status { margin-top:.55rem; }
.status:empty { display:none; }
.error { color:#8c322a; font-weight:700; }
.instructor summary { cursor:pointer; font-weight:750; }
fieldset { min-width:0; border:0; padding:0; margin:0; }
#reset-fields { margin-top:.65rem; display:grid; justify-items:start; gap:.5rem; }
#reset-fields input { width:20rem; max-width:100%; }
.credits { margin-top:.8rem; text-align:center; }
dialog { width:min(650px,calc(100% - 1rem)); max-height:90vh; padding:1.3rem; border:1px solid #708e88; border-radius:.8rem; background:var(--paper); color:var(--ink); overflow:auto; }
dialog::backdrop { background:#0d283ac7; }
.dialog-heading { align-items:start; margin-bottom:.35rem; }
#entry-fields { display:grid; gap:.35rem; margin-top:.7rem; }
#entry-fields input,#entry-fields textarea { width:100%; margin-bottom:.25rem; }
#entry-fields textarea { resize:vertical; }
#entry-fields button { justify-self:start; margin-top:.3rem; }
#entry-fields label { font-weight:750; }
.submitted-name { font-weight:750; margin-top:.75rem; }
.student-text { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:650px) { .map-toolbar { align-items:start; } .country-picker { width:100%; } #country-select { flex:1; min-width:0; } .map-host { aspect-ratio:1.4; } }
