/* readable_v1 (2026-11-16): easy to tap and read for older fingers and eyes.
   Loaded from base.html after the site styles. Uses !important because each
   page has its own style block later in the page. Screen only: printing
   (labels, printed logbook entries) is not affected.
   Buttons get their 44px minimum from the shared button rule in style.css. */
@media screen {
  /* Boxes: at least 44px tall in total (border-box, so padding is inside). */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="search"],
  input[type="url"],
  select {
    box-sizing: border-box !important;
    min-height: 44px !important;
  }

  input[type="file"] {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-height: 44px !important;
  }

  input[type="checkbox"],
  input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
  }

  /* The "show password" eye: the icon keeps its look, the button around it
     is 40 x 40 so it is easy to hit (a11y_v1; was 18 x 18). */
  .pw-toggle {
    box-sizing: border-box !important;
    min-height: 0 !important;
    width: 40px !important;
    height: 40px !important;
    right: 3px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .password-wrap input {
    padding-right: 48px !important;
  }

  /* a11y_v1: "Skip to main content" link, hidden until a keyboard user presses Tab. */
  .skip-link {
    position: absolute;
    left: 12px;
    top: -200px;
    z-index: 100000;
    padding: 12px 18px;
    border-radius: 10px;
    background: #fbbf24;
    color: #111827 !important;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
  }
  .skip-link:focus {
    top: 12px;
  }
  #main-content:focus {
    outline: none;
  }

  /* Small row buttons (AD search results and similar). */
  .mini-button {
    box-sizing: border-box !important;
    min-height: 44px !important;
  }

  /* Long file fingerprints wrap instead of widening the page. */
  .hash {
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
  }
}

/* On phones a wide table scrolls sideways inside itself, not the whole page. */
@media screen and (max-width: 640px) {
  main.container table.table,
  main.container table.document-table {
    display: block;
    overflow-x: auto;
  }
}

/* copy_email_button_v1 */
.copy-email-btn {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 6px 16px;
    margin: 6px 0 0 6px;
    border: 2px solid #7dd3fc;
    border-radius: 999px;
    background: transparent;
    color: #bae6fd;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    vertical-align: middle;
}
.copy-email-btn:hover { background: rgba(125, 211, 252, 0.12); }

/* section_brackets_v1 (sitewide): the same thin blue bracket as the dashboard, Status page,
   records pages and logbook reader, down the left of each section box, so it is easy to
   follow which section you are in. !important because the sitewide page-box rule in
   style.css uses it. Left padding reduced by the extra edge width so nothing gets narrower. */
main.container .f3-card,
main.container .fa-card,
main.container .sb-panel,
main.container .profile-card,
main.container .panel-lite,
main.container .help-section,
main.container .sms-guide-card,
main.container .sms-panel {
  border-left: 4px solid #6ba9d6 !important;
}
main.container .f3-card,
main.container .fa-card,
main.container .sb-panel,
main.container .profile-card,
main.container .panel-lite,
main.container .sms-guide-card,
main.container .sms-panel {
  padding-left: 15px;
}
@media (max-width: 700px) {
  main.container .help-section { padding-left: 15px; }
}
/* Edit Aircraft: its sections sit inside one card with no edge or padding of their own */
main.container .setup-card .section {
  border-left: 4px solid #6ba9d6;
  padding-left: 12px;
}
