/* ============================================================
   Ovulation & Period Tracker — TOI Parenting
   Design tokens sourced from parenting-homepage-DESIGN.md
   Font: Rethink Sans · Accent: #ae4e00 · Base unit: 2px
   ============================================================ */

:root {
  /* Color */
  --text-primary: #2a2727;
  --text-secondary: #4c4949;
  --text-tertiary: #8a8a8a;
  --background: #ffffff;
  --background-alt: #fdfdfd;
  --accent: #ae4e00;          /* burnt orange — primary accent */
  --accent-4: #fff0e0;        /* soft orange surface */
  --accent-3: #f5e6d7;
  --accent-alt: #e21b22;      /* red — period */
  --accent-5: #ffeae2;        /* soft red surface */
  --border: #cdcbcb;
  --border-alt: #cccccc;
  --surface: #ececec;
  --surface-alt: #f5f3f3;

  /* Semantic (tracker) */
  --period: #e21b22;
  --period-soft: #ffeae2;
  --fertile: #ae4e00;
  --fertile-soft: #ffe6cf;
  --ovulation: #8a2b00;
  --follicular: #6b8f71;      /* follicular phase — soft green */
  --follicular-soft: #eef4ec;
  --luteal: #7a6ca8;          /* luteal phase — soft violet */
  --luteal-soft: #f0ecf7;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 999px;

  /* Elevation */
  --shadow-1: 2px 4px 12px 0px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 8px 28px 0px rgba(0, 0, 0, 0.10);

  /* Layout */
  --content-max: 1000px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  font-family: "Rethink Sans", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

/* ============================================================
   AD SLOTS (placeholders)
   ============================================================ */
.ad-slot { display: flex; justify-content: center; }

.ad-slot--top {
  padding: 12px 16px;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.ad-slot__box {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, #f3f1ef 0 10px, #eceae7 10px 20px);
  border: 1px dashed var(--border-alt);
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
}

.ad-slot__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ad-slot__box--sticky { position: sticky; top: 24px; }

/* ============================================================
   HEADER — masthead + red nav bar
   ============================================================ */
.site-header {
  position: relative;
  z-index: 20;
  --nav-red: #ed1c24;
}

/* Row 1 — masthead */
.masthead { background: var(--background); }
.masthead__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.masthead__spacer { width: 1px; }

.masthead__logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  justify-self: center;
}
.masthead__times {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.5px;
  line-height: 1;
}
.masthead__art { font-size: 30px; position: relative; line-height: 1; }
.masthead__heart {
  position: absolute;
  top: -8px; left: -6px;
  font-size: 13px;
  color: var(--nav-red);
}
.masthead__parenting {
  font-family: "Rethink Sans", sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--nav-red);
  letter-spacing: 1px;
  line-height: 1;
}

.masthead__account {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.masthead__signin {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.masthead__social {
  width: 30px;
  height: 30px;
  border: 1.5px solid #111;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  text-decoration: none;
  font-size: 14px;
}
.masthead__social b { line-height: 1; }

/* Row 2 — red nav bar */
.navbar { background: var(--nav-red); }
.navbar__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.navbar__toi {
  align-self: center;
  background: #fff;
  color: var(--nav-red);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  border: 1.5px solid var(--nav-red);
  border-radius: var(--radius-sm);
  padding: 5px 7px;
  text-decoration: none;
  line-height: 1;
}
.navbar__divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 12px 10px;
}
.navbar__home {
  align-self: center;
  color: #fff;
  display: inline-flex;
  align-items: center;
  padding: 0 12px 0 0;
}

.navbar__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
}
.navbar__links li { display: flex; }
.navbar__links a {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
}
.navbar__links a:hover { background: rgba(0, 0, 0, 0.08); }
.navbar__links a.is-active { font-weight: 700; }
.navbar__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}
.navbar__more { font-weight: 700; }

.navbar__search {
  align-self: center;
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
}

/* ============================================================
   FULL-WIDTH SECTION SHELLS
   Every major section spans the full viewport width; an inner
   wrapper centres content at the 1000px design column.
   ============================================================ */
.section-inner,
.tool__inner,
.editorial__inner,
.entry__inner,
.articles__inner,
.tips-sec__inner,
.faq-sec__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Shared section header (title left · Explore All right) */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.sec-head__title { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; margin: 0; }
.sec-head__explore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.sec-head__explore:hover { color: var(--accent); }

