.driver-app {
  --plum: #52165f;
  --plum-dark: #321034;
  --gold: #e7b555;
  --line: #dcd0dc;
  margin: 0;
  background: #faf7f9;
  color: #251d27;
  font: 1rem/1.55 "Segoe UI", Arial, sans-serif;
}
.driver-app *, .driver-app *::before, .driver-app *::after { box-sizing: border-box; }
.driver-app h1, .driver-app h2, .driver-app h3 {
  color: var(--plum-dark);
  line-height: 1.18;
  text-wrap: balance;
}
.driver-app h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.035em; }
.driver-app a { color: var(--plum); text-underline-offset: .2em; }
.driver-app a:hover { text-decoration-thickness: 2px; }
.driver-app :focus-visible { outline: 3px solid #78218a; outline-offset: 3px; }

.driver-masthead { background: #050405; border-bottom: 3px solid var(--gold); }
.driver-masthead-inner {
  width: min(100%, 50rem);
  min-height: 7.8rem;
  margin-inline: auto;
  padding: .65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1.25rem;
  flex-wrap: wrap;
}
.driver-masthead img { display: block; width: clamp(10rem, 24vw, 13.5rem); height: auto; }
.driver-masthead nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.25rem; margin: 0; padding: 0; }
.driver-masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: white;
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-underline-offset: .35em;
}
.driver-masthead nav a:hover, .driver-masthead nav a[aria-current="page"] { color: #ffdb8c; }
.driver-masthead :focus-visible { outline-color: var(--gold); }

.driver-practice-note { background: #f1e8f3; border-bottom: 1px solid var(--line); }
.driver-practice-note p { max-width: 50rem; margin: auto; padding: .75rem 1.5rem; font-size: .94rem; }
.driver-practice-note strong { display: inline-block; margin-right: .55em; color: var(--plum); }
.driver-opening, .driver-subscription, .driver-app .fixture {
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--plum);
  border-radius: .8rem;
  box-shadow: 0 3px 12px #32103409;
}
.driver-opening { padding: clamp(1.5rem, 5vw, 3rem); }
.driver-subscription, .driver-app .fixture {
  width: min(47.5rem, calc(100% - 2rem));
  margin: clamp(1rem, 3vw, 2rem) auto;
  padding: clamp(1rem, 3vw, 1.6rem);
}
.driver-subscription h1, .driver-app .fixture h1 { margin-top: 0; }
.driver-subscription li + li { margin-top: 1rem; }
.driver-app button, .driver-app input, .driver-app select { font: inherit; }
.driver-app button {
  cursor: pointer;
  min-height: 2.75rem;
  max-width: 100%;
  padding: .45rem .9rem;
  border: 1px solid var(--plum);
  border-radius: .45rem;
  background: var(--plum);
  color: white;
  font-weight: 600;
  line-height: 1.35;
}
.driver-app .driver-secondary {
  background: white;
  border-color: #a58ba9;
  color: var(--plum);
}
.driver-app button:hover:enabled { background: var(--plum-dark); color: white; }
.driver-app button:disabled { cursor: default; background: #eee9ee; border-color: #d5cad5; color: #605765; }
.driver-app input:not([type=checkbox]), .driver-app select {
  max-width: 100%;
  min-width: 0;
  padding: .48rem .6rem;
  border: 1px solid #98849a;
  border-radius: .35rem;
  background: white;
  color: #251d27;
}
.driver-app input[type=checkbox] { accent-color: var(--plum); }
.driver-app .driver-plan fieldset { border: 1px solid var(--line); border-radius: .6rem; background: white; }
.driver-app .driver-plan fieldset fieldset { background: #fdfafd; }
.driver-app legend { padding-inline: .4rem; color: var(--plum); font-weight: 650; }
.driver-app summary { color: var(--plum); cursor: pointer; }
.driver-app [role=status] { border-left: 3px solid var(--gold); padding-left: .7rem; }
.driver-app [role=alert] { color: #852636; }
.driver-footer { margin-top: 2.5rem; padding: 1.25rem; border-top: 1px solid var(--line); text-align: center; }
@media (max-width: 32rem) {
  .driver-masthead-inner { min-height: auto; padding: .65rem 1rem .4rem; gap: 0 1.25rem; }
  .driver-masthead nav { gap: 1rem; }
  .driver-practice-note p { padding-inline: 1rem; }
}
@media print {
  .driver-masthead, .driver-practice-note, .driver-footer { display: none; }
  .driver-app { background: white; color: black; }
}
