/* Mountain Pose guide. Load after the shared preview styles. */
#iphone-guide {
  --guide-ink: #243c32;
  --guide-muted: #52635a;
  --guide-paper: #fff;
  --guide-tile: #f9fcfa;
  --guide-selected: #d9eee3;
  --guide-edge: #abcbbd;
  --guide-green: #235d47;
}
html[data-preview-theme=dark] #iphone-guide {
  --guide-ink: #f2f8f4;
  --guide-muted: #d2e1d8;
  --guide-paper: #203e32;
  --guide-tile: #274b3b;
  --guide-selected: #426e57;
  --guide-edge: #7fa991;
  --guide-green: #c6e9d5;
}

html[data-preview-theme] #iphone-guide[data-guide-demo] .iphone-screen {
  background: #124b38 !important;
  background-image: linear-gradient(140deg, #589b797d, #073b2bdb), var(--ys-green-texture) !important;
  background-size: 100% 100%, 800% auto !important;
  background-position: center, left top !important;
  color: #fff !important;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ysb-ios-status-bar {
  color: #fff;
  background: transparent;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ysb-ios-battery {
  box-shadow: inset 0 0 0 1px #285d46;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .iphone-content {
  padding: 3cqw 3.5cqw 0;
  background: transparent !important;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-overview {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent !important;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .iphone-screen .ypd-intro-card {
  flex: none;
  padding: 1cqw 1cqw 3.5cqw;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23cqw;
  align-items: center;
  gap: 3cqw;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-intro > div {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-intro img {
  grid-column: 2;
  grid-row: 1;
  width: 23cqw;
  height: 23cqw;
  object-fit: contain;
  border-radius: 3cqw;
  box-shadow: 0 1px 0 #ffffff26;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .iphone-screen .ypd-intro h3 {
  margin: 0 0 1.8cqw;
  color: #fff !important;
  font-size: clamp(20px, 6.8cqw, 24px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.035em;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .iphone-screen .ypd-sanskrit {
  margin: 0 !important;
  color: #d5eadc !important;
  font-size: clamp(12px, 4cqw, 14px) !important;
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .iphone-screen .ypd-summary {
  display: block;
  margin: 3cqw 0 !important;
  color: #f4faf6 !important;
  font-size: clamp(12px, 3.65cqw, 13px) !important;
  line-height: 1.5 !important;
  letter-spacing: -.005em;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3cqw;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-facts span {
  padding: 1cqw 2.2cqw;
  border: 1px solid #cce9d833;
  border-radius: 10cqw;
  background: #ffffff10;
  color: #f2faf5;
  font-size: clamp(10.5px, 3.2cqw, 11.5px);
  line-height: 1.2;
  white-space: nowrap;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-topic-area {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  height: auto;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-topics {
  display: grid;
  flex: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7cqw;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-topics li {
  min-width: 0;
  min-height: 20cqw;
  padding: 0;
  border: 1px solid transparent !important;
  border-radius: 3cqw;
  background: var(--guide-tile) !important;
  color: var(--guide-ink) !important;
  box-shadow: none;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-topic-display {
  width: 100%;
  min-height: 20cqw;
  padding: 2cqw 1cqw;
  gap: 1.2cqw;
  color: var(--guide-ink) !important;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-topics svg {
  width: 6cqw;
  height: 6cqw;
  color: var(--guide-green) !important;
  stroke-width: 1.7;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-topics span {
  max-width: 100%;
  color: var(--guide-ink) !important;
  font-size: clamp(10.5px, 3.15cqw, 11.5px);
  font-weight: 500;
  line-height: 1.22;
  overflow-wrap: normal;
  hyphens: manual;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-topics li.is-demo-active {
  background: var(--guide-selected) !important;
  border-color: var(--guide-edge) !important;
  box-shadow: inset 0 0 0 1px var(--guide-edge);
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .guide-demo-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: auto;
  margin: 2.4cqw -3.5cqw 0;
  padding: 3.5cqw 4.5cqw 0;
  border: 0 !important;
  border-radius: 4cqw 4cqw 0 0 !important;
  background: var(--guide-paper) !important;
  color: var(--guide-ink) !important;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .guide-demo-panel-header {
  gap: 2cqw;
  margin-bottom: 2.5cqw;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .iphone-screen .guide-demo-title {
  margin: 0;
  color: var(--guide-ink) !important;
  font-size: clamp(13px, 4.2cqw, 15px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .guide-demo-toggle {
  width: 8.5cqw;
  height: 8.5cqw;
  min-width: 27px;
  min-height: 27px;
  background: var(--guide-selected) !important;
  color: var(--guide-green) !important;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .iphone-screen .guide-demo-copy {
  color: var(--guide-muted) !important;
  font-size: clamp(12px, 3.65cqw, 13px);
  line-height: 1.55;
  -webkit-mask-image: linear-gradient(#000 0%, #000 91%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 91%, transparent 100%);
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .guide-demo-copy ul {
  padding-left: 4.5cqw;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .guide-demo-copy li {
  margin: 0 0 2.8cqw;
  padding-left: .8cqw;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .guide-demo-copy li::marker {
  color: var(--guide-green);
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ysb-app-nav {
  background: var(--guide-paper) !important;
  padding-top: 1.5cqw !important;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ysb-app-nav button {
  color: var(--guide-muted) !important;
  font-size: 3cqw !important;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .ysb-app-nav button[aria-pressed=true] {
  color: var(--guide-green) !important;
}
html[data-preview-theme] #iphone-guide[data-guide-demo] .guide-demo-toggle:focus-visible {
  outline: 2px solid var(--guide-green);
  outline-offset: 2px;
}
/* Preserve legibility when the fixed device is shown on a narrow phone. */
@container (max-width: 285px) {
  html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-intro {
    grid-template-columns: minmax(0, 1fr) 22cqw;
  }
  html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-intro img {
    width: 22cqw;
    height: 22cqw;
  }
  html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-topics li,
  html[data-preview-theme] #iphone-guide[data-guide-demo] .ypd-topic-display {
    min-height: 22cqw;
  }
}
