/* SeaWatch — מפת דיווחים
   Deep-sea instrument chrome over a bright sea. Chrome (header, filter panel, result bar,
   suggestion menu, map controls) is abyss navy; the map and its popups stay daylight, so the
   only saturated marks on screen are the reports themselves.

   The map is full-bleed and the chrome floats over it as instrument cards. A docked
   header/sidebar/footer shell was built alongside this one and dropped: docking costs the
   map a strip of height it cannot spare inside a WordPress iframe. */

:root {
  /* Deep sea — the instruments */
  --abyss: #041a24;
  --hull: #08293a;
  --hull-2: #0e3a4f;
  --hull-3: #12475f;
  --hull-line: #1b4e68;
  --foam: #eaf3f7;
  --tide: #93b6c8; /* secondary text, tinted from the hull hue — never gray */
  --current: #2ed3c6; /* the one accent: selection, focus, active state. Not decoration. */

  /* Daylight — the map layer and the cards that sit on it */
  --card: #ffffff;
  --card-2: #f2f7f9;
  --ink: #0b2531;
  --ink-2: #55707e;
  --line: #dbe6ec;
  --page: #dfe9ee;

  /* Meaning colours — locked. Type is encoded by shape AND colour, never colour alone. */
  --observation: #0e9f6e;
  --violation: #e4572e;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Every shadow carries an offset and a soft blur. */
  --shadow-1: 0 1px 2px rgb(4 22 31 / 24%), 0 2px 8px rgb(4 22 31 / 14%);
  --shadow-2: 0 2px 4px rgb(4 22 31 / 20%), 0 8px 20px rgb(4 22 31 / 22%);
  --shadow-3: 0 2px 6px rgb(4 22 31 / 22%), 0 14px 36px rgb(4 22 31 / 34%);

  --t: 160ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E");
  --icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393b6c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  font-family: 'Heebo', system-ui, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--foam);
  background: var(--abyss);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Browser surfaces belong to the design too. */
::selection { background: color-mix(in srgb, var(--current) 34%, transparent); }
input, textarea { caret-color: var(--current); }
:focus-visible { outline: 2px solid var(--current); outline-offset: 2px; border-radius: 4px; }

.sw-shell { position: relative; display: flex; flex-direction: column; height: 100dvh; }
.sw-body { display: flex; flex: 1; min-height: 0; position: relative; }
.sw-main { flex: 1; min-width: 0; position: relative; background: var(--page); }
.sw-map { position: absolute; inset: 0; }
.sw-scrim { display: none; }

/* ---------------------------------------------------------------- Chrome surfaces */

.sw-header, .sw-panel, .sw-resultbar {
  position: absolute;
  color: var(--foam);
  color-scheme: dark; /* native date pickers, selects and scrollbars render dark-native */
  accent-color: var(--current);
  /* 90%, not less: at 86% the tinted secondary text fell to 4.57:1 over the brightest tiles. */
  background: color-mix(in srgb, var(--hull) 90%, transparent);
  backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid color-mix(in srgb, var(--hull-line) 75%, transparent);
  box-shadow: var(--shadow-3);
}

.sw-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.sw-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* The logo is an opaque square — its corners are #145A77, not transparent — so the
   rounding is ours. The hairline keeps its dark teal ground from melting into the
   chrome, which sits at nearly the same value. */
.sw-mark {
  display: block; width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 7px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--foam) 14%, transparent);
}
.sw-wordmark {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--foam);
  white-space: nowrap;
}
.sw-wordmark-sep { color: var(--hull-3); font-weight: 400; }
.sw-wordmark-he { font-size: 13.5px; font-weight: 500; color: var(--tide); letter-spacing: 0; }

.sw-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--tide); flex-wrap: wrap; }
.sw-legend-item { display: flex; align-items: center; gap: 7px; }
.sw-legend-area {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px dashed var(--observation);
  background: color-mix(in srgb, var(--observation) 18%, transparent);
}

/* ---------------------------------------------------------------- Panel */

.sw-panel { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--hull-3) transparent; }
.sw-panel::-webkit-scrollbar { width: 11px; }
.sw-panel::-webkit-scrollbar-track { background: transparent; }
.sw-panel::-webkit-scrollbar-thumb {
  background: var(--hull-3); border-radius: var(--r-pill);
  border: 3px solid transparent; background-clip: padding-box;
}
.sw-panel::-webkit-scrollbar-thumb:hover { background: var(--hull-line); background-clip: padding-box; }

