/* KC Streetcar Guide theme shield
   This file is prepended to the release CSS so the guide starts from a stable baseline before the component styles are applied. */
.kcsg-guide {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  text-transform: none;
}

.kcsg-guide,
.kcsg-guide *,
.kcsg-guide *::before,
.kcsg-guide *::after {
  box-sizing: border-box !important;
}

.kcsg-guide :where(h1, h2, h3, h4, h5, h6, p, figure, figcaption, article, div, span, strong, em, small, button, select, a) {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-style: normal;
  letter-spacing: normal;
  text-decoration-thickness: auto;
}

.kcsg-guide :where(h1, h2, h3, h4, h5, h6, p, figure, figcaption, article) {
  margin-block-start: 0;
  margin-block-end: 0;
}

.kcsg-guide :where(h1, h2, h3, h4, h5, h6) {
  clear: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-transform: none;
}

.kcsg-guide :where(button, select) {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-transform: none;
}

.kcsg-guide :where(button) {
  min-height: 0;
}

.kcsg-guide :where(a) {
  box-shadow: none;
}

.kcsg-guide :where(img, svg) {
  border: 0;
  box-shadow: none;
}

.kcsg-guide :where(img) {
  max-width: 100%;
}

.kcsg-guide :where(ul, ol) {
  margin-block-start: 0;
  margin-block-end: 0;
}

.kcsg-guide :where(.screen-reader-text) {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}
.kcsg-guide {
  --kcsg-blue: #008bd2;
  --kcsg-blue-dark: #0b4f73;
  --kcsg-ink: #16394f;
  --kcsg-muted: #5d7482;
  --kcsg-soft: #eef7fc;
  --kcsg-line: #d8ecf6;
  --kcsg-card: #ffffff;
  --kcsg-highlight: #ffb23f;
  width: 100% !important;
  max-width: 1100px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--kcsg-ink);
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  row-gap: 0 !important;
}

.kcsg-guide,
.kcsg-guide * {
  box-sizing: border-box;
}

.kcsg-guide > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.kcsg-guide::before,
.kcsg-guide::after {
  display: none !important;
}

.wp-block-shortcode:has(.kcsg-guide),
.wp-block-group:has(.kcsg-guide),
.wp-block-columns:has(.kcsg-guide),
.wp-block-column:has(.kcsg-guide),
.wp-block-post-content > *:has(.kcsg-guide),
.entry-content > *:has(.kcsg-guide),
.post-content > *:has(.kcsg-guide),
.wpb_wrapper:has(.kcsg-guide),
.wpb_text_column:has(.kcsg-guide),
.vc_column-inner:has(.kcsg-guide),
.vc_column_container:has(.kcsg-guide),
.vc_row:has(.kcsg-guide) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.kcsg-header {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.kcsg-header h2 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(20px, 2.1vw, 26px) !important;
  line-height: 1.05 !important;
  color: var(--kcsg-blue-dark);
}

