/* Existing approved Royal semantic roles, scoped to Duet only. */

html body[data-duet-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-duet-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-duet-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-duet-topnav="v1"] #candidate-report#candidate-report .duet-stage-bar{position:sticky;top:var(--nova-header-block,80px);z-index:80;background:#0b111b;border-block:1px solid #27313e}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-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-duet-topnav="v1"] #candidate-report#candidate-report .duet-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-duet-topnav="v1"] #candidate-report#candidate-report .duet-stage-bar .stage-nav>a:last-child{border-right:0!important}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-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-duet-topnav="v1"] #candidate-report#candidate-report .duet-stage-bar .stage-nav>a>span{display:block!important;min-width:0!important}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-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-duet-topnav="v1"] #candidate-report#candidate-report .duet-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-duet-topnav="v1"] #candidate-report#candidate-report .duet-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-duet-topnav="v1"] #candidate-report#candidate-report .duet-stage-bar a:focus-visible{outline:2px solid #e4ce96!important;outline-offset:-4px!important}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .rkc-header{display:block!important;grid-template-columns:none!important;gap:normal!important}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .rkc-header-main{min-width:0!important}
html body[data-duet-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-duet-topnav="v1"] #candidate-report#candidate-report .duet-source-context{margin:32px 0;padding:24px;border:1px solid #cbd3d9;border-radius:14px;background:#f6f7f9;color:#162334}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-source-context :is(h2,h3,h4,p,strong){color:#162334!important}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-source-context>article{padding:18px 0;border-top:1px solid #d3dae0}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-source-context p{max-width:90ch;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere;margin:10px 0}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-source-context :is(h3,h4){word-break:keep-all;overflow-wrap:anywhere}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-method-field{border-top:1px solid #cbd3d9;margin-top:24px;padding-top:20px}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-elements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media(max-width:760px){html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-stage-bar .stage-nav>a{padding:10px 8px!important;gap:8px!important}html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-stage-bar .stage-nav small{font-size:9px!important;letter-spacing:0!important}html body[data-duet-topnav="v1"] #candidate-report#candidate-report .rkc-header{grid-template-columns:1fr!important;gap:14px!important}html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-elements{grid-template-columns:1fr}html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-source-context{padding:16px}}
@media(max-width:520px){html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-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-duet-topnav="v1"] #candidate-report#candidate-report .duet-stage-bar .stage-nav>a>b{font-size:14px!important}html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-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-duet-topnav="v1"] #candidate-report#candidate-report .duet-stage-bar .stage-nav small{display:none!important}html body[data-duet-topnav="v1"] #candidate-report#candidate-report .rkc-main{padding:20px 16px 32px!important}}

html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-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-duet-topnav="v1"] #candidate-report#candidate-report .duet-report-identity{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 20px;min-width:0}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-report-identity strong{font-size:16px;font-weight:700}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-report-identity span{font-size:12px;color:#a7b4c3}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-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-duet-topnav="v1"] #candidate-report#candidate-report .duet-report-context{padding:8px 16px;align-items:center}html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-report-identity{display:block}html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-report-identity strong{display:block;font-size:14px}html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-report-identity span{font-size:10px}html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-report-context>a{font-size:12px}}

/* The existing native M field hash must land below the newly approved top bar. */
html body[data-duet-topnav="v1"] #candidate-report#candidate-report [id^="field-row-"]{scroll-margin-top:calc(var(--nova-header-block,80px) + 168px)!important}

html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;min-width:0;border:1px solid #cbd3d9;border-radius:8px;background:#fff;color:#203649}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-table-scroll:focus-visible{outline:2px solid #9e6f14;outline-offset:3px}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-table-scroll table{border-collapse:collapse;width:100%;min-width:720px;font-size:14px;line-height:1.7;color:#203649;background:#fff}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-table-scroll :is(th,td){padding:12px 14px;border:1px solid #d2dce5;color:#203649;vertical-align:top;text-align:left;word-break:keep-all;overflow-wrap:anywhere}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-table-scroll thead th{background:#e9eef4;color:#132c46;font-weight:700}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-source-table-section{margin:24px 0;padding:20px;background:#f5f7fa;color:#203649;border:1px solid #cbd3d9;border-radius:12px;min-width:0}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-source-table-section>h3{color:#162f4a!important;margin:0 0 16px}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report [data-duet-source]{font-size:16px;line-height:1.8;color:#203649;background:#f5f7fa;border:1px solid #cbd3d9;border-radius:12px;padding:18px 20px;word-break:keep-all;overflow-wrap:anywhere}

html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-history-note{margin:16px 0;padding:10px 14px;border:1px solid #314252;border-radius:8px;background:#101c28;color:#cbd5e1;font-size:14px;line-height:1.7}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-history-note>summary{cursor:pointer;min-height:32px;align-content:center;color:#d6dfea;word-break:keep-all}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-history-note>p{color:#cbd5e1!important;font-size:14px!important;line-height:1.8!important;margin:12px 0 0!important;word-break:keep-all;overflow-wrap:anywhere}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .duet-history-note>summary:focus-visible{outline:2px solid #e4ce96;outline-offset:3px}

/* Actual background contrast repair; existing approved paper/ink roles, no geometry change. */
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .rkc-header .rkc-meta>span:first-child{color:inherit!important}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report :is(.eexp,.qweb,.tweb) .rkc-kicker,html body[data-duet-topnav="v1"] #candidate-report#candidate-report .tab-panel .rkc-kicker{color:#203649!important}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .method-hierarchy>span{color:#203649!important}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .filter-count{color:#203649!important}
html body[data-duet-topnav="v1"] #candidate-report#candidate-report .field-table .domain-heading small{color:#203649!important}
html body[data-nova-domain="reports"] #duet-card-q header>b,html body[data-nova-domain="reports"] #duet-card-q .chain-card-badge{color:#fff!important}
html body[data-nova-domain="reports"] #duet-card-t header>b,html body[data-nova-domain="reports"] #duet-card-t .chain-card-badge{color:#07101d!important}
html body[data-nova-domain="reports"] #duet-card-t header>small{color:#b3c0cf!important}
