:root {
  --ink: #251f1a;
  --muted: #706862;
  --line: #e7dfd5;
  --paper: #fffdf9;
  --soft: #f6efe5;
  --sand: #e8d8c3;
  --brown: #5a3b2b;
  --brown-dark: #2f2018;
  --green: #61745a;
  --teal: #416b70;
  --blue: #4f6f8f;
  --rose: #9a5451;
  --amber: #a56d2d;
  --shadow: 0 20px 60px rgba(47, 32, 24, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(246, 239, 229, 0.92)),
    radial-gradient(circle at 12% 10%, rgba(97, 116, 90, 0.14), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(231, 223, 213, 0.8);
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  min-width: 12rem;
  font-weight: 760;
  color: var(--brown-dark);
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 34%, #fff9f1 0 18%, transparent 19%),
    linear-gradient(135deg, var(--brown), var(--green));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  flex: 0 0 auto;
}

.top-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  padding: 0.45rem 0.2rem;
}

.top-nav a:hover {
  color: var(--brown-dark);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.82fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.2rem) 0 1.5rem;
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 17ch;
  margin: 0;
  color: var(--brown-dark);
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--brown-dark);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--brown-dark);
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h4 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  color: var(--brown);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.58;
}

.notice {
  max-width: 42rem;
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(65, 107, 112, 0.24);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: #334d50;
  line-height: 1.5;
}

.hero-media {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  border: 1px solid rgba(231, 223, 213, 0.88);
  border-radius: var(--radius);
  background: #e9dfd0;
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
}

.hero-media-panel {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.2rem;
  width: min(13rem, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  background: rgba(47, 32, 24, 0.72);
  color: #fff8ef;
  backdrop-filter: blur(18px);
}

.hero-media-panel span {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.76);
}

.hero-media-panel strong {
  font-size: 1.2rem;
}

.tool-section,
.milestone-section,
.calendar-section,
.growth-section {
  padding: 2rem 0 clamp(2rem, 5vw, 4rem);
  scroll-margin-top: 5.5rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.74fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.calculator-form,
.summary-panel,
.day-card,
.month-card,
.milestone-card,
.timeline-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 12px 34px rgba(47, 32, 24, 0.06);
}

.calculator-form,
.summary-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.field {
  display: grid;
  gap: 0.45rem;
  color: var(--brown-dark);
  font-weight: 720;
}

.field small {
  color: var(--muted);
  font-weight: 520;
}

.field input,
.field select {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  line-height: 1.2;
  color: var(--ink);
  border: 1px solid #d7cbbb;
  border-radius: var(--radius);
  background: #fffefa;
}

.field select {
  appearance: none;
  padding-right: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23463B30' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.field input:focus,
.field select:focus {
  outline: 3px solid rgba(65, 107, 112, 0.2);
  border-color: var(--teal);
}

.primary-button,
.secondary-button {
  min-height: 3.2rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--brown-dark);
  color: #fff9ef;
  font-weight: 780;
}

.primary-button:hover,
.secondary-button:hover {
  background: #1f1510;
}

.secondary-button {
  width: fit-content;
  min-height: 2.6rem;
  padding: 0.62rem 0.9rem;
  background: var(--teal);
  font-size: 0.92rem;
}

.focus-panel {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(65, 107, 112, 0.22);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(65, 107, 112, 0.08);
}

.focus-panel span {
  color: #35595d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.focus-panel strong {
  color: var(--brown-dark);
  font-size: 1.08rem;
}

.focus-panel p {
  margin: 0;
  color: #35595d;
  line-height: 1.48;
}

.breed-summary {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(97, 116, 90, 0.22);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: rgba(97, 116, 90, 0.08);
}

.breed-summary span,
.breed-summary small {
  color: #475742;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breed-summary strong {
  color: var(--brown-dark);
  font-size: 1.08rem;
}

.breed-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.form-errors {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(154, 84, 81, 0.28);
  border-radius: var(--radius);
  background: rgba(154, 84, 81, 0.1);
  color: #743a38;
}

