/**
 * Life-forecast report — Dawn Vedic (home palette)
 * Cream paper · maroon #8C2A3A · gold #C89B3C · bronze kickers
 * Possibility-first cards, month timelines, forecast-quality graphs.
 */

.forecast-page,
.timing-page.forecast-page {
  --fr-ink: #2A2117;
  --fr-ink-soft: #4A1B0C;
  --fr-muted: #6B5A44;
  --fr-kicker: #854F0B;
  --fr-maroon: #8C2A3A;
  --fr-maroon-deep: #6E1F2B;
  --fr-gold: #C89B3C;
  --fr-saffron: #E8A33D;
  --fr-sage: #5D7A4E;
  --fr-rose: #A33B3B;
  --fr-line: #E6DCC6;
  --fr-paper: #FFFDF8;
  --fr-cream: #F6F1E7;
  --fr-sand: #EFE2CE;
  /* No soft blur shadows on Forecast pages — flat cream cards only */
  --fr-shadow: none;
  color: var(--fr-ink);
}

/* ── Hero ── */
.forecast-page .tm-hero {
  padding-bottom: 0.5rem;
}
.forecast-page .tm-hero .eyebrow {
  color: var(--fr-kicker) !important;
  letter-spacing: 0.15em;
  font-weight: 800;
}
.forecast-page .tm-hero h1 {
  color: #3C1219 !important;
}
.forecast-page .tm-lead {
  color: var(--fr-muted) !important;
}
.forecast-page .tm-lead strong {
  color: var(--fr-ink-soft) !important;
}

/* ── Form panel ── */
.forecast-page .tm-form {
  background: var(--fr-paper) !important;
  border: 1px solid var(--fr-line) !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--fr-ink) !important;
}
.forecast-page .tm-form h2,
.forecast-page .tm-form-h2 {
  color: #3C1219 !important;
}
.forecast-page .tm-analysis-controls__hint,
.forecast-page .tm-category-desc,
.forecast-page .tm-muted {
  color: var(--fr-muted) !important;
}
.forecast-page .tm-life-selector {
  color: var(--fr-kicker) !important;
}
.forecast-page .tm-life-selector select {
  border: 1px solid var(--fr-line) !important;
  border-radius: 10px !important;
  color: var(--fr-ink) !important;
  background: #FFF8EC !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #854F0B 50%),
    linear-gradient(135deg, #854F0B 50%, transparent 50%),
    linear-gradient(180deg, #FFFDF8, #FFF8EC) !important;
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px),
    0 0 !important;
  background-size: 5px 5px, 5px 5px, 100% 100% !important;
  background-repeat: no-repeat !important;
}
.forecast-page .tm-life-selector select:focus-visible {
  outline: 2px solid var(--fr-maroon) !important;
  outline-offset: 2px !important;
}
.forecast-page .tm-mode-card {
  border: 1px solid var(--fr-line) !important;
  background: var(--fr-paper) !important;
  color: var(--fr-ink) !important;
}
.forecast-page .tm-mode-card.is-selected {
  border-color: var(--fr-maroon) !important;
  background: #FFF8EC !important;
  box-shadow: 0 0 0 1px var(--fr-maroon) !important;
}
.forecast-page .tm-view-btn.is-active {
  color: #FBEEE8 !important;
  background: var(--fr-maroon) !important;
  border-color: var(--fr-maroon) !important;
}
.forecast-page .button-primary,
.forecast-page .button.button-primary {
  color: #FBEEE8 !important;
  background: var(--fr-maroon) !important;
  border-color: var(--fr-maroon) !important;
}
.forecast-page .button-secondary,
.forecast-page .button.button-secondary {
  color: #4A1B0C !important;
  background: var(--fr-paper) !important;
  border-color: var(--fr-line) !important;
}

/* ── Report shell ── */
.forecast-page .tm-report {
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--fr-paper) !important;
  border: 1px solid var(--fr-line) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--fr-ink) !important;
}

.fr-intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--fr-line);
}

.fr-intro h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  color: #3C1219 !important;
}

.fr-intro p {
  color: var(--fr-muted) !important;
}

.fr-section {
  margin: 1.75rem 0;
}

.fr-section > h2,
.fr-year > h2,
.fr-year__head h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  color: #3C1219 !important;
}

.fr-card-grid,
.fr-area-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 0.85rem;
}

