/* Task 6299, round g. Loaded last, after v3.css and home.css.
   1. Sections alternate full yellow and white (.hx-y / .hx-w), starting with the yellow hero.
   2. Bigger, bolder hero with a numbered calculator so it is obvious what to do.
   3. "Choose your state" puts the state and bill fields side by side, results underneath. */

/* ---------- Hero ---------- */
[data-redesign] .hx-hero { background: var(--r-sun); padding: 2.25rem 0 2.75rem; }
@media (min-width: 760px) { [data-redesign] .hx-hero { padding: 3.5rem 0 3.75rem; } }
[data-redesign] .hx-hero-head { max-width: 50rem; margin: 0 auto 1.6rem; text-align: center; }
[data-redesign] .hx-eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: 0.35rem 0.95rem; border-radius: 999px;
  background: var(--r-ink); color: #fff; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em;
}
[data-redesign] .hx-hero h1 {
  font-family: 'Archivo', 'Inter', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(2.3rem, 6.2vw, 4rem); line-height: 1.04; margin: 0 0 1rem; color: var(--r-ink); text-wrap: balance;
}
[data-redesign] .hx-hero-head p:not(.hx-eyebrow) { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.55; max-width: 40rem; margin: 0 auto; color: var(--r-ink); }
[data-redesign] .hx-hero-tool { max-width: 56rem; margin: 0 auto; }
[data-redesign] .hx-hero .sx-est {
  background: #fff; border: 0; border-radius: 20px; padding: 1.6rem 1.75rem 1.4rem;
  box-shadow: 0 28px 60px rgba(60, 40, 0, 0.28);
}
[data-redesign] .hx-hero-alt { margin: 1.4rem auto 0; text-align: center; font-size: 1rem; color: var(--r-ink); }
[data-redesign] .hx-hero-alt a { font-weight: 700; }

/* ---------- Calculator wording ---------- */
[data-redesign] .sx-est-heading { font-family: 'Archivo', 'Inter', sans-serif; font-size: 1.4rem; margin: 0 0 0.35rem; }
[data-redesign] .sx-est-help, [data-redesign] .sx-quick-help { margin: 0 0 1.1rem; font-size: 1rem; line-height: 1.5; color: var(--r-ink-2); }
[data-redesign] .sx-label { display: flex; align-items: center; gap: 0.55rem; font-size: 0.98rem; font-weight: 700; color: var(--r-ink); }
[data-redesign] .sx-label em { font-style: normal; font-weight: 500; color: var(--r-ink-3); }
[data-redesign] .sx-step {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--r-ink); color: var(--r-sun);
  font-size: 0.9rem; font-weight: 800; line-height: 1;
}
[data-redesign] .sx-est-row .sx-btn { height: 3.4rem; font-size: 1.05rem; }
[data-redesign] .sx-est-row .sx-field input,
[data-redesign] .sx-est-row .sx-field select { min-height: 3.4rem; }

