.heat-cycle-page {
  --heat-ink: #173b36;
  --heat-green: #176b5b;
  --heat-green-dark: #105347;
  --heat-green-soft: #e7f3ef;
  --heat-rose: #9b3d55;
  --heat-rose-soft: #f8e9ed;
  --heat-gold: #916218;
  --heat-gold-soft: #fff4d9;
  --heat-blue: #285f9c;
  --heat-border: #cad8d5;
  --heat-text: #172334;
}

.heat-cycle-page main {
  overflow: hidden;
}

.heat-cycle-page .card-friendly {
  border-radius: 8px;
}

.heat-cycle-intro,
.heat-cycle-calculator-band {
  background: #eef4f3;
}

.heat-cycle-intro {
  border-bottom: 1px solid var(--heat-border);
}

.heat-cycle-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 2rem;
  align-items: end;
}

.heat-cycle-lead {
  max-width: 850px;
  color: #3c514e;
  font-size: 1.08rem;
}

.heat-cycle-quick-answer {
  max-width: 930px;
  padding-left: 1rem;
  color: #263d39;
  border-left: 4px solid var(--heat-green);
}

.heat-cycle-intro-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--heat-border);
  border-radius: 8px;
}

.heat-cycle-note-icon,
.heat-cycle-form-icon,
.heat-cycle-basis-icon,
.heat-cycle-signs-icon {
  display: inline-flex;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: var(--heat-green);
  background: var(--heat-green-soft);
  border: 1px solid #cbe3dc;
  border-radius: 50%;
  font-size: 1.05rem;
}

.heat-cycle-note-icon .bi,
.heat-cycle-form-icon .bi,
.heat-cycle-basis-icon .bi,
.heat-cycle-signs-icon .bi {
  display: inline-block;
  width: 1em;
  min-width: 1em;
  line-height: 1;
  text-align: center;
}

.heat-cycle-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(660px, 100%);
  min-height: 50px;
  padding: 4px;
  margin-bottom: 1rem;
  background: #dce7e4;
  border: 1px solid #c3d3cf;
  border-radius: 8px;
}

.heat-cycle-mode-tab {
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  color: #3c514e;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-weight: 700;
  line-height: 1.2;
}

.heat-cycle-mode-tab.active {
  color: #ffffff;
  background: var(--heat-ink);
  box-shadow: 0 3px 10px rgba(23, 59, 54, 0.18);
}

.heat-cycle-mode-tab:focus-visible {
  outline: 2px solid var(--heat-blue);
  outline-offset: 2px;
}

.heat-cycle-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  gap: 1.25rem;
  align-items: start;
}

.heat-cycle-form-card,
.heat-cycle-result-card {
  overflow: hidden;
  border-color: var(--heat-border);
}

.heat-cycle-form-card .form-control,
.heat-cycle-form-card .form-select {
  min-height: 48px;
  border-color: #c6d4d1;
  border-radius: 7px;
}

.heat-cycle-form-card .form-control:focus,
.heat-cycle-form-card .form-select:focus {
  border-color: var(--heat-green);
  box-shadow: 0 0 0 0.22rem rgba(23, 107, 91, 0.17);
}

.heat-cycle-form-card hr {
  color: #b6c7c3;
  opacity: 0.75;
}

.heat-cycle-spay-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  min-height: 44px;
  padding: 3px;
  background: #f0f4f3;
  border: 1px solid #cbd8d5;
  border-radius: 7px;
}

.heat-cycle-spay-toggle label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.heat-cycle-spay-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.heat-cycle-spay-toggle span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  color: #435552;
  border-radius: 4px;
  font-weight: 700;
}

.heat-cycle-spay-toggle input:checked + span {
  color: #ffffff;
  background: var(--heat-green);
}

.heat-cycle-spay-toggle input:focus-visible + span,
.heat-cycle-size-option input:focus-visible + span {
  outline: 2px solid var(--heat-blue);
  outline-offset: 2px;
}

.heat-cycle-history-details {
  padding: 0.8rem 0.9rem;
  background: #f7faf9;
  border: 1px solid #d1ddda;
  border-radius: 7px;
}

.heat-cycle-history-details summary,
.heat-cycle-result-details summary {
  min-height: 44px;
  padding-block: 0.55rem;
  color: var(--heat-text);
  cursor: pointer;
  font-weight: 700;
}

.heat-cycle-history-details summary:hover,
.heat-cycle-history-details summary:focus-visible {
  color: var(--heat-green);
}

