/* The Brand Build Up, site A: apply (package P2, 24 Nov 2026, PLAN-rest-2026-11-24.md 2, apply row).
   Fields in order: Yellow (header, title) / Cream (both panels) / Ink footer. Each section shows the field it rises from as its
   own background and its field as the face (ha-shell.css paints it, ha-lock.js moves it). One lit slab per panel: the guest form
   is a thick yellow lacquer slab, the suggest form a thick ink slab (the homepage's two invitation slabs, grown into forms).
   Fields are cream slabs, the submit button a slab that sinks on press. Text and markup as live; the tabs work as on live. Shared components are used as they are (COMPONENTS.md). */

/* ---------- fields ---------- */
.page-apply{--ha-title-rows:1;
  --ha-title-fs:max(4rem,min(calc(min(100vw,1440px) * .318),calc((100svh - 330px) / 1.18)))}
.page-apply main > section.section{background:var(--ha-field-y);--ha-face:var(--ha-field-c);--ha-face-edge:#fff;color:#3E3A2C}
.page-apply .site-footer{--ha-under:var(--ha-field-c)}

/* ---------- title: APPLY as one large ink slab that fills the first screen ---------- */
.page-apply .page-header{padding-block:clamp(28px,3.4vw,50px) clamp(44px,5vw,76px)}
.page-apply .ha-tslab{padding:0 .17em .065em;line-height:.88;border-radius:.07em;
  box-shadow:inset 0 -.008em 0 rgb(0 0 0/.5),
    0 .04em 0 0 #2B2F3A,.055em .055em 0 0 var(--ha-hard),.055em .095em 0 0 var(--ha-hard),.12em .2em .2em -.07em rgb(22 24 29/.42)}
.page-apply .ha-tslab.is-held{box-shadow:inset 0 -.008em 0 rgb(0 0 0/.5),
    0 .04em 0 0 #2B2F3A,.1em .1em 0 0 var(--ha-hard),.1em .14em 0 0 var(--ha-hard),.2em .32em .3em -.08em rgb(22 24 29/.42)}
@media (min-width:900px){
  .page-apply .page-header .container{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(40px,6vw,96px);align-items:start}
  .page-apply .page-header__title{grid-column:1 / -1;margin-block-end:clamp(20px,2vw,28px)}
  .page-apply .page-header__sub{font-size:clamp(1.5rem,2.1vw,2rem);line-height:1.25;max-inline-size:26ch;margin-block-start:clamp(30px,3.4vw,50px)}
  .page-apply .page-header__intro{margin-block-start:clamp(34px,3.8vw,56px);font-size:clamp(1.125rem,1.1vw + .55rem,1.375rem);max-inline-size:44ch}
}
.page-apply .page-header__sub{text-wrap:balance}
/* the first-screen button (apply.js): an ink slab under the sub line; held until the title has landed, like the header copy */
.page-apply .ha-apply-cta{justify-self:start;align-self:start;margin-block-start:clamp(28px,3vw,40px);min-block-size:64px;min-inline-size:clamp(200px,16vw,240px);font-size:1.125rem;
  padding-inline:clamp(30px,3vw,44px);box-shadow:0 4px 0 0 #2B2F3A,7px 7px 0 0 var(--ha-hard)}
.page-apply .ha-apply-cta:active{box-shadow:0 0 0 0 #2B2F3A,0 0 0 0 var(--ha-hard)}
.js .page-apply .page-header:not(.ha-in) .ha-apply-cta{visibility:hidden;animation:ha-show 0s linear 1.4s forwards}
@media (min-width:900px){
  .page-apply .ha-apply-cta{grid-column:1;grid-row:3}
  .page-apply .page-header{padding-block-end:clamp(30px,3vw,44px)}
}
@media (max-width:899px){.page-apply .ha-apply-cta{inline-size:100%}}

/* ---------- tabs as on live (site.js): with JS the list shows and one panel at a time; without JS both panels stand. The tabs are slabs:
   the selected one a lit yellow slab, the other a satin ink slab; both sink onto their shadow when pressed ---------- */
.page-apply .apply-panel + .apply-panel{margin-block-start:clamp(80px,10vw,150px)}
.page-apply .tablist{gap:clamp(18px,2vw,28px);margin-block-end:clamp(44px,5vw,72px)}
.page-apply .tablist .pill-filter{min-block-size:64px;padding:.5rem clamp(26px,2.8vw,40px);border:0;border-radius:12px;cursor:pointer;
  font:700 1.0625rem/1.2 var(--font-body);letter-spacing:.01em;color:var(--ha-cream);
  background:var(--ha-satin-bg);box-shadow:0 5px 0 0 #0C0D11,7px 7px 0 0 #030304;
  transition:transform .16s cubic-bezier(.23,1,.32,1),box-shadow .16s cubic-bezier(.23,1,.32,1)}
.page-apply .tablist .pill-filter[aria-selected="true"]{color:var(--ha-ink);transform:translate(6px,6px);gap:12px;
  background:linear-gradient(transparent,transparent) calc(var(--ha-slab-x,40%) * 1.2 + 6%) 0/260% 100% no-repeat,
    linear-gradient(165deg,#FDEE9A,#FAE887);
  box-shadow:inset 0 -2px 0 rgb(150 122 15/.5),0 0 0 3px var(--ha-ink),1px 1px 0 3px var(--ha-hard)}
.page-apply .tablist .pill-filter[aria-selected="true"]::before{content:"";inline-size:22px;block-size:22px;flex:none;border-radius:5px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M9 21l8 8 14-17' stroke='%23FFEE8C' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/78% no-repeat,var(--ha-ink)}
@media (hover:hover) and (pointer:fine){
  .page-apply .tablist .pill-filter[aria-selected="false"]:hover{background:var(--ha-satin-bg);color:var(--ha-cream);transform:translate(-2px,-2px);
    box-shadow:0 5px 0 0 #0C0D11,9px 9px 0 0 #030304}
}
.page-apply .tablist .pill-filter[aria-selected="false"]:active{background:var(--ha-satin-bg);color:var(--ha-cream);transform:translate(7px,7px);
  box-shadow:0 0 0 0 #0C0D11,0 0 0 0 #030304}
.page-apply .tablist .pill-filter:focus-visible{outline:3px solid var(--ha-ink);outline-offset:6px}
@media (max-width:599px){.page-apply .tablist .pill-filter{flex:1 1 0;justify-content:center;padding-inline:12px;text-align:center}}
.page-apply .tabpanel:focus-visible{outline:3px solid var(--ha-ink);outline-offset:14px;border-radius:6px}

/* ---------- panel intro: the headline, lines rise from masks (ha-page.js) ---------- */
.page-apply .apply-panel__intro .section-title{color:var(--ha-ink)}
.page-apply .apply-panel__intro .lede{color:#3E3A2C;max-inline-size:34ch;margin-block-start:clamp(18px,2vw,28px);font-size:clamp(1.125rem,.7vw + .9rem,1.4375rem);line-height:1.5}
@media (min-width:1024px){.page-apply .apply-panel__intro{inset-block-start:120px}}

/* ---------- the two form slabs ---------- */
.page-apply .apply-panel__form{position:relative;border:0;border-radius:16px;
  padding:clamp(26px,3.5vw,56px) clamp(22px,3.5vw,56px) clamp(32px,3.9vw,60px);
  transition:box-shadow .3s cubic-bezier(.23,1,.32,1)}
.page-apply #guest .apply-panel__form{background:var(--ha-thick-y-bg);box-shadow:var(--ha-thick-yc-sh);color:var(--ha-ink);
  --ha-fl:#3E3A2C;--ha-ring:0 0 0 3px #fff,0 0 0 6px var(--ha-ink);--ha-err-edge:#B3261E}
.page-apply #suggest .apply-panel__form{background:var(--ha-thick-i-bg);box-shadow:var(--ha-thick-i-sh);color:var(--muted-dark);
  --ha-fl:#CFC9BB;--ha-ring:0 0 0 5px var(--ha-y);--ha-err-edge:#FF8E84}
.page-apply #guest .apply-panel__form:focus-within{box-shadow:inset 0 -2px 0 rgb(150 122 15/.45),0 14px 0 0 #D4B63E,
  20px 20px 0 0 var(--ha-hard),20px 34px 0 0 var(--ha-hard),34px 70px 80px -26px rgb(96 78 30/.34)}
.page-apply #suggest .apply-panel__form:focus-within{box-shadow:inset 0 -2px 0 rgb(0 0 0/.45),0 14px 0 0 #2B2F3A,
  20px 20px 0 0 var(--ha-hard),20px 34px 0 0 var(--ha-hard),34px 70px 80px -26px rgb(96 78 30/.34)}

.page-apply .form-grid{gap:clamp(24px,2.4vw,34px) clamp(20px,2.2vw,32px)}
.page-apply .field label{font:700 1rem/1.3 var(--font-body);color:inherit;margin-block-end:12px}
.page-apply .field__opt{font-weight:500;color:var(--ha-fl)}

/* fields are cream slabs: ink rim and hard shadow on the yellow slab, cream rim and a darker hard shadow on the ink slab */
.page-apply .bbu-form .field input,.page-apply .bbu-form .field textarea{min-block-size:58px;padding:.85rem 1.1rem;font-size:1.0625rem;color:var(--ha-ink);
  border-radius:10px;outline:3px solid transparent;outline-offset:3px}
.page-apply .bbu-form .field textarea{min-block-size:132px;padding-block:1rem}
.page-apply #suggest .bbu-form .field input,.page-apply #suggest .bbu-form .field textarea{border-color:var(--ha-cream);
  box-shadow:4px 4px 0 0 #030304,4px 8px 0 0 #030304}
@media (hover:hover) and (pointer:fine){
  .page-apply .bbu-form .field input:hover:not(:focus),.page-apply .bbu-form .field textarea:hover:not(:focus){translate:-1px -1px;
    box-shadow:6px 6px 0 0 var(--ha-ink)}
  .page-apply #suggest .bbu-form .field input:hover:not(:focus),.page-apply #suggest .bbu-form .field textarea:hover:not(:focus){
    box-shadow:6px 6px 0 0 #030304,6px 10px 0 0 #030304}
}
/* focus: the field sinks onto its shadow and a ring lights it (white + ink on yellow, yellow on ink) */
.page-apply .bbu-form .field input:focus,.page-apply .bbu-form .field textarea:focus,
.page-apply .bbu-form .field input:focus-visible,.page-apply .bbu-form .field textarea:focus-visible{translate:3px 3px;outline:3px solid transparent;outline-offset:3px;
  box-shadow:1px 1px 0 0 var(--ha-ink),var(--ha-ring)}
.page-apply #suggest .bbu-form .field input:focus,.page-apply #suggest .bbu-form .field textarea:focus,
.page-apply #suggest .bbu-form .field input:focus-visible,.page-apply #suggest .bbu-form .field textarea:focus-visible{border-color:var(--ha-cream);
  box-shadow:1px 1px 0 0 #030304,var(--ha-ring)}
/* the arrive moment (moments.js) lights the first field */
.page-apply .field .moment-hi{border-color:var(--ha-ink)!important;box-shadow:1px 1px 0 0 var(--ha-ink),var(--ha-ring)!important}
.page-apply #suggest .field .moment-hi{border-color:var(--ha-cream)!important}

/* error: the field's edge turns red; the message itself is the shared component */
.page-apply .bbu-form .field.has-error input,.page-apply .bbu-form .field.has-error textarea{border-color:var(--ha-err-edge);
  box-shadow:4px 4px 0 0 var(--ha-err-edge);animation:ha-thud .34s cubic-bezier(.3,1.5,.5,1)}
.page-apply .bbu-form .field.has-error input:focus,.page-apply .bbu-form .field.has-error textarea:focus{border-color:var(--ha-err-edge);
  box-shadow:1px 1px 0 0 var(--ha-err-edge),var(--ha-ring);animation:none}
.page-apply #suggest .bbu-form .field.has-error input,.page-apply #suggest .bbu-form .field.has-error textarea{box-shadow:4px 4px 0 0 var(--ha-err-edge),4px 8px 0 0 #030304}
@keyframes ha-thud{0%{translate:0 0}35%{translate:3px 3px}100%{translate:0 0}}

/* note under the form */
.page-apply .form-note{font-size:.9375rem;line-height:1.55;color:var(--ha-fl);max-inline-size:56ch;margin-block-start:clamp(26px,2.6vw,36px)}
.page-apply #guest .form-note a{color:var(--ha-ink)}
.page-apply #suggest .form-note a{color:var(--ha-y)}

/* the submit button: ink slab on the yellow form, yellow slab on the ink form; both sink onto their shadow when pressed */
.page-apply .form-actions{margin-block-start:clamp(26px,3vw,38px)}
.page-apply .form-actions .btn{min-block-size:64px;min-inline-size:clamp(220px,20vw,280px);padding-inline:clamp(26px,2.6vw,40px);border-radius:12px;font-size:1.125rem;
  transition:transform .16s cubic-bezier(.23,1,.32,1),box-shadow .16s cubic-bezier(.23,1,.32,1),background-color .16s}
.page-apply #guest .form-actions .btn{box-shadow:0 4px 0 0 #2B2F3A,7px 7px 0 0 var(--ha-hard)}
.page-apply #guest .form-actions .btn:active{transform:translate(7px,7px);box-shadow:0 0 0 0 #2B2F3A,0 0 0 0 var(--ha-hard)}
.page-apply #suggest .form-actions .btn{color:var(--ha-ink);border:0;
  background:linear-gradient(transparent,transparent) calc(var(--ha-slab-x,40%) * 1.2 + 6%) 0/260% 100% no-repeat,
    linear-gradient(165deg,#FDEE9A,#FAE887);
  box-shadow:inset 0 -2px 0 rgb(150 122 15/.45),0 6px 0 0 #C9AB38,7px 7px 0 0 #030304,7px 13px 0 0 #030304}
.page-apply #suggest .form-actions .btn:active{transform:translate(7px,7px);box-shadow:inset 0 -2px 0 rgb(150 122 15/.45),0 0 0 0 #C9AB38,0 0 0 0 #030304}
@media (hover:hover) and (pointer:fine){
  .page-apply #guest .form-actions .btn:hover{transform:translate(-2px,-2px);box-shadow:0 4px 0 0 #2B2F3A,10px 10px 0 0 var(--ha-hard)}
  .page-apply #suggest .form-actions .btn:hover{background-color:transparent;transform:translate(-2px,-2px);
    box-shadow:inset 0 -2px 0 rgb(150 122 15/.45),0 6px 0 0 #C9AB38,10px 10px 0 0 #030304,10px 16px 0 0 #030304}
  .page-apply #guest .form-actions .btn:active,.page-apply #suggest .form-actions .btn:active{transform:translate(7px,7px)}
}
.page-apply .form-actions .btn:focus-visible{outline:3px solid currentColor;outline-offset:6px}
.page-apply #suggest .form-actions .btn:focus-visible{outline-color:var(--ha-y)}
/* sending: the button stays pressed */
.page-apply .bbu-form.is-sending .form-actions .btn{transform:translate(7px,7px);cursor:progress;opacity:.9}
.page-apply #guest .bbu-form.is-sending .form-actions .btn{box-shadow:0 0 0 0 #2B2F3A,0 0 0 0 var(--ha-hard)}
.page-apply #suggest .bbu-form.is-sending .form-actions .btn{box-shadow:0 0 0 0 #C9AB38,0 0 0 0 #030304}

/* status: success is a slab with a tick tile (ink slab on the yellow form, yellow slab on the ink form) */
.page-apply .form-status:not(:empty){margin-block-start:clamp(20px,2.2vw,28px)}
.page-apply .form-status.is-ok{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:clamp(16px,2vw,26px);margin-block-start:0;
  padding:clamp(20px,2.4vw,32px) clamp(20px,2.6vw,36px);border-radius:12px;font:700 clamp(1.1875rem,1.3vw + .8rem,1.625rem)/1.4 var(--font-body);
  animation:ha-ok-drop .56s cubic-bezier(.2,1.4,.4,1)}
.page-apply .form-status.is-ok::before{content:"";inline-size:clamp(52px,5vw,68px);aspect-ratio:1;border-radius:8px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M9 21l8 8 14-17' stroke='%2316181D' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/62% no-repeat,linear-gradient(170deg,#FDEFA3,#FBE98F);
  box-shadow:0 3px 0 0 #C2A436,4px 7px 0 0 #030304}
.page-apply #guest .form-status.is-ok{background:var(--ha-satin-bg);color:var(--ha-cream);box-shadow:var(--ha-satin-sh)}
.page-apply #suggest .form-status.is-ok{background:var(--ha-thick-y-bg);color:var(--ha-ink);box-shadow:var(--ha-thick-yc-sh)}
.page-apply #suggest .form-status.is-ok::before{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M9 21l8 8 14-17' stroke='%23FFEE8C' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/62% no-repeat,linear-gradient(170deg,#23262E,#1E2027);
  box-shadow:0 3px 0 0 #000,4px 7px 0 0 #6E5E1D}
@keyframes ha-ok-drop{from{translate:0 -26px;rotate:-1.5deg}55%{translate:0 5px}to{translate:0 0;rotate:0deg}}
.page-apply .bbu-form.is-done{min-block-size:0}
.page-apply .bbu-form.is-holding{opacity:.7}

/* ---------- phone ---------- */
@media (max-width:899px){
  .page-apply .page-header{padding-block:clamp(22px,6vw,34px) clamp(52px,12vw,76px)}
  .page-apply .page-header__sub{font-size:1.3125rem;line-height:1.3}
  .page-apply .page-header__intro{margin-block-start:18px}
  .page-apply .apply-panel{gap:clamp(24px,7vw,36px)}
  .page-apply #guest .apply-panel__form{box-shadow:inset 0 -2px 0 rgb(150 122 15/.45),0 9px 0 0 #D4B63E,
    8px 8px 0 0 var(--ha-hard),8px 17px 0 0 var(--ha-hard),16px 34px 44px -20px rgb(96 78 30/.3)}
  .page-apply #suggest .apply-panel__form{box-shadow:inset 0 -2px 0 rgb(0 0 0/.45),0 10px 0 0 #2B2F3A,
    8px 8px 0 0 var(--ha-hard),8px 18px 0 0 var(--ha-hard),16px 34px 50px -20px rgb(96 78 30/.3)}
  .page-apply #guest .apply-panel__form:focus-within{box-shadow:inset 0 -2px 0 rgb(150 122 15/.45),0 9px 0 0 #D4B63E,
    8px 8px 0 0 var(--ha-hard),8px 17px 0 0 var(--ha-hard),16px 34px 44px -20px rgb(96 78 30/.3)}
  .page-apply #suggest .apply-panel__form:focus-within{box-shadow:inset 0 -2px 0 rgb(0 0 0/.45),0 10px 0 0 #2B2F3A,
    8px 8px 0 0 var(--ha-hard),8px 18px 0 0 var(--ha-hard),16px 34px 50px -20px rgb(96 78 30/.3)}
  .page-apply .form-actions .btn{inline-size:100%}
  .page-apply .form-status.is-ok{box-shadow:var(--ha-satin-sh)}
}
@media (prefers-reduced-motion:reduce){
  .page-apply .apply-panel__form,.page-apply .form-actions .btn,.page-apply .tablist .pill-filter{transition:none}
  .page-apply .form-status.is-ok,
  .page-apply .bbu-form .field.has-error input,.page-apply .bbu-form .field.has-error textarea{animation:none}
}
