/* Shared type roles and responsive components. Keep the established theme palette. */
:root {
  --pfl-body-font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pfl-heading-hero: clamp(2rem, 4.4vw, 4rem);
  --pfl-heading-section: clamp(1.625rem, 3vw, 2.75rem);
  --pfl-heading-card: clamp(1.125rem, 1.8vw, 1.375rem);
}
body { font-family: var(--pfl-body-font-family); }
button, input, select, textarea { font-family: inherit; }
body main :is(h1,h2,h3,h4), body .trainer-grid h3, body .footer-brand h2 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  white-space: normal;
  text-wrap: pretty;
}
body :is(.hero.hero-cinema,.training-hero,.single-post-hero,.overview-header,.pfl-shop-hero,.signup-hero,.pfl-flow-hero,.birthday-hero,.trainer-profile-hero,.pfl-normal-hero) h1,
body .pfl-product-summary .product_title {
  font-family: var(--pfl-title-font-family);
  font-style: var(--pfl-title-font-style);
  font-weight: var(--pfl-title-font-weight);
  font-size: var(--pfl-heading-hero);
  line-height: 1.12;
  letter-spacing: normal;
  max-width: 100%;
}
body :is(.section-heading,.training-intro,.training-detail-grid,.cta,.pfl-numbers,.single-related-posts,.trainer-story-card,.pfl-shop-closing,.pfl-normal-content,.pfl-normal-contact,.pfl-normal-contact-body) h2,
body :is(.generic-single-content,.single-post-content,.entry-content) > h2 {
  font-family: var(--pfl-title-font-family);
  font-style: var(--pfl-title-font-style);
  font-weight: var(--pfl-title-font-weight);
  font-size: var(--pfl-heading-section);
  line-height: 1.2;
}
body :is(.signup-form .form-panel-heading,.birthday-panel-heading,.birthday-info-panel) h2 {
  font-family: var(--pfl-title-font-family);
  font-style: var(--pfl-title-font-style);
  font-weight: var(--pfl-title-font-weight);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
}
body :is(.offer-card,.trainer-grid,.trainer-training-grid,.location-offer-card,.training-location-price-card,.single-related-card,.event-card) h3 {
  font-family: var(--pfl-body-font-family);
  font-style: normal;
  font-weight: 800;
  font-size: var(--pfl-heading-card);
  line-height: 1.35;
}
body :is(.trainer-profile-copy,.trainer-grid article > div,.trainer-training-grid article > div,.offer-card-body,.training-intro > div,.training-detail-grid > div,.cta > div,.section-heading > div,.form-panel,.summary-card) { min-width: 0; }
body .trainer-profile-hero h1 span { display: inline; white-space: normal; }
body .trainer-credentials h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; }
body .trainer-facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
body .trainer-facts strong { overflow-wrap: normal; word-break: normal; hyphens: none; }
body .trainer-profile-page { overflow: clip; } /* Decorative rings only, not text containers. */
body .footer-brand .footer-brand-name,
body .footer-brand .footer-brand-name > span { white-space: normal; }
body main .button, body main .hero-card-button,
body .signup-form button, body .birthday-form button,
body .pfl-shop-search button {
  font-family: var(--pfl-body-font-family);
}
body main .button { white-space: normal; text-align: center; line-height: 1.35; min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
body main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) { font-family: var(--pfl-body-font-family); font-size: 16px; max-width: 100%; }
body .pfl-number-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
body .section-heading.split { flex-wrap: wrap; }
body :is(.hero-content,.training-hero-content,.pfl-shop-hero-content) { overflow: visible; }
body .pfl-product-summary .product_title { font-size: clamp(1.75rem, 3.5vw, 3rem); }
body .pfl-week-scroll { position: relative; min-width: 0; }
body .pfl-week td { position: relative; }

/* One shared data source: detailed lists for focused pages, week grid for the overview. */
.pfl-agenda-list { display: none; list-style: none; margin: 0; padding: 0; }
.pfl-agenda-compact .pfl-agenda-list { display: grid; }
.pfl-agenda-item { display: grid; grid-template-columns: minmax(150px,.65fr) minmax(0,1.5fr) minmax(0,1fr); gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pfl-agenda-item:first-child { border-top: 1px solid var(--line); }
.pfl-agenda-when, .pfl-agenda-where { display: grid; gap: 6px; min-width: 0; }
.pfl-agenda-when strong, .pfl-agenda-where a { color: var(--navy); font-weight: 800; }
.pfl-agenda-when span, .pfl-agenda-where span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.pfl-agenda-what { min-width: 0; }
body .pfl-agenda-item h3 { font-family: var(--pfl-body-font-family); font-size: 18px; font-weight: 800; line-height: 1.4; margin: 0; }
.pfl-agenda-level { color: var(--muted); margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
@media (max-width: 1279px) {
  .pfl-agenda .pfl-week-scroll { display: none; }
  .pfl-agenda-list { display: grid; }
}
@media (max-width: 760px) {
  :root { --pfl-heading-hero: clamp(1.625rem, 6.8vw, 2.375rem); --pfl-heading-section: clamp(1.5rem, 5.7vw, 2rem); }
  body .pfl-product-summary .product_title { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  body .hero-cinema .hero-content { padding-top: 150px; }
  body .pfl-number-grid { grid-template-columns: minmax(0,1fr); }
  body .section-heading.split { align-items: flex-start; }
  body .pfl-shop .pfl-shop-category-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body .pfl-shop .pfl-shop-category-nav a.button { padding: 12px !important; font-size: 14px; }
  .pfl-agenda-item { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 18px 0; }
  .pfl-agenda-when { grid-template-columns: max-content minmax(0,1fr); gap: 12px; align-items: baseline; }
  .pfl-agenda-when span { color: var(--navy); font-weight: 600; }
  .pfl-agenda-where { gap: 3px; }
  body .trainer-profile-hero { grid-template-columns: minmax(0,1fr); gap: 30px; }
  body .trainer-profile-copy h1 { margin-top: 8px; }
}
@media (max-width: 380px) {
  body .trainer-grid article { gap: 12px; padding: 18px; }
  body .trainer-grid h3 { font-size: 17px; }
  body .trainer-grid .trainer-photo-link { width: 56px; min-width: 56px; }
  body .trainer-grid .trainer-photo-image { width: 56px; height: 56px; }
  body .trainer-grid .trainer-photo { width: 56px; height: 56px; }
  body .trainer-credentials { padding: 20px; }
  body .trainer-credentials h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 760px) {
  /* Keep long product names readable; only use two cards when both have room. */
  body .pfl-shop .pfl-shop-results ul.products { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
  body .pfl-shop-results ul.products li.product .woocommerce-loop-product__title { font-size: 16px !important; line-height: 1.4; }
}
