/* Single-line values sit on an address strip. The bottom rule follows keyboard focus. */
body.press-site main input.press-field:is(:not([type]),[type=text],[type=email],[type=tel],[type=url],[type=search],[type=password]) {
  --strip-ink:#35252a;--strip-line:#715b50;--strip-stock:#f2e2bf;
  color:var(--strip-ink);background-color:var(--strip-stock);
  background-image:linear-gradient(var(--strip-line),var(--strip-line)),linear-gradient(90deg,#784049 50%,transparent 50%);
  background-size:calc(100% - 18px) 1px,5px 5px;
  background-position:50% calc(100% - 5px),5px 7px;background-repeat:no-repeat;
  border:0;border-bottom:1px solid #a39077;border-radius:0;box-shadow:0 2px 0 -1px #6a524142;
  padding:8px 12px 10px;min-height:46px;caret-color:#721d39
}
body.press-site main .press-field::placeholder {font:400 1rem/1.4 var(--press-type);color:#695951;opacity:1}
body.press-site main input.press-field:where(:focus-visible) {--strip-line:#8b2743}
body.press-site main .press-field:is(:focus-visible,[aria-invalid=true]) {outline:2px solid var(--focus-ink,#633241);outline-offset:2px}
body.press-site main .press-field[aria-invalid=true] {outline-color:#84233e}
body.press-site main .press-field:disabled {opacity:.7;cursor:not-allowed}
body.press-site main .press-field::selection {color:#fff9e9;background:#643047}

/* The fitting-room label has pinked ends and two rows of basting. Only the cloth moves. */
.paper-form .sewn-label {position:relative;isolation:isolate;display:block;min-width:0;margin:4px 0 9px;color:#3e252d}
.sewn-label::before {
  content:"";position:absolute;inset:-1px 0;z-index:-1;background:#e7caaa;
  background-image:linear-gradient(90deg,#905961 0 5px,transparent 5px calc(100% - 9px),#b9867e calc(100% - 9px));
  clip-path:polygon(0 0,99.5% 0,100% 10%,99.1% 22%,100% 38%,99.2% 55%,100% 70%,99.2% 85%,100% 100%,.7% 100%,0 87%,.7% 70%,0 54%,.8% 38%,0 21%,.6% 11%);
  transform:rotate(-.55deg)
}
.sewn-label::after {
  content:"";position:absolute;z-index:-1;inset:5px 9px;
  background-image:repeating-linear-gradient(90deg,#765346 0 4px,transparent 4px 8px),repeating-linear-gradient(90deg,#765346 0 4px,transparent 4px 8px);
  background-size:calc(100% + 8px) 1px;background-position:var(--stitch,0px) top,var(--stitch,0px) bottom;background-repeat:no-repeat;
  transform:rotate(-.55deg);pointer-events:none
}
.paper-form label:nth-of-type(even) .sewn-label::before,.paper-form label:nth-of-type(even) .sewn-label::after {transform:rotate(.4deg)}
body.press-site main.lining-door .paper-form .sewn-label input.press-field {
  display:block;width:100%;min-height:51px;margin:0;border:0;padding:10px 17px 11px;
  box-shadow:none;background:transparent;color:#352329;caret-color:#751635;outline-offset:-3px
}
.paper-form .sewn-label:focus-within::before {background-color:#f6d8b4}

@media(prefers-reduced-motion:no-preference) {
  .sewn-label::before,.sewn-label::after {transition:transform .16s ease-out,background-color .16s ease-out}
  .paper-form .sewn-label:focus-within::before,.paper-form .sewn-label:focus-within::after {transform:rotate(0deg)}
}

/* Correspondence is written on ruled stock with a carbon sheet under the bottom edge. */
body.press-site main textarea.press-field:not([disabled]) {
  --leading:1.65em;box-sizing:border-box;width:100%;min-height:6.1rem;
  color:#33262c;caret-color:#75283d;border:0;border-bottom:3px double #8b7464;
  border-radius:0;background-color:#f6e8ca;
  background-image:linear-gradient(90deg,transparent 13px,#b7766d 13px 14px,transparent 14px),
    repeating-linear-gradient(to bottom,transparent 0 calc(var(--leading) - 1px),#bdb09a calc(var(--leading) - 1px) var(--leading));
  background-position:0 0,0 4px;padding:5px 12px 9px 22px;
  box-shadow:2px 3px 0 #71606a;line-height:var(--leading);resize:vertical
}
@supports(field-sizing:content) {
  body.press-site main textarea.press-field:not([rows]) {field-sizing:content;max-height:27rem}
}
body.press-site main form.correspondence-slip textarea.press-field:not([disabled]) {box-shadow:none}
body.press-site main select.press-field:not([multiple]):not([size]) {
  appearance:none;max-width:100%;min-height:44px;min-width:0;cursor:pointer;color:#302225;color-scheme:light;
  border:0;border-left:4px solid #75434d;border-bottom:1px solid #8e7864;border-radius:0;
  padding:7px 32px 7px 10px;background-color:#e4d0a8;
  background-image:linear-gradient(45deg,transparent 50%,#412a2b 50%),linear-gradient(135deg,#412a2b 50%,transparent 50%);
  background-position:calc(100% - 16px) 52%,calc(100% - 10px) 52%;background-size:6px 6px;background-repeat:no-repeat;
  font:700 max(16px,.95rem)/1.3 var(--press-type);text-overflow:ellipsis
}
body.press-site main .call-sentence select.press-field:not([multiple]):not([size]) {font:italic 400 clamp(22px,3vw,43px)/1.1 var(--press-script)}
body.press-site main input.press-field:is([type=checkbox],[type=radio]) {
  appearance:none;box-sizing:border-box;display:inline-grid;vertical-align:middle;flex:0 0 auto;
  width:21px;height:21px;min-height:0;padding:0;cursor:pointer;
  border:1.5px solid #503f39;border-radius:0;background:#f7e7c9;box-shadow:1px 1px 0 #897961;accent-color:#693444
}
body.press-site main input.press-field[type=checkbox]:checked {
  background:linear-gradient(50deg,transparent 42%,#642a3b 43% 53%,transparent 54%) center/78% 80% no-repeat,
    linear-gradient(-44deg,transparent 37%,#642a3b 39% 49%,transparent 50%) center/85% 80% no-repeat,#fff0cd
}
body.press-site main input.press-field[type=radio] {border-radius:50%}
body.press-site main input.press-field[type=radio]:checked {background:radial-gradient(circle at 49% 51%,#633142 0 38%,transparent 42%),#fff0cd}

/* Evidence is mounted by its corners. The original file input owns selection and validation. */
body.press-site .proof-mount {
  position:relative;display:block;max-width:100%;min-width:0;margin:.27em 2px .6em 0;
  padding:10px 12px;background:#353131;color:#fff0d6;border:1px solid #605048;
  box-shadow:2px 3px 0 #5c454a50
}
.proof-mount::before,.proof-mount::after {content:"";position:absolute;width:13px;height:13px;pointer-events:none;z-index:1}
.proof-mount::before {top:-2px;left:-2px;background:linear-gradient(135deg,#b7a181 0 53%,#645348 54% 64%,transparent 65%)}
.proof-mount::after {bottom:-2px;right:-2px;background:linear-gradient(-45deg,#b7a181 0 53%,#645348 54% 64%,transparent 65%)}
body.press-site main .proof-mount input.press-field[type=file] {
  display:block;width:100%;max-width:100%;height:auto;min-height:44px;margin:0;padding:3px;
  color:#ffecd0;background:transparent;border:0;box-shadow:none;cursor:pointer;
  font:400 15px/1.4 var(--press-type);color-scheme:dark
}
body.press-site main .proof-mount input::file-selector-button {
  margin:0 9px 0 0;border:0;border-block:2px solid #f5e1bb;border-radius:0;padding:5px 9px;
  min-height:37px;cursor:pointer;color:#38222a;background:#debc98;
  font:800 19px/1 var(--press-display)
}
body.press-site main .proof-mount input:focus-visible {outline:2px dashed #fff0c4;outline-offset:1px}
.proof-mount .contact-print {
  display:block;max-width:min(100%,17rem);width:auto;max-height:12rem;height:auto;margin:7px auto 5px;
  border:5px solid #f4e9d3;border-bottom-width:12px;box-shadow:2px 3px 2px #17101488;
  transform:rotate(-1.3deg)
}
.proof-mount .contact-print[hidden] {display:none}
@media(prefers-reduced-motion:no-preference) {
  .contact-print:not([hidden]) {animation:mount-proof .22s ease-out}
  @keyframes mount-proof {from {opacity:0;transform:translateY(-3px) rotate(1deg)}}
}

/* A staff entry is written against a register rule, with room for complete dates and identifiers. */
body.club-office main .press-field:is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select),
body.press-admin #content :is(input:not([type]):not(.button),input:is([type=text],[type=url],[type=email],[type=password],[type=number],[type=date],[type=datetime-local],[type=time],[type=search]),textarea,select:not([multiple]):not([size])) {
  --ledger-stock:#f4e8ca;--ledger-line:#8a7669;--ledger-ink:#362b2e;--ledger-margin:#864652;
  box-sizing:border-box;max-width:100%;min-width:0;min-height:42px;padding:6px 10px;
  color:var(--ledger-ink);caret-color:var(--ledger-margin);border:0;border-radius:0;border-bottom:1px solid var(--ledger-line);
  background-color:var(--ledger-stock);
  background-image:linear-gradient(90deg,var(--ledger-margin) 0 2px,transparent 2px);
  background-size:100% calc(100% - 12px);background-position:0 6px;background-repeat:no-repeat;
  box-shadow:none;font:400 16px/1.45 var(--press-type);font-variant-numeric:tabular-nums
}
body.press-admin #content textarea,body.club-office main textarea.press-field:not([disabled]) {
  line-height:1.65;min-height:5.8rem;resize:vertical;
  background-image:linear-gradient(90deg,var(--ledger-margin) 0 2px,transparent 2px),
    repeating-linear-gradient(0deg,transparent 0 calc(1.65em - 1px),var(--ledger-line) 1.65em);
  background-position:0 0,0 5px;background-size:auto
}
body.club-office main select.press-field:not([multiple]):not([size]),body.press-admin #content select:not([multiple]):not([size]) {
  appearance:auto;color-scheme:light;border-left:4px double var(--ledger-margin);padding-inline:7px 4px
}
body.press-admin #content :is(input,textarea,select):focus-visible {outline:2px solid #83425a;outline-offset:2px}
body.press-admin #content :is(input[type=checkbox],input[type=radio]) {accent-color:#71374b}
html[data-theme=dark] body.press-admin #content :is(input,textarea,select) {
  --ledger-stock:#352d32;--ledger-ink:#fae7c4;--ledger-margin:#c78997;--ledger-line:#9b8983;color-scheme:dark
}
@media(prefers-color-scheme:dark) {
  html[data-theme=auto] body.press-admin #content :is(input,textarea,select) {
    --ledger-stock:#352d32;--ledger-ink:#fae7c4;--ledger-margin:#c78997;--ledger-line:#9b8983;color-scheme:dark
  }
}
@media(forced-colors:active) {
  body.press-site main .press-field,body.press-admin #content :is(input,select,textarea) {border:1px solid FieldText;box-shadow:none;color:FieldText;background:Field}
  body.press-site main input.press-field:is([type=checkbox],[type=radio]),body.press-site main select.press-field:not([multiple]):not([size]) {appearance:auto}
  body.press-site main.lining-door .paper-form .sewn-label input.press-field {border:1px solid FieldText}
  .proof-mount {border:1px solid CanvasText}
}

/* The evidence slip tucks into the published brief and the application keeps one long writing margin. */
body.bill-detail main.opportunity form:is(.claim,.apply) {
  position:relative;isolation:isolate;margin:22px 0 12px;border:0;border-top:5px double #665046;border-bottom:1px solid #887162;
  background:#ead9b6;box-shadow:3px 4px 0 #493b3c4a;padding:clamp(13px,3vw,28px)
}
body.bill-detail main.opportunity form:is(.claim,.apply)::before {
  content:"";position:absolute;z-index:-1;inset:0 0 0 5px;border-left:1px dashed #9e765e;pointer-events:none
}

/* The cloth tab names the writing strip even when its lettering scrolls. */
.paper-form label.garment-entry {
  display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:0;
  margin:14px 3px 13px 0;padding:0
}
.paper-form .garment-entry .sewn-label {margin:0}
.garment-tab {
  position:relative;z-index:1;display:block;min-width:4ch;
  padding:.3em .48em .34em .4em;border-left:2px solid #b58471;color:#f4e1bc;background:#493037;
  box-shadow:1px 2px 0 #9f7f65;transform:rotate(-2deg);transform-origin:100% 50%;
  font:800 clamp(17px,1.7vw,24px)/1 var(--press-display);text-align:center
}
.garment-entry:nth-of-type(even) .garment-tab {transform:rotate(1.5deg)}
.proof-mount .proof-caption {display:block;margin:6px 0 0;color:#f7e5c5;font:400 14px/1.35 var(--press-type);overflow-wrap:anywhere}
.proof-mount .proof-caption[hidden] {display:none}
body.press-site main .proof-mount:has(.proof-caption:not([hidden])) input[type=file] {color:transparent}
.proof-mount .proof-message {display:block;margin:0;color:#ffe0bf;font:700 14px/1.4 var(--press-type)}
.proof-mount .proof-message:not(:empty) {border-top:1px dashed #caa98c;margin-top:7px;padding-top:5px}
body.press-site main .proof-mount input[aria-invalid=true] {outline:2px dashed #f3b88f;outline-offset:1px}

/* A pasted post link threads between the sprocket holes of the proof strip. */
body.press-site main :is(.post-url,.claim,.apply) input.press-field[type=url] {
  --film:#342e30;--holes:#e6d4b3;
  color:#fff0d0;caret-color:#ffe4a9;
  background:repeating-linear-gradient(to bottom,transparent 0 4px,var(--holes) 4px 10px,transparent 10px 15px) left 4px top 1px / 4px 100% no-repeat,
    repeating-linear-gradient(to bottom,transparent 0 4px,var(--holes) 4px 10px,transparent 10px 15px) right 4px top 1px / 4px 100% no-repeat,var(--film);
  border:1px solid #9b8576;box-shadow:none;padding:10px 15px;font-size:clamp(18px,1.6vw,24px)
}
body.press-site main :is(.post-url,.claim,.apply) input.press-field[type=url]::placeholder {color:#e6d0b7}
body.press-site main :is(.post-url,.claim,.apply) input.press-field[type=url]:focus-visible {outline:2px dashed #ac836c;outline-offset:2px}

body.club-office main input.press-field[type=number],body.press-admin #content input[type=number] {width:12ch;max-width:100%;text-align:end;border-bottom:3px double var(--ledger-line)}
body.press-admin #content :is(select[multiple],select[size]:not([size="1"])) {background:var(--body-bg);border:0;border-left:3px double var(--hairline-color);border-bottom:2px solid var(--hairline-color);color:var(--body-fg);font-family:var(--press-type)}
@media(forced-colors:active) {
  body.press-site main :is(.post-url,.claim,.apply) input.press-field[type=url],
  body.press-site main .proof-mount input.press-field[type=file] {background:Field;color:FieldText;border:1px solid FieldText}
  .garment-tab,.proof-mount .proof-caption,.proof-mount .proof-message {color:CanvasText}
}
