/* Shared pregnancy calculator, results and guides. */
body.pregnancy-tool {
  background:var(--site-canvas);
  color:var(--pro-ink);
}

body.pregnancy-tool .pd-shell {
  max-width:1200px;
  width:calc(100% - 32px);
  margin:clamp(16px,2vw,24px) auto 48px;
  padding:clamp(16px,2.4vw,34px);
  background:var(--pro-card);
  border:1px solid var(--pro-border);
  border-radius:26px;
  box-shadow:var(--pro-shadow);
}

.pd-crumb {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:.85rem;
  color:var(--pro-muted);
}

.pd-crumb a,.pd-related a {
  color:var(--pro-emerald);
  font-weight:700;
}

.pd-hero {
  margin:clamp(14px,2vw,24px) 0 22px;
  padding-block-end:18px;
  border-block-end:1px solid var(--pro-border);
}

.pd-hero h1 {
  margin:0 0 8px;
  color:var(--pro-forest);
  font-size:clamp(1.65rem,3vw,2.45rem);
  line-height:1.24;
}

.pd-hero p {
  max-inline-size:70ch;
  margin:0;
  color:var(--pro-muted);
  font-size:.98rem;
  line-height:1.65;
}

.pd-grid {
  display:grid;
  grid-template-columns:minmax(0,1.07fr) minmax(0,1fr);
  align-items:start;
  gap:clamp(16px,2vw,22px);
}

.pd-card {
  border-radius:20px;
  padding:clamp(17px,2.15vw,26px);
  min-width:0;
}

.pd-card h2 {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:clamp(1.2rem,2.1vw,1.5rem);
  margin:0 0 15px;
}

.pd-card h2 i {
  display:grid;
  place-items:center;
  flex:none;
  width:42px;
  height:42px;
  border-radius:13px;
  background:var(--pro-mint);
  color:var(--pro-emerald);
  font-size:1.15rem;
}

.pd-input {
  background:linear-gradient(155deg,#075743,#064436);
  color:#fff;
  box-shadow:0 14px 36px rgba(5,70,54,.13);
}

.pd-input h2 {color:#fff;}
.pd-input h2 i {background:rgba(255,255,255,.13);color:#f8da8a;}

.pd-input :is(input,select) {
  display:block;
  width:100%;
  max-width:100%;
  min-height:54px;
  padding:10px 13px;
  border:1px solid #d5e6df;
  border-radius:13px;
  background:#fff;
  color:#153d33;
  color-scheme:light;
  font:inherit;
  font-size:1rem;
}

body.dark-mode .pd-input :is(input,select) {
  background:var(--site-canvas);
  border-color:var(--site-line);
  color:var(--site-text);
  color-scheme:dark;
}

.pd-label {
  display:block;
  margin:14px 0 7px;
  font-size:.92rem;
  font-weight:750;
}

.pd-help,.pd-privacy {
  margin:8px 0 0;
  font-size:.86rem;
  line-height:1.6;
  color:#e1f0e9;
}
.pd-privacy {margin-block-start:14px;}

.pd-submit {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  min-height:54px;
  margin-block-start:16px;
  padding:10px 15px;
  background:linear-gradient(105deg,#f7db9c,#e5b96c);
  border:0;
  border-radius:13px;
  color:#114638;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.pd-submit:hover {filter:brightness(1.05);}

.pd-error {
  margin:13px 0 0;
  padding:10px 12px;
  border-radius:10px;
  background:#fff2e7;
  color:#732806;
  font-weight:650;
  scroll-margin-top:96px;
}

.pd-result {border:1px solid var(--pro-border);background:var(--pro-card);}
.pd-result h2 {color:var(--pro-forest);}
.pd-empty {
  margin:0;
  padding:15px;
  color:var(--pro-ink);
  background:var(--pro-mint);
  border-radius:13px;
}

.pd-primary {padding:20px;border-radius:17px;background:var(--pro-mint);}
.pd-primary strong {
  font-size:clamp(1.4rem,2.6vw,2rem);
  line-height:1.3;
  color:var(--pro-forest);
  overflow-wrap:anywhere;
}

.pd-metrics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin:14px 0 22px;
}

.pd-metrics > div {
  display:grid;
  align-content:start;
  gap:6px;
  padding:12px;
  border:1px solid var(--pro-border);
  border-radius:12px;
  overflow-wrap:anywhere;
}

.pd-metrics span {color:var(--pro-muted);font-size:.86rem;}
.pd-metrics strong {color:var(--pro-forest);font-size:1.1rem;}

.pd-timeline-head,.pd-stages {display:flex;justify-content:space-between;gap:8px;}
.pd-timeline-head {font-weight:750;font-size:.9rem;}
.pd-stages {color:var(--pro-muted);font-size:.78rem;}
.pd-bar {
  height:10px;
  margin:9px 0;
  border-radius:999px;
  background:var(--pro-mint);
  overflow:hidden;
}
.pd-bar > div {
  height:100%;
  width:0;
  border-radius:inherit;
  background:linear-gradient(90deg,#137555,#d5a54c);
  transition:width .6s ease;
}
[dir="rtl"] .pd-bar > div {background:linear-gradient(270deg,#137555,#d5a54c);}

.pd-actions {display:flex;flex-wrap:wrap;gap:8px;margin-block-start:18px;}
.pd-secondary {
  flex:1 1 9rem;
  min-height:46px;
  padding:8px 12px;
  color:var(--pro-forest);
  background:var(--pro-card);
  border:1px solid var(--pro-border);
  border-radius:12px;
  font:inherit;
  font-weight:750;
  cursor:pointer;
}
.pd-secondary:first-child,.pd-secondary:hover {background:var(--pro-mint);}

.pd-note,.pd-footnote {color:var(--pro-muted);line-height:1.65;font-size:.86rem;}
.pd-note {margin:14px 0 0;}
.pd-guide,.pd-faq {margin-block-start:30px;}
.pd-guide h2,.pd-faq h2 {
  font-size:clamp(1.3rem,2.3vw,1.8rem);
  color:var(--pro-forest);
}
.pd-guide-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px 24px;
  padding-inline-start:1.25rem;
  color:var(--pro-muted);
  line-height:1.7;
}
.pd-guide-grid li::marker {color:var(--pro-emerald);}
.pd-faq details {border:1px solid var(--pro-border);border-radius:13px;margin:12px 0;padding:14px 16px;}
.pd-faq summary {cursor:pointer;color:var(--pro-forest);font-weight:750;}
.pd-faq details p {color:var(--pro-muted);line-height:1.75;}
.pd-related {margin-block-start:24px;}
.pregnancy-tool #pd-result {scroll-margin-top:96px;}

@media(max-width:800px) {
  .pd-grid,.pd-guide-grid {grid-template-columns:1fr;}
  body.pregnancy-tool .pd-shell {width:calc(100% - 20px);padding:15px;border-radius:19px;}
}

@media(max-width:520px) {
  .pd-hero {margin:14px 0 16px;padding-block-end:13px;}
  .pd-metrics {grid-template-columns:1fr 1fr;}
  .pd-metrics > div:last-child {grid-column:1/-1;}
}

@media(prefers-reduced-motion:reduce) {
  .pd-bar > div {transition:none;}
}
