/*
 * Phone layout fixes, loaded only below 782px.
 * This sheet loads last. Font sizes use !important because the page sheets
 * set them with selectors of many different strengths.
 */

/* Side margins: section padding shorthands remove the block theme gutter. */
main.ccf-home .alignfull.has-global-padding,
.wp-block-post-content.has-global-padding > .alignfull.has-global-padding,
.ccf-breadcrumb.has-global-padding,
.ccf-article-hero.has-global-padding,
.ccf-related.has-global-padding,
.ccf-insights-hero.has-global-padding,
.ccf-insights-featured.has-global-padding,
.ccf-insights-section.has-global-padding,
.ccf-insights-principles.has-global-padding {
	padding-left: 20px;
	padding-right: 20px;
}
.ccf-system-container { width: calc(100% - 40px); }
.ccf-quote-hero .ccf-quote-copy { padding-left: 0; padding-right: 0; }
.ccf-commercial-page .ccf-page-section > h2 { margin-right: 20px !important; }
.ccf-commercial-page .ccf-support-note { margin-left: 20px !important; margin-right: 20px !important; }

/* Header: the logo image has about 15px of empty space on its left. */
.ccf-main-navigation { width: 100%; }
.ccf-main-navigation > .ccf-brand { margin-left: -15px; }

/* Body text: at least 16px. Labels, captions, tables and legal lines keep their size. */
html body { font-size: 16px; }
.ccf-article-body ol li,
.ccf-archive-visual p,
.ccf-collection-intro p,
.ccf-factor-item p,
.ccf-option-item p,
.ccf-scope-item p,
.ccf-hero-note,
.ccf-home-hero-card-copy,
.ccf-notice,
.ccf-product-card__excerpt,
.ccf-product-customization__head p:not(.ccf-eyebrow),
.ccf-route-note,
.ccf-single-note,
.ccf-brief-card p,
.ccf-brief-text,
.ccf-check p,
.ccf-faq-aside p,
.ccf-guide-example__body p,
.ccf-home-benefit p,
.ccf-home-capability-item p:not(.ccf-home-capability-number, .ccf-home-round-link),
.ccf-home-faq-list p,
.ccf-home-quote-points p,
.ccf-home-step p:not(:first-child),
.ccf-principle p,
.ccf-spec-row p,
.ccf-step p,
.ccf-post-body .wp-block-post-excerpt__excerpt,
.ccf-archive-routing__steps span,
.ccf-commercial-fact span,
.ccf-factory-facts span,
.ccf-home-hero-note span,
.ccf-matrix-card span,
.ccf-proof span,
.ccf-single-process span {
	font-size: 16px !important;
}

/* Form controls: 16px also stops iOS zooming in on focus. */
main :is(input:not([type="checkbox"], [type="radio"]), select, textarea) { font-size: 16px; }

/* Touch targets: 48px minimum. Links inside sentences are left alone. */
.ccf-site-header .custom-logo-link,
.ccf-site-footer .wp-block-navigation-item__content,
.ccf-site-footer .ccf-site-info-link,
.ccf-footer-legal a,
.ccf-back-to-top,
.ccf-breadcrumb-nav a,
.ccf-article-toc nav a,
.ccf-back-insights a,
.ccf-category-links a,
.ccf-cap-card > p > a,
.ccf-collection-intro a,
.ccf-guide-related a,
.ccf-guide-route-card > a,
.ccf-home-card-link a,
.ccf-home-quote-email a,
.ccf-policy-nav p a,
.ccf-post-body h3 a,
.ccf-product-card__title a,
.ccf-read-more,
.ccf-reference-link a,
.ccf-related-body h3 a,
.ccf-related-card__body h3 a,
.ccf-related-card__link,
.ccf-route-details p > a,
.taxonomy-category a,
.wp-block-post-content.has-global-padding .ccf-split-card > p > a,
.wp-block-query-pagination a {
	display: inline-flex;
	align-items: center;
	min-width: 48px;
	min-height: 48px;
}
.ccf-article-toc nav a { display: flex; }
.ccf-policy-nav li a,
.xr-cta-box a { min-height: 48px; }
.ccf-category-bar button,
.ccf-brief-tool summary,
.wp-block-search__input,
.wp-block-search__button { min-height: 48px; }
.wp-block-search__button,
.wp-block-query-pagination .page-numbers { min-width: 48px; justify-content: center; }
.ccf-home-round-link a { width: 48px; height: 48px; }
.wp-block-search__inside-wrapper,
.wp-block-query-pagination { gap: 8px; }
/* Standalone links in mixed text blocks: padding enlarges the target without moving the text. */
.ccf-faq-item > p > a,
.ccf-neutral-card > p > a,
.ccf-quote-box p > a:not(.wp-element-button) { padding-block: 16px; }
