/* Public presentation only. Calculator math, print layouts and form behavior stay in their own modules. */
@media screen {
  :root { --mwb-brand-blue: #659aeb; --mwb-readable-blue: #2167b3; --mwb-public-line: #dce5f0; }
  main { overflow-wrap: break-word; }
  main :is(h1,h2,h3) { text-wrap: balance; }
  .section-heading > p, .subhero-copy > p, .landing-copy > p { text-wrap: pretty; }
  .section-heading > p { line-height: 1.75; }
  .subhero-panel, .info-card, .step-card, .resource-card, .review-tool-card {
    border-color: var(--mwb-public-line);
    box-shadow: 0 8px 28px #163b6610;
  }
  .resource-card p, .info-card p, .step-card p, .program-list span,
  .article-side p, .review-tool-copy p { font-size: 14px; line-height: 1.75; }
  .resource-card > span, .section-kicker, .panel-label { line-height: 1.5; }
  .resource-card b, .info-card a, .side-resource-link, .save-contact { font-size: 13px; line-height: 1.6; }
  .resource-card b { padding-top: 8px; }
  .resource-card:hover, .review-tool-card:hover { border-color: var(--mwb-brand-blue); box-shadow: 0 12px 32px #163b6618; }
  .faq-list summary { font-size: 15px; line-height: 1.55; align-items: center; }
  .faq-list details p, .faq-list details ul { font-size: 14px; line-height: 1.8; }
  .faq-list details[open] { border-color: #b5cdeb; }
  .disclaimer-note, .review-tools-note, .proof-disclaimer, .state-card span { font-size: 12px; line-height: 1.7; }

  /* Short labels and assumptions should remain readable on the phone used to make an inquiry. */
  .flagship-home .hero-lede { font-size: 16px; line-height: 1.8; }
  .flagship-home .hero-reassurance, .flagship-home .hero-bottomline,
  .flagship-home .hero-bottomline > a { font-size: 12px; line-height: 1.7; }
  .flagship-home .guide-copy > p { font-size: 16px; line-height: 1.8; }
  .flagship-home .guide-benefits p { font-size: 14px; line-height: 1.7; }
  .flagship-home .studio-heading > p { font-size: 14px; line-height: 1.75; }
  .flagship-home .studio-details > p, .flagship-home .studio-facts span,
  .flagship-home .studio-explore, .flagship-home .studio-explore > span { font-size: 12px; line-height: 1.7; }
  .flagship-home .studio-explore > a { min-height: 44px; }
  .flagship-home .wizard-progress { font-size: 11px; line-height: 1.5; }
  .flagship-home .next-card p, .flagship-home .advantage-editorial-list p { font-size: 14px; line-height: 1.8; }
  .form-more summary { min-height: 44px; font-size: 13px; line-height: 1.5; }
  .contact-options a { min-height: 72px; }

  /* The four starting tools get equal weight; search and direct selection share one aligned row. */
  .planning-directory-heading { max-width: 760px; margin-bottom: 28px; }
  .planning-directory-heading p { font-size: 15px; line-height: 1.75; }
  .planning-tool-filters { gap: 8px; }
  .planning-tool-filters button { min-height: 44px; font-size: 13px; }
  .planning-tool-filters button[aria-pressed=true] { background: #113660; border-color: #113660; }
  .planning-tool-search { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px 24px; align-items: end; margin: 22px 0; }
  .planning-tool-search label { width: auto; font-size: 13px; }
  .planning-quick-picker { min-width: 0; max-width: none; margin: 0; }
  .planning-quick-picker select, .planning-tool-search input { min-height: 50px; font-size: 16px; }
  #planning-tool-count { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.6; }
  .planning-directory:has([data-tool-filter="popular"][aria-pressed="true"]) .planning-tool-grid.calculator-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #calculators .planning-tool-grid.calculator-tabs > button { border-radius: 18px; padding: 24px; box-shadow: 0 5px 18px #163b6608; }
  .planning-tool-grid button .planning-tool-kicker { color: var(--mwb-readable-blue); font-size: 11px; }
  .planning-tool-grid button .planning-tool-description { font-size: 14px; line-height: 1.7; color: #526983; }
  .planning-tool-grid button .planning-tool-open { font-size: 13px; color: var(--mwb-readable-blue); }
  .planning-directory-note { font-size: 13px; line-height: 1.75; }
  .planning-workspace-toolbar > button { font-size: 13px; }
  .planning-workspace-toolbar > label { font-size: 12px; }

  /* Resource guides retain their full content with a clearer reading rhythm and larger jump links. */
  .article-hero > div > p { max-width: 780px; }
  .article-meta, .breadcrumbs { font-size: 12px; line-height: 1.7; }
  .article-body p, .article-body li { font-size: 16px; line-height: 1.85; }
  .article-body section { scroll-margin-top: 100px; }
  .article-toc { gap: 10px; padding: 20px; border-radius: 18px; }
  .article-toc strong { font-size: 13px; }
  .article-toc a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 11px; font-size: 13px; line-height: 1.5; }
  .article-toc a:hover { background: #edf4ff; border-color: #9fc1e9; }
  .article-sources a, .article-disclaimer { font-size: 12px; line-height: 1.8; }
  .article-sources a { padding-block: 5px; }
  .comparison-table { font-size: 13px; line-height: 1.65; }

  .footer .footer-brand-col p, .footer .footer-links a, .footer .privacy-choice-link { font-size: 13px; line-height: 1.7; }
  .footer .footer-links { gap: 5px; }
  .footer .footer-links a, .footer .privacy-choice-link { padding-block: 5px; }
  .footer .footer-contact a { font-size: 14px; line-height: 1.8; padding-block: 5px; }
  .footer h4 { font-size: 13px; letter-spacing: .02em; }
  .compliance-bar p, .landing-footer p { font-size: 12px; line-height: 1.75; }
  .privacy-banner p, .flagship-home .privacy-banner p { font-size: 12px; line-height: 1.65; }
  .privacy-banner .btn { min-height: 44px; font-size: 12px; }
  a:focus-visible, button:focus-visible, summary:focus-visible { outline-color: #2167b3; }
  input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: #2167b3; }
}
@media screen and (max-width: 820px) {
  .footer-main { gap: 30px; }
  .footer .footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 20px; }
  .footer .footer-links a, .footer .privacy-choice-link { min-height: 44px; display: flex; align-items: center; }
  .mobile-action-bar a { min-height: 46px; font-size: 13px; }
  .article-layout { gap: 36px; }
}
@media screen and (max-width: 620px) {
  .subhero-copy > p { font-size: 16px; line-height: 1.8; }
  .subhero-panel, .resource-card, .review-tool-card { border-radius: 18px; }
  .section-heading > p { font-size: 15px; }
  .article-hero h1 { font-size: clamp(32px,8.6vw,42px); line-height: 1.12; }
  .article-body h2 { font-size: 28px; line-height: 1.25; }
  .article-body p, .article-body li { font-size: 15px; line-height: 1.85; }
  .article-toc { padding: 16px; }
  .article-meta { gap: 8px; }
  .planning-tool-search { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .planning-directory:has([data-tool-filter="popular"][aria-pressed="true"]) .planning-tool-grid.calculator-tabs { grid-template-columns: minmax(0,1fr); }
  #calculators .planning-tool-grid.calculator-tabs > button { padding: 21px; }
  .planning-tool-grid button .planning-tool-description { padding-right: 0; }
  .planning-tool-filters button { padding-inline: 13px; }
  .flagship-home .hero-proof { justify-content: flex-start; gap: 10px 16px; font-size: 11px; }
  .flagship-home .guide-copy h2 > span { white-space: normal; }
  .flagship-home .studio-breakdown .payment-legend > div { font-size: 12px; }
  .flagship-home .studio-breakdown .payment-ring { display: none; }
  .flagship-home .studio-breakdown .payment-visual { display: block; }
  .flagship-home .hero-personal-quote { font-size: 12px; line-height: 1.7; }
  .resource-hub-grid .resource-card { min-height: 0; }
  .review-tool-copy p { font-size: 14px; }
}
@media screen and (prefers-reduced-motion: reduce) {
  .resource-card:hover { transform: none; }
  .resource-card, .review-tool-card { transition: none; }
}
