/* schwangerwerden.org LIVE 1.0.5 — final UI stabilization.
   Bounded presentation layer only: no model, medical-limit or storage changes. */

/* German editorial headings wrap at words, never by automatic hyphenation or
   ellipsis. Long body tokens keep the separate legal-page escape hatch from
   the proven v1.0.3 layer. */
.sw-app-page :where(h1, h2, h3, h4, h5, h6),
.sw-app-page :where(.heading-long, .heading-very-long) {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow: visible;
  overflow-wrap: normal !important;
  word-break: normal !important;
  -webkit-hyphens: none !important;
  hyphens: none !important;
  text-overflow: clip !important;
  white-space: normal;
}

.sw-app-page :where(.heading-long) {
  font-size: clamp(2.15rem, 6vw, 4.8rem);
}

.sw-app-page :where(.heading-very-long) {
  font-size: clamp(1.95rem, 5.3vw, 4rem);
}

/* Long German compounds in supporting copy may use an unhyphenated emergency
   wrap instead of widening their card. Editorial headings remain word-bound
   and are sized explicitly at the small breakpoints below. */
.sw-app-page :where(p, li) {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

/* Every ancestor in a data-entry chain is explicitly shrinkable. This is the
   WebKit containment contract for 320–430 px rather than a screenshot-only fix. */
.sw-app-page :where(
  form,
  fieldset,
  label,
  .field-group,
  .v2-field-row,
  .v2-input-suffix,
  .two-fields,
  .pc-event,
  .pc-field,
  .pc-field-grid,
  .v2-add-period,
  .v2-add-period > div,
  .body-signal-entry-section,
  .body-signal-input-panel,
  .body-temperature-panel,
  .body-temperature-rows,
  .body-temperature-row
) {
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
  max-inline-size: 100%;
}

.sw-app-page :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea
) {
  display: block;
  box-sizing: border-box !important;
  inline-size: 100% !important;
  width: 100% !important;
  min-inline-size: 0 !important;
  min-width: 0 !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  font-size: 16px !important;
}

.sw-app-page :where(input[type="date"], input[type="time"]) {
  display: block;
  box-sizing: border-box !important;
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
}

.sw-app-page :where(input[type="date"], input[type="time"])::-webkit-date-and-time-value {
  min-height: 1.4em;
  text-align: left;
}

/* The back action remains a proper 44 px target but is visually secondary to
   the owner-approved logo. */
