/* ============================================
   MOBILE LAYOUT (active only with html.cefi-mobile, see scripts/mobile.js)
   ============================================ */

html:not(.cefi-mobile) #tool-mobile-more {
  display: none !important;
}

.cefi-mobile-screen[hidden],
.cefi-mobile-pickbar[hidden],
.cefi-mobile-analysis-bar[hidden],
.cefi-mobile-analysis-pill[hidden] {
  display: none !important;
}

html.cefi-mobile {
  /* Desktop shrinks the whole page via --panel-zoom; keep true pixel sizes for touch. */
  --panel-zoom: 100%;
  --cefi-mobile-toolbar-h: 72px;
  --cefi-mobile-blue: rgb(0, 51, 153);
  --cefi-mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --cefi-mobile-safe-top: env(safe-area-inset-top, 0px);
}

/* ---------- Bottom toolbar ---------- */
html.cefi-mobile .toolbar {
  top: auto !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  zoom: 1 !important;
  width: auto !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px 0;
  padding: 8px 6px calc(8px + var(--cefi-mobile-safe-bottom)) !important;
  border-radius: 18px 18px 0 0 !important;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12) !important;
  transform: none !important;
  transition: none !important;
}

html.cefi-mobile .toolbar .tool-btn {
  display: none !important;
  width: auto !important;
  min-width: 0;
  gap: 3px;
  transform: none !important;
  transition: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* Id selectors are needed to beat the desktop whitelist (#tool-home {display:flex !important}). */
html.cefi-mobile .toolbar #tool-home,
html.cefi-mobile .toolbar #tool-zoom-in,
html.cefi-mobile .toolbar #tool-zoom-out,
html.cefi-mobile .toolbar #tool-compare-window,
html.cefi-mobile .toolbar #tool-info,
html.cefi-mobile .toolbar #tool-demo,
html.cefi-mobile .toolbar #tool-chatbot,
html.cefi-mobile .toolbar #tool-cefi-download {
  display: none !important;
}

html.cefi-mobile .toolbar .tool-btn.tool-btn-mobile-primary {
  display: flex !important;
}

html.cefi-mobile .toolbar.mobile-more-open #tool-home,
html.cefi-mobile .toolbar.mobile-more-open #tool-zoom-in,
html.cefi-mobile .toolbar.mobile-more-open #tool-zoom-out,
html.cefi-mobile .toolbar.mobile-more-open #tool-compare-window,
html.cefi-mobile .toolbar.mobile-more-open #tool-info {
  display: flex !important;
  order: -1;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html.cefi-mobile .toolbar #tool-chatbot {
  display: flex !important;
  position: fixed !important;
  top: calc(12px + var(--cefi-mobile-safe-top));
  right: 12px;
  bottom: auto !important;
  left: auto !important;
  z-index: 2147483647;
  width: 48px !important;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(0, 51, 153, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

html.cefi-mobile .toolbar #tool-chatbot .tool-label {
  display: none;
}

html.cefi-mobile .toolbar .icon-wrapper {
  width: 40px !important;
  height: 40px !important;
  box-shadow: none;
}

html.cefi-mobile .toolbar .tool-btn:hover .icon-wrapper {
  transform: none;
}

html.cefi-mobile .toolbar .tool-btn:not(.active):not(.anomaly-active):hover .icon-wrapper {
  background: rgba(255, 255, 255, 0.6);
  color: var(--cefi-mobile-blue);
  box-shadow: none;
}

html.cefi-mobile .toolbar .icon-wrapper svg {
  width: 18px !important;
  height: 18px !important;
}

/* Year/month label inside the Date circle (inline font-size is set by toolbar.js). */
html.cefi-mobile #tool-time .icon-wrapper {
  font-size: 9px !important;
  overflow: hidden;
}

html.cefi-mobile #tool-time-value {
  display: block;
  max-width: 32px;
  font-size: 9px;
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.02em;
  word-spacing: 32px;
}