/* More space above a heading than below it: the label belongs to what follows. */
.sw-field { padding-top: 18px; margin-bottom: 2px; border-top: 1px solid color-mix(in srgb, var(--hull-line) 55%, transparent); }
.sw-field:first-child { padding-top: 2px; border-top: 0; }
.sw-field-legend {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--tide); margin: 0 0 9px;
}

.sw-types { display: flex; gap: 16px; }
.sw-check { display: flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; color: var(--foam); }
.sw-check input { width: 15px; height: 15px; margin: 0; cursor: pointer; }
.sw-typedot { width: 11px; height: 11px; flex-shrink: 0; }
.sw-typedot-observation { background: var(--observation); border-radius: 50%; }
.sw-typedot-violation { background: var(--violation); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.sw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; font: inherit;
  font-size: 12.5px; font-weight: 500; line-height: 1.2;
  border: 1px solid var(--hull-line); background: var(--hull-2); color: var(--foam);
  border-radius: var(--r-pill); cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.sw-chip:hover { background: var(--hull-3); border-color: var(--hull-3); }
.sw-chip:active { transform: translateY(1px); }
.sw-chip.is-on {
  background: color-mix(in srgb, var(--current) 18%, var(--hull-2));
  border-color: color-mix(in srgb, var(--current) 60%, transparent);
  color: #fff;
}
.sw-chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgb(255 255 255 / 12%); }

.sw-catchip {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 9px;
  padding: 5px 8px 5px 11px; font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
  background: color-mix(in srgb, var(--current) 20%, var(--hull-2));
  border: 1px solid color-mix(in srgb, var(--current) 65%, transparent);
  border-radius: var(--r-pill); color: #fff;
  transition: background var(--t) var(--ease);
}
.sw-catchip:hover { background: color-mix(in srgb, var(--current) 30%, var(--hull-2)); }
.sw-catchip-x {
  width: 14px; height: 14px; font-size: 0; flex-shrink: 0;
  background: currentColor; opacity: 0.75;
  -webkit-mask: var(--icon-x) center / 11px 11px no-repeat;
  mask: var(--icon-x) center / 11px 11px no-repeat;
}
.sw-catchip:hover .sw-catchip-x { opacity: 1; }