.kcsg-header p {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 720px;
  color: var(--kcsg-muted);
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.kcsg-reset-row {
  display: none !important;
}

.kcsg-controls {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  gap: 10px 18px;
  align-items: center;
  width: 100%;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

.kcsg-control-group {
  min-width: 0;
}

.kcsg-control-label,
.screen-reader-text.kcsg-control-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.kcsg-category-key {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
  padding: 0 !important;
}

.kcsg-reset,
.kcsg-category-button {
  appearance: none;
  border: 1px solid var(--kcsg-category-color, var(--kcsg-blue)) !important;
  border-radius: 999px;
  background: transparent !important;
  color: var(--kcsg-category-color, var(--kcsg-blue-dark)) !important;
  cursor: pointer;
  font: inherit;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1;
  margin: 0 !important;
  padding: 6px 9px !important;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.kcsg-category-button:hover,
.kcsg-category-button:focus-visible,
.kcsg-category-button.is-active {
  background: var(--kcsg-category-color, var(--kcsg-blue)) !important;
  border-color: var(--kcsg-category-color, var(--kcsg-blue)) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  outline: 0;
}

.kcsg-category-button[data-kcsg-category="all"] {
  --kcsg-category-color: var(--kcsg-blue);
}

.kcsg-stop-select {
  width: 100%;
  min-height: 28px;
  border: 1px solid #cbd7df;
  border-radius: 0;
  background-color: #ffffff;
  color: var(--kcsg-ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.1;
  padding: 4px 8px;
  box-shadow: none;
}

.kcsg-stop-select:hover,
.kcsg-stop-select:focus-visible {
  border-color: var(--kcsg-blue);
  outline: 0;
}

.kcsg-layout {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: clamp(14px, 2.6vw, 26px);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
}

.kcsg-map-panel,
.kcsg-results-panel {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0;
}

.kcsg-map-panel {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 400px !important;
  max-width: 400px !important;
  max-height: 900px;
  overflow: visible;
  position: sticky;
  top: 20px;
}

.kcsg-map-svg {
  display: block;
  width: 400px !important;
  height: 900px !important;
  max-width: 400px !important;
  max-height: 900px !important;
  overflow: visible;
}

.kcsg-map-svg #stops > g {
  cursor: pointer;
  outline: none;
}

.kcsg-map-svg #stops > g .kcsg-stop-hitarea,
.kcsg-map-svg .kcsg-stop-hitarea {
  fill: transparent !important;
  fill-opacity: 0 !important;
  stroke: transparent !important;
  stroke-opacity: 0 !important;
  opacity: 0 !important;
  pointer-events: all !important;
}

.kcsg-map-svg #stops > g > :not(.kcsg-stop-hitarea) {
  pointer-events: none;
}

.kcsg-map-svg #stops > g .stop-label {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12.4px !important;
  font-weight: 700 !important;
  fill: var(--kcsg-blue) !important;
  transition: fill 160ms ease, transform 160ms ease;
  transform-box: fill-box;
  transform-origin: left center;
  pointer-events: none;
}

.kcsg-map-svg #stops > g:hover .stop-label,
.kcsg-map-svg #stops > g:focus-visible .stop-label,
.kcsg-map-svg #stops > g.is-active .stop-label,
.kcsg-map-svg #stops > g.is-hovered .stop-label {
  fill: var(--kcsg-blue-dark) !important;
}

.kcsg-map-svg #stops > g circle,
.kcsg-map-svg #stops > g .stop-dot {
  transition: fill 160ms ease, stroke 160ms ease, transform 160ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.kcsg-map-svg #stops > g:hover circle,
.kcsg-map-svg #stops > g:focus-visible circle,
.kcsg-map-svg #stops > g.is-active circle,
.kcsg-map-svg #stops > g.is-hovered circle,
.kcsg-map-svg #stops > g:hover .stop-dot,
.kcsg-map-svg #stops > g:focus-visible .stop-dot,
.kcsg-map-svg #stops > g.is-active .stop-dot,
.kcsg-map-svg #stops > g.is-hovered .stop-dot {
  fill: var(--kcsg-highlight) !important;
  stroke: #ffffff !important;
  transform: scale(1.28);
}

.kcsg-results-panel {
  display: block !important;
  max-width: 100%;
  overflow: hidden;
  align-self: start;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.kcsg-results-scroll {
  display: block !important;
  max-height: 900px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0 6px 0 0 !important;
  margin: 0 !important;
  scrollbar-width: thin;
}

.kcsg-results-scroll > * {
  margin-top: 0 !important;
}

.kcsg-results-scroll::-webkit-scrollbar {
  width: 8px;
}

.kcsg-results-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.kcsg-results-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 139, 210, 0.25);
  border-radius: 999px;
}

.kcsg-results-heading {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.kcsg-results-heading * {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.kcsg-stop-feature {
  margin: 0 !important;
  padding: 0 !important;
}

.kcsg-stop-feature:empty,
.kcsg-stop-feature[hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.kcsg-stop-photo {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 130px;
  min-height: 130px;
  margin: 0 0 14px !important;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #ffffff !important;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(9, 60, 87, 0.07);
}

.kcsg-stop-photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  height: 58%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.82) 42%,
    rgba(255, 255, 255, 0) 100%
  );
}

.kcsg-stop-photo img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  transform: scale(1);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.kcsg-stop-photo--placeholder {
  width: 100%;
  max-width: 100%;
  height: 130px;
  min-height: 130px;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 44%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, rgba(0, 139, 210, 0.12), rgba(255, 255, 255, 0.96));
}

.kcsg-stop-photo--placeholder::after {
  display: none;
}

.kcsg-stop-photo:hover img,
.kcsg-stop-photo:focus-within img {
  transform: scale(1.055);
}

