/* Stage badge foregrounds use the registered report tokens. */
.rk-overview .chain-card[data-stage="q"]>header>b,
.rk-overview .chain-card[data-stage="q"]>.chain-card-badge{color:var(--white)}
.rk-overview .chain-card[data-stage="t"]>header>b{color:var(--ink)}
.rk-overview .chain-card[data-stage="t"]>header>small{color:var(--soft)}

/* Detail baseline metadata uses the registered soft token on the dark shell. */
.stage-header .stage-authority>span{color:var(--soft)}

/* Preserve the original light M panels and dark S shell with their own palette. */
body[data-common-stage="m"] #candidate-report .tab-panel .block-heading .eyebrow.rkc-kicker{color:#55636d!important}
body[data-common-stage="m"] .tab-panel .closing-grid p{color:#192739}
body[data-common-stage="s"] .sw-summary-strip p{color:var(--soft)}
body[data-common-stage="s"] .sw-native .sw-section-head p{color:var(--sw-ink)}

/* Native stacked mobile rows need a block heading cell rather than a shrink-to-fit table cell. */
@media(max-width:640px){
body[data-common-stage="m"] #candidate-report .field-table--explanation{display:table}
body[data-common-stage="m"] #candidate-report .field-table--explanation tbody{display:table-row-group}
body[data-common-stage="m"] #candidate-report .field-table--explanation tr{display:table-row;margin:0}
body[data-common-stage="m"] #candidate-report .field-table--explanation tr>:is(th,td){display:table-cell;inline-size:auto;max-inline-size:none}
body[data-common-stage="m"] #candidate-report .field-table--explanation thead{display:table-header-group;position:static;width:auto;max-width:none;height:auto;max-height:none;overflow:visible;clip-path:none;contain:none;white-space:normal}
body[data-common-stage="m"] #candidate-report .field-table--explanation thead tr{display:table-row;width:auto;max-width:none}
body[data-common-stage="m"] #candidate-report .field-table--explanation thead th{display:table-cell;min-width:0;max-width:none;white-space:normal;overflow-wrap:normal;padding:9px 10px}
body[data-common-stage="m"] #candidate-report .field-table--explanation tr>:first-child{width:20%}
body[data-common-stage="m"] #candidate-report .field-table--explanation tr>:nth-child(2){width:8%}
body[data-common-stage="m"] #candidate-report .field-table--explanation tr>:last-child{width:72%}
body[data-common-stage="m"] #candidate-report .field-table--explanation :is(th,td)::before{content:none}
}

@media(max-width:640px){body[data-common-stage="m"] #candidate-report .field-table--explanation caption{display:table-caption}}

/* These two existing folded source tables use the original horizontal-table minimum rather than squeezed mobile columns. */
@media(max-width:640px){#candidate-report[data-route-state="q/meaning"] .report-table,#candidate-report[data-route-state="t/glance"] .report-table{min-width:48rem}}

/* Friends fixed first-review scope: approved Royal horizontal composition. */
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .rkc-frame{display:block!important;grid-template-columns:none!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .rkc-main{box-sizing:border-box!important;width:100%!important;max-width:1180px!important;margin:0 auto!important;padding:24px 32px 40px!important;min-width:0!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .rkc-content{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;min-width:0!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar{position:sticky;top:var(--nova-header-block,80px);z-index:80;background:#0b111b;border-block:1px solid #27313e}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;max-width:1180px!important;margin:0 auto!important;padding:0!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav>a{position:relative!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:12px!important;width:auto!important;min-width:0!important;min-height:72px!important;margin:0!important;padding:10px 16px!important;border:0!important;border-bottom:3px solid transparent!important;border-right:1px solid #27313e!important;border-radius:0!important;text-decoration:none!important;color:#a9b7c6!important;background:transparent!important;line-height:1.4!important;text-align:left!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav>a:last-child{border-right:0!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav>a>b{display:block!important;width:auto!important;height:auto!important;flex:0 0 auto!important;padding:0!important;background:transparent!important;color:inherit!important;font-size:20px!important;font-weight:700!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav>a>span{display:block!important;min-width:0!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav>a>span>b{display:block!important;font-size:16px!important;font-weight:650!important;white-space:nowrap!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav small{display:block!important;position:static!important;width:auto!important;height:auto!important;margin-top:3px!important;clip-path:none!important;overflow:visible!important;font-size:10px!important;font-weight:400!important;letter-spacing:.02em!important;white-space:nowrap!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav>a[aria-current]{color:#edeae0!important;border-bottom-color:var(--stage-accent,var(--gold,#c9a961))!important;background:#19222d!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar a:focus-visible{outline:2px solid #e4ce96!important;outline-offset:-4px!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .rkc-header{display:block!important;grid-template-columns:none!important;gap:normal!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .rkc-header-main{min-width:0!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .rkc-header .rkc-meta{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:8px!important;position:static!important;min-height:52px!important;padding:10px 0!important;color:#b3c0cf!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-source-context{margin:32px 0;padding:24px;border:1px solid #cbd3d9;border-radius:14px;background:#f6f7f9;color:#162334}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-source-context :is(h2,h3,h4,p,strong){color:#162334!important}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-source-context>article{padding:18px 0;border-top:1px solid #d3dae0}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-source-context p{max-width:90ch;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere;margin:10px 0}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-source-context :is(h3,h4){word-break:keep-all;overflow-wrap:anywhere}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-method-field{border-top:1px solid #cbd3d9;margin-top:24px;padding-top:20px}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-elements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media(max-width:760px){html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav>a{padding:10px 8px!important;gap:8px!important}html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav small{font-size:9px!important;letter-spacing:0!important}html body[data-pf-topnav="v1"] #candidate-report#candidate-report .rkc-header{grid-template-columns:1fr!important;gap:14px!important}html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-elements{grid-template-columns:1fr}html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-source-context{padding:16px}}
@media(max-width:520px){html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav>a{flex-direction:column!important;gap:3px!important;padding:6px 2px!important;min-height:64px!important;text-align:center!important}html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav>a>b{font-size:14px!important}html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav>a>span>b{font-size:11px!important;line-height:1.35!important;white-space:normal!important;word-break:keep-all!important}html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-stage-bar .stage-nav small{display:none!important}html body[data-pf-topnav="v1"] #candidate-report#candidate-report .rkc-main{padding:20px 16px 32px!important}}

html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-report-context{max-width:1244px;margin:0 auto;padding:12px 32px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#edeae0;background:#0b111b}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-report-identity{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 20px;min-width:0}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-report-identity strong{font-size:16px;font-weight:700}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-report-identity span{font-size:12px;color:#a7b4c3}
html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-report-context>a{display:inline-flex;align-items:center;min-height:32px;color:inherit;font-size:14px;text-decoration:none;white-space:nowrap}
@media(max-width:520px){html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-report-context{padding:8px 16px;align-items:center}html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-report-identity{display:block}html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-report-identity strong{display:block;font-size:14px}html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-report-identity span{font-size:10px}html body[data-pf-topnav="v1"] #candidate-report#candidate-report .pf-report-context>a{font-size:12px}}

/* The existing native M field hash must land below the newly approved top bar. */
html body[data-pf-topnav="v1"] #candidate-report#candidate-report [id^="field-row-"]{scroll-margin-top:calc(var(--nova-header-block,80px) + 168px)!important}
