/*
Originates at https://modelearth.github.io/localsite/css/base.css 
Used in localsite, modelearth, io, neighborhood, trees
*/
:root {
    --header-height: 80px;  /* Define header height as CSS variable */
    --top-nav-offset: var(--header-height);  /* Combined height of fixed top elements; updated by initTopNavOffset() in localsite.js */
    /* Window height minus what's above #fullscreen at the top of the page: the full header, and the search
       filters when they show there (--fullscreen-top, measured by initTopNavOffset() in localsite.js), or the
       header's current height (--headerbar-offset) until #fullscreen is measured.
       Sizes #fullscreen and #halfscreen below, and the Project Goals hero (project/goals/css/goals.css). */
    --fullscreen-height: calc(100vh - var(--fullscreen-top, var(--headerbar-offset, var(--header-height))));
    --side-nav-width: 67px;
    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E5E7EB;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --text-tertiary: #1A1A1A;
    --text-muted: #9CA3AF;
    --text-header: #777;
    --text-header-hover: #444;
    --header-icon: #aaa; /* The earth icon logo (.headerEarthIcon), lighter than the header's text in light mode */
    --header-icon-hover: #666;
    --accent-green: #10B981;
    --accent-blue: #3B82F6;
    --accent-orange: #F59E0B;
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    --input-border: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --border-radius: 12px;
    --sidebar-width-expanded: 67px;
    --sidebar-collapsed: 64px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-header: #F2F6F9;
    --bg-header-text: #333;
    --bg-footer: #dae8eb;
    --bg-footer-swatch: #dae8eb;
    --btn-radius: 999px;
    --panel-radius: 16px;
    --card-radius: 12px;
    --control-radius: 8px;
}
.dark {
    --bg-primary: #222;
    --bg-secondary: #2b2926;
    --bg-tertiary: #374151;
    --text-secondary: #6B7280; /* too light for icons on team/projects */
    --text-secondary: #bbb;
    --text-primary: #eee;
    --text-header: #aaa;
    --text-header-hover: #fff;
    --header-icon: #aaa;
    --header-icon-hover: #fff;
    --border-light: #aaa;
    --border-medium: #666;
    --bg-footer: #222;
    --bg-header: #084975;
    --bg-header-text: #ddd;
}


/* Shared theme layer for css/themes/*.css overrides */
:root {
  --bg-page: #fafafa;
  --bg-card: #ffffff;
  --accent: #235d39;
  --accent-hover: #1d4d2f;
  --accent-soft: #e8f5e8;
  --text-main: #37352f;
  --text-muted: #666666;
  --border-subtle: rgba(55, 53, 47, 0.09);
  --chip-bg: #f3f4f6;
  --chip-text: #343434;
  --link-color: #c96432;
  --link-hover: #a8502a;
  --font-primaryX: 'Nunito Sans', Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-primary: apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-secondary: Georgia, serif;
  --font-headline: var(--font-primary);
  --font-subheadline: var(--font-primary);
  --font-body: var(--font-primary);
  --panel-radius: 12px;
  --button-radius: 999px;
  --chip-radius: 999px;
  --alert-radius: 12px;
  --button-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --button-shadow-hover: 0 1px 3px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --color-primary: var(--accent);
  --color-primary-hover: var(--accent-hover);
  --color-secondary: #b35488;
  --color-secondary-hover: #9b427d;
  --color-tertiary: #084975;
  --color-tertiary-hover: color-mix(in srgb, var(--color-tertiary) 85%, black);
  --color-success: #6aa442;
  --color-success-hover: #5a8d38;
  --color-danger: #d64127;
  --color-danger-hover: #b5371f;
  --color-warning: #faa621;
  --color-warning-hover: #e8971a;
  --color-info: #badbe5;
  --color-info-hover: #a5d0da;
  --color-info-text: var(--text-main);
  --color-light: #fefbf9;
  --color-light-hover: #f2f1ee;
  --color-light-text: var(--text-main);
  --color-dark: #212721;
  --color-dark-hover: #161916;
  --alert-primary-bg: rgba(59, 130, 246, 0.12);
  --alert-primary-text: #1d4ed8;
  --alert-primary-accent: #5B9BD5;
  --alert-success-bg: rgba(106, 164, 66, 0.08);
  --alert-success-text: var(--color-success);
  --alert-danger-bg: rgba(214, 65, 39, 0.08);
  --alert-danger-text: var(--color-danger);
  --alert-warning-bg: rgba(251, 191, 36, 0.12);
  --alert-warning-text: #a16207;
  --alert-info-bg: rgba(186, 219, 229, 0.15);
  --alert-info-text: #1a738b;
  --alert-info-accent: var(--color-info);
  --badge-primary-bg: rgba(59, 130, 246, 0.12);
  --badge-primary-text: var(--alert-primary-text);
  --badge-secondary-bg: rgba(238, 144, 123, 0.12);
  --badge-secondary-text: var(--color-secondary);
  --badge-success-bg: rgba(106, 164, 66, 0.12);
  --badge-success-text: var(--alert-success-text);
  --badge-danger-bg: rgba(214, 65, 39, 0.12);
  --badge-danger-text: var(--alert-danger-text);
  --badge-warning-bg: rgba(250, 166, 33, 0.12);
  --badge-warning-text: var(--alert-warning-text);
  --badge-info-bg: rgba(186, 219, 229, 0.2);
  --badge-info-text: var(--alert-info-text);
  --notion-fg-default: var(--text-main);
  --notion-bg: var(--bg-page);
  --notion-default: var(--bg-card);
  --soft-bg-green: #f4f7f6;
  --soft-bg-blue: #f1f5f8;
  --soft-bg-yellow: #fdf8f0;
  --soft-bg-red: #fbf4f3;
  --soft-bg-purple: #f6f5f7;
  --notion-gray: #f3f4f6;
  --notion-brown: #f2e6df;
  --notion-orange: #fae0c2;
  --notion-yellow: #fff8e1;
  --notion-green: #e8f5e8;
  --notion-blue: #e3f2fd;
  --notion-purple: #f3e5f5;
  --notion-pink: #f8e8ec;
  --notion-red: #ffebee;
  --notion-gray-text: #666666;
  --notion-brown-text: #6e4f47;
  --notion-orange-text: #a65a17;
  --notion-yellow-text: #b8891a;
  --notion-green-text: #235d39;
  --notion-blue-text: #084975;
  --notion-purple-text: #7a6f84;
  --notion-pink-text: #aa483e;
  --notion-red-text: #d64127;
  --heatmap-0: #ddf1f1;
  --heatmap-1: #b8e6e6;
  --heatmap-2: #7dd3d3;
  --heatmap-3: #42c0c0;
  --heatmap-4: #2a9a9a;
  --heatmap-5: #1a6b6b;
  --heatmap-hot-0: #f3dfdc;
  --heatmap-hot-1: #f5cfca;
  --heatmap-hot-2: #efaaa1;
  --heatmap-hot-3: #e98578;
  --heatmap-hot-4: #dd5a47;
  --heatmap-hot-5: #d64127;
  --heatmap-cool-0: #f7e6d5;
  --heatmap-cool-1: #fad4b3;
  --heatmap-cool-2: #f5b076;
  --heatmap-cool-3: #f08c39;
  --heatmap-cool-4: #d6751f;
  --heatmap-cool-5: #a65a17;
  --heatmap-warm-0: #dde8ef;
  --heatmap-warm-1: #badbe5;
  --heatmap-warm-2: #8bc5e0;
  --heatmap-warm-3: #5aabda;
  --heatmap-warm-4: #2e8cc7;
  --heatmap-warm-5: #084975;
  /* Dark mode scale: near the dark card color at 0, brightest at 5 */
  --heatmap-dark-0: #224a48;
  --heatmap-dark-1: #1a6b6b;
  --heatmap-dark-2: #2a9a9a;
  --heatmap-dark-3: #42c0c0;
  --heatmap-dark-4: #7dd3d3;
  --heatmap-dark-5: #b8e6e6;
}
.dark {
  --bg-page: #111827;
  --bg-card-darkblue: #1f2937; /* Saving as dark blue sample */
  --bg-card: #2b2926;
  --text-main: #e5e7eb;
  --text-muted: #787774;
  --soft-bg-green: rgba(106, 164, 66, 0.16);
  --soft-bg-blue: rgba(91, 155, 213, 0.18);
  --soft-bg-yellow: rgba(250, 166, 33, 0.16);
  --soft-bg-red: rgba(214, 65, 39, 0.16);
  --soft-bg-purple: rgba(138, 103, 171, 0.18);
  --notion-gray: rgba(148, 163, 184, 0.18);
  --notion-brown: rgba(110, 79, 71, 0.22);
  --notion-orange: rgba(166, 90, 23, 0.22);
  --notion-yellow: rgba(184, 137, 26, 0.22);
  --notion-green: rgba(35, 93, 57, 0.22);
  --notion-blue: rgba(91, 155, 213, 0.22);
  --notion-purple: rgba(122, 111, 132, 0.22);
  --notion-pink: rgba(179, 84, 136, 0.22);
  --notion-red: rgba(214, 65, 39, 0.22);
  --notion-green-text: #9fc7aa;
  --notion-blue-text: #a9cce6;
  --alert-primary-bg: rgba(59, 130, 246, 0.24);
  --alert-primary-text: #93c5fd;
  --badge-primary-text: #bfdbfe;
  --alert-primary-accent: #60a5fa;
  --alert-success-bg: rgba(106, 164, 66, 0.18);
  --alert-success-text: #b7d59f;
  --alert-danger-bg: rgba(214, 65, 39, 0.18);
  --alert-danger-text: #f1b1a8;
  --alert-warning-bg: rgba(250, 166, 33, 0.14);
  --alert-warning-text: #e8b15e;
  --color-info: #084975;
  --color-info-hover: #063a5d;
  --alert-info-bg: rgba(72, 124, 165, 0.24);
  --alert-info-text: #aac8df;
  --alert-info-accent: #375a7f;
  --badge-secondary-text: #f0b8ac;
  --badge-success-text: var(--alert-success-text);
  --badge-danger-text: var(--alert-danger-text);
  --badge-warning-text: var(--alert-warning-text);
  --badge-info-text: #bfe1ee;
  --border-subtle: #374151;
  --chip-bg: #111827;
  --chip-text: #f3f4f6;
  --color-light: #1f2937;
  --color-light-hover: #374151;
  --color-light-text: #f9fafb;
  --color-info-text: #ffffff;
}
body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
}
a:hover {
  color: var(--link-hover);
}

#side-nav {
  width: 62px;
  flex-shrink: 0;
}
.main-nav {
  flexXXX: 0 0 189px !important;
  width: 189px !important;
  flex-shrink: 0;
}
#side-nav-fixed::-webkit-scrollbar, #side-nav-content::-webkit-scrollbar {
    display: none;
}
.main-nav-full {
  width: 252px !important;
  flex-shrink: 0; /* Prevents the column from shrinking below 257px */
}
@media (max-width: 600px) {
  .main-nav {
    width:100% !important;
    flex: 2;
  }
  .main-nav-full {
    width:100% !important;
  }
  .chart-controls {
    width: 100%;
  }
  .chart-controls select {
    width: 100%;
  }
  #main-content .whichLinesHolder {
    display: block !important;
    width: 100%;
    margin-bottom: 10px;
  }
}
.sidebar-hidden #side-nav {
  width: 0px !important;
  display: none !important;
}

@media (max-width: 600px) {
  :root {
      --header-height: 60px;
  }
  #side-nav-fixed {
    width:  100% !important;
    right: 0px !important;
  }
}
/* Also in base.css */
.flexbody {
    display: flex;
    height: 100vh;
    flex-direction: row;
}

/* Since pages in team don't have .flexbody in body tag. */
body {
    /*
    display: flex;
    height: 100vh;
    flex-direction: row;
    */
    -webkit-font-smoothing: antialiased;
}

header, footer {
    flex-shrink: 0;
}

@font-face {
  font-family:'Amaze';font-weight:300;
  src:url("/localsite/css/fonts/ember.woff2") format("woff2"), url("/localsite/css/fonts/ember.woff") format("woff")
}
* {box-sizing: border-box;}
/* CAUSED SPACE in map/index.html WHEN #tableSide DIV EMPTY - SHOULD NOT NEED
.hideMobile, .hideMobileWide {display:inline-block;}
*/
.showMobile, .showMobileWide {display:none;}
.showGit {display:none;}
.hideGit {display:inline-block;}
.local, .localonly {
  background-image: linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%), linear-gradient(-45deg, rgba(0,0,0,0.1) 25%, transparent 25%), linear-gradient(45deg, transparent 95%, rgba(0,0,0,0.1) 75%), linear-gradient(-45deg, transparent 95%, rgba(0,0,0,0.1) 75%);
  background-size: 3px 3px;
}
.dark .local, .dark .localonly {
  background-image: linear-gradient(45deg, rgba(250,250,250,0.1) 25%, transparent 25%), linear-gradient(-45deg, rgba(250,250,250,0.1) 25%, transparent 25%), linear-gradient(45deg, transparent 95%, rgba(250,250,250,0.1) 75%), linear-gradient(-45deg, transparent 95%, rgba(250,250,250,0.1) 75%);
}
.localonly {padding:20px; }
svg{max-width:none;} /* Fix for embedding material icon map points in Drupal */
/* Hides the icon names (auto_awesome, bolt...) until localsite.js adds .material-icons-loaded once the font loads */
html:not(.material-icons-loaded) .material-icons {
  display: inline-block;
  visibility: hidden;
  overflow: hidden;
  width: 1em; /* The icon's loaded width, so the layout doesn't shift */
  height: 1em;
  line-height: 1;
}

@media (max-width: 800px) {
  .hideMobile {display:none;}
  .hideNarrow {display:none;} /* Not activated when rightSideTabs displayed */
  .showMobile {display:inline-block !important;}
}
@media (max-width: 880px) {
  #upIconTrayText {display:none;}
}
@media (max-width: 1800px) {
  .bodyLeftMarginFull .hideMobileFull, .bodyLeftMarginList .hideMobileFull, .bodyMargin .hideMobileFull, .bodyRightMargin .hideMobileFull {display:none;}
  .bodyLeftMarginFull .showMobileFull, .bodyLeftMarginList .showMobileFull, .bodyMargin .showMobileFull, .bodyRightMargin .showMobileFull {display:inline-block !important;}
}
@media (min-width: 801px) {
  .showWide {display:inline-block !important;}
}
@media (max-width: 900px) {
  .hideMobileWide {display:none;}
  .showMobileWide {display:inline-block;}
}
html,body { /* both are needed for map height in iframe */
  height: 100%;
}
body {
  background-color: rgb(250, 250, 250);
  margin: 0px;
  -webkit-font-smoothing: antialiased;
  font-family: 'Nunito Sans', Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  line-heightX:0; /* prevents gaps betweet images, but 0 caused text to overlap on start and nav icons. */
}
#datascape {
  font-size: 0; /* prevents 19px tall blank space */
}
body.dark {
  background-color: #333;
}
.dark {
  color: #eee;
}
.bodyIconMargin {
  margin-left: 64px;
}
.bodyLeftMargin {
  margin-left: 220px;
}
.bodyLeftMarginList {
  margin-left: 380px;
}
.bodyLeftMarginFull {
  margin-left: 600px;
}
@media (max-width: 1000px) {
  .bodyLeftMargin #locationFilterHolder #filterLocations {
    padding-left: 30px;
  }
}
@media (max-width: 500px) {
  .bodyLeftMargin {
    margin-left: 0px;
  }
}
.bodyRightMargin {
  /* adds extra spec left of header following change to add nav.js */
  margin-right: 500px;
}
@media (max-width: 400px) {
  .bodyLeftMargin {
    margin-left: 0px;
  }
  .bodyRightMargin {
    margin-right: 0px;
  }
}
@media (max-width: 600px) {
  .content ul,
  .content ol {
    margin-left: 0;
    padding-left: 0;
    list-style: none;
  }
  .content li {
    margin-left: 0;
    padding-left: 0;
  }
  .content ul li {
    position: relative;
    padding-left: 0.72em; /* keeps a small gap after custom bullet */
  }
  .content ul li::before,
  .content ol li::before {
    line-height: 1;
    vertical-align: middle;
  }
  .content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em; /* align with first text line without altering line height */
    width: 0.42em; /* bigger bullet */
    height: 0.42em;
    border-radius: 50%;
    background: #9ca3af; /* lighter gray bullet */
  }
  .content ol {
    counter-reset: mobileListCounter;
  }
  .content ol li {
    counter-increment: mobileListCounter;
  }
  .content ol li::before {
    content: counter(mobileListCounter) ".";
    font-size: 1.4em;
    margin-right: 0.12em;
  }
}
@media (max-width: 1450px) { /* 1250px */
  .mobileView .hideMobile {
    display: none;
  }
  .mobileView .maintext {
    padding: 50px;
  }
  .mobileView .fullMobile {
    width: 100%;
  }
  .mobileView .floatright {
    width: 100%;
    margin-left: 0px;
    float: none;
  }
}
/* Impact set buttons: #navImpactIcons in the top nav (template-main.html) and #impactIconsHolder (template-charts.html).
   naics.js adds .active to the current set. */
