/*
 * The operator maps (include/cOperatorMap.php, js/operator_map.js), K3Y
 * and CSKM. Every rule is scoped to .opmap, .om-*, body.om-full, or
 * body.om-embed, so the event style sheets loaded before it keep working
 * and no other page is affected.
 *
 * Pin colors: the six colors of Drew AF2Z's EasyMapMaker map for the same
 * six QSO groups (crimson, orange, yellow, green, blue, purple, read from
 * its public map settings), and every pin one size: Drew asked on 3 Dec
 * 2026 for "more color in the pins, similar to the EMM map", not the
 * first cut's shades of brown, and for pins "all the same size instead of
 * bigger for more QSOs". Color is therefore the only cue on the map
 * itself, so the group is also in each pin's tooltip, the table, and the
 * legend's checkboxes, which hide a group's pins. Region pins (no city
 * known) are square. A ring (white center, the group's color as a thick
 * band, a dark edge so yellow still shows on the land) is a call logged
 * with no matching entry on the schedule (Drew, 4 Dec 2026: "clearly
 * listed or identified"); its tooltip and table row say so in words too.
 *
 * Activated regions (a state, province, or country with an operator on the
 * schedule, Drew's other 3 Dec request) are a fill drawn by the script; the
 * page lists the states or provinces still missing in words.
 */

/* The page view's frame (body.om-framed, the two preview pages only). The
   event style sheets draw a fixed 792px frame: a 170px index beside a 592px
   column, where a world map is a postage stamp and the filters and legend
   wrap onto extra lines (Mark, 4 Dec 2026: "the content width may be too
   narrow"). The map pages widen it as the coordinator stats and log upload
   pages do (coordinator_stats.css, log_upload.css): up to 1100px, the
   column taking the extra width. What differs from that pattern:
   - The width is a share of the body (100%), never of the viewport (vw).
     98vw counts the scrollbar, and the fixed frame nudges its column 5px to
     the right (left:5px) and pads it 9px; on a window between about 820px
     and 1120px wide the map and legend ran under the scrollbar (Mark, 4 Dec
     2026, with a screenshot: "the right-hand edge of the window should have
     about 5px of margin").
   - So the column sits in its slot (left:0, the 10px gap to the index kept
     as margin) with no right padding, and the page's two edges are the
     content's edges: the index boxes start 9px from the window's left
     (body margin 8px, plus 1) and the map's border stops 9px from its
     right. The stripe takes the page's width, so its rules span exactly
     that.
   - Never narrower than the fixed frame (clamp from 792px, where those
     pages say min()): on a phone the page stays the 792px frame every other
     event page is, instead of squeezing a 200px column beside the index.
   - The index keeps its 170px (flex:none). In a flex row the long call lists
     in the column ask for more than the row has, and both items shrink, so
     the index headings and coordinator calls wrapped.
   The banner art keeps its own size, centered as before. k3y.php's
   EasyMapMaker iframe sits in the 592px column; whether that page widens
   too is Drew's and Jordan's call, not this file's. */
body.om-framed #page, body.om-framed #stripe {width:clamp(792px, 100%, 1100px);}
body.om-framed #index {flex:none;}
body.om-framed #container {width:auto; flex:1 1 auto; min-width:0; left:0; margin-left:10px; padding-right:0;}

