/* Righttime homepage panel, scoped to .bg-righttime. */
.bg-righttime {
  max-width: var(--bg-max, 960px);
  margin: 48px auto;
  color: var(--color-text-primary, #1f2933);
  background: var(--color-bg-surface, #fff);
  border: 1px solid rgba(0, 114, 153, .28);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(14, 42, 54, .10);
  overflow: hidden;
}

.bg-righttime__header {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 100px;
  padding: 22px 28px;
  background: linear-gradient(160deg, #1b4e5e 0%, #0a1b22 100%);
}

.bg-righttime__summary-mark {
  flex: 0 0 38px;
  height: 38px;
  object-fit: contain;
}

.bg-righttime__summary-copy { min-width: 0; }
.bg-righttime__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #70c6d7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bg-righttime__summary-title {
  display: block;
  color: #fff;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.15;
}

.bg-righttime__body { padding: 22px 28px 0; }
.bg-righttime__intro { max-width: 720px; margin: 0 auto 18px; text-align: center; }
.bg-righttime__intro p { margin: 0; color: #53636b; font-size: 15px; line-height: 1.5; }

.bg-righttime__controls { border: 1px solid #d4e0e3; border-radius: 14px; overflow: hidden; background: #fff; }
.bg-righttime__topline { display: flex; align-items: end; gap: 16px; padding: 18px 20px 0; }
.bg-righttime__person { flex: 1 1 auto; }
.bg-righttime__country { flex: 0 0 230px; }
.bg-righttime__label { display: block; margin: 0 0 6px; color: #263942; font-size: 12px; font-weight: 800; }
.bg-righttime__optional { color: #73838a; font-weight: 500; }

.bg-righttime__person-options { display: inline-flex; padding: 3px; border: 1px solid #c5d2d6; border-radius: 9px; background: #f3f6f6; }
.bg-righttime__person-button {
  min-width: 84px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 7px 14px;
  color: #53636b;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.bg-righttime__person-button[aria-pressed="true"] { color: #fff; background: #007299; box-shadow: 0 2px 5px rgba(0,114,153,.2); }
.bg-righttime__person-button:focus-visible { outline: 3px solid rgba(0,114,153,.3); outline-offset: 2px; }

.bg-righttime select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bfcdd2;
  border-radius: 8px;
  padding: 0 34px 0 11px;
  color: #172c35;
  background: #fff;
  font-size: 15px;
}

.bg-righttime__question-row { display: flex; align-items: end; gap: 14px; padding: 18px 20px 20px; }
.bg-righttime__current-age { flex: 0 0 160px; }
.bg-righttime__target-age { flex: 1 1 auto; }
.bg-righttime[data-person="man"] .bg-righttime__current-age { display: none; }

.bg-righttime__submit {
  flex: 0 0 auto;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  background: #007299;
  box-shadow: 0 3px 8px rgba(0,114,153,.22);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.bg-righttime__submit:hover { background: #005f7f; }
.bg-righttime__submit:focus-visible { outline: 3px solid rgba(0,114,153,.3); outline-offset: 2px; }

.bg-righttime__pill { display: inline-block; margin: 0 20px 17px; padding: 5px 10px; color: #005f7f; background: #e5f2f4; border-radius: 999px; font-size: 11px; font-weight: 800; }
.bg-righttime__status { margin: 0 20px 18px; color: #6b3940; font-size: 13px; }
.bg-righttime__status:empty { display: none; }

.bg-righttime__results { border-top: 1px solid #dde6e8; padding: 20px; background: #fbfcfb; }
.bg-righttime__results[hidden] { display: none; }
.bg-righttime__result-heading { margin: 0 0 14px; color: #0e2a36; font-size: 17px; font-weight: 900; }
.bg-righttime__condition { display: block; margin-top: 4px; color: #4c626c; font-size: 12px; font-weight: 700; }
.bg-righttime__rtv-impact { margin: 14px 0 0; padding: 17px 19px; border: 1px solid #bdd9e2; border-left: 5px solid #495ca8; border-radius: 10px; background: #f2f8fb; }
.bg-righttime__rtv-impact[hidden] { display: none; }
.bg-righttime__rtv-intro h4 { margin: 0 0 6px; color: #123a49; font-size: 16px; font-weight: 900; }
.bg-righttime__rtv-intro p { margin: 0; color: #435b65; font-size: 13px; line-height: 1.45; }
.bg-righttime__rtv-country-row { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #cfdee3; }
.bg-righttime__rtv-bullet { flex: 0 0 18px; width: 18px; height: 18px; color: #495ca8; }
.bg-righttime__rtv-badge { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 24px; border-radius: 999px; padding: 3px 10px; color: #fff; background: #386d78; font-size: 11px; font-weight: 900; letter-spacing: .02em; white-space: nowrap; }
.bg-righttime__rtv-context { flex: 1 1 auto; min-width: 0; color: #435b65; font-size: 13px; line-height: 1.45; }
.bg-righttime__rtv-context strong { color: #173744; font-weight: 900; }
.bg-righttime__rtv-context > span { display: block; margin-top: 3px; color: #6c7e85; font-size: 10px; font-weight: 700; }
.bg-righttime__rtv-badge[data-tone="reverse"] { background: #347b76; }
.bg-righttime__rtv-badge[data-tone="stable"] { background: #416d78; }
.bg-righttime__rtv-badge[data-tone="elevated"] { background: #087da2; }
.bg-righttime__rtv-badge[data-tone="high"] { background: #495ca8; }
.bg-righttime__rtv-badge[data-tone="severe"] { background: #b54c5b; }
.bg-righttime__rtv-badge[data-tone="acute"] { background: #942f3f; }
.bg-righttime__result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bg-righttime__metric { border-left: 4px solid #007299; border-radius: 3px 9px 9px 3px; padding: 13px 15px; background: #f0f7f4; }
.bg-righttime__metric-value { color: #007299; font-size: 34px; font-weight: 900; line-height: 1; }
.bg-righttime__metric-copy { margin-top: 6px; color: #344851; font-size: 13px; line-height: 1.4; }
.bg-righttime__metric--risk { grid-column: 1 / -1; display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 14px; border-left-color: #c43c2e; background: #fff5f2; }
.bg-righttime__metric--risk .bg-righttime__metric-value { color: #c43c2e; }
.bg-righttime__risk-label { margin-bottom: 5px; color: #8c342a; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }

.bg-righttime__today { margin-top: 12px; padding: 9px 12px; border: 1px solid #dce5e7; border-radius: 7px; color: #52636b; background: #fff; font-size: 12px; }
.bg-righttime__today strong { color: #263942; font-weight: 900; }
.bg-righttime[data-person="man"] .bg-righttime__today { display: none; }
.bg-righttime__meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.bg-righttime__source { color: #52636b; font-size: 11px; font-weight: 800; }
.bg-righttime__share { margin-left: auto; border: 1px solid #9fb4bc; border-radius: 7px; padding: 7px 11px; color: #005f7f; background: #fff; font-size: 11px; font-weight: 900; cursor: pointer; }
.bg-righttime__note { margin: 10px 0 0; color: #6b787e; font-size: 11px; line-height: 1.45; }

.bg-righttime__powered { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin: 24px -28px 0; padding: 10px 20px; color: #d5e3e7; background: #0e2a36; font-size: 10px; }
.bg-righttime__powered img { width: 17px; height: 17px; object-fit: contain; }
.bg-righttime__powered a { color: #fff; font-size: 11px; font-weight: 900; text-decoration: none; }

@media (max-width: 700px) {
  .bg-righttime { margin: 32px 12px; border-radius: 13px; }
  .bg-righttime__header { min-height: 86px; padding: 17px 16px; gap: 12px; }
  .bg-righttime__summary-mark { flex-basis: 31px; width: 31px; height: 31px; }
  .bg-righttime__summary-title { font-size: clamp(21px, 6.5vw, 28px); }
  .bg-righttime__body { padding: 18px 14px 0; }
  .bg-righttime__intro { margin-bottom: 15px; }
  .bg-righttime__intro p { font-size: 13px; }
  .bg-righttime__topline { display: block; padding: 16px 15px 0; }
  .bg-righttime__country { margin-top: 14px; }
  .bg-righttime__question-row { display: block; padding: 16px 15px 17px; }
  .bg-righttime__question-row > * + * { margin-top: 13px; }
  .bg-righttime__submit { width: 100%; }
  .bg-righttime__pill { margin: 2px 15px 14px; }
  .bg-righttime__results { padding: 17px 15px; }
  .bg-righttime__rtv-impact { padding: 15px; }
  .bg-righttime__rtv-country-row { align-items: flex-start; flex-wrap: wrap; }
  .bg-righttime__rtv-bullet { margin-top: 1px; }
  .bg-righttime__rtv-context { flex: 1 1 calc(100% - 28px); }
  .bg-righttime__rtv-badge { margin-left: 28px; }
  .bg-righttime__result-grid { grid-template-columns: 1fr; gap: 9px; }
  .bg-righttime__metric { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 9px; }
  .bg-righttime__metric--risk { grid-column: auto; grid-template-columns: 112px 1fr; }
  .bg-righttime__metric-value { font-size: 29px; }
  .bg-righttime__meta { align-items: flex-start; }
  .bg-righttime__source { line-height: 1.35; }
  .bg-righttime__powered { margin: 20px -14px 0; }
}
