/* ============================================================
   Pregnancy Due Date Calculator — TOI Parenting
   Design tokens sourced from parenting-homepage-DESIGN.md
   Font: Rethink Sans · Accent: #ae4e00 · Base unit: 2px
   Shared site chrome (header, nav, cards, FAQ, footer) kept
   consistent with the Ovulation & Period Tracker POC.
   ============================================================ */

:root {
  /* Color */
  --text-primary: #2a2727;
  --text-secondary: #4c4949;
  --text-tertiary: #8a8a8a;
  --background: #ffffff;
  --background-alt: #fdfdfd;
  --background-3: #fff6f1;     /* peach hero wash */
  --accent: #ae4e00;           /* burnt orange — primary accent */
  --accent-warm: #e8744f;      /* week badge / progress */
  --accent-4: #fff0e0;         /* soft orange surface */
  --accent-3: #f5e6d7;
  --accent-alt: #e21b22;       /* red — CTA / brand */
  --accent-red: #e11d2a;
  --accent-5: #ffeae2;         /* soft red surface */
  --border: #cdcbcb;
  --border-alt: #cccccc;
  --border-soft: #ebeaea;
  --surface: #ececec;
  --surface-alt: #f5f3f3;

  /* 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;
}

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

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

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

/* ============================================================
   SECTION SHELLS
   ============================================================ */
.tool__inner,
.care__inner,
.faq-sec__inner,
.community__inner,
.articles__inner,
.mc__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); }

/* ============================================================
   SECTION 1 — TOOL HERO (calculator)
   ============================================================ */
.tool {
  background:
    radial-gradient(120% 90% at 85% 0%, var(--accent-5) 0%, rgba(255,234,226,0) 55%),
    linear-gradient(180deg, var(--background-3) 0%, var(--background) 78%);
  padding: 36px 0 44px;
}

/* Title block */
.tool-head {
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 16px;
  margin-bottom: 28px;
}
.tool-head__eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.tool-head__title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0;
  color: var(--text-primary);
}
.tool-head__title em {
  font-style: italic;
  color: var(--accent-alt);
}

/* Calculator grid */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* ---- INPUT CARD ---- */
.calc-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.field { display: flex; flex-direction: column; }
.field[hidden] { display: none; }   /* [hidden] must beat .field{display:flex} */
.field--grow { flex: 1; min-width: 0; }
.field__label { white-space: nowrap; }
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.req { color: var(--accent-alt); margin-left: 1px; }

/* ---- Custom dropdown (Figma 60:2032) ---- */
.cselect { position: relative; }
.cselect__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
}
.cselect__trigger:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(174, 78, 0, 0.15); }
.cselect.is-open .cselect__trigger { border-color: var(--accent); }
.cselect__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect__chev { color: var(--text-secondary); flex: 0 0 auto; transition: transform 0.2s ease; }
.cselect.is-open .cselect__chev { transform: rotate(180deg); }

.cselect__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--background);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  display: none;
}
.cselect.is-open .cselect__menu { display: block; animation: pop 0.14s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.cselect__opt {
  font-size: 15px;
  color: var(--text-primary);
  padding: 11px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.cselect__opt:hover { background: var(--surface-alt); }
.cselect__opt.is-selected { background: var(--accent-4); color: var(--accent); font-weight: 600; }

/* ---- Custom date picker (Figma 60:2107) ---- */
.cdate { position: relative; }
.cdate__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
}
.cdate__trigger:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(174, 78, 0, 0.15); }
.cdate.is-open .cdate__trigger { border-color: var(--accent); }
.cdate__ic { color: var(--accent); flex: 0 0 auto; }
.cdate__value { white-space: nowrap; }

.cal {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: var(--background);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
  padding: 16px;
  display: none;
}
.cdate.is-open .cal { display: block; animation: pop 0.14s ease; }
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal__month { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.cal__nav { display: flex; gap: 4px; }
.cal__navbtn {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text-secondary);
  font-size: 14px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cal__navbtn:hover { background: var(--accent-4); color: var(--accent); border-color: var(--accent); }
.cal__weekdays,
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__weekdays {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 8px;
  margin-bottom: 6px;
}
.cal__weekdays span {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.cal__day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-primary);
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.cal__day:hover { background: var(--accent-4); color: var(--accent); }
.cal__day--empty { visibility: hidden; cursor: default; }
.cal__day--muted { color: var(--border-alt); }
.cal__day--today { box-shadow: inset 0 0 0 1px var(--accent); }
.cal__day--selected,
.cal__day--selected:hover {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.cal__day:disabled { color: #d8d5d5; cursor: not-allowed; background: none; }

/* Mini stepper (cycle length / gestational age) */
.field--stepper { flex: 0 0 auto; }
.mini-step {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background-alt);
  padding: 6px 8px;
  height: 47px;
}
.mini-step__btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--accent);
  font-size: 18px; font-weight: 700; line-height: 1;
  cursor: pointer;
}
.mini-step__btn:hover { background: var(--accent-4); border-color: var(--accent); }
.mini-step__value {
  min-width: 64px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.mini-step__value b { font-size: 16px; font-weight: 700; color: var(--text-primary); }

.field__error { color: var(--accent-alt); font-size: 13px; margin: -6px 0 0; }

/* Calculate button */
.btn-calc {
  margin-top: auto;
  align-self: flex-start;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff6f1;
  background: var(--accent-alt);
  border: none;
  border-radius: var(--radius-full);
  padding: 13px 30px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.06s ease;
}
.btn-calc:hover { background: #c8121e; }
.btn-calc:active { transform: translateY(1px); }

/* ---- RESULT CARD ---- */
.result {
  background: var(--background);
  border: 1px solid var(--accent-3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.result__label { font-size: 13px; font-weight: 600; color: var(--text-tertiary); }
.result__date {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--accent);
  margin: 4px 0 6px;
  line-height: 1.1;
}
.result__basis { font-size: 14px; color: var(--text-secondary); margin: 0 0 26px; }

/* Progress bar with floating Week badge */
.progress { position: relative; margin: auto 0 20px; padding-top: 34px; }
.progress__badge {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: var(--accent-warm);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: left 0.5s ease;
}
.progress__badge::after {
  content: "";
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--accent-warm);
}
.progress__track {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--surface);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-warm), var(--accent));
  transition: width 0.5s ease;
}
.progress__pct {
  position: absolute;
  right: 0; top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
}

