/* Each resume page fits the reader's available viewport; original PDF stays accessible. */
@media screen{
 #reader.resume-reader{--resume-unit:clamp(1px,min(.069444vw,.111111vh),1.5px);width:min(calc(740 * var(--resume-unit)),calc(100vw - 28px));max-width:none;height:min(calc(100dvh - 32px),calc(1060 * var(--resume-unit)));max-height:calc(100dvh - 32px);overflow:hidden}
 #reader.resume-reader[open]{display:flex;flex-direction:column}
 .resume-reader .dialog-frame{display:flex;flex-direction:column;flex:1;min-height:0}
 .resume-reader .dialog-top{flex:none;padding:calc(7 * var(--resume-unit)) calc(14 * var(--resume-unit));font-size:calc(10 * var(--resume-unit))}
 .resume-reader .dialog-top button{min-width:calc(30 * var(--resume-unit));min-height:calc(30 * var(--resume-unit));font-size:calc(25 * var(--resume-unit))}
 .resume-reader #dialog-content{flex:1;min-height:0;padding:calc(10 * var(--resume-unit)) calc(14 * var(--resume-unit));overflow:hidden}
 .resume-reader .dialog-bottom{display:none}
 .resume-viewer{height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:calc(10 * var(--resume-unit))}
 .resume-reader .resume-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .resume-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:calc(12 * var(--resume-unit)) calc(20 * var(--resume-unit))}
 .resume-toolbar{display:flex;flex-wrap:wrap;justify-content:center;gap:calc(10 * var(--resume-unit))}
 .resume-viewer .reader-button{display:inline-flex;align-items:center;justify-content:center;min-height:calc(34 * var(--resume-unit));padding:calc(7 * var(--resume-unit)) calc(10 * var(--resume-unit));font-size:calc(12 * var(--resume-unit));line-height:1.4;white-space:nowrap;text-decoration:none}
 .resume-sheet{margin:0;min-width:0;min-height:0;display:flex;justify-content:center}
 .resume-sheet a{display:flex;width:100%;height:100%;min-height:0;align-items:center;justify-content:center}
 .resume-sheet img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
 .resume-pagination{display:flex;align-items:center;justify-content:center;gap:calc(18 * var(--resume-unit));min-width:0}
 .resume-page-status{font-size:calc(12 * var(--resume-unit));white-space:nowrap;color:#65573f;font-variant-numeric:tabular-nums}
 @media(max-width:420px){.resume-reader #dialog-content{padding:8px}.resume-pagination{gap:10px}}
 @media(max-height:500px){#reader.resume-reader{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.resume-reader .dialog-top{padding-top:2px;padding-bottom:2px}.resume-viewer{gap:6px}.resume-reader #dialog-content{padding-top:6px;padding-bottom:6px}.resume-viewer .reader-button{min-height:28px;padding-top:3px;padding-bottom:3px}}
}