html.cefi-mobile .toolbar .tool-label {
  font-size: 11px !important;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Toolbar sub-panels (date, layers, info, compare...) become bottom sheets. */
html.cefi-mobile .toolbar .timeline,
html.cefi-mobile .toolbar .cbc-panel {
  position: fixed !important;
  left: 8px !important;
  right: 8px !important;
  top: auto !important;
  bottom: calc(var(--cefi-mobile-toolbar-h) + 8px) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: calc(100dvh - var(--cefi-mobile-toolbar-h) - 24px - var(--cefi-mobile-safe-top)) !important;
  overflow-y: auto !important;
  transform: none !important;
  zoom: 1 !important;
  box-sizing: border-box;
}

html.cefi-mobile .toolbar .timeline::before,
html.cefi-mobile .toolbar .timeline::after,
html.cefi-mobile .toolbar .cbc-panel::before,
html.cefi-mobile .toolbar .cbc-panel::after {
  display: none !important;
}

/* The desktop filters popover is replaced by the fullscreen screen. */
html.cefi-mobile #tool-filters .masks-extra-buttons,
html.cefi-mobile #tool-filters .masks-crops-panel,
html.cefi-mobile #tool-filters .masks-country-panel,
html.cefi-mobile .cefi-selection-hint {
  display: none !important;
}

/* ---------- Map controls ---------- */
html.cefi-mobile .leaflet-bottom {
  bottom: calc(var(--cefi-mobile-toolbar-h) + 4px);
}

/* Compact legends: explicit sizes instead of the desktop zoom. */
html.cefi-mobile .legendCefi,
html.cefi-mobile .legendAnom,
html.cefi-mobile #legendCefi,
html.cefi-mobile #legendAnom {
  zoom: 1 !important;
}

html.cefi-mobile .legendCefi,
html.cefi-mobile .legendAnom {
  width: auto !important;
  min-width: 0 !important;
  padding: 6px 8px 6px 6px !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15) !important;
  opacity: 0.92;
}

html.cefi-mobile .legendCefi {
  bottom: calc(var(--cefi-mobile-toolbar-h) + 8px) !important;
  left: 8px !important;
}

html.cefi-mobile.cefi-mobile-picking .legendCefi {
  bottom: calc(var(--cefi-mobile-pickbar-h, 150px) + 8px) !important;
}

html.cefi-mobile .legendCefi .legend-gradient-title,
html.cefi-mobile .legendAnom .legend-gradient-title {
  font-size: 11px !important;
  line-height: 1.2;
}

html.cefi-mobile .legendCefi .legend-gradient-divider,
html.cefi-mobile .legendAnom .legend-gradient-divider {
  margin: 4px 0 6px !important;
}

html.cefi-mobile #legendCefi .legend-gradient-layout,
html.cefi-mobile #legendAnom .legend-gradient-layout {
  height: 130px !important;
  min-height: 0 !important;
  column-gap: 5px !important;
}

html.cefi-mobile .legendCefi .legend-gradient-bar,
html.cefi-mobile .legendAnom .legend-gradient-bar {
  width: 10px !important;
  border-radius: 4px !important;
}

html.cefi-mobile .legendCefi .legend-gradient-ticks li,
html.cefi-mobile .legendAnom .legend-gradient-ticks li {
  gap: 3px !important;
  line-height: 1;
}

html.cefi-mobile .legendCefi .legend-gradient-tick-line,
html.cefi-mobile .legendAnom .legend-gradient-tick-line {
  width: 5px !important;
}

html.cefi-mobile .legendCefi .legend-gradient-tick-label,
html.cefi-mobile .legendAnom .legend-gradient-tick-label {
  font-size: 9px !important;
}