/* Trimester segments */
.trimesters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.trimester {
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--background-alt);
  border: 1px solid var(--border-soft);
}
.trimester.is-current {
  background: var(--accent-4);
  border-color: var(--accent);
}
.trimester__name { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.trimester__weeks { display: block; font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }

/* ---- STAT STRIP ---- */
.statstrip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--background);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.statstrip__cell {
  padding: 22px 24px;
  border-left: 1px solid var(--border-soft);
}
.statstrip__cell:first-child { border-left: none; }
.statstrip__value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}
.statstrip__label {
  display: block;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ============================================================
   SECTION 2 — PREGNANCY CARE (numbered columns)
   ============================================================ */
.care { background: var(--background); padding: 48px 0; }

.gtk { display: grid; grid-template-columns: repeat(3, 1fr); }
.gtk__item { padding: 4px 24px; }
.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: #d9d9d9;
}
.gtk__line {
  display: block;
  width: 32px;
  height: 3px;
  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; }

/* ============================================================
   SECTION 3 — FAQ (accordion)
   ============================================================ */
.faq-sec { background: var(--background); padding: 8px 0 48px; }
.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: 16px;
  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; }
.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: 14px; line-height: 1.6; color: #253341; margin: 0; }

/* ============================================================
   SECTION 4 — COMMUNITY (Question of the day)
   ============================================================ */
.community { background: var(--background); padding: 8px 0 40px; }
.qotd {
  background: var(--accent-4);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.qotd__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-alt);
  margin-bottom: 8px;
}
.qotd__toi {
  background: var(--accent-alt);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.qotd__q {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  max-width: 44ch;
  line-height: 1.3;
}
.qotd__action { flex: 0 0 auto; text-align: center; }
.qotd__btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff6f1;
  background: var(--accent-red);
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.06s ease;
}
.qotd__btn:hover { background: #c8121e; }
.qotd__btn:active { transform: translateY(1px); }
.qotd__count { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 8px; }

/* ============================================================
   SECTION 5 — ARTICLES (3 in a row)
   ============================================================ */
.articles { background: var(--background); padding: 8px 0 40px; }
.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: 12px;
  overflow: hidden;
  background: var(--surface);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 12px 0 0; }
.card__title {
  font-size: 18px;
  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: 14px;
  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 — MASTERCLASS CAROUSEL + More on TOI
   ============================================================ */
.mc { background: var(--background); padding: 8px 0 48px; }
.mc-card {
  position: relative;
  background: var(--surface-alt);
  border-radius: var(--radius-xl);
  padding: 28px 56px;
  overflow: hidden;
}
.mc-card__viewport { overflow: hidden; }
.mc-card__track {
  display: flex;
  transition: transform 0.35s ease;
}
.mc-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
}
.mc-slide__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e7e2db, #d7d0c6);
}
.mc-slide__pill {
  display: inline-block;
  background: var(--text-primary);
  color: var(--background-alt);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.mc-slide__title { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 10px; line-height: 1.2; }
.mc-slide__text { font-size: 15px; line-height: 1.55; color: var(--text-secondary); margin: 0 0 18px; }
.mc-slide__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-red);
  background: var(--background);
  border: 1.5px solid var(--accent-red);
  border-radius: var(--radius-full);
  padding: 11px 24px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.mc-slide__btn:hover { background: var(--accent-red); color: #fff; }

.mc-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--background);
  box-shadow: var(--shadow-1);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.mc-card__nav:hover { background: var(--accent-4); color: var(--accent); }
.mc-card__nav--prev { left: 12px; }
.mc-card__nav--next { right: 12px; }

.more-toi {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.more-toi__label {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-alt);
  line-height: 1.1;
}
.more-toi__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; flex: 1; }
.more-toi__thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--background-alt);
}

/* ============================================================
   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: 900px) {
  .calc { grid-template-columns: 1fr; }
  .gtk { grid-template-columns: 1fr; row-gap: 28px; }
  .gtk__item, .gtk__item:first-child { padding: 0; }
  .gtk__item + .gtk__item { border-left: none; padding-top: 24px; border-top: 1px solid var(--border); }
  .mc-slide { grid-template-columns: 1fr; }
  .mc-slide__media { order: -1; }
}

@media (max-width: 720px) {
  .tool-head__title { font-size: 27px; }
  .statstrip { grid-template-columns: repeat(2, 1fr); }
  .statstrip__cell:nth-child(3) { border-left: none; }
  .statstrip__cell:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
  .qotd { flex-direction: column; align-items: flex-start; }
  .qotd__action { align-self: stretch; text-align: left; }
  .articles__row { grid-template-columns: 1fr; gap: 24px; }
  .card__media { aspect-ratio: 16 / 9; }
  .more-toi__thumbs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .calc-row { flex-direction: column; align-items: stretch; }
  .field--stepper .mini-step { justify-content: space-between; }
  .mc-card { padding: 24px 20px; }
  .mc-card__nav { display: none; }
}
