/* Set-Strike AV v3.6 polish, to the feel / rework (Impeccable) / design-library rules:
   pill buttons with an instant press, the accessibility figure, images that arrive without jumping,
   the open-jobs slot, the crew app's tab bar, themed browser surfaces. Gold on black stays the brand. */
:root {
  --stav-gold: #D4B25E; --stav-gold-ink: #8a6a12; --stav-black: #0b0b0a; --stav-panel: #171614; --stav-line: #2f2d27;
  --stav-text: #f4f2ec; --stav-text-2: #d6d1c3;
  --apple: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1); --press: 100ms; --hover: 200ms;
  accent-color: var(--stav-gold);
}

/* Browser surfaces carry the brand too */
::selection { background: var(--stav-gold); color: #111; }
input, textarea { caret-color: var(--stav-gold-ink); }
:focus-visible { outline: 3px solid var(--stav-gold); outline-offset: 3px; }

/* Buttons: pill, 48 px tall, one family, feedback on press (not on release) */
.stav-hero-b .button, .stav-jobs .button, .teaser-button, .ct-btn, .gold-btn, .pill-btn:not(.sm), .promo .cta, .stav-book button[type="submit"] {
  border-radius: 980px !important; min-height: 48px; padding: 12px 26px !important; display: inline-flex !important;
  align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-family: var(--apple) !important; font-weight: 600 !important; font-size: 17px !important; letter-spacing: -0.01em; line-height: 1.2 !important; text-transform: none !important;
  transition: transform var(--press) ease-out, background-color var(--hover) var(--ease-out), color var(--hover) var(--ease-out), box-shadow var(--hover) var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pill-btn.sm { border-radius: 980px !important; min-height: 36px; cursor: pointer; touch-action: manipulation; }
.stav-hero-b .button:first-child, .stav-jobs .button:first-child {
  background: var(--stav-gold) !important; color: #111 !important; border: 1px solid var(--stav-gold) !important;
  box-shadow: 0 8px 24px -8px rgba(212, 178, 94, .55);
}
.stav-hero-b .button:not(:first-child), .stav-jobs .button:not(:first-child) {
  background: #000 !important; color: #fff !important; border: 1px solid var(--stav-gold) !important;
}
@media (hover: hover) {
  .stav-hero-b .button:first-child:hover, .stav-jobs .button:first-child:hover { background: #e2c374 !important; }
  .stav-hero-b .button:not(:first-child):hover, .stav-jobs .button:not(:first-child):hover { background: #1c1a15 !important; }
}
.stav-hero-b .button:active, .stav-jobs .button:active, .teaser-button:active, .ct-btn:active, .gold-btn:active, .pill-btn:active, .promo .cta:active, .stav-book button[type="submit"]:active { transform: scale(.97); }
.stav-hero-b { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 600px) {
  .stav-hero-b, .stav-jobs-b { flex-direction: column; align-items: stretch; width: min(100%, 340px); margin-left: auto !important; margin-right: auto !important; }
  .stav-hero-b .button, .stav-jobs-b .button { width: 100%; margin: 0 !important; }
}

/* The accessibility figure (the ADA man): round, gold, 52 px; the word stays for screen readers */
.a11y-btn.a11y-fig { width: 52px; height: 52px; padding: 0 !important; border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--stav-gold) !important; color: #111 !important; border: 2px solid #111 !important; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6);
  transition: transform var(--press) ease-out; }
.a11y-btn.a11y-fig:active { transform: scale(.94); }
.a11y-btn.a11y-fig svg { width: 32px; height: 32px; display: block; }
.a11y-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.a11y-wrap { bottom: max(16px, env(safe-area-inset-bottom)) !important; }

/* Images arrive without a jump: space is reserved by their own width/height, they fade in from a dark ground */
img.stav-ld { opacity: 0; transition: opacity 350ms var(--ease-out); }
img.stav-ld.stav-in { opacity: 1; }
[data-bg] { background-color: #151410; }
.stav-bg-in { animation: stav-bg-in 350ms var(--ease-out) both; }
@keyframes stav-bg-in { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { img.stav-ld { opacity: 1; transition: none; } .stav-bg-in { animation: none; } }
.a11y-calm img.stav-ld { opacity: 1; transition: none; }

/* Open jobs on the main page */
.stav-jobs { background: var(--stav-black); color: var(--stav-text); padding: clamp(48px, 7vw, 88px) 20px; }
.stav-jobs .inner { max-width: 1040px; margin: 0 auto; }
.stav-jobs h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 10px; color: #fff; text-wrap: balance; }
.stav-jobs-sub { color: var(--stav-text-2); font-family: var(--apple); font-size: 17px; line-height: 1.5; margin: 0 0 28px; max-width: 62ch; }
.stav-job-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.stav-job { background: var(--stav-panel); border: 1px solid var(--stav-line); border-radius: 16px; padding: 18px 20px; font-family: var(--apple); }
.stav-job b { display: block; font-size: 19px; line-height: 1.25; color: #fff; margin-bottom: 6px; letter-spacing: -0.01em; }
.stav-job span { display: block; color: var(--stav-text-2); font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.stav-job .left { color: var(--stav-gold); font-weight: 600; margin-top: 8px; }
.stav-job-empty { color: var(--stav-text-2); font-family: var(--apple); font-size: 16px; grid-column: 1 / -1; }
.stav-job-skel { height: 118px; border-radius: 16px; background: linear-gradient(100deg, #161513 30%, #22201b 50%, #161513 70%) 0 0 / 200% 100%; animation: stav-skel 1.4s linear infinite; }
@keyframes stav-skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .stav-job-skel { animation: none; } }
.stav-jobs-b { display: flex; flex-wrap: wrap; gap: 12px; }

/* Feed videos */
.post video { width: 100%; max-height: 70vh; border-radius: 12px; margin-top: 6px; background: #000; }

/* The crew app's tab bar on phones: a translucent layer the content scrolls under (5 tabs, 48 px targets) */
.stav-tabs { display: none; }
@media (max-width: 900px) {
  .stav-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; justify-content: space-around;
    padding: 4px 4px max(6px, env(safe-area-inset-bottom)); background: rgba(250, 250, 248, .82);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(0, 0, 0, .1); }
  .stav-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px;
    font: 600 11px/1.1 var(--apple); letter-spacing: .01em; color: #4a463d; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform var(--press) ease-out, color var(--hover); }
  .stav-tabs a svg { width: 26px; height: 26px; }
  .stav-tabs a.on { color: var(--stav-gold-ink); }
  .stav-tabs a:active { transform: scale(.92); }
  body.stav-has-tabs { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.stav-has-tabs .a11y-wrap { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
  #shifts, #jobs, #training, #feed, #pay { scroll-margin-top: 88px; }
}
@media (prefers-reduced-transparency: reduce) { .stav-tabs { background: #fafaf8; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .stav-tabs { background: #fff; border-top: 2px solid #000; } .stav-tabs a { color: #000; } }

/* Phones get a phone rung of each hero photo (WebP, 900 px; size the pixels to the box, mobile-motion-over-lte 08-10) */
@media (max-width: 700px) {
  .teaser.rentals[style*="87a96e0850c14267"] { background-image: url(/assets/87a96e0850c14267-m.webp) !important; }
  #teaser .teaser-image { background-image: url(/assets/stav-dola-standard-hero-83f237-m.webp) !important; }
  .teaser-production { background-image: url(/assets/stav-hero-concert-hero-new-71dd8b-m.webp) !important; }
  .teaser.teaser-rentals { background-image: url(/assets/stav-dola-book-hero-stav-0c0fbc-m.webp) !important; }
  .teaser.teaser-sales { background-image: url(/assets/stav-hero-corporate-hero-new-0065f5-m.webp) !important; }
  .teaser.teaser-systems { background-image: url(/assets/stav-dola-corporate-hero-stav-86961d-m.webp) !important; }
}

/* The home band photo is below the first screen: streamed when near, not preloaded */
#teaser.teaser.teaser-systems:not(.stav-bg-on) { background-image: none !important; background-color: #151410; }

/* Buy & Rent */
.pr .pr-lead { max-width: 68ch; font-size: 17px; line-height: 1.55; }
.pr-jump a { font-weight: 600; color: rgb(128, 100, 23) !important; text-underline-offset: 3px; }
.pr-grid { list-style: none; padding: 0; margin: 12px 0 40px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pr-card { border: 1px solid #e3ddce; border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.pr-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #111; display: block; }
.pr-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pr-body h3 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.pr-body p { margin: 0; color: #4a463d; font-size: 15px; line-height: 1.45; flex: 1; }
.pr-add { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.pr-add input { width: 22px; height: 22px; }
.pr-form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 820px; }
.pr-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.pr-form .wide, .pr-form .pr-picked, .pr-form .pr-status, .pr-form .pr-meta, .pr-form button { grid-column: 1 / -1; }
.pr-form input, .pr-form textarea { font: 16px/1.4 var(--apple); padding: 12px 14px; border: 1px solid #cfc8b6; border-radius: 12px; }
.pr-form button { justify-self: start; }
.pr-picked { background: #faf6ea; border-radius: 12px; padding: 12px 14px; margin: 0; }
.pr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Feed video CC: a small pill on the video; captions load only on the tap */
.vwrap { position: relative; margin-top: 6px; }
.vwrap video { margin-top: 0; }
.cc-btn { position: absolute; top: 10px; right: 10px; min-width: 48px; min-height: 36px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  font: 700 14px/1 var(--apple); letter-spacing: .04em; color: #fff; background: rgba(0, 0, 0, .62); border: 1.5px solid rgba(255, 255, 255, .85);
  transition: transform var(--press) ease-out, background-color var(--hover); touch-action: manipulation; }
.cc-btn[aria-pressed="true"] { background: var(--stav-gold); color: #111; border-color: var(--stav-gold); }
.cc-btn:active { transform: scale(.94); }
.cc-btn:disabled { opacity: .7; cursor: progress; }
.cc-note { display: block; font: 500 14px/1.4 var(--apple); color: #4a463d; margin-top: 6px; min-height: 1em; }
