/**
 * @file
 * Breadcrumb: thin bordered box, segment rules (muted / bold for current), ">" separators.
 */

.forttech-breadcrumb-wrapper {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.forttech-breadcrumb-box {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 1rem 0.85rem;
  background: #fff;
  border-radius: 2px;
}

.forttech-breadcrumb {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
  color: #3a3a3a;
}

.forttech-breadcrumb__crumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  border-radius: 0;
  border: none;
}

.forttech-breadcrumb__rule {
  display: block;
  width: 100%;
  min-width: 2rem;
  height: 1px;
  background: #d8d8d8;
  border-radius: 1px;
  flex-shrink: 0;
  transition: height 0.18s ease, background-color 0.18s ease;
}

.forttech-breadcrumb__crumb--last .forttech-breadcrumb__rule {
  height: 3px;
  background: #1f1f1f;
}

/* Trail link hover/focus: rule matches “current” bar (no underline on label). */
.forttech-breadcrumb__crumb:has(a.forttech-breadcrumb__label:hover) .forttech-breadcrumb__rule,
.forttech-breadcrumb__crumb:has(a.forttech-breadcrumb__label:focus-visible) .forttech-breadcrumb__rule {
  height: 3px;
  background: #1f1f1f;
}

.forttech-breadcrumb__crumb-inner {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
}

.forttech-breadcrumb__label {
  color: #3a3a3a;
  text-decoration: none;
  font-weight: 400;
}

/* Links look like plain text; hover state is conveyed by the rule bar only */
.forttech-breadcrumb a.forttech-breadcrumb__label {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.forttech-breadcrumb a.forttech-breadcrumb__label:hover,
.forttech-breadcrumb a.forttech-breadcrumb__label:focus,
.forttech-breadcrumb a.forttech-breadcrumb__label:active {
  color: inherit;
  text-decoration: none;
}

.forttech-breadcrumb a.forttech-breadcrumb__label:focus:not(:focus-visible) {
  outline: none;
}

.forttech-breadcrumb a.forttech-breadcrumb__label:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: 2px solid #5f7372;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Current page text is unwrapped; style via last crumb inner */
.forttech-breadcrumb__crumb--last .forttech-breadcrumb__crumb-inner {
  color: #1a1a1a;
  font-weight: 500;
}

.forttech-breadcrumb__sep {
  display: inline;
  margin: 0;
  padding: 0 0.2rem;
  color: #3a3a3a;
  font-weight: 400;
  user-select: none;
}

/* Legacy: last crumb list item (used by preprocess / BC).
   Do not use color: inherit — .navigation * sets white and would hide text on the white strip. */
.forttech-breadcrumb li.is-active {
  border: none;
  border-radius: 0;
  padding: 0;
}

.forttech-breadcrumb li.is-active .forttech-breadcrumb__crumb-inner {
  color: #1a1a1a;
}

/* CTA (optional block attachment) */
.breadcrumb-cta {
  margin-top: 0.75rem;
  margin-left: 0;
}

.breadcrumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #5f7372;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.breadcrumb-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.breadcrumb-btn:hover {
  transform: translateY(-1px);
  background: #4d6361;
}

.breadcrumb-btn:active {
  transform: translateY(0);
}

/* Dark navigation strip: reset inherited white text inside the white box */
.navigation .forttech-breadcrumb-box,
.navigation .forttech-breadcrumb-box .forttech-breadcrumb,
.navigation .forttech-breadcrumb-box .forttech-breadcrumb__label,
.navigation .forttech-breadcrumb-box .forttech-breadcrumb__crumb--last .forttech-breadcrumb__crumb-inner,
.navigation .forttech-breadcrumb-box .forttech-breadcrumb__sep {
  color: #3a3a3a;
}

.navigation .forttech-breadcrumb-box a.forttech-breadcrumb__label {
  color: #3a3a3a;
}

.navigation .forttech-breadcrumb-box a.forttech-breadcrumb__label:hover,
.navigation .forttech-breadcrumb-box a.forttech-breadcrumb__label:focus,
.navigation .forttech-breadcrumb-box a.forttech-breadcrumb__label:focus-visible,
.navigation .forttech-breadcrumb-box a.forttech-breadcrumb__label:active {
  color: #3a3a3a;
  text-decoration: none;
}

@media (max-width: 768px) {
  .forttech-breadcrumb-wrapper {
    margin-bottom: 0.75rem;
  }

  .forttech-breadcrumb-box {
    padding: 0.55rem 0.75rem 0.7rem;
  }

  .forttech-breadcrumb {
    font-size: 0.875rem;
  }

  .forttech-breadcrumb-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .breadcrumb-cta {
    margin-left: 0;
    align-self: flex-end;
  }
}