.kcsg-stop-photo figcaption {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  margin: 0;
  color: var(--kcsg-blue-dark);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-text-stroke: 0;
  paint-order: normal;
  text-shadow: none;
}

.kcsg-stop-photo.has-live-arrivals figcaption {
  bottom: 60px;
}

.kcsg-live-arrivals {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 10px;
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--kcsg-blue-dark);
  font-size: 11px;
  line-height: 1.15;
}

.kcsg-live-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  color: rgba(11, 79, 115, 0.78) !important;
  text-decoration: none !important;
}

.kcsg-live-kicker:hover,
.kcsg-live-kicker:focus-visible {
  color: var(--kcsg-blue-dark) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.kcsg-live-status {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  font-weight: 650;
}

.kcsg-live-status[hidden],
.kcsg-live-arrivals.has-fallback .kcsg-live-status {
  display: none !important;
}

.kcsg-live-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 5px;
  min-width: 0;
}

.kcsg-live-direction {
  font-weight: 800;
}

.kcsg-live-time {
  font-weight: 650;
}

.kcsg-results {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start !important;
  justify-content: stretch !important;
  place-content: start stretch !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.kcsg-results > :first-child {
  margin-top: 0 !important;
}

.kcsg-card {
  position: relative;
  min-width: 0;
  margin: 0 !important;
  border: 1px solid var(--kcsg-line);
  border-left: 5px solid var(--kcsg-category-color, var(--kcsg-blue));
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(9, 60, 87, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.kcsg-card:hover,
.kcsg-card:focus-within {
  border-color: var(--kcsg-category-color, var(--kcsg-blue));
  box-shadow: 0 10px 22px rgba(9, 60, 87, 0.11);
  transform: translateY(-1px);
}

.kcsg-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.kcsg-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.kcsg-card h4 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px;
  line-height: 1.2;
  color: var(--kcsg-ink);
}

.kcsg-category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--kcsg-category-color, var(--kcsg-blue)) 13%, white);
  border: 1px solid color-mix(in srgb, var(--kcsg-category-color, var(--kcsg-blue)) 30%, white);
  color: var(--kcsg-category-color, var(--kcsg-blue-dark));
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
  white-space: nowrap;
}

.kcsg-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
}

.kcsg-meta span {
  display: block;
  min-width: 0;
  border-radius: 10px;
  background: #f5fafd;
  color: var(--kcsg-muted);
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.25;
}

.kcsg-meta strong {
  display: block;
  color: var(--kcsg-blue-dark);
  font-size: 11px;
  margin-bottom: 2px;
}

.kcsg-stop-name {
  appearance: none;
  display: inline;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--kcsg-blue-dark) !important;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  text-align: left;
}

.kcsg-stop-name:hover,
.kcsg-stop-name:focus-visible {
  color: var(--kcsg-highlight) !important;
  outline: 0;
  text-decoration: underline;
}

.kcsg-description {
  margin: 8px 0 0 !important;
  color: #415d6b;
  font-size: 13px;
  line-height: 1.45;
}

.kcsg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 999px;
  color: var(--kcsg-category-color, var(--kcsg-blue-dark));
  background: color-mix(in srgb, var(--kcsg-category-color, var(--kcsg-blue)) 10%, white);
  text-decoration: none;
  flex: 0 0 auto;
}

.kcsg-link svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.kcsg-link:hover,
.kcsg-link:focus-visible {
  color: #ffffff;
  background: var(--kcsg-category-color, var(--kcsg-blue));
  outline: 0;
}

.kcsg-empty {
  border: 1px dashed var(--kcsg-line);
  border-radius: 14px;
  padding: 16px;
  color: var(--kcsg-muted);
  background: rgba(255, 255, 255, 0.78);
}

@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
  .kcsg-category-pill,
  .kcsg-link {
    background: var(--kcsg-soft);
  }
}

@media (max-width: 900px) {
  .kcsg-guide {
    max-width: 100% !important;
  }

  .kcsg-layout {
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 14px;
  }

  .kcsg-map-panel,
  .kcsg-map-svg,
  .kcsg-results-scroll {
    max-height: 720px;
  }

  .kcsg-map-panel,
  .kcsg-map-svg {
    width: 320px !important;
    max-width: 320px !important;
  }

  .kcsg-map-svg {
    height: 720px !important;
  }
}