/* Fields */
.sw-select, .sw-search, .sw-daterow input {
  width: 100%; font: inherit; font-size: 13.5px; padding: 8px 11px; height: 36px;
  border: 1px solid var(--hull-line); border-radius: var(--r-sm);
  background: var(--hull-2); color: var(--foam);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.sw-select:hover, .sw-search:hover, .sw-daterow input:hover { border-color: var(--hull-3); }
.sw-select:focus, .sw-search:focus, .sw-daterow input:focus { border-color: var(--current); }
.sw-search::placeholder { color: var(--tide); opacity: 1; }

.sw-select {
  appearance: none; padding-inline-end: 11px; padding-inline-start: 30px; cursor: pointer;
  /* the page is dir=rtl, so the chevron sits at the visual left edge */
  background-image: var(--icon-chevron);
  background-repeat: no-repeat;
  background-position: left 9px center;
  background-size: 15px 15px;
}
.sw-select option, .sw-select optgroup { background: var(--hull); color: var(--foam); }
.sw-select optgroup { font-weight: 600; }

.sw-searchwrap { position: relative; }
.sw-searchwrap::before {
  content: ''; position: absolute; inset-inline-start: 11px; top: 50%; margin-top: -7.5px;
  width: 15px; height: 15px; background: var(--tide); pointer-events: none; z-index: 1;
  -webkit-mask: var(--icon-search) center / contain no-repeat;
  mask: var(--icon-search) center / contain no-repeat;
}
.sw-searchwrap:focus-within::before { background: var(--current); }
.sw-search { padding-inline-start: 33px; }
.sw-search::-webkit-search-cancel-button {
  -webkit-appearance: none; width: 13px; height: 13px; cursor: pointer;
  background: var(--tide);
  -webkit-mask: var(--icon-x) center / contain no-repeat;
  mask: var(--icon-x) center / contain no-repeat;
}
.sw-search::-webkit-search-cancel-button:hover { background: var(--foam); }

.sw-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sw-preset {
  font: inherit; font-size: 12px; font-weight: 500; padding: 5px 10px;
  border: 1px solid var(--hull-line); background: transparent; color: var(--tide);
  border-radius: var(--r-sm); cursor: pointer;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.sw-preset:hover { color: var(--foam); background: var(--hull-2); border-color: var(--hull-3); }
.sw-preset:active { transform: translateY(1px); }

.sw-daterow { display: flex; align-items: flex-end; gap: 8px; }
.sw-daterow input { flex: 1; min-width: 0; }
.sw-datefield { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.sw-datelabel { font-size: 11px; font-weight: 500; color: var(--tide); }
.sw-datefield input { width: 100%; }
.sw-daterow input::-webkit-calendar-picker-indicator { opacity: 0.6; cursor: pointer; }
.sw-daterow input:hover::-webkit-calendar-picker-indicator { opacity: 1; }

.sw-field .sw-types + .sw-select { margin-top: 10px; }
.sw-field .sw-searchwrap + .sw-chips { margin-top: 10px; }
.sw-field .sw-types + .sw-searchwrap { margin-top: 10px; }
.sw-field .sw-searchwrap + .sw-select { margin-top: 10px; }

.sw-clear {
  font: inherit; font-size: 13px; font-weight: 500; color: var(--tide);
  background: none; border: 0; cursor: pointer;
  margin-top: 18px; padding: 8px 0;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color var(--t) var(--ease);
}
.sw-clear::before {
  content: ''; width: 13px; height: 13px; background: currentColor;
  -webkit-mask: var(--icon-x) center / contain no-repeat;
  mask: var(--icon-x) center / contain no-repeat;
}
.sw-clear:hover { color: var(--foam); }

/* ---------------------------------------------------------------- Suggestion menu */

.sw-sugg {
  position: absolute; top: 100%; inset-inline: 0; z-index: 20;
  margin-top: 6px; max-height: 320px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--hull-2); border: 1px solid var(--hull-line);
  border-radius: var(--r); box-shadow: var(--shadow-3);
  scrollbar-width: thin; scrollbar-color: var(--hull-3) transparent;
}
.sw-sugg-head {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--tide);
  padding: 9px 11px 5px;
}
.sw-sugg-row {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 11px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13.5px; text-align: start; color: var(--foam);
  transition: background 90ms linear;
}
.sw-sugg-row:hover { background: var(--hull-3); }
.sw-sugg-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-sugg-kind { font-size: 11px; color: var(--tide); flex-shrink: 0; }
.sw-sugg-count {
  font-size: 12px; color: var(--tide); font-variant-numeric: tabular-nums; flex-shrink: 0;
  min-width: 2.4em; text-align: end;
}
.sw-sugg-more { font-size: 11px; color: var(--tide); padding: 7px 11px 9px; }

/* The row Enter will take. Stronger than hover: this one is armed, not merely pointed at. */
.sw-sugg-row.is-active {
  background: color-mix(in srgb, var(--current) 17%, var(--hull-2));
  box-shadow: inset 3px 0 0 var(--current);
}
.sw-sugg-row.is-active .sw-sugg-count, .sw-sugg-row.is-active .sw-sugg-kind { color: var(--foam); }

/* ---------------------------------------------------------------- Result bar */

.sw-resultbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sw-count {
  font-size: 13.5px; color: var(--foam); font-variant-numeric: tabular-nums;
  text-align: center; text-wrap: balance;
}
.sw-count strong { font-weight: 700; font-size: 15px; }
/* The tail of the sentence: what is narrowing the number. Tinted, so the count still
   reads first, but full-size — it is the half that says WHICH reports these are. */
.sw-summary { color: var(--tide); }
.sw-notice { flex-basis: 100%; font-size: 12.5px; color: var(--tide); }
.sw-filter-toggle {
  display: none; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px;
  border: 1px solid var(--hull-line); background: var(--hull-2); color: var(--foam);
  border-radius: var(--r-pill); cursor: pointer; white-space: nowrap;
}
.sw-filter-toggle:hover { background: var(--hull-3); }

/* ---------------------------------------------------------------- Map surface */

/* The basemap is context, not content: muted so the reports carry the colour.
   Only the street layer — satellite imagery is left alone. */
.sw-tiles-street { filter: saturate(0.68) brightness(1.04) contrast(0.94); }

/* Zoom (corner) + layer picker side by side at top-left, not stacked.
   direction:ltr keeps zoom leftmost despite the RTL page. */
.leaflet-top.leaflet-left { display: flex; flex-direction: row; direction: ltr; align-items: flex-start; gap: 8px; padding: 12px; }
.leaflet-top.leaflet-left .leaflet-control { margin: 0; }

/* Leaflet's own stylesheet is injected after this one, so each override carries an extra
   class to win on specificity instead of on order. */
.leaflet-container .leaflet-bar, .leaflet-container .leaflet-control-layers {
  border: 1px solid color-mix(in srgb, var(--hull-line) 80%, transparent);
  border-radius: var(--r); box-shadow: var(--shadow-2); overflow: hidden;
  background: color-mix(in srgb, var(--hull) 88%, transparent);
  backdrop-filter: blur(10px);
}
.leaflet-container .leaflet-bar a, .leaflet-container .leaflet-bar a:hover {
  background: transparent; color: var(--foam); border-bottom-color: color-mix(in srgb, var(--hull-line) 80%, transparent);
  width: 32px; height: 32px; line-height: 32px; font-size: 17px; font-weight: 500;
  transition: background var(--t) var(--ease);
}
.leaflet-container .leaflet-bar a:hover { background: var(--hull-3); color: #fff; }
.leaflet-container .leaflet-bar a:first-child, .leaflet-container .leaflet-bar a:last-child { border-radius: 0; }
.leaflet-container .leaflet-bar a.leaflet-disabled { background: transparent; color: color-mix(in srgb, var(--tide) 45%, transparent); }

.leaflet-container .leaflet-control-layers-expanded { padding: 9px 11px; color: var(--foam); font: inherit; font-size: 13px; }
.leaflet-container .leaflet-control-layers-list { margin: 0; }
.leaflet-container .leaflet-control-layers label { display: block; margin: 0; padding: 3px 0; cursor: pointer; }
.leaflet-container .leaflet-control-layers label > span,
.leaflet-container .leaflet-control-layers label > div { display: flex; align-items: center; gap: 7px; }
.leaflet-container .leaflet-control-layers input { accent-color: var(--current); margin: 0; }
.leaflet-container .leaflet-control-layers-separator { border-top: 1px solid color-mix(in srgb, var(--hull-line) 80%, transparent); margin: 7px 0; }

.leaflet-container .leaflet-control-attribution.leaflet-control {
  background: color-mix(in srgb, var(--abyss) 72%, transparent);
  backdrop-filter: blur(6px);
  color: var(--tide); font-size: 10.5px; padding: 3px 8px; border-radius: var(--r-sm) 0 0 0;
}
.leaflet-container .leaflet-control-attribution a { color: var(--tide); text-decoration: underline; text-underline-offset: 2px; }
.leaflet-container .leaflet-control-attribution a:hover { color: var(--foam); }

/* Reserve-name tooltip on hover */
.leaflet-container .leaflet-tooltip {
  background: var(--hull); color: var(--foam); border: 1px solid var(--hull-line);
  border-radius: var(--r-sm); box-shadow: var(--shadow-2);
  font: inherit; font-size: 12px; font-weight: 500; padding: 4px 9px;
}
.leaflet-container .leaflet-tooltip-top::before { border-top-color: var(--hull-line); }

/* Pins — shape carries the type, colour reinforces it */
.sw-pin-wrap { background: none; border: none; }
.sw-pin {
  display: block; width: 17px; height: 17px;
  transition: transform 140ms var(--ease);
}
.sw-pin-observation {
  background: var(--pin); border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgb(4 22 31 / 45%);
}
.sw-pin-violation {
  background: var(--pin); clip-path: polygon(50% 0, 100% 100%, 0 100%);
  /* clip-path eats box-shadow, so the white edge and drop are drawn as filters */
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 1px 2px rgb(4 22 31 / 45%));
}
.sw-pin-wrap:hover .sw-pin { transform: scale(1.22); }

.sw-cluster-wrap { background: none; }
.sw-cluster {
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--hull-3), var(--hull) 78%);
  color: var(--foam); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums;
  border: 2px solid color-mix(in srgb, var(--foam) 88%, transparent);
  box-shadow: 0 2px 8px rgb(4 22 31 / 40%), 0 0 0 5px color-mix(in srgb, var(--current) 16%, transparent);
  transition: box-shadow var(--t) var(--ease);
}
.sw-cluster-wrap:hover .sw-cluster {
  box-shadow: 0 3px 12px rgb(4 22 31 / 45%), 0 0 0 8px color-mix(in srgb, var(--current) 24%, transparent);
}

