.cv-download { text-align:left; line-height:1.45; }
.cv-download summary { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.cv-download summary::-webkit-details-marker { display:none; }
.cv-download[open] summary { border-color:var(--cyan); }
.cv-download>.cv-panel {
  display:block; top:calc(100% + 8px); width:25rem; min-width:0;
  max-width:calc(100vw - 40px);
  max-height:min(34rem, var(--cv-space, calc(100dvh - 120px)));
  overflow-y:auto; overscroll-behavior:contain; padding:12px;
  box-shadow:0 16px 40px #0005;
}
.cv-download.cv-open-up>.cv-panel { top:auto; bottom:calc(100% + 8px); }
.resume-links .cv-panel { left:0; right:auto; }
.cv-language { display:flex; gap:4px; border:1px solid var(--line); border-radius:7px; padding:4px; }
.cv-language button {
  flex:1; min-height:44px; padding:9px 12px; border:0; border-radius:4px;
  background:transparent; color:var(--muted); font-size:14px; cursor:pointer;
}
.cv-language button[aria-pressed="true"] { background:var(--cyan); color:var(--bg); font-weight:600; }
.cv-language button:hover { color:var(--white); }
.cv-language button[aria-pressed="true"]:hover { color:var(--bg); }
.cv-panel .cv-hint { margin:16px 10px 8px; color:var(--muted); font-size:12px; }
.cv-options { display:grid; }
.cv-download a.cv-option {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  min-height:48px; padding:12px 10px; border-radius:5px;
  white-space:normal; font-size:14px; border:0;
}
.cv-option+.cv-option { border-top:1px solid var(--line) !important; }
.cv-option .cv-label { display:block; color:inherit; }
.cv-option .cv-file { display:block; flex:none; color:var(--muted); font-size:11px; white-space:nowrap; }
.cv-download :is(button,a):focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
@media(max-width:900px) {
  .navlinks .cv-download { width:100%; }
  .navlinks .cv-download>.cv-panel { position:static; margin-top:8px; width:100%; max-width:none; max-height:none; box-shadow:none; }
}
@media(max-width:650px) {
  .cv-download>.cv-panel { position:static; width:100%; max-width:none; max-height:none; margin-top:8px; box-shadow:none; }
  footer .cv-download { flex-basis:100%; }
  .resume-links { width:100%; }
}