.om-title {text-align:center; margin:0.2em 0;}
.om-title small {font-weight:normal; color:#1a2433;}
.om-view {text-align:center; margin:0.2em 0 0.6em;}
.opmap {font-family:Arial, sans-serif; font-size:14px; line-height:1.4; text-align:left; color:#1a2433;}
/* Left, not the event style sheets' justified p: justified, the call lists
   in the notes under the map opened wide gaps between words. */
.opmap p {margin:0.4em 0; text-align:left;}
.opmap .om-warn {color:#c00000; font-weight:bold;}
.opmap .om-filters {margin:0.4em 0;}
.opmap .om-filters[hidden], .opmap .om-map[hidden] {display:none;}
.opmap .om-filters label {white-space:nowrap;}
.opmap .om-selects, .opmap .om-tools {display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; margin:4px 0;}
.opmap .om-selects select {max-width:13em;}
.opmap .om-legend {display:flex; flex-wrap:wrap; gap:2px 12px; border:1px solid #8fb2de; border-radius:4px;
	background-color:#eef3fa; margin:4px 0; padding:2px 8px 4px;}
.opmap .om-count {font-weight:bold;}
.opmap .om-skip a:not(:focus) {position:absolute; left:-9999px;}
/* The page view's map is short: Drew and Jordan want a small map that opens
   on the whole event (3 Dec 2026), and 360px with the filters above it is
   about the old 592x500 EasyMapMaker iframe. It takes the column's width,
   which the wider frame above makes about 920px on a desktop: the world is
   wide, so a short, wide box shows it at a larger scale than a tall,
   narrow one. The full view (body.om-full, below) stays large: it is where
   announcement graphics come from. */
.opmap .om-map {box-sizing:border-box; width:100%; height:360px; border:1px solid #3d6fb0; border-radius:8px;
	background-color:#cfe2f3; z-index:0; margin:0;}
.opmap .om-legend label {display:inline-flex; align-items:center; gap:4px;}
.opmap .om-note {font-size:12px;}

/* Pins. The icon box is a zero-size anchor; the mark is centered on it. */
.opmap .om-pin {position:absolute; width:0; height:0; background:none; border:0;}
.opmap .om-key, .opmap .om-pin i {display:inline-block; box-sizing:border-box; width:12px; height:12px;
	border:1.5px solid #1a2433; border-radius:50%;}
.opmap .om-pin i {position:absolute; transform:translate(-50%, -50%);}
.opmap .om-pin.region i {border-radius:2px;}
.opmap .om-pin.log i, .opmap .om-key.ring {background-color:#ffffff; border-width:3px; box-shadow:0 0 0 1px #1a2433;}
/* A ring is always placed at a region, so on the map it is a hollow
   rounded square (.om-pin.region); the key's swatch has the same shape
   (Codex audit, 2026-12-05). */
.opmap .om-key.ring {border-color:#6b6f7a; border-radius:2px;}
.opmap .om-pin.log i.b0 {border-color:#dc143c;}
.opmap .om-pin.log i.b50 {border-color:#fd8d08;}
.opmap .om-pin.log i.b100 {border-color:#ffed5c;}
.opmap .om-pin.log i.b250 {border-color:#97ec7d;}
.opmap .om-pin.log i.b500 {border-color:#6b98ff;}
.opmap .om-pin.log i.b1000 {border-color:#c89bff;}
.opmap .om-key {vertical-align:-2px;}
/* The one definition of the activated fill: the script reads it from this
   legend swatch, so the key and the map cannot drift apart. */
.opmap .om-key.shade {width:18px; border-radius:2px; border-width:1px; border-color:#8fa3b8; background-color:#d9e6c3;}
/* Drew's key (5 Dec 2026) is a list, one line per mark. The round and
   square swatches are gray: a pin's color is its QSO group, which the
   legend above explains. No list markers or indent; the site styles only
   the index's own list items, so nothing else needs resetting. */
.opmap ul.om-keys {list-style:none; margin:6px 0; padding:0;}
.opmap ul.om-keys li {margin:2px 0;}
.opmap .om-key.round, .opmap .om-key.square {background-color:#9aa4b1;}
/* The gray line (operator_map.js drawNight()): the swatch is the night fill
 * as it looks over land, #1a2433 at 0.2 on the basemap's #f4f1e6, with the
 * edge line on its right; the clock is the UTC minute both boxes use, and
 * the stale note says when an open page loaded its schedule. */
.opmap .om-key.night {width:18px; border-radius:2px; border-width:0 2px 0 0; border-color:#3a4a60; background-color:#c8c8c2;}
.opmap .om-clock {font-variant-numeric:tabular-nums;}
.opmap .om-stale {display:block; margin:2px 0; font-size:12px;}
.opmap .om-stale[hidden] {display:none;}
/* A live row with no pin says why, under its SPC (operator_map.js showLiveNote()). */
.opmap .om-livenote {display:block; font-size:11px; font-style:italic;}
.opmap .om-livenote[hidden] {display:none;}
.opmap .om-key.square {border-radius:2px;}
.opmap .b0 {background-color:#dc143c;}
.opmap .b50 {background-color:#fd8d08;}
.opmap .b100 {background-color:#ffed5c;}
.opmap .b250 {background-color:#97ec7d;}
.opmap .b500 {background-color:#6b98ff;}
.opmap .b1000 {background-color:#c89bff;}
.opmap .om-pin span {position:absolute; left:10px; top:-8px; padding:0 3px; border-radius:3px; white-space:nowrap;
	font:bold 11px/15px Arial, sans-serif; color:#1a2433; background-color:rgba(255,255,255,0.82); display:none;}
.opmap .om-map.labels .om-pin span {display:block;}
.opmap .om-pop th {text-align:left; font-weight:normal; color:#44546a; padding:0 8px 0 0; vertical-align:top;}
.opmap .om-pop td {padding:0;}
/* The event style sheets style every table (width, centering, borders, fill). */
.opmap .om-pop table, .opmap .om-pop tr, .opmap .om-pop td, .opmap .om-pop th {width:auto; border:0; margin:0;
	text-align:left; background:none;}

/* The table, folded under "Operator list" (Jordan W7VC, 3 Dec 2026, was not
   sure about the list box under the map). .om-scroll keeps it inside the
   event column. */
.opmap .om-list > summary {cursor:pointer; font-weight:bold; margin:0.4em 0;}
.opmap .om-scroll {max-height:420px; overflow:auto; border:1px solid #8fb2de; background-color:#ffffff;}
.opmap .om-table {width:100%; border:0; border-collapse:collapse; margin:0; font-size:12px; background:none;}
.opmap .om-table tr {border:0; background:none;}
.opmap .om-table caption {padding:4px; font-weight:bold;}
.opmap .om-table th, .opmap .om-table td {width:auto; padding:2px 6px; border:0; border-bottom:1px solid #d7e3f3;
	text-align:left; vertical-align:top; background-color:#ffffff;}
.opmap .om-table tbody th {font-weight:normal;}
.opmap .om-table thead th {position:sticky; top:0; background-color:#dfe9f6;}
.opmap .om-table thead th {border:0;}
.opmap .om-table td.n {text-align:right;}
.opmap .om-table button {font:inherit; color:#0066ff; background:none; border:0; padding:0; text-align:left;
	text-decoration:underline; cursor:pointer;}

body.om-full {margin:8px; background-color:#c3d5ec;}
body.om-full .om-map {height:max(420px, calc(100vh - 230px));}

/* The copy in the home pages' iframes (k3y.php, ve9skcc.php; ?view=embed;
   Drew AF2Z, 4 Dec 2026: "a map displayed on the home page, and also have a
   link to the larger map"). The link to the full page is the home page's,
   above the frame, so it shows when the map cannot (no script, an outage's
   503 in the frame; Codex design review, 2026-12-04); a second one inside
   the frame only repeated it. The summary, the missing states, the QSO key, and the notes stay
   (the ring and shading key among them). Only the Area, SPC, and Find
   choices and the tools go: they are the full page's. The live count
   stays, because the QSO boxes still filter and a keyboard user must hear
   the result (Codex audit, 2026-12-04). The skip link goes too, because the
   page's <base target="_top"> would send its #fragment to the whole window.
   The frame scrolls for what does not fit. */
body.om-embed {margin:6px; background-color:#ffffff;}
body.om-embed .opmap .om-selects, body.om-embed .opmap .om-tools > :not(.om-count), body.om-embed .opmap .om-skip {display:none;}
body.om-embed .opmap .om-map {height:330px;}
