/* Super Apple Careers — mobile and tablet layout, September 2026.
   Loaded after careers.css / access.css. No build step is required. */
html { -webkit-text-size-adjust: 100%; }
.sa-app { min-height: 100vh; min-height: 100svh; }
.sa-form-card { position: relative; }
/* Keep the spam field hidden inside the form without widening an RTL page. */
.sa-honeypot {
  left: auto; right: auto; inset-inline-start: 0;
  width: 1px; height: 1px; margin: 0; padding: 0;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%); overflow: hidden;
}
.sa-topbar > *, .sa-topbar-end, .sa-brand > div, .sa-dashboard > *,
.sa-inbox > *, .sa-stat > div, .sa-detail-header > div,
.sa-detail-facts > div, .sa-cv-download > span { min-width: 0; }
.sa-file-icon { flex-shrink: 0; }
.sa-upload-copy { flex: 0 1 auto; }
.sa-upload-copy > span, .sa-alert, .sa-save-message,
.sa-mobile-candidate strong, .sa-mobile-candidate p,
.sa-detail-header [data-slot="sheet-title"],
.sa-detail-header [data-slot="sheet-description"],
.sa-detail-facts strong, .sa-contact-lines > * > span { overflow-wrap: anywhere; }
.sa-detail-header, .sa-detail-footer { flex-shrink: 0; }
.sa-detail-header > .sa-icon-button { flex-shrink: 0; }
.sa-detail-body { overscroll-behavior-y: contain; }
.sa-detail-sheet { height: 100vh; height: 100dvh; }
.sa-select-menu {
  max-width: calc(100vw - 24px);
  max-height: min(360px, var(--radix-select-content-available-height, calc(100vh - 32px)));
  overscroll-behavior-y: contain;
}
.sa-select-menu [data-radix-select-viewport] {
  min-width: 0 !important;
  max-width: calc(100vw - 24px);
}
.sa-select-menu [role="option"] { white-space: normal; overflow-wrap: anywhere; }
.sa-picker > span:not([aria-hidden]) {
  min-width: 0; white-space: normal; overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
}
.sa-detail-sheet input, .sa-detail-sheet textarea,
.sa-detail-sheet button { touch-action: manipulation; }

