/* Phone and tablet corrections. Desktop presentation uses each page's own styles. */
.mobile-menu-toggle { display: none; }
nav[data-generated-mobile-nav] { display: contents; }
.mobile-table-wrap { display: contents; }

@media (max-width: 1000px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { font-size: 16px; }
  body .mobile-readable-text { font-size: 16px !important; line-height: 1.6; }
  body .blog-summary-copy .blog-summary-tags,
  body .tabs .tab,
  body .tab-list .tab { font-size: 16px !important; }
  body :is(p, li, label, small, figcaption, td, th, dd, dt, summary, input, select, textarea) {
    font-size: 16px !important;
    line-height: 1.6;
  }
  body :is(a, button) { font-size: 16px; }
  body button { font-size: 16px !important; }
  body :is(.eyebrow, .card-text, .plain, .mini-cap, .more, .chip, .topic-chip,
    .course-meta, .course-topline, .course-art-note, .testimonial-tag, .testimonial-caption,
    .sector-category, .card-link, .contact-note, .journal-status, .course-motion-toggle,
    .master-trainer-info > span, .credential-copy > span, .pybar-copy small,
    .blog-meta, .blog-category, .blog-readtime, .hero-index, .footer-bottom,
    .journal-footer, .py-footer, .protect-footer, .visual-caption, .visual-topline,
    .stat .l, .tl-date, .ref-link, .meta, .badge) { font-size: 16px !important; }
  body :is(main, section, article, div, form, fieldset, nav, header, footer) { min-width: 0; }
  body :is(p, li, h1, h2, h3, h4, label, a, button, dd, dt, td, th) { overflow-wrap: anywhere; }
  body :is(img, video, canvas, svg, iframe, embed, object) { max-width: 100%; }
  body :is(iframe, embed, object) { width: 100%; }
  body video { height: auto; }
  body :is(button, a, summary, input:not([type=hidden]), select, textarea, [role=button]) {
    min-width: 44px !important;
    min-height: 44px !important;
    touch-action: manipulation;
  }
  body a { display: inline-flex; align-items: center; }
  body :is(button, input, select, textarea) { max-width: 100%; }
  body :is(input[type=checkbox], input[type=radio]) { flex-shrink: 0; margin: 0; }
  body :is(button, summary, .button, .btn, .navcta) { white-space: normal; }
  body summary { align-content: center; }
  body .mobile-table-wrap { display: block; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
  body .mobile-table-wrap table { margin-block: 0; }

  body header[data-mobile-header] { gap: 14px; }
  body header[data-mobile-header] .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    padding: 10px 12px;
    border: 1px solid #77b7a770;
    border-radius: 9px;
    color: #ecfff4;
    background: #13271f;
    line-height: 1.3;
  }
  body header[data-mobile-header] :is(.navcta, .header-contact) { display: none; }
  body header[data-mobile-header] nav.mobile-navigation {
    display: none !important;
    position: fixed;
    inset: var(--mobile-header-bottom, 80px) 0 auto;
    width: 100%;
    max-height: calc(100vh - var(--mobile-header-bottom, 80px));
    max-height: calc(100dvh - var(--mobile-header-bottom, 80px));
    margin: 0;
    padding: 16px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0b1926;
    border-bottom: 1px solid #8be1cf60;
    box-shadow: 0 18px 32px #0005;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    z-index: 100;
  }
  body header[data-mobile-header] nav.mobile-navigation.open { display: flex !important; }
  body header[data-mobile-header] nav.mobile-navigation a {
    align-self: stretch;
    justify-content: flex-start;
    height: auto;
    padding: 10px 12px;
    margin: 0;
    line-height: 1.5;
    font-size: 16px;
    color: #ecfff4;
  }
  body header[data-mobile-header] nav.mobile-navigation .navcta { display: inline-flex; }
  body header[data-mobile-header] nav.mobile-navigation ul { width: 100%; margin: 0; padding: 0; list-style: none; }
  body header[data-mobile-header] nav.mobile-navigation li { margin: 0; }
  body .protect-header[data-mobile-header] { flex-wrap: nowrap; min-height: 80px; padding: 12px 16px; gap: 12px; }
  body .protect-header .icn-brand { width: 72px; height: 44px; }
  body .protect-header .protect-wordmark { font-size: 21px; }
  body.journal header[data-mobile-header] { min-height: 80px; }
  body .site-head .burger { margin-left: auto; }
  body .site-head .nav-cta { white-space: normal; }

  /* Let growing text set height instead of clipping it inside fixed cards. */
  body :is(.service-card, .course-card, .psyber-grid article, .milestone-grid article,
    .sector-card, .testimonial-feature, .contact, .btn, .button, .topic-chip) { height: auto; }
  body :is(.hero-index, .hero-foot, .actions, .dpdp-actions, .contact-actions,
    .journal-filters, .filters, .reel-heading, .footer-bottom) { flex-wrap: wrap; }
  body .storm-hero { overflow: clip; }
  body .course-jumps a { min-width: 0 !important; }
  body .course-jumps { position: static; inset: auto; width: 100%; max-height: none; overflow: visible; grid-template-columns: 1fr; }
  body .testimonial-heading { align-items: flex-start; flex-wrap: wrap; }
  body .testimonial-feature { grid-template-columns: 1fr; }
  body .testimonial-copy { padding: 24px 16px; }
  body .master-trainer-grid { grid-template-columns: 1fr; }
  body .master-trainer-info { padding: 18px; }
  body .master-trainer-info h3 { font-size: 24px; }
  body .hero-sector-icons { display: none; }
  body .hero-footnote span { font-size: 16px; line-height: 1.5; }
  body .hero-visual .visual-topline { display: none; }
  body .visual-steps { bottom: 29%; }
  body .visual-steps span { font-size: 16px; padding: 8px 10px; }
  body .visual-caption { position: absolute; bottom: 10px; left: 20px; right: 20px; font-size: 16px; }
  body .hero-visual { min-height: 340px; }
  body .sector-panel { grid-template-columns: 1fr; }
  body .panel-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body .sector-switcher a { font-size: 16px; }
  body .py-footer, body .journal-footer, body .protect-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
  body .collab-dots { display: flex; gap: 2px; }
  body .collab-dots button { transform: none; }
  body .collab-dots button { display: grid; place-items: center; padding: 0; background: transparent; }
  body .collab-dots button::before { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; transform: none; background: #607b50; }
  body .collab-dots button[aria-pressed=true] { background: transparent; transform: none; }
  body .collab-dots button[aria-pressed=true]::before { background: #a4ff00; }
  body .blog-reader { max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 24px 18px; }
  body .reel-dialog { max-width: calc(100% - 24px); }
  body :is(.reel-dialog, .testimonial-lightbox) img { max-height: 75dvh; object-fit: contain; }
}

@media (max-width: 600px) {
  body .course-jumps { display: grid; grid-template-columns: 1fr; }
  body .course-jumps a { flex-direction: row; gap: 12px; justify-content: space-between; }
  body .course-jumps a span { align-self: auto; font-size: 16px; }
  body #contact .phone { white-space: normal; font-size: clamp(22px, 6vw, 32px); }
  body #services .service-card { padding: 20px; }
  body #services .service-card::before, body #services .service-card > .pixel-reveal-layer { opacity: .14; width: 100%; }
  body #services .service-card > *:not(.pixel-reveal-layer) { position: relative; z-index: 1; }
  body .panel-services { grid-template-columns: 1fr; }
  body .approach-grid { grid-template-columns: 1fr; }
  body .consultation .primary-link { width: 100%; gap: 14px; }
  body .contact-note { max-width: 100%; }
  body .core-shield strong { font-size: 12px; letter-spacing: 1px; }
  body .hero-visual { aspect-ratio: 1; }
  body .master-trainer-card { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  body .master-trainer-photo img { height: 260px; }
  body .psyber-grid, body .footer-top { grid-template-columns: 1fr; }
  body .dpdp-feature-visual figcaption { flex-wrap: wrap; }
  body :is(.stat, .chip, .topic-chip, .btn) { white-space: normal; }
  body .tl-today-note { margin-left: 0; }
  body .brand-name { font-size: 16px; }
}
