.application-section {
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:clamp(35px,6vw,95px);
  padding-top:75px;
  padding-bottom:75px;
  border-bottom:1px solid #ddd;
}
.application-intro h2 { font-size:clamp(36px,3.75vw,60px); max-width:10em; }
.application-intro>p { max-width:34em; }
.application-eyebrow { font-size:16px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:18px; }
/* Before applications open: a clear notice in the intro, which stays in view beside the long form on desktop. */
.application-intro { position:sticky; top:118px; align-self:start; }
.application-preview-note { margin-top:28px; max-width:34em; background:var(--yellow); border-left:6px solid var(--orange); padding:20px 22px; border-radius:var(--radius); font-size:16px; }
.application-preview-note p { margin:0; }
.application-preview-title { font-family:var(--heading); font-weight:500; font-size:22px; line-height:1.25; margin-bottom:6px!important; }
.application-fields { display:grid; grid-template-columns:1fr 1fr; gap:28px 22px; }
.application-field { min-width:0; }
.application-field-wide { grid-column:1/-1; }
.application-field label,.application-roles legend { display:block; font-family:var(--heading); font-size:20px; font-weight:500; line-height:1.3; margin-bottom:10px; }
.application-field label span { font-family:var(--body); font-weight:400; font-size:14px; white-space:nowrap; }
.application-form input:not([type=checkbox]),.application-form textarea {
  display:block;
  width:100%;
  font:inherit;
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
  border:1px solid #999;
  border-radius:var(--radius);
  padding:14px 16px;
  background:var(--paper);
  min-height:52px;
}
.application-form textarea { resize:vertical; }
/* Word counter (added by application-form.js) sits inside the box's bottom-right corner. */
.application-word-box { position:relative; }
.application-form .application-word-box textarea { padding-bottom:44px; }
/* A solid strip along the bottom edge, so long answers scroll behind it instead of under the numbers.
   It stops short of the right edge to leave the resize handle uncovered. */