.impactIcons div {
  float: left;
  font-size: 13px;
  border: 1px solid #ccc;
  width: 100px;
  padding: 10px 20px;
  margin: 0 15px 15px 0;
  text-align: center;
  border-radius: 25px;
}
/* RealityStream (template-main.html): as wide as its name, which is longer than the impact sets' */
.impactIcons div.realityStreamBtn {
  width: auto;
  min-width: 100px;
}
/* Its .local span (localhost only) takes the button's margin and rounded shape, so the span's local pattern
   (.local above) stays within the button rather than showing below and to its right */
.impactIcons > .local {
  margin: 0 15px 15px 0;
  border-radius: 25px;
}
.impactIcons > .local > div {
  margin: 0;
}
.impactIcons div.active {
  border: 4px solid #aaa;
  padding: 7px 17px;
}
.impactIcons div:hover {
  cursor: pointer;
  background-color: rgba(33,33,33,.8);
  color: #fff;
}
.dark .impactIcons div {
  border-color: #666;
}
/* Light mode in the Topics menu: white, as the scenes in Grid View (search-filters.css). Hover keeps its dark fill.
   The active (current) set is highlighted with the theme's accent, muted, rather than a thick dark border. */
body:not(.dark) #navImpactIcons .impactIcons div:not(.active):not(:hover) {
  background-color: #fff;
}
body:not(.dark) #navImpactIcons .impactIcons div.active {
  border: 1px solid #ccc;
  padding: 10px 20px;
}
body:not(.dark) #navImpactIcons .impactIcons div.active:not(:hover) {
  background: color-mix(in srgb, var(--color-primary, #137AD1) 25%, transparent);
}
.dark .impactIcons div.active {
  border-color: #999;
}
.dark #navImpactIcons .impactIcons div:not(.active) {
  border-width: 2px; /* Thicker in dark mode. 1px less padding keeps the button size. */
  padding: 9px 19px;
}
/* A wave across the Topics menu's impact buttons after a thumbnail's radio button is clicked (navigation.js) */
#navImpactIcons.impactAttention .impactIcons div {
  animation: impactAttention 0.7s ease-in-out;
}
#navImpactIcons.impactAttention .impactIcons div:nth-child(2) { animation-delay: 0.08s; }
#navImpactIcons.impactAttention .impactIcons div:nth-child(3) { animation-delay: 0.16s; }
#navImpactIcons.impactAttention .impactIcons div:nth-child(4) { animation-delay: 0.24s; }
#navImpactIcons.impactAttention .impactIcons div:nth-child(5) { animation-delay: 0.32s; }
#navImpactIcons.impactAttention .impactIcons div:nth-child(6) { animation-delay: 0.40s; }
#navImpactIcons.impactAttention .impactIcons div:nth-child(7) { animation-delay: 0.48s; } /* All */
#navImpactIcons.impactAttention .impactIcons .realityStreamBtn { animation-delay: 0.56s; } /* Localhost only, in a span */
@keyframes impactAttention {
  0%, 100% { transform: none; box-shadow: none; }
  50% { transform: translateY(-4px) scale(1.06); box-shadow: 0 0 0 3px rgba(102, 207, 121, 0.7); border-color: #66CF79; }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes impactAttention {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 0 3px rgba(102, 207, 121, 0.7); border-color: #66CF79; }
  }
}
/* Select sizes. Large: .select-lg. Medium: #usregion_select and #state_select. The right padding leaves room for the arrow. */
.select-lg {
  font-size: 24px;
  max-width: 300px;
  padding: 10px;
  border-radius: 20px;
}
.select-med {
  font-size: 16px;
  max-width: 300px;
  padding: 6px 32px 6px 14px;
  border-radius: 20px;
}
/* Shared select dropdown — shielded arrow prevents long text overlapping the chevron */
.ls-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-color: #fff;
  background-size: 10px;
  padding: 4px 30px 4px 8px;
  min-height: 34px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ls-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.dark .ls-select {
  background-color: #2a2a2a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E");
  border-color: #555;
  color: #eee;
}

@media (max-width: 1500px) {
  .mobileView .hideMobileSooner {
    display: none;
  }
}
.rightside, .floatright {
  float:right;
  max-width:400px;
  margin-left:40px;
  margin-bottom:30px;
  /* font-size: 18px; */
}
@media (max-width: 1120px) {
  .rightside {
    max-width:auto;
    margin-left:0px;
    margin-bottom:30px;
    float:none;
  }
}
.roundedCorners {
  border-radius: 20px;
}
.floatLeft {
  float:left;
  margin-right:40px;
}
.floatRight {
  float:right;
  margin-left:40px;
}
@media (max-width: 800px) {
  .floatLeft {
    float:none !important;
    width:100% !important;
    margin-right:0px;
    margin-bottom:40px;
  }
  .floatRight {
    float:none !important;
    margin-left:0px;
    margin-bottom:40px;
  }
}

@media (max-width: 800px) {
  .floatright {
    max-width:auto;
    margin-left:0px;
    margin-bottom:30px;
    float:none;
  }
  .fullMobile {
    float:none;
    width:100% !important;
    max-width:100% !important;
    margin-left:0px !important;
  }
}
@media (max-width: 2200px) {
  #flexwrapper {
    /*display: block;*/
  }
  .bodyLeftMarginFull.bodyRightMargin #mapHolder {
    float: left;
    width: 100%;
  }
  .bodyLeftMarginFull.bodyRightMargin #mapHolderInner {
    position: relative;
    width: 100%;
  }
}
@media (max-width: 1800px) {
  /* only hide if 2 classes on body */
  .bodyLeftMargin.bodyRightMargin .hideMobileSooner {
    display: none;
  }
  .bodyLeftMargin.bodyRightMargin .floatright, .bodyLeftMargin.bodyRightMargin .floatRight {
    float: none;
    margin-left: 0px;
    margin-bottom: 20px;
  }
  .bodyLeftMarginFull .fullNarrow, .bodyLeftMarginList .fullNarrow, .bodyRightMargin .fullNarrow {
    width: 100%;
  }
}
@media (max-width: 1400px) {
  #hublist {
    widthX: 100%; /* Messed with #mapHolder in map.css */
    padding-right: 0px;
  }
  .bodyLeftMarginFull #mapHolder {
    float: left;
    width: 100%;
  }
  .bodyLeftMarginFull #mapHolderInner {
    position: relative;
    width: 100%;
  }
}
@media (max-width: 1200px) {
  .bodyLeftMarginList #flexwrapper {
    display: block;
  }
}

/* allows #main-nav to extend to footer */
.flexbody {
    display: flex;
    height: 100vh;
    flex-direction: row;
}

main, .flexmain {
    flex-grow: 1; /* for footer */
}
header, main, .flexfooter {
    /* Resulted in massive images */
    /* flex-shrink: 0; */ /* prevent shrinking if content is larger than the screen. */
}
#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* Scrolling down the page, the header slides up off the window before it hides (slideHeaderOff in navigation.js).
   The transition is on this class alone, so the header is back in place at once when it's removed. */
#main-header.headerSlideOff {
  transform: translateY(-100%);
  transition: transform 0.25s ease-in;
}
/* Fixed search filters held under the header (placeFiltersUnderHeader) move up with it. */
.headerSlidingOff .filterFieldsHolderFixed {
  top: 0 !important;
  transition: top 0.25s ease-in;
}
/* Under the header, the header's own 9-dot menu is shown, so the bar leaves out its copy. */
.filterFieldsHolderFixed.filterFieldsUnderHeader #showSideTabsInBar {
  display: none !important;
}
/* Ensure proper footer positioning */
#main-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-container {
  flex: 1 0 auto;
  /* Let content determine height naturally, no forced min-height */
}

#main-content {
  width: 100%;
}

table {
  border-spacing: 0px;
}
td {
  padding: 0px;
  vertical-align: top;
}
textarea {
  border-color: #777;
}
.dark textarea {
  color: #eee;
  background-color: #222;
  border-color: #222;
  border-left: 4px solid green;
  border-radius: 6px;
}
.textInput {
  font-size: 15px;
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  padding-left: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
/* Lighter: #4091dd */
.content p {
  margin-top: 0px;
  margin-bottom: 16px;
  /*
  font-family: 'Open Sans', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  */
  font-sizeX: 15px;
}
h1,h2,h3,h4 {
  font-family: Raleway;
  line-height: 1.5;
}
h2, h3, h4 {
    font-family: 'PT Sans', sans-serif;
    font-family: Raleway, Lato, "Helvetica Neue", Helvetica, "Lato", sans-serif;
}
h1 {
  font-weight: 300;
  color: #444;
  line-height: 1.3;
  margin-top: 10px;
  font-size: 31px;
  font-family: "Amaze", "Helvetica Neue", Helvetica, "Lato", sans-serif;
  font-weight: 500;
}
@container (max-width: 400px) {
  h1 {
    font-size: 24px;
  }
}
.h1-home {
  font-size: 28pt;
  font-family: Georgia, "Helvetica Neue", Helvetica, "Lato", sans-serif;
  font-weight: 200;
}
h2 {
  margin-top: 0px;
  font-weight: 500;
  font-weight: 800;
  font-size: 1.25em;
  padding-top: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 18px;
  color: rgb(77, 82, 89);
  color: #333;
  overflow: auto;
  opacity: .85;
}
.flexmain h2::before { /* Prevents hashtag h2 links from being covered by site header */
  display: block; 
  content: " "; 
  margin-top: -120px; 
  height: 120px; 
  visibility: hidden; 
  pointer-events: none;
}
/* Prevents hashtag section links from being covered by site header */
/* test and maybe reactivate */
.flexmain section::before { 
  display: block; 
  content: " "; 
  margin-top: -120px; 
  height: 120px; 
  visibility: hidden; 
  pointer-events: none;
}
#footer .container section::before { /* Correct Drupal Footer */
  margin-top: auto;
  height: auto;
}
h3 {
  font-weight: 800; 
  font-size: 1.1em;
  line-height: 1.3em;
  margin-top: 25px;
  margin-bottom: 16px;
  color: #000;
  /* font-family: "Amaze", 'PT Sans', sans-serif; */
}
h4 {
  margin-top: 20px;
  font-weight: 600;
  font-size: 1em;
  line-height: 26px;
  margin-top: 15px;
  margin-bottom: 12px;
  color: #333;
}
h5 {
  font-weight: 300;
  font-size: 1.1em;
  margin-top: 20px;
  margin-bottom: 10px;
}
h6 {
  font-weight: 600;
  font-size: 0.95em;
  color: #333;
  margin-top: 10px;
  margin-bottom: 0px;
}
@media (max-width: 400px) {
  h1 {
    margin-top: 0px;
  }
}


.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
  color: #ccc;
}

/* hacks for useeio widgets */
.dark .MuiTypography-h6 {
  color: #ccc;
}
.dark .MuiTypography-body1 {
  color: #ccc;
}
.dark .MuiInputBase-root {
  color: #fff;
}
.dark .MuiIconButton-root {
  color: #fff;
}
/* Rows per page and page count, below the inflow-outflow grid */
.dark .MuiTablePagination-root,
.dark .MuiTablePagination-root .MuiTypography-root,
.dark .MuiTablePagination-root .MuiSelect-icon {
  color: #ccc;
}
.dark .MuiTablePagination-root .MuiIconButton-root.Mui-disabled {
  color: rgba(255, 255, 255, 0.3);
}
/* Search field in the inflow-outflow grid */
.dark #outlined-basic {
  color: #fff;
}
.dark #outlined-basic::placeholder {
  color: #aaa;
}
.dark .MuiFormLabel-root[for="outlined-basic"],
.dark .MuiFormLabel-root[for="outlined-basic"].Mui-focused {
  color: #bbb;
}
.dark .MuiOutlinedInput-root:has(#outlined-basic) .MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.35);
}
.dark .MuiOutlinedInput-root:has(#outlined-basic):hover .MuiOutlinedInput-notchedOutline {
  border-color: rgba(255, 255, 255, 0.6);
}
.dark .sector-list a, .dark .sector-list a:visited {
  color: #fff;
}
.dark .sector-list .indicator-group {
  color: #bbb;
}
.dark .tabulator .tabulator-header, .dark .tabulator .tabulator-footer {
  background-color: #333;
  border-bottom: 1px solid transparent;
}
/* tabulator.min.css sets #555 on the paginator, which only shows on hover against the dark footer */
.dark .tabulator .tabulator-footer .tabulator-paginator,
.dark .tabulator .tabulator-footer .tabulator-page {
  color: #ddd;
}
.dark .tabulator .tabulator-tableholder .tabulator-table {
  background-color: #333;
  color: #fff;
}
.dark .tabulator .tabulator-header .tabulator-col {
  background-color: #000;
  color: #fff;
}
.dark .tabulator .tabulator-header .tabulator-col:hover,
.dark .tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover { /* Beats the #cdcdcd hover in tabulator.min.css */
  background-color: #555;
}
.dark .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover,
.dark .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover {
  border-bottom-color: #ccc; /* The #555 sort arrow otherwise vanishes on the #555 hover */
}
.dark .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover {
  border-top-color: #ccc;
}
sup {
  line-height: 0.8em;
  font-size: 0.6em;
}
hr {
    border: 0px;
    border-top: 1px solid #ddd;
}
@media print
{
  .noprint {display: none; }
  #showSideFromHeader {display: none; }
  #main-header {display: none; }
  .md-edit-menu, .md-edit-menu.local {display: none !important; }
  .pagebreak {
      clear: both;
      page-break-after: always;
  }
}
@media screen {.printonly {display: none; }}


.table-cell, .table-cell-mobile {
  display: table-cell;
  vertical-align: top;
  position: relative; /* Allows menu rollover/popups to overlap adjacent cell */
}
.dark .table-cell, .dark .table-cell-mobile {
  background-colorX: #111;
}
@media (max-width: 800px) {
  .table-cell {
    display: block;
    float: left;
  }
}

