/* Mobile-only refinements for product and inner routes. Keep this file last in
   the page-style order so it can correct accumulated breakpoint overrides. */
@media (max-width: 760px) {
  /* Product analysis steps: keep the full label and a usable touch target. */
  .product-page .p-steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0 2px 3px;
  }

  .product-page .p-step {
    flex: 0 0 auto;
    min-width: clamp(104px, 31vw, 132px);
    min-height: 52px;
    justify-content: flex-start;
    gap: 7px;
    padding: 11px 8px 12px;
    scroll-snap-align: start;
    font-size: 13px;
  }

  .product-page .p-step-number {
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 10px;
  }

  .product-page .p-step strong {
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
  }

  /* Sample report chapters become a deliberate horizontal chapter rail. */
  .product-page .p-report-reading {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .product-page .p-report-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 10px 12px;
  }

  .product-page .p-report-nav button {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 48px;
    justify-content: flex-start;
    gap: 8px;
    padding: 9px 12px;
    scroll-snap-align: start;
    font-size: 13px;
    white-space: nowrap;
  }

  .product-page .p-report-nav button > span {
    display: inline;
    font-size: 11px;
  }

  .product-page .p-report-chapter {
    min-height: 0;
  }

  .product-page .p-report-overview {
    gap: 17px;
    padding: 22px 18px;
  }

  /* Resource filters keep their live result count and show that they scroll. */
  .c-resources .c-library-bar {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 25px;
  }

  .c-resources .c-filters {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0 2px 5px;
  }

  .c-resources .c-filters button {
    flex: 0 0 auto;
    min-height: 44px;
    scroll-snap-align: start;
  }

  .c-resources .c-result-count {
    display: block;
    align-self: flex-end;
    font-size: 12px;
    line-height: 1.5;
  }

  /* A compact editorial list gives each topic enough room for its title. */
  .c-resources .c-topic-grid {
    gap: 0;
  }

  .c-resources .c-topic {
    border-top: 1px solid var(--yn-line, var(--c-line));
  }

  .c-resources .c-topic:last-child {
    border-bottom: 1px solid var(--yn-line, var(--c-line));
  }

  .c-resources .c-topic a {
    display: grid;
    grid-template-columns: clamp(88px, 29vw, 116px) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 17px 0;
  }

  .c-resources .c-topic .c-editorial-cover {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    border-radius: 4px;
  }

  .c-resources .c-topic-copy {
    min-width: 0;
    padding-top: 0;
  }

  .c-resources .c-topic .c-category {
    font-size: 11px;
    line-height: 1.4;
    padding: 3px 8px;
  }

  .c-resources .c-topic h2 {
    margin: 7px 0 6px;
    font-size: 18px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .c-resources .c-topic-copy > p {
    font-size: 13px;
    line-height: 1.65;
  }

  .c-resources .c-topic-status {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.5;
  }

  .c-resources .c-editorial-note {
    margin-top: 24px !important;
  }

  /* Keep article and privacy section navigation visible and easy to use. */
  .c-article .c-article-layout,
  .c-privacy .c-article-layout {
    gap: 18px;
  }

  .c-article-aside {
    max-width: none;
    margin: 0;
  }

  .c-article-aside .c-back {
    min-height: 44px;
    margin-bottom: 8px;
  }

  .c-mobile-toc {
    margin-bottom: 3px;
  }

  .c-mobile-toc > div a {
    min-height: 44px;
    padding: 10px 2px;
    line-height: 1.5;
  }

  .c-article-body section {
    scroll-margin-top: 104px;
  }

  /* The company facts read as a two-audience comparison, not a card stack. */
  .c-company-opening {
    gap: 21px;
    padding: 30px 0 32px;
  }

  .c-company-cover {
    aspect-ratio: 1.72;
    border-radius: 3px;
  }

  .c-company-belief {
    gap: 22px;
    padding: 30px 0 34px;
  }

  .c-belief-art {
    gap: 12px;
    padding: 0;
    border-radius: 0;
  }

  .c-belief-document {
    padding: 19px 16px;
    border-radius: 3px;
  }

  .c-belief-document > div:not(.c-fact-top) {
    display: grid;
    grid-template-columns: minmax(72px, 0.34fr) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 11px 0;
    font-size: 13px;
    line-height: 1.65;
  }

  .c-belief-document > div:not(.c-fact-top) > span {
    padding-top: 1px;
  }

  .c-belief-document > div:not(.c-fact-top) strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .c-belief-readers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .c-belief-readers > div {
    min-width: 0;
    padding: 12px 10px;
  }

  .c-belief-readers > div > span:last-child {
    font-size: 11px;
    line-height: 1.55;
    margin-top: 7px;
  }

  .c-company-story {
    gap: 14px;
    padding: 30px 0 27px;
  }

  .c-company-story > div > p + p {
    margin-top: 12px;
  }

  .c-direction-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border: 0;
    border-top: 1px solid var(--yn-line, var(--c-line));
    border-radius: 0;
    overflow: visible;
    padding-top: 0;
  }

  .c-direction-grid > article,
  .c-direction-grid > article + article {
    padding: 22px 0 24px;
    border: 0;
    border-bottom: 1px solid var(--yn-line, var(--c-line));
    background: transparent;
  }

  .c-direction-grid h2 {
    margin: 10px 0 12px;
  }

  /* Contact fields use the phone width and preserve the existing form flow. */
  .c-contact-layout {
    width: min(calc(100% - 40px), 560px);
    gap: 34px;
  }

  .c-contact-card {
    min-width: 0;
  }

  .c-contact-card-heading h1 {
    text-wrap: balance;
  }

  .c-contact-direct {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    overflow-wrap: anywhere;
  }

  .c-form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .c-field {
    min-width: 0;
    margin-bottom: 18px;
  }

  .c-field input,
  .c-field textarea {
    min-height: 52px;
    border-radius: 4px;
  }

  .c-field textarea {
    min-height: 112px;
    line-height: 1.6;
  }

  .c-intents {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    margin-bottom: 21px;
  }

  .c-intents legend {
    padding-bottom: 7px;
  }

  .c-intents label {
    width: 100%;
    max-width: none;
    min-height: 46px;
    padding: 10px 8px;
    border: 0;
    border-bottom: 1px solid var(--yn-line, var(--c-line));
    border-radius: 0;
    font-size: 14px;
    line-height: 1.45;
  }

  .c-intents input {
    width: 18px;
    height: 18px;
  }

  .c-form-submit {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }

  .c-form-note,
  .c-submit-status {
    font-size: 12px;
    line-height: 1.65;
  }

  .c-contact-intro {
    padding: 0;
    background: transparent;
  }

  .c-contact-art {
    height: 142px;
    min-height: 0;
    margin-bottom: 19px;
    border-radius: 3px;
  }

  .c-conversation-topics {
    margin: 16px 0;
  }

  .c-conversation-topics li {
    min-height: 58px;
  }
}

@media (max-width: 390px) {
  .c-resources .c-topic a {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 13px;
  }

  .c-resources .c-topic h2 {
    font-size: 17px;
  }

  .c-belief-readers > div {
    padding: 10px 8px;
  }
}