@media (max-width: 700px) {
  .kcsg-controls {
    grid-template-columns: 1fr;
  }

  .kcsg-layout {
    grid-template-columns: 1fr;
  }

  .kcsg-map-panel {
    justify-content: flex-start;
    max-height: 520px;
    position: static;
  }

  .kcsg-map-panel,
  .kcsg-map-svg {
    width: 100% !important;
    max-width: 400px !important;
  }

  .kcsg-map-svg {
    height: min(520px, 76vh) !important;
  }

  .kcsg-results-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  .kcsg-card-header {
    display: block;
  }

  .kcsg-card-actions {
    margin-top: 8px;
  }

  .kcsg-category-pill {
    margin-top: 0;
  }

  .kcsg-meta {
    grid-template-columns: 1fr;
  }
}

.kcsg-map-svg .kcsg-map-amenity-label {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 6.8px !important;
  font-weight: 700 !important;
  fill: var(--kcsg-blue) !important;
}

.kcsg-map-svg .kcsg-map-amenity-star {
  transform-box: fill-box;
  transform-origin: center;
}

.kcsg-guide {
  overflow-x: clip !important;
}

.kcsg-layout,
.kcsg-results-panel,
.kcsg-results-scroll,
.kcsg-results,
.kcsg-card,
.kcsg-card *,
.kcsg-meta,
.kcsg-meta span,
.kcsg-card-header,
.kcsg-card-actions,
.kcsg-section-heading,
.kcsg-stop-category-key,
.kcsg-stop-category-buttons,
.kcsg-live-arrivals,
.kcsg-live-status,
.kcsg-live-row {
  max-width: 100% !important;
  min-width: 0 !important;
}

.kcsg-results-scroll {
  overflow-x: hidden !important;
}

.kcsg-card,
.kcsg-card h4,
.kcsg-description,
.kcsg-meta span,
.kcsg-stop-name,
.kcsg-category-pill,
.kcsg-section-heading,
.kcsg-section-heading h3,
.kcsg-section-heading p,
.kcsg-stop-category-label,
.kcsg-stop-category-button,
.kcsg-live-arrivals,
.kcsg-live-row,
.kcsg-live-direction,
.kcsg-live-time {
  overflow-wrap: anywhere !important;
  word-break: normal;
}

.kcsg-card-header {
  min-width: 0 !important;
}

.kcsg-card h4 {
  min-width: 0 !important;
}

.kcsg-card-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kcsg-category-pill {
  max-width: 100%;
  white-space: normal;
}

.kcsg-section-heading {
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
}

.kcsg-section-heading h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--kcsg-blue-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.kcsg-section-heading p {
  display: none !important;
}

.kcsg-stop-category-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: -4px 0 14px !important;
  padding: 0 !important;
}

.kcsg-stop-category-key[hidden] {
  display: none !important;
}

