/* =========================================================
   BellyDay — Pregnancy due date calculator
   Page-scoped layer: deeper surface, finer rules, 3D result stage.
   Loads after /assets/site.css.
   ========================================================= */

body.pd {
  /* Darker muted ink than the shared token: 11–12px hints must clear 4.5:1. */
  --ink-55: rgba(44, 27, 42, 0.68);
  background:
    radial-gradient(circle at 8% -6%, rgba(224, 138, 95, 0.14), transparent 40%),
    radial-gradient(circle at 98% 4%, rgba(184, 69, 95, 0.09), transparent 34%),
    var(--bone);
}

/* ---------- Trust strip ---------- */

.truststrip {
  background: var(--ink);
  color: var(--panel-ink);
  font-size: 11.5px;
  letter-spacing: 0.005em;
}

.truststrip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding: 6px 0;
}

.truststrip__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.35;
  color: var(--panel-muted);
}

.truststrip__item svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--panel-apricot);
}

.truststrip__item--date {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: rgba(253, 245, 236, 0.55);
  white-space: nowrap;
}

/* ---------- Breadcrumb ---------- */

.crumbs {
  margin-top: 18px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 0;
  list-style: none;
  font-size: 11.5px;
  color: var(--ink-55);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--ink-38);
}

.crumbs a {
  color: var(--ink-70);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.crumbs a:hover {
  border-color: var(--rose);
  color: var(--ink);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Compact hero ---------- */

.pd .hero {
  padding: clamp(24px, 3.4vw, 40px) 0 clamp(20px, 2.4vw, 26px);
}

.pd .hero h1 {
  max-width: 20ch;
  margin-top: 10px;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 0.98;
}

.pd .hero__lede {
  max-width: 70ch;
  margin-top: 14px;
  font-size: clamp(14.5px, 1.35vw, 16.5px);
  line-height: 1.58;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rose);
}

.hero__meta time {
  font-variant-numeric: tabular-nums;
}

/* ---------- Tool shell ---------- */

.pd-tool {
  align-items: stretch;
  scroll-margin-top: 16px;
}

.pd .panel--form {
  padding: clamp(20px, 2.4vw, 28px);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 rgba(44, 27, 42, 0.07);
}

.form-head {
  margin-bottom: 18px;
}

.form-head__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.form-head__sub {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-55);
}

/* ---------- Method tabs ---------- */

.pd .methods {
  margin-bottom: 20px;
}

.pd .method-list {
  gap: 0;
  border-color: var(--line-strong);
  background: var(--bone-deep);
}

.pd .method label {
  flex-direction: column;
  gap: 5px;
  min-height: 62px;
  padding: 9px 5px 8px;
  font-size: 11px;
  letter-spacing: 0.005em;
  line-height: 1.2;
}

.pd .method label svg {
  width: 19px;
  height: 19px;
  color: var(--ink-55);
  transition: color 0.15s ease;
}

.pd .method label:hover {
  background: var(--rose-tint);
}

.pd .method label:hover svg {
  color: var(--rose-deep);
}

.pd .method input:checked + label {
  background: var(--ink);
  color: var(--bone);
  box-shadow: inset 0 -2px 0 var(--panel-rose);
}

.pd .method input:checked + label svg {
  color: var(--panel-rose);
}

/* ---------- Fields ---------- */

.pd .method-panel {
  margin-bottom: 20px;
}

.pd .form-grid {
  gap: 16px 14px;
}

.pd .field > label {
  font-size: 12px;
  letter-spacing: 0.01em;
}

.pd .field__control {
  height: 52px;
  background: #fffdf9;
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(44, 27, 42, 0.03);
}

.pd .field__control:hover {
  border-color: var(--ink-70);
}

.pd .field__control:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(184, 69, 95, 0.14);
}

.pd .field__control[data-invalid="true"] {
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(184, 69, 95, 0.12);
}

.pd .field__control input,
.pd .field__control select {
  font-size: 15.5px;
}

.pd .field__hint {
  font-size: 11.5px;
  line-height: 1.45;
}

.pd .field__error {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--rose-deep);
}

.pd .field__error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--rose-deep);
  color: var(--bone);
  font-size: 9px;
  font-weight: 700;
}

.pd .field__error[hidden] {
  display: none;
}

.method-note {
  margin-top: 2px;
  padding: 12px 14px;
  border-left: 2px solid var(--rose);
  background: linear-gradient(90deg, rgba(184, 69, 95, 0.07), rgba(184, 69, 95, 0.015));
}

