/*
* Style tweaks
* --------------------------------------------------
*/

/* Global constants, primarily from our Design System Tokens. */
:root {
  /* Project Sidewalk primary color pallete. */
  --color-asphalt-100: #D5D3E4;
  --color-asphalt-200: #9F9DB1;
  --color-asphalt-300: #615E78;
  --color-asphalt-400: #424055;
  --color-asphalt-500: #2D2A3F;
  --color-asphalt-600: #242232;
  --color-asphalt-700: #1B1926;
  --color-asphalt-800: #121119;
  --color-asphalt-900: #09080D;

  --color-pine-100: #E4F4EE;
  --color-pine-200: #C9E9DD;
  --color-pine-300: #AEDFCD;
  --color-pine-400: #93D4BC;
  --color-pine-500: #78C9AB;
  --color-pine-600: #60A189;
  --color-pine-700: #487967;
  --color-pine-800: #305044;
  --color-pine-900: #182822;

  --color-orange-100: #FDEDE8;
  --color-orange-200: #FBE3DC;
  --color-orange-300: #F6B6A2;
  --color-orange-400: #F29173;
  --color-orange-500: #EB724E;
  --color-orange-600: #A74D32;
  --color-orange-700: #8D442F;
  --color-orange-800: #5E2E1F;
  --color-orange-900: #2F1710;

  --color-banana-100: #FEF7E8;
  --color-banana-200: #FDF0D1;
  --color-banana-300: #FDE8BA;
  --color-banana-400: #FCE1A3;
  --color-banana-500: #FBD98C;
  --color-banana-600: #FFCD64;
  --color-banana-700: #F1B12A;
  --color-banana-800: #CB8F11;
  --color-banana-900: #A87303;

  --color-neutral-white: #FFFFFF;
  --color-neutral-100: #F0F0F0;
  --color-neutral-200: #E1E1E1;
  --color-neutral-300: #D1D1D1;
  --color-neutral-400: #C2C2C2;
  --color-neutral-500: #B3B3B3;
  --color-neutral-600: #8F8F8F;
  --color-neutral-700: #6B6B6B;
  --color-neutral-800: #484848;
  --color-neutral-900: #242424;
  --color-neutral-black: #000000;

  /* Project Sidewalk secondary color palette. Each ramp's 500 is a canonical label-type color (see below). */
  --color-blue-100: #F6FAFE;
  --color-blue-200: #F1F7FD;
  --color-blue-300: #E8F2FC;
  --color-blue-400: #C6E0FA;
  --color-blue-500: #78B0EA;

  --color-mint-100: #EDF8F5;
  --color-mint-200: #DBF0EC;
  --color-mint-300: #AEDFCD;
  --color-mint-400: #92D3C5;
  --color-mint-500: #62C0AC;

  --color-lime-100: #F6FCE9;
  --color-lime-200: #ECF8D3;
  --color-lime-300: #C7EB7A;
  --color-lime-400: #A7D447;
  --color-lime-500: #8FC31E;

  --color-purple-100: #F5ECF9;
  --color-purple-200: #EAD9F2;
  --color-purple-300: #D6B2E6;
  --color-purple-400: #C99ADE;
  --color-purple-500: #BE87D8;

  --color-pink-100: #FBEAF3;
  --color-pink-200: #F7D4E7;
  --color-pink-300: #EFA9CF;
  --color-pink-400: #F092C6;
  --color-pink-500: #E679B5;

  --color-pumpkin-100: #FEF1E7;
  --color-pumpkin-200: #FDE2CE;
  --color-pumpkin-300: #FAC69E;
  --color-pumpkin-400: #F8A96D;
  --color-pumpkin-500: #F68D3E;

  --color-yellow-100: #FEFAF0;
  --color-yellow-200: #FEF7E6;
  --color-yellow-300: #FEEECD;
  --color-yellow-400: #FCD977;
  --color-yellow-500: #FABF1C;

  /* Project Sidewalk functional color pallete. */
  --color-success-100: #43EF8E;
  --color-success-200: #11C961;

  --color-error-100: #F47178;
  --color-error-200: #ED1C24;

  --color-warning-100: #FFEF92;
  --color-warning-200: #FFDE24;

  --color-link-100: #3E8BD9;
  --color-link-200: #0F5FAF;

  /* Project Sidewalk label-type color palette. The canonical color for each accessibility label type. */
  --color-label-curb-ramp: var(--color-lime-500);
  --color-label-no-curb-ramp: var(--color-pink-500);
  --color-label-obstacle: var(--color-blue-500);
  --color-label-surface-problem: var(--color-pumpkin-500);
  --color-label-no-sidewalk: var(--color-purple-500);
  --color-label-crosswalk: var(--color-yellow-500);
  --color-label-signal: var(--color-mint-500);

  /* Font stacks. Mulish handles ~all type (body, UI, headings H3 and below); Raleway is reserved for top-level H1/H2
       and the Small-Accent style. Mulish doesn't ship CJK glyphs, so its stack ends with Traditional-Chinese system
       fonts (PingFang TC on macOS/iOS, Microsoft JhengHei on Windows; Linux/Android fall through via sans-serif). The
       browser does per-glyph fallback: Latin renders in Mulish, CJK in the OS CJK font.
       Avoid --font-accent (Raleway) for text that shows numbers — its digits aren't tabular, so figures don't align
       vertically in columns or stay steady in changing counters/timers. Use --font-primary for numeric content. */
  --font-primary: "Mulish", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-accent:  "Raleway", sans-serif;

  /* Typography scale: mirrors the Figma Design System Tokens file.
       Format: font-weight font-size/line-height font-family. The font-size and line-height are each multiplied by
       var(--ui-scale, 1) so every type token scales with uniform UI scaling that we have on some pages. Pages that
       don't set --ui-scale fall back to 1, leaving the tokens at their native sizes. */
  --text-h1-xl-bold:       700 calc(80px * var(--ui-scale, 1))/calc(80px * var(--ui-scale, 1)) var(--font-primary);

  --text-h1-bold:          700 calc(32px * var(--ui-scale, 1))/calc(38px * var(--ui-scale, 1)) var(--font-accent);

  --text-h2-bold:          700 calc(28px * var(--ui-scale, 1))/calc(34px * var(--ui-scale, 1)) var(--font-accent);

  --text-h3-bold:          700 calc(24px * var(--ui-scale, 1))/calc(28px * var(--ui-scale, 1)) var(--font-primary);
  --text-h3-medium:        500 calc(24px * var(--ui-scale, 1))/calc(28px * var(--ui-scale, 1)) var(--font-primary);

  --text-title-bold:       700 calc(20px * var(--ui-scale, 1))/calc(24px * var(--ui-scale, 1)) var(--font-primary);
  --text-title-medium:     500 calc(20px * var(--ui-scale, 1))/calc(24px * var(--ui-scale, 1)) var(--font-primary);

  --text-subtitle-bold:    700 calc(18px * var(--ui-scale, 1))/calc(22px * var(--ui-scale, 1)) var(--font-primary);
  --text-subtitle-medium:  500 calc(18px * var(--ui-scale, 1))/calc(22px * var(--ui-scale, 1)) var(--font-primary);
  --text-subtitle-regular: 400 calc(18px * var(--ui-scale, 1))/calc(22px * var(--ui-scale, 1)) var(--font-primary);

  --text-body-bold:        700 calc(16px * var(--ui-scale, 1))/calc(22px * var(--ui-scale, 1)) var(--font-primary);
  --text-body-medium:      500 calc(16px * var(--ui-scale, 1))/calc(22px * var(--ui-scale, 1)) var(--font-primary);
  --text-body-regular:     400 calc(16px * var(--ui-scale, 1))/calc(22px * var(--ui-scale, 1)) var(--font-primary);

  --text-small-bold:       700 calc(14px * var(--ui-scale, 1))/calc(18px * var(--ui-scale, 1)) var(--font-primary);
  --text-small-medium:     500 calc(14px * var(--ui-scale, 1))/calc(18px * var(--ui-scale, 1)) var(--font-primary);
  --text-small-regular:    400 calc(14px * var(--ui-scale, 1))/calc(18px * var(--ui-scale, 1)) var(--font-primary);
  --text-small-accent:     400 calc(14px * var(--ui-scale, 1))/calc(18px * var(--ui-scale, 1)) var(--font-accent);

  --text-caption-semibold: 600 calc(12px * var(--ui-scale, 1))/calc(18px * var(--ui-scale, 1)) var(--font-primary);
  --text-caption-medium:   500 calc(12px * var(--ui-scale, 1))/calc(18px * var(--ui-scale, 1)) var(--font-primary);
  --text-caption-regular:  400 calc(12px * var(--ui-scale, 1))/calc(18px * var(--ui-scale, 1)) var(--font-primary);
  --text-underline-medium: 500 calc(12px * var(--ui-scale, 1))/calc(18px * var(--ui-scale, 1)) var(--font-primary);

  /* Try to avoid using such tiny text!! */
  --text-tiny-semibold: 600 calc(10px * var(--ui-scale, 1))/calc(12px * var(--ui-scale, 1)) var(--font-primary);
  --text-tiny-medium:   500 calc(10px * var(--ui-scale, 1))/calc(12px * var(--ui-scale, 1)) var(--font-primary);
  --text-tiny-regular:  400 calc(10px * var(--ui-scale, 1))/calc(12px * var(--ui-scale, 1)) var(--font-primary);

  /* Other globals. */
  --navbar-height: 38px;
  --navbar-z-index: 1030;
}


