/* Internal pages only. Loaded after mobile.css; desktop and the home stay intact. */
.article-aside li>a { display: block; }
@media (max-width: 767px) {
  body:not(.home-page) main :is(.page-hero-grid,.product-intro,.legal-layout,.article-layout,.faq-page-grid,.quote-layout) { grid-template-columns: minmax(0,1fr); gap: 26px; }
  body:not(.home-page) main :is(.page-hero-copy,.page-hero-grid>*,.product-intro>*,.legal-layout>*,.article-layout>*,.faq-page-grid>*,.quote-layout>*,.catalog-results,.contact-card>div,.prose,.legal-section,.article-body section) { min-width: 0; max-width: 100%; }
  body:not(.home-page) main :is(.prose,.legal-body,.article-body,.article-aside,.contact-info,.contact-card,.feature-card,.quote-summary) { overflow-wrap: anywhere; }
  body:not(.home-page) main :is(.button-row,.cta-actions) { min-width: 0; }
  body:not(.home-page) main .btn { white-space: normal; min-width: 0; }

  .page-hero { padding-bottom: 32px; }
  .page-hero h1,.page-hero.with-image h1 { font-size: clamp(30px,5.3vw,32px); line-height: 1.16; letter-spacing: -.035em; margin-bottom: 17px; overflow-wrap: anywhere; }
  .page-hero .eyebrow { font-size: 11px; line-height: 1.55; }
  .page-hero .lead { font-size: 15px; line-height: 1.65; }
  .page-hero.with-image .page-hero-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .page-hero-image { min-width: 0; max-height: none; border-radius: 13px; }
  .page-hero-image>img { height: 230px; min-height: 0; object-fit: cover; }
  .page-hero .button-row { grid-template-columns: minmax(0,1fr); margin-top: 22px; gap: 10px; }
  .breadcrumb { padding-block: 18px 23px; font-size: 12px; line-height: 1.5; }
  .breadcrumb ol,.breadcrumb li { min-width: 0; max-width: 100%; }
  .breadcrumb li { flex-wrap: wrap; gap: 6px; overflow-wrap: anywhere; }
  .breadcrumb a { min-width: 0; }

  .product-intro .criteria-panel,.quote-summary,.franchise-note,.faq-sidebar { padding: 21px 18px; border-radius: 13px; }
  .product-intro .criteria-panel h3 { margin-bottom: 17px; }
  .quote-summary h2,.faq-sidebar h3 { font-size: 22px; }
  body:not(.home-page) .step-copy { min-width: 0; }
  body:not(.home-page) .step-copy h2 { font-size: 22px; line-height: 1.3; margin: 0 0 11px; }
  body:not(.home-page) .contact-card { gap: 12px; padding-block: 17px; }

  .catalog-layout { min-width: 0; }
  .catalog-sidebar { padding: 17px 15px; margin-bottom: 21px; }
  .catalog-sidebar .filter-tabs { max-width: 100%; overscroll-behavior-inline: contain; }
  .catalog-results .search-field,.faq-tools .search-field { min-width: 0; gap: 10px; padding-inline: 12px; }
  .catalog-results .search-field input,.faq-tools .search-field input,#article-search { min-width: 0; font-size: 16px; }
  .mini-product-grid { grid-template-columns: minmax(0,1fr); }
  .mini-product { padding: 19px 16px; gap: 12px; }
  .mini-product .icon-box { width: 32px; height: 34px; flex-basis: 32px; }
  .mini-product h3 { font-size: 18px; }
  .mini-product p { font-size: 15px; line-height: 1.6; }
  body:not(.home-page) .solution-card { min-height: 0; padding: 21px 18px; }
  body:not(.home-page) .solution-card p { font-size: 15px; }
  body:not(.home-page) .solution-link { font-size: 13px; line-height: 1.5; }

  body:not(.home-page) .faq-list .faq-item summary { padding: 16px 14px; gap: 10px; font-size: 15px; line-height: 1.5; }
  body:not(.home-page) .faq-question { gap: 9px; align-items: flex-start; }
  body:not(.home-page) .faq-question-icon { width: 24px; height: 24px; flex-basis: 24px; }
  body:not(.home-page) .faq-list .faq-symbol { width: 26px; height: 26px; flex-basis: 26px; }
  body:not(.home-page) .faq-list .faq-answer { padding: 0 16px 18px; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
  .faq-tools .filter-tabs { gap: 7px; }
  .faq-tools .filter { min-height: 44px; max-width: 100%; white-space: normal; font-size: 13px; line-height: 1.4; }

  .legal-toc,.article-aside { padding: 20px 18px; }
  .legal-toc h2,.article-aside h2 { font-size: 20px; line-height: 1.3; }
  .legal-section { margin-bottom: 32px; }
  .legal-section h2,.article-body h2 { font-size: 26px; line-height: 1.25; margin-block: 30px 16px; }
  .legal-section p,.legal-section li,.article-body { font-size: 15px; line-height: 1.75; }
  .article-body .article-cover { height: 230px; min-height: 0; border-radius: 13px; margin-bottom: 22px; }
  .article-body :is(ul,ol),.legal-section :is(ul,ol) { padding-left: 21px; }
  .article-body .button-row,.legal-body .button-row { display: grid; grid-template-columns: minmax(0,1fr); gap: 11px; }
  .article-aside .btn { width: 100%; font-size: 14px; }
  .article-aside li>a { min-height: 44px; padding-block: 6px; }
  .blog-taxonomy a { max-width: 100%; overflow-wrap: anywhere; font-size: 13px; }

  /* Keep calculator values readable without shrinking touch targets. */
  .calc-section { padding-block: 48px; font-size: 15px; }
  .calc-heading,.calc-layout { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .calc-heading h2 { font-size: 28px; line-height: 1.2; }
  .calc-heading>p { font-size: 15px; line-height: 1.65; }
  .calc-mode-switch button { min-width: 0; }
  .calc-illustrative,.calc-disclaimer { padding: 17px 15px; gap: 10px; }
  .calc-illustrative>p,.calc-disclaimer>div,.calc-summary-heading>div { min-width: 0; }
  .calc-step { padding: 20px 16px; }
  .calc-step legend { font-size: 18px; gap: 9px; }
  .calc-summary { padding: 23px 18px; }
  .calc-payment>strong { font-size: 32px; }
  .calc-term { padding: 12px 10px; min-height: 96px; }
  .calc-term>strong { font-size: 18px; }
  .calc-term>[data-calc-term-payment] { font-size: 15px; }
}

@media (max-width: 600px) {
  .page-hero-image>img,.article-body .article-cover { height: 210px; }
  .legal-toc ol,.article-aside ol { columns: 1; }
  .legal-toc li,.article-aside li { font-size: 14px; line-height: 1.55; }
  body:not(.home-page) .solution-grid,body:not(.home-page) .solution-grid.related { grid-template-columns: minmax(0,1fr); }
  body:not(.home-page) .solution-card h3 { font-size: 20px; }
  .calc-objectives { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .calc-field-grid { grid-template-columns: minmax(0,1fr); }
  .calc-terms,.calc-panel[data-calc-panel="loan"] .calc-terms { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .calc-amount-control { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; }
  .calc-money-input { grid-column: 1/-1; grid-row: 1; }
  .calc-money-input input { height: 54px!important; font-size: 24px!important; }
  .calc-adjust:first-child { grid-column: 1; grid-row: 2; }
  .calc-adjust:last-child { grid-column: 3; grid-row: 2; }
  .calc-adjust { min-height: 44px; }
  .calc-range { margin-top: 8px; }
  .calc-breakdown>div { flex-wrap: wrap; gap: 3px 12px; }
  .calc-breakdown dd { max-width: 100%; margin-left: auto; }
}
