.v157 .v167-options{min-width:0;padding:18px 20px;margin:0 0 24px;border:1px solid #c9dce4;border-radius:16px;background:#f1f6f8}
.v167-options legend{padding:0 6px;font-size:15px;font-weight:700}
.v167-options>div{display:flex;flex-wrap:wrap;gap:12px 28px}
.v167-options .v157-check{cursor:pointer;margin:4px 0;min-height:32px}
.v167-options .v157-check input{margin:0;accent-color:var(--brand-primary,#24586e)}
.v157 .v167-options .v157-small{margin:10px 0 0}
#tg-avd-options{border:1px solid #c9dce4;border-radius:14px;padding:16px;margin:16px 0}
#tg-avd-options legend{padding:0 6px;font-weight:700;font-size:14px}
#tg-avd-options p{font-size:13px;line-height:1.6;margin:12px 0 0;color:#405866}
/* Only the embedded calculator adopts the colleague's palette. */
body[data-tool="avd"] .v157{--navy:#183746;--lime:var(--brand-accent);overflow:visible}
body[data-tool="avd"] .v157 .v157-wrap{width:100%;max-width:none}
body[data-tool="avd"] .v157 .v157-section{padding:24px 0}
body[data-tool="avd"] .v157-tint{background:transparent}
body[data-tool="avd"] .v157 h2{font-size:clamp(26px,4vw,38px)}
body[data-tool="avd"] .v157 :is(.v157-kpi,.v157-tabs button[aria-selected=true]){background:var(--brand-primary);color:var(--brand-on-primary)}
body[data-tool="avd"] .v157 .v157-kpi strong{color:var(--brand-highlight)}
body[data-tool="avd"] .v157 .v157-kpi :is(small,span){color:var(--brand-on-primary)}
body[data-tool="avd"] .v157 :is(.v157-button,.v160-metric button[aria-pressed=true]){background:var(--brand-accent);color:var(--brand-on-accent)!important}
body[data-tool="avd"] .v157 :is(.v157-button,.v157-secondary):is(:hover,:focus-visible){background:var(--brand-primary);color:var(--brand-highlight)!important}
body[data-tool="avd"] .v157 .v157-secondary{color:#183746!important}
body[data-tool="avd"] .v157 :is(.v160-reinvest,.v165-reinvest-breakdown>div:last-child){background:var(--brand-accent);color:var(--brand-on-accent)}
body[data-tool="avd"] .v157 :is(.v160-reinvest,.v165-reinvest-breakdown>div:last-child) :is(p,small,strong,span){color:var(--brand-on-accent)}
body[data-tool="avd"] .v157 .v160-pension-track>i{background:var(--brand-primary)}
body[data-tool="avd"] .v157 .v160-pension-track strong{background:#fff;color:#183746}
body[data-tool="avd"] .v157-reference{margin:24px 0;padding:18px;border-radius:14px;background:#edf3f6}
@media(max-width:620px){.v157 .v167-options{padding:14px;margin-bottom:20px}.v167-options>div{gap:8px}.v167-options .v157-check{width:100%;font-size:14px}body[data-tool="avd"] .v157 .v157-panel{padding:18px 12px}body[data-tool="avd"] .v157 .v157-section{padding:18px 0}}

/* Align the funding panel with the lime callout in the adjacent column. */
@media(min-width:621px){
 #reform .v157-editorial{align-items:stretch}
 #reform .v157-editorial>div{display:flex;flex-direction:column}
 #reform .v157-editorial>div>p:last-of-type{margin-bottom:30px}
 #reform .v157-editorial>div>.v157-callout{margin-top:auto}
}