/* Global visibility utilities. !important so they hide an element regardless of the display/visibility its own
   classes set; scripts show the element again by removing the class (never by setting an inline style). */
.ps-hidden {
  display: none !important;
}

.ps-invisible {
  visibility: hidden !important;
}


/* General styles */
@font-face {
  font-family: raleway;
  src: url("../fonts/Raleway/Raleway-Regular.ttf");
}

@font-face {
  font-family: raleway-bold;
  src: url("../fonts/Raleway/Raleway-Bold.ttf");
}

@font-face {
  font-family: raleway-extrabold;
  src: url("../fonts/Raleway/Raleway-ExtraBold.ttf");
}


/* TODO we should be using Mulish here. */
html,
body {
  font-family:"Open Sans", "Noto Sans", sans-serif;
  color: var(--color-neutral-black);
}

body {
  overflow-x: clip; /* Prevent horizontal scroll on narrow devices */

  /* Offsets content below the fixed navbar, plus the test-server banner when present. --test-banner-height is
     published by the banner's inline script and defaults to 0 (banner absent/dismissed, and always on prod). */
  padding-top: calc(var(--navbar-height) + var(--test-banner-height, 0px));
}

.spacer10 { height: 10px; }
.spacer20 { height: 20px; }

footer {
  padding: 30px 0;
}