/* ---------------------------------------------------------------- Popup (daylight card) */

.sw-popup-wrap .leaflet-popup-content-wrapper {
  border-radius: var(--r-lg); padding: 0; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-3);
  color-scheme: light;
}
.sw-popup-wrap .leaflet-popup-content { margin: 0; padding: 14px 15px 13px; line-height: 1.45; }
.sw-popup-wrap .leaflet-popup-tip { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.sw-popup-wrap a.leaflet-popup-close-button {
  width: 26px; height: 26px; padding: 0; inset-inline-end: 5px; inset-block-start: 5px;
  font: 400 18px/26px 'Heebo', sans-serif; color: var(--ink-2); border-radius: var(--r-sm);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.sw-popup-wrap a.leaflet-popup-close-button:hover { background: var(--card-2); color: var(--ink); }

.sw-popup { font-family: 'Heebo', sans-serif; min-width: 200px; color: var(--ink); }
.sw-badge {
  display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 10px;
  border-radius: var(--r-pill); margin-bottom: 8px; letter-spacing: 0.01em;
}
.sw-pop-title { margin: 0 0 3px; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.sw-pop-sub { font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.sw-pop-metas { display: flex; flex-direction: column; gap: 5px; }
.sw-pop-meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.sw-pop-meta svg { flex-shrink: 0; opacity: 0.8; }
.sw-pop-status {
  display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 9px;
  border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink);
}
.sw-pop-status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--observation); flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--observation) 18%, transparent);
}
.sw-pop-desc { font-size: 13px; margin: 9px 0 0; color: var(--ink); }
.sw-pop-img { display: block; width: 100%; border-radius: var(--r); margin-top: 10px; background: var(--card-2); }
.sw-pop-note {
  margin-top: 10px; font-size: 11.5px; color: var(--ink-2);
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 6px 9px;
}

