/* Feature tabs, detail cards and diagnosis content. Location modal geometry lives in location-feature-dialog.css. */
@media (max-width: 991.98px) {
  .feature-story--alternating.feature-story--refined {
    --story-muted: #596671;
    background: #f9f3e9;
  }
  .feature-story--refined .feature-story-tabs button {
    font-weight: 550;
  }
  .feature-story--refined .feature-story-tabs button[aria-selected='true'] {
    font-weight: 750;
  }
  .feature-story--refined
    .feature-story-tabs
    button[aria-controls='feature-panel-diagnosis'] {
    color: #527a5c;
  }
  .feature-story--refined
    .feature-story-tabs
    button[aria-controls='feature-panel-diagnosis']::after {
    background: #527a5c;
  }
  .feature-story--refined .feature-story-navigation {
    grid-area: 1 / 1;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 52px;
    padding: 0 4px 0 12px;
    border-bottom: 1px solid rgb(0 0 0 / 5%);
  }
  .feature-story--refined .feature-story-navigation .feature-story-tabs {
    flex: 1;
    min-width: 0;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
  }
  .feature-story--refined .feature-story-navigation .feature-story-tabs button {
    gap: 6px;
    white-space: nowrap;
  }
  .feature-story--refined .feature-story-navigation .feature-story-tabs img {
    width: 22px;
    height: 22px;
  }
  .feature-more {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    height: 52px;
    margin-left: 4px;
  }
  .nsv-landing .feature-more-trigger {
    display: grid;
    place-items: center;
    width: 40px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #77756f;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
      background-color 160ms ease,
      color 160ms ease;
  }
  .feature-more-trigger > svg {
    display: block;
    width: 24px;
    height: 24px;
  }
  .nsv-landing .feature-more-trigger[aria-expanded='true'],
  .nsv-landing .feature-more-trigger:active {
    background: rgb(74 67 55 / 6%);
    color: #29343e;
  }
  .feature-more-links {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 5;
    width: max-content;
    max-width: calc(100vw - 56px);
    max-height: var(--feature-more-height, 240px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 5px;
    border-radius: 10px;
    background: #fffdf9;
    box-shadow:
      0 6px 24px rgb(40 44 50 / 12%),
      0 0 0 1px rgb(0 0 0 / 6%);
    text-align: left;
  }
  .feature-more--above .feature-more-links {
    top: auto;
    bottom: calc(100% + 6px);
  }
  .nsv-landing .feature-more-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #35414a;
    font:
      500 14px/1.5 Pretendard,
      sans-serif;
    letter-spacing: -0.25px;
    white-space: nowrap;
    text-decoration: none;
    touch-action: manipulation;
    transition: background-color 140ms ease;
  }
  .feature-more-links a > svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #8b8c85;
  }
  .nsv-landing .feature-more-links a:active {
    background: #f1ede5;
  }
  .nsv-landing .feature-more-trigger:focus-visible,
  .nsv-landing .feature-more-links a:focus-visible {
    outline: 2px solid #535681;
    outline-offset: -2px;
  }
  .feature-more-popover-enter-active {
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }
  .feature-more-popover-leave-active {
    transition:
      opacity 120ms ease,
      transform 120ms ease;
  }
  .feature-more-popover-enter-from,
  .feature-more-popover-leave-to {
    opacity: 0;
    transform: translateY(-3px);
  }
  .feature-story--alternating.feature-story--refined .feature-story-body {
    position: relative;
  }
  .nsv-landing .feature-story--refined .feature-story-copy h3 {
    margin-bottom: 10px;
    white-space: pre-line;
    text-wrap: wrap;
  }
  .nsv-landing
    .feature-story--refined
    .feature-story-copy
    .feature-story-summary {
    margin: 0 0 5px;
    color: #4f5e68;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
    white-space: normal;
    text-wrap: pretty;
  }
  .nsv-landing
    .feature-story--refined
    .feature-story-copy
    .feature-story-examples {
    margin: 0;
    color: #606d77;
    font-size: 12.5px;
    line-height: 1.75;
    white-space: normal;
    text-wrap: pretty;
  }
  .feature-story--refined
    .feature-story-examples
    .feature-story-description-tail {
    white-space: nowrap;
  }
  .feature-story--refined .feature-story-examples svg {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 4px;
    vertical-align: -2px;
    color: #755033;
  }
  .feature-story--refined .feature-story-open {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 0 16px 16px;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 160ms ease;
  }
  .feature-story--refined .feature-story-open:active {
    background: rgb(0 0 0 / 3%);
  }
  .feature-story--refined .feature-story-open:focus-visible {
    outline: 2px solid #535681;
    outline-offset: -4px;
  }
  .nsv-landing.refined-feature-preview .banner-description-restored {
    color: #606d77;
  }
  .nsv-landing.refined-feature-preview .banner-cta {
    max-width: 440px;
    margin-inline: auto;
  }
  .nsv-landing.refined-feature-preview
    .nsv-panel-section
    > .container
    > .section-header {
    margin-bottom: 32px;
  }
}
@media (max-width: 359px) {
  .feature-story--refined .feature-story-navigation {
    padding-left: 8px;
  }
  .feature-story--refined .feature-story-navigation .feature-story-tabs {
    gap: 4px;
  }
  .feature-story--refined .feature-story-navigation .feature-story-tabs button {
    gap: 4px;
    padding-inline: 0;
    font-size: 13px;
  }
  .feature-story--refined .feature-story-navigation .feature-story-tabs img {
    width: 20px;
    height: 20px;
  }
  .nsv-landing
    .feature-story--refined
    .feature-story-copy
    .feature-story-summary {
    font-size: 12px;
  }
  .nsv-landing
    .feature-story--refined
    .feature-story-copy
    .feature-story-examples {
    font-size: 12px;
  }
}
.diagnosis-feature-dialog .location-explainer-header h2.location-eyebrow {
  color: #40664a;
}
#diagnosis-feature-summary {
  margin: 0 0 22px;
  color: #596671;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: -0.3px;
  word-break: keep-all;
}
.diagnosis-flow {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 22px 16px;
  border-radius: 16px;
  background: #f0f4ec;
}
.diagnosis-flow-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.diagnosis-flow-stage > svg,
.diagnosis-flow-stage > img {
  display: block;
  width: 96px;
  height: 160px;
}
.diagnosis-flow-stage > span {
  color: #40664a;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
  white-space: nowrap;
}
.diagnosis-flow-arrow {
  width: 24px;
  height: 24px;
  margin-bottom: 30px;
  color: #6c8570;
}
.diagnosis-benefits {
  display: grid;
  gap: 18px;
}
.diagnosis-benefits h3 {
  margin: 0 0 5px;
  color: #29343e;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: -0.3px;
  word-break: keep-all;
}
.diagnosis-benefits p {
  margin: 0;
  color: #596671;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: -0.2px;
  word-break: keep-all;
}
.diagnosis-applications {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e9e7df;
  color: #606d77;
  font-size: 12px;
  line-height: 1.75;
  word-break: keep-all;
}
@media (max-width: 359px) {
  .diagnosis-flow {
    gap: 8px;
    padding: 18px 8px;
    grid-template-columns: 1fr 20px 1fr;
  }
  .diagnosis-flow-stage > svg,
  .diagnosis-flow-stage > img {
    width: 80px;
    height: auto;
  }
  .diagnosis-flow-stage > span {
    font-size: 11px;
  }
  .diagnosis-flow-arrow {
    width: 20px;
    height: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feature-story--refined .feature-story-open {
    transition: none;
  }
}
@media (hover: hover) {
  .nsv-landing .feature-more-links a:hover {
    background: #f1ede5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feature-more-trigger,
  .feature-more-links a,
  .feature-more-popover-enter-active,
  .feature-more-popover-leave-active {
    transition: none;
  }
}
