:root { color-scheme: light; font-family: system-ui, sans-serif; color: #192b40; background: #f3f6fa; line-height: 1.6; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem max(1rem, calc((100% - 1080px) / 2)); background: white; border-bottom: 1px solid #d9e2ef; }
.brand { font-size: 1.15rem; font-weight: 750; text-decoration: none; color: #192b40; }
.brand span { display: block; font-size: .8rem; font-weight: 400; }
nav { display: flex; align-items: center; gap: 1rem; }
main { max-width: 1080px; margin: 3rem auto; padding: 0 1rem; }
.panel { max-width: 540px; margin: auto; padding: 2rem; background: white; border: 1px solid #d9e2ef; border-radius: .75rem; }
h1 { line-height: 1.2; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-top: 0; }
h2 { line-height: 1.3; }
a { color: #174a92; }
label { display: block; font-weight: 650; margin-bottom: .35rem; }
input:not([type=hidden]) { width: 100%; padding: .75rem; border: 1px solid #72839c; border-radius: .35rem; font: inherit; }
input[type=checkbox], input[type=radio] { width: auto; padding: 0; }
select, textarea { width: 100%; padding: .75rem; border: 1px solid #72839c; border-radius: .35rem; font: inherit; }
input:disabled, select:disabled { background: #eef1f5; color: #485b71; }
code { overflow-wrap: anywhere; }
button, .button { display: inline-block; border: 1px solid #174a92; border-radius: .35rem; padding: .7rem 1.1rem; font: inherit; background: #174a92; color: white; cursor: pointer; text-decoration: none; }
.secondary { background: white; color: #174a92; padding: .35rem .75rem; }
:focus-visible { outline: 3px solid #cc6200; outline-offset: 3px; }
.errorlist { color: #a11b24; padding-left: 1.25rem; }
.helptext, .helptext ul { font-size: .85rem; color: #485b71; }
.eyebrow { color: #485b71; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.card { background: white; border: 1px solid #d9e2ef; border-radius: .75rem; padding: 1.5rem; }
.muted { color: #485b71; }
.identity code { overflow-wrap: anywhere; }
footer { margin: 3rem auto 1rem; max-width: 1080px; padding: 0 1rem; font-size: .8rem; color: #485b71; }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .panel { padding: 1.25rem; } header { align-items: flex-start; } nav { flex-wrap: wrap; } }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .6rem 1rem; background: white; }
.skip-link:focus { top: .5rem; }

/* Public homepage. Keep these styles scoped while other screens are reviewed. */
.home-page { background: #f6f8fb; }
.home-page header { flex-wrap: wrap; }
.home-page nav { flex-wrap: wrap; }
.home-page main { margin-top: 2rem; }
.home-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; background: #132b46; color: #f5f8fc; border-radius: 1.25rem; padding: 3rem; }
.home-hero-copy { min-width: 0; }
.home-hero .eyebrow { color: #9fd8e5; margin: 0 0 1.2rem; }
.home-hero h1 { max-width: 12ch; font-size: clamp(2.3rem, 4.5vw, 3.4rem); letter-spacing: -.035em; margin-bottom: 1.25rem; }
.home-lead { color: #cfdae7; font-size: 1.05rem; max-width: 42ch; }
.home-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.8rem; }
.home-actions .button { background: #e1f4f8; color: #12334e; border-color: #e1f4f8; font-weight: 650; }
.home-text-link { color: #f5f8fc; text-underline-offset: .25rem; }
.home-guide { min-width: 0; background: #203d59; padding: 1.75rem; border: 1px solid #3a5873; border-radius: .85rem; }
.home-guide h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.home-guide > p { font-size: .9rem; color: #cfdae7; margin: 0; }
.home-guide ol { padding-left: 1.5rem; margin: 1.5rem 0; }
.home-guide li { padding-left: .4rem; margin: 1.1rem 0; }
.home-guide li::marker { color: #9fd8e5; font-weight: 700; }
.home-guide li strong, .home-guide li span { display: block; }
.home-guide li span { color: #cfdae7; font-size: .9rem; margin-top: .1rem; }
.home-guide .home-guide-note { border-top: 1px solid #3a5873; padding-top: 1rem; }
.home-guide a { color: #e1f4f8; text-underline-offset: .2rem; }

/* Access-key creation: one form, with acknowledgement and verification grouped. */
.registration-page { background: #f6f8fb; }
.registration-page header { flex-wrap: wrap; }
.registration-panel { max-width: 560px; margin: 0 auto; padding: 2.25rem; background: white; border: 1px solid #d9e2ef; border-top: 4px solid #132b46; border-radius: 1rem; }
.registration-panel > .eyebrow { margin: 0 0 .75rem; }
.registration-panel h1 { font-size: clamp(1.8rem, 4vw, 2.15rem); letter-spacing: -.025em; margin-bottom: .85rem; }
.registration-intro { margin: 0 0 1.75rem; color: #485b71; }
.registration-acknowledgement { padding: 1rem; border: 1px solid #d9e2ef; border-radius: .6rem; background: #f6f8fb; }
.registration-choice { display: flex; align-items: flex-start; gap: .75rem; margin: 0; cursor: pointer; }
.registration-choice input[type=checkbox] { flex: 0 0 1.2rem; width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: #174a92; }
.registration-help { font-size: .875rem; color: #485b71; margin: .6rem 0 0 1.95rem; }
.registration-verification { margin: 1.75rem 0; }
.registration-verification h2 { font-size: 1rem; margin: 0 0 .75rem; }
.registration-test-note { font-size: .8rem; color: #485b71; margin: .65rem 0; }
.registration-troubleshooting { margin-top: .75rem; font-size: .85rem; color: #485b71; }
.registration-troubleshooting summary { cursor: pointer; text-underline-offset: .2rem; }
.registration-troubleshooting summary:hover { text-decoration: underline; }
.registration-troubleshooting p { margin: .5rem 0 0; }
.registration-submit { width: 100%; font-weight: 650; padding: .85rem 1rem; }
.registration-return { text-align: center; margin: 1.5rem 0 0; font-size: .9rem; color: #485b71; }
.registration-return a { font-weight: 650; text-underline-offset: .2rem; }
.registration-error { background: #fff1f2; border: 1px solid #dfafb4; border-radius: .5rem; color: #8f1824; padding: .85rem 1rem; margin: 0 0 1rem; }
.registration-error .errorlist { margin: 0; padding-left: 1.1rem; }
.registration-field-error .errorlist { font-size: .9rem; margin: .75rem 0 0 1.95rem; padding-left: 1.1rem; }

/* One-time key display; the key never belongs to the continuation form. */
.key-display { padding: 1.1rem; background: #f3f6fa; border: 1px solid #d9e2ef; border-radius: .6rem; }
.key-display label { font-size: .9rem; }
.key-display textarea { display: block; background: white; color: #192b40; font-family: ui-monospace, monospace; font-size: 1rem; line-height: 1.6; resize: none; overflow-wrap: anywhere; word-break: break-all; }
.key-copy { margin-top: .75rem; min-height: 44px; }
.key-copy[hidden] { display: none; }
.key-copy:disabled { cursor: wait; opacity: .65; }
.key-display p { margin: .75rem 0 0; font-size: .875rem; color: #485b71; }
.key-display .key-copy-status { color: #192b40; }
.key-copy-status:empty { display: none; }
.key-warning { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid #b16b16; }
.key-warning h2 { font-size: 1rem; margin: 0 0 .4rem; }
.key-warning p { font-size: .9rem; color: #485b71; margin: 0; }
.key-saved-choice { margin-bottom: 1.25rem; font-size: .95rem; }

/* Returning participants use their saved key; no scripts are needed. */
.sign-in-field { margin-bottom: 1.5rem; }
.sign-in-help { font-size: .875rem; color: #485b71; margin: .5rem 0 0; }
.sign-in-field-error .errorlist { font-size: .9rem; margin: .65rem 0 0; padding-left: 1.1rem; }
.sign-in-recovery { margin-top: 1.5rem; padding: 1rem 0; border-top: 1px solid #d9e2ef; border-bottom: 1px solid #d9e2ef; font-size: .9rem; color: #485b71; }
.sign-in-recovery summary { cursor: pointer; color: #174a92; font-weight: 650; }
.sign-in-recovery summary:hover { text-decoration: underline; text-underline-offset: .2rem; }
.sign-in-recovery p { margin: .75rem 0 0; }

/* Organiser challenge overview. Keep controls on their dedicated pages. */
.organiser-list-page, .organiser-edit-page { background: #f6f8fb; }
.organiser-list-page header, .organiser-list-page nav, .organiser-edit-page header, .organiser-edit-page nav { flex-wrap: wrap; }
.organiser-list-page nav, .organiser-edit-page nav { max-width: 100%; gap: .75rem 1rem; }
.organiser-list-page nav span, .organiser-edit-page nav span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; color: #485b71; font-size: .875rem; }
.organiser-list-page nav .secondary, .organiser-edit-page nav .secondary { min-height: 44px; }
.organiser-list-intro { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.organiser-list-intro .eyebrow { margin: 0 0 .75rem; }
.organiser-list-intro h1 { letter-spacing: -.03em; margin-bottom: .85rem; }
.organiser-list-intro div > p:last-child { color: #485b71; margin: 0; }
.organiser-list-intro > .button { flex-shrink: 0; font-weight: 650; }
.organiser-list-guide { margin: 1.5rem 0; font-size: .875rem; color: #485b71; max-width: 90ch; }
.organiser-challenges { display: grid; gap: 1.25rem; }
.organiser-challenge { min-width: 0; padding: 1.75rem; background: white; border: 1px solid #d9e2ef; border-radius: .85rem; overflow-wrap: anywhere; }
.organiser-challenge-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.organiser-challenge-heading h2 { min-width: 0; font-size: 1.4rem; letter-spacing: -.02em; margin: 0; }
.organiser-order { flex-shrink: 0; color: #485b71; font-size: .8rem; margin: 0; }
.organiser-description { margin: .65rem 0 0; color: #485b71; }
.organiser-statuses { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 1rem; padding: 1.25rem 0; margin: 1.25rem 0; border-top: 1px solid #e4eaf2; border-bottom: 1px solid #e4eaf2; }
.organiser-statuses > div { min-width: 0; }
.organiser-statuses dt { font-size: .8rem; color: #485b71; margin-bottom: .4rem; }
.organiser-statuses dd { margin: 0; }
.organiser-status { display: inline-block; padding: .2rem .65rem; border-radius: .4rem; font-size: .85rem; font-weight: 650; }
.status-visible { background: #e8f0fc; color: #174a92; }
.status-muted { background: #edf1f6; color: #485b71; }
.status-configured { background: #e4f3ec; color: #176444; }
.status-attention { background: #fff1d9; color: #79500c; }
.organiser-statuses dd p { font-size: .8rem; color: #485b71; margin: .4rem 0 0; }
.organiser-challenge-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.organiser-challenge-actions .button { font-weight: 650; padding: .65rem 1rem; }
.organiser-technical { margin-top: 1.25rem; font-size: .85rem; color: #485b71; }
.organiser-technical summary { cursor: pointer; width: fit-content; color: #174a92; }
.organiser-technical summary:hover { text-decoration: underline; text-underline-offset: .2rem; }
.organiser-technical dl { margin: 1rem 0; }
.organiser-technical dt { font-weight: 650; }
.organiser-technical dd { margin: .2rem 0 .85rem; }
.organiser-technical code { color: #192b40; }
.organiser-list-empty { padding: 2rem; background: white; border: 1px dashed #a8b6c8; border-radius: .85rem; }
.organiser-list-empty h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.organiser-list-empty p { margin: 0; color: #485b71; }
@media (max-width: 600px) {
  .organiser-list-page main { margin-top: 1.5rem; }
  .organiser-list-intro { align-items: flex-start; flex-direction: column; }
  .organiser-challenge { padding: 1.25rem; }
  .organiser-challenge-heading { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .organiser-statuses { grid-template-columns: 1fr 1fr; }
  .organiser-statuses > div:last-child { grid-column: 1 / -1; }
  .organiser-challenge-actions { flex-direction: column; }
  .organiser-challenge-actions .button { text-align: center; }
}

/* Challenge creation/editing: listing details and participant access. */
.organiser-edit-page main { max-width: 860px; }
.organiser-edit-intro { margin-bottom: 1.75rem; }
.organiser-edit-intro .eyebrow { margin: 0 0 .75rem; }
.organiser-edit-intro h1 { letter-spacing: -.03em; margin-bottom: .85rem; }
.organiser-edit-intro > p:last-child { color: #485b71; margin: 0; }
.organiser-form-section { background: white; border: 1px solid #d9e2ef; border-radius: .85rem; padding: 1.75rem; margin-bottom: 1.25rem; }
.organiser-form-section fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.organiser-form-section legend { padding: 0; margin-bottom: 1.25rem; font-weight: 700; font-size: 1.2rem; }
.organiser-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.organiser-field { min-width: 0; margin-bottom: 1.25rem; }
.organiser-optional { color: #485b71; font-size: .85rem; font-weight: 400; }
.organiser-field-help { font-size: .85rem; color: #485b71; margin: .5rem 0 0; }
.organiser-field-error .errorlist { font-size: .9rem; margin: .5rem 0 0; padding-left: 1.1rem; }
.organiser-url-guide { padding: 1rem 1.25rem; background: #f3f6fa; border-radius: .5rem; font-size: .85rem; color: #485b71; overflow-wrap: anywhere; }
.organiser-url-guide h2 { font-size: .95rem; color: #192b40; margin: 0 0 .75rem; }
.organiser-url-guide dl { margin: 0; }
.organiser-url-guide dt { font-weight: 650; }
.organiser-url-guide dd { margin: .15rem 0 .65rem; }
.organiser-url-guide code { color: #192b40; }
.organiser-url-guide p { margin: .75rem 0 0; }
.organiser-url-guide details { margin-top: .85rem; }
.organiser-url-guide summary { cursor: pointer; color: #174a92; font-weight: 650; }
.organiser-section-help { color: #485b71; font-size: .9rem; margin: 0 0 1.25rem; }
.organiser-order-field { max-width: 370px; }
.organiser-choice { padding: 1rem; border: 1px solid #d9e2ef; border-radius: .5rem; margin-top: 1rem; }
.organiser-choice .organiser-field-help, .organiser-choice .organiser-field-error { margin-left: 1.95rem; }
.organiser-section-note { color: #485b71; font-size: .85rem; margin: 1rem 0 0; }
.organiser-create-note { border-left: 3px solid #b16b16; padding-left: 1rem; margin: 1.5rem 0; font-size: .9rem; }
.organiser-create-note p { color: #485b71; margin: .4rem 0 0; }
.organiser-form-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
.organiser-form-actions button { font-weight: 650; }
@media (max-width: 600px) {
  .organiser-edit-page main { margin-top: 1.5rem; }
  .organiser-form-section { padding: 1.25rem; }
  .organiser-field-grid { grid-template-columns: 1fr; gap: 0; }
  .organiser-url-guide { padding: 1rem; }
  .organiser-form-actions { flex-direction: column; gap: 1rem; }
  .organiser-form-actions button { width: 100%; }
}

/* Integration settings and one-time credential handover. */
.organiser-setup-page main { max-width: 940px; }
.organiser-setup-page h1, .secret-handover .eyebrow { overflow-wrap: anywhere; }
.setup-status { padding: 1rem 1.25rem; margin: 0 0 1.25rem; border-left: 3px solid #b16b16; background: #fff5e5; border-radius: .35rem; }
.setup-status p { margin: .3rem 0 0; font-size: .9rem; }
.setup-status-configured { border-color: #176444; background: #eaf5ef; }
.setup-jump-links { flex-wrap: wrap; gap: .65rem 1.25rem; margin: 1.5rem 0; font-size: .9rem; }
.setup-section { scroll-margin-top: 1rem; }
.setup-section h2 { font-size: 1.4rem; margin: 0 0 .75rem; }
.setup-section h3 { font-size: 1rem; margin: 0 0 .65rem; }
.setup-lead { color: #485b71; margin: 0 0 1.25rem; }
.setup-small { font-size: .875rem; color: #485b71; }
.setup-binding, .setup-first-client { margin-top: 1.5rem; }
.setup-binding + .setup-binding { border-top: 1px solid #d9e2ef; padding-top: 1.5rem; }
.setup-values { margin: 1rem 0; }
.setup-values dt { font-size: .85rem; font-weight: 650; color: #485b71; margin-top: .85rem; }
.setup-values dd { min-width: 0; margin: .25rem 0 0; overflow-wrap: anywhere; }
.setup-values code, .setup-values pre { font-size: .9rem; }
.setup-values pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.setup-replacement, .setup-revoke { margin-top: 1.25rem; font-size: .875rem; }
.setup-replacement summary, .setup-revoke summary { cursor: pointer; color: #174a92; font-weight: 650; }
.setup-replacement { padding-top: 1rem; border-top: 1px solid #d9e2ef; }
.setup-keys { display: grid; gap: 1rem; margin: 1.25rem 0; }
.setup-key { min-width: 0; padding: 1rem; border: 1px solid #d9e2ef; border-radius: .5rem; background: #fafbfd; }
.setup-key-state { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin: 0; }
.setup-key-state > span { font-size: .8rem; color: #485b71; }
.setup-key .setup-values { margin: .75rem 0 0; }
.setup-danger { background: #9c2734; border-color: #9c2734; }
.setup-key-issue { border-top: 1px solid #d9e2ef; padding-top: 1.25rem; }
.setup-key-issue > p { font-size: .875rem; color: #485b71; }
.setup-checklist { padding-left: 1.25rem; font-size: .9rem; }
.setup-checklist li { padding-left: .3rem; margin-bottom: .75rem; }
.setup-handover-values { background: #f3f6fa; padding: .5rem 1.25rem 1.25rem; border-radius: .5rem; }
.organiser-secret-page main { max-width: 700px; }
.secret-handover h1 { font-size: clamp(1.7rem, 4vw, 2.15rem); overflow-wrap: anywhere; }
.secret-value { display: block; font: .95rem/1.5 ui-monospace, monospace; background: #f3f6fa; color: #192b40; resize: vertical; overflow-wrap: anywhere; word-break: break-all; }
.secret-expiry { font-size: .9rem; margin-top: 1.25rem; }
.secret-continue { border-top: 1px solid #d9e2ef; padding-top: 1.25rem; margin-top: 1.5rem; }
.secret-continue button { width: 100%; margin-top: 1.25rem; font-weight: 650; }
@media (max-width: 600px) {
  .setup-section button { max-width: 100%; }
  .setup-values code, .setup-values pre { font-size: .85rem; }
}

/* Read-only listing history; historical references remain visible. */
.organiser-history-page main { max-width: 940px; }
.history-scope { color: #485b71; font-size: .875rem; margin: 0 0 1.5rem; }
.history-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.history-entry { padding: 1.5rem; border: 1px solid #d9e2ef; border-radius: .85rem; background: white; overflow-wrap: anywhere; }
.history-entry-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.history-entry-heading time { font-size: .85rem; color: #485b71; }
.history-title-label { font-size: .8rem; color: #485b71; margin: 1rem 0 .25rem; }
.history-entry h2 { font-size: 1.25rem; margin: 0; }
.history-metadata { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 1rem; padding-bottom: 1.25rem; margin: 1.25rem 0; border-bottom: 1px solid #e4eaf2; }
.history-metadata > div { min-width: 0; }
.history-metadata dt { font-size: .8rem; color: #485b71; }
.history-metadata dd { margin: .25rem 0 0; font-size: .9rem; }
.history-fields-label { margin: 0 0 .5rem; font-size: .85rem; font-weight: 650; }
.history-fields { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.history-fields li { background: #edf1f6; color: #485b71; border-radius: .35rem; padding: .2rem .65rem; font-size: .85rem; }
.history-no-fields { color: #485b71; font-size: .875rem; margin: 0; }
.history-back { margin-top: 1.5rem; }
@media (max-width: 600px) {
  .history-entry { padding: 1.25rem; }
  .history-metadata { grid-template-columns: 1fr 1fr; }
  .history-metadata > div:first-child { grid-column: 1 / -1; }
}

/* Participant challenge list. Progress and availability are independent. */
.portal-page { background: #f6f8fb; }
.portal-page header { flex-wrap: wrap; }
.portal-page nav .secondary { min-height: 44px; }
.portal-intro { margin-bottom: 2rem; max-width: 640px; }
.portal-intro .eyebrow { margin: 0 0 .75rem; }
.portal-intro h1 { letter-spacing: -.03em; margin-bottom: .85rem; }
.portal-intro > p:last-child { color: #485b71; margin: 0; }
.portal-challenges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.portal-challenge { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 1.75rem; background: white; border: 1px solid #d9e2ef; border-radius: .85rem; overflow-wrap: anywhere; }
.portal-challenge h2 { font-size: 1.45rem; letter-spacing: -.02em; margin: 1rem 0 .65rem; }
.challenge-progress { display: inline-block; font-size: .8rem; border-radius: 2rem; padding: .25rem .75rem; margin: 0; }
.progress-new { background: #edf1f6; color: #485b71; }
.progress-started { background: #e8f0fc; color: #174a92; }
.progress-completed { background: #e4f3ec; color: #176444; }
.challenge-description { color: #485b71; margin: 0; }
.challenge-date { font-size: .8rem; color: #485b71; margin: 1rem 0 0; }
.challenge-action { width: 100%; padding-top: 1.5rem; margin-top: auto; }
.challenge-action .button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 650; }
.challenge-action .button:hover { background: #123b76; }
.challenge-closed { margin: 0; padding: .75rem 1rem; background: #edf1f6; border-radius: .4rem; color: #485b71; }
.challenge-closed strong, .challenge-closed span { display: block; }
.challenge-closed span { font-size: .85rem; margin-top: .15rem; }
.portal-challenge-closed { background: #fafbfd; }
.portal-empty { grid-column: 1 / -1; padding: 2rem; border: 1px dashed #a8b6c8; border-radius: .85rem; background: white; }
.portal-empty h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.portal-empty p { color: #485b71; margin: 0; }
.portal-reference { margin-top: 2rem; border-top: 1px solid #d9e2ef; padding-top: 1.25rem; font-size: .875rem; color: #485b71; }
.portal-reference summary { width: fit-content; cursor: pointer; color: #174a92; font-weight: 650; }
.portal-reference summary:hover { text-decoration: underline; text-underline-offset: .2rem; }
.portal-reference p { margin: .75rem 0 0; }
.portal-reference code { color: #192b40; }
@media (max-width: 600px) {
  .portal-page main { margin-top: 1.5rem; }
  .portal-challenges { grid-template-columns: 1fr; }
  .portal-challenge { padding: 1.25rem; }
  .portal-intro { margin-bottom: 1.5rem; }
}
@media (max-width: 600px) {
  .registration-page main { margin-top: 1.5rem; }
  .registration-panel { padding: 1.25rem; }
}
@media (max-width: 380px) {
  /* Turnstile's flexible widget has a 300px minimum. Keep it at its native size. */
  .registration-page { background: white; }
  .registration-page main { padding: 0 .5rem; }
  .registration-panel { border: 0; border-radius: 0; padding: 1rem 0; }
}
.home-page :focus-visible { outline-color: #cc6200; }
.home-hero :focus-visible { outline-color: #9fd8e5; }
@media (max-width: 850px) {
  .home-hero { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
  .home-hero h1 { max-width: 18ch; }
  .home-lead { max-width: 55ch; }
}
@media (max-width: 600px) {
  .home-page main { margin-top: 1rem; }
  .home-page header { gap: .75rem; }
  .home-page nav { gap: .75rem; }
  .home-page nav .button { padding: .45rem .8rem; }
  .home-hero { padding: 1.5rem; border-radius: .85rem; }
  .home-guide { padding: 1.25rem; }
}

/* Organiser account and platform controls. */
.organiser-controls-page main { max-width: 850px; }
.organiser-controls-page .organiser-edit-intro { overflow-wrap: anywhere; }
.organiser-controls-page .organiser-form-section h2 { margin-top: 0; font-size: 1.25rem; }
.maintenance-options { margin-bottom: 1.25rem; }
.maintenance-options label { padding: .5rem 0; cursor: pointer; }
.operations-history-entry { padding: .85rem 0; border-top: 1px solid #e4eaf2; overflow-wrap: anywhere; }
.operations-history-entry p { color: #485b71; font-size: .875rem; margin: .25rem 0 0; }
