/* Candidate navigation and original/normalized document switch. */
#candidate-cv-dialog .candidate-cv-toolbar{flex-wrap:wrap}
.candidate-cv-view-switch{display:flex;gap:3px;padding:3px;border:1px solid #d6e1db;border-radius:9px;background:#f1f5f2}
:is(#candidate-cv-dialog,#report-cv-dialog) .candidate-cv-view-switch button{padding:8px 12px;border:0;border-radius:6px;background:#fff;color:#173735;font-family:inherit;font-size:12px;font-weight:700;line-height:1.2;cursor:pointer}
:is(#candidate-cv-dialog,#report-cv-dialog) .candidate-cv-view-switch button[aria-pressed="true"]{background:#173735;color:#fff;box-shadow:0 1px 3px #17373522}
.candidate-cv-view-switch button:focus-visible{outline:3px solid #527eaf;outline-offset:2px}
.candidate-cv-view-switch button:disabled{opacity:.45;cursor:default}
#candidate-cv-dialog .candidate-cv-text[hidden],.candidate-original-cv[hidden]{display:none!important}
.candidate-original-cv{padding:0 24px 24px}
.candidate-original-cv>p{margin:0 0 10px;color:#61716b;font-size:12px}
.candidate-original-cv a{color:#245f4d}
.candidate-original-cv iframe{display:block;box-sizing:border-box;width:100%;height:calc(100vh - 320px);height:calc(100dvh - 320px);min-height:320px;border:1px solid #d6e1db;border-radius:8px;background:#f2f4f3}
@media(max-width:680px){.candidate-cv-view-switch{align-self:stretch}:is(#candidate-cv-dialog,#report-cv-dialog) .candidate-cv-view-switch button{flex:1}.candidate-original-cv{padding:0 12px 16px}.candidate-original-cv iframe{min-height:320px;height:calc(100vh - 150px);height:calc(100dvh - 150px)}#candidate-cv-dialog .candidate-cv-toolbar>span{flex-basis:100%;text-align:right}}

#report-cv-dialog .report-cv-toolbar{flex-wrap:wrap}
#report-cv-dialog [data-report-cv-text][hidden],#report-cv-dialog .report-cv-search[hidden]{display:none!important}
#report-cv-dialog .candidate-cv-view-switch{justify-self:end}

#candidate-cv-dialog .candidate-cv-header{position:sticky;top:0;z-index:3;background:#fff}
#candidate-cv-document{scroll-margin-top:180px}
@media(max-width:680px){#candidate-cv-document{scroll-margin-top:280px}}
/* Keep the new controls usable alongside the existing compact action menu. */
#candidate-cv-dialog,#report-cv-dialog[open]{box-sizing:border-box;width:calc(100vw - 24px);height:calc(100vh - 24px);height:calc(100dvh - 24px);max-width:none;max-height:none;margin:auto}
#candidate-cv-dialog .candidate-cv-identity{min-width:0;flex:1}
#candidate-cv-dialog .candidate-cv-controls{max-width:100%;min-width:340px}
#candidate-cv-dialog .candidate-cv-toolbar{display:flex;gap:8px}
#candidate-cv-dialog .candidate-cv-nav-button{padding:8px 12px;border:1px solid #cbd9d1;border-radius:7px;background:#fff;color:#29483c;font:600 12px/1.3 "DM Sans",sans-serif;cursor:pointer}
#candidate-cv-dialog .candidate-cv-nav-button.is-primary,#report-cv-dialog .report-cv-close{background:#fff;border-color:#cbd9d1;color:#29483c}
#candidate-cv-dialog .candidate-cv-nav-button:hover,#report-cv-dialog .report-cv-close:hover{background:#fff;border-color:#7f9f90;color:#173735}
#candidate-cv-dialog .candidate-cv-nav-button:disabled{opacity:.4;cursor:default}
#candidate-cv-dialog .candidate-cv-action-menu{display:grid;grid-template-columns:repeat(4,minmax(65px,1fr));width:100%;box-sizing:border-box}
#candidate-cv-dialog .candidate-cv-action-menu .candidate-cv-action{display:flex;flex-direction:column;justify-content:center;gap:4px;width:100%;height:auto;min-height:52px;padding:7px 4px;font:500 11px/1.25 "DM Sans",sans-serif;text-align:center;text-decoration:none;box-sizing:border-box}
#candidate-cv-dialog .candidate-cv-heading-line .eyebrow{margin:0 0 6px}
#candidate-cv-dialog .candidate-cv-meta{overflow-wrap:anywhere;margin:0 0 8px}
#candidate-cv-dialog .candidate-cv-contact{font-size:12px;overflow-wrap:anywhere;margin:8px 0}
#candidate-cv-dialog .candidate-cv-section-heading{padding:18px 24px 12px}
#candidate-cv-dialog .candidate-cv-section-heading .eyebrow{margin:0 0 6px}
#candidate-cv-dialog .candidate-cv-section-heading h3{margin:0 0 5px}
#candidate-cv-dialog [data-cv-document-caption]{color:#61716b;font-size:12px}
#candidate-cv-document{scroll-margin-top:235px}
@media(max-width:680px){#candidate-cv-dialog .candidate-cv-controls{min-width:0}#candidate-cv-dialog .candidate-cv-header{position:static}#candidate-cv-document{scroll-margin-top:12px}#candidate-cv-dialog .candidate-cv-section-heading{padding:16px 12px 10px}}
/* Double the profile typography in the CV headers. */
#candidate-cv-dialog{--cv-profile-label-size:14px;--cv-profile-value-size:16px;--cv-profile-title-size:18px}
#report-cv-dialog{--cv-profile-label-size:20px;--cv-profile-value-size:22px;--cv-profile-title-size:24px}
:is(#candidate-cv-dialog .candidate-cv-header,#report-cv-dialog .report-cv-header) .candidate-profile-label{font-size:var(--cv-profile-label-size)!important}
:is(#candidate-cv-dialog .candidate-cv-header,#report-cv-dialog .report-cv-header) .candidate-profile-fact strong,
:is(#candidate-cv-dialog .candidate-cv-header,#report-cv-dialog .report-cv-header) .candidate-profile-institution{font-size:var(--cv-profile-value-size)!important}
:is(#candidate-cv-dialog .candidate-cv-header,#report-cv-dialog .report-cv-header) .candidate-profile-fact.is-title strong{font-size:var(--cv-profile-title-size)!important}
:is(#candidate-cv-dialog .candidate-cv-header,#report-cv-dialog .report-cv-header) .candidate-profile-fact.is-title{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:2px 6px}
:is(#candidate-cv-dialog .candidate-cv-header,#report-cv-dialog .report-cv-header) .candidate-profile-fact.is-title strong{margin-top:0}
:is(#candidate-cv-dialog .candidate-cv-header,#report-cv-dialog .report-cv-header) .candidate-title-review{grid-column:2;font-size:12px!important;line-height:1.4;font-weight:400}