.application-word-count { position:absolute; left:2px; right:18px; bottom:2px; padding:10px 0 12px; border-radius:0 0 0 var(--radius); background:var(--paper); text-align:right; font-size:14px; line-height:1; color:#595959; pointer-events:none; font-variant-numeric:tabular-nums; }
.application-word-count.is-over { color:#a52d16; }
/* Focus: a 2px yellow border like the yearbook search box, in place of the browser outline.
   The box-shadow adds the second pixel so the field doesn't shift. */
.application-form input:not([type=checkbox]),.application-form textarea { transition:border-color .2s,box-shadow .2s; }
.application-form input:not([type=checkbox]):focus,.application-form textarea:focus { outline:0; border-color:var(--yellow); box-shadow:0 0 0 1px var(--yellow); }
.application-help { font-size:16px; line-height:1.5; margin-bottom:14px; }
.application-roles { border:0; padding:0; margin:0; min-width:0; }
.application-role-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.application-roles legend span { font-family:var(--body); font-weight:400; font-size:14px; }
.application-document-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.application-video { background:var(--muted); padding:25px; border-radius:var(--radius); }
.application-form input[type=file] { background:var(--paper); font-size:14px; padding:10px; }
.application-form input[type=file]::file-selector-button { font:inherit; border:0; border-radius:4px; padding:10px 14px; margin-right:10px; background:var(--yellow); color:var(--ink); cursor:var(--pointer); }
.application-file-selection { margin:12px 0 0; overflow-wrap:anywhere; }
.application-file-selection:empty { display:none; }
.application-consents { display:grid; gap:16px; margin:30px 0; }
.application-consent { display:flex; gap:14px; align-items:flex-start; font-size:15px; line-height:1.5; cursor:var(--pointer); }
.application-returning { gap:6px; }
.application-returning .application-help { padding-left:36px; }
.application-returning .application-consent { display:flex; align-items:center; margin-bottom:0; }
/* Returning members skip the written questions, which application-form.js disables. */
.application-field:has(textarea:disabled) > :is(label,.application-help,.application-word-box) { opacity:.55; }
.application-field textarea:disabled { cursor:var(--cursor); }
.application-consent input { width:22px; height:22px; flex-shrink:0; margin:1px 0 0; accent-color:var(--orange); }
.application-submit { border:0; }
.application-error { color:#a52d16; font-size:16px; padding:16px; background:#fff0eb; border-left:3px solid var(--orange); }
.application-submit-status { margin:16px 0 0; }
.application-submit-status:empty { display:none; }
.application-save { margin-top:36px; padding:25px; background:var(--muted); border-radius:var(--radius); }
.application-save h3 { font-size:24px; margin-bottom:8px; }
.application-save-button { background:var(--paper); color:var(--ink); border:1px solid var(--ink); padding:16px 28px; }
.application-save-button:hover { background:var(--yellow); }
.application-save-status { margin:16px 0 0; }
.application-save-status:empty { display:none; }
.application-restored { background:var(--muted); padding:16px 20px; border-radius:var(--radius); font-size:16px; }
.application-confirmation { background:var(--muted); border-radius:var(--radius); padding:40px; }
.application-confirmation h3 { font-size:clamp(30px,3vw,44px); }
.application-confirmation .button { border:0; margin-top:12px; }
.application-next-title { font-size:20px; margin:28px 0 14px; }
.application-next-steps { list-style:none; counter-reset:step; padding:0; margin:0 0 24px; }
.application-next-steps li { counter-increment:step; position:relative; padding:0 0 18px 48px; line-height:1.5; }
.application-next-steps li::before { content:counter(step); position:absolute; left:0; top:0; width:32px; height:32px; border-radius:50%; background:var(--yellow); font-family:var(--heading); font-weight:500; display:grid; place-items:center; }
.application-next-steps strong { display:block; font-family:var(--heading); font-weight:500; }
.application-follow-links { margin:0 0 16px -7px; }
.application-section [hidden] { display:none!important; }
@media(max-width:1000px) {
  .application-section { grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); gap:35px; }
  .application-role-fields,.application-document-fields { grid-template-columns:1fr; }
}
@media(max-width:800px) {
  .application-section { grid-template-columns:1fr; gap:24px; padding:45px 20px; }
  .application-intro h2 { max-width:12em; }
  .application-intro { position:static; }
  .application-preview-note { margin-top:20px; }
  .application-intro>p:last-child { margin-bottom:0; }
  .application-fields { grid-template-columns:1fr; gap:24px; }
  .application-video,.application-confirmation { padding:22px; }
  .application-submit { width:100%; }
}

.application-honeypot { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
/* The resting bee (not the not-allowed cursor) so it can show what it's holding (main.js, data-bee-holds). */
:is(.application-documents,.application-video) input:disabled { opacity:.55; cursor:var(--cursor); }
:is(.application-documents,.application-video) input:disabled::file-selector-button { cursor:var(--cursor); }

/* Apply page: pick three positions by department (assets/js/apply-picker.js), then the form. */
.apply-hero h1 { margin-bottom:28px; }
/* A teal ribbon across the photo's bottom right corner. It shares the photo's grid cell; the square box clips the
   rotated band to the photo's rounded corner. */
.apply-hero>img,.apply-hero>:where(picture)>img,.apply-hero .apply-ribbon { grid-area:1/1; }
.apply-hero .apply-ribbon { position:relative; align-self:end; justify-self:end; width:290px; height:290px; margin:0; overflow:hidden; border-bottom-right-radius:var(--radius-lg); pointer-events:none; }
.apply-ribbon span { position:absolute; left:50%; top:50%; width:150%; padding:11px 0; background:var(--teal); color:var(--ink); box-shadow:0 2px 10px rgb(0 0 0/.25); font:500 16px/1.2 var(--heading); text-align:center; white-space:nowrap; transform:translate(-50%,-50%) rotate(-45deg) translateY(48px); }
@media(max-width:800px){
  .apply-hero .apply-ribbon { width:250px; height:250px; }
  .apply-ribbon span { padding:9px 0; font-size:14px; transform:translate(-50%,-50%) rotate(-45deg) translateY(42px); }
}
.picker { margin:16px var(--gutter) 0; padding:60px 5% 65px; border-radius:var(--radius-lg); background:var(--sunrise); scroll-margin-top:90px; }
.picker .section-title { margin-bottom:22px; }
/* Three numbered steps in a row, like a workflow. */
.picker-steps { list-style:none; counter-reset:step; display:flex; justify-content:center; flex-wrap:wrap; gap:10px 34px; margin:0 0 34px; padding:0; }
.picker-steps li { counter-increment:step; display:flex; align-items:center; gap:10px; font-size:17px; }
.picker-steps li:before { content:counter(step); display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--ink); color:var(--paper); font-family:var(--heading); font-weight:500; font-size:15px; }
/* The three slots fill as positions are picked. */
.picker-tray { display:grid; grid-template-columns:auto repeat(3,minmax(0,1fr)); align-items:center; gap:12px; margin-bottom:22px; }
.picker-status { margin:0; font-family:var(--heading); font-weight:500; font-size:18px; min-width:7.5em; }
.picker-slots { display:contents; list-style:none; }
.picker-slot { position:relative; display:flex; flex-direction:column; justify-content:center; min-height:62px; padding:10px 46px 10px 16px; border:2px dashed #c9bd8f; border-radius:var(--radius-lg); color:#5c5646; font-size:15px; }
.picker-slot.is-filled { border:2px solid var(--paper); background:var(--paper); box-shadow:var(--shadow); color:var(--ink); }
.picker-slot span { font-family:var(--heading); font-weight:500; font-size:17px; line-height:1.25; }
.picker-slot small { font-size:13px; color:#5c5646; }
.picker-slot button { position:absolute; top:50%; right:12px; width:28px; height:28px; margin-top:-14px; border:0; border-radius:50%; background:var(--muted); color:var(--ink); font-size:18px; line-height:1; cursor:var(--pointer); }
.picker-slot button:hover { background:var(--yellow); }
/* Filled slots can be dragged into a new order (assets/js/apply-picker.js). */
.picker-slot.is-filled { padding-left:34px; cursor:grab; touch-action:none; user-select:none; transition:box-shadow .2s,outline-color .2s; }
.picker-slot.is-filled:before { content:"⠿"; position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#9a927c; font-size:16px; line-height:1; }
.picker-slot.is-dragging { cursor:grabbing; z-index:2; box-shadow:0 2px 4px #1a1a1a14,0 18px 40px #1a1a1a2e; }
.picker-slot.is-target { outline:2px solid var(--orange); outline-offset:2px; }
.picker-hint { grid-column:1/-1; margin:0; text-align:center; font-size:14px; color:#5c5646; }
.picker-hint[hidden] { display:none; }
/* Department tiles; the open one's positions span the row beneath it. */
.dept-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-flow:dense; gap:12px; }
.dept { display:flex; align-items:center; gap:10px; width:100%; padding:20px 22px; border:0; border-radius:var(--radius-lg); background:var(--paper); box-shadow:var(--shadow); color:var(--ink); font-family:var(--heading); font-weight:500; font-size:20px; line-height:1.25; text-align:left; cursor:var(--pointer); transition:transform .2s,background .2s; }
.dept:hover { transform:translateY(-2px); }
.dept[aria-expanded=true] { background:var(--yellow); }
.dept-name { flex:1; }
.dept:after { content:''; width:9px; height:9px; margin:-4px 4px 0 0; border:solid var(--ink); border-width:0 2px 2px 0; transform:rotate(45deg); transition:transform .2s; flex-shrink:0; }
.dept[aria-expanded=true]:after { transform:rotate(-135deg); margin-top:4px; }
.dept-count { display:none; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--orange); color:var(--paper); font-family:var(--body); font-size:14px; }
.dept.has-picks .dept-count { display:grid; }
.dept-panel { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:8px; padding:18px; border-radius:var(--radius-lg); background:var(--paper); box-shadow:var(--shadow); }
.dept-panel[hidden] { display:none; }
.pick { border:0; border-radius:999px; padding:9px 16px; background:var(--muted); color:var(--ink); font:inherit; font-size:15px; line-height:1.3; cursor:var(--pointer); transition:background .2s; }
.pick:hover { background:var(--yellow); }
.pick[aria-pressed=true] { background:var(--orange); color:var(--paper); }
.pick[aria-pressed=true]:before { content:'✓ '; }
.pick:disabled { opacity:.45; cursor:not-allowed; background:var(--muted); }
.dept-limit { flex-basis:100%; margin:4px 0 0; font-size:14px; color:#5c5646; }
.dept-limit[hidden] { display:none; }
.picker-continue { display:table; margin:30px auto 0; border:0; }
.picker-continue[hidden] { display:none; }
/* The form shows the picks but only the picker changes them. */
.application-roles input[readonly] { background:var(--muted); border-style:dashed; pointer-events:none; }
.application-roles input[readonly]:not(:placeholder-shown) { background:var(--yellow); border:1px solid var(--yellow); font-family:var(--heading); font-weight:500; }
@media(max-width:1000px) {
  .picker-tray { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .picker-status { grid-column:1/-1; text-align:center; }
}
@media(max-width:800px) {
  .picker { margin:10px 10px 0; padding:40px 14px; scroll-margin-top:70px; }
  .picker-steps { flex-direction:column; align-items:flex-start; gap:8px; width:max-content; max-width:100%; margin:0 auto 22px; }
  .picker-steps li { font-size:15px; }
  .picker-steps li:before { width:26px; height:26px; font-size:14px; }
  .picker-tray { grid-template-columns:1fr; gap:8px; }
  .picker-slot { min-height:46px; padding:7px 46px 7px 14px; }
  .dept-grid { grid-template-columns:1fr; gap:8px; }
  .dept { padding:14px 16px; font-size:18px; }
  .dept-panel { padding:14px; }
  .pick { font-size:14px; padding:8px 13px; }
  .picker-continue { width:100%; text-align:center; }
}
