*, *::before, *::after { box-sizing: inherit;}

:root {
    --brand-primary: #142E4F;
    --brand-accent: #2C9C9C;
    --brand-primary-dark: #0E223A;
    --brand-accent-soft: #5FB8B8;
    --brand-bg: #F7F9FB;
    --brand-surface: #FFFFFF;
    --brand-border: #E3E8EE;
    --brand-muted: #6B7C8F;
    --brand-success: #3FBF9F;
    --brand-warning: #F2B950;
    --brand-error: #D96B6B;
}

body {
    background: linear-gradient(135deg, var(--brand-bg) 0%, #EEF3F7 55%, #E3E8EE 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width:100%;
    margin-left:auto;
    margin-right:auto;
    text-align: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--brand-primary);

}

.page-shell {
    width: min(100% - 24px, 1020px);
    margin: 16px auto 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.lettering {
  position: static;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin: 15px auto 10px;
  max-width: 990px;
  padding: 0 15px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 40px;
  line-height: 48px;
  color: var(--brand-primary);
}

.lettering::before {
  content: "";
  width: 46px;
  height: 46px;
  background: url('/static/images/layline-logo.svg') center/contain no-repeat;
  flex: 0 0 auto;
}

.banner {
    background-color: var(--brand-primary);
    height: 64.00px;
    padding: 0px;
    max-width: 100%;
    margin: 0px;

}

.app-top-banner {
    display: flex;
    align-items: center;
    height: 64px;
}

.app-banner-inner {
    width: min(1100px, calc(100% - 24px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-brand {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.app-brand-logo {
    width: 34px;
    height: 34px;
    display: block;
}

.app-brand-text {
    display: inline-block;
}

.app-menu-shell {
    position: relative;
}

.app-menu-trigger {
    border: 1px solid rgba(95,184,184,0.65);
    background: rgba(44,156,156,0.18);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    padding: 8px 14px;
    cursor: pointer;
}

.app-menu-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 210px;
    background: #ffffff;
    border: 1px solid #dbe3ff;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    padding: 6px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1000;
}

.app-menu-shell.open .app-menu-popover,
.app-menu-shell:focus-within .app-menu-popover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.app-menu-link {
    color: var(--brand-primary);
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 8px;
    font-weight: 600;
}

.app-menu-link.active {
    background: #EAF7F7;
    color: var(--brand-primary-dark);
}

.app-menu-link:hover,
.app-menu-link:focus-visible {
    background: #EAF7F7;
    outline: none;
}

.app-menu-link.danger {
    color: #991b1b;
}

.app-menu-trigger:focus-visible,
.app-brand:focus-visible {
    outline: 3px solid #bfdbfe;
    outline-offset: 2px;
}

.form-border{
     background-color: var(--brand-surface);
     border: 2px solid var(--brand-border);
     border-bottom-left-radius: 8px;
     border-bottom-right-radius: 8px;
     border-top-left-radius: 8px;
     border-top-right-radius: 8px;
    width: 100%;
    max-width: 990px;
    padding: 0 16px 20px;
     position: relative;
     box-shadow: 0 8px 24px rgba(20, 46, 79, 0.10);
     box-sizing: border-box;
     margin: auto;
     align-items: center;
    }

.form-footer {
    display: flex;
    border: none;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
    margin: auto;
    width: 990px;
    margin-top: 40px;

    position: relative;
}


.entry-banner{
  height: 40px;
  display: flex;
  background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}
.entry-banner > div {
  flex: 1; /*grow*/
}

.entry-step {
    color: #6b7280;
    text-align: center;
    line-height: 40px;
    background: #f8fafc;
    font-weight: 600;
}

.entry-step-active {
    background-color: #A9ADFC;
    color: #ffffff;
}

.status-banner {
    margin: 12px 0;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.status-info {
    background: #eff6ff;
    color: #1e40af;
}

.status-success {
    background: #ecfdf3;
    color: #166534;
}

.status-error {
    background: #fef2f2;
    color: #991b1b;
}

label {display: block;
        color: #374151;
    font-family: 'Inter', sans-serif;
        font-weight: 600;
        margin-bottom: 6px;
}

.club,
.competitors {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px 16px;
    text-align: left;
    margin-top: 14px;
}

.entry-step-complete {
    background-color: #D7D9FD;
    color: #ffffff;
    font-weight: 700;
}

.wizard-wrap {
    width: min(1000px, calc(100% - 24px));
    margin: 20px auto;
}

.wizard-grid {
    width: min(1000px, calc(100% - 24px));
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.wizard-card {
    background: #ffffff;
    border: 1px solid #dbe3ff;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: left;
    box-shadow: 0 6px 16px rgba(19, 49, 197, 0.08);
}

.wizard-card h4,
.wizard-card h5 {
    margin: 0 0 8px;
    color: #1331C5;
}

.wizard-card p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.wizard-metric {
    display: block;
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.wizard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.wizard-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
}

.wizard-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d1d5db;
    flex: 0 0 auto;
}

.wizard-dot.ok {
    background: #22c55e;
}

.wizard-dot.warn {
    background: #f59e0b;
}

.wizard-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.wizard-pill.info {
    background: #eef2ff;
    color: #1d4ed8;
}

.wizard-pill.success {
    background: #ecfdf3;
    color: #166534;
}

.wizard-pill.warn {
    background: #fffbeb;
    color: #b45309;
}

.empty-state-card {
    width: min(1000px, calc(100% - 24px));
    margin: 16px auto 0;
    background: #ffffff;
    border: 1px dashed #c7d2fe;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
}

.empty-state-title {
    margin: 0 0 8px;
    color: #1331C5;
    font-size: 18px;
    font-weight: 700;
}

.empty-state-copy {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.empty-state-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.is-hidden {
    display: none !important;
}

.confirm-strip {
    margin: 12px auto 0;
    width: min(1000px, calc(100% - 24px));
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    background: #fff7f7;
    border-radius: 10px;
    color: #991b1b;
    text-align: left;
}

.confirm-strip.open {
    display: flex;
}

.confirm-strip-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.form-inline {  
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  text-align: left;   
}

.form-inline input[type=text], select {
  width: 330px;
  border: 3px solid #E5E5E5;
  border-radius: 5px;
  box-sizing: border-box;
  justify-self: start;
}

.landing-page input[type=text],
.landing-page select {
    width: 100%;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 15px;
}

.form-inline input[type=text]:focus {
  border: 3px solid #1331C5;
}

.landing-page input:focus-visible,
.landing-page select:focus-visible,
.landing-page button:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

.action-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 14px 0;
}

.table-wrap {
    width: min(100%, 990px);
    margin: 0 auto;
    overflow-x: auto;
}

#setupEntries {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

#setupEntries th,
#setupEntries td {
    border: 1px solid #e5e7eb;
    padding: 10px;
    text-align: left;
}

.empty-table {
    color: #6b7280;
    text-align: center !important;
    font-style: italic;
}

.remove-entry {
    padding: 8px 12px;
    font-size: 14px;
}







.blue-button {
    background-color: var(--brand-accent);
    border: none; /* Remove borders */
    color: white; /* White text */
    padding: 15px 32px; /* Some padding */
    text-align: center; /* Centered text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Get it to display inline */
    font-size: 16px; /* Increase font size */
    /* margin: 4px 2px; Some margin */
    cursor: pointer; /* Pointer/hand icon */
    border-radius: 12px; /* Rounded corners */
    position: static;
    min-width: 180px;
    white-space: nowrap;
}

.blue-button:hover {
    background-color: var(--brand-primary-dark);
}

.green-button {
    background-color: var(--brand-success);
    border: none; /* Remove borders */
    color: white; /* White text */
    padding: 15px 32px; /* Some padding */
    text-align: center; /* Centered text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Get it to display inline */
    font-size: 16px; /* Increase font size */
    margin: 4px 2px; /* Some margin */
    cursor: pointer; /* Pointer/hand icon */
    border-radius: 12px; /* Rounded corners */
}

.green-button:hover {
    background-color: #45a049; /* Darker green on hover */
}


.red-button {
    background-color: var(--brand-error);
    border: none; /* Remove borders */
    color: white; /* White text */
    padding: 15px 32px; /* Some padding */
    text-align: center; /* Centered text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Get it to display inline */
    font-size: 16px; /* Increase font size */
    margin: 4px 2px; /* Some margin */
    cursor: pointer; /* Pointer/hand icon */
    border-radius: 12px; /* Rounded corners */
}

.red-button:hover {
    background-color: #991818; /* Darker green on hover */
}

.orange-button {
    background-color: var(--brand-warning);
    border: none; /* Remove borders */
    color: white; /* White text */
    padding: 15px 32px; /* Some padding */
    text-align: center; /* Centered text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Get it to display inline */
    font-size: 16px; /* Increase font size */
    margin: 4px 2px; /* Some margin */
    cursor: pointer; /* Pointer/hand icon */
    border-radius: 12px; /* Rounded corners */
}

.orange-button:hover {
    background-color: #b87529;
}

.next-race-shell {
    width: min(990px, calc(100% - 24px));
    margin: 16px auto 0;
}

.next-race-card {
    text-align: left;
    background: #ffffff;
    border: 1px solid #dfe3fb;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    padding: 14px;
}

.next-race-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 8px 14px;
}

.next-race-grid .k {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.next-race-grid .v {
    display: block;
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.next-race-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.next-race-link {
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 600;
}

.next-race-link:hover,
.next-race-link:focus-visible {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .next-race-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .wizard-grid {
        grid-template-columns: 1fr;
    }

    .club,
    .competitors {
        grid-template-columns: 1fr;
    }

    .form-border {
        padding: 0 12px 16px;
    }

    .action-row button {
        width: 100%;
        max-width: 420px;
    }
}



.minimalist {
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.6;
}


/* Union */

/* position: absolute;
width: 184.48px;
height: 33.27px;
left: 17px;
top: 23px;

background: #1331C5;
 */

 /* Series */

