/* Aydın Yarış Kayıt – site görünümü */
.ayk {
    --ayk-ink: #1d2a39;
    --ayk-muted: #5f6b7a;
    --ayk-line: #dfe4ea;
    --ayk-soft: #f5f7fa;
    --ayk-brand: #1f3a5f;
    --ayk-accent: #e8711a;
    --ayk-ok: #1e8a5a;
    --ayk-err: #c62f2f;
    --ayk-radius: 10px;
    color: var(--ayk-ink);
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    max-width: 100%;
}
.ayk *, .ayk *::before, .ayk *::after { box-sizing: border-box; }
.ayk [hidden], .ayk-field[hidden] { display: none !important; }

/* Başlık */
.ayk-head { margin: 0 0 18px; }
.ayk-title { margin: 0 0 6px; font-size: 1.45em; line-height: 1.25; color: var(--ayk-brand); }
.ayk-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ayk-muted); font-size: .92em; }
.ayk-back { margin: 0 0 10px; font-size: .92em; }

/* Form */
.ayk-form-wrap { max-width: 760px; margin-left: auto; margin-right: auto; }
.ayk-form { background: #fff; border: 1px solid var(--ayk-line); border-radius: var(--ayk-radius); padding: 22px; }
.ayk-grid { display: flex; flex-wrap: wrap; gap: 0 16px; }
.ayk-field { flex: 1 1 100%; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.ayk-field.ayk-half { flex: 1 1 calc(50% - 8px); }
.ayk-label { display: block; font-weight: 600; margin: 0 0 6px; padding: 0; font-size: .95em; }
.ayk-req { color: var(--ayk-err); }
.ayk .ayk-field input[type=text],
.ayk .ayk-field input[type=email],
.ayk .ayk-field input[type=tel],
.ayk .ayk-field input[type=number],
.ayk .ayk-field input[type=date],
.ayk .ayk-field select,
.ayk .ayk-field textarea,
.ayk-admin-entry .ayk-field input[type=text],
.ayk-admin-entry .ayk-field input[type=email],
.ayk-admin-entry .ayk-field input[type=tel],
.ayk-admin-entry .ayk-field input[type=number],
.ayk-admin-entry .ayk-field input[type=date],
.ayk-admin-entry .ayk-field select,
.ayk-admin-entry .ayk-field textarea {
    width: 100%; max-width: 100%; min-height: 46px; padding: 10px 12px; font-size: 16px;
    border: 1px solid #c8d0da; border-radius: 8px; background: #fff; color: var(--ayk-ink); box-shadow: none; margin: 0;
}
.ayk .ayk-field textarea { min-height: 90px; }
.ayk .ayk-field input:focus, .ayk .ayk-field select:focus, .ayk .ayk-field textarea:focus {
    outline: none; border-color: var(--ayk-brand); box-shadow: 0 0 0 3px rgba(31, 58, 95, .15);
}
.ayk-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ayk-choice { display: inline-flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border: 1px solid #c8d0da; border-radius: 8px; cursor: pointer; background: #fff; font-weight: 500; margin: 0; }
.ayk-choice input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--ayk-brand); }
.ayk-choice:has(input:checked) { border-color: var(--ayk-brand); background: #eef3f9; }
.ayk-help { margin: 6px 0 0; font-size: .85em; color: var(--ayk-muted); }
.ayk-heading { margin: 8px 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--ayk-line); font-size: 1.1em; color: var(--ayk-brand); }
.ayk-paragraph { background: var(--ayk-soft); border-radius: 8px; padding: 10px 14px; font-size: .93em; }
.ayk-paragraph p { margin: 0 0 .5em; }
.ayk-paragraph p:last-child { margin: 0; }
.ayk-field.has-error input, .ayk-field.has-error select, .ayk-field.has-error textarea, .ayk-field.has-error .ayk-choice { border-color: var(--ayk-err) !important; }
.ayk-error-msg { color: var(--ayk-err); font-size: .87em; margin: 6px 0 0; font-weight: 600; }
.ayk-kvkk .ayk-choice { border: 0; padding: 0; background: none; font-size: .9em; }
.ayk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ayk-submit {
    display: block; width: 100%; margin-top: 6px; padding: 15px 20px; border: 0; border-radius: 8px;
    background: var(--ayk-accent); color: #fff; font-size: 1.05em; font-weight: 700; cursor: pointer; transition: filter .15s;
}
.ayk-submit:hover { filter: brightness(.94); }
.ayk-submit:disabled { opacity: .7; cursor: wait; }

/* Mesaj kutuları */
.ayk-box { border-radius: var(--ayk-radius); padding: 14px 18px; margin: 0 0 16px; background: var(--ayk-soft); border: 1px solid var(--ayk-line); }
.ayk-box p { margin: 0 0 .4em; }
.ayk-box p:last-child { margin: 0; }
.ayk-box-warn { background: #fff8e6; border-color: #f0d48a; }
.ayk-box-err { background: #fdeeee; border-color: #efb4b4; color: #8c1d1d; outline: none; }
.ayk .ayk-box-ok { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center !important; background: #eaf7f0; border-color: #9fd6b9; padding: 28px 24px; }
.ayk .ayk-box-ok > div, .ayk .ayk-box-ok p { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
.ayk-ok-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ayk-ok); color: #fff; font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.ayk .ayk-ok-title { font-weight: 700; font-size: 1.2em; margin-bottom: 6px !important; }
.ayk .ayk-ok-cat { display: inline-block; margin: 8px auto !important; padding: 8px 16px; background: #fff; border: 1px solid #9fd6b9; border-radius: 99px; }
.ayk-ok-cat strong { color: var(--ayk-brand); }
.ayk-link { color: var(--ayk-brand); font-weight: 600; }

/* Açık yarış kartları */
.ayk-cards { display: grid; gap: 12px; }
.ayk-card-race { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--ayk-line); border-radius: var(--ayk-radius); background: #fff; color: var(--ayk-ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.ayk-card-race:hover { border-color: var(--ayk-brand); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.ayk-date { flex: none; width: 58px; text-align: center; border-radius: 8px; background: var(--ayk-brand); color: #fff; padding: 6px 0; font-size: .75em; font-weight: 700; letter-spacing: .5px; line-height: 1.1; }
.ayk-date b { display: block; font-size: 1.9em; }
.ayk-card-body { flex: 1; min-width: 0; }
.ayk-card-body strong { display: block; font-size: 1.05em; }
.ayk-card-body small { color: var(--ayk-muted); }
.ayk-card-cta { flex: none; color: var(--ayk-accent); font-weight: 700; white-space: nowrap; }

/* Katılımcı listesi
   Tema tablo/buton stilleri listeyi bozmasın diye kurallar yüksek öncelikli. */
.ayk-list { margin: 0 0 24px; }
.ayk-list .ayk-list-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 14px 18px; background: var(--ayk-soft); border: 1px solid var(--ayk-line); border-radius: var(--ayk-radius); }
.ayk-list .ayk-list-bar strong { display: block; color: var(--ayk-brand); font-size: 1.05em; line-height: 1.3; }
.ayk-list .ayk-total { display: block; color: var(--ayk-muted); font-size: .88em; margin-top: 2px; }
.ayk .ayk-print { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; border: 0 !important; border-radius: 8px !important; padding: 10px 18px !important; background: var(--ayk-accent) !important; color: #fff !important; font-family: inherit !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1.2 !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; cursor: pointer; width: auto !important; min-height: 0 !important; }
.ayk .ayk-print:hover { filter: brightness(.94); }
.ayk .ayk-actions-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.ayk a.ayk-excel { background: #1e7a46 !important; text-decoration: none !important; }
.ayk-list .ayk-cat { border: 1px solid var(--ayk-line); border-radius: var(--ayk-radius); overflow: hidden; margin: 0 0 22px; background: #fff; }
.ayk-list .ayk-cat-title { display: flex !important; justify-content: space-between; align-items: center; gap: 10px; margin: 0 !important; padding: 12px 16px !important; background: var(--ayk-brand); color: #fff !important; font-size: 1rem !important; line-height: 1.3 !important; letter-spacing: .3px; text-transform: uppercase; border: 0 !important; }
.ayk-list .ayk-count { font-size: .8em; background: rgba(255, 255, 255, .18); padding: 3px 10px; border-radius: 99px; white-space: nowrap; text-transform: none; font-weight: 700; }
.ayk-list .ayk-cat-outside { border-color: #e7a3a3; }
.ayk-list .ayk-cat-outside .ayk-cat-title { background: var(--ayk-err); }
.ayk-list .ayk-summary .ayk-cat-title { background: var(--ayk-ok); }
.ayk .ayk-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0; }
.ayk table.ayk-table { width: 100% !important; max-width: none !important; border-collapse: collapse !important; border-spacing: 0 !important; border: 0 !important; margin: 0 !important; table-layout: auto !important; background: #fff !important; font-size: 14px; }
.ayk table.ayk-table th,
.ayk table.ayk-table td { padding: 11px 16px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid #edf0f3 !important; text-align: left !important; vertical-align: middle !important; white-space: nowrap; background: transparent !important; color: var(--ayk-ink) !important; font-size: 14px !important; line-height: 1.4 !important; font-weight: 400; box-shadow: none !important; }
.ayk table.ayk-table thead th { background: var(--ayk-soft) !important; color: var(--ayk-muted) !important; font-size: 11.5px !important; text-transform: uppercase; letter-spacing: .5px; font-weight: 700 !important; border-bottom: 1px solid var(--ayk-line) !important; }
.ayk table.ayk-table tbody.ayk-entry:nth-of-type(even) td { background: #fafbfc !important; }
.ayk table.ayk-table tbody.ayk-entry:hover td { background: #f1f5fa !important; }
.ayk table.ayk-table tbody.ayk-entry:last-child tr:last-child td,
.ayk table.ayk-table tbody:not(.ayk-entry) tr:last-child td { border-bottom: 0 !important; }
.ayk table.ayk-table tbody.ayk-team tr:first-child td:not(.ayk-num) { border-bottom: 1px dashed #dde3ea !important; padding-bottom: 8px !important; }
.ayk table.ayk-table tr.ayk-partner td { padding-top: 8px !important; }
.ayk table.ayk-table .ayk-team .ayk-num { vertical-align: middle !important; }
.ayk .ayk-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; background: #e8eef6; color: var(--ayk-brand); border-radius: 4px; padding: 2px 6px; margin-right: 8px; vertical-align: 1px; min-width: 42px; text-align: center; }
.ayk .ayk-tag-alt { background: #fdeedd; color: #a24d0b; }
.ayk table.ayk-table tfoot td { background: var(--ayk-brand) !important; color: #fff !important; font-weight: 700 !important; border: 0 !important; }
.ayk table.ayk-table .ayk-num { width: 44px !important; text-align: center !important; color: var(--ayk-muted) !important; padding-left: 10px !important; padding-right: 10px !important; }
.ayk table.ayk-table tfoot .ayk-num { color: #fff !important; }
.ayk table.ayk-table td.ayk-name { font-weight: 700 !important; white-space: normal; min-width: 170px; }
.ayk table.ayk-table .ayk-row-warn td { color: var(--ayk-err) !important; }
.ayk-summary table.ayk-table td:last-child, .ayk-summary table.ayk-table th:last-child { text-align: right !important; width: 120px !important; }

@media (max-width: 600px) {
    .ayk-form { padding: 16px; }
    .ayk-field.ayk-half { flex-basis: 100%; }
    .ayk-choice { flex: 1 1 auto; }
    .ayk table.ayk-table th, .ayk table.ayk-table td { padding: 9px 10px !important; font-size: 13px !important; }
    .ayk table.ayk-table td.ayk-name { min-width: 140px; }
    .ayk-list .ayk-list-bar { padding: 12px 14px; }
    .ayk-card-race { flex-wrap: wrap; }
    .ayk-card-cta { width: 100%; text-align: right; }
    .ayk .ayk-actions-bar { width: 100%; }
    .ayk .ayk-print { flex: 1 1 0; justify-content: center; }
}
.ayk .ayk-team-note { color: var(--ayk-muted); font-size: .85em; }
.ayk form.ayk-unlock { margin: 0 0 18px; padding: 18px 20px; background: #fff; border: 2px solid var(--ayk-brand); border-radius: var(--ayk-radius); max-width: 420px; margin-left: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.ayk form.ayk-unlock[hidden] { display: none !important; }
.ayk .ayk-unlock-title { font-weight: 700; color: var(--ayk-brand); margin: 0 0 2px !important; }
.ayk .ayk-unlock .ayk-help { margin: 0 0 12px !important; }
.ayk .ayk-unlock .ayk-label { display: block; margin: 0 0 12px; font-weight: 600; }
.ayk .ayk-unlock input { display: block; width: 100%; margin-top: 6px !important; min-height: 44px; padding: 8px 12px !important; font-size: 16px !important; border: 1px solid #c8d0da !important; border-radius: 8px !important; box-sizing: border-box; }
.ayk .ayk-cap-q { display: inline-block; padding: 1px 8px; background: var(--ayk-soft); border-radius: 4px; font-family: monospace; font-size: 1.05em; letter-spacing: 1px; }
.ayk .ayk-unlock-btns { display: flex; gap: 8px; justify-content: flex-end; }
.ayk .ayk-btn-ghost { background: transparent !important; border: 1px solid #c8d0da !important; color: var(--ayk-ink) !important; border-radius: 8px; padding: 10px 16px; cursor: pointer; font-weight: 600; text-transform: none !important; }
/* Hizalı tablolar: tüm kategorilerde aynı sütun genişlikleri */
.ayk table.ayk-table.ayk-aligned { table-layout: fixed !important; min-width: 640px; }
.ayk table.ayk-table.ayk-aligned th,
.ayk table.ayk-table.ayk-aligned td { white-space: normal; overflow-wrap: anywhere; }
.ayk table.ayk-table.ayk-aligned .ayk-num { width: auto !important; }
.ayk table.ayk-table.ayk-aligned td.ayk-name { min-width: 0; }