/*
 * Accessibility styling updates.
 */
a {
  color: #0d6efd;
}

/* Replacing bootstrap 3 colors with bootstrap 5, which have a better color contrast. */
.btn-primary {
  background-color: #0D6EFD;
  border: #0D6EFD;
}


/*
 * Custom styles
 */

/* TODO when we get rid of bootstrap, can rename this to just "button". */
.button-ps {
  border: none;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-family: Raleway, sans-serif;
  text-decoration: none;
  transition: background-color 0.4s ease 0s;
  cursor: pointer;
}

.button-ps:hover {
  text-decoration: none;
}

.button-ps:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

/* TODO This one is used in the navbar, which we aren't scaling with --ui-scale. Need to address this another way. */
.button__static--tiny {
  font-size: 12px;
  font-style: var(--font-primary);
  padding: 3px 10px;
  border-radius: 8px;
}

.button--tiny {
  font: var(--text-caption-medium);
  padding: calc(3px * var(--ui-scale, 1)) calc(10px * var(--ui-scale, 1));
  border-radius: calc(8px * var(--ui-scale, 1));
}

.button--small {
  font: var(--text-caption-medium);
  padding: calc(6px * var(--ui-scale, 1)) calc(16px * var(--ui-scale, 1));
  border-radius: calc(10px * var(--ui-scale, 1));
}

.button--medium {
  font: var(--text-small-regular);
  padding: calc(8px * var(--ui-scale, 1)) calc(20px * var(--ui-scale, 1));
  border-radius: calc(12px * var(--ui-scale, 1));
}

.button--large {
  font-size: calc(15px * var(--ui-scale, 1));
  padding: calc(12px * var(--ui-scale, 1)) calc(36px * var(--ui-scale, 1));
  border-radius: calc(16px * var(--ui-scale, 1));
}

.button--primary {
  background-color: var(--color-banana-500);
  color: var(--color-neutral-black);
}

.button--primary:hover {
  background-color: var(--color-banana-200);
  color: var(--color-neutral-black);
}

.button--primary:focus {
  outline: 1px solid var(--color-banana-800);
  color: var(--color-neutral-black);
}

.button--primary:disabled {
  background-color: var(--color-neutral-200);
  color: var(--color-neutral-700)
}

.button--secondary {
  background-color: var(--color-neutral-white);
  color: var(--color-neutral-900);
  outline: 1px solid var(--color-neutral-800);
}

.button--secondary:hover {
  background-color: var(--color-banana-200);
  color: var(--color-neutral-900);
}

.button--secondary:focus {
  outline: 1px solid var(--color-banana-600);
  color: var(--color-neutral-900);
}

.button--secondary:disabled {
  color: var(--color-neutral-500);
  outline: 1px solid var(--color-neutral-500);
}

.label-icon {
  position: absolute;
  border: 1px solid var(--color-neutral-black);
  border-radius: 100%;
  outline: 0.5px solid var(--color-neutral-white);
}

.icon-outline {
  border: 1px solid var(--color-neutral-black);
  border-radius: 25px;
  outline: .5px solid var(--color-neutral-white);
}

#header {
  position: fixed;

  /* Drops below the test-server banner when present; --test-banner-height is 0 otherwise (and on prod). */
  top: var(--test-banner-height, 0);
  right: 0;
  left: 0;
  z-index: var(--navbar-z-index);
  height: var(--navbar-height);
  transition: height 0.2s ease 0s;
  background-color: var(--color-neutral-white);
  border-bottom: 1px solid #e7e7e7;
  display: flex;
}

.navbar-container {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 4.5%;
}

.navbar-lnk {
  display: inline;
  margin-left: 8px;
  position: relative; /* Anchor each dropdown panel beneath its own trigger. */
}

#navbar {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: space-between; /* Primary nav left, utility (city/account/language) right. */
  gap: 4px;
}

.navbar-toggle {
  display: none; /* Shown only at the mobile breakpoint below. */
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--color-asphalt-500);
}

.navbar-toggle-icon {
  display: block;
  width: 24px;
  height: 24px;
}

#language-icon {
  height: 16px;
  width: 16px;
}

.navbar-nav > li > .navbar-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: var(--color-asphalt-500);
  font-size: 13px;
  font-family: Mulish, sans-serif;
  padding: 5px 10px;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  line-height: 1.4;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.navbar-nav > li > .navbar-button#language-button {
  padding: 4px 12px;
}

/*
 * The bar splits into two semantic groups: left = text-link destinations, right = bordered-pill state selectors
 * (city / account / language). The styling backs that split so yellow is reserved for the active indicator and CTAs.
 */
.navbar-nav > li > .navbar-button:hover {
  color: var(--color-asphalt-700);
  background-color: var(--color-asphalt-100);
}

/* Active destination: weight + a gold underline (never color-only), paired with aria-current in the markup. */
.navbar-nav--primary > li > .navbar-button.is-active {
  position: relative;
  color: var(--color-asphalt-700);
  font-weight: 700;
}

