/* BellyDay — conception date calculator
   Page-scoped additions only. Shared components live in assets/site.css. */

body.cc {
  /* Darker muted ink than the shared token: 10–12px hints must clear 4.5:1. */
  --ink-55: rgba(44, 27, 42, 0.68);
}

/* ---------- Breadcrumbs ---------- */

.crumbs {
  padding-top: 18px;
  font-size: 11.5px;
  color: var(--ink-55);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--ink-55);
}

.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--ink); }

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

.cc .hero {
  padding: clamp(22px, 3vw, 38px) 0 clamp(18px, 2.2vw, 26px);
}

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

.cc .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 16px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.hero__meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.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;
}

@media (max-width: 760px) {
  .cc .hero__meta { display: none; }
}

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

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

.cc .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;
}

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

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

.cc .method input:checked + label {
  box-shadow: inset 0 -2px 0 var(--panel-rose);
}

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

/* ---------- Form heading ---------- */

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

.form-head__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.form-head__sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-70);
}

/* ---------- Method note ---------- */

.method-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--apricot);
  background: var(--apricot-soft);
}

.method-note__kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}

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

/* ---------- Result panel ---------- */

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

.result__weekday {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--panel-muted);
}

.cc-window {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--panel-line);
}

.cc-window__label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--panel-muted);
}

.cc-window__dates {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.cc-window__meta {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--panel-muted);
}

.cc-derived {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--panel-muted);
}

.cc-flag {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 2px solid var(--panel-apricot);
  font-size: 12px;
  line-height: 1.5;
  color: var(--panel-muted);
}

.cc-flag strong { color: var(--panel-ink); }

.result__privacy {
  margin-top: 14px;
  font-size: 10.5px;
  color: var(--panel-muted);
}

.result__head .result__badge { margin: 0; }

@media (max-width: 480px) {
  .result__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---------- Cycle timeline figure ---------- */

.cc-timeline {
  margin-top: 26px;
  padding: 18px 20px 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.cc-timeline figcaption {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.cc-timeline ol {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.cc-timeline li {
  position: relative;
  margin-left: 5px;
  padding: 0 0 18px 22px;
  border-left: 1px solid var(--line-strong);
}

.cc-timeline li:last-child {
  padding-bottom: 6px;
  border-left-color: transparent;
}

.cc-timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--rose-deep);
}

.cc-timeline__item--fertile::before { background: var(--rose); }

.cc-timeline__item--key::before {
  background: var(--apricot);
  border-color: var(--apricot);
}

.cc-timeline__day {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.cc-timeline li strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cc-timeline li > span:last-child {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-70);
}

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

@media print {
  .cc-window,
  .facts { border-color: #999; }
  .cc-window__meta,
  .cc-derived,
  .cc-flag,
  .result__privacy { color: #333; }
}