/* ---------- Alternating sections ---------- */
[data-redesign] .hx-section { padding: 2.75rem 0; border: 0; }
@media (min-width: 760px) { [data-redesign] .hx-section { padding: 4rem 0; } }
body[data-redesign] .hx-section.hx-y { background: var(--r-sun); }
body[data-redesign] .hx-section.hx-w { background: #fff; }
[data-redesign] .hx-section .hx-head h2 {
  font-family: 'Archivo', 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.1; margin: 0 0 0.6rem;
}
[data-redesign] .hx-section .hx-head p { font-size: 1.1rem; line-height: 1.55; color: var(--r-ink); max-width: 46rem; }
[data-redesign] .hx-section .hx-head { margin-bottom: 1.75rem; }
[data-redesign] .hx-y a { text-decoration-color: var(--r-ink); }
[data-redesign] .hx-y .hx-link, [data-redesign] .hx-y .hx-fine { color: var(--r-ink); }
[data-redesign] .hx-y .hx-fine { font-size: 0.92rem; }
[data-redesign] .hx-y .bt-wrap { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(60, 40, 0, 0.14); }
[data-redesign] .hx-y .rdx-stategrid a { background: #fff; border-color: #fff; }
[data-redesign] .hx-y .rdx-stategrid a:hover { background: var(--r-ink); color: #fff; }
[data-redesign] .hx-about { max-width: 52rem; }
[data-redesign] .hx-about h2 { font-family: 'Archivo', 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.025em; }
[data-redesign] .hx-about p { font-size: 1.08rem; line-height: 1.6; }

/* ---------- How it works ---------- */
[data-redesign] .hx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: none; }
[data-redesign] .hx-steps li { background: #fbf4e2; border-radius: 16px; padding: 1.6rem 1.5rem; }
[data-redesign] .hx-num {
  display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--r-sun); color: var(--r-ink); font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.25rem;
}
[data-redesign] .hx-steps h3 { margin: 0.9rem 0 0.4rem; font-size: 1.25rem; }
[data-redesign] .hx-steps p { margin: 0; color: var(--r-ink-2); font-size: 1.02rem; line-height: 1.55; }
@media (max-width: 759px) { [data-redesign] .hx-steps { grid-template-columns: 1fr; } }

/* ---------- Choose your state: state and bill side by side, results below ---------- */
[data-redesign] .hx-card { background: #fff; border-radius: 18px; padding: 1.6rem 1.75rem; box-shadow: 0 14px 40px rgba(60, 40, 0, 0.18); margin-bottom: 0.5rem; }
[data-redesign] .hx-sub { margin: 2rem 0 1rem; font-family: 'Archivo', 'Inter', sans-serif; font-size: 1.3rem; }
[data-redesign] .sx-quick { display: block; }
[data-redesign] .sx-quick-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; align-items: end; }
@media (max-width: 639px) { [data-redesign] .sx-quick-form { grid-template-columns: 1fr; } }
[data-redesign] .sx-quick-out { margin-top: 1.25rem; background: #fbf4e2; border: 0; border-radius: 14px; padding: 1.25rem 1.4rem; min-height: 0; }
[data-redesign] .sx-quick-empty { margin: 0; color: var(--r-ink-2); font-size: 1rem; }
[data-redesign] .sx-quick-out .sx-figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin: 0.4rem 0 0.9rem; }
[data-redesign] .sx-quick-out .sx-figs > div { background: #fff; border-radius: 10px; padding: 0.8rem 0.9rem; min-width: 0; }
[data-redesign] .sx-quick-out .sx-figs > div.is-key { background: var(--r-ink); color: #fff; }
[data-redesign] .sx-quick-out .sx-figs > div.is-key dt, [data-redesign] .sx-quick-out .sx-figs > div.is-key dd { color: #fff; }
@media (max-width: 899px) { [data-redesign] .sx-quick-out .sx-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
[data-redesign] .sx-quick-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* States page hero uses the same yellow and the same panel */
[data-redesign] .sx-hero { background: var(--r-sun); border: 0; padding: 2.75rem 0 3.25rem; }
[data-redesign] .sx-hero-copy { margin-left: auto; margin-right: auto; text-align: center; }
[data-redesign] .sx-hero-lede { margin-left: auto; margin-right: auto; color: var(--r-ink); }
[data-redesign] .sx-panel { max-width: 56rem; margin: 0 auto; border: 0; box-shadow: 0 28px 60px rgba(60, 40, 0, 0.28); border-radius: 20px; padding: 1.6rem 1.75rem; }

/* Bill column wide enough for its label; one heading font across both pages */
[data-redesign] .sx-est-row { grid-template-columns: minmax(0, 1fr) 15.5rem auto; }
@media (max-width: 759px) { [data-redesign] .sx-est-row { grid-template-columns: 1fr; } }
[data-redesign] .sx-hero h1, [data-redesign] .rdx-section-head h2, [data-redesign] .rdx-closer h2 {
  font-family: 'Archivo', 'Inter', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.03em;
}
[data-redesign] .sx-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); line-height: 1.05; }

/* At-a-glance strip under the hero */
.hx-facts { background: var(--r-black); color: #fff; }
.hx-facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hx-facts li { padding: 1.3rem 1rem; text-align: center; border-right: 1px solid rgba(255, 255, 255, .16); }
.hx-facts li:last-child { border-right: 0; }
.hx-facts b { display: block; font-family: 'Archivo', 'Inter', sans-serif; font-size: 1.55rem; font-weight: 800; color: var(--r-sun); line-height: 1.1; }
.hx-facts span { display: block; margin-top: 0.25rem; font-size: 0.92rem; color: #e2e2da; line-height: 1.35; }
@media (max-width: 759px) {
  .hx-facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-facts li:nth-child(2) { border-right: 0; }
  .hx-facts li:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .16); }
}

/* ================= Whole site: same yellow / white / black pattern on every template ================= */
body[data-redesign] .rdx-section--soft, body[data-redesign] .rdx-section--tint, body[data-redesign] .sx-nearby { background: var(--r-sun); border: 0; }
body[data-redesign] .rdx-section--white { background: #fff; }
body[data-redesign] .rdx-section--soft a, body[data-redesign] .rdx-section--tint a { text-decoration-color: var(--r-ink); }
body[data-redesign] .rdx-section--soft .rdx-card, body[data-redesign] .rdx-section--tint .rdx-card { background: #fff; border-color: #fff; }
body[data-redesign] .rdx-section-head h2, body[data-redesign] .rdx-section h2.rdx-h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.1; }
body[data-redesign] .rdx-section-head p { font-size: 1.05rem; max-width: 40rem; }
body[data-redesign] .rdx-hero, body[data-redesign] .sx-hero { background: var(--r-sun); }
body[data-redesign] .rdx-hero h1, body[data-redesign] .rdx-hero .rdx-h1 {
  font-family: 'Archivo', 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.03em; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.06;
}
body[data-redesign] .rdx-hero-lede { font-size: 1.15rem; line-height: 1.5; }
body[data-redesign] .sx-hero--state .sx-est { background: #fff; }
body[data-redesign] .sx-nearby .sx-table-wrap { background: #fff; border-radius: 14px; overflow: hidden; }
body[data-redesign] .sx-midcta { background: var(--r-sun); border: 0; border-radius: 16px; }
body[data-redesign] .sx-backup--top, body[data-redesign] .sx-backup--post { background: #fbf4e2; border: 0; border-radius: 14px; }

/* Home: "What do you need?" cards and quick guides */
.hx-needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.hx-need {
  display: flex; flex-direction: column; gap: 0.5rem; padding: 1.75rem; border-radius: 18px; text-decoration: none;
  background: #fbf4e2; border: 2px solid var(--r-sun); color: var(--r-ink);
}
.hx-need:hover { background: var(--r-sun); }
.hx-need strong { font-family: 'Archivo', 'Inter', sans-serif; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.hx-need span { font-size: 1.05rem; line-height: 1.45; }
.hx-need .hx-need-tag { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--r-sun-deep); }
.hx-need .hx-need-go { margin-top: 0.6rem; align-self: flex-start; background: var(--r-ink); color: #fff; font-weight: 700; padding: 0.7rem 1.2rem; border-radius: 10px; }
@media (max-width: 759px) { .hx-needs { grid-template-columns: 1fr; } }
.hx-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.hx-guide { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem; border-radius: 14px; background: #fff; text-decoration: none; color: var(--r-ink); box-shadow: 0 8px 22px rgba(60, 40, 0, 0.12); }
.hx-guide:hover { background: var(--r-ink); color: #fff; }
.hx-guide span { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--r-sun-deep); }
.hx-guide:hover span { color: var(--r-sun); }
.hx-guide strong { font-size: 1.1rem; line-height: 1.25; }
@media (max-width: 979px) { .hx-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .hx-guides { grid-template-columns: 1fr; } }

/* Long guides and the 50-state list start closed, so pages stay short */
.sx-fullguide, .bp-more { margin: 1.5rem auto; max-width: 60rem; }
.sx-fullguide > summary, .bp-more > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--r-ink); color: #fff; font-family: 'Archivo', 'Inter', sans-serif; font-weight: 800; font-size: 1.2rem;
  padding: 1.1rem 1.4rem; border-radius: 14px;
}
.sx-fullguide > summary::-webkit-details-marker, .bp-more > summary::-webkit-details-marker { display: none; }
.sx-fullguide > summary::after, .bp-more > summary::after { content: '+'; font-size: 1.6rem; line-height: 1; color: var(--r-sun); }
.sx-fullguide[open] > summary::after, .bp-more[open] > summary::after { content: '\2212'; }
.sx-fullguide[open] > summary, .bp-more[open] > summary { border-radius: 14px 14px 0 0; }
.sx-fullguide > .article-body { padding-top: 1.5rem; }
.bp-more[open] .rdx-bplist { background: var(--r-black-2); padding: 1.25rem; border-radius: 0 0 14px 14px; margin: 0; }
body[data-redesign] .bt-go .jk-affiliate { background: #111; color: #fff; border-color: #111; }
body[data-redesign] .bt-go .jk-affiliate:hover { background: #dcaa45; color: #111; border-color: #111; }
.sx-quick-empty:empty, .sx-quick-empty[hidden] { display: none !important; }
.sx-quick-out:not(:has([data-quick-result]:not([hidden]))) { display: none !important; }
/* Result area: plain white, no tint */
[data-redesign] .sx-quick-out, [data-redesign] .zx-frame .sx-quick-out { background: #fff !important; padding: 0.25rem 0 0 !important; }
[data-redesign] .sx-quick-out .sx-figs > div { border: 1px solid #e3e1d8; }
[data-redesign] .sx-quick-out .sx-figs > div.is-key { border-color: var(--r-ink); }

/* ===== Illustrations, motion, swipe rows, cost compare (task 6299) ===== */
.illo { display: block; height: auto; max-width: 100%; }
.rdx-hero-art { width: 190px; margin: 0 auto 0.5rem; }
body[data-redesign] .hx-hero-head--art { max-width: 64rem; display: grid; gap: 1rem; align-items: center; text-align: center; }
body[data-redesign] .hx-hero-head--art .hx-hero-art { width: min(300px, 70%); margin: 0 auto; }
@media (min-width: 900px) {
  body[data-redesign] .hx-hero-head--art { grid-template-columns: 1.15fr 0.85fr; text-align: left; }
  body[data-redesign] .hx-hero-head--art .hx-hero-art { width: 100%; }
  body[data-redesign] .hx-hero-head--art p:not(.hx-eyebrow) { margin-left: 0; }
}
/* motion */
@keyframes hx-spin { to { transform: rotate(360deg); } }
@keyframes hx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes hx-dash { to { stroke-dashoffset: -20; } }
@keyframes hx-tilt { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.illo-sun { transform-box: fill-box; transform-origin: center; animation: hx-spin 40s linear infinite; }
.illo-home .illo-batt, .illo-battery, .illo-pin .illo-drop, .illo-guide .illo-drop { animation: hx-float 4.5s ease-in-out infinite; }
.illo-home .illo-panels { animation: hx-pulse 3.2s ease-in-out infinite; }
.illo-wire { animation: hx-dash 1.2s linear infinite; }
.illo-scale .illo-tilt { transform-box: fill-box; transform-origin: center; animation: hx-tilt 6s ease-in-out infinite; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .illo *, .illo { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
/* swipe row */
.hx-car { position: relative; }
.hx-car-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hx-car-track::-webkit-scrollbar { display: none; }
.hx-car-track > * { flex: 0 0 min(300px, 82%); scroll-snap-align: start; }
.hx-car-btn { position: absolute; top: 42%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #111; color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); display: none; }
@media (min-width: 700px) { .hx-car-btn { display: block; } }
.hx-car-prev { left: -14px; } .hx-car-next { right: -14px; }
.hx-car-btn:hover { background: #fff; color: #111; }
.hx-pc { background: #fff; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.14); color: #111; }
.hx-pc-art { width: 120px; margin: 0 auto; }
.hx-pc-tag { align-self: flex-start; font-size: .8rem; font-weight: 700; background: #f5ecd3; padding: 3px 10px; border-radius: 999px; }
.hx-pc h3 { font-size: 1.15rem; line-height: 1.25; margin: 0; }
.hx-pc-price { font-size: 1.7rem; font-weight: 800; margin: 0; }
.hx-pc ul { list-style: none; margin: 0; padding: 0; }
.hx-pc li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #ece8dc; font-size: .95rem; }
.hx-pc-best { font-size: .95rem; color: #444; margin: 4px 0 auto; }
.hx-pc .sx-btn { margin-top: 10px; text-align: center; justify-content: center; }
/* cost compare */
.cc-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
@media (max-width: 760px) { .cc-form { grid-template-columns: 1fr; } }
.cc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .cc-cols { grid-template-columns: 1fr; } }
.cc-col { border: 2px solid #ece8dc; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; position: relative; background: #fff; }
.cc-col--pick { border-color: #111; }
.cc-col h3 { margin: 0; font-size: 1.1rem; }
.cc-art { width: 110px; height: 80px; margin: 0 auto 4px; }
.cc-art .illo { height: 100%; width: 100%; }
.cc-total { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin: 0; line-height: 1.1; }
.cc-sub, .cc-note, .cc-fine { margin: 0; font-size: .92rem; color: #444; }
.cc-fine { margin-top: 14px; font-size: .85rem; }
.cc-bar { height: 12px; background: #f1eee4; border-radius: 999px; overflow: hidden; margin: 6px 0; display: flex; align-items: flex-end; }
.cc-bar i { display: block; height: 100%; width: 100%; }
@media (min-width: 861px) {
  .cc-bar { height: 110px; border-radius: 10px; }
  .cc-bar i { transition: height .5s ease; width: 100%; height: 0; }
}
.cc-bar i[data-b="grid"] { background: #9b9b93; }
.cc-bar i[data-b="solar"] { background: #dcaa45; }
.cc-bar i[data-b="both"] { background: #111; }
@media (max-width: 860px) {
  .cc-bar { display: block; } .cc-bar i { height: 100% !important; width: var(--w, 100%); transition: width .5s ease; }
}
.cc-buy { margin-top: 10px; text-align: center; justify-content: center; }

/* ===== Round: mobile menu, smaller hero art ===== */
.rdx-hero-art { width: 110px !important; max-width: 110px; margin: 0 auto 0.6rem; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  body[data-redesign] .sx-topbar .container { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem; position: relative; }
  body[data-redesign] .sx-topbar-actions { display: flex; gap: 0.5rem; align-items: center; margin-left: auto; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 2px solid #111; border-radius: 10px; background: #fff; cursor: pointer; }
  .nav-toggle span { display: block; height: 3px; border-radius: 2px; background: #111; transition: transform .2s ease, opacity .2s ease; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body[data-redesign] .sx-topbar nav { display: none !important; order: 3; width: 100%; flex-direction: column; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 0.25rem 0 0.6rem; border-top: 1px solid #ece8dc; }
  body[data-redesign] .sx-topbar.nav-open nav { display: flex !important; }
  body[data-redesign] .sx-topbar nav a { padding: 0.85rem 0.25rem !important; font-size: 1.05rem !important; border-bottom: 1px solid #f1eee4; margin: 0; }
}
.nav-cta { display: none; }
@media (max-width: 860px) {
  body[data-redesign] .sx-topbar .brand { width: auto !important; flex: 0 1 auto; grid-area: auto !important; margin: 0; justify-content: flex-start; }
  body[data-redesign] .sx-topbar-actions { grid-area: auto !important; }
  body[data-redesign] .sx-topbar-actions .sx-btn { display: none; }
  body[data-redesign] .sx-topbar nav a.nav-cta { display: block; margin-top: 0.7rem; background: #111; color: #fff !important; text-align: center; border-radius: 10px; border-bottom: 0; padding: 0.9rem !important; }
}
@media (max-width: 860px) {
  body[data-redesign] .sx-topbar .container { flex-wrap: nowrap !important; justify-content: space-between !important; padding-top: 0.5rem; padding-bottom: 0.5rem; }
  body[data-redesign] .sx-topbar { position: sticky; top: 0; z-index: 50; }
  body[data-redesign] .sx-topbar nav { position: absolute; top: 100%; left: 0; right: 0; width: auto; background: #fff; padding: 0.25rem 1rem 0.9rem; box-shadow: 0 16px 30px rgba(0,0,0,.15); border-top: 1px solid #ece8dc; }
  body[data-redesign] .sx-topbar-actions { margin-left: 0 !important; }
}
@media (max-width: 860px) {
  body[data-redesign] .sx-topbar .container { flex-direction: row !important; align-items: center !important; }
}
.cc-banner { font-size: 1.15rem; font-weight: 700; margin: 0 0 16px; padding: 14px 16px; background: #f5ecd3; border-radius: 12px; }
.cc-what { margin: 0; font-size: .98rem; color: #111; font-weight: 600; }
.cc-tag { position: absolute; top: -12px; right: 14px; background: #111; color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.cc-tag[hidden] { display: none; }
@media (max-width: 860px) {
  body[data-redesign] .sx-topbar .container { flex-direction: row !important; align-items: center !important; }
}
/* lightning flicker */
@keyframes hx-flicker { 0%,19%,22%,62%,64%,100% { opacity: 1; } 20%,21%,63% { opacity: .15; } 65% { opacity: .6; } 70% { opacity: 1; } 80% { opacity: .35; } 82% { opacity: 1; } }
.illo-bolt { animation: hx-flicker 2.8s linear infinite !important; }
.cc-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cc-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cc-form { grid-template-columns: 1fr; } }
.cc-seg { display: flex; gap: 8px; }
.cc-seg button { flex: 1; font: inherit; font-weight: 700; padding: 12px 0; border: 2px solid #111; background: #fff; color: #111; border-radius: 10px; cursor: pointer; }
.cc-seg button.is-on { background: #111; color: #fff; }
.cc-banner { font-size: 1.3rem; }
.cc-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .cc-form { grid-template-columns: 1fr; } }
.cc-pay{margin:6px 0 0;font-size:.85rem;font-weight:600;color:#555}.cc-banner,.cc-tag{display:none!important}

/* How your state compares (home page) */
.sr { max-width: 52rem; margin: 0 auto; }
.sr-top { display: grid; gap: 1rem; justify-items: center; margin-bottom: 1rem; }
.sr-field { display: flex; flex-direction: column; gap: 0.4rem; width: min(100%, 24rem); text-align: center; }
.sr-label { font-weight: 700; font-size: 0.95rem; color: var(--r-ink); }
.sr-field select { width: 100%; min-height: 48px; padding: 0.55rem 0.8rem; font: inherit; border: 2px solid var(--r-ink); border-radius: 10px; background: #fff; color: var(--r-ink); text-align: center; text-align-last: center; }
.sr-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.sr-tabs button { font: inherit; font-weight: 650; padding: 0.55rem 1rem; min-height: 44px; border-radius: 999px; border: 2px solid var(--r-ink); background: #fff; color: var(--r-ink); cursor: pointer; }
.sr-tabs button[aria-pressed="true"] { background: var(--r-ink); color: #fff; }
.sr-read { margin: 0 0 1rem; text-align: center; font-size: 1.15rem; line-height: 1.5; color: var(--r-ink); min-height: 3em; }
.sr-chart { margin: 0; background: #fff; border: 2px solid #ece6d6; border-radius: 14px; padding: 0.8rem 0.8rem 0.6rem; }
.sr-chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; cursor: pointer; }
.sr-chart figcaption { margin-top: 0.4rem; font-size: 0.9rem; color: var(--r-ink-2); text-align: center; }
.sr-fine { margin: 0.9rem 0 0; font-size: 0.86rem; line-height: 1.5; color: var(--r-ink-3); }
.sr-fine a { color: var(--r-ink); }

/* State picker: centred in its panel, label and dropdown on one middle line */
[data-redesign] .rdx-picker { max-width: none; width: 100%; margin-left: auto; margin-right: auto; text-align: center; }
[data-redesign] .rdx-picker-label { text-align: center; }
[data-redesign] .rdx-picker-row { justify-content: center; align-items: stretch; }
[data-redesign] .rdx-picker select { flex: 1 1 auto; min-width: 0; text-align: center; text-align-last: center; }
[data-redesign] .sx-panel .rdx-picker { background: transparent; border: 0; box-shadow: none; padding: 0; }

/* Picker cards no wider than they need to be, so there is no empty white on the sides */
[data-redesign] .hx-hero-tool:has(.rdx-picker), [data-redesign] .sx-panel:has(.rdx-picker) { max-width: 42rem; }
[data-redesign] .rdx-picker-row { width: 100%; }
[data-redesign] .rdx-picker select { text-align: left; text-align-last: left; }

/* Cash, loan or lease (home page) */
.ob { max-width: 60rem; margin: 0 auto; }
.ob-controls { display: grid; gap: 1.1rem; margin-bottom: 1.1rem; }
.ob-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.ob-label { font-weight: 700; font-size: 0.95rem; color: var(--r-ink); }
.ob-field select { width: 100%; min-height: 48px; padding: 0.55rem 0.8rem; font: inherit; border: 2px solid var(--r-ink); border-radius: 10px; background: #fff; color: var(--r-ink); }
.ob-field input[type="range"] { width: 100%; accent-color: var(--r-ink); height: 28px; }
.ob-ticks { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--r-ink-3); }
.ob-loan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
@media (min-width: 760px) { .ob-controls { grid-template-columns: 1fr 1fr; align-items: end; } .ob-loan { grid-column: 1 / -1; } }
.ob-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.ob-dot--0 { background: #1558c4; } .ob-dot--1 { background: #d9822b; } .ob-dot--2 { background: #2b8a5a; }
.ob-summary { margin: 0 0 1rem; font-size: 1.1rem; line-height: 1.55; color: var(--r-ink); }
.ob-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.ob-card { background: #fff; border: 2px solid #ece6d6; border-radius: 14px; overflow: hidden; padding: 1.1rem 1.2rem; box-shadow: 0 6px 18px rgba(60, 40, 0, 0.08); }
.ob-card h3 { margin: 0 0 0.7rem; font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.ob-card dl { margin: 0; display: grid; gap: 0.55rem; }
.ob-card dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; border-bottom: 1px solid #f0ead9; padding-bottom: 0.45rem; }
.ob-card dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.ob-card dt { font-size: 0.92rem; color: var(--r-ink-2); }
.ob-card dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ob-card dd.ob-key { font-size: 1.15rem; color: var(--c); }
.ob-chart { margin: 1.4rem 0 0; background: #fff; border: 2px solid #ece6d6; border-radius: 14px; padding: 1rem 1rem 0.8rem; color: var(--r-ink); }
.ob-chart figcaption { font-size: 0.95rem; margin: 0 0 0.4rem; color: var(--r-ink-2); }
.ob-chart svg { width: 100%; height: auto; display: block; }
.ob-legend { display: flex; justify-content: center; gap: 1.2rem; margin-top: 0.4rem; font-size: 0.92rem; }
.ob-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.ob-more { margin-top: 1rem; font-size: 0.95rem; line-height: 1.55; }
.ob-more summary { cursor: pointer; font-weight: 650; }
.ob-more ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.ob-more li { margin-bottom: 0.4rem; }
.ob-fine { margin: 0.9rem 0 0; font-size: 0.86rem; line-height: 1.5; color: var(--r-ink-3); }
.ob-fine a { color: var(--r-ink); }

/* Cash, loan or lease: heading centred over the same column as the tool, no empty strip beside it */
[data-redesign] #pay-options .hx-head { max-width: 60rem; margin-left: auto; margin-right: auto; text-align: center; }
[data-redesign] #pay-options .hx-head p { max-width: none; margin-left: auto; margin-right: auto; }

/* State grid: every tile the same height, text centred, columns sized to fit the longest name so names do not wrap */
[data-redesign] .rdx-stategrid ul { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); grid-auto-rows: 1fr; }
[data-redesign] .rdx-stategrid li { display: flex; }
[data-redesign] .rdx-stategrid a { flex: 1; align-items: center; min-height: 3.1rem; }
[data-redesign] .rdx-stategrid .rdx-sg-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 520px) { [data-redesign] .rdx-stategrid ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } [data-redesign] .rdx-stategrid .rdx-sg-name { white-space: normal; } }

/* Pay options: pick how you pay (task 6299) */
.ob-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 1.1rem; }
.ob-mode { font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; padding: 0.8rem 1rem; background: #fff; color: var(--r-ink); border: 2px solid var(--r-line); border-radius: 12px; }
.ob-mode b { font-size: 1.2rem; }
.ob-mode span { font-size: 0.86rem; color: var(--r-ink-3); }
.ob-mode:hover { border-color: var(--r-ink); }
.ob-mode[aria-pressed="true"] { background: var(--r-sun); border-color: var(--r-ink); }
.ob-mode[aria-pressed="true"] span { color: var(--r-ink); }
.ob-mode:focus-visible { outline: 3px solid var(--r-ink); outline-offset: 2px; }
.ob-loan[hidden], .ob-lease[hidden] { display: none; }
.ob-lease { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1.1rem; }
.ob-head { background: #fff; border: 2px solid var(--r-ink); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.ob-head p { margin: 0; }
.ob-head-cap { font-size: 0.95rem; color: var(--r-ink-2); }
.ob-head-num { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 0.2rem 0 !important; }
.ob-head-num.is-pos { color: #1d7a4d; } .ob-head-num.is-neg { color: #a63a28; }
.ob-head-sub { font-size: 0.95rem; color: var(--r-ink-2); }
.ob-card.is-sel { border-color: var(--r-ink); box-shadow: 0 8px 22px rgba(60, 40, 0, 0.16); }
@media (max-width: 640px) { .ob-modes { grid-template-columns: minmax(0, 1fr); } .ob-lease { grid-template-columns: minmax(0, 1fr); } }

.ob-cards { grid-template-columns: minmax(0, 1fr); }
.ob-cards .ob-card dl { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); column-gap: 2rem; }