.method-note__kicker {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.method-note__body {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-70);
}

.pd .form-extra {
  margin-top: auto;
  padding-top: 14px;
}

.pd .form-extra p:last-child {
  font-size: 12px;
}

.pd .form-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.45;
}

/* ---------- Result shell ---------- */

.pd .panel--result {
  position: sticky;
  top: 16px;
  min-height: 560px;
  padding: clamp(20px, 2.1vw, 24px);
  border-color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgba(224, 138, 95, 0.16), transparent 34%),
    radial-gradient(circle at 4% 96%, rgba(184, 69, 95, 0.22), transparent 42%),
    linear-gradient(168deg, #33202f 0%, #2c1b2a 46%, #231522 100%);
  box-shadow:
    8px 8px 0 var(--rose),
    0 28px 54px rgba(44, 27, 42, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.pd .panel--result::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(253, 245, 236, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 245, 236, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 76%);
  pointer-events: none;
}

.result > * {
  position: relative;
  z-index: 1;
}

.result__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.result__label {
  padding-top: 3px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
}

.pd .result__badge {
  margin-top: 0;
  max-width: 58%;
  padding: 4px 8px;
  border-color: var(--panel-line);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.35;
  color: var(--panel-muted);
}

.result__weekday {
  margin-top: 13px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--panel-apricot);
}

.pd .result__date {
  margin-top: 2px;
  font-size: clamp(33px, 4vw, 43px);
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 12px 26px rgba(0, 0, 0, 0.35);
}

.pd .result__date.is-empty {
  color: rgba(253, 245, 236, 0.28);
}

/* ---------- 3D dial stage ---------- */

.dial-stage {
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 1 / 1;
  margin: 8px auto 0;
  perspective: 680px;
  perspective-origin: 50% 38%;
}

.dial-3d {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transform: rotateX(15deg) rotateY(var(--dial-ry, 0deg)) rotateX(var(--dial-rx, 0deg));
  transition: transform 0.35s ease-out;
  will-change: transform;
}

/* Extruded body: sits behind the face so the dial reads as an object, not a circle. */
.dial-3d__rim {
  position: absolute;
  inset: 3%;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(158deg, #412b3e 0%, #1d101b 58%, #140a13 100%);
  box-shadow:
    0 14px 0 -5px #150a14,
    0 30px 42px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateZ(-14px);
}

.dial-3d__svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: translateZ(26px);
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.4));
}

/* Glass face: a single soft highlight across the top-left of the dial. */
.dial-3d__sheen {
  position: absolute;
  inset: 7%;
  z-index: 3;
  border-radius: 50%;
  background:
    linear-gradient(138deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 22%, transparent 44%),
    radial-gradient(ellipse at 68% 88%, rgba(255, 169, 183, 0.12), transparent 42%);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateZ(30px);
}

.dial-3d__halo {
  position: absolute;
  inset: 3%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 169, 183, 0.26), transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(224, 138, 95, 0.18), transparent 70%);
  filter: blur(18px);
  transform: translateZ(-34px) scale(1.1);
}

.dial-3d__plinth {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -2%;
  z-index: 0;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0.62), transparent 66%);
  filter: blur(12px);
  transform: translateZ(-46px) rotateX(76deg);
}

.ring__bezel {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.2;
}

.ring__base {
  fill: none;
  stroke: rgba(253, 245, 236, 0.14);
  stroke-width: 14;
}

.ring__track {
  fill: none;
  stroke: rgba(253, 245, 236, 0.2);
  stroke-width: 1;
  stroke-dasharray: 1 5;
}

.ring__progress {
  fill: none;
  stroke: var(--panel-rose);
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dasharray 0.55s cubic-bezier(0.22, 0.7, 0.25, 1);
  filter: drop-shadow(0 0 5px rgba(255, 169, 183, 0.55));
}

.ring__inner {
  fill: rgba(253, 245, 236, 0.025);
  stroke: rgba(253, 245, 236, 0.1);
  stroke-width: 1;
}

.ring__marker {
  fill: var(--panel-apricot);
  stroke: #2c1b2a;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(244, 177, 131, 0.8));
}

.dial-3d__tick {
  stroke: rgba(253, 245, 236, 0.34);
  stroke-width: 1;
}

.dial-3d__tick.is-major {
  stroke: rgba(253, 245, 236, 0.72);
  stroke-width: 1.6;
}

.dial-3d__center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  pointer-events: none;
  transform: translateZ(46px);
}