.heat-cycle-size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.heat-cycle-size-option {
  position: relative;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.heat-cycle-size-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.heat-cycle-size-option > span {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  padding: 0.55rem;
  color: #344b47;
  background: #f8faf9;
  border: 1px solid #cbd8d5;
  border-radius: 7px;
  text-align: center;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.heat-cycle-size-option small {
  display: block;
  color: #61706e;
  font-size: 0.72rem;
  line-height: 1.3;
}

.heat-cycle-size-option input:checked + span {
  color: var(--heat-green-dark);
  background: var(--heat-green-soft);
  border-color: var(--heat-green);
  box-shadow: inset 0 0 0 1px var(--heat-green);
}

.heat-cycle-result-card {
  color: #f7fbfa;
  background: var(--heat-ink);
  border-color: var(--heat-ink);
}

.heat-cycle-result-card .section-label,
.heat-cycle-result-card .text-muted {
  color: #bed3cf !important;
}

.heat-cycle-result-card .h3,
.heat-cycle-result-card .h5 {
  color: #ffffff;
}

.heat-cycle-result-placeholder {
  color: #e5efed;
}

.heat-cycle-result-image {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #d6e5e1;
  border-radius: 6px;
}

.heat-cycle-result-image::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.heat-cycle-result-image picture,
.heat-cycle-result-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.heat-cycle-result-image img {
  object-fit: cover;
  object-position: center 42%;
}

.heat-cycle-result-eyebrow {
  color: #b9d9d2;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heat-cycle-result-primary {
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.14;
}

.heat-cycle-result-sentence {
  color: #dce9e6;
}

.heat-cycle-basis-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  margin: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.heat-cycle-basis-row .heat-cycle-basis-icon {
  color: #d5eee8;
  background: #275b53;
  border-color: #3d7068;
}

.heat-cycle-basis-row .text-uppercase {
  color: #bad1cc;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

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

.heat-cycle-result-facts > div {
  min-width: 0;
  padding-left: 0.75rem;
  border-left: 3px solid #5bb29f;
}

.heat-cycle-result-facts dt {
  color: #bad1cc;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.heat-cycle-result-facts dd {
  margin: 0.15rem 0 0;
  color: #ffffff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.heat-cycle-calendar-wrap {
  padding-top: 0.9rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.heat-cycle-calendar-legend {
  color: #c2d6d2;
  font-size: 0.72rem;
  text-align: right;
}

.heat-cycle-calendar-tabs {
  display: grid;
  grid-template-columns: repeat(var(--heat-calendar-view-count, 1), minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  padding: 3px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}

.heat-cycle-calendar-tab {
  display: grid;
  min-width: 0;
  min-height: 48px;
  gap: 0.05rem;
  align-content: center;
  padding: 0.38rem 0.45rem;
  color: #d7e7e3;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  line-height: 1.2;
  text-align: center;
}

.heat-cycle-calendar-tab span {
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.heat-cycle-calendar-tab small {
  color: #afc8c3;
  font-size: 0.62rem;
}

.heat-cycle-calendar-tab.active {
  color: var(--heat-ink);
  background: #ffffff;
  border-color: #ffffff;
}

.heat-cycle-calendar-tab.active small {
  color: #516b66;
}

.heat-cycle-calendar-tab:focus-visible {
  outline: 2px solid #a8d8cd;
  outline-offset: 2px;
}

.heat-cycle-calendar {
  min-width: 0;
}

.heat-cycle-calendar-month {
  min-width: 0;
}

.heat-cycle-calendar-month h4 {
  margin: 0 0 0.45rem;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.heat-cycle-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.heat-cycle-weekday,
.heat-cycle-calendar-day {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 3px;
  font-size: 0.72rem;
  line-height: 1;
}

.heat-cycle-weekday {
  aspect-ratio: auto;
  min-height: 1.2rem;
  color: #afc8c3;
  font-size: 0.62rem;
  font-weight: 700;
}

.heat-cycle-calendar-day {
  color: #e5efed;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid transparent;
}

.heat-cycle-calendar-day.is-empty {
  background: transparent;
}

.heat-cycle-calendar-day.is-range {
  color: #173b36;
  background: #a8d8cd;
}

.heat-cycle-calendar-day.is-prepare {
  color: #2f220b;
  background: #f8d991;
  border-color: #ffedbd;
  font-weight: 800;
}

.heat-cycle-calendar-day.is-boundary {
  color: #ffffff;
  background: var(--heat-rose);
  border-color: #e9a8b8;
  font-weight: 800;
}

.heat-cycle-calendar-day.is-midpoint {
  color: #ffffff;
  background: var(--heat-blue);
  border-color: #9bbde3;
  font-weight: 800;
}

.heat-cycle-caution {
  padding: 0.75rem 0 0.75rem 0.85rem;
  margin-top: 1rem;
  color: #fff1ce;
  border-left: 3px solid #e9be5b;
}

.heat-cycle-result-details {
  padding-top: 0.8rem;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.heat-cycle-result-details summary {
  color: #ffffff;
}

.heat-cycle-result-details p {
  padding-top: 0.6rem;
  color: #d9e7e4;
  font-size: 0.88rem;
}

.heat-cycle-result-card .btn-outline-primary {
  min-height: 44px;
  color: #ffffff;
  background: transparent;
  border-color: #a9c7c0;
  border-radius: 6px;
  font-weight: 700;
}

.heat-cycle-result-card .btn-outline-primary .bi {
  display: inline-block;
  width: 1em;
  min-width: 1em;
  color: currentColor;
  line-height: 1;
}

.heat-cycle-result-card .btn-outline-primary:hover,
.heat-cycle-result-card .btn-outline-primary:focus-visible {
  color: var(--heat-ink);
  background: #ffffff;
  border-color: #ffffff;
}

.heat-cycle-facts-section {
  padding-top: 0;
  background: #eef4f3;
}

.heat-cycle-fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #ffffff;
  border-top: 1px solid var(--heat-border);
  border-bottom: 1px solid var(--heat-border);
}

.heat-cycle-fact-strip > div {
  display: flex;
  min-width: 0;
  gap: 0.8rem;
  align-items: center;
  padding: 1.1rem;
}

.heat-cycle-fact-strip > div + div {
  border-left: 1px solid var(--heat-border);
}

.heat-cycle-fact-strip > div > span {
  flex: 0 0 auto;
  color: var(--heat-green-dark);
  font-size: 1.02rem;
  font-weight: 800;
}

.heat-cycle-fact-strip p {
  display: grid;
  min-width: 0;
  margin: 0;
  line-height: 1.35;
}

.heat-cycle-fact-strip small {
  color: #657572;
}

.heat-cycle-context-list {
  border-top: 3px solid var(--heat-green);
}

.heat-cycle-context-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 0.65fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--heat-border);
}

.heat-cycle-context-list span {
  color: #526461;
}

.heat-cycle-first-section {
  background: #f7f1f3;
  border-top: 1px solid #ead7dc;
  border-bottom: 1px solid #ead7dc;
}

.heat-cycle-first-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 3px solid var(--heat-rose);
}

.heat-cycle-first-timeline > div {
  min-width: 0;
  padding: 0.9rem;
}

.heat-cycle-first-timeline > div + div {
  border-left: 1px solid #dfc7ce;
}

.heat-cycle-first-timeline span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--heat-rose);
  font-weight: 800;
}

.heat-cycle-first-timeline p {
  margin: 0;
  color: #4f4c4d;
  font-size: 0.9rem;
}

.heat-cycle-stage-table {
  min-width: 720px;
}

.heat-cycle-stage-table thead th {
  color: #ffffff;
  background: var(--heat-ink);
  border-color: #31554f;
}

.heat-cycle-stage-table tbody th {
  color: var(--heat-green-dark);
  background: var(--heat-green-soft);
}

.heat-cycle-stage-table th,
.heat-cycle-stage-table td {
  padding: 0.85rem;
}

.heat-cycle-signs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--heat-border);
  border-bottom: 1px solid var(--heat-border);
}

