/* Shared small-screen layout, with larger controls on private talent pages. */
#top-header.talent-photo-page { min-width: 0; }
#top-header.talent-photo-page .photo-save-status { display: block; min-height: 1.4em; padding: 0 .75rem .5rem; font-size: .75rem; line-height: 1.4; color: var(--main-blue-dark); }
#top-header.talent-photo-page .photo-save-status[data-state="error"] { color: #a42424; }
#top-header.talent-photo-page .user-agree-box:focus-within { outline: 3px solid var(--main-red); outline-offset: 3px; }
#top-header .select-time-radio input:focus-visible + label { outline: 3px solid var(--main-blue); outline-offset: 3px; }
@media (max-width: 991px) {
  #top-header .site-header { background: #fff; padding-top: env(safe-area-inset-top,0px); }
  #top-header .site-header .navbar { min-height: 72px; }
  #top-header .site-header .navbar-toggler { min-width: 44px; min-height: 44px; }
  #top-header .site-header .navbar-collapse { max-height: calc(100dvh - 88px); overscroll-behavior: contain; }
  #top-header .site-header .nav-link,#top-header .site-header .dropdown-item { min-height: 44px; display: flex; align-items: center; }
  #top-header .site-header .language-switch a { min-width: 44px; min-height: 44px; }
  #top-header .site-header .navbar-brand { margin-right: 1rem; }
  #top-header.talent-page .select-time-radio { margin: 0 .5rem .5rem 0 !important; }
  #top-header.talent-page .select-time-radio label { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 64px; padding: .55rem .85rem; margin: 0; font-size: 1rem; line-height: 1.4; }
  #top-header.talent-page .btn { min-height: 44px; white-space: normal; line-height: 1.5; }
  #top-header.talent-page .registration-option { padding: 1rem; align-items: flex-start; }
  #top-header.talent-page .registration-option input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: .1rem; }
  #top-header.talent-page .registration-option span { min-width: 0; }
  #top-header.talent-photo-page .photo-roll { --bs-gutter-x: 1rem; }
  #top-header.talent-photo-page .main-image-box { flex: 0 0 auto; width: 50%; }
  #top-header.talent-photo-page .photo-thumbnail .float-center { opacity: 1; }
  #top-header.talent-photo-page .photo-thumbnail .float-center .image-button a { display: block; }
  #top-header.talent-photo-page .photo-thumbnail .float-center .image-button a > div { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  #top-header.talent-photo-page .user-agree { display: block; min-height: 64px; padding: 14px 12px; font-size: .875rem; line-height: 1.6; }
  #top-header.talent-photo-page .user-agree span { width: 44px; height: 26px; border-radius: 14px; margin: 2px 0 8px 12px; }
  #top-header.talent-photo-page .user-agree span::before { width: 22px; height: 22px; border-radius: 50%; }
  #top-header.talent-photo-page .user-agree-box input:checked + label span::before { left: 20px; }
  #top-header.talent-photo-page .user-agree-box input[type="checkbox"] { width: 48px; height: 44px; right: 8px; top: 6px; cursor: pointer; }
  #top-header.talent-photo-page .user-agree-box input:disabled + label { opacity: .7; cursor: progress; }
  #top-header.talent-photo-page .photo-thumbnail .float-center { width: calc(100% - 20px) !important; }
  #top-header.talent-photo-page .talent-name,#top-header.talent-photo-page .image-count { display: block; overflow-wrap: anywhere; }
  #top-header .mfp-container { padding-left: 12px; padding-right: 12px; }
  #top-header .mfp-close { min-width: 44px; min-height: 44px; }
}
@media (max-width: 767px) {
  #top-header { line-height: 1.65; }
  #top-header .container { padding-left: max(20px,env(safe-area-inset-left,0px)); padding-right: max(20px,env(safe-area-inset-right,0px)); }
  #top-header .container .container { padding-left: 0; padding-right: 0; }
  #top-header .section { padding-top: 2rem; padding-bottom: 2rem; }
  #top-header .section.cta-home { padding-top: calc(88px + env(safe-area-inset-top,0px)); padding-bottom: 1.5rem; }
  #top-header .section > .container.py-5 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  #top-header .section-heading { margin-bottom: 1.5rem; min-width: 0; }
  #top-header .section-heading.mt-5 { margin-top: 0 !important; }
  #top-header .text-lg,#top-header .section-heading > .text-lg { font-size: clamp(1.8rem,7.5vw,2.5rem); line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
  #top-header h1,#top-header h2,#top-header h3,#top-header .talent-name { overflow-wrap: anywhere; }
  #top-header .form-control,#top-header .cta-home .form-control { font-size: 16px; min-height: 48px; padding-top: .65rem; padding-bottom: .65rem; }
  #top-header .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; padding: .7rem 1.15rem; }
  #top-header .workflow-panel { padding: 1.1rem; }
  #top-header .workflow-title-row { gap: 1rem; }
  #top-header .workflow-recipients li { gap: .35rem; padding: .75rem 0; }
  #top-header .workflow-recipients .mail-recipient-status { flex-basis: 100%; }
  #top-header .table-responsive { overscroll-behavior-x: contain; }
  #top-header .invite-shoot-options { max-height: min(20rem,50dvh); }
  #top-header .footer { padding-top: 1rem; padding-bottom: max(1rem,env(safe-area-inset-bottom,0px)); }
  #top-header .footer .footer-copy { margin-bottom: 0; }
  #top-header #banner .vh-100 { height: auto !important; min-height: 100svh; }
  #top-header #banner .login { padding: 110px 0 32px !important; }
  #top-header.talent-page form > .btn,#top-header.talent-page p > .btn,#top-header.talent-page .button-bar > .btn { width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
  #top-header.talent-page #edit-form { display: flex; flex-direction: column; gap: .75rem; }
  #top-header.talent-page #edit-form .btn { margin: 0 !important; }
  #top-header.talent-page .registration-qr { max-width: 240px; width: 100%; height: auto; }
  #top-header.talent-photo-page .talent-box > .col-12,#top-header.talent-photo-page .talent-photos { padding-left: 1rem !important; padding-right: 1rem !important; }
  #top-header.talent-photo-page .instructions { font-size: .9375rem; line-height: 1.6; }
  #top-header.talent-photo-page .button-bar { padding-left: 0; padding-right: 0; }
  #top-header.talent-photo-page .button-bar > .btn { margin-top: .5rem; }
}
@media (max-width: 575px) {
  #top-header.talent-photo-page .main-image-box { width: 100%; }
  #top-header .upload-preview-card { grid-template-columns: 96px minmax(0,1fr); }
  #top-header .upload-preview-content { padding: 12px; }
}
@media (hover: none), (pointer: coarse) {
  #top-header .photo-thumbnail .float-center { opacity: 1; }
  #top-header .photo-thumbnail .image-button a > div { min-height: 44px; }
}
/* Keep persistent mobile controls away from the centre of the portrait. */
@media (max-width: 991px), (hover: none), (pointer: coarse) {
  #top-header .photo-thumbnail > .float-center {
    top: auto;
    bottom: 8px;
    transform: translateX(-50%);
  }
}

/* Keep the expanded help navigation from crowding the account controls on tablets. */
@media (min-width: 992px) and (max-width: 1199px) {
  #top-header .site-header .navbar-toggler { min-width: 44px; min-height: 44px; }
  #top-header .site-header .navbar-collapse { max-height: calc(100dvh - 100px); overflow-y: auto; }
  #top-header .site-header .navbar-nav { align-items: stretch !important; }
  #top-header .site-header .nav-link { min-height: 44px; display: flex; align-items: center; margin: .2rem 0; }
  #top-header .site-header .language-switch { justify-content: flex-start; }
  #top-header .site-header #navbarWelcome { margin: .5rem 0 !important; }
  #top-header .site-header .dropdown-menu { box-shadow: none; }
}
