.ntr-public-page {
    --testing-page-bg: #f2f3f7;
    --testing-surface: #ffffff;
    --testing-text: #102b4d;
    --testing-muted: #4c6175;
    --testing-border: #dbe4ef;
    --testing-blue: #013aa7;
    --testing-blue-deep: #002874;
    --testing-blue-soft: #eaf5ff;
    --testing-red: #0bbbef;
    background:
        radial-gradient(circle at 8% 16%, rgba(11, 187, 239, 0.12), transparent 28rem),
        radial-gradient(circle at 92% 88%, rgba(49, 133, 255, 0.12), transparent 30rem),
        var(--testing-page-bg);
}

.ntr-public-page .testing-header {
    min-height: 92px;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    background: #013aa7;
}

.ntr-public-page .testing-header-inner {
    width: min(1180px, calc(100% - 56px));
    min-height: 92px;
}

.ntr-public-page .testing-logo-ranepa {
    width: 174px;
}

.ntr-public-page .testing-header-context {
    color: rgba(255, 255, 255, 0.84);
    letter-spacing: 0.08em;
}

.ntr-public-page .testing-main {
    width: min(1180px, calc(100% - 56px));
    padding: clamp(42px, 6vw, 72px) 0;
}

.ntr-public-page .testing-surface {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    border-color: rgba(1, 58, 167, 0.1);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(1, 40, 117, 0.16);
}

.ntr-public-page .testing-intro {
    min-height: 552px;
    padding: clamp(38px, 5vw, 62px);
    background:
        linear-gradient(145deg, rgba(1, 58, 167, 0.96), rgba(0, 40, 116, 1));
}

.ntr-public-page .testing-intro::before {
    top: -220px;
    right: -175px;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(11, 187, 239, 0.46);
    background: transparent;
    box-shadow:
        0 0 0 58px rgba(11, 187, 239, 0.07),
        0 0 0 116px rgba(49, 133, 255, 0.07),
        0 0 0 174px rgba(255, 255, 255, 0.035);
}

.ntr-public-page .testing-intro::after {
    right: -22px;
    bottom: -32px;
    width: 360px;
    height: 290px;
    border-radius: 0;
    background:
        radial-gradient(circle at 12% 68%, rgba(11, 187, 239, 0.95) 0 4px, transparent 5px),
        radial-gradient(circle at 35% 45%, rgba(255, 255, 255, 0.7) 0 3px, transparent 4px),
        radial-gradient(circle at 57% 74%, rgba(49, 133, 255, 0.95) 0 5px, transparent 6px),
        radial-gradient(circle at 81% 35%, rgba(11, 187, 239, 0.78) 0 4px, transparent 5px),
        radial-gradient(ellipse at 104% 112%, transparent 0 42%, rgba(11, 187, 239, 0.28) 42.4%, rgba(11, 187, 239, 0.28) 43%, transparent 43.4%),
        radial-gradient(ellipse at 104% 112%, transparent 0 61%, rgba(255, 255, 255, 0.16) 61.4%, rgba(255, 255, 255, 0.16) 62%, transparent 62.4%),
        radial-gradient(ellipse at 104% 112%, transparent 0 79%, rgba(49, 133, 255, 0.18) 79.4%, rgba(49, 133, 255, 0.18) 80%, transparent 80.4%);
    opacity: 0.9;
}

.ntr-public-page .testing-intro > * {
    position: relative;
    z-index: 1;
}

.ntr-public-page .testing-kicker {
    max-width: 470px;
    color: rgba(255, 255, 255, 0.78);
    white-space: normal;
}

.ntr-public-page .testing-kicker::before {
    background: #0bbbef;
    box-shadow: 0 0 0 5px rgba(11, 187, 239, 0.13);
}

.ntr-public-page .testing-intro h1 {
    max-width: 570px;
    font-size: clamp(34px, 4.2vw, 50px);
    font-weight: 500;
    line-height: 1.08;
}

.ntr-public-page .testing-intro h1 span {
    max-width: 540px;
    margin-top: 14px;
    font-size: clamp(22px, 2.45vw, 29px);
    line-height: 1.25;
}

.ntr-public-page .testing-steps li > span {
    border-color: rgba(11, 187, 239, 0.68);
    background: rgba(11, 187, 239, 0.12);
    color: #ffffff;
}