.heat-cycle-signs-grid > section {
  min-width: 0;
  padding: 1.25rem 1.25rem 1.25rem 0;
}

.heat-cycle-signs-grid > section + section {
  padding-right: 0;
  padding-left: 1.25rem;
  border-left: 1px solid var(--heat-border);
}

.heat-cycle-signs-grid .heat-cycle-signs-icon {
  margin-bottom: 0.75rem;
}

.heat-cycle-signs-grid li + li,
.heat-cycle-emergency-callout li + li,
.heat-cycle-limit-list li + li {
  margin-top: 0.35rem;
}

.heat-cycle-safety-section {
  background: #fff8e8;
  border-top: 1px solid #ead9ad;
  border-bottom: 1px solid #ead9ad;
}

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

.heat-cycle-spayed-callout,
.heat-cycle-emergency-callout {
  min-width: 0;
  padding-left: 1rem;
}

.heat-cycle-spayed-callout {
  border-left: 4px solid var(--heat-blue);
}

.heat-cycle-emergency-callout {
  border-left: 4px solid var(--heat-rose);
}

.heat-cycle-formula {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--heat-border);
  border-bottom: 1px solid var(--heat-border);
}

.heat-cycle-formula code {
  display: block;
  color: #28433e;
  white-space: normal;
  overflow-wrap: anywhere;
}

.heat-cycle-limit-list {
  padding: 1rem 0 1rem 1rem;
  border-left: 4px solid var(--heat-gold);
}

.heat-cycle-faq-section {
  background: #eef4f3;
  border-top: 1px solid var(--heat-border);
  border-bottom: 1px solid var(--heat-border);
}

.heat-cycle-related {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--heat-border);
  border-bottom: 1px solid var(--heat-border);
}