.navbar-nav--primary > li > .navbar-button.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--color-banana-600);
}

/* Divider between the brand lockup and the primary destinations. */
.navbar-nav--primary::before {
  content: "";
  align-self: center;
  width: 1px;
  height: 22px;
  margin: 0 18px 0 28px;
  background-color: var(--color-neutral-300);
}

/* Leading icon on each selector pill (city / account / language); keeps the three the same height. */
.navbar-select-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Right group: state selectors read as bordered pills, grouped tighter than the destinations. */
.navbar-nav--utility {
  gap: 6px;
}

.navbar-nav--utility .navbar-lnk {
  margin-left: 0;
}

.navbar-nav--utility > li > .navbar-button {
  border: 1px solid var(--color-neutral-300);
  border-radius: 99px;
  padding: 4px 12px;
}

.navbar-nav--utility > li > .navbar-button:hover {
  background-color: var(--color-asphalt-100);
  border-color: var(--color-neutral-400);
}

/* Active selector pill (a page from its menu is current): a filled brand-yellow pill clearly marks the section. */
.navbar-nav--utility > li > .navbar-button.is-active {
  background-color: var(--color-banana-300);
  border-color: var(--color-banana-300);
  color: var(--color-neutral-black);
  font-weight: 700;
}

.navbar-nav--utility > li > .navbar-button.is-active:hover {
  background-color: var(--color-banana-500);
  border-color: var(--color-banana-500);
}

.navbar-nav > li > .navbar-button:focus {
  outline: none;
}

.navbar-nav > li > .navbar-button:focus-visible,
.navbar-toggle:focus-visible,
.nav-city-search:focus-visible {
  outline: 2px solid var(--color-banana-800);
  outline-offset: 2px;
}

.caret {
  margin-left: 2px;
}

/* Taller navbar variant used on the landing page (and removed on scroll). */
#header.header--tall {
  height: 50px;
}

/* In the taller landing bar the row inherits the base .navbar-container centering, so brand + nav + divider sit
   vertically centered in the 50px bar. The divider is lengthened to suit the taller bar; the compact scrolled bar
   keeps the base 22px. */
#header.header--tall .navbar-nav--primary::before {
  height: 30px;
}

#header.header--tall #navbar-brand img {
  height: 40px;
}

#navbar-brand img {
  transition: height 0.2s ease 0s;
}

.new-city {
  font-style: italic;
}

.current-city {
  cursor: default;
}


#content {
  position: relative;
  top: 0;
  background-color: var(--color-neutral-white);
}

#wrap {
  min-height: 100%;
  height: auto;
}

/*
 * Full-window app pages (e.g. /labelMap) opt in via this class: #wrap becomes a fixed-height flex
 * column so a flex-growing content area (the map) fills the viewport below the navbar and the fixed
 * test-server banner. --test-banner-height is 0 when the banner is absent/dismissed or on prod, so this
 * reduces to 100vh minus the navbar. No effect on other pages, which don't get the class.
 */
#wrap.wrap--full-window {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--navbar-height) - var(--test-banner-height, 0px));
  min-height: 0;
  overflow: hidden;
}

#mini-footer {
  position: relative;
  width: 100%;
  min-height: 40px;
  text-align: center;
  color: #585c63;
  font-size: 12px;
  line-height: 1.6em;
  font-family: raleway, sans-serif;
}

#mini-footer a {
  color:#585c63;
  text-decoration:underline;
}

#footer-container {
  position: relative;
  top: 0;
  width: 100%;
  background-image: url("../images/footer.jpg");
  min-height: 200px;
  padding-top: 50px;
  padding-bottom: 50px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  color: var(--color-asphalt-500);
  font-size: 12px;
  line-height: 1.8em;
  font-family: raleway, sans-serif;
}

#footer-container a {
  color: var(--color-asphalt-500);
  cursor: pointer;
}

.footer-link {
  color: var(--color-asphalt-500);
}

#info-footer {
  position: relative;
  width: 100%;
  min-height: 220px;
  background-color: var(--color-asphalt-500);
  text-align: center;
  font-family: raleway, sans-serif;
  font-size: 12px;
  color: var(--color-neutral-white);
  line-height: 1.6em;

}

#info-footer a {
  color:var(--color-neutral-white);
  text-decoration:underline;
}

/* Landing/desktop footer layout (markup in common/main.scala.html). The .filler spacer's rendered height is read
   by labelingGuidePanelResize.js, so keep the class and its min-height. */
.filler {
  position: relative;
  top: 0;
  background-color: var(--color-neutral-white);
  min-height: 20px;
}

#footer-container .footer-links-row {
  width: 900px;
  position: relative;
  left: 80px;
}

#info-footer .footer-logos-row {
  max-width: 1000px;
  margin: 0 auto;
}

#google-link img {
  margin-top: 20px;
}

#sloan-link img {
  width: 200px;
  margin-top: 20px;
}

#create-link img {
  width: 160px;
  margin-top: 10px;
}

/* Pano Info Popover styling. */

