:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #151b24;
  background: #f1f3f6;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
.page-shell { width: min(1720px, calc(100% - 40px)); margin: 36px auto 80px; }
.top-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.solo-link { color: #354358; font-weight: 700; text-underline-offset: 4px; }
.language-switch { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid #cbd2dc; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgb(27 38 53 / 8%); }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 38px; padding: 0 10px; border-radius: 8px; color: #5c6878; font-weight: 750; text-decoration: none; }
.language-switch a:hover { background: #f1f3f6; }
.language-switch a:focus-visible { outline: 3px solid rgb(79 117 209 / 24%); }
.language-switch a[aria-current="page"] { color: #fff; background: #151b24; }
.intro { max-width: 820px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 8px; color: #5b257b; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.04; letter-spacing: -.04em; }
.intro > p:last-child { color: #596474; font-size: 17px; line-height: 1.55; }
.composite-form { display: grid; gap: 22px; }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.partner-card { position: relative; display: grid; align-content: start; gap: 18px; min-width: 0; padding: 24px; border: 2px solid #cbd2dc; border-radius: 20px; background: #fff; box-shadow: 0 16px 42px rgb(27 38 53 / 9%); }
.partner-card[data-partner="a"] { border-top-color: #5b257b; }
.partner-card[data-partner="b"] { border-top-color: #0067d8; }
.partner-card h2 { margin: 0; font-size: 25px; }
.partner-card[data-partner="a"] h2 { color: #5b257b; }
.partner-card[data-partner="b"] h2 { color: #0067d8; }
.field, .field label { display: grid; gap: 8px; }
.field label, legend { font-weight: 700; }
.field small { color: #687485; }
.birth-date-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.birth-date-field legend { margin-bottom: 8px; padding: 0; }
.date-parts { display: grid; grid-template-columns: minmax(74px, .7fr) minmax(142px, 1.45fr) minmax(96px, 1fr); gap: 8px; }
input, select { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #aeb8c6; border-radius: 11px; color: #151b24; background: #fff; }
input:focus, select:focus { outline: 3px solid rgb(79 117 209 / 22%); border-color: #4f75d1; }
.city-field { position: relative; }
.time-parts { display: flex; align-items: center; gap: 8px; }
.time-parts select { min-width: 72px; }
.city-results { position: absolute; z-index: 20; top: 78px; right: 0; left: 0; max-height: 300px; margin: 0; padding: 6px; overflow: auto; list-style: none; border: 1px solid #abb6c5; border-radius: 12px; background: #fff; box-shadow: 0 18px 35px rgb(22 32 47 / 16%); }
.city-results li { padding: 11px 12px; border-radius: 8px; cursor: pointer; }
.city-results li:hover, .city-results li[aria-selected="true"] { background: #edf2ff; }
select[hidden] { display: none; }
.offset-choice { margin: 0; padding: 14px; border: 1px solid #e3a933; border-radius: 12px; background: #fff9e8; }
.offset-choice > div { display: grid; gap: 9px; margin-top: 10px; }
.offset-choice label { display: flex; align-items: center; gap: 7px; }
.offset-choice input { width: auto; min-height: auto; }
button[type="submit"] { justify-self: start; min-height: 52px; padding: 0 26px; border: 0; border-radius: 12px; color: #fff; background: #151b24; font-weight: 800; cursor: pointer; }
button[disabled] { opacity: .55; cursor: wait; }
.form-status { min-height: 22px; margin: 0; color: #4d5b6d; }
.form-status.is-error { color: #aa1831; }
.result { margin-top: 38px; scroll-margin-top: 18px; overflow-x: auto; }
.result-summary { display: grid; gap: 18px; min-width: 960px; margin-bottom: 18px; }
.composite-facts { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid #cbd2dc; border-radius: 14px; background: #cbd2dc; }
.composite-facts > div { padding: 13px 16px; background: #fff; }
.composite-facts dt, .partner-summaries dt { color: #667284; font-size: 12px; text-transform: uppercase; }
.composite-facts dd, .partner-summaries dd { margin: 4px 0 0; font-weight: 750; }
.partner-summaries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.partner-summaries > section { padding: 16px; border: 1px solid #cbd2dc; border-radius: 14px; background: #fff; }
.partner-summaries dl { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 12px; margin: 12px 0 0; }
.partner-summaries h3 { margin: 0; }
.partner-summaries [data-summary-partner="a"] { border-top: 3px solid #5b257b; }
.partner-summaries [data-summary-partner="b"] { border-top: 3px solid #0067d8; }
.channel-summary { padding: 18px; border: 1px solid #cbd2dc; border-radius: 14px; background: #fff; }
.channel-summary > h2 { margin: 0 0 14px; font-size: 21px; }
.channel-summary > div { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 14px; }
.channel-summary section { padding: 12px; border-radius: 10px; background: #f3f5f8; }
.channel-summary h3 { margin: 0 0 8px; font-size: 15px; }
.channel-summary ul { margin: 0; padding-left: 20px; }
.chart-shell { min-width: 1420px; overflow: hidden; border: 1px solid #cbd2dc; border-radius: 20px; background: #fff; box-shadow: 0 16px 42px rgb(27 38 53 / 9%); }
.chart-shell > svg { display: block; width: 100%; height: auto; }
.chart-shell > svg .composite-entity { cursor: help; transition: opacity 140ms ease, filter 140ms ease; }
.chart-shell > svg .composite-entity:focus-visible { outline: none; filter: drop-shadow(0 0 7px rgb(255 184 0 / 95%)); }
.chart-shell > svg g[data-channel]:not([data-gate]) > path[stroke-opacity="0"] { pointer-events: stroke; }
.chart-shell > svg .composite-gate-visual { transition: opacity 140ms ease, filter 140ms ease; }
.chart-shell > svg.is-exploring .composite-gate-visual { opacity: .15; }
.chart-shell > svg.is-exploring .composite-gate-visual.is-related-visual { opacity: 1; filter: drop-shadow(0 0 3px rgb(255 184 0 / 55%)); }
.chart-shell > svg.is-exploring .composite-entity { opacity: .14; }
.chart-shell > svg.is-exploring .composite-entity.is-related { opacity: 1; }
.chart-shell > svg.is-exploring .composite-entity[data-center-state]:not(.is-related-center):not(.is-primary) { opacity: 1; filter: saturate(.2) brightness(1.08); }
.chart-shell > svg.is-exploring .composite-entity.is-related-center { opacity: 1; filter: saturate(.75) drop-shadow(0 0 7px rgb(66 133 244 / 58%)); }
.chart-shell > svg.is-exploring .composite-entity.is-primary { opacity: 1; filter: drop-shadow(0 0 6px rgb(255 184 0 / 95%)); }
.chart-tooltip { position: fixed; z-index: 50; width: max-content; max-width: min(380px, calc(100vw - 30px)); padding: 10px 13px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 10px; color: #fff; background: rgb(16 23 34 / 94%); box-shadow: 0 10px 30px rgb(16 23 34 / 28%); pointer-events: none; }
.chart-tooltip[hidden] { display: none; }
.chart-tooltip strong, .chart-tooltip span { display: block; }
.chart-tooltip strong { margin-bottom: 3px; }
.chart-tooltip span { color: #d9e0ea; font-size: 13px; line-height: 1.4; }

@media (max-width: 980px) {
  .partner-grid { grid-template-columns: 1fr; }
  .result-summary { min-width: 720px; }
  .partner-summaries { grid-template-columns: 1fr; }
  .channel-summary > div { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 24px, 1720px); margin-top: 22px; }
  .top-nav { align-items: flex-start; }
  .result-summary { min-width: 640px; }
  .partner-summaries dl { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .chart-tooltip { font-size: 14px; }
}

@media (max-width: 420px) {
  .date-parts { grid-template-columns: minmax(0, .72fr) minmax(0, 1.38fr) minmax(0, .95fr); }
}

/* Bot promo, in this page's own palette. */
.bot-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; margin: 0 0 22px; padding: 16px 20px; border: 1px solid #cbd2dc; border-left: 4px solid #5b257b; border-radius: 14px; background: #fff; }
.bot-strip-lead { margin: 0 0 4px; font-size: 17px; font-weight: 800; line-height: 1.3; }
.bot-strip-text { margin: 0; color: #354358; font-size: 15px; line-height: 1.5; }
.bot-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; color: #fff; background: #151b24; font-weight: 800; text-decoration: none; white-space: nowrap; }
.bot-cta:hover { background: #2a3444; }
.bot-cta:focus-visible { outline: 3px solid rgb(79 117 209 / 35%); outline-offset: 2px; }
.bot-card { display: grid; gap: 12px; max-width: 820px; margin-top: 22px; padding: 24px; border: 1px solid #cbd2dc; border-top: 4px solid #5b257b; border-radius: 20px; background: #fff; box-shadow: 0 16px 42px rgb(27 38 53 / 9%); }
.bot-card > * { margin: 0; }
.bot-card-label { color: #5b257b; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.bot-card-heading { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.02em; }
.bot-card-text { font-size: 17px; line-height: 1.55; }
.bot-card-note { color: #596474; font-size: 15px; line-height: 1.55; }

@media (max-width: 760px) {
  .bot-strip { grid-template-columns: 1fr; padding: 14px 16px; }
  .bot-strip .bot-cta { justify-self: start; }
  .bot-card { padding: 18px; }
}