html.cefi-mobile .leaflet-control-attribution {
  font-size: 9px;
  max-width: 60vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.cefi-mobile .cefi-map-logo {
  zoom: 0.75;
}

html.cefi-mobile.cefi-mobile-filters-open .toolbar,
html.cefi-mobile.cefi-mobile-picking .toolbar,
html.cefi-mobile.cefi-mobile-analysis-open .toolbar {
  display: none !important;
}

html.cefi-mobile.cefi-mobile-picking .leaflet-bottom {
  bottom: calc(var(--cefi-mobile-pickbar-h, 150px) + 4px);
}

/* ---------- Shared controls ---------- */
.cefi-mobile-screen,
.cefi-mobile-pickbar,
.cefi-mobile-analysis-bar,
.cefi-mobile-analysis-pill {
  font-family: inherit;
  color: #1f2937;
  -webkit-tap-highlight-color: transparent;
}

.cefi-mobile-screen button,
.cefi-mobile-pickbar button,
.cefi-mobile-analysis-bar button {
  font: inherit;
  cursor: pointer;
}

.cefi-mobile-screen svg,
.cefi-mobile-pickbar svg,
.cefi-mobile-analysis-bar svg,
.cefi-mobile-info-header svg,
.cefi-mobile-analysis-pill svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.cefi-mobile-icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #374151;
  flex: none;
}

.cefi-mobile-icon-btn:active {
  background: rgba(0, 0, 0, 0.06);
}

.cefi-mobile-text-btn {
  border: none;
  background: transparent;
  color: var(--cefi-mobile-blue);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 8px;
}

.cefi-mobile-primary-btn,
.cefi-mobile-secondary-btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cefi-mobile-primary-btn {
  border: none;
  background: var(--cefi-mobile-blue);
  color: #fff;
}

.cefi-mobile-primary-btn:disabled {
  background: #c7cedb;
  color: #fff;
  cursor: default;
}

.cefi-mobile-secondary-btn {
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #1f2937;
}

.cefi-mobile-secondary-btn:disabled {
  opacity: 0.45;
}

.cefi-mobile-secondary-btn.cefi-mobile-icon-only {
  padding: 0;
  width: 48px;
}

/* ---------- Fullscreen filters ---------- */
.cefi-mobile-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  flex-direction: column;
  background: #f4f6fa;
}

.cefi-mobile-screen-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: calc(6px + var(--cefi-mobile-safe-top)) 8px 6px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.cefi-mobile-screen-title {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.cefi-mobile-screen-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 12px 20px;
}

.cefi-mobile-section {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cefi-mobile-section-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.cefi-mobile-section-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6b7280;
}

.cefi-mobile-chip-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.cefi-mobile-chip {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
}

.cefi-mobile-chip.is-active {
  border-color: var(--cefi-mobile-blue);
  background: var(--cefi-mobile-blue);
  color: #fff;
}

.cefi-mobile-selection {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 0 0 12px;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 14px;
}

.cefi-mobile-selection.has-value {
  background: rgba(0, 51, 153, 0.08);
  color: var(--cefi-mobile-blue);
  font-weight: 600;
}

.cefi-mobile-selection-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cefi-mobile-selection:not(.has-value) .cefi-mobile-selection-text {
  color: #6b7280;
}

.cefi-mobile-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--cefi-mobile-blue);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.cefi-mobile-link-btn svg {
  width: 18px;
  height: 18px;
}

.cefi-mobile-clear-btn {
  width: 40px;
  height: 40px;
  color: #6b7280;
}

.cefi-mobile-clear-btn svg {
  width: 16px;
  height: 16px;
}

.cefi-mobile-crop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cefi-mobile-crop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 76px;
  padding: 8px 4px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.cefi-mobile-crop svg,
.cefi-mobile-crop img {
  width: 28px;
  height: 28px;
}

.cefi-mobile-crop span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cefi-mobile-crop.is-active {
  border-color: var(--cefi-mobile-blue);
  background: rgba(0, 51, 153, 0.08);
  color: var(--cefi-mobile-blue);
  box-shadow: inset 0 0 0 1px var(--cefi-mobile-blue);
}