.flex-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.flex-column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
  overflow: auto;
}
.flexright {
  max-width: 350px;
  padding-left: 40px;
}
@media (max-width: 500px) {
  .mobileWide {
    width: 100%;
    display: block;
  }
  .flexright {
    max-width: 100%;
    padding-left: 0px;
    display: block;
  }
}
.num {
  float: left;
  padding-right: 12px;
}
.by {
  display: none;
}
#header {
	z-index: 10001;
}
.displayOnload {
  display:block !important; /* hidden until css loaded */
}
.content, #observablehq-center {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  font-size: 15px;
  line-height: 1.5em;
  /* position: relative; */  /* overlapped top filters */
}
.content pre {
  line-height: 1.25em; /* prevents gaps in tree chart */
}
#observablehq-toc nav {
  margin-top: 148px; /* when showsearch */
  margin-top: 100px;
  padding-top: 18px;
}
@media (min-width: 1600px) {
	.content {
	  max-width: 1500px;
	}
}
.contentpadding, #observablehq-center {
  padding-top: 25px;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 30px;
}
.content a, .contentfull a, .content-color a {
  text-decoration: none;
}
.content a:not(.btn):link, .content a:not(.btn):visited, .contentfull a:not(.btn):link, .contentfull a:not(.btn):visited, .content-color a:not(.btn):link, .content-color a:not(.btn):visited {
  color: #0366d6;
}
.dark .content a:not(.btn):link, .dark .content a:not(.btn):visited, .dark .content-color a:not(.btn):link, .dark .content-color a:not(.btn):visited {
  color: #acb;
}
.lite { /* Also in DS */
  background-color: #eee;
  color:  #333;
}
.dark .lite {
  background-color: #555;
  background: #555;
  color:  #eee;
}
.liteDiv a {
  color: #333;
}
/* Mix of light and dark text - left side nav */
/*
.greyDiv { 
  color: #fff;
  background-color: #b1b1b1;
}
.greyDiv a:link, .greyDiv a:visited, .content .greyDiv a:link, .content .greyDiv a:visited {
  color: #fff;
  text-decoration: none;
}
.greyDiv b, .greyDiv .maincat, .greyDiv b a:link, .greyDiv b a:visited, .content .greyDiv b, .content .greyDiv .maincat, .content .greyDiv b a:link, .content .greyDiv b a:visited {
  color: #333;
}
.greyDiv b a:hover, .greyDiv b a:visited:hover {
  color: #fff;
}
.dark .greyDiv {
  background-color: #444 !important;
  border: 0px;
}
.dark .greyDiv a:link, .greyDiv a:visited, .dark .content .greyDiv a:link, .dark .content .greyDiv a:visited {
  color: #fff;
}
.dark .greyDiv b, .dark .greyDiv .maincat, .dark .greyDiv b a, .dark .greyDiv b a:visited, .dark .content .greyDiv b, .dark .content .greyDiv .maincat, .dark .content .greyDiv b a, .dark .content .greyDiv b a:visited {
  color: #fff;
}
*/

.dark .greyDiv {
    color: #fff;
    background-color: #666 !important;
}

.litetext {
  color:#888;
}
.darktext {
  color:#333;
}
.dark .litetext {
  color:#fff;
}
.dark .darktext {
  color: #888;
}
.bodyLeftMargin .contentpadding {
  padding-left: 30px;
  padding-right: 30px;
}
.contentwide {
  max-width: 1400px;
  padding-left: 10px;
  padding-right: 10px;
}
.contentfull {
  max-width: 2000px;
}

@media (max-width: 1400px) {
  .contentwide {
    max-width: 1350px;
  }
}
@media (max-width: 1200px) {

  .content li {
    /* Caused 10+ to be half hidden. Tried overflow: visible */
    /* margin-left: -20px; */
  }
}
@media (max-width: 800px) {
  #headerbar .contentpadding {
    padding-leftX: 20px;
    padding-rightX: 0px;
  }
}
@media (max-width: 600px) {
  .contentpadding {
    padding-left: 30px;
    padding-right: 30px;
    min-width: 150px;
  }
}

.container {
  position: relative;
  margin: 0 auto;
  /* max-width: 1200px; */ /* makes video in rotation to short */ /* max-width will conflict with sites that use bootstrap */
  /* Conflicts with Drupal footer
  padding-left: 55px;
  padding-right: 55px;
  */
}
.container a {
  text-decoration: none;
}
.lead {
    font-family: 'PT Sans', sans-serif;
    font-weight: normal;
    color: rgb(66, 72, 79);
    font-size: 17px;
    font-weight: 100;
    line-height: 1.5;
}
.caption {
  font-size: 12.5px;
  margin-bottom:27px;
}

.pageColumns {
  overflowX: hidden; /* Allows bottom padding to apply after float:left columns */
  overflowX: scroll; /* Allows large number of naics columns to be viewed */
  margin-right:-30px;
  padding-bottom: 20px;
}
.pageColumn {
  width:33.33%;
  float:left;
  margin-bottom: 0px;
}
.mobileView .pageColumn {
  width:100%;
}
.full .pageColumn {
  width:100%;
}
.two .pageColumn {
  width:50%;
}
.pageColumnInside {
  position: relative;
  margin-right:40px;
  line-height: 1.55;
  border: 1px solid rgba(255,255,255,0);
  font-size: 16px;
  padding-top: 14px;
  padding-bottom: 18px;
  /* overflow: hidden; */ /* Covers indicator bar */
}
.pageColumns > .pageColumn:last-child {
	margin-right:0px;
}
.pageColumnTitle {
  font-size: 1.27em;
  line-height: 1.3em;
  margin-top: 20px;
  margin-bottom: 16px;
}
@media (max-width:980px) {
  .topcolumns {
    margin-bottom: 20px;
  }
  .pageColumn, .two .pageColumn {
    width:100%;
    float:none;
  }
  .pageColumnOverflow {
    width:100%;
  }
  .pageColumnInside {
    margin-right: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
  }
}
.contentArea {
    margin: 0px; padding: 0px; 
    padding-left: 20px; padding-right: 20px;
    line-height: 1.4em;
}

.litePanel {
    background-color: #eee; /* also set .litePanelFadeOut 238 */
    overflow:auto;
}
.dark .litePanel {
  background-color: #444;
}
.litePanelFadeOut {
  margin-top:10px;
  position:absolute;
  bottom:0;
  left:0;
  right: 0;
  /* right:0; This may cover map zoom. Swicth to flex rows instead to put at bottom of #hublist */
  z-index:999;
  background-color:rgba(238, 238, 238, 0.7);
  background: linear-gradient(to bottom, rgba(238,238,238,0) 0%,rgba(238,238,238,1) 100%);
}
.dark .litePanelFadeOut {
  background-color:rgba(44,44,44,0.7);
  background: linear-gradient(to bottom, rgba(44,44,44,0) 0%,rgba(44,44,44,1) 100%);
}
mark {
  padding:4px 8px 4px 8px;
  background-color: #ffc;
}
code {
  background-color: #eee;
  padding: 2px  5px;
  overflow: scroll;
  color: var(--text-secondary);
}
content .js, pre code, .codetext { /* Prevents .js from impacting js class within Drupal body tag */
  background-color: #eee;
  padding:15px;
  border-left: 4px solid #137AD1;
  display: block;
  unicode-bidi: embed;
  font-family: monospace;
  /* white-space: pre-wrap; */ /* Causes Drupal to have large empty div's at top */
}
.codetext {
  width:100%;
  overflow:auto;
  background-color: #eee;
  padding: 15px;
  border: none;
  border-left: 4px solid #137AD1 !important;
  font-family: monospace;
  font-size: 15px;
  line-height: 1.55;
}
.dark code, .dark .codetext {
  color: #ddd;
  background-color: rgba(17, 17, 17, 0.4);
}
.link {
  color:#4091dd;
  /*
  font-family: 'Open Sans', 'Helvetica Neue', HelveticaNeue, calibri, arial, sans-serif; 
  */ /* thicker, darker */
  font-weight: 600;
}
.darkDivText {
  color: #ccc;
}
.darkDivText a:link, .darkDivText a:visited {
  color: #acb;
}
#hero-content {
  padding: 45px 60px 40px 60px;
}
@media (max-width: 1000px) {
  .bgimg {
    min-height: 400px !important;
  }
}
@media (max-width: 600px) {
  .hero-title {
    margin: 20px;
    padding-top: 30px;
    font-size: 28px !important;
    font-weight: bold !important;
  }
  #hero-content {
    padding: 0px;
  }
  #hero-rect {
    margin: 0px !important;
  }
  .bgimg {
    min-height: 0px !important;
  }
}

#hero-mini {
  float: right;
  background-color: rgba(33, 33, 33, 0.85);
  border-radius: 20px;
  padding-bottom: 0px;
  color: #fff;
  margin-bottom: 0px;
  max-width:140px;
  overflow: hidden;
}
#hero-rect {
  float: left;
  background-color: rgba(33, 33, 33, 0.85); /* Matches #hero-mini */
  border-radius: 40px;
  max-width: 600px;
  padding: 30px 50px 25px 50px;
  margin-bottom: 30px;
  color: #fff;
}
@media (max-width: 1400px) {
  .bodyLeftMargin #hero-rect, .bodyRightMargin #hero-rect {
      max-width: 450px;
  }
}
#hero-rect h3, #hero-rect select {
  color: #fff;
}
#hero-rect a:link, #hero-rect a:visited {
  color: #66CF79;
}
#hero-rect:hoverX {
  background-color: rgba(255, 255, 255, 0.9);
  background-color: rgba(33, 33, 33, 0.95);
}
.hero-title {
  font-size:60px;
  line-height: 1em;
  font-weight:800;
  margin-right:30px;
  margin-bottom:10px;
  text-shadow: 2px 2px 6px #333;
  color: #fff;
}
.btn {
    display: inline-block;
    font-weightX: 550;
    color: #343434;
    background-colorX: rgb(239, 239, 239); /* matches useragent buttonface */
    background-color: var(--border-light);
    borderX: 1px solid var(--border-light);
    border: 1px solid var(--border-light);

    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 0.375rem 1rem;
    line-height: 1.5;
    border-radius: 2rem;
    cursor: pointer;
}
.btn {
  padding: 6px 15px;
  background: var(--chip-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--button-radius);
  color: var(--chip-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease-in, border-color 0.12s ease-in, box-shadow 0.12s ease-in;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--button-shadow);
  text-decoration: none;
}
.btn:link,
.btn:visited {
  /* color: var(--chip-text); */
}
.btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--chip-text);
  box-shadow: var(--button-shadow-hover);
  text-decoration: none;
}
.cv-theme .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-black):not(.btn-magenta):not(.btn-periwinkle):not(.btn-indigo):not(.btn-white) {
  background: color-mix(in srgb, var(--bg-card) 82%, var(--text-main) 18%);
  border-color: color-mix(in srgb, var(--border-subtle) 70%, var(--text-main) 30%);
  color: var(--chip-text);
}
.cv-theme .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-black):not(.btn-magenta):not(.btn-periwinkle):not(.btn-indigo):not(.btn-white):hover,
.cv-theme .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-black):not(.btn-magenta):not(.btn-periwinkle):not(.btn-indigo):not(.btn-white):focus {
  background: color-mix(in srgb, var(--bg-card) 70%, var(--accent) 30%);
  border-color: var(--accent);
  color: var(--chip-text);
}
.dark.cv-theme .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-black):not(.btn-magenta):not(.btn-periwinkle):not(.btn-indigo):not(.btn-white),
.dark .cv-theme .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-black):not(.btn-magenta):not(.btn-periwinkle):not(.btn-indigo):not(.btn-white),
.dark.cv-theme .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-black):not(.btn-magenta):not(.btn-periwinkle):not(.btn-indigo):not(.btn-white):hover,
.dark.cv-theme .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-black):not(.btn-magenta):not(.btn-periwinkle):not(.btn-indigo):not(.btn-white):focus,
.dark .cv-theme .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-black):not(.btn-magenta):not(.btn-periwinkle):not(.btn-indigo):not(.btn-white):hover,
.dark .cv-theme .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-black):not(.btn-magenta):not(.btn-periwinkle):not(.btn-indigo):not(.btn-white):focus {
  border-color: transparent;
}

.btn-med {
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  display: inline-flex;
  width: auto;
  border: 1px solid var(--border-light);
}
/*
.btn:link, .btn:visited, .contentpadding .btn:link, .contentpadding .btn:visited {
  color: #343434;;
  text-decoration: none;
}
.btn:hover, .btn:visited:link, .btn:visited:hover, .btn-med:hover, .btn-lg:hover {
    background-color: #555;
    border-color: #555;
    color: #fff;
    text-decoration: none;
}
.btn {
  color: #343434;
  text-decoration: none;
}
.btn:hover {
  color: #fff;
}
*/

#hero-rect .btn:link, #hero-rect .btn:visited {
  color: #fff;
}

/*
.dark .btn {
  background-color: #375a7f;
}
*/

.dark .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-black):not(.btn-magenta):not(.btn-periwinkle):not(.btn-indigo):not(.btn-white):not(.btn-clear) {
  color: #fff;
  background-color: #375a7f;
  border: 1px solid #375a7f;
}

.dark .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-black):not(.btn-magenta):not(.btn-periwinkle):not(.btn-indigo):not(.btn-white):hover,
.dark .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-black):not(.btn-magenta):not(.btn-periwinkle):not(.btn-indigo):not(.btn-white):not(.btn-clear):focus {
  background-color: #304454;
  border-color: #304454;
  color: #fff;
}


/* color is !important so surrounding a href color from menu.css does not override */
.btn-primary {
    color: #fff !important;
    background-color: #137AD1;
    border-color: #137AD1;
}
.dark .btn-primary {
  background-color: #137AD1;
  border-color: #137AD1;
}
.btn-primary:visited, .btn-secondary:visited {
    color: #fff !important;
}
.btn-primary:hover {
    background-color: #91bbef;
    background-color: #6fa1d8;
    border-color: #91bbef;
    border-color: #6fa1d8;
}
.btn-clear {
    background-color: none;
    background: none;
    border-color: #aaa;
    color: #222 !important;
}
.dark .btn-clear {
    background-color: var(--color-whitetextborder);
    background-color: none;
    background: none;
    border: 1px solid #375a7f !important;
    border-color: #fff;
    color: #fff !important;
}
.btn-black {
    color: #fff !important;
    background-color: #0e121a;
    border-color: #0e121a;
}
.btn-black:visited {
    color: #fff !important;
}
.btn-black:hover {
    background-color: #333;
    border-color: #1b252d;
}
.btn-magenta {
  color: #fff !important;
  /* Closest websafe color is: #cc66cc. https://www.colorhexa.com/b455b4 */
  background-color: #b455b4;
  border-color: #b455b4;
}
.btn-magenta:hover {
  background-color: purple !important;
  text-decoration: none;
}
.btn-periwinkle {
  color: #fff !important;
  background-color: rgb(152, 139, 252);
  border: 1px solid rgb(152, 139, 252);
}
.btn-periwinkle:hover,
.btn-periwinkle:focus {
  background-color: rgb(173, 162, 255);
  border: 1px solid rgb(152, 139, 252);
}
.btn-indigo {
  color: #fff !important;
  background-color: rgb(58, 62, 130);
  border: 1px solid rgb(58, 62, 130);
}
.btn-indigo:hover,
.btn-indigo:focus {
  background-color: rgb(82, 88, 168);
  border: 1px solid rgb(82, 88, 168);
}
.btn-white {
    color: #333 !important;
    background-color: #fff;
    border-color: #ccc;
}
.btn-white:link, .contentpadding .btn-white:link {
  color: #333 !important;
}
.btn-white:visited, .contentpadding .btn-white:visited {
  color: #333 !important;
}
.btn-white:hover, .btn-white:link:hover, .contentpadding .btn-white:link:hover, .btn-white:visited:hover, .contentpadding .btn-white:visited:hover {
    color: #fff !important;
    background-color: #a6c36e;
    border-color: #a6c36e;
}
.btn-info {
    color: #fff !important;
    background-color: #a6c36e;
    border-color: #a6c36e;
}
.btn-success {
    color: #fff !important;
    background-color: #a6c36e;
    border-color: #a6c36e;
}
.btn-warning {
    color: #fff !important;
    background-color: #e6853d;
    border-color: #e6853d;
}
.btn-warning:hover {
    background-color: #ef954d;
    border-color: #ef954d;
}
.btn-danger {
    color: #fff !important;
    background-color: #d34564;
    border-color: #d34564;
}
.btn-danger:hover {
    background-color: #f15a7f;
    border-color: #f15a7f;
}
@media (max-width: 500px) {
  .btn {
    width:100%;
  }
  .btn-sm {
    width: auto;
    display: inline-flex;
  }
}
.btn-control {
  border-radius: var(--control-radius);
}



