/* Shared mobile journeys; desktop content and insurance destinations are retained. */
.mobile-reading-link,
.mobile-blog-browse,
.mobile-reading-toc > summary { display: none; }
.mobile-reading-toc { display: contents; }
.mobile-wrapped-action { display: contents; }
.lead-field[hidden], .journey-field[hidden], select[name="currentContract"][hidden] { display: none !important; }

/* Native phone keyboards remain readable without zooming into a field. */
@media (max-width: 800px) {
  body main :is(.lead-field, .journey-field) :is(input, select),
  body main select[name="currentContract"] {
    font-size: 16px;
    line-height: 1.4;
    min-height: 48px;
    max-width: 100%;
    box-sizing: border-box;
  }
  body main :is(.lead-contact-choice, .journey-contact-choice) {
    min-height: 44px;
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.5;
  }
  body main [data-lead-submit], body main [data-request-contact], body main .journey-summary-button {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
  }
  body main .lead-form { padding: 20px 16px; }
  body main .lead-form fieldset:last-of-type { margin-bottom: 12px; }
  body main .lead-heading p, body main .journey-heading p {
    font-size: 16px;
    line-height: 1.55;
  }
  body main .journey-card label[for$="-company"] { margin-bottom: 16px; }
  body main .dc-toc a { overflow-wrap: anywhere; }
}

@media (max-width: 800px) {
  body main .compact-hero.mobile-product-hero [data-hero-copy] > .questionnaire-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0;
    margin: 0;
    min-height: 0;
  }
  body main .compact-hero.mobile-product-hero .questionnaire-actions > .button {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.3;
  }
  body main .compact-hero.mobile-article-hero [data-hero-copy] > h1 {
    font-size: clamp(25px, calc(7vw - 4px), 34px);
    text-align: left;
    text-wrap: pretty;
  }
  body main .compact-hero.mobile-article-hero .dc-intro {
    font-size: 16px;
    line-height: 1.65;
    margin: 4px 0 0;
  }
  body main .mobile-reading-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: inherit;
  }
  .mobile-reading-toc { display: block; margin: 18px 0 24px; }
  .mobile-reading-toc > summary {
    display: list-item;
    width: calc(100% - 36px);
    margin: 0 auto;
    padding: 14px 18px;
    color: #1b2424;
    background: #f7f8f5;
    border: 1px solid #deded9;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    min-height: 48px;
  }
  body main .mobile-reading-toc .dc-toc {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 8px 0;
    margin-top: 8px;
    border: 0;
    border-radius: 0;
  }
  body main .mobile-reading-toc .dc-toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    border: 0;
    border-bottom: 1px solid #e2e5e2;
    border-radius: 0;
    background: transparent;
  }
  .mobile-reading-toc:not([open]) > nav { display: none; }
  .mobile-reading-toc summary:focus-visible { outline: 3px solid #bd7900; outline-offset: 3px; }
  body main :is(.dc-table, .blog-table-scroll) { max-width: 100%; overflow-x: auto; }

  body.blog-index main .blog-index-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  body.blog-index main .blog-index-hero [data-hero-copy] { display: contents; }
  body.blog-index main .blog-index-hero .dc-label { display: none; }
  body.blog-index main .blog-index-hero h1 {
    order: 1;
    margin: 0;
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.13;
  }
  body.blog-index main .blog-carousel { order: 2; }
  body.blog-index main .mobile-blog-browse {
    display: flex;
    order: 3;
    min-height: 48px;
    margin: 0;
  }
  body.blog-index main .blog-index-hero [data-hero-copy] > p { order: 4; margin: 0; }
}

/* Product hubs: choose a protection or a professional category immediately. */
@media (max-width: 800px) {
  body main .compact-hero.mobile-product-hero.mobile-priority-products [data-hero-copy] > h1 {
    order: 0;
  }
  body main .compact-hero.mobile-product-hero.mobile-priority-products .hero-subnav {
    order: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px;
  }
  body main .compact-hero.mobile-product-hero.mobile-priority-products .hero-subnav-title {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
  }
  body main .compact-hero.mobile-product-hero.mobile-priority-products .hero-subnav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body main .compact-hero.mobile-product-hero.mobile-priority-products .hero-subnav-link {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 10px 8px;
    gap: 7px;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: break-word;
  }
  body main .compact-hero.mobile-product-hero.mobile-priority-products .hero-subnav-plus {
    flex-shrink: 0;
  }
}