.ntr-public-page .testing-form-panel {
    padding: clamp(38px, 4.7vw, 58px);
}

.ntr-public-page .testing-form-kicker,
.ntr-public-page .testing-reset-kicker {
    color: #013aa7;
}

.ntr-public-page .testing-form-panel h2 {
    color: #002874;
}

.ntr-public-page .pin-input {
    min-height: 62px;
    border-color: #cad8e8;
    border-radius: 12px;
    color: #002874;
    font-size: clamp(21px, 2.25vw, 27px);
    font-weight: 500;
    letter-spacing: 0.1em;
    box-shadow: 0 0 8px rgba(1, 40, 117, 0.12);
}

.ntr-public-page .testing-issued-pin {
    container-type: inline-size;
}

.ntr-public-page .testing-issued-pin output {
    font-size: 20px;
    font-size: clamp(18px, 8.5cqi, 32px);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ntr-public-page .pin-input:focus {
    border-color: #3185ff;
    box-shadow: 0 0 0 4px rgba(49, 133, 255, 0.16);
}

.ntr-public-page .button {
    border-radius: 12px;
}

.ntr-public-page .button-primary {
    border-color: #013aa7;
    background: #013aa7;
}

.ntr-public-page .button-primary:hover:not(:disabled) {
    border-color: #002874;
    background: #002874;
}

.ntr-public-page .button:focus-visible,
.ntr-public-page .pin-input:focus-visible,
.ntr-public-page .testing-help-link:focus-visible,
.ntr-public-page .testing-help-close:focus-visible,
.ntr-public-page .testing-faq-item summary:focus-visible {
    outline-color: rgba(11, 187, 239, 0.7);
}

.ntr-public-page .testing-help-header {
    background: #013aa7;
}

.ntr-public-page .testing-faq-item[open] {
    border-color: #b9dff2;
    border-left-color: #0bbbef;
    background: #f2f8ff;
    box-shadow: 0 10px 26px rgba(1, 40, 117, 0.1);
}

.ntr-public-page .testing-faq-indicator,
.ntr-public-page .testing-reset-result-icon {
    background: #e8f7fc;
    color: #013aa7;
}

.ntr-public-page .testing-faq-item[open] .testing-faq-indicator {
    background: #013aa7;
}

.ntr-public-page .testing-person-name,
.ntr-public-page .testing-retake-person {
    border-left-color: #0bbbef;
    background: #edf7ff;
}

@media (max-width: 760px) {
    .ntr-public-page .testing-header,
    .ntr-public-page .testing-header-inner {
        min-height: 76px;
    }

    .ntr-public-page .testing-header-inner {
        width: calc(100% - 32px);
    }

    .ntr-public-page .testing-logo-ranepa {
        width: 129px;
    }

    .ntr-public-page .testing-main {
        width: min(calc(100% - 28px), 590px);
        padding: 28px 0 38px;
    }

    .ntr-public-page .testing-surface {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .ntr-public-page .testing-intro {
        min-height: auto;
        padding: 30px 26px 28px;
    }

    .ntr-public-page .testing-intro::before {
        top: -205px;
        right: -205px;
        width: 440px;
        height: 440px;
    }

    .ntr-public-page .testing-intro::after {
        right: -105px;
        bottom: -105px;
        opacity: 0.55;
    }

    .ntr-public-page .testing-intro h1 {
        max-width: 500px;
        font-size: clamp(28px, 8vw, 34px);
    }

    .ntr-public-page .testing-intro h1 span {
        max-width: 500px;
        font-size: clamp(18px, 5.3vw, 22px);
    }

    .ntr-public-page .testing-kicker {
        font-size: clamp(8px, 2.6vw, 11px);
        white-space: normal;
    }

    .ntr-public-page .testing-form-panel {
        padding: 31px 26px 34px;
    }
}

@media (max-width: 390px) {
    .ntr-public-page .testing-logo-ranepa {
        width: 118px;
    }

    .ntr-public-page .testing-intro,
    .ntr-public-page .testing-form-panel {
        padding-right: 20px;
        padding-left: 20px;
    }

    .ntr-public-page .pin-input {
        font-size: 20px;
        letter-spacing: 0.055em;
    }
}

/* NTR profile and self-registration, 2026-09-16. */
.ntr-profile-select { width:100%; max-width:100%; min-width:0; text-overflow:ellipsis; }
.ntr-field-help { margin:6px 0 16px; font-size:13px; line-height:1.5; color:#657083; }
.ntr-registration-pending { display:flex; align-items:center; gap:14px; margin-top:18px; padding:16px; border:1px solid #c6d4eb; border-radius:14px; background:#eef4fc; color:#173b6c; }
.ntr-registration-pending[hidden] { display:none; }
.ntr-registration-pending p { margin:4px 0 0; font-size:14px; line-height:1.4; }
.ntr-registration-spinner { flex:0 0 24px; width:24px; height:24px; border:3px solid #bdcde5; border-top-color:#173b6c; border-radius:50%; animation:ntr-register-spin .85s linear infinite; }
@keyframes ntr-register-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .ntr-registration-spinner { animation:none; } }
@media (max-width:480px) { .ntr-registration-pending { padding:12px; gap:10px; } .ntr-public-page .testing-panel-topline { gap:10px; } }


/* Two student tests use full-width rows inside the NTR status panel. */
.ntr-public-page .testing-surface-progress {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ntr-public-page .testing-progress-panel {
    min-height: 0;
    padding: clamp(24px, 3vw, 40px);
    justify-content: flex-start;
}

.ntr-public-page .testing-progress-topline {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.ntr-public-page .testing-progress-topline h2 {
    font-size: clamp(23px, 2.6vw, 32px);
    line-height: 1.2;
}

.ntr-public-page .testing-progress-toolbar {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.ntr-public-page .testing-progress-toolbar button {
    min-height: 40px;
    margin: 0;
    font-size: 13px;
}

.ntr-public-page .testing-progress-body {
    display: flex;
    min-width: 0;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding: 0;
}

.ntr-public-page .testing-progress-body > * {
    min-width: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.ntr-public-page .testing-progress-list {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 10px;
}

.ntr-public-page .testing-progress-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px;
}

.ntr-public-page .testing-progress-state-icon {
    grid-column: 1;
    grid-row: 1 / 3;
}

.ntr-public-page .testing-progress-item-title {
    grid-column: 2;
    font-size: 14px;
    line-height: 1.45;
}

.ntr-public-page .testing-progress-item-status {
    margin-top: 0;
    font-size: 12px;
}

.ntr-public-page .testing-progress-body .testing-progress-actions {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
}

.ntr-public-page .testing-progress-actions > * {
    min-width: 0;
    grid-column: 1;
}

.ntr-public-page .testing-progress-action {
    width: 100%;
    min-width: 0;
}

.ntr-public-page .testing-progress-notice p {
    font-size: 13px;
}

.ntr-public-page .ntr-pin-heading {
    container-type: inline-size;
}

.ntr-public-page .ntr-pin-heading h2 {
    font-size: 20px;
    font-size: clamp(18px, 7.8cqi, 32px);
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .ntr-public-page .testing-surface-progress {
        grid-template-columns: minmax(0, 1fr);
    }

    .ntr-public-page .testing-surface-progress .testing-intro {
        min-height: auto;
    }
}


/* Diagnostic title: one type size, with the desktop lines requested by the owner. */
.ntr-public-page .testing-intro > div:first-child {
    container-type: inline-size;
}

.ntr-public-page .testing-intro .ntr-diagnostic-title {
    max-width: 100%;
    font-size: 28px;
    font-size: clamp(24px, 5.3cqi, 36px);
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: wrap;
}

.ntr-public-page .testing-intro .ntr-diagnostic-title .ntr-title-line {
    display: block;
    max-width: none;
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
}

.ntr-public-page .testing-progress-action {
    height: auto;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.4;
}

/* Visible feedback while a participant awaits result import or passport delivery. */
.ntr-public-page form[aria-busy="true"] button[type="submit"]::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .65em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  vertical-align: -.15em; animation: ntr-request-spin .8s linear infinite;
}
@keyframes ntr-request-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ntr-public-page form[aria-busy="true"] button[type="submit"]::before { animation-duration: 2.4s; }
}