.dial-3d__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.9vw, 42px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.dial-3d__label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--panel-muted);
}

/* ---------- Facts ---------- */

.pd .facts {
  margin-top: 12px;
}

.pd .facts > div {
  /* Vertical only: keep the shared 12px column gutter from site.css so the
     right column's text does not sit flush against its border-left rule. */
  padding-top: 10px;
  padding-bottom: 13px;
}

.pd .facts dd {
  margin-top: 5px;
  line-height: 1.4;
}

/* Wide result card: one row of four keeps the card compact beside the form. */
@media (min-width: 1200px) {
  .pd .facts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.3fr);
  }

  .pd .facts dd {
    font-size: 13.5px;
  }

  .pd .facts > div,
  .pd .facts > div:nth-child(odd),
  .pd .facts > div:nth-child(even) {
    padding: 9px 10px 10px;
    border-left: 1px solid var(--panel-line);
  }

  .pd .facts > div:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

.pd .facts dd {
  font-size: 14.5px;
}

.pd .facts dd#fact-trimester {
  color: var(--panel-apricot);
}

/* ---------- Alerts & week note ---------- */

.alert {
  margin-top: 14px;
  padding: 11px 13px;
  border-left: 2px solid;
  font-size: 12px;
  line-height: 1.55;
}

.alert[hidden] {
  display: none;
}

.alert--amber {
  border-color: var(--panel-apricot);
  background: rgba(244, 177, 131, 0.13);
  color: var(--panel-ink);
}

.alert--amber strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12.5px;
  color: var(--panel-apricot);
}

.pd .week-note {
  margin-top: 10px;
  padding-top: 10px;
}

.pd .week-note__title {
  font-size: 19px;
  line-height: 1.15;
}

.pd .week-note__body {
  font-size: 12px;
}

/* ---------- Result actions ---------- */

.pd .result__actions {
  gap: 7px;
  margin-top: 12px;
}

.pd .btn {
  min-height: 44px;
  border-radius: 0;
  font-size: 12px;
  letter-spacing: 0.005em;
}

.pd .btn--primary {
  background: var(--panel-rose);
  color: #2c1b2a;
}

.pd .btn--primary:hover {
  background: #ffc3cd;
}

.pd .result__note {
  margin-top: 10px;
  font-size: 11px;
}

.result__privacy {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--panel-line);
  font-size: 10px;
  letter-spacing: 0.01em;
  color: rgba(253, 245, 236, 0.62);
}

/* ---------- No-JS panel ---------- */

.noscript {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.noscript h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.noscript p,
.noscript li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-70);
}

.noscript p {
  margin-top: 8px;
}

.noscript ul {
  margin-top: 10px;
  padding-left: 20px;
}

.noscript li + li {
  margin-top: 6px;
}

/* ---------- Sections ---------- */

.pd .section {
  padding-top: clamp(38px, 4.6vw, 58px);
}

.pd .section h2 {
  font-size: clamp(26px, 3.1vw, 36px);
  line-height: 1.06;
}

.pd .section__lede {
  font-size: 14.5px;
}

/* Link from the milestone preview to the full pregnancy calendar. */
.pd .section__more {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
}

.pd .section__more a { color: var(--rose-deep); }

.pd .prose {
  font-size: 15px;
  line-height: 1.68;
}

.pd .prose h3 {
  margin-top: 24px;
  font-size: 19px;
}

/* ---------- Formula ---------- */

.pd .formula {
  position: relative;
  margin-top: 14px;
  padding: 15px 17px 15px 19px;
  border: 0;
  border-left: 3px solid var(--apricot);
  background: var(--ink);
  color: var(--panel-ink);
  box-shadow: 4px 4px 0 rgba(184, 69, 95, 0.22);
}

.pd .formula code {
  font-size: 12px;
  letter-spacing: 0.005em;
  color: var(--panel-ink);
}

/* ---------- Duo ---------- */

.pd .duo {
  gap: clamp(26px, 4vw, 52px);
}

.pd .duo > div + div {
  padding-left: clamp(0px, 3vw, 40px);
  border-left: 1px solid var(--line);
}

.pd .duo h2 {
  font-size: clamp(24px, 2.7vw, 32px);
}

/* ---------- Tables ---------- */

.pd .table-wrap {
  border-top-width: 2px;
}