.form-errors p,
.warning p {
  margin: 0;
}

.form-errors p + p,
.warning p + p {
  margin-top: 0.35rem;
}

.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.summary-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-grid div {
  min-height: 5.8rem;
  display: grid;
  align-content: space-between;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(231, 223, 213, 0.9);
  border-radius: var(--radius);
  background: #fffefa;
}

.summary-grid span,
.milestone-card span,
.day-number {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-grid strong {
  color: var(--brown-dark);
  font-size: 1.1rem;
  line-height: 1.15;
}

.warning {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  line-height: 1.5;
}

.warning-info {
  border: 1px solid rgba(79, 111, 143, 0.22);
  background: rgba(79, 111, 143, 0.08);
  color: #354b61;
}

.warning-watch {
  border: 1px solid rgba(165, 109, 45, 0.24);
  background: rgba(165, 109, 45, 0.1);
  color: #704816;
}

.warning-urgent {
  border: 1px solid rgba(154, 84, 81, 0.28);
  background: rgba(154, 84, 81, 0.11);
  color: #743a38;
}

.section-heading {
  margin-bottom: 1rem;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.35rem 0 1rem;
  scrollbar-color: var(--sand) transparent;
}

.timeline-item,
.milestone-card,
.view-tab,
.month-day {
  appearance: none;
  font: inherit;
}

.timeline-item {
  flex: 0 0 9.7rem;
  min-height: 5.3rem;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 0.9rem;
  border: 1px solid rgba(90, 59, 43, 0.16);
  border-radius: var(--radius);
  background: #fffefa;
  color: var(--brown-dark);
  text-align: left;
}

.timeline-item span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 760;
}

.timeline-item strong {
  line-height: 1.15;
}

.timeline-item:hover,
.milestone-card:hover,
.month-day:hover {
  border-color: rgba(65, 107, 112, 0.5);
  transform: translateY(-1px);
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.milestone-card {
  min-height: 12rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1rem;
  color: inherit;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease;
}

.milestone-card small {
  color: var(--green);
  font-weight: 720;
}

.milestone-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.view-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.78);
}

.view-tab {
  min-width: 5.3rem;
  min-height: 2.55rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}

.view-tab.is-active {
  background: var(--brown-dark);
  color: #fff8ef;
}

.view-panel {
  display: none;
}

.view-panel.is-active {
  display: block;
}

.vertical-timeline,
.day-list,
.month-grid-list {
  display: grid;
  gap: 0.9rem;
}

.growth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.34fr);
  gap: 1rem;
}

.growth-chart-card,
.growth-notes {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 12px 34px rgba(47, 32, 24, 0.06);
}

.growth-chart-card {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.2rem);
}

.growth-notes {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1rem;
}

.growth-notes p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(97, 116, 90, 0.12);
  color: #475742;
  font-weight: 780;
}

.chart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.chart-header p,
.empty-growth p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.chart-header span {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(165, 109, 45, 0.12);
  color: #704816;
  font-size: 0.78rem;
  font-weight: 800;
}

.weight-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 18rem;
  overflow: visible;
  touch-action: none;
}

.chart-grid {
  stroke: rgba(112, 104, 98, 0.18);
  stroke-width: 1;
}

.chart-axis {
  stroke: rgba(47, 32, 24, 0.42);
  stroke-width: 1.2;
}

.chart-label {
  fill: var(--muted);
  font-size: 0.78rem;
  font-weight: 680;
}

.chart-x-label {
  text-anchor: middle;
}

.chart-area {
  fill: rgba(65, 107, 112, 0.16);
  stroke: none;
}

.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-max {
  stroke: var(--teal);
}

.chart-line-min {
  stroke: var(--green);
}

.chart-hit {
  fill: transparent;
  stroke: none;
}

.chart-interaction-zone {
  fill: transparent;
  pointer-events: all;
  cursor: crosshair;
}