.samples-title,
.component-label,
.card-title {
  font-family: var(--font-headline);
}
.card-text,
.typography-toggle label {
  font-family: var(--font-body);
}
.btn,
.typography-toggle select {
  font-family: var(--font-subheadline);
}
.typography-toggle {
  position: relative;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}
.typography-toggle.typography-toggle-fixed {
  position: fixed;
}
.typography-toggle.typography-toggle-hidden {
  transform: translateY(-100%);
}
.typography-toggle select {
  -webkit-appearance: none;
  appearance: none;
  width: 150px;
  max-width: 100%;
  padding: 6px 12px;
  padding-right: 31px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--button-radius);
  cursor: pointer;
  outline: none;
}
.dark .typography-toggle select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b8c0cc'/%3E%3C/svg%3E");
}
.typography-toggle select:hover {
  border-color: var(--chip-text);
}
.typography-toggle select:focus {
  border-color: var(--accent);
}
.typography-toggle label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}
.typography-dark-toggle {
  margin-left: auto;
  flex-shrink: 0;
  width: 48px;
  height: 24px;
  border-radius: 999px;
  background: var(--bg-footer-swatch);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: filter 0.15s ease;
}
.typography-dark-toggle:hover {
  filter: brightness(0.92);
}
.typography-dark-toggle[aria-pressed="true"],
.dark .typography-dark-toggle {
  background: var(--accent);
  border-color: var(--accent);
}
.typography-dark-toggle[aria-pressed="true"] .material-icons,
.dark .typography-dark-toggle .material-icons {
  color: var(--text-main);
}
.typography-dark-toggle .material-icons {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1;
  user-select: none;
}

.btn-lg {
  height: 46px;
  font-size: 1.1rem;
  line-height: 2;
  border-radius: 1.5rem;
  padding: 0.375rem 1.3rem;
  border: 1px solid var(--border-light);
  font-weight: 550;
  font-weight: 550;
}
.btn-sm {
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  border: 1px solid;
  display: inline-flex;
  width: auto;
}
.btn-black {
  background-color: #0e121a;
  border-color: #0e121a;
  color: #fff !important;
}
.btn-black:visited {
  color: #fff !important;
}
.btn-black:hover {
  background-color: #333;
  border-color: #1b252d;
  color: #fff !important;
}
.btn-magenta {
  background-color: #b455b4;
  border-color: #b455b4;
  color: #fff !important;
}
.btn-magenta:hover,
.btn-magenta:focus {
  background-color: purple !important;
  border-color: purple !important;
  color: #fff !important;
}
.btn-periwinkle {
  background-color: rgb(152, 139, 252);
  border-color: rgb(152, 139, 252);
  color: #fff !important;
}
.btn-periwinkle:hover,
.btn-periwinkle:focus {
  background-color: rgb(173, 162, 255);
  border-color: rgb(152, 139, 252);
  color: #fff !important;
}
.btn-indigo {
  background-color: rgb(58, 62, 130);
  border-color: rgb(58, 62, 130);
  color: #fff !important;
}
.btn-indigo:hover,
.btn-indigo:focus {
  background-color: rgb(82, 88, 168);
  border-color: rgb(82, 88, 168);
  color: #fff !important;
}
.btn-white {
  background-color: #fff;
  border-color: #ccc;
  color: #333 !important;
}
.btn-white:link,
.btn-white:visited,
.contentpadding .btn-white:link,
.contentpadding .btn-white:visited {
  color: #333 !important;
}
.btn-white:hover,
.btn-white:focus,
.contentpadding .btn-white:hover,
.contentpadding .btn-white:focus {
  background-color: #a6c36e;
  border-color: #a6c36e;
  color: #fff !important;
}
.btn-lg .material-icons {
  font-size: 16px;
  line-height: 1;
  margin-right: 6px;
}
.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}
.cv-theme .btn-primary,
.dark.cv-theme .btn-primary,
.dark .cv-theme .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.cv-theme .btn-primary:hover,
.cv-theme .btn-primary:focus,
.dark.cv-theme .btn-primary:hover,
.dark.cv-theme .btn-primary:focus,
.dark .cv-theme .btn-primary:hover,
.dark .cv-theme .btn-primary:focus {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}
.btn-secondary {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  color: #fff;
}
.btn-tertiary {
  background: var(--color-tertiary);
  border-color: var(--color-tertiary);
  color: #fff;
}
.btn-tertiary:hover {
  background: var(--color-tertiary-hover);
  border-color: var(--color-tertiary-hover);
  color: #fff;
}
.btn-success {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff !important;
}
.btn-success:hover {
  background: var(--color-success-hover);
  border-color: var(--color-success-hover);
}
.btn-danger {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: #fff !important;
}
.btn-danger:hover {
  background: var(--color-danger-hover);
  border-color: var(--color-danger-hover);
}
.btn-warning {
  background: var(--color-warning);
  border-color: var(--color-warning);
  color: #fff !important;
}
.btn-warning:hover {
  background: var(--color-warning-hover);
  border-color: var(--color-warning-hover);
}
.btn-info {
  background: var(--color-info);
  border-color: var(--color-info);
  color: var(--color-info-text) !important;
}
.btn-info:hover {
  background: var(--color-info-hover);
  border-color: var(--color-info-hover);
}
.btn-light {
  background: var(--color-light);
  border-color: var(--border-subtle);
  color: var(--color-light-text) !important;
}
.cv-theme .btn-light {
  background: color-mix(in srgb, var(--bg-card) 74%, var(--text-main) 26%);
  border-color: color-mix(in srgb, var(--border-subtle) 60%, var(--text-main) 40%);
  color: var(--color-light-text);
}
.dark .btn-light,
.dark .btn-dark {
  border-color: transparent;
}
.btn-light:hover {
  background: var(--color-light-hover);
}
.cv-theme .btn-light:hover,
.cv-theme .btn-light:focus {
  background: color-mix(in srgb, var(--bg-card) 62%, var(--text-main) 38%);
  border-color: color-mix(in srgb, var(--border-subtle) 50%, var(--text-main) 50%);
}
.btn-dark {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: #fff !important;
}
.btn-dark:hover {
  background: var(--color-dark-hover);
  border-color: var(--color-dark-hover);
}
.alert {
  padding: 16px;
  border-radius: var(--alert-radius);
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: calc(var(--alert-radius) / 2);
  margin-top: 1px;
}
.alert code {
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.alert-primary {
  background: var(--alert-primary-bg);
  color: var(--alert-primary-text);
}
.alert-primary::before {
  background: var(--alert-primary-accent);
}
.alert-success {
  background: var(--alert-success-bg);
  color: var(--alert-success-text);
}
.alert-success::before {
  background: var(--color-success);
}
.alert-danger {
  background: var(--alert-danger-bg);
  color: var(--alert-danger-text);
}
.alert-danger::before {
  background: var(--color-danger);
}
.alert-warning {
  background: var(--alert-warning-bg);
  color: var(--alert-warning-text);
}
.alert-warning::before {
  background: var(--color-warning);
}
.alert-info {
  background: var(--alert-info-bg);
  color: var(--alert-info-text);
}
.alert-info::before {
  background: var(--alert-info-accent);
}
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--chip-radius);
  margin: 3px;
  box-shadow: var(--button-shadow);
}
.badge-primary {
  background: var(--badge-primary-bg);
  color: var(--badge-primary-text);
}
.badge-secondary {
  background: var(--badge-secondary-bg);
  color: var(--badge-secondary-text);
}
.badge-success {
  background: var(--badge-success-bg);
  color: var(--badge-success-text);
}
.badge-danger {
  background: var(--badge-danger-bg);
  color: var(--badge-danger-text);
}
.badge-warning {
  background: var(--badge-warning-bg);
  color: var(--badge-warning-text);
}
.badge-info {
  background: var(--badge-info-bg);
  color: var(--badge-info-text);
}
.card {
  background: var(--bg-card);
  border-radius: var(--panel-radius);
  padding: 24px;
  margin: 12px 0;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
}
.card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text-main);
}
.card-text {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.samples-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-main);
}
.component-group {
  opacity: 1;
  display: block;
  margin-bottom: 40px;
}
.component-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.btn-nice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #4a90e2 0%, #5ba3f5 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.35);
}

/* Reusable circular icon control */
.icon-circle-btn {
  background: none;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #aaa;
  border-style: solid;
  border-width: 1px;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  box-sizing: border-box;
  box-shadow: none;
  cursor: pointer;
  color: #888;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transition: all 0.2s;
}
.icon-circle-btn.material-icons {
  font-size: 14px !important;
  line-height: 1 !important;
  display: inline-flex !important;
}
.icon-circle-btn:hover {
  background: none;
  color: #666;
  border-color: #888;
}
.dark .icon-circle-btn {
  color: #aaa;
  border-color: #aaa;
}
.dark .icon-circle-btn:hover {
  color: #ccc;
  border-color: #ccc;
}

a.btn-nice:link,
a.btn-nice:visited {
  text-decoration: none !important;
  color: #fff !important;
}
.dark a.btn-nice:link,
.dark a.btn-nice:visited {
  color: #fff !important;
}
.noborder, .dark .noborder, .noborder:hover, .dark .noborder:hover {
  border: 0px;
}
.nav {
  list-style: none;
  font-size: 13.5px;
}

.pageLinks a {
  display: inline;
  float: none;
}
.nav>li>a {
  padding: 8px;
  margin-top: 2px;
  margin-bottom: 2px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
.nav>li>a:hover {
  background: #ddd;
}
.nav-right {
  float:right;
}
.nav-right ul li {
  float:left;
}
.header-navigation {
  background-color:#eceaeb;
  margin-bottom:0px; 
  -webkit-box-shadow: 0 4px 4px -2px #999;
  -moz-box-shadow: 0 4px 4px -2px #999;
  box-shadow: 0 4px 4px -2px #999;
  z-index:10; 
}
.topLinks b {
  font-weight: 800;
}
#rightColumn img {
  /* messed up /account page */
  /*
  width:100%;
  */
}
.close-X-sm {
  cursor:pointer;
  padding:5px 9px 12px 12px;
  font-size:18px;
  color:#eee;
  /* If code appear instead of x, check if some other font is being applied. Try activating this line to fix (copied from an x that worked).
  font-family: 'Nunito Sans', Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  */
}
.close-X-sm:hover {
  color:#777;
}
.pagecard {
    clear:both;
    overflow: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 28px;
    margin-bottom: 30px;
}
.cardstyle {
    background: #fff;
    min-height: 50px;
    position: relative;
    border-radius: 28px;
    padding: 20px;
}
.dark .cardstyle {
    background: #555;
}
.dark .menuBuddyRight {
  background: #666;
}
.dark .sideMenuColumn {
  color: #fff;
}
.dark .sideMenuColumn .layerSection {
  color: #fff;
}
@media (max-width: 1200px) {
    .pagecard {
        paddingX:40px;
        margin-rightX:20px;
    }
}
@media (max-width: 500px) {
    .pagecard {
        padding:0px;
    }
}
.leftLogo {
    float:left;
    margin:20px;
    margin-right:40px;
    min-width: 210px;
}
@media (max-width: 800px) {
  .leftLogo {
    float:none;
    margin-right:20px;
    max-width: 150px;
  }
  .narrowscreen {
    width:100% !important;
    max-width: 100% !important;
    float:none !important;
    padding:0 !important;
    margin:0 0 30px 0;
  }
}
.leftOffset {
  padding-left: 55px;
}
#log_display {
  position:fixed;
  z-index: 999999;
  top:70%;
  left:50px;
  padding: 8px 8px 8px 8px;
  color:#fff;
  background: rgba(0,0,0,.8);
  border:1px solid #ccc;
  border-radius: 10px 10px 10px 10px;
}
#log_display textarea {
  color:#fff;
  background: rgba(0,0,0,0);
  min-width: 600px;
  min-height: 150px;
  overflow:scroll;
  border:1px solid #ccc;
}
.bgimg {
  position: relative;
  opacity: 0.65;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-sizeX: cover;
  background-position: 0 54px; /* Under #mapFilters #filterFields headerbar */
  background-size: 100% auto;
  borderX: 2px solid blue;

  opacityX: 0.2;
}
@media(max-width:1022px) {
  .bgimg {
    background-position: 0 0;
  }
}
@media(max-width:800px) {
  .bgimg {
    widthX: 200%; /* taller on mobile */
  }
}
/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 1024px) {
  .bgimg {
      background-attachment: scroll;
      background-position: 0 0; /* Prevents space above img */
  }
}
.herocenter {
  position: absolute;
  left: 0;
  top: 48.5%;
  width: 100%;
  text-align: center;
  color: #000;
}
.herocenter-text {
  font-size: 18px;
  border: 1px solid #aaa;
  display: inline-block;
  padding: 4px 10px 4px 10px;
  letter-spacing: .1em;
  marginX: 20px 0px 20px 0px;
  color: #fff;
  text-decoration: none;

  border: 0px;
  background: rgba(55,55,55,0.7);
  padding: 20px 25px 20px 25px;

  /*
  border: 0px;
  padding: 18px 25px 18px 25px;
  color: #000;
  background: rgba(255,255,255,0.8);
  */
}
.herocenter-text a {
  color: #fff;
}
.herocenter span.border {
  background-color: #111;
  background-color: #000;
  opacity: 0.85;
  color: #fff;
  padding: 18px;
  padding-left: 25px;
  font-size: 25px;
  font-size:18px;
  letter-spacing: 10px;
  display: inline-block;
}

/* Temp until io renamed in useeio-widget */
.input-output input[type="text"], .input-output input[type="search"], .input-output select, select {
  font-size: 18px;
  border: 1px solid lightgray;
  border: 1px solid #444;
  border-radius: 18px;
  min-height: 32px;
  padding: 0 5px 0 10px;
  padding-top: 4px; /* Firefox */
  padding-right: 28px; /* Applies when text reaches right side */
  appearance: none; /* Remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background: white url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 5px center; /* Custom arrow */
  background-size: 24px; /* Size of the custom arrow */
}
.config-field input, .config-field select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--input-border, var(--border-medium, #D1D5DB));
  font-size: 14px;
  font-family: "Lato", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 7px;
}
.dark .config-field input,
body.dark .config-field input,
.dark .config-field select,
body.dark .config-field select {
  background: #0b1120;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}
.dark select {
  color: #fff;
  /* white arrow */
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="white" d="M7 10l5 5 5-5z"/></svg>') no-repeat right 5px center; /* Custom white arrow */
  background-color: #444;
  margin-leftX: 1px; /* prevents border from being cropped when dropdown selected */
}
.dark select:hover {
  background-color: #222;
}

.notdark {
  color: #333;
}
.notdark .content a:link, .notdark .content a:visited {
  color: #0366d6 !important;
}
.notdark select {
  color: #333 !important;
  background: #fff url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 5px center; /* Custom arrow */
  
}

#logospace {
  float:left;
  vertical-align:middle;
}
/*
.logoholder {
  background-size: 100% 100%;
  background-position:center;
  height:50px;
    width:70px;
    margin-top: -40px;
}
*/
#logoholder {
  /*
  background-size: 100% 100%;
  margin:0 auto;
  */
  float:left;
  display: block;

  position: absolute;
  top: 50%;
  transform: translate(0%, -50%);
}
/* No text selection, tap highlight or click outline on the header logo and title (keyboard focus still shows) */
#logoholder,
#logoholder * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#logoholder :focus:not(:focus-visible) {
  outline: none;
}
#logoholderbar {
  padding: 0px 14px 0 0;
}
.logoTopPadding {
  padding-top:5.5px;
}
a:has(> .logoTopPadding) {
  padding-left: 6px;
}
#headerLogo {
  margin-right: 4.5px;
  float: left;
}
/* The earth icon logo, for a site with header_icon: earth in support/site/config.yaml (navigation.js) */
.headerEarthIcon {
  display: block;
  line-height: 1;
}
/* Grey in light and dark mode (--header-icon), in the header and in the filter bar's #logoholderbar, which shows
   when the header bar is hidden (there, without a color the link's blue would show). Pages with a dark header in
   light mode set their own (project/goals). */