/* ── Full-width forecast shell ── */
body.forecast-page .container {
  max-width: min(1520px, 100%) !important;
  width: 100%;
}
body.forecast-page .tm-layout {
  display: grid !important;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) !important;
  gap: 1.25rem 1.5rem !important;
  align-items: start !important;
  width: 100% !important;
}
body.forecast-page .tm-form {
  width: 100%;
  max-width: none !important;
  min-width: 0;
}
body.forecast-page .tm-report {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}
body.forecast-page .fr-area-grid,
body.forecast-page .fr-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  width: 100%;
}
@media (max-width: 1180px) {
  body.forecast-page .fr-area-grid,
  body.forecast-page .fr-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 900px) {
  body.forecast-page .tm-layout {
    grid-template-columns: 1fr !important;
  }
  body.forecast-page .tm-form {
    position: static !important;
  }
}
@media (max-width: 640px) {
  body.forecast-page .fr-area-grid,
  body.forecast-page .fr-card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Outcome forecast cards ── */
.fr-card {
  border: 1px solid var(--fr-line) !important;
  background: var(--fr-paper) !important;
  color: var(--fr-ink) !important;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.4rem;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  min-width: 0;
}

.fr-card--embedded {
  margin-top: 0.85rem;
}

/* Global [class*="card"] also hits fr-card__* children — strip nested boxes.
   Status pills keep their own chip styles below. */
.fr-card__head,
.fr-card__title,
.fr-card__timing,
.fr-card__label,
.fr-card__list,
.fr-card__list li,
.fr-card__advice,
.fr-card__conf {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.fr-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0 !important;
}
.fr-card__timing,
.fr-card__label,
.fr-card__list,
.fr-card__advice,
.fr-card__conf {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.fr-card__title {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #3C1219 !important;
}

.fr-card__status,
.fr-area__status,
.fr-year__status {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(186, 117, 23, 0.4) !important;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
  color: #854F0B !important;
  background: #FFF4E3 !important;
  box-shadow: none !important;
}

.fr-card__status.is-support,
.fr-area__status.is-support,
.fr-year__status.is-support {
  background: #E7F0E1 !important;
  color: #3E5A34 !important;
  border-color: rgba(93, 122, 78, 0.4) !important;
}

.fr-card__status.is-care,
.fr-area__status.is-care,
.fr-year__status.is-care {
  background: #F7E7E3 !important;
  color: #712B13 !important;
  border-color: rgba(163, 59, 59, 0.35) !important;
  border-style: solid !important;
}

.fr-card__status.is-mixed,
.fr-area__status.is-mixed,
.fr-year__status.is-mixed {
  background: #FBEEDB !important;
  color: #633806 !important;
  border-color: rgba(201, 122, 43, 0.4) !important;
}

.fr-card__timing {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fr-maroon-deep) !important;
}

.fr-card__label {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fr-kicker) !important;
}

.fr-card__list {
  margin: 0.15rem 0 0.35rem 1.1rem;
  padding: 0;
  color: var(--fr-ink);
}

.fr-card__list li {
  margin: 0.2rem 0;
}

.fr-card__advice {
  margin: 0.25rem 0 0;
  font-weight: 600;
  color: var(--fr-ink-soft) !important;
}

.fr-card__conf {
  margin: 0;
  font-size: 0.8rem;
  opacity: 1;
  font-weight: 600;
  color: var(--fr-muted) !important;
}

/* ── Life area detail cards ── */
.fr-area {
  border: 1px solid var(--fr-line) !important;
  background: var(--fr-paper) !important;
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
  display: grid;
  gap: 0.65rem;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--fr-ink) !important;
  min-width: 0;
  align-content: start;
}

/* Embedded outcome strip — no double nested “card” chrome on children */
.fr-area .fr-card--embedded .fr-card__head,
.fr-area .fr-card--embedded .fr-card__timing,
.fr-area .fr-card--embedded .fr-card__label,
.fr-area .fr-card--embedded .fr-card__list,
.fr-area .fr-card--embedded .fr-card__list li,
.fr-area .fr-card--embedded .fr-card__advice,
.fr-area .fr-card--embedded .fr-card__conf {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fr-area .fr-why {
  border: 1px solid var(--fr-line) !important;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  background: #FFF8EC !important;
  margin-top: 0.35rem;
}

.fr-area .fr-why summary {
  list-style: none;
  cursor: pointer;
}

.fr-area__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.fr-area__head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #3C1219 !important;
}

