/*
 * SarvYoga Mobile Experience v1
 * Responsive, readable, accessible, and intentionally script-free.
 */

:root {
  --sy-reading-width: 72ch;
  --sy-page-gutter: clamp(16px, 4vw, 28px);
  --sy-section-space: clamp(22px, 5vw, 48px);
  --sy-text: #222;
  --sy-muted: #5d646b;
  --sy-link: #9f2f20;
  --sy-focus: #1457d9;
  --sy-surface: #fff;
  --sy-soft-surface: #f7f7f5;
  --sy-border: #deded8;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body.sarvyoga-mobile-experience {
  overflow-x: clip;
  color: var(--sy-text);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.sarvyoga-mobile-experience *,
.sarvyoga-mobile-experience *::before,
.sarvyoga-mobile-experience *::after {
  box-sizing: border-box;
}

.sarvyoga-mobile-experience img,
.sarvyoga-mobile-experience picture,
.sarvyoga-mobile-experience video,
.sarvyoga-mobile-experience canvas,
.sarvyoga-mobile-experience svg {
  max-width: 100%;
  height: auto;
}

.sarvyoga-mobile-experience iframe,
.sarvyoga-mobile-experience embed,
.sarvyoga-mobile-experience object {
  max-width: 100%;
}

.sarvyoga-mobile-experience .entry-content iframe[src*="youtube"],
.sarvyoga-mobile-experience .entry-content iframe[src*="youtu.be"],
.sarvyoga-mobile-experience .entry-content iframe[src*="vimeo"],
.sarvyoga-mobile-experience .fl-builder-content iframe[src*="youtube"],
.sarvyoga-mobile-experience .fl-builder-content iframe[src*="youtu.be"],
.sarvyoga-mobile-experience .fl-builder-content iframe[src*="vimeo"] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.sarvyoga-mobile-experience table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

.sarvyoga-mobile-experience th,
.sarvyoga-mobile-experience td {
  min-width: 110px;
  padding: 10px 12px;
  vertical-align: top;
}

.sarvyoga-mobile-experience pre,
.sarvyoga-mobile-experience code,
.sarvyoga-mobile-experience samp {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

.sarvyoga-mobile-experience pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.sarvyoga-mobile-experience p,
.sarvyoga-mobile-experience li,
.sarvyoga-mobile-experience a,
.sarvyoga-mobile-experience h1,
.sarvyoga-mobile-experience h2,
.sarvyoga-mobile-experience h3,
.sarvyoga-mobile-experience h4,
.sarvyoga-mobile-experience h5,
.sarvyoga-mobile-experience h6 {
  overflow-wrap: anywhere;
}

.sarvyoga-mobile-experience a {
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

.sarvyoga-mobile-experience :focus-visible {
  outline: 3px solid var(--sy-focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.sarvyoga-mobile-experience button,
.sarvyoga-mobile-experience input,
.sarvyoga-mobile-experience select,
.sarvyoga-mobile-experience textarea {
  max-width: 100%;
  font: inherit;
}

.sarvyoga-mobile-experience button,
.sarvyoga-mobile-experience input[type="button"],
.sarvyoga-mobile-experience input[type="submit"],
.sarvyoga-mobile-experience input[type="reset"],
.sarvyoga-mobile-experience .button,
.sarvyoga-mobile-experience .fl-button,
.sarvyoga-mobile-experience .menu-toggle {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

.sarvyoga-mobile-experience input:not([type="checkbox"]):not([type="radio"]),
.sarvyoga-mobile-experience select,
.sarvyoga-mobile-experience textarea {
  min-height: 44px;
  font-size: 16px;
}

/* Article reading experience */
.sarvyoga-mobile-experience.single-post .entry-title,
.sarvyoga-mobile-experience.page .entry-title {
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sarvyoga-mobile-experience.single-post .entry-content {
  font-size: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  line-height: 1.78;
}

.sarvyoga-mobile-experience.single-post .entry-content > p,
.sarvyoga-mobile-experience.single-post .entry-content > ul,
.sarvyoga-mobile-experience.single-post .entry-content > ol,
.sarvyoga-mobile-experience.single-post .entry-content > h2,
.sarvyoga-mobile-experience.single-post .entry-content > h3,
.sarvyoga-mobile-experience.single-post .entry-content > h4,
.sarvyoga-mobile-experience.single-post .entry-content > blockquote {
  width: min(100%, var(--sy-reading-width));
  margin-left: auto;
  margin-right: auto;
}

.sarvyoga-mobile-experience .entry-content h2 {
  margin-top: 1.75em;
  margin-bottom: 0.55em;
  font-size: clamp(1.45rem, 3.7vw, 2.15rem);
  line-height: 1.22;
  text-wrap: balance;
}

.sarvyoga-mobile-experience .entry-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.45em;
  font-size: clamp(1.22rem, 3vw, 1.65rem);
  line-height: 1.28;
  text-wrap: balance;
}

.sarvyoga-mobile-experience .entry-content h4 {
  margin-top: 1.35em;
  margin-bottom: 0.4em;
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
  line-height: 1.32;
}

.sarvyoga-mobile-experience .entry-content p {
  margin-top: 0;
  margin-bottom: 1.15em;
}

.sarvyoga-mobile-experience .entry-content ul,
.sarvyoga-mobile-experience .entry-content ol {
  padding-left: 1.35em;
  margin-bottom: 1.25em;
}

.sarvyoga-mobile-experience .entry-content li + li {
  margin-top: 0.5em;
}

.sarvyoga-mobile-experience .entry-content blockquote {
  margin-top: 1.4em;
  margin-bottom: 1.4em;
  padding: 16px 20px;
  border-left: 4px solid var(--sy-link);
  background: var(--sy-soft-surface);
}

.sarvyoga-mobile-experience .wp-caption,
.sarvyoga-mobile-experience figure {
  max-width: 100%;
}

.sarvyoga-mobile-experience figcaption,
.sarvyoga-mobile-experience .wp-caption-text {
  color: var(--sy-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Astra and common WordPress layout safeguards */
.sarvyoga-mobile-experience .ast-container,
.sarvyoga-mobile-experience .site-content .ast-container {
  max-width: 1240px;
}

.sarvyoga-mobile-experience #primary,
.sarvyoga-mobile-experience #secondary,
.sarvyoga-mobile-experience .site-main,
.sarvyoga-mobile-experience .entry-content {
  min-width: 0;
}

.sarvyoga-mobile-experience .comments-area input,
.sarvyoga-mobile-experience .comments-area textarea {
  width: 100%;
}

/* Beaver Builder safeguards */
.sarvyoga-mobile-experience .fl-builder-content,
.sarvyoga-mobile-experience .fl-row,
.sarvyoga-mobile-experience .fl-row-content,
.sarvyoga-mobile-experience .fl-row-content-wrap,
.sarvyoga-mobile-experience .fl-col-group,
.sarvyoga-mobile-experience .fl-col,
.sarvyoga-mobile-experience .fl-col-content,
.sarvyoga-mobile-experience .fl-module,
.sarvyoga-mobile-experience .fl-module-content {
  min-width: 0;
  max-width: 100%;
}

.sarvyoga-mobile-experience .fl-photo-content,
.sarvyoga-mobile-experience .fl-photo-img {
  max-width: 100%;
}

@media (max-width: 921px) {
  .sarvyoga-mobile-experience .ast-container,
  .sarvyoga-mobile-experience .site-content .ast-container {
    padding-left: var(--sy-page-gutter);
    padding-right: var(--sy-page-gutter);
  }

  .sarvyoga-mobile-experience #primary,
  .sarvyoga-mobile-experience #secondary {
    width: 100%;
    max-width: 100%;
    float: none;
  }

  .sarvyoga-mobile-experience #secondary {
    margin-top: var(--sy-section-space);
  }
}

@media (max-width: 768px) {
  body.sarvyoga-mobile-experience {
    font-size: 16px;
    line-height: 1.68;
  }

  .sarvyoga-mobile-experience .site-content {
    overflow-x: clip;
  }

  .sarvyoga-mobile-experience .fl-builder-content .fl-row-content-wrap {
    padding-left: var(--sy-page-gutter) !important;
    padding-right: var(--sy-page-gutter) !important;
  }

  .sarvyoga-mobile-experience .fl-builder-content .fl-row-content,
  .sarvyoga-mobile-experience .fl-builder-content .fl-col-group {
    width: 100% !important;
    max-width: 100% !important;
  }

  .sarvyoga-mobile-experience .fl-builder-content .fl-col-group {
    display: block !important;
  }

  .sarvyoga-mobile-experience .fl-builder-content .fl-col {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sarvyoga-mobile-experience .fl-builder-content .fl-module-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .sarvyoga-mobile-experience .alignleft,
  .sarvyoga-mobile-experience .alignright {
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .sarvyoga-mobile-experience .main-header-menu .menu-link,
  .sarvyoga-mobile-experience .ast-header-break-point .main-navigation ul .menu-link {
    min-height: 44px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .sarvyoga-mobile-experience .entry-content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .sarvyoga-mobile-experience .entry-content > * {
    max-width: 100%;
  }

  .sarvyoga-mobile-experience .entry-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  :root {
    --sy-page-gutter: 15px;
  }

  .sarvyoga-mobile-experience.single-post .entry-title,
  .sarvyoga-mobile-experience.page .entry-title {
    font-size: clamp(1.7rem, 8.5vw, 2.25rem);
  }

  .sarvyoga-mobile-experience .entry-content h2 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .sarvyoga-mobile-experience .entry-content h3 {
    font-size: clamp(1.18rem, 6vw, 1.45rem);
  }

  .sarvyoga-mobile-experience .entry-content blockquote {
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sarvyoga-mobile-experience *,
  .sarvyoga-mobile-experience *::before,
  .sarvyoga-mobile-experience *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .sarvyoga-mobile-experience .site-header,
  .sarvyoga-mobile-experience .site-footer,
  .sarvyoga-mobile-experience #secondary,
  .sarvyoga-mobile-experience .comments-area {
    display: none !important;
  }

  .sarvyoga-mobile-experience #primary,
  .sarvyoga-mobile-experience .entry-content {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Mobile Experience v1.1: targeted legacy fixed-width safeguards. */
@media (max-width: 768px) {
  body.postid-24775 [style*="width: 1024px"],
  body.postid-24775 [style*="width:1024px"],
  body.postid-24784 [style*="width: 810px"],
  body.postid-24784 [style*="width:810px"],
  body.postid-24793 [style*="width: 854px"],
  body.postid-24793 [style*="width:854px"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.postid-24775 img[width="1024"],
  body.postid-24784 img[width="810"],
  body.postid-24793 img[width="854"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-inline: auto;
  }
}