/* Sizes scale with --ui-scale for pages that have it, falling back to a multiplier of 1 on other pages. */
.pano-info-popover {
  position: fixed;
  inset: unset;        /* Override the browser's default centered placement. */
  margin: 0;
  left: -9999px;       /* Off-screen until JS positions it. */
  top: -9999px;
  overflow: visible;   /* Allow the CSS arrow to extend beyond the box. */
  min-width: calc(280px * var(--ui-scale, 1));
  max-width: calc(400px * var(--ui-scale, 1));
  padding: calc(14px * var(--ui-scale, 1));
  background: var(--color-neutral-white);
  border: 1px solid var(--color-neutral-300);
  border-radius: calc(12px * var(--ui-scale, 1));
  box-shadow: 0 6px 24px rgb(0 0 0 / 15%);
}

/* Downward-pointing arrow: ::before is the border, ::after is the white fill on top. */
.pano-info-popover::before,
.pano-info-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
}

.pano-info-popover::before {
  bottom: calc(-10px * var(--ui-scale, 1));
  border-width: calc(10px * var(--ui-scale, 1)) calc(9px * var(--ui-scale, 1)) 0;
  border-color: var(--color-neutral-300) transparent transparent;
}

.pano-info-popover::after {
  bottom: calc(-9px * var(--ui-scale, 1));
  border-width: calc(9px * var(--ui-scale, 1)) calc(8px * var(--ui-scale, 1)) 0;
  border-color: var(--color-neutral-white) transparent transparent;
}

.pano-info-popover__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(10px * var(--ui-scale, 1));
}

/* Matches the label-detail card's section eyebrows. */
.pano-info-popover__title {
  font: var(--text-caption-semibold);
  color: var(--color-neutral-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pano-info-popover__actions {
  display: flex;
  align-items: center;
  gap: calc(2px * var(--ui-scale, 1));
}

.pano-info-popover__clipboard,
.pano-info-popover__close {
  background: none;
  border: none;
  padding: calc(3px * var(--ui-scale, 1));
  border-radius: calc(4px * var(--ui-scale, 1));
  cursor: pointer;
  line-height: 0;
  opacity: 0.75;
}

.pano-info-popover__clipboard:hover,
.pano-info-popover__close:hover {
  background: rgb(0 0 0 / 6%);
  opacity: 1;
}

.pano-info-popover__clipboard:active,
.pano-info-popover__close:active {
  opacity: 0.5;
}

.pano-info-popover__clipboard:focus-visible,
.pano-info-popover__close:focus-visible {
  outline: 2px solid var(--color-link-100);
  outline-offset: 1px;
}

.pano-info-popover__clipboard img,
.pano-info-popover__close img {
  width: calc(16px * var(--ui-scale, 1));
  height: calc(16px * var(--ui-scale, 1));
}

/* Shown briefly after clipboard copy. Absolutely positioned so it doesn't shift the body rows. */
.pano-info-popover__copied:not([hidden]) {
  display: block;
  position: absolute;
  top: calc(44px * var(--ui-scale, 1));   /* below the header (12px padding-top + ~30px header + 2px gap) */
  right: calc(8px * var(--ui-scale, 1));
  background: rgb(40 40 40 / 85%);
  color: var(--color-neutral-white);
  font-size: calc(11px * var(--ui-scale, 1));
  padding: calc(3px * var(--ui-scale, 1)) calc(8px * var(--ui-scale, 1));
  border-radius: calc(4px * var(--ui-scale, 1));
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

/* Spec-sheet body: muted labels left, semibold values right. */
.pano-info-popover__body {
  display: flex;
  flex-direction: column;
  gap: calc(6px * var(--ui-scale, 1));
  margin: 0;
}

.pano-info-popover__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: calc(12px * var(--ui-scale, 1));
}

.pano-info-popover__row dt {
  flex-shrink: 0;
  font: var(--text-caption-medium);
  color: var(--color-neutral-700);
}

.pano-info-popover__row--hidden {
  display: none;
}

/* overflow-wrap keeps long pano IDs inside the popover; tabular numerals hold the id/coordinate columns steady. */
.pano-info-popover__val {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font: var(--text-caption-semibold);
  color: var(--color-neutral-900);
  font-variant-numeric: tabular-nums;
}

.pano-info-popover__view-link {
  display: block;
  margin-top: calc(10px * var(--ui-scale, 1));
  padding-top: calc(10px * var(--ui-scale, 1));
  border-top: 1px solid var(--color-neutral-200);
  text-align: center;
  font: var(--text-caption-semibold);
  color: var(--color-link-200);
  text-decoration: none;
}

.pano-info-popover__view-link::after {
  content: " ↗";
}

.pano-info-popover__view-link:hover {
  text-decoration: underline;
}

.pano-info-popover__view-link:focus-visible {
  outline: 2px solid var(--color-link-100);
  outline-offset: 2px;
}

@media only screen and (device-width <= 500px) {
  #award-num {
    width: 100% !important;
    right: 0% !important;
  }
}

@media only screen and (device-width <= 800px) and (device-width >= 500px) {
  #award-num {
    width: 350% !important;
    right: 45% !important;
  }
}

#award-num {
  font-size:10px;
  color:#c0becf;
  width: 220%;
  right: 35%;
}

#funding-title {
  font-weight: bold;
}


