/* Category gallery extension of the approved Archivo / sky / orange system. */
:root{--gallery-gap:28px;--section-space:64px;--portrait-max:420px}
.pilot-profile .profile-vote{margin-top:26px}
.pilot-profile .subcopy{margin:0 0 24px}
.pilot-profile .notice{border-left:0;border-top:1px solid var(--orange-deep);margin:20px 0;line-height:1.6}
.pilot-profile .profile-vote h2{font-size:24px}
.pilot-profile .pilot-help{font-size:13px;margin:22px 0 10px}
.pilot-profile .pilot-receipt{overflow-wrap:anywhere;font-size:13px}
.pilot-selection{display:grid;gap:12px;text-align:left;padding:24px 0;margin-top:28px;border-block:1px solid var(--line)}
.pilot-selection p,.pilot-selection small{color:var(--muted);font-size:13px;line-height:1.6}
.pilot-selection strong{font-size:24px;line-height:1.2;overflow-wrap:anywhere}
.pilot-selection .btn{justify-self:start}
@media(max-width:720px){.pilot-selection .btn{width:100%;justify-self:stretch}.site-header nav .nav-admin:has(+.nav-pilot){display:none}}
/* Native, keyboard-accessible controls for the isolated test ballot. */
.pilot-select{display:block;width:100%;min-height:48px;margin:12px 0 18px;padding:12px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;border-radius:2px}
.pilot-select:focus-visible{outline:2px solid var(--sky-deep);outline-offset:3px}
::selection{background:#bae6fd;color:var(--ink)}
html{scrollbar-color:#6e98af #eef5f9;caret-color:var(--sky-deep)}
h1,h2,h3{letter-spacing:-.035em;text-wrap:balance}
.gallery-main{padding-top:36px}
.selection-intro{margin:0;grid-template-columns:1.5fr 1fr;gap:64px}
.selection-intro h1{font-size:clamp(44px,5.8vw,76px);max-width:15ch;line-height:1}
.selection-intro .intro-copy{max-width:370px}
.intro-copy p{font-size:17px;line-height:1.6}
.intro-copy .ballot-rule{font-size:14px;margin-top:20px}
.ballot-rule strong{color:var(--ink);font-size:15px}
.gallery-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0 0;padding:12px 0;border-top:1px solid var(--line);font-size:13px}
.gallery-summary p{font-weight:600}
.gallery-summary p span{color:var(--sky-deep);padding:0 12px}
.gallery-summary a{min-height:44px;display:inline-flex;align-items:center;gap:8px}
.discovery{background:#f0f8fc;margin:12px 0 0;padding:12px 24px}
.category-filters{display:flex;flex-wrap:wrap;gap:4px 21px}
.category-filters button{border:0;border-bottom:2px solid transparent;padding:10px 0;min-height:46px;color:var(--muted);background:transparent;font-size:13px;font-weight:600;white-space:nowrap}
.category-filters button span{font-size:11px;padding-left:5px;font-variant-numeric:tabular-nums}
.category-filters button[aria-pressed=true]{border-bottom-color:var(--orange-deep);color:var(--ink)}
.category-filters button:hover{color:var(--sky-deep)}
.gallery-search{display:flex;align-items:center;gap:16px;margin-top:8px;padding-top:8px;border-top:1px solid #cfdfeb}
.gallery-search label{font-size:13px;font-weight:600}
.gallery-search input{width:280px;min-height:44px;border:1px solid #8ba3b5;background:white;border-radius:2px;padding:10px 12px;color:var(--ink)}
.gallery-search input::placeholder{color:#52687a}
#gallery-count{margin-left:auto;font-size:12px;color:var(--muted)}
.discipline{margin-top:36px}
.discipline-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}
.discipline-heading h2{font-size:34px}
.discipline-heading p{font-size:13px;color:var(--muted);margin-top:8px}
.discipline-heading>span{font-size:12px;color:var(--muted);margin-bottom:2px}
.graduates-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px var(--gallery-gap)}
.graduate{min-width:0;display:flex;flex-direction:column;border-bottom:1px solid var(--line);padding-bottom:16px}
.portrait-link{display:block;text-decoration:none;background:var(--pale)}
.portrait{display:block;width:100%;height:auto;aspect-ratio:1122/1402;object-fit:contain;object-position:center;transform:none}
.portrait-link:hover{outline:2px solid var(--sky-deep);outline-offset:4px}
.graduate-meta{display:flex;justify-content:space-between;gap:12px;margin-top:18px;color:var(--muted);font-size:10px;letter-spacing:.045em;text-transform:uppercase}
.graduate h3{font-size:23px;font-weight:700;line-height:1.18;margin-top:9px;margin-bottom:12px;max-width:22ch}
.graduate h3 a{text-decoration:none}
.graduate h3 a:hover{color:var(--sky-deep)}
.graduate-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}
.graduate-bottom .text-button{padding:8px 0;font-size:12px}
.project-pending,.category-voted{font-size:10px;color:var(--muted)}
.category-voted{color:var(--sky-deep);font-weight:600}
.portrait-pending{aspect-ratio:1122/1402;background:#e7f3fa;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:#245470;text-align:center;padding:20px}
.portrait-pending>span{font-size:64px;font-weight:700;letter-spacing:-.04em}
.portrait-pending p{font-size:13px}
.gallery-end{border-top:1px solid var(--line);padding-top:40px;margin-top:64px;max-width:720px}
.gallery-end h2{font-size:28px}
.gallery-end p{color:var(--muted);font-size:16px;margin:16px 0}
.search-empty{padding:64px 0;text-align:center}
.search-empty h2{font-size:28px}
.search-empty p{margin:16px 0 24px}
.profile-main{padding-top:24px}
.profile-layout{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:clamp(32px,6vw,88px);align-items:start;padding-top:8px}
.profile-photograph{max-width:var(--portrait-max)}
.profile-layout>*{min-width:0}
.profile-copy{padding-top:12px}
.profile-category{font-size:13px;font-weight:600;color:var(--sky-deep);display:inline-flex;gap:12px;min-height:44px;align-items:center;text-decoration:none}
.profile-copy h1{font-size:clamp(32px,4vw,54px);line-height:1.05;margin:12px 0 18px;overflow-wrap:anywhere;max-width:17ch}
.profile-id{font-size:11px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}
.project-section{padding:26px 0;border-block:1px solid var(--line);margin:32px 0}
.project-section h2{font-size:22px;letter-spacing:-.02em}
.project-section p{font-size:16px;line-height:1.6;color:var(--muted);margin:14px 0;max-width:42ch}
.project-status{font-size:12px;color:var(--sky-deep)}
.profile-vote{max-width:470px}
.profile-vote p{font-size:15px;color:var(--muted);line-height:1.7;margin-bottom:22px}
.profile-vote strong{color:var(--ink)}
.profile-vote .btn{width:100%}
.profile-vote>.text-button{display:flex;margin-top:8px}
.profile-vote small{font-size:11px;color:var(--muted);display:block;margin-top:10px}
.asset-note{font-size:12px;color:var(--muted);line-height:1.6;padding:12px 0}
.passport-side{background:var(--pale)}
.passport-side>p:first-child{font-size:13px;font-weight:600;color:var(--sky-deep)}
.passport-person{margin-top:24px}
.passport-person>.portrait,.passport-person>.portrait-pending{width:100%;max-width:200px}
.passport-side h2.selected-name{display:block;font-size:27px;line-height:1.15;letter-spacing:-.03em;margin-top:8px}
.passport-side .selection-label{margin-top:20px;font-size:12px}
.passport-side .text-button{margin:8px 0 16px}
.passport-side .journey b{background:var(--pale)}
.passport-side .journey .done b{background:var(--ink)}
.passport-side .journey .current b{background:var(--orange)}
.passport-side .side-note{border-color:var(--line)}
.review-choice h2{font-size:38px;line-height:1.15}
.category-progress{text-align:left;margin-top:36px;border-top:1px solid var(--line);padding-top:22px}
.category-progress h2{font-size:22px;margin-bottom:18px}
.voter-action{margin:14px 0}
#social-code{display:block;width:100%;max-width:100%;box-sizing:border-box;margin:12px 0 22px;padding:16px;border:1px solid var(--line);background:var(--paper,#fff);color:var(--ink,#101729);font:inherit;line-height:1.6;resize:vertical;overflow-wrap:anywhere}
.category-progress>div{display:flex;gap:16px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);min-height:58px;font-size:14px}
.category-progress>div>span:last-child{font-size:12px;color:var(--muted)}
.admin-photo{width:48px;flex:none}
.admin-photo .portrait-pending{padding:4px;gap:0}
.admin-photo .portrait-pending span{font-size:18px}
.admin-photo .portrait-pending p{display:none}
.admin-heading h1{max-width:22ch}
dialog select{width:100%;min-height:48px;background:white;border:1px solid #8a9aab;padding:10px 12px;color:var(--ink)}
dialog label:not(:first-child){margin-top:18px}
.result-table .table-count{width:100px;text-align:right}
@media(min-width:1450px){.gallery-main,.profile-main{max-width:1184px}}
@media(max-width:1000px){
  .graduates-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 24px}
  .selection-intro{gap:30px}
  .selection-intro h1{font-size:clamp(44px,6vw,64px)}
  .gallery-search{flex-wrap:wrap}
  .profile-layout{grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:32px}
  .profile-copy h1{font-size:38px}
}
@media(max-width:720px){
  .gallery-main{padding-top:36px}
  .selection-intro{grid-template-columns:1fr;gap:24px}
  .selection-intro h1{font-size:clamp(40px,8vw,58px);line-height:1.02}
  .selection-intro .intro-copy{max-width:40ch}
  .intro-copy p{font-size:16px}
  .intro-copy .ballot-rule{margin-top:16px;font-size:14px}
  .gallery-summary{align-items:start;flex-direction:column;gap:4px;margin-top:26px;padding:16px 0;font-size:12px}
  .gallery-summary p span{padding:0 7px}
  .discovery{padding:16px;margin-top:0}
  .category-filters{gap:2px 16px}
  .category-filters button{font-size:12px}
  .gallery-search{display:grid;grid-template-columns:1fr;gap:8px;margin-top:16px;padding-top:16px}
  .gallery-search input{width:100%}
  #gallery-count{margin:2px 0 0;font-size:11px}
  .discipline{margin-top:38px}
  .discipline-heading{align-items:start;margin-bottom:18px}
  .discipline-heading h2{font-size:28px}
  .discipline-heading>span{max-width:12ch;font-size:11px;text-align:right;line-height:1.5}
  .graduate h3{font-size:21px}
  .graduate-bottom{flex-wrap:wrap;gap:0 12px}
  .graduate-meta{font-size:9px}
  .gallery-end{margin-top:42px;padding-top:32px}
  .profile-layout{grid-template-columns:minmax(0,1fr);gap:24px}
  .profile-photograph{width:100%;margin:0 auto}
  .profile-copy{padding-top:0}
  .profile-copy h1{font-size:40px;max-width:18ch}
  .profile-copy h1.long-name{font-size:clamp(26px,7vw,34px)}
  .profile-main .back-link{margin-bottom:12px}
  .project-section{margin:24px 0}
  .passport-person{display:grid;grid-template-columns:70px 1fr;gap:16px;align-items:center;margin-top:18px}
  .passport-person .selection-label{margin-top:0}
  .passport-side h2.selected-name{font-size:23px}
  .passport-side .journey{margin-top:8px}
  .review-choice h2{font-size:32px}
}
@media(max-width:540px){
  .graduates-grid{grid-template-columns:minmax(0,1fr);gap:32px;max-width:420px;margin-inline:auto}
  .graduate h3{font-size:25px;max-width:25ch}
  .graduate-meta{font-size:10px}
  .graduate-bottom{flex-wrap:nowrap}
}
@media(max-width:360px){.selection-intro h1{font-size:38px}.profile-copy h1{font-size:34px}.graduate h3{font-size:23px}.gallery-summary{font-size:11px}}
@media(prefers-reduced-motion:reduce){.btn{transition:none}.main-wrap,.admin-main{animation:none}}