.pd th {
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.pd td {
  font-size: 13.5px;
}

.pd tr.is-next td {
  background: var(--rose-tint);
  color: var(--ink);
}

.pd tr.is-next td:first-child {
  box-shadow: inset 3px 0 0 var(--rose);
  padding-left: 8px;
  font-weight: 600;
}

.pd tr.is-past td {
  color: var(--ink-38);
}

.pd .tag {
  letter-spacing: 0.08em;
}

.pd #milestones th:last-child,
.pd #milestone-body td:last-child {
  width: 190px;
  text-align: right;
}

/* ---------- Timeline (original infographic) ---------- */

.tl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.tl::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 4px;
  right: 4px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--rose) 62%, var(--line-strong));
}

.tl__item {
  position: relative;
  display: grid;
  grid-template-rows: 16px 12px auto auto;
  gap: 6px;
  padding: 0 14px 0 0;
}

.tl__week {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--rose-deep);
}

.tl__dot {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 9px;
  height: 9px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--rose);
  box-shadow: 0 0 0 3px var(--bone);
}

.tl__title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.tl__body {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-55);
}

.tl__item--edd .tl__week {
  color: var(--ink);
}

.tl__item--edd .tl__dot {
  width: 13px;
  height: 13px;
  margin-top: 0;
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 0 0 4px var(--rose-soft);
}

.tl__item--edd .tl__title {
  font-weight: 700;
}

/* ---------- Emergency box ---------- */

.emergency {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--rose);
  border-left: 4px solid var(--rose-deep);
  background: linear-gradient(180deg, rgba(184, 69, 95, 0.06), rgba(184, 69, 95, 0.02));
}

.emergency h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--rose-deep);
}

.emergency p,
.emergency li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-70);
}

.emergency p {
  margin-top: 6px;
}

.emergency ul {
  margin-top: 8px;
  padding-left: 19px;
}

.emergency li + li {
  margin-top: 5px;
}

.emergency li::marker {
  color: var(--rose-deep);
}

