/* OFF MARKIE shared readability rules. Linked from every page. */
/* Plain links used the browser's default dark blue, which is nearly invisible on the navy background. */
a { color: var(--stamp, #1F3A52); }
a:visited { color: var(--stamp-light, #3C3C3C); }
/* Form fields: a clearly visible outline instead of a barely-there one. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea { border-color: #8A949E; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus, select:focus, textarea:focus { border-color: var(--stamp, #1F3A52); }

/* OFF MARKIE: easier-to-tap checkboxes and radio buttons on phones. Linked from every page that has them. */
@media (max-width: 700px) {
  input[type="checkbox"], input[type="radio"] {
    width: 28px !important; height: 28px !important; min-width: 28px;
    margin: 0 !important; flex: none; cursor: pointer;
    accent-color: var(--stamp, #1F3A52);
  }
  /* Rows that pair a box with text: centre them, give them room, make the whole row easy to hit. */
  .check-row, .checkbox-row {
    align-items: center !important; gap: 14px !important;
    padding: 6px 0; min-height: 44px; font-size: 15px !important; line-height: 1.4;
  }
  .check-row label, .checkbox-row label { cursor: pointer; font-size: inherit; }
  /* The "I agree to the terms" boxes are the ones everyone must tick, so they are larger still. */
  #termsField, #agentTermsField, #vTerms { width: 40px !important; height: 40px !important; min-width: 40px; }
  /* Settings rows with the box on the far right (account page). */
  div:has(> input[type="checkbox"]):not(.check-row):not(.checkbox-row) { min-height: 44px; }
  /* Keep a checklist item's note lined up under its (larger) box. */
  [id^="devslot-"] { margin-left: 42px !important; }
}

/* Buttons that are navy need a visible hover now that the accent colour is the same navy. */
.btn:not(.btn-danger):not(.ghost):hover, .about-scroll-btn:hover, .refresh-btn:hover { background: #3C3C3C !important; color: #FFFFFF !important; }

/* Selected choices get a check mark as well as a colour, so they can be told apart without seeing colour. */
.tag-option.selected::before, .seg-tab.active::before { content: "\2713\00a0"; font-weight: 700; }
.view-btn.active::before { content: "\2713\00a0"; }

/* Comfortable touch targets on phones (about 44 px). */
@media (max-width: 700px) {
  .tag-option, .tab, .view-btn, .seg-tab, .btn, .about-scroll-btn, .match-toggle-btn, .welcome-btn, .prop-match, .prop-edit, .prop-delete {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  }
  .tag-option { padding-top: 10px; padding-bottom: 10px; margin: 0 4px 8px 0; }
  .seg-tabs, .view-toggle { min-height: 44px; }
  select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) { min-height: 44px; }
  /* More air between the sections of long forms. */
  .field-label, label.field-label { margin-top: 14px; }
  .section, .card, .form-section { margin-bottom: 26px; }
}

.logo { white-space: nowrap; }
