/* Shared reading scale. Loaded after the original design and WordPress styles. */
main .article { font-size: 17px; line-height: 1.85; }
main .article > section + section:not(.faq):not(.next-reading) { margin-block-start: 36px; }
main .page-head h1 { font-size: 54px; line-height: 1.13; overflow-wrap: break-word; }
main .page-head .intro { font-size: 18px; line-height: 1.75; }
main .page-head .byline { font-size: 13px; line-height: 1.7; }
main .breadcrumb { font-size: 12px; line-height: 1.7; }
main .quick-answer p { font-size: 17px; line-height: 1.8; }
main .article .takeaways li { font-size: 15px; line-height: 1.8; }
main .faq-item summary, main .faq-item p { font-size: 16px; line-height: 1.8; }
main .next-reading > a { font-size: 15px; padding-block: 13px; }
main .aside > a, main .mobile-toc > summary, main .mobile-toc nav a { font-size: 14px; line-height: 1.65; }
main .aside > a { padding-block: 10px; }
main .mobile-toc nav a { padding-block: 11px; }
main .article-layout { gap: 56px; }

/* Keep parameter tables legible; their own region scrolls on narrow screens. */
main .spec-table th, main .spec-table td,
main figure.wp-block-table.spec-table table th,
main figure.wp-block-table.spec-table table td,
main figure.wp-block-table.spec-table table th[scope="row"] { font-size: 14px; line-height: 1.7; }
main .table-block thead th,
main .table-block figure.wp-block-table.spec-table thead th { font-size: 13px; }
main .article .table-title, main .room-plan figcaption,
main .article-diagram figcaption, main .plan-hint { font-size: 13px; line-height: 1.7; }
/* The original hint used !important; match it only for this small caption. */
main .table-hint { font-size: 13px !important; line-height: 1.7; }
main .plan-hint { font-size: 13px !important; }
main .ywn-prose > .wp-block-table th, main .ywn-prose > .wp-block-table td { font-size: 14px; }

/* Supporting copy keeps the same scale across cards, hubs and tools. */
main .path-card p, main .guide-card p, main .section-top p,
main .fit-copy p, main .method-strip p, main .tool-notes ol { font-size: 15px; line-height: 1.8; }
main .guide-card .meta, main .card-index { font-size: 12px; }
main .card-link, main .text-link { font-size: 14px; }
main .home-planning > section > p { font-size: 17px; }
main .hero .intro { font-size: 18px; }
.nav > a { font-size: 15px; }
.nav-toggle { min-height: 44px; font-size: 14px; }
.footer .footer-about p, .footer .footer-links a { font-size: 14px; }
.footer .footer-bottom { font-size: 12px; }

/* Override the calculator's standalone styles without changing its arithmetic. */
main .ywn-fit-tool label { font-size: 14px; line-height: 1.5; }
main .ywn-fit-tool label small, main .ywn-fit-tool .form-help,
main .ywn-fit-tool .private-note, main .ywn-fit-tool .fit-result .small { font-size: 13px; line-height: 1.7; }
main .ywn-fit-tool input, main .ywn-fit-tool select { font-size: 16px; min-height: 48px; }
main .ywn-fit-tool .form-pair > label { display: flex; flex-direction: column; min-width: 0; }
main .ywn-fit-tool .form-pair > label input { margin-top: auto; }
main .ywn-fit-tool .fit-form legend span, main .ywn-fit-tool .fit-result .eyebrow { font-size: 12px; }
main .ywn-fit-tool .fit-axis { font-size: 14px; }
main .ywn-fit-tool .fit-result p, main .ywn-fit-tool .fit-result li { font-size: 15px; }
main .ywn-fit-tool .button { font-size: 14px; }
main .ywn-fit-tool .plain-button { font-size: 14px; min-height: 44px; padding-block: 8px; }

@media (max-width: 1100px) {
  /* Give laptops/tablets a comfortable reading column rather than a thin sidebar grid. */
  main .article-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; gap: 32px; }
  main .container:has(> .article-layout) > .breadcrumb,
  main .container:has(> .article-layout) > .page-head,
  main .container:has(> .article-layout) > .mobile-toc { max-width: 760px; margin-inline: auto; }
  main .article-layout > .aside { display: none; }
  main .mobile-toc { display: block; }
  main .page-head h1 { font-size: clamp(40px, 4.5vw, 48px); }
}
@media (max-width: 560px) {
  main .article { font-size: 16px; line-height: 1.85; }
  main .article > section + section:not(.faq):not(.next-reading) { margin-block-start: 32px; }
  main .page-head { padding-block: 32px 34px; }
  main .page-head h1 { font-size: clamp(34px, 9.2vw, 40px); line-height: 1.15; }
  main .page-head .intro, main .quick-answer p,
  .ywn-native main .quick-answer > p:not(.eyebrow) { font-size: 16px; }
  main .hero h1 { font-size: clamp(42px, 10.8vw, 50px); }
  main .hero .intro { font-size: 17px; }
  main .article h2 { font-size: 28px; line-height: 1.2; }
  main .table-block td, main .spec-table th[scope="row"] { font-size: 14px; }
  main .ywn-fit-tool .fit-result { padding: 20px 16px; }
  main .ywn-fit-tool .fit-result h2 { font-size: 25px; }
}
@media (max-width: 480px) {
  main .ywn-fit-tool .form-top, main .ywn-fit-tool .form-pair { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  main .ywn-fit-tool label small { min-height: 0; }
}