.heat-cycle-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.heat-cycle-related-links a {
  display: inline-flex;
  min-height: 42px;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  color: var(--heat-green-dark);
  background: #ffffff;
  border: 1px solid var(--heat-border);
  border-radius: 6px;
  font-weight: 700;
}

.heat-cycle-related-links a:hover,
.heat-cycle-related-links a:focus-visible {
  color: #ffffff;
  background: var(--heat-green);
  border-color: var(--heat-green);
}

.heat-cycle-page #sources-used .disclaimer {
  color: #5f6f80;
}

@media (max-width: 991.98px) {
  .heat-cycle-intro-grid,
  .heat-cycle-tool-grid {
    grid-template-columns: 1fr;
  }

  .heat-cycle-intro-grid {
    gap: 1.25rem;
  }

  .heat-cycle-result-card {
    min-height: 0;
  }

  .heat-cycle-first-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heat-cycle-first-timeline > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #dfc7ce;
  }

  .heat-cycle-first-timeline > div:nth-child(4) {
    border-top: 1px solid #dfc7ce;
  }

  .heat-cycle-related {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .heat-cycle-mode-tabs {
    width: 100%;
  }

  .heat-cycle-mode-tab {
    padding-inline: 0.35rem;
    font-size: 0.86rem;
  }

  .heat-cycle-size-grid,
  .heat-cycle-fact-strip,
  .heat-cycle-signs-grid,
  .heat-cycle-safety-grid {
    grid-template-columns: 1fr 1fr;
  }

  .heat-cycle-size-option > span {
    min-height: 66px;
  }

  .heat-cycle-fact-strip > div {
    display: grid;
  }

  .heat-cycle-fact-strip > div:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--heat-border);
    border-left: 0;
  }

  .heat-cycle-signs-grid > section,
  .heat-cycle-signs-grid > section + section {
    padding: 1rem 0;
    border-left: 0;
  }

  .heat-cycle-signs-grid > section + section {
    border-top: 1px solid var(--heat-border);
  }

  .heat-cycle-signs-grid,
  .heat-cycle-safety-grid {
    grid-template-columns: 1fr;
  }

  .heat-cycle-result-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .heat-cycle-result-primary {
    font-size: 1.65rem;
  }

  .heat-cycle-intro-note {
    display: grid;
  }

  .heat-cycle-spay-toggle {
    display: grid;
    width: 100%;
  }

  .heat-cycle-calendar-legend {
    max-width: 52%;
  }

  .heat-cycle-first-timeline {
    grid-template-columns: 1fr;
  }

  .heat-cycle-first-timeline > div + div,
  .heat-cycle-first-timeline > div:nth-child(3) {
    border-top: 1px solid #dfc7ce;
    border-left: 0;
  }

  .heat-cycle-context-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .heat-cycle-fact-strip {
    grid-template-columns: 1fr;
  }

  .heat-cycle-fact-strip > div + div,
  .heat-cycle-fact-strip > div:nth-child(3) {
    grid-column: auto;
    border-top: 1px solid var(--heat-border);
    border-left: 0;
  }

  .heat-cycle-result-card .card-body,
  .heat-cycle-form-card .card-body {
    padding: 1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heat-cycle-mode-tab,
  .heat-cycle-size-option > span {
    transition: none;
  }
}

@media print {
  .heat-cycle-page .site-navbar,
  .heat-cycle-page .site-footer,
  .heat-cycle-page .heat-cycle-intro,
  .heat-cycle-page .heat-cycle-mode-tabs,
  .heat-cycle-page .heat-cycle-form-card,
  .heat-cycle-page .heat-cycle-facts-section,
  .heat-cycle-page #heatResultActions,
  .heat-cycle-page main > section:not(.heat-cycle-calculator-band) {
    display: none !important;
  }

  .heat-cycle-page,
  .heat-cycle-page .heat-cycle-calculator-band {
    background: #ffffff !important;
  }

  .heat-cycle-tool-grid {
    display: block;
  }

  .heat-cycle-result-card {
    color: #111111;
    background: #ffffff;
    border: 1px solid #777777;
    box-shadow: none;
  }

  .heat-cycle-result-card .section-label,
  .heat-cycle-result-card .text-muted,
  .heat-cycle-result-card .h3,
  .heat-cycle-result-card .h5,
  .heat-cycle-result-primary,
  .heat-cycle-result-sentence,
  .heat-cycle-basis-row .text-uppercase,
  .heat-cycle-result-facts dt,
  .heat-cycle-result-facts dd,
  .heat-cycle-calendar-month h4,
  .heat-cycle-weekday,
  .heat-cycle-calendar-day,
  .heat-cycle-result-details summary,
  .heat-cycle-result-details p {
    color: #111111 !important;
  }

  .heat-cycle-result-placeholder {
    display: none !important;
  }

  .heat-cycle-calendar-day {
    border: 1px solid #bbbbbb;
  }
}