kbd {
  /* overriding bootstraps's ugly kbd tag */
  background-color: var(--color-neutral-white);
  box-shadow: 0 1px 0 rgb(0 0 0 / 20%);
  border: 1px solid rgb(0 0 0 / 20%);
  border-radius: 3px;
  color: #444444;
  font-weight: normal;
  font-size: 0.9em; /* Scale with surrounding text rather than a fixed size. */
  padding: 2px 6px;
  vertical-align: middle; /* Center the pill on the text line instead of hanging it off the baseline. */
}

#page-loading {
  position:absolute;
  z-index: 1;
  max-width:45%;
  max-height:45%;
  top:33%;
  left:50%;
  overflow:visible;
}

#loading-animation {
  position: relative;
  width: 200px;
  height: 200px;
  margin-top: -50%;
  margin-left: -50%;
}

#loading-animation img {
  display: block;
  margin: 0 auto;
  width: 200px;
  height: 200px;
}

.loading-text {
  font-family: raleway, sans-serif;
  text-align: center;
  font-size: 45px;
  color: var(--color-asphalt-500);
}

.loading-sub-text {
  font-family: raleway, sans-serif;
  text-align: center;
  font-size: 15px;
  color: var(--color-asphalt-500);
  margin-top: 5px;
}

/*
 * CSS for the footer header
*/
.footer-header {
  font-family: raleway-extrabold, sans-serif;
  font-weight: bold;
  color: var(--color-asphalt-500);
  font-size: 12px;
  line-height: 2.1em;
  letter-spacing: 0.05em;
}


/*
 * Test server warning banner: a soft amber notice shown only on non-prod servers. Colors, type, and spacing come from
 * the Design System Tokens (banana/neutral/link palettes) rather than the old hardcoded yellow + red "WARNING!" text.
 */
.test-server-banner {
  /*
   * Fixed bar pinned to the very top, above the navbar. It reserves its own space via --test-banner-height
   * (published by the inline script in common/main.scala.html) instead of covering content, and staying above
   * the navbar keeps it clear of the navbar's height animation on the landing page.
   */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--navbar-z-index);
  background-color: var(--color-banana-200);
  border-bottom: 1px solid var(--color-banana-500);
}

.test-server-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;

  /* Cap tuned to be just wide enough for the notice + a long deployment URL on one row, so the content still shows
     centered margins on typical laptops. It wraps gracefully on narrower viewports. */
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
  flex-wrap: wrap;
}

/* Warning triangle: the severity cue, so the message text can stay calm and informative. */
.test-server-banner-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--color-banana-800);
}

.test-server-banner-text {
  flex: 1 1 240px;
  min-width: 0;
  margin: 0;
  font: var(--text-small-regular);
  color: var(--color-neutral-800);
}

.test-server-banner-text > strong {
  font-weight: 700;
  color: var(--color-neutral-900);
}

.test-server-banner-link {
  font-weight: 600;
  color: var(--color-link-200);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.test-server-banner-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* Secondary action styled as an outlined amber pill; the amber border ties it to the icon and band. */
.test-server-banner-dont-show-again {
  padding: 5px 14px;
  border: 1px solid var(--color-banana-800);
  border-radius: 999px;
  background: transparent;
  font: var(--text-small-medium);
  color: var(--color-neutral-900);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.test-server-banner-dont-show-again:hover {
  background-color: var(--color-banana-300);
  border-color: var(--color-banana-900);
}

.test-server-banner-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-neutral-700);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.test-server-banner-close svg {
  width: 16px;
  height: 16px;
}

.test-server-banner-close:hover {
  background-color: var(--color-banana-300);
  color: var(--color-neutral-900);
}

.test-server-banner :focus-visible {
  outline: 2px solid var(--color-link-200);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .test-server-banner-dont-show-again,
  .test-server-banner-close {
    transition: none;
  }
}

/*
 * Test server warning banner on narrow screens. This applies to all pages except the default /mobile page, whose
 * banner overrides live in mobile-validate.css.
 */
@media only screen and (width <= 600px) {
  /* Top-align so the icon sits on the first line once the message wraps to several lines. */
  .test-server-banner-content {
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  /* Optical nudge to line the triangle up with the first line's cap height. */
  .test-server-banner-icon {
    margin-top: 1px;
  }

  /* Actions drop to their own row: pill anchored left, close anchored right, spanning the full width. */
  .test-server-banner-actions {
    width: 100%;
    justify-content: space-between;
  }

  /* Roomier tap target for touch. */
  .test-server-banner-close {
    width: 32px;
    height: 32px;
  }
}


.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Dropdown panels are hidden until Navbar.js adds .is-open to the wrapping .navbar-lnk. */
.navbar-lnk > .dropdown-menu {
  display: none;
}

.navbar-lnk.is-open > .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 1000;
  display: block;
  min-width: 180px;
  padding: 6px 0;
  margin: 2px 0 0;
  font-size: 13px;
  list-style: none;
  background-color: var(--color-neutral-white);
  background-clip: padding-box;
  border: 1px solid rgb(0 0 0 / 15%);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgb(0 0 0 / 17.5%);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li > a {
  display: block;
  padding: 5px 16px;
  font-size: 13px;
  color: var(--color-asphalt-600);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li > a:hover,
.dropdown-menu li > a:focus {
  background-color: #FCECBE;
  color: var(--color-asphalt-700);
  outline: none;
}

.dropdown-menu li > a:focus-visible {
  outline: 2px solid var(--color-banana-800);
  outline-offset: -2px;
}

/* Active menu item (its page is current): weight + a gold rail, echoing the top-level underline. */
.dropdown-menu li > a.is-active {
  font-weight: 700;
  color: var(--color-asphalt-700);
  box-shadow: inset 3px 0 0 var(--color-banana-600);
}

/* Non-interactive section labels grouping the Tools menu. */
.dropdown-section {
  padding: 8px 16px 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-asphalt-400);
  pointer-events: none;
}

.dropdown-section:first-child {
  padding-top: 2px;
}

/* Searchable city switcher panel. */
.nav-city-panel {
  width: 260px;
}

.navbar-lnk.is-open > .dropdown-menu.nav-city-panel {
  padding: 0;
  overflow: hidden;
}

.nav-city-search-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--color-neutral-200);
}