.cefi-mobile-crop:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cefi-mobile-screen-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px calc(12px + var(--cefi-mobile-safe-bottom));
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.cefi-mobile-filter-summary {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cefi-mobile-screen-footer .cefi-mobile-primary-btn {
  min-width: 120px;
}

/* ---------- Map pick bar ---------- */
.cefi-mobile-pickbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483646;
  padding: 14px 12px calc(12px + var(--cefi-mobile-safe-bottom));
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.15);
}

.cefi-mobile-pickbar-message {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
  line-height: 1.35;
}

.cefi-mobile-pickbar-actions {
  display: flex;
  gap: 8px;
}

.cefi-mobile-pickbar-actions .cefi-mobile-secondary-btn {
  padding: 0 12px;
}

.cefi-mobile-pickbar-actions .cefi-mobile-secondary-btn[hidden] {
  display: none;
}

.cefi-mobile-pickbar-actions .cefi-mobile-primary-btn {
  flex: 1;
}

/* ---------- Fullscreen analysis ---------- */
html.cefi-mobile {
  --cefi-mobile-analysis-bar-h: calc(52px + var(--cefi-mobile-safe-top));
}

.cefi-mobile-analysis-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--cefi-mobile-analysis-bar-h);
  box-sizing: border-box;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--cefi-mobile-safe-top) 8px 0;
  background: var(--cefi-mobile-blue);
  color: #fff;
}

.cefi-mobile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 14px 0 6px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.cefi-mobile-analysis-title {
  font-size: 16px;
  font-weight: 700;
}

html.cefi-mobile:not(.cefi-mobile-analysis-open) .cefi-point-window {
  display: none !important;
}

html.cefi-mobile.cefi-mobile-analysis-open body {
  overflow: hidden;
}

html.cefi-mobile.cefi-mobile-analysis-open .cefi-point-window {
  position: fixed !important;
  top: var(--cefi-mobile-analysis-bar-h) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  zoom: 1 !important;
  transform: none !important;
  z-index: 2147483645 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: none !important;
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
}

/* Several analyses: stack them, newest on top (natural DOM order). */
html.cefi-mobile.cefi-mobile-analysis-open .cefi-point-window .compare-window-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: block !important;
}

html.cefi-mobile.cefi-mobile-analysis-open .cefi-point-window .compare-window-body > * {
  margin-bottom: 10px;
}

html.cefi-mobile.cefi-mobile-analysis-open .cefi-point-window.collapsed .compare-window-body,
html.cefi-mobile.cefi-mobile-analysis-open .cefi-point-window.is-collapsed .compare-window-body {
  display: block !important;
}

html.cefi-mobile .cefi-point-window .compare-window-header {
  cursor: default !important;
}

html.cefi-mobile .cefi-point-window .compare-window-header-actions > :not(.compare-window-close),
html.cefi-mobile .cefi-point-window .compare-window-resize-handle,
html.cefi-mobile .cefi-point-window [class*="hint"] {
  display: none !important;
}

html.cefi-mobile .cefi-point-window .compare-window-close {
  min-width: 40px;
  min-height: 40px;
}

html.cefi-mobile .cefi-point-window .cefi-point-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html.cefi-mobile .cefi-point-window .cefi-indicator-strip {
  flex-wrap: wrap !important;
}

html.cefi-mobile .cefi-point-window .cefi-point-chart-wrap {
  height: 380px !important;
  min-height: 0 !important;
  max-height: none !important;
}

html.cefi-mobile .cefi-point-window .cefi-point-window-bullet-row {
  flex-wrap: wrap !important;
}

.cefi-mobile-analysis-pill {
  position: fixed;
  left: 50%;
  bottom: calc(var(--cefi-mobile-toolbar-h) + 12px);
  transform: translateX(-50%);
  z-index: 2147483646;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--cefi-mobile-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 51, 153, 0.35);
  cursor: pointer;
}

/* Notices must stay above the mobile overlays. */
html.cefi-mobile #messageModal {
  z-index: 2147483647 !important;
}