.kcsg-stop-category-label {
  color: var(--kcsg-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kcsg-stop-category-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.kcsg-stop-category-button {
  appearance: none;
  border: 1px solid var(--kcsg-category-color, var(--kcsg-blue)) !important;
  border-radius: 999px;
  background: transparent !important;
  color: var(--kcsg-category-color, var(--kcsg-blue-dark)) !important;
  cursor: pointer;
  font: inherit;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1;
  margin: 0 !important;
  padding: 5px 8px !important;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.kcsg-stop-category-button:hover,
.kcsg-stop-category-button:focus-visible,
.kcsg-stop-category-button.is-active {
  background: var(--kcsg-category-color, var(--kcsg-blue)) !important;
  border-color: var(--kcsg-category-color, var(--kcsg-blue)) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  outline: 0;
}

@media (max-width: 1100px) and (min-width: 701px) {
  .kcsg-layout {
    grid-template-columns: minmax(260px, min(400px, 42vw)) minmax(0, 1fr) !important;
  }

  .kcsg-map-panel,
  .kcsg-map-svg {
    width: min(400px, 42vw) !important;
    max-width: min(400px, 42vw) !important;
  }
}
/* KC Streetcar Guide final theme overrides
   This file is appended to release CSS after the component styles so aggressive themes cannot override critical UI text. */
.kcsg-guide .kcsg-results .kcsg-card .kcsg-card-header h4,
.kcsg-guide .kcsg-results .kcsg-card h4,
.kcsg-guide article.kcsg-card h4 {
  all: unset;
  box-sizing: border-box !important;
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--kcsg-ink, #16394f) !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 650 !important;
  letter-spacing: normal !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.kcsg-guide .kcsg-section-heading h3,
.kcsg-guide .kcsg-results .kcsg-section-heading h3 {
  all: unset;
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--kcsg-blue-dark, #0b4f73) !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 18px !important;
  font-style: normal !important;
  font-weight: 650 !important;
  letter-spacing: normal !important;
  line-height: 1.15 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.kcsg-guide .kcsg-results .kcsg-card .kcsg-card-header h4::before,
.kcsg-guide .kcsg-results .kcsg-card .kcsg-card-header h4::after,
.kcsg-guide .kcsg-results .kcsg-card h4::before,
.kcsg-guide .kcsg-results .kcsg-card h4::after,
.kcsg-guide article.kcsg-card h4::before,
.kcsg-guide article.kcsg-card h4::after,
.kcsg-guide .kcsg-section-heading h3::before,
.kcsg-guide .kcsg-section-heading h3::after,
.kcsg-guide .kcsg-results .kcsg-section-heading h3::before,
.kcsg-guide .kcsg-results .kcsg-section-heading h3::after {
  content: none !important;
  display: none !important;
}


/* KC Streetcar Guide featured cards and font controls */
.kcsg-guide {
  font-family: var(--kcsg-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif) !important;
  font-size: var(--kcsg-base-font-size, 14px) !important;
}

.kcsg-guide .kcsg-results .kcsg-card .kcsg-card-header h4,
.kcsg-guide .kcsg-results .kcsg-card h4,
.kcsg-guide article.kcsg-card h4,
.kcsg-guide .kcsg-section-heading h3,
.kcsg-guide .kcsg-results .kcsg-section-heading h3 {
  font-family: var(--kcsg-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif) !important;
}

.kcsg-guide .kcsg-card.is-featured {
  border-left-width: 6px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08) !important;
}

.kcsg-guide .kcsg-featured-badge {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid rgba(240, 165, 0, 0.32) !important;
  border-radius: 999px !important;
  padding: 5px 9px !important;
  color: #6f4f00 !important;
  background: rgba(240, 165, 0, 0.12) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
/* KC Streetcar Guide layout lock
   Appended to release CSS after theme overrides to keep the map and results column stable on desktop installs. */
@media (min-width: 981px) {
  .kcsg-guide {
    --kcsg-map-standard-width: 400px;
    --kcsg-card-standard-width: 520px;
    --kcsg-results-scroll-gutter: 24px;
    --kcsg-layout-standard-gap: 24px;
    width: 100% !important;
    max-width: calc(var(--kcsg-map-standard-width) + var(--kcsg-card-standard-width) + var(--kcsg-results-scroll-gutter) + var(--kcsg-layout-standard-gap)) !important;
  }

  .kcsg-guide .kcsg-layout {
    grid-template-columns: var(--kcsg-map-standard-width) minmax(0, calc(var(--kcsg-card-standard-width) + var(--kcsg-results-scroll-gutter))) !important;
    gap: var(--kcsg-layout-standard-gap) !important;
    width: 100% !important;
    max-width: calc(var(--kcsg-map-standard-width) + var(--kcsg-card-standard-width) + var(--kcsg-results-scroll-gutter) + var(--kcsg-layout-standard-gap)) !important;
  }

  .kcsg-guide .kcsg-map-panel,
  .kcsg-guide .kcsg-map-svg {
    width: var(--kcsg-map-standard-width) !important;
    max-width: var(--kcsg-map-standard-width) !important;
  }

  .kcsg-guide .kcsg-results-panel,
  .kcsg-guide .kcsg-results-scroll {
    width: 100% !important;
    max-width: calc(var(--kcsg-card-standard-width) + var(--kcsg-results-scroll-gutter)) !important;
    min-width: 0 !important;
  }

  .kcsg-guide .kcsg-results-scroll {
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
  }

  .kcsg-guide .kcsg-results,
  .kcsg-guide .kcsg-stop-feature {
    width: 100% !important;
    max-width: var(--kcsg-card-standard-width) !important;
    min-width: 0 !important;
  }

  .kcsg-guide .kcsg-stop-photo,
  .kcsg-guide .kcsg-section-heading,
  .kcsg-guide .kcsg-empty,
  .kcsg-guide .kcsg-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 980px) {
  .kcsg-guide {
    width: 100% !important;
    max-width: 100% !important;
  }

  .kcsg-guide .kcsg-controls {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 0 16px !important;
  }

  .kcsg-guide .kcsg-control-group--categories {
    order: 1 !important;
    width: 100% !important;
  }

  .kcsg-guide .kcsg-control-group--stop {
    order: 2 !important;
    width: 100% !important;
  }

  .kcsg-guide .kcsg-category-key,
  .kcsg-guide .kcsg-stop-category-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .kcsg-guide .kcsg-stop-select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .kcsg-guide .kcsg-stop-category-key,
  .kcsg-guide .kcsg-map-panel,
  .kcsg-guide .kcsg-map-svg {
    display: none !important;
  }

  .kcsg-guide .kcsg-stop-feature[hidden] {
    display: none !important;
  }

  .kcsg-guide .kcsg-stop-feature:not([hidden]) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
  }

  .kcsg-guide .kcsg-stop-feature .kcsg-stop-photo {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .kcsg-guide .kcsg-stop-feature .kcsg-stop-photo img,
  .kcsg-guide .kcsg-stop-feature .kcsg-stop-photo::after {
    content: none !important;
    display: none !important;
  }

  .kcsg-guide .kcsg-stop-feature .kcsg-stop-photo figcaption,
  .kcsg-guide .kcsg-stop-feature .kcsg-stop-photo.has-live-arrivals figcaption {
    position: static !important;
    display: block !important;
    max-width: 100% !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: var(--kcsg-blue-dark, #0b4f73) !important;
    font-size: clamp(24px, 8vw, 34px) !important;
    font-weight: 500 !important;
    line-height: 0.98 !important;
    letter-spacing: -0.04em !important;
  }

  .kcsg-guide .kcsg-stop-feature .kcsg-live-arrivals {
    position: static !important;
    display: grid !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--kcsg-blue-dark, #0b4f73) !important;
  }

  .kcsg-guide .kcsg-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .kcsg-guide .kcsg-results-panel,
  .kcsg-guide .kcsg-results-scroll,
  .kcsg-guide .kcsg-results,
  .kcsg-guide .kcsg-stop-photo,
  .kcsg-guide .kcsg-section-heading,
  .kcsg-guide .kcsg-empty,
  .kcsg-guide .kcsg-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .kcsg-guide .kcsg-results-panel,
  .kcsg-guide .kcsg-results-scroll {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}/* KC Streetcar Guide stop header photo height
   Appended late in release CSS so selected-stop photos and placeholders stay tall and readable. */
.kcsg-guide .kcsg-stop-photo {
  height: 260px !important;
  min-height: 260px !important;
}

.kcsg-guide .kcsg-stop-photo img {
  display: block !important;
  width: 100% !important;
  height: 260px !important;
  min-height: 260px !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.kcsg-guide .kcsg-stop-photo--placeholder {
  position: relative !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.kcsg-guide .kcsg-stop-photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0 !important;
  width: 100% !important;
  height: 68% !important;
  min-height: 150px !important;
  max-height: none !important;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 18%,
    rgba(255, 255, 255, 0.96) 36%,
    rgba(255, 255, 255, 0.82) 58%,
    rgba(255, 255, 255, 0.40) 82%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
}

.kcsg-guide .kcsg-stop-photo--placeholder::after {
  content: none !important;
  display: none !important;
}

.kcsg-guide .kcsg-stop-photo figcaption {
  left: 18px !important;
  bottom: 18px !important;
  max-width: calc(100% - 36px) !important;
}

.kcsg-guide .kcsg-stop-photo.has-live-arrivals figcaption {
  bottom: 70px !important;
}

.kcsg-guide .kcsg-live-arrivals {
  left: 18px !important;
  right: 18px !important;
  bottom: 14px !important;
}

.kcsg-guide .kcsg-stop-photo--placeholder figcaption,
.kcsg-guide .kcsg-stop-photo--placeholder.has-live-arrivals figcaption {
  position: static !important;
  display: block !important;
  max-width: 100% !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--kcsg-blue-dark, #0b4f73) !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  font-weight: 500 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.04em !important;
}

.kcsg-guide .kcsg-stop-photo--placeholder .kcsg-live-arrivals {
  position: static !important;
  display: grid !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--kcsg-blue-dark, #0b4f73) !important;
}