.view[hidden] { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: #9a4400; box-shadow: var(--shadow-1); }

.btn--ghost {
  background: var(--background);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-alt); }

.btn--block { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 14px; }

/* ============================================================
   SECTION 1 — TOOL HERO  (full width)
   Unfilled form → shrinks & spawns calendar on submit.
   ============================================================ */
.tool { background: var(--background); padding: 40px 0 48px; }

.tool__head {
  text-align: left;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--text-primary);
}
.tool__eyebrow {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.tool__title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--text-primary);
}
.tool__accent { color: var(--accent-alt); font-style: italic; }

/* ---- The transforming widget ----
   UNFILLED (landing, Figma 69:169): ONE card holding the form (left) and
   the illustration (right).  FILLED: two separate cards side by side. */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 231px;
  gap: 12px;
  align-items: center;
  background: #fcfaf8;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}

/* Inner regions — plain (no card chrome) until a result is shown */
.calc-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* Form region */
.calc-form { justify-content: center; }
.calc-form__row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.calc-form__date { flex: 1 1 auto; margin: 0; }
.calc-form__cycle { flex: 0 0 auto; margin: 0; }

/* Illustration region — centred in the single card */
.calc-card--side { justify-content: center; align-items: center; }

/* ---- FILLED: split into two separate cards ---- */
.calc--result .calc-grid {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.calc--result .calc-card {
  background: #fcfaf8;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}
/* trim the calendar card's bottom padding so it sits tighter */
.calc--result .calc-card--side { padding-bottom: 14px; }

.calc-illus { display: flex; align-items: center; justify-content: center; width: 100%; }
.calc-illus img { width: auto; max-width: 100%; max-height: 240px; height: auto; display: block; }

/* Calendar (result) — fills the card, hidden until solved */
.calc-cal { display: none; width: 100%; flex-direction: column; }
.calc-cal .cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Stats + hint appear only in result state */
.calc-stats, .calc-hint { display: none; }

/* ---- RESULT STATE ---- */
.calc--result .calc-illus { display: none; }
.calc--result .calc-cal { display: flex; }
.calc--result .calc-card--side { justify-content: flex-start; align-items: stretch; }
.calc--result .calc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  background: #fcfaf8;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.calc--result .calc-hint {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 14px 2px 0;
}

/* Stat cards (Figma 60:1644) */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 18px 26px;
  border-right: 1px solid #d8d5d5;
}
.stat-card:last-child { border-right: none; }
.stat-card__value { font-size: 22px; font-weight: 800; color: var(--text-primary); line-height: 1.15; letter-spacing: -0.3px; }
.stat-card__label { font-size: 14px; font-weight: 500; color: var(--text-tertiary); }

/* Fields */
.field { text-align: left; }
.field__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.field__req { color: var(--period); margin-left: 1px; }
.field__input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text-primary);
}
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(174, 78, 0, 0.15);
}
.field__error { color: var(--accent-alt); font-size: 13px; margin: -4px 0 0; }

/* Custom select */
.select { position: relative; }
.select__input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  height: 54px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text-primary);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.select__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(174, 78, 0, 0.15); }
.select__caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); pointer-events: none; }

/* Date input with leading calendar glyph */
.input-icon { position: relative; }
.input-icon__glyph { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); pointer-events: none; }
.input-icon .field__input { padding-left: 44px; }