#headerLogo .headerEarthIcon, #logoholderbar .headerEarthIcon {
  color: var(--header-icon);
}
#headerLogo .headerEarthIcon {
  margin-right: 6px;
}
#headerLogo a:hover .headerEarthIcon, #logoholderbar a:hover .headerEarthIcon {
  color: var(--header-icon-hover);
}
#logoholderbar .headerEarthIcon { /* Lines up with the filter bar's buttons. Shifted, so the bar's other icons don't move. */
  position: relative;
  top: 8px;
}
#headerLogo img { /* Keep the logo on one line when a CSS reset (e.g. Tailwind preflight) sets img to block */
  display: inline;
  max-width: none;
}
@media (max-width: 600px) {
  #headerLogo img {
    max-width: 400px;
  }
}
/* phase out? */
.logoholder-state {
  background:url(img/logo/georgia-icon-on-gray.png) no-repeat;
  margin-top: 5px;
  height: 50px;
  width: 70px;
}
.logolink:hover{
  text-decoration: none;
}

#headerLocTitleHolder {
  float:left;
  positionX: relative; /* moves too high, needs work */
  /*
  padding:10px 0 0 0px;
  font-size: 22px;
  height:45px;
  */
}
/*
.headerLocTitleHolder-state {
  margin-top: 7px;
}

, #headerLocTitle
*/
#headerSiteTitle {
  font: 450 25px / 1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #777;
  letter-spacing: 0.3px;
  padding-bottom: 5px;

  /* Align vertically */
  position: absolute;
  top: 50%;
  transform: translate(0%, -50%);
}
@media (min-width: 601px) {
  #headerSiteTitle {
      min-width: 250px; /* Prevents being too narrow in OpenWebUI */
  }
}
/* A site logo with a dark mode version (logo_dark in support/site/config.yaml, js/navigation.js): the light one
   shows unless the body is .dark, and the dark one only then. Important, over the header's #headerLogo img. */
body.dark .site-logo-light, body:not(.dark) .site-logo-dark {
  display: none !important;
}
#headerLocTitle {
  float:left;
  padding-top:1px;
  color:#9c9c9c;
  font-size: 22px;
}
.headerbar {
  background-color: rgb(239 239 239);
  pointer-events: auto;
}
.filterFieldsHolderFixed {
  background-color: rgb(239 239 239);
}
.filterFieldsHolderFixed .filterClickActive {
  border-radius: 20px;
  border: 0px;
  border-right: 1px solid lightgray;
  border-bottom: 1px solid lightgray;
  padding: 0px 9px 0px 12px;
  min-height: 34px !important;
  vertical-align: baseline;
  background-color: #fff;
  color: #686868;
  text-shadow: none;
  height: auto;
}
.filterFieldsHolderFixed #showSideTabsInBar {
  display: block !important;
}
.filterFieldsBodyTop {
  margin-top: 48px
}
.bodyLeftMargin .headerbar, .bodyLeftMargin .filterFieldsHolderFixed {
  /* left: 220px; */
}
.headerbar a:link, .headerbar a:visited {
    color: #777;
}
.headerbar a:link:hover, .headerbar a:visited:hover {
    color: #444;
}
.dark .headerbar a:link:hover, .dark .headerbar a:visited:hover {
    color: #aaa;
}
.headerbar {
  border-bottom: 1px solid rgb(238,238,238/95%); /* #eee */
  border-bottom: 1px solid rgb(238,238,238);
  background-color: #eee;
}
/*
.showSideTabs:hover,
.showSideTabs:hover i {
  background-color: transparent !important;
  color: #555;
  box-shadow: none;
  text-shadow: none;
  filter: none;
}
.dark .showSideTabs:hover,
.dark .showSideTabs:hover i {
  color: #fff;
}
*/

.dark .headerbar {
  background: #222;
  border-bottom: 1px solid #333;
}
.headerbarheight {
  min-height:80px;
}
.headerbarhide {
  display: none !important;
}
/*
@media (max-width: 800px) {
  .headerbar {
    padding-left: 20px;
    padding-right: 0px;
  }
}
*/
@media (max-width: 600px) {
  #showSideFromBar {
    display: none !important;
  }
  #mapFilters {
    margin-left: 6px !important;
  }
}
.headerLeftIcon i {
  font-size:26px;
  min-width:28px; 
  opacity:1;
  color:#333;
  padding-left:2px; 
  padding-right:2px;
  border:0px solid #555;
  border-radius:8px;
  cursor: pointer;
}
#showSideFromHeader i {
  color: #555;
}
#showSideFromHeader i:hover {
  color: #000 !important;
  font-weight: bolder;
}
#showSideFromHeader:hover i {
  color: #000 !important;
}
.dark #showSideFromHeader i {
  color: #fff;
}
.dark #showSideFromHeader:hover i {
  color: #fff !important;
}
@media (max-width: 380px) {
  .showSearch {
    display: none;
  }
}

#headerIcons {
  color:#aaa;
  float:left;
  margin-top:14px;
}
#headerIcons:hover {
  background-colorX: #ddd;
  background-color: transparent !important; /* temp to override bootstrap until #headerIcons is renamed */
}
:root {
  --header-offset-height: 79px; /* Default header offset height */
}

.headeroffset { /* Does not include bar */
  height:79px;
}
#local-headerXXX {
  /* min-height:82.5px; */ /* Caused space under current header */
  min-height:79px;
}
@media (max-width: 600px) {
  :root {
    --header-offset-height: 64px; /* Mobile header offset height */
  }
  
  #headerIcons {
    margin-top:4px;
  }
  .headerbarheight {
    height:64px;
  }
  .headeroffset {
    height:64px;
  }
}

.filters-margin {
  margin: 0 auto;
  max-width:1000px;
}

/* HEADER */

.upperIcons {
  margin-right: 18px;
}
#headerLogoholder {
  margin-left: 35px;
}
@media (max-width: 600px) {
  .upperIcons {
    margin-right: 8px;
  }
  #headerLogoholder {
    padding-leftX: 59px;
  }
  #showNavColumn {
    display: none !important;
  }
}
@media (max-width: 300px) {
  #headerLocTitleHolder {
    display: none;
  }
  .headerLogoDesktop, #headerLogoholder {
    display: none;
  }
}

/* .upperIcons > */

.upperIcons > div:hover {
  cursor: pointer;
}
.upperIcons > span:hover {
  color: #000; /* not working */
}
#menuHolder {
  height:100%;
  position:fixed;
  right:0px;
  overflow: auto;
  background: #fff;
  width:250px;
  margin-right:-250px;
  -webkit-transition-duration: 0.3s;
	-moz-transition-duration: 0.3s;
	-o-transition-duration: 0.3s;
	transition-duration: 0.3s;
	box-sizing: border-box;
	z-index: 99999;
  pointer-events: auto;
}
@media (max-width: 600px) {
	#menuHolder {
		width:100%;
	}
}
#menuTop {
  margin-left:20px;
}
#menuNav {
  margin-top:20px;
}
#menuNav a {
  display: block;
  padding-left: 40px !important;
  padding-top: 15px !important;
  min-height: 50px;
  box-sizing: border-box;
}
/*
#menuNav a:hover {
  background-color: #ddd;
}
*/
#menuNav a {
  font-size:16px;
  font-weight: 500;
  color: #ccc;
}
#menuNav a:hover {
  background-color: #000;
}
#menuNav b a {
  font-weight: 600;
}

@media (max-width: 600px) {
  #menuNav a {
    font-size:20px;
  }
}
#menuHolder a {
  padding: 10px;
  text-decoration: none;
}
.hideMenu {
  margin-top:30px;
  margin-right:17px;
  cursor:pointer;
  border: 2px solid #AEAEAE;
  border-radius: 30px;
  font-size: 32px;
  font-weight: 100;
  display: inline-block;
  line-height: 0px;
  padding: 11px 3px;
  width: 27px;
  position: relative;
  float: right;
}
.hideMenu:hover {
  color:#fff;
  border-color: #fff;
}
.hideMenuInner {
  position:absolute;
  top:3px;
  left:4px;
  color:#555;
  display: none;
  font-size: 20px;
  display: inline-block;
  line-height: 17px;
}
.hideMenuInner:hover {
  color:#fff;
}
/* @media handheld { */
@media only screen and (max-width: 479px) { /* Since Lato font not available on Android */
  .hideMenu:after {
      top: 12px;
      left: 4px;
  }
}
/* END HEADER */


/* json to html display */
.valueonly {
  padding-top: 5px;
  min-width: 80px;
}
.titlecell {
  border-top:1px solid #ccc;
  padding: 5px 12px 0 5px;
  floatX:left;
  clear:both;
  min-width: 180px;
  font-weight: 500;
}
.floating-object {
  floatX:left;
  margin-right:10px;
  margin-bottom:10px;
}
.floating-object.rowlevel2 {
  padding-bottom: 10px;
  border-bottom:1px solid #ccc;
}
.objectcell .titlecell {
  /* too narrow for usda */
  min-widthX: 140px;
}
.objectcell .rowlevel2.titlecell {
  min-width: 150px;
}
.objectcell .rowlevel3.titlecell, .objectcell .rowlevel4.titlecell {
  overflow: hidden; /* for usda */
}
.rowlevel7.objectcell {
  float: left;
}
.rowlevel3.objectcell > div, .rowlevel4.objectcell > div, .rowlevel5.objectcell > div, .rowlevel7.objectcell > div, .rowlevel8.objectcell.div  {
  border-bottomX:1px solid #ccc;
}
.objectcell-lines > .objectcell-line { /* immediate child only */
  border-bottom:1px solid #ccc;
}
.celltop {
  margin-top: 4px;
}
.barTitle {
  background:#999;
  color:#fff;
  padding:4px;
  padding-left:10px;
  min-width:255px;
}
.valueimg {
  width: 100%;
  max-width: 600px;
}
.rowlevel3.celltop {
  border: 0px;
}
.rowlevel2 > .barTitle, .rowlevel3 > .barTitle {
  font-size: 1.2em;
  font-weight: bold;
}
/*
.objectcell.objectcell.objectcell .barTitle {
  background:none;
  font-weight: bold;
}
*/
.rightcell {
  margin-top:5px;
  overflow: auto;
  font-weight: 350;
  color: #000;
}
.rightlogo {
  width:100%;
  max-width:300px;
  margin-top:5px;
  margin-bottom:5px;
}

.bucketDesc {
  white-space: nowrap;
}
.json_to_html_table .titlecell:first-of-type {
  border-top: 0px #fff solid;
}
.json_to_html_table .rightcell:first-of-type {
  border-top: 0px #fff solid;
}
.rowlevel2 {
  margin-bottom:10px;
  cursor: pointer;
}
.rowlevel2.keyonly {
  font-size: 18px;
  float: left;
}
.valueonly {
  padding-left: 5px;
  padding-right: 5px;
  overflow: auto;
}
.rowlevel2.valueonly {
  font-size: 16px;
  overflow: auto;
}
.rowlevel2 div:last-of-type {
  border-bottom: 0px #fff solid !important;
  /* Add a shadow here that using a negative margin to get hidden by next .bartitle */
}
.two-wide {
  overflow: hidden;
  margin-right: 0px;
}
.two-wide div {
  float:left;
  width:33.3%;
}
.two-wide div img {
  width: 100%;
  margin-rightX:12px;
  margin-bottom:24px;
}
@media (max-width: 1400px) {
  .two-wide div {
    width: 50%;
    max-width: 1000px;
  }
}
@media (max-width: 800px) {
  .two-wide div {
    width: 100% !important;
    clear: none !important;
  }
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 28px;
}
/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}
input:checked + .slider {
  background-color: #2196F3;
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.mdTable table {
  border: 1px solid #ddd;
  padding: 20px;
  padding-bottom: 15px;
  margin-bottom: 20px;
}
#readmeDiv tr, .mdTable tr {
  text-align: left;
}
#readmeDiv td, #readmeDiv th, .mdTable td, .mdTable th {
  text-align: left;
  padding-right: 20px;
}
#readmeDiv tr td, .mdTable tr td
{
  border-bottom: 1px solid #ddd;
}
#readmeDiv tr:last-child td, .mdTable tr:last-child td {
  border-bottom: 0px solid #ddd;
}
.large-list {
  font-size: 16px;
}
/* Task-list boxes from loadMarkdown ("- [x]", "- [ ]"): Showdown's boxes are disabled, which
   browsers draw faint. These draw a grey outlined box, filled with a white check when
   done; in dark mode the outline is light grey and done boxes are blue. */
.task-list-item input[type="checkbox"] {
  --task-box: #6B7280;
  --task-box-open: var(--task-box);
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  padding: 0;
  width: 0.85em;
  height: 0.85em;
  border: 1.5px solid var(--task-box-open);
  border-radius: 2px;
  background: transparent center / 95% no-repeat;
  opacity: 1;
  cursor: default;
}
.dark .task-list-item input[type="checkbox"] {
  --task-box: #60A5FA;
  --task-box-open: #bbb;
}
.task-list-item input[type="checkbox"]:checked {
  border-color: var(--task-box);
  background-color: var(--task-box);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.6 9.2l3.6 3.6L14.5 4.3' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.large-list strong, .content strong {
  font-weight: 510;
  letter-spacing: 0.02em;
  opacity: .9;
}
.large-list h1 {
  font-weight: 700;
  font-family: Georgia,Roboto,Inter,-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;

  font-weight: 500;
  font-size: 40px;
}
.large-list h2 {
  position: relative;
  font-size: 24px;
  font-weight: 400;
}
.large-list h3 {
  font-size: 1.1em;
}
.large-list .num {
  font-size: 17px;
  background-color: #999;
  color: #fff;
  padding-top: 4px;
  padding-left: 8px;
  width: 25px;
  height: 25px;
  line-height: 16px;
  margin-right: 8px;
  left: 0px;
  bottom: 12px;
  border-radius: 13px;
  display: block;
}
h2 .num {
  position: absolute;
}
.large-list .txt {
  margin-left: 33px;
}
.dark .large-list .num {
  background-color: #000;
}
/* Hide vertical lines in Tabulator grid */
.tabulator .tabulator-row .tabulator-cell {
    border-right: none !important;
}
.dark .tabulator .tabulator-row .tabulator-cell {
    border-bottom: 1px solid #555;
    background-color: #333;
}
/* Hide vertical lines in the column headers */
.tabulator .tabulator-header .tabulator-col {
    border-right: none !important;
}
.tabulator-col {
  line-height: 1.55em; /* Allos for consisten heaer arro position*/
}
/* Arrow on left of column titles, applied only when prior title div has text-align: left */
.tabulator-col:not(:has(.tabulator-col-title[style*="text-align: right"])) .tabulator-col-title {
  padding-right: 5px !important;
  position: relative !important;
  float: left !important;
  width: auto !important;
}
.tabulator-col:not(:has(.tabulator-col-title[style*="text-align: right"])) .tabulator-col-sorter {
  position:relative !important;
  float:left !important;
  padding: 5px !important;
  padding-top: 7px !important;
}

