/* Preserve the original Talent Square layout, with plain text UK guidance. */
.archive-note { margin: 0 auto 24px; max-width: 1100px; padding: 15px 20px; border: 1px solid rgba(0,206,209,.4); background: rgba(20,35,55,.95); border-radius: 12px; color: #e0e0e0; font-size: .88rem; }
.help-icon:empty { display: none; }
.card-full a { color: #4ae0e3; }
.help-card a { color: #4ae0e3; text-decoration: none; }
.rules-card .card-preview { display: none; }
.rules-card .card-full { display: block; margin-top: 0; padding-top: 0; border-top: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid #4ae0e3; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* The new form entrance sits below the two directory entrances. */
.enter-register { bottom: 4%; left: 50%; transform: translateX(-50%); background: #00ced1; color: #0d1b2a; text-transform: none; letter-spacing: .02em; white-space: nowrap; }
.enter-register:hover { transform: translate(-50%, -3px); background: #4ae0e3; }
.enter-register:active { transform: translate(-50%, -1px); }
.directory-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; color: #c4d0dc; font-size: .85rem; }
.directory-add { display: inline-block; color: #4ae0e3; font-weight: 600; text-decoration: none; }
.directory-add:hover { text-decoration: underline; }
#directory-status { margin-bottom: 18px; color: #c4d0dc; }
#directory-retry, #directory-more { border: 1px solid #00ced1; border-radius: 8px; background: #1c3048; color: #fff; padding: 10px 18px; font: inherit; cursor: pointer; margin: 12px 0; }
.talent-dialog { margin: auto; width: min(650px, calc(100% - 32px)); max-height: 85vh; overflow-y: auto; border: 1px solid #00ced1; border-radius: 16px; background: #142337; color: #fff; padding: 28px; box-shadow: 0 15px 60px #0008; overflow-wrap: anywhere; }
.talent-dialog::backdrop { background: rgba(0,0,0,.75); }
.talent-dialog .modal-header { gap: 16px; }
.talent-dialog .modal-header h2 { font-size: 1.5rem; }
.talent-dialog .close-modal { flex-shrink: 0; }
.dialog-field { margin-bottom: 18px; }
.dialog-field h3 { font-size: .8rem; color: #4ae0e3; margin-bottom: 5px; }
.dialog-field p { font-size: .92rem; line-height: 1.7; white-space: pre-wrap; color: #e0e0e0; }
.directory-email { display: block; margin-top: 16px; color: #4ae0e3; }
.profile-card h2 { font-family: inherit; }

.talent-register-container { max-width: 900px; }
.talent-register-page h1 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.25; margin: 0 0 14px; }
.register-intro { color: #c4d0dc; font-size: .9rem; margin-bottom: 28px; }
.talent-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.talent-form-grid label { display: flex; flex-direction: column; gap: 8px; color: #fff; font-size: .87rem; font-weight: 600; }
.talent-form-grid .form-wide { grid-column: 1 / -1; }
.talent-form-grid label > span[aria-hidden] { display: none; }
.talent-form-grid input, .talent-form-grid select, .talent-form-grid textarea { width: 100%; min-width: 0; padding: 12px 14px; font: inherit; font-weight: 400; color: #fff; background: #0d1b2a; border: 1px solid #3c586e; border-radius: 8px; }
.talent-form-grid input::placeholder, .talent-form-grid textarea::placeholder { color: #9aabba; opacity: 1; }
.talent-form-grid textarea { resize: vertical; }
.talent-form-grid small { color: #b4c3cf; font-size: .76rem; font-weight: 400; line-height: 1.5; }
.talent-checkbox { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0; color: #d6e0e8; font-size: .85rem; }
.talent-checkbox input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: #00ced1; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-help { font-size: .78rem; color: #b4c3cf; margin-bottom: 18px; overflow-wrap: anywhere; }
.form-help a { color: #4ae0e3; }
#form-status { margin: 14px 0; color: #f2d18d; font-size: .88rem; }
#profile-submit { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
#profile-submit:disabled { opacity: .65; cursor: wait; }
#registration-success .action-button { margin-top: 22px; }
@media (max-width: 768px) {
    .talent-square-container { position: relative; left: auto; top: auto; transform: none; height: 65vh; min-height: 340px; padding-top: 70px; }
    .enter-educators { bottom: 26%; left: 7%; right: auto; transform: none; min-width: 0; width: 40%; }
    .enter-developers { bottom: 26%; right: 7%; left: auto; transform: none; min-width: 0; width: 40%; }
    .talent-register-page .back-button { position: static; }
    .talent-register-page .info-card { padding: 24px 20px; }
}
@media (max-width: 560px) {
    .talent-form-grid { grid-template-columns: 1fr; gap: 18px; }
    .talent-dialog { padding: 22px; }
}
