/* Small-screen fixes shared by FightPulse public templates. */
@media (max-width: 768px) {
 main, .main-content, .article-main, .article-content { min-width: 0; }
 main :is(input:not([type=checkbox]):not([type=radio]), select, textarea), [role=dialog] input { font-size: 16px; max-width: 100%; }
 .cookie-table { display: block; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
 .events-grid { grid-template-columns: minmax(0, 1fr) !important; }
 .event-card { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
 .event-card :is(.event-header,.event-details,.event-footer) { min-width: 0; flex-wrap: wrap; }
 .author-content { padding: 24px 12px !important; }
 .author-page article { min-width: 0; max-width: 100%; padding: 16px !important; }
 .author-page article > div { display: flex !important; flex-direction: column; min-width: 0; }
 .author-page article > div > div { min-width: 0; max-width: 100%; }
 .author-page article img { width: 100% !important; max-width: 100%; height: auto !important; }
 .author-page h3 { overflow-wrap: anywhere; }
 .error-404-page .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
 .error-404-page .nav-link { max-width: 100%; white-space: normal; }
 .error-404-page .error-actions { flex-wrap: wrap; }
 .article-body, .article-paragraph { overflow-wrap: anywhere; }
 .article-body img, .article-content img { max-width: 100%; height: auto; }
 .article-content .article-wrapper { padding: 20px 16px !important; }
 .article-content .article-meta h1 { font-size: clamp(24px, 6vw, 30px) !important; line-height: 1.25; }
 .article-content .article-byline { gap: 10px; }
 #loginModal, #editModal, #cookie-preferences-modal, #newsletter-popup { z-index: 1000010 !important; }
 #loginModal > div, #editModal > div { padding: 20px !important; max-height: 88dvh !important; width: calc(100% - 24px) !important; }
 #loginModal :is(input,button), #editModal :is(input,button,textarea) { min-height: 44px; font-size: 16px; }
 .ufc-letter-link, .ufc-search-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
 .ufc-alphabet-nav { flex-wrap: wrap; }
 .ufc-search-form { flex-wrap: wrap; }
 .ufc-search-input { min-width: 0; }
 #cookie-consent-banner { max-height: 55dvh !important; padding: 16px !important; }
 #cookie-consent-banner > div { flex-direction: column; gap: 12px !important; }
 #cookie-consent-banner > div > div { min-width: 0 !important; width: 100%; }
 #cookie-consent-banner button { min-height: 44px; flex: 1; }
 #cookie-preferences-modal > div { padding: 20px !important; max-height: 85dvh !important; }
 .clinchzone-feed-page .feed-grid { grid-template-columns: minmax(0,1fr) !important; padding: 0 12px !important; }
 .feed-grid > *, .feed-grid .post-card, .feed-grid .post-card div { min-width: 0; overflow-wrap: anywhere; }
 .feed-grid input { min-width: 0; }
 .author-content div[style*="justify-content: center"] { flex-wrap: wrap; }
}