/* from previous nav.css */
/* overrides base.css (above) - try integrating  */
.headerbar { 
    left: var(--side-nav-width, 62px);
}

/* On mobile, headerbar should be at left edge when sidebar is hidden */
@media (max-width: 600px) {
    body.sidebar-hidden .headerbar {
        left: 0;
    }
}

#sideIcons {
    left: var(--side-nav-menu, 62px); /* Without !important the 3-bar menu is not visible */
}
#sideIcons {
    position:absolute;
    left: 64px !important; /* Without !important the 3-bar menu is not visible */
    width: 32px;
}
#pageControls {
    position: relative;
}
/* inserted into bar at top of content on team/projects and other pages */
#pageControls #sideIcons {
    position: relative;
    top: 0;
    left: 0 !important;
    flex: 0 0 auto;
}
#pageControls #showNavColumn {
    padding: 0px;
}

/* Sidebar Styles */
.sidebarX {
    flex-direction: column;
    position: fixed;
    z-index: 1000;
}
#side-nav {
  transition: var(--transition-smooth);
  background: var(--bg-secondary);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  /* Optional: Setting height: 100% carries white backround color behind inner side nav in Light mode */
}

#side-nav.expanded {
  width: 300px;
  width: 238px;
}
#side-nav.expanded .nav-link {
  width: calc(100% - 10px);
  margin-right: 10px;
}
@media (max-width: 600px) {
  #side-nav.expanded {
    width: 100%;
  }
}
#side-nav.expanded #main-nav {
  display: none !important;
}
#side-navXX.collapsed {
  width: 64px;
  min-width: 64px;
}

/* Close button for sidebar */
#side-nav-header {
  flex-shrink: 0;
  padding: 8px;
  border-bottom: 1px solid var(--border-light);
}
.collapsed #side-nav-header {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.collapsed #side-nav-header .nav-x {
  float: none;
}
@media (max-width: 600px) {
  .collapsed #side-nav-header {
    display: none;
  }
}
#side-nav-content {
  z-index: 100;
  border-right: 1px solid #dedede;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary, #ffffff);
  background-colorX: var(--bg-primary);
}
#side-nav-content {
  z-index: 10150;
}
#side-nav-footer{
    flex-shrink: 0;
    margin-top: auto; /* Push to bottom */
    border-top: 1px solid var(--border-light);
    padding: 8px;
}
.side-nav-footer-bottom {
    margin-bottom: 88px; /* Clears a fixed bottom bar (e.g. #mobileRailBar) that would otherwise cover this footer */
}

.sidebarX.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebarX.collapsed.hovered:not(.locked) {
    width: var(--sidebar-width-expanded);
}

/* Global state classes for sidebar width tracking */
body.sidebar-collapsed {
    --side-nav-width: var(--sidebar-collapsed);
}

body.sidebar-expanded {
    --side-nav-width: calc(var(--sidebar-width-expanded) - 3px);
}

body.sidebar-hovered {
    --side-nav-width: calc(var(--sidebar-width-expanded) - 3px);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sidebar-toggle:hover {
    background: #e0e0e0;
    color: var(--text-primary);
}

.dark .sidebar-toggle:hover {
    background: #333;
    color: var(--text-primary);
}

/* When expanded: arrow points left, when collapsed: arrow points right */
.sidebar.collapsed .sidebar-toggle {
    /* justify-content: center; */
}

/* Don't apply CSS rotation - let JavaScript handle icon changes */
.sidebar-toggle i {
    transform: none;
}

/* Ensure arrow icon maintains proper size */
.sidebar-toggle i {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* External Site Specific Styles - Add spacing for hidden header */
/*
#side-nav-menu
.sidebar.external-site .nav-section:first-child {
    padding-top: 42px;
}
*/
/* External Site Specific Styles - Show arrows when expanded, hide when collapsed */
.sidebar.external-site .nav-arrow {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 16px !important;
    height: 16px !important;
    margin-left: 8px !important;
}

.sidebar.external-site.collapsed .nav-arrow,
.sidebar.external-site.collapsed.hovered .nav-arrow,
.sidebar.external-site.collapsed.locked .nav-arrow {
    display: none !important;
}

.sidebar.external-site #side-nav-footer,
.sidebar.external-site.collapsed #side-nav-footer,
.sidebar.external-site.collapsed.hovered #side-nav-footer,
.sidebar.external-site.collapsed.locked #side-nav-footer {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: auto !important;
    border-top: 1px solid var(--border-light) !important;
    padding: 8px !important;
}

.sidebar.external-site .sidebar-toggle,
.sidebar.external-site.collapsed .sidebar-toggle,
.sidebar.external-site.collapsed.hovered .sidebar-toggle,
.sidebar.external-site.collapsed.locked .sidebar-toggle {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: none !important;
    border: none !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    padding: 12px !important;
    border-radius: var(--radius-sm) !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
}


/* Cursor for expanding collapsed sidebar */
.sidebar.collapsed #side-nav-content {
    cursor: e-resize; /* rightward pointing double-arrow */
    max-width: 62px;
    overflow: visible;
}
.sidebar.collapsed .nav-section .nav-text {
  display: none !important;
}
.sidebar.collapsed .nav-section .nav-link {
  width: 0px !important;
  max-width: 0px !important;
  min-width: 0px !important;
}
.sidebar.collapsed .nav-section {
  position: relative;
}
.sidebar.collapsed .nav-section:hover .nav-link {
  width: auto;
  max-width: 200px !important;
  min-width: 200px !important;
  transition: none !important;
  z-index: 99999 !important;
  position: relative;
  margin-top: -2px;
  margin-left: 5px;
  border: 3px solid #000;
}
.sidebar.collapsed .nav-section:hover .nav-icon {
  margin-right: 12px !important;
}
.sidebar.collapsed .nav-section:hover .nav-link.active {
  border-radius: 50px !important;
  width: calc(100% - 16px) !important;
  height: auto !important;
  margin: 2px 8px 2px 14px !important;
  justify-content: space-between !important;
  padding: 12px 16px 12px 16px !important;
}

/* #detailmapMenu screen modes: Full Screen puts the detail map in #fullscreen (at the top of
   #main-content), Half Screen in #halfscreen (immediately before #main-content) */
#fullscreen,
#halfscreen {
    width: 100%;
    box-sizing: border-box;
    height: var(--fullscreen-height);
}
/* A time slider under the Earth map (#earthSlidersUnder, measured in placeEarthDisplay() in localsite.js) shows without
   scrolling: #fullscreen gives up its height. On phones, 100vh also counts the browser's toolbar, so that's left out too. */
#fullscreen {
    height: calc(var(--fullscreen-height) - var(--earth-sliders-height, 0px) - var(--earth-browser-bars, 0px));
}
@supports (height: 100svh) {
    #fullscreen.earthSlidersShown {
        --earth-browser-bars: calc(100vh - 100svh);
    }
}
/* The Earth map (#mainEarthDisplay) fills #fullscreen when the page has one (placeEarthDisplay() in localsite.js),
   and its play/pause button (nouislider.min.js) sits in the lower right, 35px up.
   #fullscreen needs a position (such as relative) for the button. */
#fullscreen > #mainEarthDisplay,
#fullscreen > #mainEarthDisplay #globalMapHolder {
    height: 100%;
}
/* #fullscreen closes when the Earth map closes and nothing else in it shows, set by placeEarthDisplay()
   in localsite.js. One with more, like project/goals' hero photos or the voice widget (engine), stays. */
#fullscreen.fullscreenEmpty {
    display: none;
}
#fullscreen > #mainEarthDisplay #mainframe {
    height: 100%;
    min-height: 0;
}
/* Scrolling over the Earth iframe in #fullscreen moves the page until the globe is clicked (initEarthScrollCover()
   in localsite.js adds .earthScrollActive); then the globe takes the pointer. */
#globalMapHolder.earthScrollCover iframe {
    pointer-events: none;
}
#globalMapHolder.earthScrollCover:not(.earthScrollActive) {
    cursor: pointer;
}
/* Phones can still hand a swipe to an iframe with pointer-events: none, which stops the page scrolling, so a clear
   layer sits over the iframe until the globe is clicked. A pseudo-element, since showGlobalMap() replaces the holder's
   HTML. No z-index, which keeps it under the map's controls. */
#globalMapHolder.earthScrollCover:not(.earthScrollActive)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
/* A drag on the cover would select the iframe, greying the whole map */
#globalMapHolder.earthScrollCover {
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}
#globalMapHolder.earthScrollCover.earthScrollActive iframe {
    pointer-events: auto;
}
/* Shown just under the first click on the globe by showEarthClickNote() in localsite.js, then faded away */
#earthClickNote {
    position: fixed;
    z-index: 10000;
    transform: translate(-50%, 18px);
    padding: 6px 12px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}
#earthClickNote.earthClickNoteShow {
    opacity: 1;
    transition: none;
}
/* The circle that gives scrolling back to the page. Outside #fullscreen it's left of the close-X (#earthClose: 32px,
   20px from the right, 22px down); in #fullscreen, after the zoom buttons at the bottom of the map's control stack. */
#earthScrollButton {
    position: absolute;
    z-index: 101;
    right: 140px;
    top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background-color: #555;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
#earthScrollButton:hover {
    background-color: #333;
}
#earthScrollButton[hidden] {
    display: none;
}
#earthScrollButton .material-icons {
    display: block;
    font-size: 22px;
    line-height: 1;
}
/* Countdown ring on its edge: a grey arc grows clockwise from the top over --earth-scroll-ms (EARTH_SCROLL_MS in
   localsite.js), closing the circle as scrolling returns. */
.earthScrollRing {
    position: absolute;
    inset: -2px;
    width: 36px;
    height: 36px;
    pointer-events: none;
    overflow: visible;
}
.earthScrollRing circle {
    fill: none;
    stroke: #808080;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 100 100;
    stroke-dashoffset: 100;
}
.earthScrollRun .earthScrollRing circle {
    animation: earthScrollRing var(--earth-scroll-ms, 8s) linear forwards;
}
@keyframes earthScrollRing {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}
/* Where the voice widget loads (initFullscreenVoice() in localsite.js), it moves the button into its own controls,
   which style it, so these rules no longer apply. */
#fullscreen > #earthPlayPauseButton {
    position: absolute;
    z-index: 102; /* Above the map's controls (100 and 101) */
    right: 20px;
    bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background-color: rgba(40, 40, 40, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
#fullscreen > #earthPlayPauseButton:hover,
#fullscreen > #earthPlayPauseButton:focus-visible {
    background-color: rgba(20, 20, 20, 0.85);
}
#fullscreen > #earthPlayPauseButton .material-icons {
    font-size: 28px;
    line-height: 1;
}
/* In #fullscreen, the map's controls stack down its upper right, 20px in and 22px down, 8px apart, as 32px circles in
   tab order (stackEarthControls() in localsite.js): the search filters' section toggle (#filterFieldToggleHolder,
   whose menu opens to the stack's left), the close-X (#earthClose), zoom in, zoom out and, while the globe has the
   pointer, the scroll circle (#earthScrollButton). In the lower left, 10px in, a tune circle (#earthControlsToggle, initEarthControls()
   in localsite.js), in a dark bar with the date to its right, opens and closes the filters panel (#mainEarthFilters).
   A click on the date shows its picker in its place. While the filters panel is open, the clock replaces the tune circle. */
#fullscreen > #mainEarthDisplay .earth-zoom-controls {
    right: 20px !important; /* Over the inline right, bottom and display from nouislider.min.js */
    top: 22px !important;
    bottom: auto !important;
    display: flex !important; /* Shows with the map, since the close-X is in it */
    flex-direction: column;
    gap: 8px;
}
#fullscreen > #mainEarthDisplay .earth-zoom-controls .earth-control-zoom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    top: 0;
}
#fullscreen > #mainEarthDisplay .earth-zoom-controls > #earthClose {
    position: static !important; /* Over its inline place in the upper right */
}
#fullscreen > #mainEarthDisplay .earth-zoom-controls > #earthScrollButton {
    position: relative; /* In the stack's flow, below the zoom buttons. Relative keeps its countdown ring placed on it. */
    top: auto;
    right: auto;
}
#fullscreen > #mainEarthDisplay .earth-zoom-controls > #filterFieldToggleHolder {
    float: none;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(40, 40, 40, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
#fullscreen > #mainEarthDisplay .earth-zoom-controls > #filterFieldToggleHolder:hover,
#fullscreen > #mainEarthDisplay .earth-zoom-controls > #filterFieldToggleHolder:focus-visible {
    background-color: rgba(20, 20, 20, 0.85);
}
#fullscreen > #mainEarthDisplay .earth-zoom-controls > #filterFieldToggleHolder .filter-toggle-circle {
    display: none; /* The stack's circle replaces it */
}
/* The dots wider in all (15.5px) than in the search filters' 13px: 3.5px each, 6px apart */
#fullscreen > #mainEarthDisplay .earth-zoom-controls > #filterFieldToggleHolder .filter-field-toggle-icon {
    width: 15.5px;
    height: 3.5px;
}
#fullscreen > #mainEarthDisplay .earth-zoom-controls > #filterFieldToggleHolder .filter-toggle-dot {
    width: 3.5px;
    height: 3.5px;
    background: #fff;
}
#fullscreen > #mainEarthDisplay .earth-zoom-controls > #filterFieldToggleHolder .filter-toggle-dot:nth-child(2) {
    left: 6px;
}
#fullscreen > #mainEarthDisplay .earth-zoom-controls > #filterFieldToggleHolder .filter-toggle-dot:nth-child(3) {
    left: 12px;
}
#fullscreen > #mainEarthDisplay .earth-zoom-controls > #filterFieldMenu {
    top: 0;
    right: calc(100% + 8px);
}
#fullscreen > #mainEarthDisplay .earth-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0 0 5px 1px; /* The + and - a little up and right of center. Centered in what padding leaves, so each 2px moves them 1px. */
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
    background-color: rgba(40, 40, 40, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
#fullscreen > #mainEarthDisplay .earth-bar a:hover,
#fullscreen > #mainEarthDisplay .earth-bar a:focus-visible {
    color: #fff;
    background-color: rgba(20, 20, 20, 0.85);
}
/* The close-X beside them takes their see-through background in place of its solid one (nouislider.min.css) */
#fullscreen > #mainEarthDisplay #earthClose {
    background-color: rgba(40, 40, 40, 0.6);
}
#fullscreen > #mainEarthDisplay #earthClose:hover,
#fullscreen > #mainEarthDisplay #earthClose:focus-visible {
    background-color: rgba(20, 20, 20, 0.85);
}
#earthControls {
    position: absolute;
    z-index: 0;
    left: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
/* While the bar is open for the date's picker (.earthDateOpen, localsite.js), it comes in front of everything else on
   the map: the filters panel over the map (998, earth-filters.css), its menu (999) and the map's buttons. project/goals
   raises #fullscreen above its page meanwhile (goals.css). */
html.earthDateOpen #earthControls {
    z-index: 1005;
}
/* Under the map in #fullscreen, after it in the page (#earthUnderMap, placeEarthDisplay() in localsite.js), the
   3-day time slider (#slider-full, in #earthSlidersUnder), large or small. The filters panel set to "Under Map"
   (#mainEarthFilters) follows it. Positioned, so it paints over a fixed #fullscreen
   (project/goals) like the page's other content. */