.fr-area__outlook {
  margin: 0;
  line-height: 1.5;
  color: var(--fr-muted) !important;
}

.fr-area__periods {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fr-ink);
}

.fr-area__periods p {
  margin: 0;
}

.fr-area__sections {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.fr-area__section h4 {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--fr-kicker) !important;
}

.fr-area__section p,
.fr-area__value {
  margin: 0;
  line-height: 1.45;
  color: var(--fr-ink) !important;
}

/* Why this prediction */
.fr-why {
  border-top: 1px solid var(--fr-line);
  padding-top: 0.55rem;
  margin-top: 0.35rem;
}

.fr-why summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  list-style: none;
  color: var(--fr-ink-soft) !important;
}

.fr-why summary::-webkit-details-marker {
  display: none;
}

.fr-why summary::before {
  content: "+ ";
  font-weight: 800;
  color: var(--fr-maroon);
}

.fr-why[open] summary::before {
  content: "− ";
}

.fr-why__body {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--fr-muted);
}

.fr-why__body h5 {
  margin: 0.4rem 0 0.1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fr-kicker) !important;
}

.fr-why__body ul {
  margin: 0 0 0 1rem;
  padding: 0;
}

.fr-why__note {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  opacity: 1;
  font-weight: 500;
  color: var(--fr-muted) !important;
}

/* ── Forecast quality charts — tall bars, horizontal scroll ── */
.fr-quality {
  margin-top: 0.5rem;
  padding: 0.95rem 0.85rem 0.85rem;
  border: 1px solid var(--fr-line) !important;
  border-radius: 14px;
  background: #FFF8EC !important;
  background-image: linear-gradient(165deg, #FFFDF8 0%, #F7E3C6 100%) !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.fr-quality__title {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #3C1219 !important;
}

.fr-quality__hint {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--fr-muted) !important;
}

/* Scroll track: fixed-width columns so every day/month is readable */
.fr-quality__chart {
  --fr-col-w: 2.85rem;
  --fr-chart-h: 11.5rem;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-end !important;
  gap: 0.4rem !important;
  grid-template-columns: none !important;
  height: var(--fr-chart-h) !important;
  min-height: var(--fr-chart-h) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0.35rem 0.15rem 0.55rem !important;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.25rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 42, 58, 0.4) transparent;
  box-sizing: border-box;
}

.fr-quality__chart::-webkit-scrollbar {
  height: 5px;
}
.fr-quality__chart::-webkit-scrollbar-thumb {
  background: rgba(140, 42, 58, 0.4);
  border-radius: 999px;
}

/* JS may set --fr-cols; width is driven by flex basis, not squeezed grid */
.fr-quality__chart[data-cols] {
  grid-template-columns: none !important;
}

