/* HonorVale Rollovers & Exchanges. Every selector is scoped to the page. */
.hv-rol {
  --rol-text: #2c3a48;
  --rol-rule: rgba(8, 24, 39, .14);
  --rol-good: #1f6b45;
  --rol-good-soft: #e3f0e8;
  --rol-tax: #7a5208;
  --rol-tax-soft: #f6e8cc;
  --rol-bad: #8b3030;
  --rol-bad-soft: #f7e6e6;
  color: var(--rol-text);
  font-size: 1.02rem;
  line-height: 1.65;
}
.hv-rol [id^="rol-"] { scroll-margin-top: 144px; }
.hv-rol p { margin: 0; }
.hv-rol h3 { color: var(--deep-blue); font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.hv-rol h4 { color: #715a2e; font: 800 .74rem/1.3 var(--sans); letter-spacing: .1em; margin: 0 0 .35rem; text-transform: uppercase; }
.hv-rol ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.hv-rol li + li { margin-top: .35rem; }
.hv-rol a:not(.button) { color: var(--deep-blue); text-decoration: underline; text-underline-offset: 3px; }
.hv-rol .section { padding: 88px 0 68px; }
.hv-rol .section-heading { margin-bottom: 1.6rem; }
.hv-rol .section-heading h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.hv-rol-stack { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }

.hv-rol-hero {
  background: radial-gradient(circle at 84% 18%, rgba(198, 167, 106, .22), transparent 30%), linear-gradient(140deg, rgba(8, 24, 39, .98), rgba(16, 44, 70, .92));
  color: #fff;
  overflow: hidden;
  padding: 76px 0 60px;
}
.hv-rol-hero h1 { color: #fff; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.4rem); letter-spacing: -.02em; line-height: 1.05; margin: 0; max-width: 920px; }
.hv-rol-hero > .container > p { color: rgba(255,255,255,.82); font-size: 1.06rem; margin: 1.1rem 0 1.8rem; max-width: 780px; }
.hv-rol-finder { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-deep); color: var(--rol-text); display: flex; flex-direction: column; gap: 1.2rem; padding: 1.5rem; }
.hv-rol-pickers { align-items: end; display: grid; gap: .75rem; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.hv-rol label { color: var(--deep-blue); display: block; font-size: .86rem; font-weight: 800; }
.hv-rol select, .hv-rol input[type="number"], .hv-rol input[type="search"] { background: #fff; border: 1px solid rgba(8,24,39,.3); border-radius: 10px; color: var(--ink); font: 600 1rem var(--sans); margin-top: .3rem; min-height: 48px; padding: .62rem .72rem; width: 100%; }
.hv-rol select:focus-visible, .hv-rol input:focus-visible, .hv-rol button:focus-visible, .hv-rol a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hv-rol input[aria-invalid="true"] { background: #fff7f7; border-color: var(--rol-bad); box-shadow: 0 0 0 2px rgba(139,48,48,.12); }
.hv-rol-swap { background: #fff; border: 1px solid rgba(8,24,39,.28); border-radius: 999px; color: var(--deep-blue); cursor: pointer; font-size: 1.1rem; font-weight: 800; min-height: 48px; min-width: 48px; }
.hv-rol-swap:hover { background: var(--ivory); border-color: var(--gold); }
.hv-rol-verdict { align-items: center; display: flex; flex-wrap: wrap; gap: .65rem .9rem; }
.hv-rol-name { color: var(--deep-blue); font: 700 1.55rem/1.2 var(--serif); }
.hv-rol-pill { align-items: center; border-radius: 999px; display: inline-flex; font-size: .84rem; font-weight: 800; gap: .4rem; line-height: 1; padding: .55rem .8rem; }
.hv-rol-pill.ok { background: var(--rol-good-soft); color: var(--rol-good); }
.hv-rol-pill.tax, .hv-rol-pill.cond { background: var(--rol-tax-soft); color: var(--rol-tax); }
.hv-rol-pill.no { background: var(--rol-bad-soft); color: var(--rol-bad); }
.hv-rol-answer { display: grid; gap: .9rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.hv-rol-answer > div { background: var(--ivory); border-radius: 12px; min-width: 0; padding: .9rem 1rem; }
.hv-rol-answer .hv-rol-wide { grid-column: 1/-1; }
.hv-rol-note { background: #fff9eb; border-left: 4px solid var(--gold); border-radius: 10px; padding: .82rem 1rem; }
.hv-rol-small { color: var(--slate); font-size: .88rem; }
.hv-rol-hero .hv-rol-small { color: rgba(255,255,255,.74); margin-top: 1rem; }

.hv-rol-jump { background: #fff; border-bottom: 1px solid var(--rol-rule); padding: 1rem 0; }
.hv-rol-jump .container { display: flex; flex-wrap: wrap; gap: .5rem; }
.hv-rol-jump a { align-items: center; background: #fff; border: 1px solid var(--rol-rule); border-radius: 999px; color: var(--deep-blue) !important; display: inline-flex; font-size: .8rem; font-weight: 800; min-height: 44px; padding: .48rem .85rem; text-decoration: none !important; }
.hv-rol-jump a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy) !important; }

.hv-rol-table { background: #fff; border: 1px solid var(--rol-rule); border-radius: 16px; box-shadow: 0 10px 28px rgba(8,24,39,.04); overflow-x: auto; }
.hv-rol table { border-collapse: collapse; font-size: .92rem; width: 100%; }
.hv-rol-table > table { min-width: 700px; }
.hv-rol th, .hv-rol td { border-bottom: 1px solid var(--rol-rule); padding: .72rem .85rem; text-align: left; vertical-align: top; }
.hv-rol thead th { color: #715a2e; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hv-rol tbody th { color: var(--deep-blue); font-weight: 800; }
.hv-rol-table tr:last-child > * { border-bottom: 0; }
.hv-rol .num { font-variant-numeric: tabular-nums; }
.hv-rol-key { display: flex; flex-wrap: wrap; font-size: .86rem; gap: .5rem 1rem; }
.hv-rol-key span { align-items: center; display: inline-flex; gap: .4rem; }
.hv-rol-swatch { border-radius: 5px; display: inline-grid; font-size: .68rem; font-style: normal; font-weight: 800; height: 18px; place-items: center; width: 18px; }
.hv-rol-swatch.ok { background: var(--rol-good-soft); color: var(--rol-good); }
.hv-rol-swatch.tax, .hv-rol-swatch.cond { background: var(--rol-tax-soft); color: var(--rol-tax); }
.hv-rol-swatch.no { background: #eef1f3; color: var(--slate); }
.hv-rol-matrix th, .hv-rol-matrix td { border: 1px solid var(--rol-rule); padding: 0; text-align: center; vertical-align: middle; }
.hv-rol-matrix tbody th { min-width: 145px; padding: .55rem; text-align: left; }
.hv-rol-matrix button { background: transparent; border: 0; color: inherit; cursor: pointer; display: block; font-size: .85rem; font-weight: 800; min-height: 52px; padding: .25rem; width: 100%; }
.hv-rol-matrix td.ok { background: var(--rol-good-soft); color: var(--rol-good); }
.hv-rol-matrix td.tax, .hv-rol-matrix td.cond { background: var(--rol-tax-soft); color: var(--rol-tax); }
.hv-rol-matrix td.no { background: #eef1f3; color: var(--slate); }
.hv-rol-swipe-hint { display: none; }

.hv-rol .wealth-policy-list summary { display: flex; flex-direction: column; gap: .15rem; list-style: none; padding-right: 2rem; position: relative; }
.hv-rol .wealth-policy-list summary::-webkit-details-marker { display: none; }
.hv-rol .wealth-policy-list summary::after { color: #8a6d36; content: "+"; font-size: 1.45rem; font-weight: 800; position: absolute; right: .1rem; top: -.1rem; }
.hv-rol .wealth-policy-list details[open] > summary::after { content: "−"; }
.hv-rol .wealth-policy-list summary .t { color: var(--deep-blue); font-size: 1.03rem; font-weight: 800; }
.hv-rol .wealth-policy-list summary .s { color: var(--slate); font-size: .91rem; font-weight: 500; }
.hv-rol .wealth-policy-body p, .hv-rol .wealth-policy-body li { color: var(--rol-text); font-size: .96rem; line-height: 1.6; }
.hv-rol .wealth-policy-body.hv-rol-one { grid-template-columns: minmax(0,1fr); }
.hv-rol-steps { counter-reset: rol-step; }
.hv-rol-steps details { counter-increment: rol-step; }
.hv-rol-steps summary .t::before { background: var(--navy); border-radius: 50%; color: var(--gold-light); content: counter(rol-step); display: inline-grid; font-size: .88rem; height: 28px; margin-right: .55rem; place-items: center; width: 28px; }
.hv-rol-steps summary .s { padding-left: 2.25rem; }
.hv-rol-toolbar { align-items: end; display: flex; flex-wrap: wrap; gap: .7rem; }
.hv-rol-toolbar > div { flex: 1 1 240px; min-width: 0; }

.hv-rol-tools-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.hv-rol-tool { background: #fff; border: 1px solid var(--rol-rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); color: var(--rol-text); display: flex; flex-direction: column; gap: 1rem; min-width: 0; padding: 1.4rem; }
.hv-rol-fields { display: grid; gap: .8rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.hv-rol-fields > div { min-width: 0; }
.hv-rol-result { background: var(--ivory); border-radius: 12px; padding: .9rem 1rem; }
.hv-rol-result b { color: var(--deep-blue); font: 700 1.2rem/1.25 var(--serif); }
.hv-rol-stats { display: grid; gap: .8rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.hv-rol-stats > div { border-left: 3px solid var(--gold); padding-left: .75rem; }
.hv-rol-stats .v { color: var(--deep-blue); font: 700 1.45rem/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.hv-rol-stats .l { color: var(--slate); font-size: .84rem; }
.hv-rol-qlist, .hv-rol-sources { columns: 2; column-gap: 1.8rem; list-style: none; padding: 0 !important; }
.hv-rol-qlist li, .hv-rol-sources li { break-inside: avoid; margin: 0 0 .55rem; }
.hv-rol-sources { font-size: .9rem; }
.hv-rol-review-gate { background: var(--ivory); border: 1px solid rgba(198,167,106,.5); border-radius: 14px; padding: 1rem 1.1rem; }

@media (max-width: 860px) {
  .hv-rol-tools-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .hv-rol .section { padding: 76px 0 50px; }
  .hv-rol-hero { padding: 52px 0 42px; }
  .hv-rol-pickers, .hv-rol-answer, .hv-rol-fields { grid-template-columns: minmax(0,1fr); }
  .hv-rol-swap { justify-self: start; }
  .hv-rol-finder, .hv-rol-tool { padding: 1rem; }
  .hv-rol .wealth-policy-body { grid-template-columns: minmax(0,1fr); }
  .hv-rol-qlist, .hv-rol-sources { columns: 1; }
}
@media (max-width: 639px) {
  .hv-rol-swipe-hint { color: var(--slate); display: block; font-size: .84rem; font-weight: 700; }
  #rol-irs-matrix .hv-rol-matrix thead th:first-child,
  #rol-irs-matrix .hv-rol-matrix tbody th {
    background: #fff;
    box-shadow: 2px 0 5px rgba(8,24,39,.12);
    left: 0;
    position: sticky;
    z-index: 2;
  }
  #rol-irs-matrix .hv-rol-matrix thead th:first-child { z-index: 3; }
  .hv-rol-methods, .hv-rol-limits { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .hv-rol-methods > table, .hv-rol-limits > table { display: block; min-width: 0; }
  .hv-rol-methods thead, .hv-rol-limits thead { display: none; }
  .hv-rol-methods tbody, .hv-rol-limits tbody { display: grid; gap: .85rem; }
  .hv-rol-methods tr, .hv-rol-limits tr { background: #fff; border: 1px solid var(--rol-rule); border-radius: 14px; box-shadow: 0 7px 20px rgba(8,24,39,.05); display: block; overflow: hidden; padding: .35rem .8rem; }
  .hv-rol-methods th, .hv-rol-methods td, .hv-rol-limits th, .hv-rol-limits td { border: 0; display: grid; gap: .25rem; grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr); padding: .55rem 0; }
  .hv-rol-methods th::before, .hv-rol-methods td::before, .hv-rol-limits th::before, .hv-rol-limits td::before { color: #715a2e; content: attr(data-label); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
}
@media print {
  .hv-rol-jump, .hv-rol-swap, .hv-rol-tool, #rol-copy-questions { display: none !important; }
  .hv-rol details { break-inside: avoid; }
}
