/* ---------- Home ----------
   The navy band is the only place navy fills the page. On it sits the
   colour key: the five colours a ticket wears, which is the whole
   product in a glance. */
.home-band {
    /* Padding, not margin, clears the top bar: the band is exactly one screen tall */
    padding-top: var(--bar-height);
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-items: center;
    color: #ffffff;
}
.home-band-inner {
    max-width: var(--column);
    margin: 0 auto;
    padding: 56px 24px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}
.home-pitch h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.05;
    margin-bottom: 18px;
}
.home-pitch p {
    max-width: 52ch;
    margin-bottom: 26px;
    font-size: 18px;
    color: #dfe3f8;
}
.btn-on-navy {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}
.btn-on-navy:hover { background: rgba(255, 255, 255, 0.12); }
.home-band :focus-visible { outline-color: var(--gold); }

/* The colour key. One strip of ticket stock per status, in the order a
   ticket passes through them, cut like a real ticket: a stub, a
   perforation, and notches that show the navy behind. */
.ticket-key h2 { margin-bottom: 14px; font-size: 21px; color: #ffffff; }
.key-list {
    --notch: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 7px;
    color: var(--ink);
}
.key-strip { display: grid; grid-template-columns: 138px minmax(0, 1fr); }
.key-stub,
.key-main {
    display: flex;
    align-items: center;
    min-height: 52px;
    background-color: var(--stock);
}
.key-stub {
    padding: 10px 8px 10px 18px;
    border-radius: 8px 0 0 8px;
    border-right: 2px dashed rgba(27, 29, 58, 0.3);
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy-dark);
}
.key-main {
    padding: 10px 18px 10px 22px;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    line-height: 1.3;
}

/* The band is the whole home page, so the empty page body under it takes no room */
.home-band + .page { padding: 0; }

/* ---------- Services: one ruled list per team ---------- */
.services-header { margin: 0; }
.team-section {
    margin-top: 18px;
    padding: 24px 28px 10px;
    background: var(--sheet);
    border-radius: 6px;
}
.team-title { padding-bottom: 8px; border-bottom: 2px solid var(--navy-dark); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
}
.service-wrapper { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.service-item { margin: 0; color: var(--muted); }
.service-item.service-title { color: var(--ink); font-weight: 700; font-size: 17px; margin-bottom: 2px; }
.no-services { color: var(--on-page-muted); }

/* ---------- Log in, register, and the ticket form: one narrow sheet ---------- */
.login-field,
.form-layout {
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 32px;
    max-width: 460px;
    margin: 0 auto;
}
.form-body .form-layout { max-width: 680px; margin: 0; }
.login-field .form-header,
.form-layout .form-header { margin-bottom: 18px; }
.stacked button[type="submit"] { width: 100%; margin-top: 6px; }
.form-body .stacked button[type="submit"] { width: auto; }

/* The password box and its Show button share a line */
.password-row { display: flex; gap: 8px; }
.password-row input { flex: 1; min-width: 0; }
.password-row .password { min-height: 44px; }
.error-popup { margin-bottom: 4px; }

/* ---------- Signed-in landing: the two things this person can do ---------- */
.choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 320px));
    gap: 16px;
}
.choice {
    display: block;
    padding: 20px 22px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 6px;
    color: var(--ink);
    text-decoration: none;
}
.choice strong { display: block; font-family: var(--display); font-size: 22px; color: var(--navy-dark); margin-bottom: 4px; }
.choice span { color: var(--muted); }
.choice:hover { border-color: var(--navy); }
.choice.primary { background: var(--gold); border-color: var(--gold-dark); }
.choice.primary span { color: #4a3d0a; }
.choice.primary:hover { background: #f0c95f; }

@media (max-width: 900px) {
    .home-band-inner { grid-template-columns: 1fr; gap: 36px; padding: 40px 16px 48px; }
    .services-grid { grid-template-columns: 1fr; }
    .choices { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .login-field, .form-layout { padding: 22px 16px; }
    .key-strip { grid-template-columns: 112px minmax(0, 1fr); }
    .key-stub { padding-left: 14px; font-size: 17px; }
    .key-main { padding: 10px 14px 10px 18px; font-size: 15px; }
}