#earthUnderMap {
    position: relative;
}
/* "Small Slider" here is the 3-day slider (#slider-full, data-earth-slider="onmap" from applySliderPrefs() in
   nouislider.min.js) drawn like the one-day slider on the map: a thin dark bar across the whole width, its hours
   on the bar, and the active hour in a black box that drags, without the day names. The one-day #slider-on-map
   stays hidden, still driving playback and the arrow keys, which keep the two in step through the hash. */
#earthSlidersUnder > #slider-on-map {
    display: none !important;
}
html[data-earth-slider="onmap"] #earthSlidersUnder > #slider-full {
    display: block !important; /* Over the inline display: none for the small slider */
    padding: 6px 22px; /* The sides leave room for the box at either end, and 5px beyond it */
    border-top: 0;
    background: rgba(0, 0, 0, 0.5); /* The dark bar, the full width and against the bottom of the map */
}
html[data-earth-slider="onmap"] #earthSlidersUnder > #slider-full.slider-full-narrow {
    padding-left: 35px;
    padding-right: 35px;
}
html[data-earth-slider="onmap"] .dark #earthSlidersUnder > #slider-full {
    background: rgba(10, 16, 22, 0.7);
}
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-days,
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track .noUi-marker {
    display: none;
}
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track {
    height: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track .noUi-base {
    width: 100%; /* No bar past the hours here, unlike the Large Slider */
    margin-left: 0;
}
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track::before,
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track::after {
    top: -6px; /* The lines between the days, the height of the dark bar */
    bottom: -6px;
    z-index: 0; /* Under the active hour's box */
    background: rgba(255, 255, 255, 0.35);
}
/* 9px outward from the thirds, the same as the Large Slider's lines (nouislider.min.css) */
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track::before {
    left: calc(100% / 3 - 9px);
}
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track::after {
    left: calc(200% / 3 + 9px);
}
/* The hours on the bar */
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track .noUi-pips-horizontal {
    display: block; /* Also when narrow, unlike the Large Slider */
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    padding: 0;
}
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track .noUi-value {
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}
/* The active hour, in a black box that drags */
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track .noUi-handle {
    height: 17px;
    top: -3px;
    border: 1px solid #D9D9D9;
    border-radius: 3px;
    box-shadow: none;
}
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track .noUi-handle::before,
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track .noUi-handle::after {
    display: none;
}
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track .noUi-touch-area {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 2px;
    background: #000;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    cursor: grab;
}
html[data-earth-slider="onmap"] #earthSlidersUnder #slider-full-track .noUi-touch-area::after {
    content: attr(data-hour); /* Set by createFullSlider() in nouislider.min.js */
}
/* The dark bar: the tune circle with the date to its right, 127px wide or more. Clicks on the date open its picker. */
#earthControlsBar {
    position: relative;
    top: -5px; /* 5px above and 1px left of its place in #earthControls */
    left: -1px;
    display: flex;
    align-items: stretch;
    gap: 0; /* #slider-toggle-wrap right against the circle */
    box-sizing: border-box;
    min-width: 127px;
    padding-right: 14px;
    border-radius: 20px;
    background-color: #333;
}
/* The column on the left: the tune circle, or the clock (#slider-toggle-btn) in its place while the filters panel is
   open. Above #earth-picker-backdrop, so the clock can close the picker. */
#earthControlsIcons {
    position: relative;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
}
#earthControlsToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.75);
    background-color: rgba(40, 40, 40, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
#earthControlsToggle:hover,
#earthControlsToggle:focus-visible,
#earthControlsToggle[aria-expanded="true"] {
    color: #fff;
    background-color: rgba(20, 20, 20, 0.85);
}
/* The filters panel's three-dot button (earth-filters.js) at the right end of its tabs, in a 32px circle */
#mainEarthFilters .ef-more {
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.75);
    background-color: rgba(40, 40, 40, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
#mainEarthFilters .ef-more .ef-md {
    width: 24px;
    height: 24px;
}
#mainEarthFilters .ef-more .ef-md circle {
    stroke: currentColor;
    stroke-width: 44; /* Bolder dots: their 46 radius out to 68, in the icon's 960 viewBox */
}
#mainEarthFilters .ef-more:hover,
#mainEarthFilters .ef-more:focus-visible,
#mainEarthFilters .ef-more[aria-expanded="true"] {
    color: #fff;
    background-color: rgba(20, 20, 20, 0.85);
}
#earthControlsToggle .material-icons {
    font-size: 26px;
    line-height: 1;
}
#earthControlsIcons #slider-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 1; /* Over .earthCircleIcons */
    color: rgba(255, 255, 255, 0.75);
    background-color: rgba(40, 40, 40, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
#earthControlsBar.earthFiltersOpen #slider-toggle-btn {
    display: flex;
}
#earthControlsBar.earthFiltersOpen #earthControlsToggle {
    display: none;
}
#earthControlsIcons #slider-toggle-btn:hover {
    color: #fff;
    background-color: rgba(20, 20, 20, 0.85);
}
#earthControlsIcons #slider-toggle-btn .material-icons {
    font-size: 26px;
    line-height: 1;
}
/* The date, level with the tune circle, showing until it's clicked */
#mainEarthDisplay #earthControlsBar #slider-toggle-wrap {
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 6px;
    height: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
}
/* A click on the date hides it, and its picker (nouislider.min.js) takes its place as one row: the date and time,
   then the slider position and speed */
#mainEarthDisplay #earthControlsBar #slider-toggle-wrap.earth-picker-open #slider-toggle-date {
    display: none !important;
}
#earthControlsBar #earth-date-picker {
    grid-template-columns: repeat(4, auto);
    box-sizing: border-box;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
}
#earthControlsBar #slider-toggle-date {
    display: block !important; /* nouislider.min.js hides it until the slider or clock is used */
    margin-left: 0;
    line-height: 40px;
    opacity: 0.85;
}
#earthControlsBar #slider-toggle-wrap:hover #slider-toggle-date,
#earthControlsBar #slider-toggle-wrap:focus-visible #slider-toggle-date {
    opacity: 1;
}
/* The tune circle opens the filters panel here, so its own toggle over nullschool's "earth" button
   (.ef-map-toggle, earth-filters.js), which the bar would cover, is hidden. */
#fullscreen > #mainEarthDisplay > .ef-map-toggle {
    display: none;
}

/* Navigation Menu */
#side-nav-fixed {
    position: fixed;
    top: var(--headerbar-offset, var(--header-height));
    height: calc(100vh - var(--headerbar-offset, var(--header-height)));
    display: flex;
    flex-direction: row;
    overflow-y: auto;
    background-colorX: #efefef;
    background-colorX: rgb(250, 250, 250);
    /* position:fixed always makes this a stacking context, so the z-index values on
       #side-nav-content and #main-nav only order them inside it. With z-index:auto, a later
       fixed element with z-index:auto (explore's full-page .moduleBackground) paints over the nav.
       It also caps the fixed #listcolumn child (z-index:1000), so this must exceed Leaflet's
       panes (400-700) and .leaflet-top/.leaflet-bottom controls (1000), and the filter bar,
       for the list to paint over #map1. Still below #mobileRailBar (10100). */
    z-index: 1001;
}
.dark #side-nav-fixed {
    background-color: #363636; /* opaque: #44444533 looked light over pages without a dark body background */
}
#side-nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}
#side-nav-menu {
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.sidebar.collapsed #side-nav-menu {
    overflow: visible;
}

.sidebar.collapsed #side-nav-fixed {
    overflow: visible;
}
.nav-item {
    margin-bottom: 4px;
    positionX: relative;
    min-height: 42px;
}

.nav-link {
    min-width: 200px;
    display: flex;
    align-items: center;
    padding: 12px 12px 12px 12px;
    background: var(--bg-secondary);
    border: 0px solid transparent;
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transitionX: var(--transition-smooth);
    text-align: left;
    font-size: 20px;
    font-weight: 500;
    margin: 2px 8px;
    font-family: TwitterChirp, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-decoration: none;
    /* position: absolute !important; */
    z-index: 1500 !important;
}
.nav-link:link,
.nav-link:visited {
    color: var(--text-secondary);
}

.nav-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-medium);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);

    align-items: left !important;
}

/* Use solid background when sidebar is expanded */
.sidebar.expanded .nav-link:hover,
.sidebar.hovered:not(.locked) .nav-link:hover {
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--text-primary);
}
.dark .nav-link.active  {

}
/* Active nav styling for different states */
.nav-link.active {
    background: var(--bg-tertiary);
}

/* Expanded state - show full width background */
#side-nav.expanded .nav-link.active {
    background: var(--bg-tertiary);
    width: calc(100% - 16px);
    height: auto;
    margin: 2px 8px;
    justify-content: space-between;
    padding: 12px 16px 12px 16px;
}

/* Collapsed state - show circular background */
.sidebar.collapsed .nav-text {
  displayX: none !important;
}
.sidebar.collapsed .nav-link.active {
    background: var(--bg-tertiary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px !important;
    marginX: 4px auto;
    margin-left:10px;
    justify-content: center;
    padding: 12px;
}
.sidebar.collapsed .nav-icon {
  margin-right: 0px !important;
}

.sidebar.collapsed.hovered:not(.locked) .nav-link.active {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    width: calc(100% - 16px);
    height: auto;
    margin: 2px 8px;
    justify-content: space-between;
    padding: 12px 16px 12px 16px;
}

.nav-icon {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    flex-shrink: 0;
    color: inherit;
}

.nav-link:link .nav-icon,
.nav-link:visited .nav-icon {
    color: var(--text-secondary);
}

.nav-text {
    flex: 1;
    white-space: nowrap;
    opacity: 1;
    transition: var(--transition-smooth);
    display: block;
}
.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
}

.sidebar.collapsed .nav-link:hover .nav-text {
    opacity: 1;
    display:block !important; /* Show on circle hover */
}

.nav-link:hover .nav-text {
  colorX: #333;
}

.sidebar.collapsed.hovered:not(.locked) .nav-text {
    opacity: 1;
    width: auto;
    display: block;
}

.nav-arrow {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    position: relative;
}


.nav-arrow.expanded {
    transform: rotate(90deg);
}

.sidebar.collapsed .nav-arrow {
    display: none;
}

.sidebar.collapsed .nav-link {
  position: absolute !important; /* Allows rollover to be hidden when nav width is collapsed */
}

.sidebar.collapsed.hovered:not(.locked) .nav-arrow {
    opacity: 1;
    width: 16px;
}

/* Subnav Styles */
.subnav {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: transparent;
}

.subnav.expanded {
    max-height: 300px;
}

.subnav-link {
    display: flex;
    align-items: center;
    padding: 8px 20px 8px 52px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.subnav-link:link,
.subnav-link:visited {
    color: var(--text-secondary);
}

.subnav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
}

/* Dark mode hover styles - make nav and subnav hovers darker */
.dark .nav-link:hover {
    background: #374151 !important;
}

.dark .subnav-link:hover {
    background: #374151 !important;
}

.subnav-link.active {
    color: var(--accent-blue);
    background: var(--bg-secondary);
    font-weight: 500;
}

.subnav-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    color: inherit;
}

.subnav-link:link .subnav-icon,
.subnav-link:visited .subnav-icon {
    color: var(--text-secondary);
}

.sidebar.collapsed .subnav {
    display: none;
}

.sidebar.collapsed.hovered:not(.locked) .subnav {
    display: block;
}

/* Main Content */
.main-content {
    displayX: flex;
    flexX: 1;
    transition: var(--transition-smooth);
    min-height: 100vh;
    width: 100%;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .nav-link {
    padding-right: 20px;
  }
  #side-nav {
    top: var(--top-nav-offset, var(--header-height, 60px));
  }
  
  /* Expanded nav arrows on mobile - larger with circle background */
  #side-nav.expanded .nav-arrow {
    width: 32px !important;
    height: 32px !important;
    background: var(--bg-tertiary) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 12px !important;
  }
  
  /* Dark mode styling for mobile nav arrow circles */
  .dark #side-nav.expanded .nav-arrow {
    background: #333 !important;
  }
    #side-navX {
        width: 64px;
        position: fixed;
        top: var(--header-height, 79px);
        left: 0;
        height: calc(100vh - var(--header-height, 79px));
        z-index: 1000;
    }
    
    /* Hide sidebar completely on mobile when hidden */
    body.sidebar-hidden #side-nav {
        display: none !important;
    }
    
    /* When mobile-open, expand to full width and overlay */
    #side-nav.mobile-open {
        width: 100vw !important;
        z-index: 2000;
    }
    
    /* Show titles and arrows when mobile-open (expanded) */
    #side-nav.mobile-open .nav-text {
        opacity: 1 !important;
        width: auto !important;
        display: block !important;
    }
    
    #side-nav.mobile-open .nav-arrow {
        display: block !important;
        opacity: 1 !important;
    }
    
    #side-nav.mobile-open .logo-text {
        opacity: 1 !important;
        width: auto !important;
        display: block !important;
    }
    
    /* Fix active nav alignment in mobile-open - don't center when text is visible */
    #side-nav.mobile-open .nav-link {
        justify-content: space-between !important;
        width: calc(100% - 16px) !important;
        margin: 2px 8px !important;
        padding-right: 16px !important;
    }
    
    #side-nav.mobile-open .nav-link .nav-icon {
        margin-right: 12px !important;
    }
    
    /* Fix active nav circle in mobile-open - prevent oval stretching and offset issues */
    #side-nav.mobile-open .nav-link.active {
        background: var(--bg-tertiary) !important;
        border-radius: var(--radius-md) !important;
        justify-content: space-between !important;
        width: calc(100% - 16px) !important;
        height: auto !important;
        margin: 2px 8px !important;
        padding: 12px 16px 12px 16px !important;
    }
    
    /* Show subnav in mobile-open mode */
    #side-nav.mobile-open .subnav {
        display: block !important;
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
    }
    
    #side-nav.mobile-open .subnav.expanded {
        display: block !important;
        max-height: 300px !important;
        opacity: 1 !important;
        overflow: visible !important;
    }
    
    /* Ensure subnav links are visible in mobile-open */
    #side-nav.mobile-open .subnav-link {
        display: flex !important;
        opacity: 1 !important;
        padding: 8px 20px 8px 52px !important;
    }
    
    /* Hide main content when mobile nav is open */
    #main-layout {
        transition: var(--transition-smooth);
        margin-left: 0; /* No margin on mobile */
    }
    
    /* Only add margin when sidebar is visible and not hidden */
    body:not(.sidebar-hidden) #main-layout {
        margin-leftX: 64px;
    }
    
    #side-nav.mobile-open ~ #main-layout {
        opacity: 0.3;
        pointer-events: none;
        margin-left: 0; /* No margin when overlay mode */
    }
    
    .main-content {
        margin-left: 0;
    }
    
    /* Ensure body doesn't reserve space for hidden sidebar on mobile */
    body.sidebar-hidden {
        --side-nav-width: 0px;
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        display: none;
    }
    
    .mobile-overlay.active {
        display: block;
    }
}

/* Tooltips for collapsed sidebar */
.nav-tooltip {
    position: fixed;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 5000;
    pointer-events: auto;
    opacity: 0;
    transition: none;
    height: 48px;
    display: flex;
    align-items: center;
    min-width: 180px;
    transform: translateX(3px); /* Shift entire tooltip right by 3px (moved 10px left from original 13px) */
}

.nav-tooltip.show {
    opacity: 1;
}

.tooltip-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: absolute;
    left: 12px; /* Position icon at left edge of tooltip */
}

.tooltip-text {
    flex: 1;
    text-align: center;
    padding: 0 12px 0 48px; /* Left padding to clear the fixed icon */
}

