/**
 * Yoga studio name generator — isolated from blog / Utouch theme styles.
 * Loaded only on the name-ideas article (injected via yoga-name-generator.ts).
 */

/* Box model + font baseline inside widget */
.yng-section {
  margin: 2rem 0;
}

.yng-section__title {
  margin: 0 0 0.65rem;
}

.yng-section__intro {
  margin: 0 0 1rem;
  color: #334155;
}

.yng-section__next {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid #1dbb99;
  background: #f0fdfa;
  color: #334155;
}

.yng-section__next a {
  color: #14856f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yng,
.yng *,
.yng *::before,
.yng *::after {
  box-sizing: border-box;
}

.yng {
  font-family: Ubuntu, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  margin: 1rem 0 0;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  background: linear-gradient(180deg, #f7fffe 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.yng__title {
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
}

.yng__lead {
  margin: 0 0 1.25rem;
  color: #334155;
  font-size: 1rem;
  line-height: 1.5;
}

.yng__controls {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.yng__field {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 14rem;
  max-width: 100%;
  -webkit-flex: 1 1 14rem;
  flex: 1 1 14rem;
}

.yng__field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
}

.yng__optional {
  font-weight: 400;
  color: #64748b;
}

.yng__field input[type="text"] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
  font-size: 16px; /* prevents iOS Safari zoom-on-focus */
  line-height: 1.4;
  color: #0f172a;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.yng__field input[type="text"]:focus {
  outline: 2px solid #1dbb99;
  outline-offset: 1px;
  border-color: #1dbb99;
}

.yng__check {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #334155;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  padding: 0.35rem 0;
  margin: 0;
}

.yng__check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  accent-color: #1dbb99;
  cursor: pointer;
}

.yng__btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.5rem;
  margin: 0;
  border: none;
  border-radius: 9999px;
  background: #1dbb99;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(29, 187, 153, 0.35);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.yng__btn:hover:not(:disabled) {
  background: #17a885;
  box-shadow: 0 3px 12px rgba(29, 187, 153, 0.4);
}

.yng__btn:focus {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.yng__btn:focus:not(:focus-visible) {
  outline: none;
}

.yng__btn:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.yng__btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.yng__status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #64748b;
}

.yng__results {
  margin-top: 1.25rem;
}

.yng__results[hidden] {
  display: none !important;
}

.yng__results-title {
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
}

.yng__hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
}

.yng__list {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.yng__list > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.yng__list > li::marker {
  content: none !important;
  display: none !important;
}

.yng__chip {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.yng__chip:hover {
  border-color: #1dbb99;
  background: #f0fdfa;
}

.yng__chip:focus {
  outline: 2px solid #1dbb99;
  outline-offset: 2px;
}

.yng__chip:focus:not(:focus-visible) {
  outline: none;
}

.yng__chip:focus-visible {
  outline: 2px solid #1dbb99;
  outline-offset: 2px;
}

.yng__chip--copied {
  border-color: #1dbb99;
  background: #f0fdfa;
  color: #17a885;
}

/* Override blog article list styles (disc bullets + left padding) */
.single-post .post__content .yng ul.yng__list,
.single-post .post-standard-details .post__content .yng ul.yng__list,
.single-post .post__content .yng .yng__list,
.single-post .post-standard-details .post__content .yng .yng__list {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.single-post .post__content .yng .yng__list > li,
.single-post .post-standard-details .post__content .yng .yng__list > li {
  list-style: none !important;
  list-style-type: none !important;
  margin-bottom: 0 !important;
  padding-left: 0 !important;
}

.single-post .post__content .yng .yng__list > li::before,
.single-post .post-standard-details .post__content .yng .yng__list > li::before {
  content: none !important;
  display: none !important;
}

/* Keep theme from restyling widget buttons / inputs */
.single-post .post__content .yng .yng__btn,
.single-post .post__content .yng .yng__chip,
.single-post .post-standard-details .post__content .yng .yng__btn,
.single-post .post-standard-details .post__content .yng .yng__chip {
  max-width: 100%;
  text-transform: none;
  letter-spacing: normal;
}

.single-post .post__content .yng h3.yng__title,
.single-post .post__content .yng h4.yng__results-title,
.single-post .post-standard-details .post__content .yng h3.yng__title,
.single-post .post-standard-details .post__content .yng h4.yng__results-title {
  text-align: left;
}

/* Flex gap fallback for older Safari (< 14.1) */
@supports not (gap: 0.5rem) {
  .yng__controls > * {
    margin: 0 1.5rem 1rem 0;
  }

  .yng__list > li {
    margin: 0 0.5rem 0.5rem 0 !important;
  }
}

@media (max-width: 768px) {
  .yng-section {
    margin: 1.5rem 0;
  }

  .yng-section__title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .yng-section__intro {
    font-size: 1rem;
    line-height: 1.55;
  }

  .yng {
    margin: 0.85rem 0 0;
    padding: 1.15rem;
    border-radius: 12px;
  }

  .yng__title {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .yng__lead {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .yng__controls {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: stretch;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1rem;
  }

  .yng__field {
    min-width: 0;
    width: 100%;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
  }

  .yng__check {
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 0;
  }

  .yng__btn {
    width: 100% !important;
    max-width: 100%;
    min-height: 48px;
    font-size: 1.05rem;
  }

  .single-post .post__content .yng .yng__btn,
  .single-post .post-standard-details .post__content .yng .yng__btn {
    width: 100% !important;
    max-width: 100%;
    display: -webkit-flex;
    display: flex;
  }

  .yng__status {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .yng__results-title {
    font-size: 1rem;
  }

  .yng__hint {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .yng__list {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 0.45rem;
  }

  .yng__list > li {
    width: 100%;
    max-width: 100%;
  }

  .yng__chip {
    width: 100% !important;
    max-width: 100%;
    min-height: 48px;
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
    border-radius: 12px;
  }

  .single-post .post__content .yng .yng__chip,
  .single-post .post-standard-details .post__content .yng .yng__chip {
    width: 100% !important;
    max-width: 100%;
    display: -webkit-flex;
    display: flex;
  }
}