/* ================================================================ Placement over the map */

.sw-body { position: absolute; inset: 0; }

.sw-header {
  top: 14px; inset-inline-start: 14px; z-index: 620;
  padding: 9px 15px; border-radius: var(--r-lg); gap: 20px;
}
.sw-panel {
  top: 76px; inset-inline-start: 14px; z-index: 610;
  width: 302px; max-height: calc(100% - 152px);
  padding: 14px 15px 18px; border-radius: var(--r-lg);
}
.sw-resultbar {
  bottom: 14px; inset-inline: 0; margin-inline: auto; z-index: 620;
  width: fit-content; max-width: min(760px, calc(100% - 28px));
  padding: 9px 18px; border-radius: var(--r-pill);
  justify-content: center;
}
.sw-resultbar .sw-notice { text-align: center; padding: 0 8px 4px; }

/* ================================================================ Narrow: one drawer */

@media (max-width: 1023px) {
  .sw-legend { display: none; }
  .sw-filter-toggle { display: inline-flex; }

  .sw-panel {
    position: absolute; inset-block: 0; inset-inline-start: 0; top: 0;
    width: min(86%, 330px); max-height: none; height: 100%;
    border-radius: 0; border-inline-start: 0;
    transform: translateX(-105%); transition: transform 220ms var(--ease);
    z-index: 700; box-shadow: var(--shadow-3);
    background: var(--hull); backdrop-filter: none;
  }
  [dir='rtl'] .sw-panel { transform: translateX(105%); }
  .panel-open .sw-panel { transform: translateX(0) !important; }
  .panel-open .sw-scrim {
    display: block; position: absolute; inset: 0; z-index: 600;
    background: rgb(4 22 31 / 55%); border: none; backdrop-filter: blur(2px);
  }

  .sw-header { inset-inline: 10px; top: 10px; padding: 8px 13px; }
  .sw-resultbar { bottom: 10px; max-width: calc(100% - 20px); gap: 10px; }
  .sw-wordmark-he { display: none; }
  .sw-wordmark-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
