/* Public home v2: shared header + 3D active wildfire home. HOME-V2-2026-10-09 */

/* ---------------------------------------------------------------- header */
/* Same palette and shape as the signed-in pages (css/shell-v2.css). */
.pub-header, body.home-v2-body {
  --v2-bg: #0a111e;
  --v2-bar: #0d1626;
  --v2-panel: #101a2c;
  --v2-field: #0b1322;
  --v2-line: #1f2b41;
  --v2-line-strong: #2c3a55;
  --v2-ink: #e8edf6;
  --v2-muted: #93a1b8;
  --v2-red: #c1271d;
  --v2-red-hover: #d5332a;
  --v2-red-ink: #ff8b7e;
  --v2-orange: #f0563f;
  --v2-amber: #f5b428;
  --v2-font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
.pub-header {
  position: relative;
  z-index: 50;
  flex: 0 0 auto;
  box-sizing: border-box;
  background: var(--v2-bar);
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-ink);
  font: 500 13px/1.2 var(--v2-font);
  text-align: left;
}
.pub-header *, .pub-header *::before, .pub-header *::after { box-sizing: border-box; }
.pub-header a { text-decoration: none; }
.pub-top {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 18px;
}
.pub-brand { display: inline-flex; flex-direction: column; gap: 4px; color: #ffffff; }
.pub-brand-name { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; line-height: 1; color: #ffffff; }
.pub-brand-name b { color: var(--v2-orange); font-weight: 800; }
.pub-brand-tag {
  color: var(--v2-muted);
  font-size: 8px; font-weight: 700; letter-spacing: 0.3em; line-height: 1; text-transform: uppercase;
}
.pub-login {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid var(--v2-red);
  background: var(--v2-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.pub-login:hover { background: var(--v2-red-hover); border-color: var(--v2-red-hover); color: #ffffff; }
.pub-login svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pub-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 36px;
  padding: 0 10px;
  justify-content: center;
  border-top: 1px solid var(--v2-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.pub-tabs::-webkit-scrollbar { display: none; }
.pub-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 14px;
  border-radius: 6px 6px 0 0;
  color: #c3cde0;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pub-tab:hover { background: rgba(255, 255, 255, 0.05); color: #ffffff; }
.pub-tab.is-active { background: var(--v2-panel); color: #ffffff; font-weight: 700; }
.pub-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--v2-orange);
}
.pub-tab:focus-visible, .pub-login:focus-visible, .pub-brand:focus-visible {
  outline: 2px solid var(--v2-amber);
  outline-offset: 2px;
}
@media (max-width: 560px) {
  .pub-top { padding: 0 12px; }
  .pub-brand-name { font-size: 18px; }
  .pub-login { padding: 0 10px; font-size: 12px; }
}

/* The models page keeps its own layout; its navbar becomes the shared header. */
body.wfs-pub-v2 .landing-navbar {
  background: var(--v2-bar, #0d1626);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  box-shadow: 0 6px 24px rgba(3, 10, 18, 0.3);
}
body.wfs-pub-v2 .landing-navbar .navbar-inner {
  display: block;
  max-width: none;
  padding: 0;
}

/* ------------------------------------------------------------- home page */
html.home-v2, html.home-v2 body { height: 100%; margin: 0; }
body.home-v2-body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  background: var(--v2-bg);
  font-family: var(--v2-font);
}
.hv-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.hv-map { position: absolute; inset: 0; }
.hv-fallback {
  position: absolute; inset: 0;
  background: #0b1420 center / cover no-repeat;
  display: none;
}
.hv-stage.no-map .hv-fallback { display: block; }
.hv-stage.no-map .hv-map, .hv-stage.no-map .hv-overview { display: none; }
.hv-topshade {
  position: absolute; left: 0; right: 0; top: 0; height: 45%;
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.62), rgba(12, 74, 110, 0.14) 55%, transparent);
  pointer-events: none;
}

/* stats */
.hv-stats {
  position: absolute; left: 0; right: 0; top: 14px;
  display: flex; justify-content: center;
  pointer-events: none;
  z-index: 5;
  transition: opacity 1.2s ease;
}
.hv-stats.is-dim { opacity: 0; }
.hv-stat {
  min-width: 190px;
  padding: 4px 34px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.hv-stat + .hv-stat { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.hv-stat b { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; }
.hv-stat span {
  display: block; margin-top: 8px;
  font-size: 15px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.86);
}

/* fire panel */
.hv-panel {
  position: absolute; left: 24px; bottom: 24px;
  width: 384px; max-width: calc(100% - 24px);
  z-index: 20;
  display: flex; flex-direction: column;
  max-height: min(66dvh, calc(100% - 40px));
  padding: 16px;
  box-sizing: border-box;
  color: var(--v2-ink);
  background: rgba(13, 22, 38, 0.93);
  border: 1px solid var(--v2-line-strong);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hv-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hv-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--v2-orange);
}
.hv-count { margin-top: 4px; font-size: 18px; font-weight: 700; }
.hv-sub { margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.hv-live {
  position: relative;
  margin-top: 6px; padding-left: 14px;
  font-size: 12px; line-height: 1.4; color: #fde68a;
}
.hv-live::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 6px #ef4444;
}
.hv-live[hidden] { display: none; }
.hv-item-hot { margin-top: 3px; font-size: 11px; font-weight: 700; color: #fca5a5; }
.hv-head-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.hv-iconbtn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff; cursor: pointer; padding: 0;
}
.hv-iconbtn:hover { background: rgba(255, 255, 255, 0.16); }
.hv-iconbtn[hidden] { display: none; }
.hv-seg {
  display: flex; gap: 4px; margin-top: 12px; padding: 4px;
  border: 1px solid var(--v2-line-strong);
  border-radius: 8px;
  background: var(--v2-field);
}
.hv-seg button {
  flex: 1 1 0;
  padding: 9px 10px;
  border: 0; border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.hv-seg button:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.hv-seg button.is-on { background: var(--v2-red); color: #ffffff; }
.hv-body {
  margin-top: 12px; min-height: 0; flex: 1 1 auto;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.hv-panel.is-min .hv-body, .hv-panel.is-min .hv-seg { display: none; }
.hv-list { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hv-list li { min-width: 0; }
.hv-item {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.hv-item:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.07); }
.hv-item.is-on { border-color: var(--v2-red); background: rgba(193, 39, 29, 0.16); }
.hv-item-main { min-width: 0; flex: 1 1 0; }
.hv-item { box-sizing: border-box; }
.hv-item-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-item-place { margin-top: 2px; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, 0.65); overflow-wrap: anywhere; }
.hv-badge {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}
.hv-badge.s-ooc { border-color: rgba(248, 113, 113, 0.6); background: rgba(220, 38, 38, 0.28); color: #fecaca; }
.hv-badge.s-bh { border-color: rgba(250, 204, 21, 0.55); background: rgba(202, 138, 4, 0.26); color: #fef08a; }
.hv-badge.s-uc { border-color: rgba(74, 222, 128, 0.5); background: rgba(22, 163, 74, 0.24); color: #bbf7d0; }
.hv-badge.s-sat { border-color: rgba(253, 186, 116, 0.55); background: rgba(234, 88, 12, 0.26); color: #fed7aa; }
.hv-north {
  position: absolute; right: 24px; top: 34px; z-index: 6;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(13, 22, 38, 0.9);
  border: 1px solid var(--v2-line-strong);
  color: #ffffff; font-size: 12px; font-weight: 800; line-height: 1;
  pointer-events: none;
}
.hv-north svg { display: block; margin-bottom: 1px; }
.hv-step { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.hv-step button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.hv-step button:hover { background: rgba(255, 255, 255, 0.16); }
.hv-info-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hv-info-name { margin-top: 4px; font-size: 24px; font-weight: 800; line-height: 1.2; word-break: break-word; }
.hv-info-num { margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, 0.65); }
.hv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hv-action {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--v2-line-strong);
  background: var(--v2-field);
  color: var(--v2-ink); font-size: 14px; font-weight: 700; text-decoration: none;
}
.hv-action:hover { border-color: #46597c; background: #121d31; color: #ffffff; }
.hv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 16px 0 0; }
.hv-facts div.wide { grid-column: 1 / -1; }
.hv-facts dt { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.hv-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.hv-note { margin: 0; padding: 10px 2px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.hv-source { margin-top: 12px; font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, 0.5); }

/* report a fire */
.hv-form { display: grid; gap: 12px; }
.hv-form-intro { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.hv-field { display: grid; gap: 5px; min-width: 0; }
.hv-field > span { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.hv-field input[type="text"], .hv-field input[type="email"], .hv-field input[type="tel"], .hv-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 9px 10px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff; font: inherit; font-size: 14px;
}
.hv-field textarea { resize: vertical; min-height: 64px; }
.hv-field input::placeholder, .hv-field textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.hv-field input:focus, .hv-field textarea:focus { outline: 2px solid var(--v2-amber); outline-offset: 1px; }
.hv-field input[type="file"] { max-width: 100%; font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.hv-previews { display: flex; gap: 6px; flex-wrap: wrap; }
.hv-previews:empty { display: none; }
.hv-previews img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.2); }
.hv-where { font-size: 14px; font-weight: 600; }
.hv-mini-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hv-mini {
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--v2-line-strong); background: var(--v2-field);
  color: var(--v2-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.hv-mini:hover { border-color: #46597c; background: #121d31; }
.hv-mini.is-on { border-color: var(--v2-amber); color: var(--v2-amber); }
.hv-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hv-form-note { margin: 0; font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, 0.55); }
.hv-send {
  padding: 11px 14px; border: 0; border-radius: 8px;
  background: var(--v2-red); color: #ffffff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.hv-send:hover { background: var(--v2-red-hover); }
.hv-send:disabled { opacity: 0.6; cursor: wait; }
.hv-form-msg { min-height: 18px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.8); }
.hv-form-msg.is-ok { color: #86efac; }
.hv-form-msg.is-err { color: #fca5a5; }
.hv-form-msg.is-warn { color: #fde68a; }
.hv-seg button { min-width: 0; }

/* visitor photos on the map */
.hv-cam {
  width: 34px; height: 34px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid #ffffff;
  background: #2563eb; color: #ffffff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.hv-pop { width: 260px; max-width: 100%; font-family: "Manrope", system-ui, sans-serif; color: #1c1917; }
.hv-pop-img { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 6px; background: #e7e5e4; }
.hv-pop-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; font-size: 12px; }
.hv-pop-nav button { border: 1px solid #d6d3d1; background: #ffffff; border-radius: 6px; padding: 3px 6px; cursor: pointer; line-height: 0; }
.hv-pop-meta { margin-top: 8px; font-size: 12px; color: #57534e; }
.hv-pop-text { margin-top: 4px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }

/* overview */
.hv-overview {
  position: absolute; right: 24px; bottom: 24px; z-index: 10;
  width: 176px;
  border-radius: 8px; overflow: hidden;
  border: 2px solid var(--v2-line-strong);
  background: var(--v2-bar);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.hv-overview-map { height: 122px; }
.hv-overview-cap {
  padding: 5px 9px;
  border-top: 1px solid var(--v2-line);
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--v2-muted);
}
.hv-overview-dot {
  width: 16px; height: 16px;
  background: rgba(193, 39, 29, 0.18); border: 2px solid var(--v2-red); border-radius: 2px;
  box-shadow: 0 0 0 1px #ffffff;
}

/* call to action */
.hv-cta {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 10;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--v2-line-strong);
  background: rgba(13, 22, 38, 0.9);
  color: #ffffff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hv-cta:hover { background: var(--v2-red); border-color: var(--v2-red); color: #ffffff; }
.hv-attrib {
  position: absolute; right: 8px; top: 6px; z-index: 6;
  font-size: 10px; color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* focused fire marker */
.hv-flame {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hv-flame::before {
  content: "";
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(240, 86, 63, 0.4);
  animation: hvPulse 1.8s ease-out infinite;
}
.hv-flame svg { position: relative; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7)); }
@keyframes hvPulse {
  0% { transform: scale(0.45); opacity: 0.95; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 1100px) {
  .hv-cta { display: none; }
}
@media (max-width: 767px) {
  .hv-stats, .hv-overview { display: none; }
  .hv-north { right: 10px; top: 28px; width: 38px; height: 38px; }
  .hv-panel {
    left: 0; right: 0; bottom: 0; width: auto; max-width: none;
    max-height: 48dvh;
    padding: 12px;
    border-radius: 16px 16px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
  }
  .hv-info-name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-flame::before { animation: none; }
  .hv-stats { transition: none; }
}

/* label that names the fire once the camera has settled on it */
.hv-callout { pointer-events: none; }
.hv-callout-card {
  position: relative;
  width: max-content; max-width: 300px;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--v2-line-strong);
  border-left: 3px solid var(--v2-orange);
  border-radius: 10px;
  background: rgba(13, 22, 38, 0.94);
  color: var(--v2-ink);
  font-family: var(--v2-font);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hv-callout.is-on .hv-callout-card { opacity: 1; transform: translateY(0); }
.hv-callout-card::after {
  content: "";
  position: absolute; left: 50%; bottom: -30px;
  width: 1px; height: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}
.hv-callout-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--v2-orange); }
.hv-callout-name { margin-top: 3px; font-size: 17px; font-weight: 800; line-height: 1.2; color: #ffffff; }
.hv-callout-where { margin-top: 2px; font-size: 12.5px; color: var(--v2-muted); }
.hv-callout-facts { display: flex; gap: 16px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--v2-line); }
.hv-callout-facts div { min-width: 0; }
.hv-callout-facts b { display: block; font-size: 15px; font-weight: 800; color: #ffffff; white-space: nowrap; }
.hv-callout-facts span { display: block; margin-top: 1px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v2-muted); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .hv-callout-card { transition: none; } }

/* home button, under the north badge */
.hv-homebtn {
  position: absolute; right: 24px; top: 88px; z-index: 6;
  width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(13, 22, 38, 0.9);
  border: 1px solid var(--v2-line-strong);
  color: #ffffff; cursor: pointer;
}
.hv-homebtn:hover { background: var(--v2-red); border-color: var(--v2-red); }
.hv-homebtn:focus-visible { outline: 2px solid var(--v2-amber); outline-offset: 2px; }

/* the left panel runs the full height of the map */
@media (min-width: 768px) {
  .hv-panel {
    left: 0; top: 0; bottom: 0;
    max-height: none;
    border-radius: 0;
    border-width: 0 1px 0 0;
    background: rgba(13, 22, 38, 0.96);
    padding: 18px 18px 14px;
  }
  .hv-panel.is-min {
    left: 16px; top: 16px; bottom: auto;
    border-radius: 12px; border-width: 1px;
  }
}
@media (max-width: 767px) {
  .hv-homebtn { right: 10px; top: 74px; width: 38px; height: 38px; }
}

/* chosen photos and videos */
.hv-thumb { position: relative; width: 76px; height: 76px; border-radius: 6px; overflow: hidden; border: 1px solid var(--v2-line-strong); background: #000000; }
.hv-thumb img, .hv-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; border-radius: 0; }
.hv-thumb.is-video::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #ffffff;
  transform: translate(-40%, -50%); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}
.hv-loc-msg:empty, .hv-form-msg:empty { min-height: 0; }
.hv-mini[hidden] { display: none; }
.hv-pop-media video { background: #000000; }

/* add / remove chosen photos and videos */
.hv-add { display: inline-flex; align-items: center; position: relative; overflow: hidden; }
.hv-add.is-off { opacity: 0.55; cursor: default; }
.hv-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.hv-file:disabled { cursor: default; }
.hv-add:focus-within { outline: 2px solid var(--v2-amber); outline-offset: 1px; }
.hv-add-count { align-self: center; font-size: 12px; color: var(--v2-muted); }
.hv-thumb { overflow: visible; }
.hv-thumb img, .hv-thumb video { border-radius: 5px; }
.hv-thumb.is-bad { border-color: #f87171; box-shadow: 0 0 0 1px #f87171; }
.hv-thumb-x {
  position: absolute; right: -7px; top: -7px; z-index: 2;
  width: 22px; height: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid var(--v2-bar);
  background: var(--v2-red); color: #ffffff; cursor: pointer;
}
.hv-thumb-x:hover { background: var(--v2-red-hover); }
.hv-previews { padding-top: 6px; gap: 12px; }
.pub-sep { flex: 0 0 1px; align-self: center; width: 1px; height: 16px; margin: 0 6px; background: var(--v2-line-strong); }

/* reporter account */
.hv-report { display: grid; gap: 14px; }
.hv-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--v2-line-strong); border-radius: 8px; background: var(--v2-field); }
.hv-switch button { flex: 1 1 0; min-width: 0; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: rgba(255, 255, 255, 0.72); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hv-switch button:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.hv-switch button.is-on { background: var(--v2-panel); color: #ffffff; box-shadow: inset 0 -2px 0 var(--v2-orange); }
.hv-field input[type="password"] {
  width: 100%; box-sizing: border-box; padding: 9px 10px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08); color: #ffffff; font: inherit; font-size: 14px;
}
.hv-acct { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--v2-line-strong); border-radius: 10px; background: var(--v2-panel); }
.hv-acct-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hv-acct-name { min-width: 0; font-size: 16px; font-weight: 800; color: #ffffff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-link { padding: 0; border: 0; background: none; color: var(--v2-muted); font: inherit; font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.hv-link:hover { color: #ffffff; }
.hv-acct-stats { display: flex; gap: 18px; align-items: flex-end; }
.hv-acct-stats b { font-size: 20px; font-weight: 800; color: #ffffff; line-height: 1; }
.hv-acct-stats span { margin-left: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v2-muted); }
.hv-stars { display: flex; align-items: center; color: var(--v2-amber); }
.hv-stars svg { width: 20px; height: 20px; margin-right: 5px; }
.hv-stars b { color: var(--v2-amber); }
.hv-reps { padding: 0; }
.hv-rep { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--v2-line-strong); border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.hv-rep.is-editing { border-color: var(--v2-amber); }
.hv-rep-head { display: flex; gap: 12px; align-items: flex-start; }
.hv-rep-head .hv-thumb { flex: 0 0 auto; overflow: hidden; }
.hv-rep-main { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.hv-rep-date { font-size: 12px; color: var(--v2-muted); }
.hv-rep-stars { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--v2-amber); }
.hv-rep-text { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); overflow-wrap: anywhere; }
.hv-badge.st-pending { border-color: rgba(250, 204, 21, 0.55); background: rgba(202, 138, 4, 0.26); color: #fef08a; }
.hv-badge.st-approved { border-color: rgba(74, 222, 128, 0.5); background: rgba(22, 163, 74, 0.24); color: #bbf7d0; }
.hv-badge.st-rejected { border-color: rgba(248, 113, 113, 0.6); background: rgba(220, 38, 38, 0.28); color: #fecaca; }
.hv-mini.is-primary { background: var(--v2-red); border-color: var(--v2-red); color: #ffffff; }
.hv-mini.is-primary:hover { background: var(--v2-red-hover); }
.hv-mini.is-danger { color: var(--v2-red-ink); }
.hv-cam.is-mine { background: var(--v2-amber); color: #1c1300; }

/* badge or selfie */
.hv-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: flex-end; justify-content: center; background: #1d4ed8; color: #dbeafe; }
.hv-avatar.is-f { background: #be185d; color: #fce7f3; }
.hv-avatar svg { width: 100%; height: 100%; display: block; }
.hv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-avatar.is-big { width: 52px; height: 52px; }
.hv-acct-top { justify-content: flex-start; gap: 12px; }
.hv-acct-id { min-width: 0; display: grid; gap: 4px; }
.hv-acct-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.hv-acct-links label.hv-link { position: relative; overflow: hidden; }
.hv-badge-row { display: flex; gap: 8px; }
.hv-badge-pick { flex: 1 1 0; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--v2-line-strong); background: var(--v2-field); color: var(--v2-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hv-badge-pick.is-on { border-color: var(--v2-amber); box-shadow: inset 0 0 0 1px var(--v2-amber); }

/* a report opened on the map */
.hv-pop-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hv-pop-who { min-width: 0; display: grid; gap: 1px; }
.hv-pop-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-pop .hv-rep-stars { color: #e0a100; }
.hv-pop-media { user-select: none; -webkit-user-select: none; }
.hv-pop-img.is-zoom { cursor: zoom-in; }
.hv-pop-img, .hv-light-media img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.hv-pop-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.hv-pop-bar .hv-pop-nav { margin-top: 0; }
.hv-pop-big, .hv-like { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; border: 1px solid #d6d3d1; background: #ffffff; color: #1c1917; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.hv-like svg { color: #a8a29e; }
.hv-like.is-on { border-color: #c1271d; color: #c1271d; }
.hv-like.is-on svg { color: #c1271d; }
.hv-pop-meta:empty { display: none; }

/* larger view: inside the map, never over all of it */
.hv-light {
  position: absolute; z-index: 40;
  left: calc(384px + (100% - 384px) / 2); top: 50%;
  transform: translate(-50%, -50%);
  width: min(58%, 900px); max-height: 78%;
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px;
  border: 1px solid var(--v2-line-strong); border-radius: 12px;
  background: rgba(13, 22, 38, 0.97);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8);
  user-select: none; -webkit-user-select: none;
}
.hv-light-media { min-height: 0; display: flex; justify-content: center; }
.hv-light-media img, .hv-light-media video { max-width: 100%; max-height: 62vh; border-radius: 8px; object-fit: contain; background: #000000; }
.hv-light .hv-pop-nav { color: var(--v2-ink); margin-top: 0; }
.hv-light-x { position: absolute; right: -12px; top: -12px; width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--v2-bar); background: var(--v2-red); color: #ffffff; cursor: pointer; }
@media (max-width: 767px) { .hv-light { left: 50%; top: 30%; width: 90%; } }

/* the client login page under the shared header */
body.login-page.wfs-pub-v2 .landing-navbar .nav-links { display: none; }

/* headline numbers sit just under the tabs, clear of the map */
.hv-stat { padding: 2px 30px; }
.hv-stat b { font-size: 28px; }
.hv-stat span { margin-top: 4px; font-size: 12px; }
@media (min-width: 768px) { .hv-stats { left: 384px; } }

/* yearly thank-you */
.hv-rewards { padding: 10px 12px; border: 1px solid rgba(245, 180, 40, 0.45); border-radius: 10px; background: rgba(245, 180, 40, 0.08); font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.hv-rewards summary { cursor: pointer; font-weight: 800; color: var(--v2-amber); }
.hv-rewards p { margin: 8px 0 0; }
.hv-rewards ul { margin: 4px 0 0; padding-left: 18px; }
.hv-card-choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--v2-muted); }
.hv-card-choice select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--v2-line-strong); background: var(--v2-field); color: var(--v2-ink); font: inherit; font-size: 13px; }

/* credit line: short, at the bottom, clear of the headline numbers */
.hv-attrib { top: auto; right: auto; left: 396px; bottom: 6px; }
.hv-panel.is-min ~ .hv-attrib, .hv-stage.no-map .hv-attrib { left: 12px; }
@media (max-width: 767px) { .hv-attrib { left: auto; right: 8px; bottom: auto; top: 6px; } }

/* region chooser */
.hv-region { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.hv-region span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v2-muted); }
.hv-region select { flex: 1 1 auto; min-width: 0; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--v2-line-strong); background: var(--v2-field); color: var(--v2-ink); font: inherit; font-size: 13px; font-weight: 600; }
.hv-panel.is-min .hv-region, .hv-panel.is-min .hv-share { display: none; }

/* the photo and video section gets its own large button */
.hv-share {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 8px; padding: 12px 14px;
  border-radius: 8px; border: 1px solid var(--v2-amber);
  background: rgba(245, 180, 40, 0.12); color: #ffffff;
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.hv-share svg { color: var(--v2-amber); }
.hv-share:hover { background: rgba(245, 180, 40, 0.22); }
.hv-share.is-on { background: var(--v2-amber); border-color: var(--v2-amber); color: #1c1300; }
.hv-share.is-on svg { color: #1c1300; }

/* several posts at one place: one icon with a count that spreads out on click */
.hv-camgroup { position: relative; width: 34px; height: 34px; }
.hv-camgroup .hv-cam { position: absolute; left: 0; top: 0; }
.hv-camhub b {
  position: absolute; right: -8px; top: -8px;
  min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box;
  border-radius: 9px; border: 2px solid #ffffff;
  background: var(--v2-red, #c1271d); color: #ffffff; font-size: 11px; font-weight: 800; line-height: 14px; text-align: center;
}
.hv-camchild { opacity: 0; pointer-events: none; transform: translate(0, 0) scale(0.3); transition: transform 0.35s ease, opacity 0.25s ease; }
.hv-camgroup.is-open .hv-camchild { opacity: 1; pointer-events: auto; transform: translate(var(--dx), var(--dy)) scale(1); }
.hv-camline { position: absolute; left: 17px; top: 17px; height: 1.5px; background: #ffffff; box-shadow: 0 0 3px rgba(0, 0, 0, 0.8); transform-origin: 0 50%; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.hv-camgroup.is-open .hv-camline { opacity: 0.95; }
.hv-camgroup.is-open .hv-camhub { background: #1e3a8a; }
@media (prefers-reduced-motion: reduce) { .hv-camchild, .hv-camline { transition: none; } }

.hv-panel-head > div:first-child { min-width: 0; flex: 1 1 auto; }
.hv-count { overflow-wrap: anywhere; }

/* one header row: brand, tabs in the middle, client login */
.pub-header { display: flex; align-items: stretch; height: 56px; padding: 0 18px; gap: 14px; }
.pub-top { display: contents; }
.pub-brand { order: 1; align-self: center; }
.pub-tabs { order: 2; flex: 1 1 auto; height: auto; padding: 0; border-top: 0; justify-content: center; align-items: stretch; }
.pub-tab { border-radius: 0; padding: 0 16px; }
.pub-login { order: 3; margin-left: 0; align-self: center; }
@media (max-width: 700px) {
  .pub-header { height: auto; flex-wrap: wrap; padding: 8px 12px 0; gap: 6px 10px; }
  .pub-login { margin-left: auto; }
  .pub-tabs { order: 4; flex: 1 0 100%; height: 34px; justify-content: flex-start; }
}

/* a post opened on the map sits above every marker and always fits */
.maplibregl-popup { z-index: 30; }
.hv-pop-img { max-height: 210px; }
.hv-pop-media video.hv-pop-img { width: 100%; }

/* the region question on arrival */
.hv-pick {
  position: absolute; z-index: 35; top: 0; bottom: 0; right: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; box-sizing: border-box;
  background: rgba(6, 11, 20, 0.55);
}
@media (min-width: 768px) { .hv-pick { left: 384px; } }
.hv-pick-card {
  width: min(640px, 100%); max-height: 100%; overflow-y: auto;
  padding: 22px 24px; box-sizing: border-box;
  border: 1px solid var(--v2-line-strong); border-radius: 14px;
  background: rgba(13, 22, 38, 0.97); color: var(--v2-ink);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8);
}
.hv-pick-card h2 { margin: 6px 0 0; font-size: 24px; font-weight: 800; color: #ffffff; }
.hv-pick-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--v2-muted); }
.hv-pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.hv-pick-btn {
  display: grid; gap: 3px; padding: 12px 14px; text-align: left;
  border-radius: 10px; border: 1px solid var(--v2-line-strong); background: var(--v2-field);
  color: var(--v2-ink); font: inherit; cursor: pointer;
}
.hv-pick-btn:first-child { grid-column: 1 / -1; }
.hv-pick-btn:hover { border-color: var(--v2-red); background: rgba(193, 39, 29, 0.16); }
.hv-pick-btn.is-last { border-color: var(--v2-amber); }
.hv-pick-btn b { font-size: 15px; font-weight: 800; color: #ffffff; }
.hv-pick-btn span { font-size: 12px; color: var(--v2-muted); }
@media (max-width: 520px) { .hv-pick-grid { grid-template-columns: minmax(0, 1fr); } }

/* time left at a fire: a small ring under the home button that empties */
.hv-ring { position: absolute; right: 31px; top: 140px; z-index: 6; width: 30px; height: 30px; pointer-events: none; }
.hv-ring[hidden] { display: none; }
.hv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hv-ring circle { fill: rgba(13, 22, 38, 0.75); stroke-width: 3; }
.hv-ring-track { stroke: rgba(255, 255, 255, 0.18); }
.hv-ring-arc { fill: none !important; stroke: var(--v2-amber); stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 0; }
@keyframes hvRing { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 88; } }
@media (max-width: 767px) { .hv-ring { right: 14px; top: 120px; } }

/* countries side by side */
.hv-countries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 10px; border: 1px solid var(--v2-line-strong); border-radius: 8px; background: var(--v2-field); }
.hv-countries[hidden] { display: none; }
.hv-country { min-width: 0; padding: 8px 10px; display: grid; gap: 1px; }
.hv-country + .hv-country { border-left: 1px solid var(--v2-line-strong); }
.hv-country span { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v2-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-country b { font-size: 20px; font-weight: 800; line-height: 1.1; color: #ffffff; }
.hv-country small { font-size: 10.5px; line-height: 1.3; color: var(--v2-muted); }
.hv-panel.is-min .hv-countries { display: none; }

/* region statistics */
.hv-now { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--v2-line); }
.hv-now-name { margin-top: 2px; font-size: 16px; font-weight: 800; line-height: 1.25; color: #ffffff; overflow-wrap: anywhere; }
.hv-now .hv-action { padding: 7px 10px; font-size: 12.5px; flex: 0 0 auto; }
.hv-stats-title { margin-top: 14px; font-size: 14px; font-weight: 800; color: #ffffff; }
.hv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.hv-tile { padding: 10px 12px; border: 1px solid var(--v2-line-strong); border-radius: 8px; background: var(--v2-panel); }
.hv-tile b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; color: #ffffff; }
.hv-tile span { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--v2-muted); }
.hv-chart-title { margin-top: 18px; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--v2-muted); }
.hv-chart { margin-top: 8px; }
.hv-bars { display: flex; align-items: flex-end; gap: 2px; height: 84px; border-bottom: 1px solid var(--v2-line-strong); }
.hv-bar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; padding: 0; border: 0; background: transparent; cursor: default; }
.hv-bar i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--v2-orange); }
.hv-bar:hover i, .hv-bar:focus-visible i { background: #ff8b7e; }
.hv-bar:focus-visible { outline: 2px solid var(--v2-amber); outline-offset: 1px; }
.hv-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10.5px; color: var(--v2-muted); }
.hv-chart-read { margin-top: 4px; min-height: 16px; font-size: 12px; color: var(--v2-ink); }
.hv-hbars { display: grid; gap: 6px; margin-top: 8px; }
.hv-hbar { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; color: var(--v2-ink); }
.hv-hbar span { color: var(--v2-muted); }
.hv-hbar-track { height: 10px; }
.hv-hbar-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--v2-orange); }
.hv-hbar b { min-width: 34px; text-align: right; font-weight: 800; color: #ffffff; }
.hv-top { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.hv-top button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--v2-line); background: transparent; color: var(--v2-ink); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.hv-top button:hover { border-color: var(--v2-line-strong); background: rgba(255, 255, 255, 0.05); }
.hv-top button.is-on { border-color: var(--v2-red); }
.hv-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-top b { flex: 0 0 auto; color: #ffffff; }
.hv-share svg { width: 24px; height: 24px; }

/* the three WebGIS numbers are not for the public page */
.hv-stats { display: none !important; }

/* flags */
.hv-flag { flex: 0 0 auto; width: 22px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.hv-country-name { display: flex; align-items: center; gap: 6px; }
.hv-country-name i { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.hv-country .hv-flag { width: 18px; height: 9px; }

/* region question: one column per country */
.hv-pick-card { width: min(760px, 100%); display: grid; gap: 0; }
.hv-pick-btn.is-wide { margin-top: 16px; }
.hv-pick-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.hv-pick-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.hv-pick-country { display: flex; align-items: center; gap: 8px; padding: 2px 2px 4px; border-bottom: 1px solid var(--v2-line-strong); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #ffffff; }
.hv-pick-country .hv-flag { width: 26px; height: 13px; }
.hv-pick-btn:first-child { grid-column: auto; }
@media (max-width: 620px) { .hv-pick-cols { grid-template-columns: minmax(0, 1fr); } }

.hv-country { padding: 8px 7px; }
.hv-country span.hv-country-name { letter-spacing: 0; gap: 5px; overflow: visible; }
.hv-country .hv-flag { width: 16px; height: 8px; }

/* phone: the whole bottom sheet scrolls, not only its last part */
@media (max-width: 767px) {
  .hv-panel { display: block; max-height: 58dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
  .hv-panel.is-min { overflow: hidden; }
  .hv-body { overflow: visible; max-height: none; }
  .hv-list { max-height: none; }
  .hv-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