.nav-city-search {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--color-neutral-300);
  border-radius: 8px;
}

.nav-city-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 320px;
  overflow-y: auto;
}

.nav-city-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-city-group-header {
  display: block;
  padding: 8px 16px 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-asphalt-400);
}

.nav-city-item > a {
  padding-left: 20px;
}

.nav-city-current {
  padding: 6px 16px;
}

.nav-city-current .current-city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-neutral-900);
}

.nav-city-check {
  width: 16px;
  height: 16px;
  flex: none;
}

.nav-city-empty {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-asphalt-400);
}

.nav-city-footer {
  border-top: 1px solid var(--color-neutral-200);
  padding: 4px 0;
}

.nav-city-footer a {
  display: block;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--color-asphalt-500);
  text-decoration: none;
}

.nav-city-footer a:hover {
  background-color: #FCECBE;
}

.tool-ui {
  position: relative;
}

.dropdown-toggle {
  margin-top: 0;
}

/* Overlay box - start */
#area-completion-overlay-wrapper, #already-completed-neighborhood-overlay {
  display:none;
}

.overlay-text {
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgb(0 0 0 / 89%);
  z-index: 5;
}

#area-completion-overlay, #already-completed-neighborhood-text {
  color: var(--color-neutral-white);
  text-align: center;
  width: 70%;
  position: relative;
  margin: auto;
  border-radius: 5px;
  font-size: 21px;
  top: 28%;
}

#area-completion-overlay p, #already-completed-neighborhood-text p {
  border-radius: 5px;
  padding: 7px;
}

.overlay-header {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
}

.overlay-option {
  margin: 20px 5px;
  padding: 7px;
  border: 1px solid var(--color-neutral-white);
  border-radius: 5px;
  display: inline-block;
}

.overlay-option:hover {
  background-color: var(--color-neutral-white);
  color: var(--color-neutral-black);
  cursor: pointer;
}

#accept-redirect {
  width: 75px;
}

/* Overlay box - end */

.anchor {
  display: block;
  position: relative;
  top: calc(-1 * var(--navbar-height) - 15px);
  visibility: hidden;
}

.accuracy-tooltip {
  display:none;
  position:absolute;
  z-index:100;
  border:1px;
  border-radius: 5px;
  background-color:#eeeeee;
  border-style:solid;
  border-color: var(--color-neutral-black);
  padding:3px;
  color: var(--color-neutral-black);
  left:20px;
  font-size: 14px;
  font-weight: normal;
  width: 175px;
}

#your-overall-total {
  border-top: 3px solid #999999;
}

#validation-button-holder {
  display: flex;
  justify-content: space-between;
}

#validation-comment-holder {
  padding-top: 5px;
  padding-bottom: 5px;
}

#comment-textarea {
  height: 33px;
  width: 388px;
  background-color: #F5F5F5;
  color: var(--color-neutral-black);
  border-radius: 5px;
  padding: 5px;
  line-height: normal;
  border-width: 2px;
  border-color: grey;
  resize: none;
  outline: none;
  vertical-align: middle;
  margin-right: 2px;
}

/* Contexts that need a different size (e.g. the label card's Details strip) set the custom property on an
   ancestor instead of fighting this id selector's specificity. */
#pano-info-button {
  cursor: pointer;
  width: var(--pano-info-button-size, 24px);
  height: var(--pano-info-button-size, auto);
}

/* Beacon marking the label tied to the /labelMap popup. A reticle whose center carries the label type's
   canonical color (set inline from getLabelColors()), so the label reads even when the map's own dot is tiny;
   the expanding ::after ring is what draws the eye on a busy map. Both modes pulse exactly once: 'spotlight'
   pulses on landing then stays as a calm reticle while the popup is open, and 'flash' pulses once on close
   to re-anchor the user (its marker is then removed). */
.labelmap-beacon {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--color-asphalt-600);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 90%), 0 1px 4px rgb(0 0 0 / 40%);
  pointer-events: none;
}

/* Center fill in the label type's color (background set inline by the /labelMap script). */
.labelmap-beacon__dot {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / 90%);
}

.labelmap-beacon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid var(--color-asphalt-600);
}

.labelmap-beacon--spotlight::after {
  animation: labelmap-beacon-ring 1.5s ease-out forwards;
}

.labelmap-beacon--flash::after {
  animation: labelmap-beacon-ring 1.3s ease-out 1;
}