@media (max-width: 960px) {
  .sa-application-layout {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; margin: 24px auto 36px; padding: 0 20px; gap: 20px;
  }
  .sa-intro {
    width: 100%; min-height: 0; position: static;
    padding: 24px; border-radius: 14px;
  }
  .sa-intro h1 { margin-top: 6px; font-size: 27px; line-height: 1.6; }
  .sa-intro h1 br { display: none; }
  .sa-intro h1 em { display: block; }
  .sa-intro > div > p { margin-top: 10px; font-size: 16px; line-height: 1.9; }
  .sa-form-nav, .sa-intro-bottom { display: none; }
  .sa-form-card { width: 100%; padding: 28px; }
  .sa-fields-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-control, .sa-picker, .sa-search input { font-size: 16px; min-height: 50px; }
  .sa-picker { line-height: 1.7; }
  .sa-select-menu { font-size: 16px; }
  .sa-select-menu [role="option"] { min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
  .sa-primary-button, .sa-link-button, .sa-icon-button, .sa-text-button { min-height: 44px; }
  .sa-icon-button { min-width: 44px; }
  .sa-admin-link { min-height: 44px; padding: 8px 4px; }
  .sa-consent { align-items: flex-start; gap: 12px; }
  .sa-consent > button { flex-shrink: 0; width: 24px; height: 24px; margin-top: 3px; }
  .sa-consent > label { min-height: 44px; font-size: 14px; }
  .sa-dashboard { padding: 0 20px; }
  .sa-dashboard-title p { font-size: 15px; }
  .sa-private-label { display: none; }
  .sa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-tools, .sa-search, .sa-role-filter { min-width: 0; }
  .sa-filter-tabs { overflow-x: auto; overscroll-behavior-x: contain; }
  .sa-filter-tabs [role="tablist"] { width: max-content; min-width: 100%; gap: 20px; }
  .sa-filter-tabs [role="tab"] { flex-shrink: 0; min-height: 48px; white-space: nowrap; }
  .sa-table-wrap { display: none; }
  .sa-mobile-list { display: block; }
  .sa-mobile-candidate {
    display: block; width: 100%; text-align: right; padding: 18px 20px;
    border: 0; border-bottom: 1px solid #ecf0f3; background: #fff;
  }
  .sa-mobile-candidate > div {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 8px 12px;
  }
  .sa-mobile-candidate strong { flex: 1 1 150px; min-width: 0; font-size: 16px; }
  .sa-mobile-candidate .sa-status { flex: 0 0 auto; }
  .sa-mobile-candidate p { color: #637080; font-size: 14px; margin: 8px 0; }
  .sa-mobile-candidate > span { color: #818e9c; font-size: 12px; }
  .sa-mobile-candidate:hover { background: #fafbfc; }
  .sa-detail-header { padding-top: max(20px, env(safe-area-inset-top)); }
  .sa-detail-footer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
  .sa-topbar {
    height: auto; min-height: 76px; padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top)); gap: 8px 12px;
  }
  .sa-brand { gap: 9px; }
  .sa-brand img { width: 44px; height: 32px; }
  .sa-brand strong { font-size: 16px; }
  .sa-brand > div > span { font-size: 10px; letter-spacing: 1px; }
  .sa-topbar-label { display: none; }
  .sa-topbar-end { gap: 8px; }
  .sa-admin-link { font-size: 13px; white-space: nowrap; }
  .sa-admin .sa-topbar { flex-wrap: wrap; }
  .sa-admin .sa-topbar > a { flex: 1 1 100%; }
  .sa-admin .sa-topbar-end { width: 100%; gap: 10px; padding-top: 4px; }
  .sa-admin .sa-topbar-end > a, .sa-admin .sa-topbar-end > form { flex: 1; }
  .sa-admin .sa-topbar-end > form { margin: 0; }
  .sa-admin .sa-topbar-end button {
    width: 100%; display: flex; justify-content: center;
    border: 1px solid #dee2e8; border-radius: 7px; background: #fff;
  }
  .sa-application-layout { padding: 0 12px; margin-top: 16px; gap: 16px; }
  .sa-intro { padding: 20px; border-radius: 12px; }
  .sa-intro .sa-eyebrow { font-size: 12px; }
  .sa-intro h1 { font-size: clamp(23px, 6vw, 27px); }
  .sa-intro > div > p { font-size: 15px; }
  .sa-form-card { padding: 22px 16px; border-radius: 12px; }
  .sa-form-heading {
    flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 24px;
  }
  .sa-form-heading h2 { font-size: 21px; }
  .sa-required-hint { white-space: normal; }
  .sa-fields-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sa-field { margin-bottom: 20px; }
  .sa-field label { font-size: 14px; }
  .sa-control { min-height: 50px; padding: 12px; }
  legend { font-size: 16px; gap: 9px; }
  .sa-section-number { flex-shrink: 0; }
  .sa-dropzone { padding: 18px 12px; gap: 10px; }
  .sa-dropzone.has-file { align-items: flex-start; }
  .sa-dropzone.has-file > .sa-upload-copy { flex: 1; }
  .sa-dropzone .sa-file-icon { width: 34px; height: 40px; }
  .sa-upload-copy > span { font-size: 12px; }
  .sa-text-button > span { display: block; }
  .sa-submit-row { flex-direction: column-reverse; align-items: stretch; gap: 12px; padding-top: 18px; }
  .sa-submit-row > .sa-primary-button { width: 100%; min-height: 52px; font-size: 16px; }
  .sa-submit-row > span { justify-content: center; }
  .sa-footer {
    margin: 0 16px; padding: 20px 0 max(20px, env(safe-area-inset-bottom));
    flex-direction: column; gap: 8px; text-align: center;
  }
  .sa-footer a { min-height: 44px; }
  .sa-dashboard { padding: 0 12px; margin-top: 22px; margin-bottom: 32px; }
  .sa-dashboard-title { margin-bottom: 20px; }
  .sa-dashboard-title h1 { font-size: 25px; }
  .sa-stats { gap: 10px; margin-bottom: 20px; }
  .sa-stat { padding: 14px 12px; gap: 8px; }
  .sa-stat > div > span { font-size: 13px; line-height: 1.7; }
  .sa-stat strong { font-size: 29px; }
  .sa-stat svg { width: 18px; height: 18px; padding: 7px; border-radius: 8px; }
  .sa-inbox-head { padding: 18px 14px; flex-wrap: wrap; gap: 12px; }
  .sa-inbox-head > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sa-inbox-head h2 { font-size: 18px; }
  .sa-inbox-head > button { font-size: 13px; padding: 8px 10px; }
  .sa-tools { flex-direction: column; padding: 0 14px 16px; gap: 10px; }
  .sa-role-filter { width: 100%; }
  .sa-filter-tabs { padding: 0 14px; }
  .sa-mobile-candidate { padding: 18px 14px; }
  .sa-pagination { padding: 14px; gap: 10px; flex-wrap: wrap; }
  .sa-detail-sheet { width: 100vw !important; max-width: 100vw !important; border: 0; }
  .sa-detail-header { gap: 12px; padding-right: 18px; padding-left: 18px; }
  .sa-detail-header [data-slot="sheet-title"] { font-size: 21px; }
  .sa-detail-body { padding: 20px 18px; }
  .sa-contact-lines > a, .sa-contact-lines > span { min-height: 36px; }
  .sa-contact-lines > a > span { min-width: 0; }
  .sa-detail-facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sa-detail-footer { padding-right: 18px; padding-left: 18px; flex-direction: column; gap: 8px; }
  .sa-detail-footer > .sa-primary-button { width: 100%; min-height: 50px; font-size: 16px; }
  .sa-save-message:empty { display: none; }
  .sa-success { padding: 36px 20px 48px; min-height: 65vh; }
  .sa-success h1 { font-size: 25px; overflow-wrap: anywhere; }
  .sa-reference { padding: 16px; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .sa-success > .sa-primary-button { width: 100%; }
  .access { margin: 16px 12px; padding: 22px 18px; min-width: 0; }
  .access .grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .access .grid > *, .access form, .access .brand { min-width: 0; }
  .access h1 { font-size: 23px; }
  .access p, .access code, .access li { overflow-wrap: anywhere; }
  .access code { max-width: 100%; white-space: normal; }
  .access input { min-width: 0; font-size: 16px; min-height: 50px; }
  .access button, .access .button { width: 100%; min-height: 48px; text-align: center; line-height: 1.7; }
}

@media (max-width: 360px) {
  .sa-topbar { padding-right: 12px; padding-left: 12px; }
  .sa-brand { gap: 7px; }
  .sa-brand img { width: 36px; }
  .sa-admin-link { gap: 5px; }
  .sa-stat svg { display: none; }
  .sa-form-heading h2 { font-size: 20px; }
}