.sw-site-header .sw-header-action {
  min-height: 44px;
  padding: 7px 10px;
  border-color: rgba(62, 91, 83, 0.14);
  background: transparent;
  box-shadow: none;
  color: var(--rc-primary, #3e5b53);
  font-weight: 680;
}

/* Product differentiation is one calm editorial group, not four new cards. */
.sw-difference-block {
  margin-top: clamp(24px, 4vw, 42px);
  padding-block: clamp(20px, 3vw, 30px);
  border-block: 1px solid var(--v2-line, rgba(62, 91, 83, 0.16));
}

.sw-difference-eyebrow {
  margin: 0 0 7px;
  color: var(--v2-sage, #526d64);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sw-difference-block h2 {
  margin: 0;
  color: var(--v2-ink, #303735);
  font-family: var(--v2-serif, Georgia, serif);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.sw-difference-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.sw-difference-list li {
  position: relative;
  padding-left: 18px;
  color: var(--v2-ink, #303735);
  line-height: 1.48;
}

.sw-difference-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v2-sage, #82988c);
  content: "";
}

.sw-difference-footer {
  margin: 16px 0 0;
  color: var(--v2-muted, #626b68);
  font-size: 14px;
  line-height: 1.45;
}

/* The three approved couple statements form one short reading sequence, not
   three competing columns. This also keeps every sentence inside 320 px. */
.v2-equal-note {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.v2-equal-note :where(strong, span, small) {
  display: block;
  width: 100%;
  min-width: 0;
}

/* Calculation transparency is closed by default and reads as an explanatory
   divider. Inner basis groups use rhythm and rules instead of nested cards. */
.sw-result-method {
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-block: 1px solid rgba(62, 91, 83, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sw-result-method > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 2px;
  color: var(--v2-sage, #3e5b53);
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

.sw-result-method > summary::-webkit-details-marker {
  display: none;
}

.sw-result-method > summary::after {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  content: "+";
}

.sw-result-method[open] > summary::after {
  content: "−";
}

.sw-result-method :where(.v2-result-basis, .v2-data-foundation, .result-signal-basis) {
  margin: 0;
  padding: 2px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sw-result-method .signal-basis-group {
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid rgba(62, 91, 83, 0.12);
  border-radius: 0;
  background: transparent;
}

.sw-result-method-separate {
  margin: 0 0 14px;
  color: var(--v2-muted, #626b68);
  font-size: 14px;
  line-height: 1.5;
}

/* Shared close: one quiet panel with at most three statements. */
.sw-page-takeaways,
.sw-closing-takeaways {
  margin-top: clamp(30px, 6vw, 64px);
  margin-bottom: clamp(28px, 5vw, 54px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(62, 91, 83, 0.16);
  border-radius: 18px;
  background: rgba(224, 232, 225, 0.38);
  box-shadow: none;
}

.sw-page-takeaways > div {
  min-width: 0;
}

.sw-page-takeaways h2,
.sw-closing-takeaways h2 {
  max-width: 24ch;
  margin: 0;
  color: var(--v2-ink, #303735);
  font-family: var(--v2-serif, Georgia, serif);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.sw-page-takeaways ul,
.sw-closing-takeaways ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.sw-page-takeaways li,
.sw-closing-takeaways li {
  position: relative;
  margin: 0;
  padding-left: 20px;
  color: var(--v2-ink, #303735);
  line-height: 1.5;
}

.sw-page-takeaways li::before,
.sw-closing-takeaways li::before {
  position: absolute;
  top: 0.63em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v2-sage, #82988c);
  content: "";
}

/* One disclosure per signal. Its four internal sections are plain document
   sections in the required order; no nested accordion or dual-purpose control. */
.body-signal-info-body {
  padding-top: 0;
  border-top: 0;
}

.body-signal-info-body section + section {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(70, 91, 84, 0.13);
}

.body-signal-info-body .body-signal-input-panel,
.body-signal-info-body .body-temperature-panel {
  margin-top: 7px;
  padding: 0;
  border: 0;
}

.body-signal-info-body .body-signal-default-copy {
  margin-bottom: 8px;
  color: var(--graphite, #303735);
  font-weight: 650;
}

.body-mucus-compare-intro {
  margin-bottom: 12px !important;
}

/* Premium material comparison: every sample is large, landscape and paired
   with the same three reading dimensions. */
.body-mucus-visual-sequence {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 !important;
  border: 1px solid rgba(70, 91, 84, 0.15);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.58);
  list-style: none;
}

.body-mucus-visual-sequence > li {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.body-mucus-visual-sequence > li + li {
  border-top: 1px solid rgba(70, 91, 84, 0.13);
  border-left: 0;
}

.body-mucus-state-art {
  display: block;
  grid-row: auto !important;
  inline-size: 136px !important;
  width: 136px !important;
  max-inline-size: 100%;
  aspect-ratio: 5 / 3;
  object-fit: contain;
}

.body-mucus-visual-sequence > li > div {
  min-width: 0;
}

.body-mucus-visual-sequence strong {
  display: block;
  margin-bottom: 5px;
  color: var(--graphite, #303735);
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: normal;
  hyphens: none;
}

.body-mucus-features {
  display: grid;
  gap: 2px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.body-mucus-features li {
  position: relative;
  margin: 0;
  padding-left: 13px;
  color: var(--muted, #626b68);
  font-size: 13px;
  line-height: 1.38;
}

.body-mucus-features li::before {
  position: absolute;
  top: 0.65em;
  left: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage, #82988c);
  content: "";
}

.body-finger-check {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(109, 72, 98, 0.12);
  border-radius: 16px;
  background: rgba(238, 225, 221, 0.38);
}

.body-finger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(70, 91, 84, 0.13);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.7);
}

.body-finger-grid article {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-content: start;
  justify-items: stretch;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.body-finger-grid article + article {
  border-left: 1px solid rgba(70, 91, 84, 0.13);
}

.body-finger-art,
.body-finger-grid article img {
  display: block;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 280px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.body-finger-grid :where(strong, span) {
  width: 100%;
  overflow-wrap: normal;
  hyphens: none;
}

/* Evidence is one grouped surface on small screens. Dividers communicate the
   list; repeated card shadows and radii do not. */
@media (max-width: 700px) {
  .v2-evidence-grid {
    display: block;
    overflow: hidden;
    border: 1px solid var(--v2-line, rgba(62, 91, 83, 0.16));
    border-radius: 16px;
    background: var(--v2-paper, #fffdf8);
  }

  .v2-evidence-grid > article {
    margin: 0;
    padding: 18px 15px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .v2-evidence-grid > article + article {
    border-top: 1px solid var(--v2-line, rgba(62, 91, 83, 0.16));
  }

  .v2-evidence-key {
    gap: 0;
  }

  .v2-evidence-key p + .v2-evidence-badge {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--v2-line, rgba(62, 91, 83, 0.12));
  }
}

/* Legal routes are static reading surfaces, not cards inside a product form. */
.sw-app-legal-content {
  border: 0;
  border-block: 1px solid rgba(62, 91, 83, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sw-app-legal-content h2 {
  max-width: 100%;
}

/* The three-way controls stay legible without breaking their labels. */
.sw-app-page :where(.v2-tab-list button, .fs-switcher button) {
  min-width: 0;
  overflow: visible;
  overflow-wrap: normal;
  hyphens: none;
  text-overflow: clip;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .sw-difference-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .sw-app-page .v2-evidence-intro h1 {
    font-size: clamp(2rem, 4.4vw, 2.25rem);
    line-height: 1.04;
  }
}

@media (max-width: 720px) {
  .sw-app-page :where(
    .v2-hero-copy h1,
    .v2-choice-main h1,
    .v2-journal-heading h1,
    .v2-trying-intro h1,
    .v2-age-hero-copy h1,
    .v2-evidence-intro h1,
    .pc-page .pc-intro h1,
    .fs-entry-copy h1
  ) {
    font-size: clamp(2.28rem, 11.2vw, 3.28rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
  }

  .sw-app-page .heading-long {
    font-size: clamp(2.05rem, 9.8vw, 2.85rem);
  }

  .sw-app-page .heading-very-long {
    font-size: clamp(1.82rem, 8.7vw, 2.5rem);
  }

  .sw-difference-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .body-mucus-visual-sequence > li {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 12px;
    padding: 13px 10px;
  }

  .body-mucus-state-art,
  .body-mucus-visual-sequence > li img {
    grid-row: auto !important;
    inline-size: 104px !important;
    width: 104px !important;
  }

  .body-mucus-features li {
    font-size: 13px !important;
    line-height: 1.34 !important;
  }

  .body-finger-check {
    padding: 15px 11px;
  }

  .body-finger-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .body-finger-grid article {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 15px 4px;
  }

  .body-finger-grid article + article {
    border-top: 1px solid rgba(70, 91, 84, 0.13);
    border-left: 0;
  }

  .body-finger-art,
  .body-finger-grid article img {
    width: min(100%, 280px) !important;
  }

  .sw-page-takeaways,
  .sw-closing-takeaways {
    padding: 20px 17px;
    border-radius: 16px;
  }
}

@media (max-width: 430px) {
  .sw-app-page :where(
    .v2-age-content .heading-very-long,
    .v2-age-distinction > h2
  ) {
    font-size: clamp(1.5rem, 6.6vw, 1.75rem) !important;
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .sw-app-page :where(
    .pc-field-grid,
    .two-fields,
    .v2-trying-primary-grid,
    .v2-trying-detail-grid,
    .body-temperature-row,
    .v2-add-period
  ) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sw-app-page .body-temperature-row [data-remove-temperature] {
    width: 100%;
    max-width: 100%;
  }

  .sw-app-page :where(
    .pc-page .pc-view:not([hidden]) form:not([hidden]) > .pc-primary-action,
    .v2-concern-card form:not([hidden]) > .v2-submit,
    .v2-trying-card form:not([hidden]) > .v2-submit
  ) {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    margin-top: 18px;
    box-shadow: none !important;
  }

  .sw-site-header-inner {
    gap: 7px;
  }

  .sw-site-header .sw-header-action {
    max-width: 128px;
    padding-inline: 7px;
    font-size: 12.5px;
    line-height: 1.15;
  }
}

@media (max-width: 360px) {
  .sw-app-page .v2-evidence-grid h2 {
    font-size: 1rem;
    letter-spacing: -0.02em;
  }

  .body-mucus-visual-sequence > li {
    grid-template-columns: 90px minmax(0, 1fr) !important;
    gap: 9px;
    padding-inline: 8px;
  }

  .body-mucus-state-art,
  .body-mucus-visual-sequence > li img {
    inline-size: 90px !important;
    width: 90px !important;
  }

  .body-mucus-features li {
    padding-left: 11px;
    font-size: 12px !important;
  }

  .sw-app-page :where(.v2-tab-list button, .fs-switcher button) {
    padding-inline: 2px;
    font-size: 12.5px;
  }
}