@keyframes labelmap-beacon-ring {
  from {
    transform: scale(1);
    opacity: 0.85;
  }

  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .labelmap-beacon::after { animation: none; }
}

/* Chat-bubble tail tying the /labelMap popup dialog to the spotlighted label's beacon: a full-viewport fixed
   SVG whose one polygon the page script repositions on every map/dialog change. Sits below the dialog's top
   layer (so the light backdrop dims it slightly) but above the map and its controls. */
.labelmap-tail {
  position: fixed;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

.labelmap-tail polygon {
  fill: var(--color-neutral-white);
  stroke: rgb(0 0 0 / 12%);
  stroke-width: 1;
  filter: drop-shadow(0 2px 5px rgb(0 0 0 / 18%));
}


/*
* Responsive navigation.
*
* As the window narrows, the lowest-priority items are shed from the inline bar (How to Label first, then API;
* both stay reachable in the footer) before the whole nav collapses into the hamburger menu. Breakpoints below are a
* first pass tuned for English label widths and are meant to be adjusted by eye.
*/
@media only screen and (width >= 861px) and (width <= 1100px) {
  .nav-shed-1 {
    display: none;
  }
}

@media only screen and (width >= 861px) and (width <= 1000px) {
  .nav-shed-2 {
    display: none;
  }
}

/*
* Hamburger menu: at the narrowest widths the whole nav collapses into a single stacked menu opened by the
* hamburger. The menu box lives on #navbar so both nav groups render inside one shared panel.
*/
@media only screen and (width <= 860px) {
  .navbar-brand-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: var(--navbar-height);
  }

  .navbar-toggle {
    display: block;
    margin: 0;
    padding: 6px 10px;
  }

  .navbar-toggle:hover,
  .navbar-toggle:focus {
    background-color: #dddddd;
  }

  .navbar-container {
    position: relative;
  }

  .navbar-container > .navbar-brand-area {
    margin-left: 0;
  }

  #navbar {
    position: absolute;
    top: var(--navbar-height);
    right: 4.5%;
    min-width: 220px;
    padding: 6px 0;
    z-index: var(--navbar-z-index);
    background-color: var(--color-neutral-white);
    box-shadow: 0 1px 8px 0 #999999;
    border-radius: 5px;
  }

  #header.header--tall #navbar {
    top: 50px;
  }

  #navbar:not(.is-open) {
    display: none !important;
  }

  #navbar.is-open {
    display: block !important;
    overflow: hidden !important;
  }

  .navbar-nav {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .navbar-nav > li {
    float: none;
  }

  .navbar-lnk {
    display: block;
    margin-left: 0;
  }

  .navbar-nav > li > .navbar-button {
    border-radius: 0;
    border: none;
    outline: none;
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .navbar-nav--primary::before {
    display: none; /* No brand divider in the stacked menu. */
  }

  .navbar-lnk.is-open > .dropdown-menu {
    position: relative;
    border: none;
    border-radius: 0;
    width: 100%;
    box-shadow: none;
  }

  .navbar-lnk.is-open > .dropdown-menu.nav-city-panel {
    width: 100%;
  }
}

/* Common class used to hide template elements. */
.template {
  display: none !important;
}

/* Permalink styling and behavior. */
.permalink-anchor {
  scroll-margin-top: calc(var(--navbar-height) + 15px);
}

.permalink-icon {
  height: 18px;
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}

.permalink-anchor:hover .permalink-icon {
  opacity: 1;
}

.ai-icon-marker {
  position: absolute;
  width: calc(14px * var(--ui-scale, 1));
  height: calc(14px * var(--ui-scale, 1));
  top: calc(-6px * var(--ui-scale, 1));
  left: calc(-6px * var(--ui-scale, 1));
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
}

/* LabelMap / LabelView section */
#ai-validation-header {
  position: relative;
}

.label-view-ai-icon {
  position: absolute;
  top: 0;
  height: 60%;
  z-index: 3;
}

.ai-tooltip .tooltip-inner {
  max-width: calc(220px * var(--ui-scale, 1));
}

.tooltip.ai-tooltip {
  /* Keep AI tooltips above map/canvas overlays without unnecessarily high stacking */
  z-index: 1160;
}

/* Severity face button — a smiley icon + label pair used across the site. Per-context CSS still owns the container
   grid/flex layout that arranges multiple buttons. */
.severity-button {
  position: relative; /* contains the absolutely positioned hidden radio input */
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: calc(5px * var(--ui-scale, 1));
  padding: calc(4px * var(--ui-scale, 1)) calc(6px * var(--ui-scale, 1));
  margin: 0;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.severity-button:hover {
  background: var(--color-neutral-100);
}

/* Non-interactive variant used by LabelDetail. */
.severity-button--static {
  cursor: default;
  padding: 0;
}

.severity-button--static:hover {
  background: none;
}

/* Visually hidden radio input wrapped by the label-button (Explore, ExpertValidate). The wrapping
   label still toggles it natively, and it stays in the accessibility tree. */
.severity-button__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.severity-button__icon {
  width: calc(24px * var(--ui-scale, 1));
  height: calc(24px * var(--ui-scale, 1));
  display: block;
}

.severity-button__label {
  font: var(--text-caption-medium);
  text-align: center;
  white-space: nowrap;
}
