/* Patch 170: compact mobile node navigation; desktop tabs stay unchanged. */
.details-hero[data-details-mobile="170"] .details-mobile-nav-170 {
  display: none;
}

.details-hero[data-details-mobile="170"] .details-mobile-nav-170[hidden],
.details-hero[data-details-mobile="170"] .details-mobile-nav-170 [hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .details-hero[data-details-mobile="170"] .details-mobile-nav-170:not([hidden]) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 12px 0 0;
    padding: 0;
    color: var(--details-ink, #172b36);
    background: transparent;
    scroll-margin-top: calc(var(--atm-fixed-total, 0px) + 16px);
  }

  .details-hero[data-details-mobile="170"] .details-mobile-nav-170 * {
    box-sizing: border-box;
  }

  .details-hero[data-details-mobile="170"] .details-mobile-hint-170 {
    margin: 0 0 4px;
    color: var(--details-muted, #6b7b83);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .details-hero[data-details-mobile="170"] .details-mobile-bar-170 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 16px;
    min-width: 0;
    max-width: 100%;
  }

  .details-hero[data-details-mobile="170"] .details-mobile-current-170 {
    display: flex;
    flex: 1 1 210px;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 8px 0;
    color: var(--details-ink, #172b36);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: left;
  }

  .details-hero[data-details-mobile="170"] .details-mobile-number-170 {
    flex: 0 0 auto;
    color: var(--details-blue, #287bb0);
    font-size: 14px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .details-hero[data-details-mobile="170"] .details-mobile-name-170 {
    min-width: 0;
    color: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .details-hero[data-details-mobile="170"] .details-mobile-toggle-170 {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    max-width: 100%;
    margin: 0 0 0 auto;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--details-blue, #287bb0);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: right;
    text-transform: none;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    touch-action: manipulation;
    appearance: none;
  }

  .details-hero[data-details-mobile="170"] .details-mobile-list-170 {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 8px 0 0;
    padding: 0;
    border-top: 1px solid var(--details-line, #e4ebef);
  }

  .details-hero[data-details-mobile="170"] .details-mobile-choice-170 {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--details-line, #e4ebef);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--details-ink, #172b36);
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
    touch-action: manipulation;
    appearance: none;
  }

  .details-hero[data-details-mobile="170"] .details-mobile-choice-170[aria-pressed="true"] {
    color: var(--details-blue, #287bb0);
  }

  .details-hero[data-details-mobile="170"] .details-mobile-toggle-170:focus-visible,
  .details-hero[data-details-mobile="170"] .details-mobile-choice-170:focus-visible {
    outline: 2px solid var(--details-blue, #287bb0);
    outline-offset: 3px;
  }

  /* Keep the original controls until the replacement is fully initialized. */
  .details-hero[data-details-mobile="170"][data-details-mobile-ready="170"] > .details-tabs {
    display: none;
  }

  .details-hero[data-details-mobile="170"]:not([data-details-mobile-ready="170"]) > .details-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    overscroll-behavior-x: auto;
    scroll-padding-inline: 0;
  }

  .details-hero[data-details-mobile="170"]:not([data-details-mobile-ready="170"]) > .details-tabs > .details-tab {
    flex: 0 1 auto;
    justify-content: flex-start;
    min-width: 0;
    min-height: 44px;
    max-width: 100%;
    padding: 8px 0;
    font-size: 16px;
    text-align: left;
    white-space: normal;
  }

  .details-hero[data-details-mobile="170"]:not([data-details-mobile-ready="170"]) > .details-tabs > .details-tab > .details-tab-number {
    flex: 0 0 auto;
  }

  .details-hero[data-details-mobile="170"]:not([data-details-mobile-ready="170"]) > .details-tabs > .details-tab > span:last-child {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