/* Inline stepper — [ − ][ 28 days ][ + ] */
.stepper--inline { display: inline-flex; align-items: stretch; height: 54px; }
.stepper--inline .stepper__btn {
  width: 44px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  line-height: 1;
}
.stepper--inline .stepper__btn:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.stepper--inline .stepper__btn:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.stepper--inline .stepper__btn:hover { background: var(--accent-4); }
.stepper__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 0 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Submit — red pill (Figma 69:195) */
.calc-form__submit {
  align-self: flex-start;
  margin-top: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff6f1;
  background: var(--period);
  border: none;
  border-radius: var(--radius-full);
  padding: 13px 32px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.06s ease;
}
.calc-form__submit:hover { background: #c8121e; }
.calc-form__submit:active { transform: translateY(1px); }
.calc-form__submit:disabled {
  background: var(--surface);
  color: var(--text-tertiary);
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   CALENDAR
   ============================================================ */
/* Header — month title (left) + square prev/next (right) — Figma 77:201 */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-nav__label { font-size: 17px; font-weight: 700; color: #17171b; }
.cal-nav__btns { display: flex; gap: 8px; }
.cal-nav__btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-alt);
  background: var(--background);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}
.cal-nav__btn:hover { background: var(--surface-alt); }

/* Bordered month grid */
.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.cal-weekdays {
  border: 1px solid #ececec;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: #fdfdfd;
  margin-bottom: 0;
}
.cal-weekdays span {
  padding: 9px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #191919;
  border-right: 1px solid #ececec;
}
.cal-weekdays span:last-child { border-right: none; }

.cal-grid {
  border: 1px solid #ececec;
  border-top: none;
  border-radius: 0 0 8px 8px;
  /* no overflow:hidden — it would clip the hover tooltip */
}

.cal-cell {
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 5px 7px;
  font-size: 12px;
  font-weight: 500;
  color: #191919;
  position: relative;
  background: #fdfdfd;
  border-right: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}
.cal-cell:nth-child(7n) { border-right: none; }
/* out-of-month (leading/trailing) days */
.cal-cell--out { color: #cccccc; background: #fdfdfd; }
.cal-cell--period { background: var(--period-soft); color: var(--period); }
.cal-cell--follicular { background: var(--follicular-soft); color: var(--follicular); }
.cal-cell--fertile { background: var(--fertile-soft); color: var(--fertile); }
.cal-cell--luteal { background: var(--luteal-soft); color: var(--luteal); }
.cal-cell--ovulation {
  background: var(--fertile);
  color: #fff;
}
.cal-cell--predicted {
  background: repeating-linear-gradient(45deg, #ffeae2 0 6px, #fdfdfd 6px 12px);
  color: var(--period);
}
.cal-cell--today { outline: 2px solid var(--accent); outline-offset: -2px; z-index: 1; }
.cal-cell__tag {
  font-size: 9px;
  line-height: 1;
  margin-top: auto;
  align-self: flex-start;
}
.cal-cell--ovulation .cal-cell__tag { color: #ffe6cf; }

/* Hover tooltip — phase info on any tracked day */
.cal-cell[data-tip] { cursor: help; }
.cal-cell[data-tip]:hover { z-index: 5; }
.cal-cell[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  background: var(--text-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  pointer-events: none;
  z-index: 6;
}
.cal-cell[data-tip]:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text-primary);
  z-index: 6;
}

/* Legend — compact 3-column grid (no heading) */
.legend {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 5px 10px;
  margin: 0;
  padding-top: 12px;
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
  flex: 0 0 auto;
}
.dot--period { background: var(--period-soft); border: 1px solid var(--period); }
.dot--follicular { background: var(--follicular-soft); border: 1px solid var(--follicular); }
.dot--fertile { background: var(--fertile-soft); border: 1px solid var(--fertile); }
.dot--luteal { background: var(--luteal-soft); border: 1px solid var(--luteal); }
.dot--ovulation { background: var(--fertile); }
.dot--predicted { background: repeating-linear-gradient(45deg, #ffeae2 0 4px, #fff 4px 8px); border: 1px dashed var(--period); }
.dot--today { background: #fff; outline: 2px solid var(--accent); outline-offset: -2px; }

/* ============================================================
   SECTION 2 — EDITORIAL CONTENT
   ============================================================ */
.editorial { background: var(--background); padding: 48px 0; }

.editorial__head { margin-bottom: 40px; }
.editorial__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 16px;
}
.editorial__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
.editorial__h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 40px 0 20px;
}

/* How-to — line-based vertical steps */
.steps { list-style: none; margin: 0; padding: 0; }
.steps__item {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 28px;
}
.steps__item:last-child { padding-bottom: 0; }
.steps__marker { flex: 0 0 auto; position: relative; z-index: 1; }
.steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
/* connecting line between markers */
.steps__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: var(--accent-3);
}
.steps__body { padding-top: 7px; }
.steps__title { font-size: 20px; font-weight: 700; margin: 0 0 5px; line-height: 1.25; }
.steps__text { font-size: 16px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

/* Good to know — numbered columns (Figma 60:1716) */
.gtk { display: grid; grid-template-columns: repeat(4, 1fr); }
.gtk__item { padding: 4px 22px; }
.gtk__item:first-child { padding-left: 0; }
.gtk__item + .gtk__item { border-left: 1px solid var(--border); }
.gtk__num {
  display: block;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: #cccccc;
}
.gtk__line {
  display: block;
  width: 32px;
  height: 2px;
  border-radius: 4px;
  background: #fa9826;
  margin: 14px 0;
}
.gtk__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.gtk__text { font-size: 14px; line-height: 1.55; color: #595959; margin: 0; }

/* Quick tips */
.tips-sec { background: var(--background); padding: 48px 0; }
.tips {
  background: var(--accent-5);
  border: 1px solid #ffd6c7;
  border-radius: var(--radius-xl);
  padding: 28px;
}
.tips__title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tips__list { margin: 0; padding-left: 22px; }
.tips__list li { font-size: 16px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 10px; }
.tips__list li:last-child { margin-bottom: 0; }

/* ============================================================
   SECTION 3 — ENTRY POINT (Due Date Calculator promo)
   ============================================================ */
.entry { background: var(--background); padding: 48px 0; }
.entry-card {
  background: #ffe1c8;
  border-radius: 18px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-1);
}
.entry-card__art {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: var(--radius-xl);
  background: #ffd0ad;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.entry-card__body { flex: 1; min-width: 0; }
.entry-card__eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #e21b22;
  margin-bottom: 6px;
}
.entry-card__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.entry-card__text { font-size: 16px; color: var(--text-secondary); margin: 0; }
.entry-card__btn {
  flex: 0 0 auto;
  background: #e11d2a;
  color: #fff6f1;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.06s ease;
}
.entry-card__btn:hover { background: #c8121e; }
.entry-card__btn:active { transform: translateY(1px); }

/* ============================================================
   SECTION 4 — ARTICLES (3 in a row)
   ============================================================ */
.articles { background: var(--background); padding: 48px 0; }
.articles__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.articles__title { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; margin: 0; }
.articles__explore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}
.articles__explore:hover { color: var(--accent); }

.articles__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card { text-decoration: none; display: flex; flex-direction: column; }
.card__media {
  width: 100%;
  aspect-ratio: 312 / 175;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media img { transition: transform 0.3s ease; }
.card__body { padding: 12px 0 0; }
.card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.2px;
  margin: 0 0 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover .card__title { color: var(--accent); }
.card__excerpt {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   SECTION 6 — FAQ (accordion · Figma 60:1743)
   ============================================================ */
.faq-sec { background: var(--background); padding: 48px 0; }
.faqs { display: flex; flex-direction: column; }
.faqs__item {
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
}
.faqs__item:last-child { border-bottom: none; }
.faqs__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 12px;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}
.faqs__q::-webkit-details-marker { display: none; }
.faqs__q::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 2px solid #253341;
  border-bottom: 2px solid #253341;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}
.faqs__item[open] > .faqs__q::after { transform: rotate(-135deg); margin-top: 2px; }

/* Expanded item — grey card, underline under question, then answer */
.faqs__item[open] {
  background: #f5f5f5;
  border-bottom-color: transparent;
  padding-bottom: 4px;
}
.faqs__item[open] > .faqs__q {
  color: #253341;
  border-bottom: 1px solid var(--border-alt);
  margin: 0 4px;
  padding-left: 12px;
  padding-right: 12px;
}
.faqs__a { padding: 12px 16px 16px; }
.faqs__a p { font-size: 16px; line-height: 1.6; color: #253341; margin: 0; }

/* ============================================================
   SECTION 7 — FOOTER
   ============================================================ */
.footer {
  background: #2a2727;
  color: #fff;
  text-align: center;
  padding: 48px 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  /* Stack the two cards: form on top, illustration/calendar below */
  .calc-grid { grid-template-columns: 1fr; }
  .calc-illus img { max-height: 200px; }
}

@media (max-width: 720px) {
  .cal-nav__label { min-width: 110px; font-size: 14px; }
  .tool__title { font-size: 22px; }
  .articles__row { grid-template-columns: 1fr; gap: 24px; }
  .card__media { aspect-ratio: 16 / 9; }
  .entry-card { flex-direction: column; text-align: center; }
  .entry-card__btn { width: 100%; text-align: center; }
  .editorial__title { font-size: 22px; }
}

@media (max-width: 520px) {
  .calc-form__row { flex-direction: column; align-items: stretch; }
  .calc-form__cycle { align-self: flex-start; }
  .calc--result .calc-stats { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid #d8d5d5; }
  .stat-card:last-child { border-bottom: none; }
}

@media (max-width: 420px) {
  .cal-grid, .cal-weekdays { gap: 4px; }
}
