/* The inline resume is the no-JavaScript fallback; navigation enhances it to a dialog. */
.resume-preview{max-width:900px;margin:64px auto 0;border:1px solid var(--line);background:var(--paper);color:var(--ink)}
.resume-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 24px;border-bottom:1px solid var(--line);background:var(--paper)}
.resume-toolbar h2{margin:0;font:600 12px/1.5 var(--body,Arial,sans-serif);letter-spacing:.12em;text-transform:uppercase}
.resume-toolbar [hidden]{display:none!important}
.resume-sheet{display:block;width:100%;height:auto;background:#fff}
.resume-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.resume-dialog.navigation-dialog{width:min(900px,calc(100% - 32px));max-width:900px;max-height:calc(100dvh - 32px);padding:0;overscroll-behavior:contain;scrollbar-gutter:stable;border-radius:2px}
.resume-dialog .resume-preview{margin:0;border:0;max-width:none}
.resume-dialog .resume-toolbar{position:sticky;top:0;z-index:1}
.resume-dialog [data-dialog-close]{min-width:80px}
.resume-dialog [data-dialog-close]:focus-visible{outline:2px solid var(--ink)!important;outline-offset:2px}
@media(max-width:600px){
 .resume-dialog.navigation-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px)}
 .resume-toolbar{padding:8px 20px}
 .resume-sheet{display:none}
 .resume-text{position:static;width:auto;height:auto;margin:0;padding:24px 20px;overflow:visible;clip-path:none;white-space:normal;color:var(--ink);font:400 18px/1.6 var(--body,Arial,sans-serif);overflow-wrap:anywhere}
 .resume-text h3{font-size:32px;line-height:1.05;letter-spacing:-.04em;margin:0 0 12px;font-weight:650}
 .resume-text h4{font-size:12px;line-height:1.5;text-transform:uppercase;letter-spacing:.12em;border-top:1px solid var(--line);padding-top:24px;margin:32px 0 20px}
 .resume-text h5{font-size:20px;line-height:1.4;font-weight:650;margin:24px 0 8px}
 .resume-text p{font-size:18px;line-height:1.6;margin:0 0 16px;color:var(--ink);max-width:none}
 .resume-text ul{margin:16px 0 24px;padding-left:20px}
 .resume-text li{margin:0 0 12px}
}

.resume-dialog::backdrop{background:rgba(12,14,18,.42);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
@media(prefers-reduced-motion:no-preference){
.resume-dialog[open]{animation:resume-in 320ms cubic-bezier(.22,1,.36,1) both}
.resume-dialog[open]::backdrop{animation:resume-backdrop-in 320ms ease both}
.resume-dialog[open].is-closing{animation:resume-out 200ms cubic-bezier(.22,1,.36,1) both}
.resume-dialog[open].is-closing::backdrop{animation:resume-backdrop-out 200ms ease both}
}
@keyframes resume-in{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}
@keyframes resume-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(8px) scale(.99)}}
@keyframes resume-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes resume-backdrop-out{from{opacity:1}to{opacity:0}}

.resume-personal{text-align:center;margin-bottom:32px}
.resume-personal p{margin-left:auto;margin-right:auto}

.resume-contact-groups{display:grid;grid-template-columns:1fr 1fr;gap:16px;text-align:left}.resume-contact-groups p{margin:0;overflow-wrap:anywhere}.resume-contact-groups p:last-child{text-align:right}@media(max-width:480px){.resume-contact-groups{grid-template-columns:1fr;gap:12px}.resume-contact-groups p,.resume-contact-groups p:last-child{text-align:center}}

@media(max-width:600px){.resume-personal h3{font-size:25px}.resume-personal .resume-contact-groups p{font-size:14px;line-height:1.5}}