.chart-cursor {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.chart-cursor.is-active {
  opacity: 1;
}

.chart-cursor-line {
  stroke: var(--brown-dark);
  stroke-width: 1.7;
  stroke-dasharray: 5 5;
}

.chart-cursor-dot {
  stroke: #fffefa;
  stroke-width: 2.5;
}

.chart-cursor-dot-max {
  fill: var(--teal);
}

.chart-cursor-dot-min {
  fill: var(--green);
}

.chart-cursor-label,
.chart-cursor-day {
  fill: var(--brown-dark);
  font-size: 0.82rem;
  font-weight: 850;
  paint-order: stroke;
  stroke: #fffefa;
  stroke-width: 5px;
  stroke-linejoin: round;
}

.chart-cursor-label-max {
  fill: var(--teal);
}

.chart-cursor-label-min {
  fill: var(--green);
}

.chart-cursor-day {
  text-anchor: middle;
  fill: var(--brown);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.chart-legend span,
.source-list a,
.source-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-line {
  width: 1.8rem;
  height: 0.18rem;
  border-radius: 999px;
}

.legend-line-max {
  background: var(--teal);
}

.legend-line-min {
  background: var(--green);
}

.legend-area {
  width: 1.8rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(65, 107, 112, 0.16);
  border: 1px solid rgba(65, 107, 112, 0.26);
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.source-list strong {
  width: 100%;
  color: var(--brown-dark);
}

.source-list a,
.source-list span {
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(231, 223, 213, 0.95);
  border-radius: 999px;
  background: #fffefa;
  color: var(--muted);
  font-size: 0.82rem;
}

.source-list a:hover {
  color: var(--brown-dark);
  border-color: rgba(65, 107, 112, 0.4);
}

.empty-growth {
  padding: 1rem;
  border: 1px dashed rgba(112, 104, 98, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.timeline-detail {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-left-width: 5px;
}

.timeline-date {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.timeline-date span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.timeline-date strong {
  color: var(--brown-dark);
}

.timeline-detail p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.day-card {
  scroll-margin-top: 6rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-left-width: 5px;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.day-card.is-highlighted {
  box-shadow: 0 0 0 4px rgba(65, 107, 112, 0.16), var(--shadow);
  transform: translateY(-2px);
}

.day-card.is-focus-day {
  background:
    linear-gradient(90deg, rgba(65, 107, 112, 0.08), transparent 34%),
    rgba(255, 253, 249, 0.92);
}

.day-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.date-pill,
.phase-pill,
.inline-milestones span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(232, 216, 195, 0.45);
  color: var(--brown-dark);
  font-size: 0.84rem;
  font-weight: 760;
  white-space: nowrap;
}

.phase-pill {
  margin-top: 0.75rem;
  border-radius: 6px;
  background: rgba(65, 107, 112, 0.1);
  color: #35595d;
  white-space: normal;
}

.inline-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.inline-milestones span {
  background: rgba(97, 116, 90, 0.12);
  color: #475742;
}

.day-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.day-content div {
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid rgba(231, 223, 213, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.day-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.fetal-growth-panel {
  margin-top: 1rem;
  padding: 0.95rem;
  border: 1px solid rgba(65, 107, 112, 0.2);
  border-radius: var(--radius);
  background: rgba(65, 107, 112, 0.07);
}

.fetal-growth-panel p {
  margin: 0.65rem 0 0;
  color: #35595d;
  line-height: 1.5;
}

.growth-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.growth-metrics div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(65, 107, 112, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
}

.growth-metrics dt {
  color: #35595d;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.growth-metrics dd {
  margin: 0.25rem 0 0;
  color: var(--brown-dark);
  font-weight: 780;
  line-height: 1.2;
}

.day-card > .warning {
  margin-top: 0.9rem;
}

.month-grid-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.month-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.78);
}

.month-legend strong {
  margin-right: 0.2rem;
  color: var(--brown-dark);
}

.month-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.2;
}

.legend-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.month-card {
  padding: 1rem;
}

.month-card h3 {
  margin-bottom: 0.8rem;
  text-transform: capitalize;
}

.weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.weekdays {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 780;
  text-align: center;
  text-transform: uppercase;
}

.empty-day {
  min-height: 4.2rem;
}

.month-day {
  min-width: 0;
  min-height: 4.2rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.18rem;
  padding: 0.35rem;
  border: 1px solid rgba(231, 223, 213, 0.96);
  border-radius: 6px;
  background: #fffefa;
  color: var(--brown-dark);
}

.month-day span {
  color: var(--muted);
  font-size: 0.78rem;
}

.month-day strong {
  font-size: 1rem;
}

.month-day.is-focus-day {
  outline: 3px solid rgba(65, 107, 112, 0.28);
  border-color: var(--teal);
}

.phase-mating {
  border-left-color: var(--brown);
}

.phase-early_embryo {
  border-left-color: var(--amber);
}

.phase-implantation {
  border-left-color: var(--rose);
}

.phase-confirmation {
  border-left-color: var(--blue);
}

.phase-rapid_development {
  border-left-color: var(--green);
}

.phase-fetal_growth {
  border-left-color: #76813b;
}

.phase-mineralization {
  border-left-color: var(--teal);
}

.phase-birth_prep {
  border-left-color: #6d5a8f;
}

.phase-birth_window {
  border-left-color: #a9413e;
}

.legend-dot.phase-mating {
  background: var(--brown);
}

.legend-dot.phase-early_embryo {
  background: var(--amber);
}

.legend-dot.phase-implantation {
  background: var(--rose);
}

.legend-dot.phase-confirmation {
  background: var(--blue);
}

.legend-dot.phase-rapid_development {
  background: var(--green);
}

.legend-dot.phase-fetal_growth {
  background: #76813b;
}

.legend-dot.phase-mineralization {
  background: var(--teal);
}

.legend-dot.phase-birth_prep {
  background: #6d5a8f;
}

.legend-dot.phase-birth_window {
  background: #a9413e;
}

.month-day.phase-mating {
  background: rgba(90, 59, 43, 0.1);
}

.month-day.phase-early_embryo {
  background: rgba(165, 109, 45, 0.12);
}

.month-day.phase-implantation {
  background: rgba(154, 84, 81, 0.12);
}

.month-day.phase-confirmation {
  background: rgba(79, 111, 143, 0.12);
}

.month-day.phase-rapid_development,
.month-day.phase-fetal_growth {
  background: rgba(97, 116, 90, 0.12);
}

.month-day.phase-mineralization {
  background: rgba(65, 107, 112, 0.12);
}

.month-day.phase-birth_prep {
  background: rgba(109, 90, 143, 0.12);
}

.month-day.phase-birth_window {
  background: rgba(169, 65, 62, 0.12);
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero-section,
  .tool-layout,
  .growth-layout,
  .month-grid-list {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  h1 {
    max-width: 12ch;
  }

  .milestone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-content {
    grid-template-columns: 1fr;
  }

  .growth-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  .row-heading,
  .site-footer,
  .day-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .top-nav {
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  main,
  .site-footer {
    width: min(100% - 1rem, 1180px);
  }

  .hero-section {
    padding-top: 1.3rem;
  }

  .hero-media {
    min-height: 20rem;
  }

  .hero-media img {
    min-height: 20rem;
  }

  .summary-grid,
  .summary-grid.compact,
  .milestone-grid {
    grid-template-columns: 1fr;
  }

  .view-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .view-tab {
    flex: 1 0 5.2rem;
  }

  .timeline-detail {
    grid-template-columns: 1fr;
  }

  .chart-header {
    flex-direction: column;
  }

  .weight-chart-svg {
    min-height: 15rem;
  }

  .weekdays,
  .month-grid {
    gap: 0.22rem;
  }

  .empty-day,
  .month-day {
    min-height: 3.25rem;
  }
}
