/* Pro Mod Racing — "Our Drivers" pop-up: driver list / profile / Submit Form (drivers.js). */
html.od-lock, html.od-lock body { overflow: hidden; }
.od-modal {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(4, 5, 8, 0.82); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.od-modal.open { display: flex; }
.od-panel {
  width: 100%; max-width: 820px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel, #12141a); border: 1px solid rgba(246, 90, 8, 0.6); border-radius: 16px;
  box-shadow: 0 0 34px rgba(246, 90, 8, 0.3), 0 18px 60px rgba(0, 0, 0, 0.6);
}
.od-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.12)); }
.od-kick { font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: #ff9a5c; font-weight: 800; }
.od-head h3 { margin: 3px 0 0; font-family: var(--racing); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; outline: none; }
.od-acts { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.od-subbtn {
  font-family: inherit; cursor: pointer; font-weight: 800; font-size: 0.74rem; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
  color: #ffb27a; background: rgba(246, 90, 8, 0.12); border: 1px solid rgba(246, 90, 8, 0.65); border-radius: 9px; padding: 9px 15px; transition: 0.15s;
}
.od-subbtn:hover { color: #fff; background: rgba(246, 90, 8, 0.28); box-shadow: 0 0 16px rgba(246, 90, 8, 0.38); }
.od-subbtn.active { color: #fff; background: linear-gradient(180deg, #ff7a2e, var(--accent, #f65a08)); border-color: #ff9a5c; box-shadow: 0 0 16px rgba(246, 90, 8, 0.45); }
.od-close {
  flex: 0 0 auto; width: 34px; height: 34px; cursor: pointer; font-weight: 800; font-size: 1rem; color: #e8eaf2;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 9px;
}
.od-close:hover { background: rgba(246, 90, 8, 0.45); border-color: var(--accent, #f65a08); }
.od-subbtn:focus-visible, .od-close:focus-visible, .od-card:focus-visible, .od-back:focus-visible, .od-send:focus-visible, .od-link:focus-visible,
.od-editbtn:focus-visible {
  outline: 2px solid #ff9a5c; outline-offset: 2px;
}
.od-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; padding: 16px 18px 22px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.od-view[hidden] { display: none; }
.od-empty { text-align: center; color: var(--muted, #9aa3b2); font-size: 0.95rem; line-height: 1.7; padding: 44px 20px; }
.od-empty b { display: block; color: #fff; font-size: 1.1rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.od-top { text-align: center; font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted, #9aa3b2); font-weight: 700; margin: 0 0 12px; }
.od-link { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: #ffb27a; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.od-link:hover { color: #fff; }
.od-back {
  font-family: inherit; cursor: pointer; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.5px; color: #cfd3e0; background: rgba(10, 11, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 20px; padding: 7px 16px; margin: 0 0 14px; transition: 0.15s;
}
.od-back:hover { color: #fff; border-color: rgba(246, 90, 8, 0.65); }
/* list */
.od-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.od-card {
  display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; text-align: left; font: inherit; color: #e8eaf2; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(246, 90, 8, 0.3); border-radius: 12px; padding: 10px 12px; min-height: 62px; transition: 0.15s;
}
.od-card:hover, .od-card:focus-visible { border-color: var(--accent, #f65a08); background: rgba(246, 90, 8, 0.1); box-shadow: 0 0 16px rgba(246, 90, 8, 0.24); }
.od-thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #000; border: 1px solid rgba(255, 255, 255, 0.12); }
.od-cmain { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.od-ctop { display: flex; align-items: center; gap: 8px; min-width: 0; }
.od-cname { font-weight: 800; font-size: 1rem; color: #fff; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.od-ctown { font-size: 0.74rem; color: var(--muted, #9aa3b2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-num {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 7px;
  font-weight: 800; font-size: 0.78rem; color: #fff; background: var(--accent, #f65a08); font-variant-numeric: tabular-nums;
}
/* profile */
.od-prof { display: flex; gap: 18px; align-items: flex-start; }
.od-photo { flex: 0 0 auto; width: min(300px, 42%); }
.od-photo img {
  display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #000; border-radius: 14px;
  border: 1px solid rgba(246, 90, 8, 0.45); box-shadow: 0 0 22px rgba(246, 90, 8, 0.2);
}
.od-pmain { flex: 1 1 auto; min-width: 0; }
.od-pname {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; font-family: var(--racing); font-weight: 400;
  font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: 0.03em; color: #fff; line-height: 1.1; overflow-wrap: anywhere; outline: none;
}
.od-pname .od-num { font-family: "Segoe UI", system-ui, sans-serif; font-size: 1rem; height: 34px; min-width: 48px; border-radius: 9px; }
.od-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; }
.od-facts dt { font-size: 0.62rem; letter-spacing: 1.2px; text-transform: uppercase; color: #ff9a5c; font-weight: 800; padding-top: 4px; white-space: nowrap; }
.od-facts dd { margin: 0; color: #e8eaf2; font-size: 0.95rem; line-height: 1.4; overflow-wrap: anywhere; min-width: 0; }
.od-about { margin-top: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); border-left: 3px solid var(--accent, #f65a08); border-radius: 10px; padding: 12px 14px; }
.od-about h4 { margin: 0 0 7px; font-size: 0.62rem; letter-spacing: 1.2px; text-transform: uppercase; color: #ff9a5c; font-weight: 800; }
.od-about p { margin: 0; color: #d7dae4; font-size: 0.95rem; line-height: 1.6; overflow-wrap: anywhere; }
/* Submit Form */
.od-formh { margin: 0 0 4px; font-size: 1.05rem; color: #fff; letter-spacing: 0.3px; outline: none; }
.od-formsub { margin: 0 0 12px; font-size: 0.82rem; color: var(--muted, #9aa3b2); }
.od-note {
  background: linear-gradient(180deg, rgba(246, 90, 8, 0.2), rgba(246, 90, 8, 0.07)); border: 1px solid rgba(246, 90, 8, 0.6);
  border-radius: 12px; padding: 13px 16px; margin: 0 0 16px; box-shadow: 0 0 22px rgba(246, 90, 8, 0.12) inset;
}
.od-note p { margin: 0 0 7px; color: #fff; font-size: 0.95rem; line-height: 1.5; font-weight: 700; }
.od-note p:last-child { margin: 0; color: #ffc39a; font-weight: 600; font-size: 0.9rem; }
.od-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
.od-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.od-f.wide { grid-column: 1 / -1; }
.od-f label, .od-flabel { font-size: 0.66rem; letter-spacing: 1px; text-transform: uppercase; color: #cfd3e0; font-weight: 800; }
.od-f label i, .od-flabel i { font-style: normal; color: #6f7489; font-weight: 700; letter-spacing: 0.3px; text-transform: none; }
.od-f .req { color: #ff9a5c; }
.od-f input[type=text], .od-f input[type=password], .od-f textarea {
  font-family: inherit; font-size: 1rem; color: #fff; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 9px; padding: 10px 12px; width: 100%; transition: border-color 0.15s, box-shadow 0.15s;
}
.od-f textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.od-f input::placeholder, .od-f textarea::placeholder { color: #5f6478; }
.od-f input:focus, .od-f textarea:focus { outline: none; border-color: var(--accent, #f65a08); box-shadow: 0 0 0 3px rgba(246, 90, 8, 0.25); }
.od-f.bad input[type=text], .od-f.bad input[type=password], .od-f.bad textarea, .od-f.bad .od-filebtn { border-color: #ff5566; }
.od-ferr { font-size: 0.76rem; color: #ff8a95; font-weight: 700; }
.od-ferr:empty { display: none; }
.od-count { font-size: 0.66rem; color: #8b90a6; text-align: right; font-variant-numeric: tabular-nums; }
.od-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.od-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.od-f .od-filebtn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 800; font-size: 0.76rem; letter-spacing: 0.6px; color: #ffb27a;
  text-transform: none; background: rgba(246, 90, 8, 0.1); border: 1px dashed rgba(246, 90, 8, 0.65); border-radius: 10px; padding: 10px 16px; transition: 0.15s;
}
.od-f .od-filebtn:hover { color: #fff; background: rgba(246, 90, 8, 0.22); }
.od-file:focus-visible + .od-filebtn { outline: 2px solid #ff9a5c; outline-offset: 2px; }
.od-pv { display: flex; align-items: center; gap: 12px; }
.od-pv[hidden] { display: none; }
.od-pv img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(246, 90, 8, 0.5); background: #000; }
.od-sendrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.od-send {
  font-family: inherit; cursor: pointer; font-weight: 900; font-size: 0.86rem; letter-spacing: 1px; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #ff7a2e, var(--accent, #f65a08)); border: 1px solid #ff9a5c; border-radius: 11px; padding: 12px 26px;
  box-shadow: 0 6px 20px rgba(246, 90, 8, 0.32); transition: 0.15s;
}
.od-send:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.od-send:disabled { opacity: 0.6; cursor: default; }
.od-status { font-size: 0.86rem; font-weight: 700; color: #ff8a95; }
.od-status:empty { display: none; }
.od-done {
  background: rgba(46, 224, 138, 0.1); border: 1px solid rgba(46, 224, 138, 0.45); border-radius: 12px; padding: 16px 18px; color: #d9ffe9;
  font-size: 0.98rem; font-weight: 700; line-height: 1.55; outline: none;
}
.od-done[hidden], .od-formwrap[hidden] { display: none; }
.od-done .od-back { margin: 12px 0 0; }
/* Profile password on the Submit Form (2026-11-04) */
.od-codesec {
  grid-column: 1 / -1; display: flex; flex-direction: column; gap: 13px; margin-top: 4px; padding: 14px 16px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.12); border-left: 3px solid var(--accent, #f65a08);
}
.od-codesec[hidden] { display: none; }
.od-codewarn p { margin: 0 0 8px; font-size: 0.88rem; line-height: 1.5; color: #d7dae4; }
.od-codewarn p:last-child { margin: 0; }
.od-codewarn b { color: #fff; }
.od-codewarn .od-warn {
  background: rgba(255, 85, 102, 0.1); border: 1px solid rgba(255, 85, 102, 0.55); border-radius: 9px; padding: 9px 12px;
  color: #ffd3d8; font-weight: 700;
}
.od-fok { font-size: 0.76rem; color: #5ff0a4; font-weight: 800; }
.od-fok:empty { display: none; }
.od-fhint { font-size: 0.74rem; color: var(--muted, #9aa3b2); }
.od-fhint[hidden] { display: none; }
.od-show { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 0.82rem; color: #cfd3e0; cursor: pointer; }
.od-show input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent, #f65a08); cursor: pointer; }
.od-f input[readonly] { opacity: 0.65; cursor: not-allowed; }
.od-cancel[hidden] { display: none; }
/* Edit Profile (bottom of a profile) */
.od-editbar { display: flex; justify-content: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line, rgba(255, 255, 255, 0.12)); }
.od-editbar[hidden] { display: none; }
.od-editbtn {
  font-family: inherit; cursor: pointer; font-weight: 800; font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; color: #ffb27a;
  background: rgba(246, 90, 8, 0.12); border: 1px solid rgba(246, 90, 8, 0.65); border-radius: 10px; padding: 10px 20px; transition: 0.15s;
}
.od-editbtn:hover { color: #fff; background: rgba(246, 90, 8, 0.28); box-shadow: 0 0 16px rgba(246, 90, 8, 0.38); }
.od-unlock {
  display: flex; flex-direction: column; gap: 10px; max-width: 480px; margin: 22px auto 0; padding: 16px 18px; border-radius: 12px;
  background: rgba(246, 90, 8, 0.08); border: 1px solid rgba(246, 90, 8, 0.55);
}
.od-unlock[hidden] { display: none; }
.od-unlock h4 { margin: 0; font-size: 1.02rem; color: #fff; outline: none; }
.od-unlock p { margin: 0; font-size: 0.86rem; line-height: 1.5; color: #cfd3e0; }
.od-unlock .od-sendrow { margin-top: 2px; }
.od-unlock .od-forgot { font-size: 0.8rem; color: var(--muted, #9aa3b2); }
@media (max-width: 600px) {
  .od-prof { flex-direction: column; align-items: stretch; }
  .od-photo { width: 100%; }
  .od-photo img { max-height: 60vh; }
  .od-fgrid { grid-template-columns: 1fr; }
}
/* phones: the pop-up goes full screen */
@media (max-width: 560px) {
  .od-modal { padding: 0; }
  .od-panel { max-width: none; height: 100%; max-height: none; border: 0; border-radius: 0; }
  .od-head { padding: 12px 14px; gap: 8px; }
  .od-head h3 { font-size: 1.3rem; }
  .od-subbtn { padding: 8px 11px; font-size: 0.68rem; letter-spacing: 0.6px; }
  .od-body { padding: 14px 14px 26px; }
  .od-grid { grid-template-columns: 1fr; }
}

/* ---- Roster: an approved driver's profile photo on their roster card (drivers.js adds td.rs-photo last; it is
        shown first, above the number) ---- */
.panel[data-tab="roster"] .standings td.rs-photo { order: -1; padding: 0 0 0.35rem; line-height: 0; }
.panel[data-tab="roster"] .standings td.rs-photo img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto;
  border: 2px solid var(--accent); box-shadow: 0 0 12px rgba(246, 90, 8, 0.35); background: #0d0f14;
}
@media (max-width: 520px) { .panel[data-tab="roster"] .standings td.rs-photo img { width: 56px; height: 56px; } }