.fr-quality__col {
  flex: 0 0 var(--fr-col-w) !important;
  flex-shrink: 0 !important;
  width: var(--fr-col-w) !important;
  min-width: var(--fr-col-w) !important;
  max-width: var(--fr-col-w) !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  justify-items: center;
  align-content: stretch;
  gap: 0.2rem;
  scroll-snap-align: start;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.fr-quality__value {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  color: #3C1219 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.fr-quality__bar-track {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.fr-quality__bar {
  display: block !important;
  width: 1.55rem !important;
  min-width: 1.35rem !important;
  max-width: 1.75rem !important;
  height: var(--fr-h, 40%) !important;
  min-height: 0.65rem !important;
  background: linear-gradient(180deg, #C89B3C, #8C2A3A) !important;
  background-color: #8C2A3A !important;
  background-image: linear-gradient(180deg, #C89B3C, #8C2A3A) !important;
  border: 0 !important;
  border-radius: 5px 5px 2px 2px !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
}

.fr-quality__col.is-support .fr-quality__bar {
  background: linear-gradient(180deg, #5D7A4E, #3E5A34) !important;
  background-color: #5D7A4E !important;
  background-image: linear-gradient(180deg, #5D7A4E, #3E5A34) !important;
  opacity: 1 !important;
}

.fr-quality__col.is-mixed .fr-quality__bar {
  background: linear-gradient(180deg, #E8A33D, #C97A2B) !important;
  background-color: #C97A2B !important;
  background-image: linear-gradient(180deg, #E8A33D, #C97A2B) !important;
  opacity: 1 !important;
}

.fr-quality__col.is-care .fr-quality__bar {
  background: linear-gradient(180deg, #C45A6A, #A33B3B) !important;
  background-color: #A33B3B !important;
  background-image: linear-gradient(180deg, #C45A6A, #A33B3B) !important;
  opacity: 1 !important;
  border: 0 !important;
}

.fr-quality__label {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 0.75rem !important;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip;
  color: var(--fr-muted) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ── Year timeline months ── */
.fr-timeline {
  margin: 1rem 0 1.25rem;
}

.fr-timeline__list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.fr-timeline__item {
  border: 1px solid var(--fr-line) !important;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  display: grid;
  gap: 0.15rem;
  background: var(--fr-paper) !important;
  color: var(--fr-ink) !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.fr-timeline__month {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--fr-kicker) !important;
}

.fr-timeline__theme {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fr-ink) !important;
}

.fr-timeline__item.is-support {
  background: #F3F7F0 !important;
  color: var(--fr-ink) !important;
  border-color: rgba(93, 122, 78, 0.4) !important;
}

.fr-timeline__item.is-support .fr-timeline__month {
  color: #3E5A34 !important;
}

.fr-timeline__item.is-support .fr-timeline__theme {
  color: #2A2117 !important;
}

.fr-timeline__item.is-care {
  border-style: solid !important;
  border-color: rgba(163, 59, 59, 0.35) !important;
  background: #FAECE7 !important;
  box-shadow: none !important;
}

.fr-timeline__item.is-care .fr-timeline__month {
  color: #712B13 !important;
}

.fr-timeline__item.is-mixed {
  border-color: rgba(201, 122, 43, 0.4) !important;
  background: #FFF8EC !important;
}

/* ── Year blocks ── */
.fr-year {
  margin: 2rem 0;
  padding-top: 0.85rem;
  border-top: 2px solid var(--fr-line);
}

.fr-year__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 0.5rem;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.fr-year__head h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #3C1219 !important;
}

.fr-year__summary {
  margin: 0 0 0.75rem;
  line-height: 1.55;
  max-width: 52rem;
  color: var(--fr-muted) !important;
}

.fr-note {
  margin-top: 1.5rem;
  color: var(--fr-muted) !important;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ── Energy / life-score bars on forecast pages ── */
.forecast-page .tm-energy__bar,
.forecast-page .tm-energy__col .tm-energy__fill,
.forecast-page .tm-life-chart__fill,
.forecast-page .tm-free-timer-bar i {
  background: linear-gradient(90deg, #6E1F2B, #C89B3C) !important;
  background-image: linear-gradient(90deg, #6E1F2B, #C89B3C) !important;
  border: 0 !important;
  opacity: 1 !important;
  filter: none !important;
}
.forecast-page .tm-energy__bar-fill {
  background: linear-gradient(90deg, #6E1F2B, #C89B3C) !important;
  background-image: linear-gradient(90deg, #6E1F2B, #C89B3C) !important;
}
.forecast-page .tm-life-score__icon {
  color: #FBEEE8 !important;
  background: linear-gradient(160deg, #6E1F2B, #8C2A3A) !important;
  border-color: rgba(110, 31, 43, 0.25) !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Calendar legend */
.forecast-page .tm-cal-legend__item.is-good .tm-cal-legend__swatch,
.forecast-page .tm-cal-day.is-good {
  background: #E7F0E1 !important;
  border-color: rgba(93, 122, 78, 0.4) !important;
  color: #3E5A34 !important;
}
.forecast-page .tm-cal-legend__item.is-mixed .tm-cal-legend__swatch,
.forecast-page .tm-cal-day.is-mixed {
  background: #FBEEDB !important;
  border-color: rgba(201, 122, 43, 0.4) !important;
  color: #633806 !important;
}
.forecast-page .tm-cal-legend__item.is-bad .tm-cal-legend__swatch,
.forecast-page .tm-cal-day.is-bad {
  background: #F7E7E3 !important;
  border-color: rgba(163, 59, 59, 0.35) !important;
  color: #712B13 !important;
}

/* ══════════════════════════════════════════════════════════════════════
   High-specificity Dawn overrides (beat cosmic-ref / menu-brand neon)
   ══════════════════════════════════════════════════════════════════════ */
body.forecast-page .fr-card,
body.forecast-page .fr-area,
body.forecast-page .fr-quality,
body.forecast-page .fr-timeline__item,
body.forecast-page .tm-report,
body.forecast-page .tm-form,
body.forecast-page .tm-block,
body.forecast-page .tm-hero .container,
body.forecast-page .tm-mode-card,
body.forecast-page .tm-note,
body.forecast-page .fr-year,
body.forecast-page .fr-section,
body.forecast-page .fr-why,
body.forecast-page [class*="card"],
body.forecast-page [class*="panel"],
body.forecast-page [class*="status"],
body.forecast-page [class*="badge"],
body.forecast-page [class*="pill"],
body.forecast-page [class*="chip"],
body.forecast-page em,
body.forecast-page span,
body.forecast-page button,
body.forecast-page article,
body.forecast-page section,
body.forecast-page aside {
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: none !important;
}

body.forecast-page .fr-card,
body.forecast-page .fr-area,
body.forecast-page .fr-quality,
body.forecast-page .fr-timeline__item,
body.forecast-page .tm-report,
body.forecast-page .tm-form,
body.forecast-page .tm-block {
  background: #FFFDF8 !important;
  background-image: none !important;
  border-color: #E6DCC6 !important;
  color: #2A2117 !important;
}

body.forecast-page .fr-quality {
  background: #FFF8EC !important;
  background-image: linear-gradient(165deg, #FFFDF8 0%, #F7E3C6 100%) !important;
  overflow: hidden !important;
}

body.forecast-page .fr-card__status,
body.forecast-page .fr-area__status,
body.forecast-page .fr-year__status {
  color: #854F0B !important;
  background: #FFF4E3 !important;
  border-color: rgba(186, 117, 23, 0.4) !important;
  box-shadow: none !important;
}

body.forecast-page .fr-card__status.is-support,
body.forecast-page .fr-area__status.is-support,
body.forecast-page .fr-year__status.is-support {
  color: #3E5A34 !important;
  background: #E7F0E1 !important;
  border-color: rgba(93, 122, 78, 0.4) !important;
}

body.forecast-page .fr-card__status.is-care,
body.forecast-page .fr-area__status.is-care {
  color: #712B13 !important;
  background: #F7E7E3 !important;
  border-color: rgba(163, 59, 59, 0.35) !important;
}

body.forecast-page .fr-timeline__item.is-support {
  background: #F3F7F0 !important;
  color: #2A2117 !important;
  border-color: rgba(93, 122, 78, 0.4) !important;
}
body.forecast-page .fr-timeline__item.is-support .fr-timeline__month,
body.forecast-page .fr-timeline__item.is-support .fr-timeline__theme {
  color: #2A2117 !important;
}
body.forecast-page .fr-timeline__item.is-support .fr-timeline__month {
  color: #3E5A34 !important;
}

body.forecast-page .fr-quality__bar,
body.forecast-page .fr-quality__col .fr-quality__bar,
body.forecast-page .fr-quality__col.is-support .fr-quality__bar,
body.forecast-page .fr-quality__col.is-care .fr-quality__bar,
body.forecast-page .fr-quality__col.is-mixed .fr-quality__bar {
  opacity: 1 !important;
  filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.forecast-page .fr-quality__bar {
  background: linear-gradient(180deg, #C89B3C, #8C2A3A) !important;
  background-image: linear-gradient(180deg, #C89B3C, #8C2A3A) !important;
}
body.forecast-page .fr-quality__col.is-support .fr-quality__bar {
  background: linear-gradient(180deg, #5D7A4E, #3E5A34) !important;
  background-image: linear-gradient(180deg, #5D7A4E, #3E5A34) !important;
}
body.forecast-page .fr-quality__col.is-mixed .fr-quality__bar {
  background: linear-gradient(180deg, #E8A33D, #C97A2B) !important;
  background-image: linear-gradient(180deg, #E8A33D, #C97A2B) !important;
}
body.forecast-page .fr-quality__col.is-care .fr-quality__bar {
  background: linear-gradient(180deg, #C45A6A, #A33B3B) !important;
  background-image: linear-gradient(180deg, #C45A6A, #A33B3B) !important;
}

body.forecast-page .fr-card__title,
body.forecast-page .fr-area__head h3,
body.forecast-page .fr-year__head h2,
body.forecast-page .fr-section > h2,
body.forecast-page .fr-intro h2 {
  color: #3C1219 !important;
}

body.forecast-page .fr-card__head,
body.forecast-page .fr-area__head,
body.forecast-page .fr-year__head,
body.forecast-page .fr-card__timing,
body.forecast-page .fr-card__label,
body.forecast-page .fr-card__list,
body.forecast-page .fr-card__list li,
body.forecast-page .fr-card__advice,
body.forecast-page .fr-card__conf,
body.forecast-page .fr-card__title {
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.forecast-page .fr-card__head,
body.forecast-page .fr-area__head,
body.forecast-page .fr-year__head {
  padding: 0 !important;
}

/* Chart: tall bars + horizontal scroll (never squeeze all days into one row) */
body.forecast-page .fr-quality__chart {
  --fr-col-w: 2.85rem;
  --fr-chart-h: 11.5rem;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-end !important;
  gap: 0.4rem !important;
  grid-template-columns: none !important;
  height: var(--fr-chart-h) !important;
  min-height: var(--fr-chart-h) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x !important;
  box-shadow: none !important;
  filter: none !important;
}
body.forecast-page .fr-quality__col {
  flex: 0 0 var(--fr-col-w) !important;
  width: var(--fr-col-w) !important;
  min-width: var(--fr-col-w) !important;
  max-width: var(--fr-col-w) !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}
body.forecast-page .fr-quality__value {
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  color: #3C1219 !important;
  box-shadow: none !important;
}
body.forecast-page .fr-quality__bar-track {
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
}
body.forecast-page .fr-quality__bar {
  width: 1.55rem !important;
  min-width: 1.35rem !important;
  max-width: 1.75rem !important;
  height: var(--fr-h, 40%) !important;
  min-height: 0.65rem !important;
}
body.forecast-page .fr-quality__label {
  white-space: nowrap !important;
  overflow: visible !important;
  font-size: 0.75rem !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Monthly day charts: slightly wider columns for day numbers */
body.forecast-page.forecast-page--month .fr-quality__chart {
  --fr-col-w: 2.65rem;
  --fr-chart-h: 12.5rem;
}
body.forecast-page.forecast-page--year .fr-quality__chart {
  --fr-col-w: 3.25rem;
  --fr-chart-h: 12rem;
}

body.forecast-page .container {
  max-width: min(1520px, 100%) !important;
}
body.forecast-page .tm-layout {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) !important;
  width: 100% !important;
}
body.forecast-page .fr-area-grid,
body.forecast-page .fr-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
@media (max-width: 1180px) {
  body.forecast-page .fr-area-grid,
  body.forecast-page .fr-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 900px) {
  body.forecast-page .tm-layout {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  body.forecast-page .fr-area-grid,
  body.forecast-page .fr-card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   MOBILE — full width, minimum edge margin (Monthly / Yearly forecasts)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  body.forecast-page,
  body.timing-page.forecast-page {
    --fr-mobile-gutter: max(8px, env(safe-area-inset-left, 0px));
    --fr-mobile-gutter-r: max(8px, env(safe-area-inset-right, 0px));
  }

  body.forecast-page .page-shell,
  body.forecast-page main,
  body.timing-page.forecast-page .page-shell,
  body.timing-page.forecast-page main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip;
  }

  body.forecast-page .container,
  body.timing-page.forecast-page .container,
  body.forecast-page .tm-layout,
  body.timing-page .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: var(--fr-mobile-gutter, 8px) var(--fr-mobile-gutter-r, 8px) !important;
    box-sizing: border-box !important;
  }

  body.forecast-page .section,
  body.forecast-page .tm-hero,
  body.forecast-page .tm-main,
  body.timing-page .section {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 0 !important;
    margin-inline: 0 !important;
  }

  body.forecast-page .tm-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
  }

  body.forecast-page .tm-form,
  body.forecast-page .tm-report {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 0.9rem 0.75rem !important;
    border-radius: 14px !important;
  }

  body.forecast-page .tm-hero {
    padding-top: 0.75rem !important;
    padding-bottom: 0.35rem !important;
  }

  body.forecast-page .tm-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
    max-width: none !important;
  }

  body.forecast-page .tm-lead {
    font-size: 0.92rem !important;
    max-width: none !important;
  }

  body.forecast-page .fr-area-grid,
  body.forecast-page .fr-card-grid,
  body.forecast-page .fr-timeline__list {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  body.forecast-page .fr-card,
  body.forecast-page .fr-area,
  body.forecast-page .fr-quality,
  body.forecast-page .fr-timeline__item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.85rem 0.75rem !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
  }

  /* Mobile: keep tall bars + horizontal swipe across all days/months */
  body.forecast-page .fr-quality {
    overflow: hidden !important;
    padding: 0.85rem 0.65rem 0.75rem !important;
  }

  body.forecast-page .fr-quality__chart {
    --fr-col-w: 2.75rem;
    --fr-chart-h: 12.75rem;
    display: flex !important;
    flex-flow: row nowrap !important;
    grid-template-columns: none !important;
    gap: 0.45rem !important;
    height: var(--fr-chart-h) !important;
    min-height: var(--fr-chart-h) !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    padding-bottom: 0.65rem !important;
  }

  body.forecast-page.forecast-page--month .fr-quality__chart {
    --fr-col-w: 2.55rem;
    --fr-chart-h: 13.25rem;
  }

  body.forecast-page .fr-quality__col {
    flex: 0 0 var(--fr-col-w) !important;
    width: var(--fr-col-w) !important;
    min-width: var(--fr-col-w) !important;
    max-width: var(--fr-col-w) !important;
    height: 100% !important;
  }

  body.forecast-page .fr-quality__value {
    font-size: 0.75rem !important;
  }

  body.forecast-page .fr-quality__label {
    font-size: 0.75rem !important;
    overflow: visible !important;
  }

  body.forecast-page .fr-quality__bar {
    width: 1.45rem !important;
    min-width: 1.25rem !important;
    max-width: 1.65rem !important;
    height: var(--fr-h, 40%) !important;
    min-height: 0.7rem !important;
  }

  /* Allow chart scroller to work inside clipped page shell */
  body.forecast-page .tm-report,
  body.forecast-page .fr-section,
  body.forecast-page .fr-area {
    overflow-x: visible !important;
  }

  body.forecast-page .button-primary,
  body.forecast-page .button.button-primary,
  body.forecast-page .tm-form button[type="submit"] {
    width: 100% !important;
  }

  body.forecast-page .tm-selector-row,
  body.forecast-page .tm-age-row,
  body.forecast-page .tm-mode-grid {
    grid-template-columns: 1fr !important;
  }

  body.forecast-page .site-footer .container {
    padding-inline: var(--fr-mobile-gutter, 8px) var(--fr-mobile-gutter-r, 8px) !important;
  }
}

@media (max-width: 380px) {
  body.forecast-page,
  body.timing-page.forecast-page {
    --fr-mobile-gutter: max(6px, env(safe-area-inset-left, 0px));
    --fr-mobile-gutter-r: max(6px, env(safe-area-inset-right, 0px));
  }

  body.forecast-page .tm-form,
  body.forecast-page .tm-report,
  body.forecast-page .fr-card,
  body.forecast-page .fr-area {
    padding: 0.75rem 0.6rem !important;
  }
}

/* Yearly Forecast — purchased 12-month window picker */
.yf-window-panel {
  margin: 1rem 0 0.25rem;
}

.yf-window-list {
  display: grid;
  gap: 0.65rem;
}

.yf-window-list__label {
  margin: 0;
  color: var(--fr-kicker, #854F0B);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.yf-window-option,
.yf-window-card {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  padding: 0.9rem 1rem;
  text-align: left;
  color: var(--fr-ink, #2A2117);
  background: var(--fr-paper, #FFFDF8);
  border: 1px solid var(--fr-line, #E6DCC6);
  border-radius: 12px;
}

.yf-window-option {
  cursor: pointer;
}

.yf-window-option strong,
.yf-window-card h3 {
  margin: 0;
  font: 700 1.05rem/1.3 "Cormorant Garamond", Georgia, serif;
  color: #3C1219;
}

.yf-window-option span,
.yf-window-card p {
  margin: 0;
  color: var(--fr-muted, #6B5A44);
  font-size: 0.9rem;
}

.yf-window-option.is-active {
  border-color: #8C2A3A;
  box-shadow: inset 0 0 0 1px #8C2A3A;
}

.yf-window-card--update {
  margin-top: 0.85rem;
  background: linear-gradient(165deg, #FFF8EC 0%, #F7E3C6 100%);
  border-color: rgba(200, 155, 60, 0.45);
}

.yf-window-card .eyebrow {
  margin: 0 0 0.2rem;
}

.yf-window-buy {
  margin-top: 0.65rem;
  justify-self: start;
}