.tooltip-link {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0 12px 0 0;
    font: inherit;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    transition: none;
}

.tooltip-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dark mode fix for tooltip curved corners */
.dark .nav-tooltip {
    background: #6b7280; /* Lighter grey for rollover */
}

.dark .tooltip-link {
    border-radius: 24px;
    margin: 0 -12px;
}

.dark .tooltip-link:hover {
    background: #6b7280; /* Lighter grey for rollover */
}

/* Active icon circle in dark mode */
.dark .sidebar.collapsed .nav-link.active {
    background: #6b7280; /* Lighter grey circle around active icon */
    border-radius: 50%;
    align-itemsX: center;
    justify-contentX: center;
}
.dark .sidebar.collapsed .nav-link.active .nav-icon {
    color: var(--text-primary);
    font-weight: bold;
}

.nav-x {
    float: right;
    width: 24px;
    height: 24px;
    background: var(--bg-secondary);
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4001;
    transition: var(--transition-smooth);
    opacity: 0.6;
    pointer-events: auto;
}

.nav-x:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    opacity: 1;
}

.dark .nav-x {
    color: #ccc;
}

.dark .nav-x:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Show close button when sidebar is visible, regardless of collapsed state */

@media (max-width: 600px) {
    .nav-x {
        width: 38px;
        height: 38px;
        font-size: 30px;
        position: static;
        padding: 12px;
        margin-bottom: 0px;
    }
    
    /* Keep showSideFromHeader visible on narrow screens */
    #showSideFromHeader {
        display: inline-block;
    }
}
@media (min-width: 601px) {
  #showSideFromHeader {
    padding-top: 20px;
  }
}
.basePanel {
    border-radius: var(--border-radius);
}
.basePanelTop {
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}
/* Not needed for team/js/map.js widget

*/
.basePanelPadding {
    padding:10px;
}
.basePanelFadeOut {
    position: relative;
    mask: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}
/* Reopen button for header */
.nav-reopen-btn {
    vertical-align: middle;
    display: inline-block;
    margin: 0 auto;
    padding: 6px;
    opacity: 0.3;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: none; /* Hidden by default */
}

.nav-reopen-btn i {
    font-size: 24px;
    min-width: 30px;
    opacity: 1;
    color: #333;
    padding-left: 2px;
    padding-right: 2px;
    border: 1px solid #555;
    border-radius: 8px;
}

.nav-reopen-btn i {
    color: #555;
}

.nav-reopen-btn i:hover {
    color: #000 !important;
}

.nav-reopen-btn:hover i {
    color: #000 !important;
}

.dark .nav-reopen-btn i {
    color: #ddd;
}

.dark .nav-reopen-btn:hover i {
    color: #fff !important;
}

/* Hide reopen button by default */
#openNav {
    display: none !important;
}

/* Show reopen button when sidebar is hidden */
body.sidebar-hidden #openNav {
    display: inline-block !important;
}

/* Show reopen button by default on mobile width */
@media (max-width: 600px) {
    #openNav {
        display: inline-block !important;
    }
    
    /* Hide reopen button when showSideFromHeader is visible */
    #showSideFromHeader:not([style*="display: none"]) ~ * #openNav,
    #showSideFromHeader:not([style*="display:none"]) ~ * #openNav {
        display: none !important;
    }
    
    /* Alternative approach: hide when showSideFromHeader exists and is visible */
    body:has(#showSideFromHeader:not([style*="display: none"])) #openNav,
    body:has(#showSideFromHeader:not([style*="display:none"])) #openNav {
        display: none !important;
    }
}

/* Ensure reopen button is visible */
#openNav i {
    display: inline-block;
    text-align: center;
    font-size: 24px !important; /* Keep original size for border */
    line-height: 20px !important; /* 4px smaller line-height */
    text-shadow: 0 0 1px currentColor, 0 0 1px currentColor, 0 0 1px currentColor !important; /* Make dots appear bolder */
    font-weight: bold !important;
}

/* Settings toggle styling - shared across projects */
#settings-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-secondary);
}

#settings-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: rotate(45deg);
}

#settings-toggle svg {
    stroke-width: 1;
}

/* Dark mode styles for settings toggle */
.dark #settings-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
}

.dark #settings-toggle:hover {
    background: #666;
    color: white;
    border-color: #777;
    transform: rotate(45deg);
}

.dark #settings-toggle svg {
    stroke: white;
}
.badge-setX {
    display: flex;
    flex-wrap: wrap;
}
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
    margin: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.badge:hover {
  background: #888;
  color: white;
}
/* Generic button styling to match anchor links */
.bthButton {
    font-size: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
    min-height: 32px;
    justify-content: center;
    box-sizing: border-box;
}

/* Panel Menu Toggle Styles - Reusable across panels */
.menuToggleMenu {
  position: absolute;
  right: 10px;
  top: 50px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  padding: 6px 0;
  z-index: 1001;
}
.menuToggleMenuInline {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  min-width: 180px;
  padding: 6px 0;
}
.dark .menuToggleMenu {
  background: #333;
  border-color: #555;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.dark .menuToggleMenuInline {
  background: #333;
  border-color: #555;
}
.menuToggleItem {
  padding: 8px 12px;
  cursor: pointer;
  color: #444;
  display: block;
  text-decoration: none;
  position: relative;
  line-height: 1;
}
.menuToggleItem .material-icons {
  font-size: 16px;
  vertical-align: middle;
  margin-right: 8px;
}
.menuToggleCheck {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #888;
  display: none !important;
}
.menuToggleItem.is-active .menuToggleCheck {
  display: inline-block !important;
}
.menuToggleItem:hover {
  background: #f2f2f2;
  color: #111;
}
.menuToggleDivider {
  border-top: 1px solid #eee;
  margin: 4px 0;
}
.menuToggleLink {
  color: inherit;
}
.dark .menuToggleItem {
  color: #eee;
}
.dark .menuToggleCheck {
  color: #aaa;
}
.dark .menuToggleItem:hover {
  background: #444;
  color: #fff;
}
.dark .menuToggleLink {
  color: inherit;
}
.dark .menuToggleDivider {
  border-top-color: #555;
}
.menuToggleHolderInline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 100%;
  min-height: 34px;
  border: 1px solid #ddd; /* For #widgetDetailsControls (which is not the detail panel) */
  border-radius: 8px;
  transition: all 0.2s;
}
.menuToggleHolderInline .material-icons {
  transition: none;
}
.menuToggleHolderInline:hover {
  border-color: #007bff;
  background: #f8f9fa;
}
/* No box in dark mode: the toggle's icon already sits in a circle */
.dark .menuToggleHolderInline,
.dark .menuToggleHolderInline:hover {
  background: transparent;
  border-color: transparent;
}
.menuToggleHolderMap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 40px;
  height: 40px;
  background: transparent;
}
/* Add white transparent circle behind map icons */
.menuToggleHolderMap::before {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: background 0.2s ease;
}
.menuToggleHolderMap:hover::before {
  background: #333;
}
/* Dark mode: dark circle with a light arrow, visible over light and dark map tiles */
.dark .menuToggleHolderMap::before {
  background: rgba(0, 0, 0, 0.35);
}
.dark .menuToggleHolderMap:hover::before {
  background: rgba(0, 0, 0, 0.6);
}
.menuToggleHolderMap .material-icons {
  transition: color 0.2s ease;
  position: relative;
  z-index: 1;
}
.menuToggleHolderMap:hover .menu-toggle-arrow {
  color: white;
}
.dark .menuToggleHolderMap .menu-toggle-arrow {
  color: #eee;
}
.dark .menuToggleHolderMap:hover .menu-toggle-arrow {
  color: #fff;
}
/* Common circle background styling for menu toggle icons */
.menuToggleHolderMap .material-icons.circle-bg {
  /* color: rgba(255, 255, 255, 0.6); */
  font-size: 34px;
}
.dark .menuToggleHolderMap .material-icons.circle-bg {
  color: rgba(32, 32, 32, 0.75);
}
/* Circle background for non-map panels */
.menuIconHolder:not(.menuToggleHolderMap) .material-icons.circle-bg {
  color: #ddd;
  font-size: 32px;
}
.dark .menuIconHolder:not(.menuToggleHolderMap) .material-icons.circle-bg {
  color: rgba(255, 255, 255, 0.7);
}
/* Common arrow icon styling for all MenuControl arrows */
.menu-toggle-arrow {
  font-size: 28px;
  font-weight: 500;
  /* color: #aaa; */
}
/* Ensure icon positioning is stable */
#widgetDetailsMenuControl .material-icons,
#widgetmapWrapperMenuControl .material-icons,
#pageGalleryMenuControl .material-icons,
#locationDetailsMenuControl .material-icons {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
#widgetDetailsMenuControl .material-icons[id$="MenuToggleIcon"],
#widgetmapWrapperMenuControl .material-icons[id$="MenuToggleIcon"],
#pageGalleryMenuControl .material-icons[id$="MenuToggleIcon"],
#locationDetailsMenuControl .material-icons[id$="MenuToggleIcon"] {
  position: absolute !important;
}
/* Fade transition for locationDetails during tour */
.locationDetails {
  transition: opacity 0.2s ease-in-out;
}
.locationDetails.fading {
  opacity: 0.5;
}
/* Wider clickable area for locationDetails menu toggle */
#locationDetailsMenuControl {
  padding: 8px 12px !important;
}
#rightIcons {
  max-height: 54px;
  overflow: visible;
}
#filterFieldsDropdownToggle {
  display: none;
  float: left;
  padding: 6px;
  padding-left: 0;
  opacity: 0.3;
  cursor: pointer;
}
#filterFieldsDropdownToggle .material-icons {
  font-size: 35px;
  font-weight: 500;
  opacity: 1;
  color: #333;
  padding-top: 3px;
  padding-left: 5px;
  padding-right: 2px;
  min-width: 38px;
}
.dark #filterFieldsDropdownToggle .material-icons {
  color: #bbb;
}
.filterTopIconHolder {
  position: relative;
  float: left;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  overflow: visible;
}
.bar-centered-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* When the search filters are within #fullscreen (.filtersOverFullscreen, localsite.js computeTopNavOffset), their
   buttons (Locations, Topics, GO, the menu) and the search box take the voice widget's see-through dark background
   (its .wrap buttons, engine/js/voice-chat.js). !important is over search-filters.css and inline styles in
   map/filter.html. */
html.filtersOverFullscreen #mapFilters .filterClick,
html.filtersOverFullscreen #mapFilters #goSearch,
html.filtersOverFullscreen #mapFilters #showSideFromBar i {
  color: #f4f6fb !important;
  background: rgba(10, 12, 20, 0.5) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}
html.filtersOverFullscreen #mapFilters .filterClick:hover,
html.filtersOverFullscreen #mapFilters #goSearch:hover,
html.filtersOverFullscreen #mapFilters #showSideFromBar i:hover {
  background: rgba(10, 12, 20, 0.65) !important;
}
html.filtersOverFullscreen #mapFilters .filterClick i,
html.filtersOverFullscreen #mapFilters #goSearch span {
  color: inherit !important;
}
html.filtersOverFullscreen #mapFilters .filterClick::placeholder {
  color: rgba(244, 246, 251, 0.7);
}
html.filtersOverFullscreen #mapFilters #showSideFromBar {
  opacity: 1 !important; /* Its own 0.3 would wash out the dark background */
}
#filterFieldToggleHolder {
  width: 54px;
  min-width: 54px;
  cursor: pointer;
}
#filterFieldToggleInHeader {
  width: 44px;
  min-width: 44px;
  cursor: pointer;
  display: none;
}
#showSideTabsInBar {
  width: 42px;
}
#filterFieldToggleHolder i,
#filterFieldToggleInHeader i {
  font-size: 32px;
  color: #888;
  cursor: pointer;
}
#filterFieldToggleHolder .filter-toggle-circle,
#filterFieldToggleInHeader .filter-toggle-circle {
  font-size: 32px;
}
#filterFieldToggleIcon,
#filterFieldToggleIconInHeader,
.filter-field-toggle-icon {
  position: absolute !important;
  display: block;
  width: 13px;
  height: 3px;
  transform: translate(-50%, -50%);
}
.filter-field-toggle-icon .filter-toggle-dot {
  position: absolute;
  top: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #666;
}
.filter-field-toggle-icon .filter-toggle-dot:nth-child(1) {
  left: 0;
}
.filter-field-toggle-icon .filter-toggle-dot:nth-child(2) {
  left: 5px;
}
.filter-field-toggle-icon .filter-toggle-dot:nth-child(3) {
  left: 10px;
}
/* Dark: an outlined circle and dots matching #widgetToggleIcon (.dark .menuToggleHolder in search-filters.css) */
.dark #filterFieldToggleHolder .filter-toggle-circle,
.dark #filterFieldToggleInHeader .filter-toggle-circle {
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  overflow: hidden;
  color: transparent;
  border: 2px solid #ddd;
  border-radius: 50%;
}
.dark .filter-field-toggle-icon .filter-toggle-dot {
  background: #ddd;
}
@media (max-width: 400px) {
  #filterFieldToggleHolder i,
  #filterFieldToggleInHeader i {
    font-size: 36px;
  }
  #filterFieldToggleHolder .filter-toggle-circle,
  #filterFieldToggleInHeader .filter-toggle-circle {
    font-size: 36px;
  }
  #filterFieldToggleIcon,
  #filterFieldToggleIconInHeader,
  .filter-field-toggle-icon {
    width: 13px;
    height: 3px;
    transform: translate(-50%, -50%);
  }
  .filter-field-toggle-icon .filter-toggle-dot {
    width: 4px;
    height: 4px;
  }
}
@media (max-width: 600px) {
  #filterFieldsDropdownToggle {
    display: block;
  }
  #filterFieldToggleHolder {
    display: none;
  }
  #filterFieldToggleInHeader {
    display: inline-flex;
  }
  #filteFieldsDropdowns {
    container-type: inline-size;
  }
  #filteFieldsDropdowns.auto-hide-narrow {
    display: none;
  }
}
/* Orange color for pause icon during tour */
#locationDetailsMenuToggleIcon.pause-icon {
  color: #ff6b35 !important;
}
.content-edges {
  margin-left: 18px;
  margin-right: 18px;
}
@media (max-width: 600px) {
  .content-edges {
    margin-left: 0;
    margin-right: 0;
  }
}

.earth-control {
    cursor: auto;
    clear: both;
    position: relative;
    z-index: 400;
    pointer-events: visiblePainted;
    pointer-events: auto;
}
.earth-bar a {
    display: block;
    width: 32px;
    height: 32px;
    font-size: 30px;
    font-weight: bolder;
    color: #fff;
    background-color: #555;
    border: 0px;
    border-radius: 6px;
    margin-left: 4px;
    text-decoration: none;
    text-align: center;
    line-height: 26px;
    vertical-align: center;
}
.earth-bar a:hover {
  background-color: #666;
}
.earth-control-zoom-in {
  margin-bottom: 6px;
}

/* Inline CMS editor mount point. min-height ensures app.svelte detects a non-zero
   height and uses position:relative (inline flow) instead of falling back to fixed. */
#nc-root {
  position: relative;
  width: 100%;
}
#nc-root .powered-by {
  display: none;
}
.cms-close-bar {
  display: flex;
  justify-content: flex-end;
  padding: 4px 8px;
  border-bottom: 1px solid #e5e7eb;
}
.md-editor-close {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
}
.md-editor-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* Play mode (localsite.js): while a voice conversation is under way, elements with .hideInPlayMode fade out of the way of
   Claude's floating words, and come back when it ends. visibility (inherited) also covers display:contents wrappers. */
html.playMode .hideInPlayMode {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