.emergency p:last-child {
  margin-top: 12px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.pd .faq {
  margin-top: 20px;
}

.pd .faq summary {
  padding: 15px 0;
  font-size: 14.5px;
}

.pd .faq details > p {
  font-size: 13.8px;
  line-height: 1.65;
}

/* ---------- Sources, disclaimer, updated ---------- */

.pd .disclaimer {
  border-left-width: 3px;
  font-size: 12.5px;
}

.updated {
  margin-top: 14px;
  font-size: 11.5px;
  font-style: italic;
  color: var(--ink-55);
}

/* ---------- Dock ---------- */

.pd ~ .dock,
.dock {
  box-shadow: 0 -6px 18px rgba(44, 27, 42, 0.08);
}

.dock__value {
  font-size: 18px;
}

/* ---------- Footer spacing ---------- */

.pd .footer {
  margin-top: clamp(44px, 6vw, 74px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .pd .panel--result {
    position: static;
    min-height: 0;
  }

  .pd .result__actions {
    flex-wrap: nowrap;
  }

  .pd .result__actions .btn {
    flex: 1 1 0;
  }

  .pd .duo > div + div {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 860px) {
  .pd .hero h1 {
    max-width: 24ch;
  }

  .reviewstrip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reviewstrip > div + div {
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .pd .duo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .truststrip {
    font-size: 11px;
  }

  .truststrip__inner {
    min-height: 32px;
  }

  .truststrip__item--date {
    display: none;
  }

  .crumbs {
    margin-top: 14px;
  }

  .pd .hero {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .pd .hero h1 {
    font-size: clamp(32px, 9.4vw, 44px);
    max-width: 22ch;
  }

  .pd .hero__lede {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
  }

  .pd .hero__meta {
    display: none;
  }

  

  .pd .panel--result {
    box-shadow: 6px 6px 0 var(--rose);
  }

  .pd .result__actions {
    flex-direction: column;
  }

  .pd .result__actions .btn {
    width: 100%;
  }

  .dial-stage {
    width: min(100%, 250px);
  }

  /* Timeline becomes vertical */
  .tl {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 22px;
    padding-left: 4px;
  }

  .tl::before {
    top: 8px;
    bottom: 12px;
    left: 8px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--rose), var(--line-strong));
  }

  .tl__item {
    grid-template-columns: 12px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 3px;
    padding: 0 0 22px;
  }

  .tl__dot {
    grid-row: 1;
    grid-column: 1;
    align-self: start;
    margin-top: 5px;
    margin-left: -1px;
  }

  .tl__week {
    grid-row: 1;
    grid-column: 2;
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  .tl__title {
    grid-row: 2;
    grid-column: 2;
    font-size: 14px;
  }

  .tl__body {
    grid-row: 3;
    grid-column: 2;
    font-size: 12.5px;
  }

  .tl__item--edd .tl__dot {
    margin-left: -3px;
    margin-top: 2px;
  }
}

.table-note {
  display: none;
}

@media (max-width: 560px) {
  .pd .hero {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .table-note {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.03em;
    color: var(--ink-55);
  }

  /* The three-column tables can fit a phone; the four-column one scrolls. */
  #milestones table,
  .section[aria-labelledby="timeline-title"] table {
    min-width: 0;
  }

  #milestones th,
  #milestones td,
  .section[aria-labelledby="timeline-title"] th,
  .section[aria-labelledby="timeline-title"] td {
    padding-right: 8px;
    font-size: 12px;
  }

  #milestones th:last-child,
  #milestone-body td:last-child {
    width: 82px;
    padding-right: 0;
    white-space: nowrap;
  }

  #milestones th:first-child,
  #milestone-body td:first-child {
    width: 54px;
    white-space: nowrap;
  }

  .section[aria-labelledby="timeline-title"] td:first-child,
  .section[aria-labelledby="timeline-title"] th:first-child {
    white-space: nowrap;
  }

  

  .pd .form-head {
    margin-bottom: 14px;
  }

  .pd .form-head__sub {
    display: none;
  }

  /* Keep all four methods on one row so the tool stays above the fold. */
  .pd .method-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pd .method label {
    min-height: 60px;
    padding: 7px 3px 6px;
    font-size: 9.5px;
    line-height: 1.15;
  }

  .pd .method:nth-child(3) label {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .pd .method:nth-child(4) label {
    border-top: 0;
  }

  .pd .form-extra {
    display: none;
  }

  .pd .form-grid {
    gap: 13px;
  }

  .pd .form-foot {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 10.5px;
  }

  .pd .result__date {
    font-size: clamp(31px, 9.6vw, 40px);
  }

  .pd .result__badge {
    max-width: 54%;
    font-size: 9px;
  }

  .dial-stage {
    width: min(100%, 232px);
    margin-top: 8px;
  }

  .pd .facts dd {
    font-size: 13.5px;
  }

  .emergency {
    padding: 17px 16px;
  }

  .emergency h3 {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .pd .method label span {
    font-size: 9.5px;
  }

  .pd .method label svg {
    width: 17px;
    height: 17px;
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .dial-3d {
    transform: none;
    transition: none;
  }

  .pd .btn,
  .tl__dot {
    transition: none;
  }
}

/* ---------- Print ---------- */

@media print {
  .truststrip,
  .masthead,
  .crumbs,
  .pd .hero__lede,
  .pd .hero__meta,
  .pd .panel--form,
  .pd .section:not(#milestones),
  .pd .section__more,
  .noscript,
  .reviewstrip,
  .pd .faq,
  .dock,
  .pd .footer,
  .result__actions,
  .result__privacy,
  .dial-stage,
  .week-note,
  .skip {
    display: none !important;
  }

  body.pd {
    background: #fff;
    padding: 0;
  }

  .pd .hero {
    padding: 0 0 10px;
    border-bottom: 1px solid #000;
  }

  .pd .hero h1 {
    font-size: 24pt;
    color: #000;
  }

  .wrap {
    width: 100%;
  }

  .pd-tool,
  .tool {
    display: block;
  }

  .pd .panel--result {
    position: static;
    min-height: 0;
    margin-top: 12px;
    padding: 14px 16px;
    background: #fff !important;
    color: #000;
    border: 1px solid #000;
    box-shadow: none;
    overflow: visible;
  }

  .pd .panel--result::before {
    display: none;
  }

  .pd .result__label,
  .pd .result__badge,
  .pd .result__weekday,
  .pd .result__note,
  .pd .facts dt,
  .pd .facts dd,
  .pd .facts dd#fact-trimester {
    color: #000;
  }

  .pd .result__date {
    font-size: 26pt;
    color: #000;
  }

  .pd .result__badge {
    border-color: #666;
  }

  .pd .facts > div {
    border-color: #bbb;
  }

  .pd .section {
    padding-top: 16px;
  }

  .pd .section h2 {
    font-size: 15pt;
  }

  .pd .table-wrap {
    border-top-width: 1px;
  }

  .pd th,
  .pd td {
    font-size: 9.5pt;
    color: #000;
  }

  .pd tr.is-next td {
    background: none;
  }

  .pd tr.is-past td {
    color: #555;
  }

  a {
    text-decoration: none;
    color: #000;
  }
}