/* ---------- Info screen ---------- */
html:not(.cefi-mobile) .cefi-mobile-info-header {
  display: none !important;
}

/* The panel lives inside the #tool-info <button>, so reset inherited button styles. */
html.cefi-mobile #info-panel {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  zoom: 1 !important;
  z-index: 2147483646 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #f4f6fa !important;
  color: #1f2937;
  text-align: left;
  cursor: default;
  font-family: 'Montserrat', sans-serif;
  white-space: normal;
}

html.cefi-mobile #info-panel::before,
html.cefi-mobile #info-panel::after {
  display: none !important;
}

.cefi-mobile-info-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--cefi-mobile-analysis-bar-h);
  box-sizing: border-box;
  padding: var(--cefi-mobile-safe-top) 8px 0;
  background: var(--cefi-mobile-blue);
  color: #fff;
}

html.cefi-mobile #info-panel .info-panel-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 12px calc(20px + var(--cefi-mobile-safe-bottom));
}

/* Heading card */
html.cefi-mobile #info-panel .info-panel-heading {
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html.cefi-mobile #info-panel .info-panel-heading svg {
  width: 36px;
  height: 36px;
}

html.cefi-mobile #info-panel .info-panel-heading strong {
  font-size: 17px;
  line-height: 1.3;
  color: #1f3b7a;
}

html.cefi-mobile #info-panel .info-panel-heading .info-panel-description {
  max-width: none;
  margin-top: 6px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
  color: #4b5563;
}

/* Coverage: label on top, period + download below. */
html.cefi-mobile #info-panel .info-cefi-coverage,
html.cefi-mobile #info-panel .info-coverage-row {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 12px 14px;
  margin: 0;
  border: none;
  border-bottom: 1px solid #eef0f4;
  background: #fff;
  font-size: 14px;
}

html.cefi-mobile #info-panel .info-cefi-coverage {
  border-radius: 14px;
  margin-bottom: 18px;
  border-bottom: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html.cefi-mobile #info-panel .info-cefi-coverage > span,
html.cefi-mobile #info-panel .info-coverage-row > span {
  font-size: 12px;
  font-weight: 700;
  color: #1f3b7a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html.cefi-mobile #info-panel .info-cefi-coverage strong,
html.cefi-mobile #info-panel .info-coverage-row strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  white-space: normal;
}

html.cefi-mobile #info-panel .info-download-btn {
  width: 40px;
  height: 40px;
  flex: none;
}

html.cefi-mobile #info-panel .info-coverage-list {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html.cefi-mobile #info-panel .info-coverage-list .info-coverage-row:last-child {
  border-bottom: none;
}

html.cefi-mobile #info-panel .info-panel-section-title {
  margin: 0 4px 8px;
  padding: 0;
  border: none;
  font-size: 12px;
  color: #6b7280;
}

html.cefi-mobile #info-panel .info-panel-source {
  margin: 8px 4px 18px;
  font-size: 12px;
  letter-spacing: 0;
}

/* Resources and contacts: full-width tappable rows. */
html.cefi-mobile #info-panel .info-resources-list,
html.cefi-mobile #info-panel .info-contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

html.cefi-mobile #info-panel .info-contact-section {
  gap: 0;
  margin: 0;
  padding: 0;
  border: none;
}

html.cefi-mobile #info-panel .info-contact-links {
  margin-bottom: 0;
}

html.cefi-mobile #info-panel .info-contact-button {
  margin-bottom: 8px;
}

html.cefi-mobile #info-panel .info-resources-list a,
html.cefi-mobile #info-panel .info-contact-button,
html.cefi-mobile #info-panel .info-contact-links a {
  align-items: center;
  min-height: 52px;
  box-sizing: border-box;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  width: 100%;
}

html.cefi-mobile #info-panel .info-resources-list small,
html.cefi-mobile #info-panel .info-contact-button small,
html.cefi-mobile #info-panel .info-contact-links small {
  font-size: 12px;
}
