:root {
    --navy: #1c1475;
    --navy-deep: #100b4e;
    --navy-soft: #3a328c;
    --aqua: #06a38f;
    --aqua-dark: #007d6e;
    --yellow: #f7b512;
    --ink: #16152a;
    --muted: #67667a;
    --surface: #ffffff;
    --canvas: #f3f4ef;
    --line: #dedee5;
    --error-surface: #eef8f6;
    --accent-light: #6ee1d1;
    --shadow: 0 26px 80px rgba(28, 20, 117, 0.14);
    font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
}

.network--lien {
    --aqua: #9eab05;
    --aqua-dark: #758000;
    --error-surface: #f5f6e8;
    --accent-light: #e1e88a;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 8% 18%, rgba(6, 163, 143, 0.09), transparent 25rem),
        radial-gradient(circle at 90% 92%, rgba(247, 181, 18, 0.10), transparent 24rem),
        var(--canvas);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.site-shell {
    width: min(100% - 48px, 1240px);
    min-height: 100vh;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    overflow-wrap: anywhere;
}

/* Let long member content shrink inside flex/grid columns, including URLs. */
.site-shell :where(main, section, article, aside, form, fieldset, .form-field, .page-form-wrap),
.profile-preview__card > div,
.choice-card > span {
    min-width: 0;
}

.site-shell :where(img, video, iframe) {
    max-width: 100%;
}

.site-shell :where(img, video) {
    height: auto;
}

.site-shell pre {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.site-header {
    flex: 0 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header--member {
    gap: clamp(20px, 2.5vw, 34px);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--navy);
    text-decoration: none;
}

.brand__seai {
    display: block;
    width: 205px;
    height: auto;
    flex: 0 0 auto;
}

.brand__divider {
    width: 1px;
    height: 30px;
    background: rgba(28, 20, 117, 0.28);
}

.brand__product {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    white-space: nowrap;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 650;
    text-underline-offset: 4px;
}

.help-link__icon {
    width: 25px;
    height: 25px;
    border: 1px solid rgba(28, 20, 117, 0.32);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 0.78rem;
    text-decoration: none;
}

.member-navigation {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(13px, 1.8vw, 25px);
}

.member-navigation__toggle {
    width: 44px;
    height: 44px;
    display: none;
    place-content: center;
    gap: 4px;
    border: 1px solid rgba(28, 20, 117, 0.24);
    border-radius: 8px;
    color: var(--navy);
    background: transparent;
    cursor: pointer;
}

.member-navigation__toggle > span:not(.visually-hidden) {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: transform 150ms ease, opacity 150ms ease;
}

.member-navigation__toggle:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.primary-navigation {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.3vw, 20px);
}

.primary-navigation__link,
.header-dropdown summary {
    color: var(--navy);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.primary-navigation__link {
    padding: 10px 0;
    text-decoration: none;
}

.primary-navigation__link[aria-current] {
    text-decoration: underline;
    text-decoration-color: var(--aqua);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

a.primary-navigation__link:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.primary-navigation__link--pending,
.header-dropdown__item--pending {
    cursor: default;
}

.header-search {
    flex: 0 1 164px;
    height: 37px;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(28, 20, 117, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 0 10px;
    outline: none;
    color: var(--muted);
    background: transparent;
    font-size: 0.74rem;
}

.header-search input::placeholder {
    color: #8c8b99;
    opacity: 1;
}

.header-search button {
    position: relative;
    flex: 0 0 37px;
    border: 0;
    border-left: 1px solid rgba(28, 20, 117, 0.14);
    color: var(--navy);
    background: #f2f2f7;
}

.header-search button span {
    position: absolute;
    width: 11px;
    height: 11px;
    inset: 11px auto auto 11px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.header-search button span::after {
    position: absolute;
    width: 6px;
    height: 1.5px;
    right: -5px;
    bottom: -3px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
    content: "";
}

.landing {
    flex: 1;
    min-height: 580px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
    overflow: hidden;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.community {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(38px, 4vw, 56px);
    color: #ffffff;
    background:
        radial-gradient(circle at 91% 14%, rgba(6, 163, 143, 0.62) 0 4px, transparent 5px),
        radial-gradient(circle at 91% 14%, transparent 0 78px, rgba(255, 255, 255, 0.08) 79px 80px, transparent 81px),
        linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.community::before,
.community::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    content: "";
}

.community::before {
    width: 390px;
    height: 390px;
    right: -215px;
    bottom: -155px;
}

.community::after {
    width: 230px;
    height: 230px;
    right: -120px;
    bottom: -74px;
    border-color: rgba(6, 163, 143, 0.28);
}

.community__content {
    width: 100%;
    max-width: 630px;
}

.eyebrow,
.access__kicker {
    margin: 0 0 14px;
    color: var(--accent-light);
    font-size: 0.73rem;
    font-weight: 750;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.community h1 {
    max-width: 600px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.85rem, 4.5vw, 4.25rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.community__intro {
    max-width: 580px;
    margin: 19px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.58;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 25px 0 23px;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    list-style: none;
}

.benefits li {
    min-height: 69px;
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 550;
    line-height: 1.45;
}

.benefits__number {
    align-self: start;
    margin-top: 19px;
    color: var(--accent-light);
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.account-link {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    color: #ffffff;
    font-size: 0.89rem;
    font-weight: 700;
    text-decoration-color: var(--aqua);
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
}

.account-link span {
    color: var(--accent-light);
    font-size: 1.2rem;
    transition: transform 160ms ease;
}

.account-link:hover span {
    transform: translateX(4px);
}

.access {
    display: flex;
    align-items: center;
    padding: clamp(34px, 4vw, 56px);
    background:
        linear-gradient(rgba(28, 20, 117, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 20, 117, 0.026) 1px, transparent 1px),
        #ffffff;
    background-size: 34px 34px;
}

.access__inner {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

.access__kicker {
    margin-bottom: 15px;
    color: var(--aqua-dark);
}

.access h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.45rem, 4vw, 3.4rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.access__intro {
    margin: 12px 0 24px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.notice {
    margin: -8px 0 24px;
    padding: 13px 15px;
    border-left: 3px solid var(--aqua);
    color: #315f59;
    background: var(--error-surface);
    font-size: 0.84rem;
    line-height: 1.5;
}

.notice--error {
    border-left-color: #cc292b;
    color: #792a2b;
    background: #fbefef;
}

.login-form {
    display: grid;
    gap: 16px;
}

.form-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
}

.form-field__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.form-field label,
.form-field__heading label {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.form-field__heading a,
.access__new a {
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 650;
    text-underline-offset: 3px;
}

.form-field input {
    width: 100%;
    height: 49px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0 16px;
    outline: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field input::placeholder {
    color: #9b9aa8;
}

.form-field input:focus {
    border-color: var(--aqua);
    box-shadow: 0 0 0 4px rgba(6, 163, 143, 0.13);
}

.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--muted);
    font-size: 0.79rem;
    line-height: 1.4;
    cursor: pointer;
}

.remember input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--aqua-dark);
}

.submit-button {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 9px;
    padding: 0 19px;
    color: #ffffff;
    background: var(--aqua-dark);
    box-shadow: 0 12px 28px rgba(0, 125, 110, 0.22);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.submit-button:hover {
    background: #006f62;
    box-shadow: 0 15px 32px rgba(0, 125, 110, 0.28);
    transform: translateY(-1px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:focus-visible,
.help-link:focus-visible,
.brand:focus-visible,
.account-link:focus-visible,
.form-field__heading a:focus-visible,
.access__new a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.access__new {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.access__new a {
    margin-left: 4px;
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 23px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    color: #81808d;
    font-size: 0.72rem;
    line-height: 1.45;
}

.secure-note__mark {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 15px;
    border: 1.5px solid var(--aqua-dark);
    border-radius: 3px;
}

.secure-note__mark::before {
    position: absolute;
    width: 9px;
    height: 8px;
    left: 3px;
    top: -8px;
    border: 1.5px solid var(--aqua-dark);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    content: "";
}

.site-footer {
    flex: 0 0 68px;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #73727e;
    font-size: 0.72rem;
    line-height: 1.5;
}

.site-footer p {
    margin: 0;
}

.site-footer strong {
    color: var(--navy);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}

.site-footer nav span {
    color: #5f5e6d;
}

.site-footer nav a {
    color: #5f5e6d;
    text-underline-offset: 3px;
}

.header-dropdown {
    position: relative;
    z-index: 30;
    color: var(--navy);
}

.header-dropdown summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 2px;
    font-size: 0.84rem;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.header-dropdown summary::-webkit-details-marker {
    display: none;
}

.header-dropdown summary:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.header-dropdown__chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 150ms ease;
}

.header-dropdown[open] .header-dropdown__chevron {
    transform: translateY(2px) rotate(225deg);
}

.header-dropdown__panel {
    position: absolute;
    width: 210px;
    left: -15px;
    top: calc(100% + 7px);
    overflow: hidden;
    border: 1px solid #d7d6df;
    border-radius: 5px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(28, 20, 117, 0.17);
}

.profile-menu__panel {
    width: 270px;
    right: -2px;
    left: auto;
}

.header-dropdown__panel nav,
.profile-menu__panel nav,
.profile-menu__logout {
    display: grid;
}

.header-dropdown__item {
    width: 100%;
    display: block;
    border: 0;
    padding: 13px 16px;
    color: var(--ink);
    background: transparent;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.header-dropdown__item--pending {
    color: #676674;
    cursor: default;
}

a.header-dropdown__item:hover,
.profile-menu__logout button:hover,
a.header-dropdown__item:focus-visible,
.profile-menu__logout button:focus-visible {
    outline: none;
    color: var(--navy);
    background: #f1f1f7;
}

.header-dropdown__group,
.profile-menu__logout {
    border-top: 1px solid #d7d6df;
    padding-block: 4px;
}

.profile-menu__logout {
    margin: 0;
}

.content-page {
    flex: 1;
    min-height: 580px;
    display: grid;
    grid-template-columns: minmax(300px, 0.68fr) minmax(520px, 1.32fr);
    overflow: hidden;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.content-page__aside {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(42px, 4.2vw, 64px);
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 84%, rgba(6, 163, 143, 0.45) 0 4px, transparent 5px),
        linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.content-page__aside::after {
    position: absolute;
    z-index: -1;
    width: 320px;
    height: 320px;
    right: -190px;
    bottom: -170px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.back-link {
    display: inline-block;
    margin-bottom: clamp(48px, 8vh, 82px);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.content-page__aside .eyebrow {
    color: var(--accent-light);
}

.content-page__aside h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 4.2vw, 4.2rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1;
}

.content-page__aside > p:not(.eyebrow) {
    max-width: 430px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
    line-height: 1.68;
}

.content-page__main {
    display: flex;
    align-items: center;
    padding: clamp(42px, 5vw, 72px);
    background:
        linear-gradient(rgba(28, 20, 117, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 20, 117, 0.022) 1px, transparent 1px),
        #ffffff;
    background-size: 34px 34px;
}

.page-form-wrap {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
}

.page-form-wrap--narrow {
    max-width: 460px;
}

.content-page__main h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.page-intro {
    margin: 12px 0 25px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.support-options {
    display: grid;
    gap: 0;
    margin-top: 38px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.support-options a,
.support-options article {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
}

.support-options span {
    font-size: 0.84rem;
    font-weight: 700;
}

.support-options small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
}

.application-note {
    display: grid;
    gap: 5px;
    margin-top: 35px;
    padding: 18px 0 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 3px solid var(--aqua);
    color: #ffffff;
    font-size: 0.78rem;
    line-height: 1.5;
}

.application-note span {
    color: rgba(255, 255, 255, 0.64);
}

.page-form {
    display: grid;
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 18px;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.form-field label span {
    color: var(--muted);
    font-weight: 500;
}

.form-field select,
.form-field textarea {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px 14px;
    outline: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field select {
    height: 49px;
    padding-block: 0;
}

.form-field textarea {
    min-height: 92px;
    resize: vertical;
}

.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--aqua);
    box-shadow: 0 0 0 4px rgba(6, 163, 143, 0.13);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 2px;
}

.form-actions p {
    max-width: 340px;
    margin: 0;
    color: #858491;
    font-size: 0.7rem;
    line-height: 1.5;
}

.form-actions .submit-button {
    min-width: 185px;
    gap: 28px;
}

.submit-button--wide {
    width: 100%;
    margin-top: 2px;
}

.alternate-action {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

.alternate-action a {
    color: var(--navy);
    font-weight: 650;
    text-underline-offset: 3px;
}

.private-area {
    flex: 1;
    min-height: 580px;
    padding: clamp(38px, 5vw, 70px);
    border-radius: 28px;
    background:
        linear-gradient(rgba(28, 20, 117, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 20, 117, 0.022) 1px, transparent 1px),
        #ffffff;
    background-size: 34px 34px;
    box-shadow: var(--shadow);
}

.private-area__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.private-area__heading .access__kicker {
    color: var(--aqua-dark);
}

.private-area__heading h1 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 4.8vw, 4.8rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1;
}

.private-area__heading p:last-child {
    margin: 15px 0 0;
    color: var(--muted);
}

.network-badge {
    border-left: 3px solid var(--aqua);
    padding: 7px 0 7px 12px;
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.empty-state {
    min-height: 300px;
    display: grid;
    place-items: center;
    align-content: center;
    margin-top: 42px;
    border: 1px dashed #c9c8d5;
    color: var(--muted);
    text-align: center;
}

.empty-state__mark {
    width: 54px;
    height: 54px;
    margin-bottom: 19px;
    border: 1px solid rgba(28, 20, 117, 0.2);
    border-radius: 50%;
    background: radial-gradient(circle, var(--aqua) 0 4px, transparent 5px);
}

.empty-state h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 400;
}

.empty-state p {
    max-width: 450px;
    margin: 10px 20px 0;
    font-size: 0.84rem;
    line-height: 1.6;
}

.profile-page {
    flex: 1;
    min-height: 580px;
    padding: clamp(34px, 4.5vw, 58px);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.profile-page__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.profile-page__intro .access__kicker {
    color: var(--aqua-dark);
}

.profile-page__intro h1 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.45rem, 4vw, 3.8rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1;
}

.profile-page__intro > div > p:last-child {
    max-width: 650px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.profile-page__home {
    flex: 0 0 auto;
    margin-top: 5px;
    color: var(--navy);
    font-size: 0.76rem;
    font-weight: 700;
    text-underline-offset: 4px;
}

.profile-page__home:focus-visible,
.profile-sections a:focus-visible,
.button:focus-visible,
.choice-card:has(input:focus-visible) {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.profile-page__layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 54px);
    padding-top: 36px;
}

.profile-sections {
    align-self: start;
    display: grid;
    border-top: 1px solid var(--line);
}

.profile-sections a {
    position: relative;
    border-bottom: 1px solid var(--line);
    padding: 14px 13px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.profile-sections a:hover,
.profile-sections a[aria-current="page"] {
    color: var(--navy);
    background: #f4f4f8;
}

.profile-sections a[aria-current="page"]::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--aqua);
    content: "";
}

.profile-content {
    min-width: 0;
}

.form-notice {
    margin-bottom: 22px;
    border-left: 3px solid var(--aqua);
    padding: 13px 16px;
    color: #315f59;
    background: var(--error-surface);
    font-size: 0.82rem;
    line-height: 1.5;
}

.form-notice--error {
    border-left-color: #c33c42;
    color: #7c272b;
    background: #fbefef;
}

.form-notice--warning {
    border-left-color: var(--yellow);
    color: #654d11;
    background: #fff9e8;
}

.profile-form {
    display: grid;
    gap: 28px;
}

.profile-form--narrow {
    max-width: 560px;
}

.profile-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.profile-form__wide {
    grid-column: 1 / -1;
}

.profile-form .form-field label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.profile-form .form-field label > span:not(.form-field__optional) {
    color: #b52d35;
}

.profile-form .form-field__optional {
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 500;
}

.profile-form .form-field textarea {
    min-height: 130px;
    line-height: 1.55;
}

.profile-form .form-field [aria-invalid="true"] {
    border-color: #c33c42;
    box-shadow: 0 0 0 3px rgba(195, 60, 66, 0.08);
}

.form-error {
    margin: 0;
    color: #a22930;
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.4;
}

.form-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.5;
}

.profile-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
}

.profile-form__actions--end {
    justify-content: flex-end;
}

.profile-form__actions p {
    margin: 0;
    color: var(--muted);
    font-size: 0.7rem;
}

.profile-form__actions p span {
    color: #b52d35;
}

.button {
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    padding: 0 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button--primary {
    color: #ffffff;
    background: var(--aqua-dark);
    box-shadow: 0 10px 24px rgba(0, 125, 110, 0.2);
}

.button--primary:hover {
    background: #006f62;
    box-shadow: 0 13px 28px rgba(0, 125, 110, 0.26);
    transform: translateY(-1px);
}

.password-rule {
    display: grid;
    gap: 5px;
    border-left: 3px solid var(--aqua);
    padding: 14px 17px;
    color: var(--muted);
    background: #f5faf9;
    font-size: 0.76rem;
    line-height: 1.5;
}

.password-rule strong {
    color: var(--navy);
    font-size: 0.82rem;
}

.choice-fieldset {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.choice-fieldset legend {
    margin-bottom: 9px;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 750;
}

.choice-fieldset > .form-hint {
    margin-bottom: 16px;
}

.choice-grid {
    display: grid;
    gap: 11px;
}

.choice-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
    position: relative;
    display: flex;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 15px 16px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.choice-card:hover,
.choice-card:has(input:checked) {
    border-color: rgba(6, 163, 143, 0.65);
    background: #f4faf9;
}

.choice-card:has(input:checked) {
    box-shadow: inset 3px 0 0 var(--aqua);
}

.choice-card input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--aqua-dark);
}

.choice-card span {
    display: grid;
    gap: 4px;
}

.choice-card strong {
    color: var(--navy);
    font-size: 0.79rem;
}

.choice-card small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.choice-fieldset--error .choice-grid {
    border-left: 3px solid #c33c42;
    padding-left: 10px;
}

.choice-fieldset > .form-error {
    margin-top: 9px;
}

.preference-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.preference-notes article {
    border-top: 1px solid var(--line);
    padding-top: 17px;
}

.preference-notes h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 400;
}

.preference-notes p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.6;
}

.profile-preview {
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.profile-preview .access__kicker {
    color: var(--aqua-dark);
}

.profile-preview > h2 {
    margin: 0 0 16px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 400;
}

.profile-preview__card {
    display: flex;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    background: #fafafa;
}

.profile-preview__initials {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--navy);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.profile-preview__card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 0.94rem;
}

.profile-preview__card p {
    max-width: 620px;
    margin: 9px 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.profile-preview__card .profile-preview__role {
    margin: 4px 0 10px;
    color: var(--aqua-dark);
    font-weight: 650;
}

.profile-preview__card a,
.profile-preview__card small {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 5px;
    color: var(--navy);
    font-size: 0.73rem;
    text-underline-offset: 3px;
}

@media (max-width: 1200px) {
    .site-header--member {
        flex-wrap: wrap;
        padding-block: 17px;
    }

    .member-navigation__toggle {
        display: grid;
    }

    .site-header--navigation-open .member-navigation__toggle > span:nth-of-type(2) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header--navigation-open .member-navigation__toggle > span:nth-of-type(3) {
        opacity: 0;
    }

    .site-header--navigation-open .member-navigation__toggle > span:nth-of-type(4) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .member-navigation {
        flex: 1 0 100%;
        order: 3;
        display: none;
        grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
        align-items: center;
        gap: 14px 22px;
        padding-top: 14px;
        border-top: 1px solid rgba(28, 20, 117, 0.12);
    }

    .site-header--navigation-open .member-navigation {
        display: grid;
    }

    .primary-navigation {
        grid-column: 1 / -1;
        display: flex;
        gap: 0;
        border-top: 1px solid var(--line);
        border-left: 1px solid var(--line);
    }

    .primary-navigation > * {
        min-width: 0;
        flex: 1;
    }

    .primary-navigation__link,
    .primary-navigation > .header-dropdown > summary {
        min-height: 43px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 10px 12px;
        text-align: center;
    }

    .member-navigation > .profile-menu {
        justify-self: start;
    }

    .header-dropdown__panel--more {
        right: 0;
        left: auto;
    }

    .profile-menu__panel {
        right: auto;
        left: 0;
    }

    .header-search {
        width: 100%;
        justify-self: end;
    }
}

@media (max-width: 960px) {
    .site-shell {
        width: min(100% - 32px, 760px);
    }

    .landing {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .content-page {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .private-area {
        min-height: 520px;
    }

    .profile-page {
        min-height: 520px;
    }

    .profile-page__layout {
        grid-template-columns: 1fr;
    }

    .profile-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-left: 1px solid var(--line);
    }

    .profile-sections a {
        border-right: 1px solid var(--line);
    }

    .community,
    .access {
        padding: 58px clamp(30px, 7vw, 58px);
    }

    .community__content,
    .access__inner,
    .page-form-wrap {
        max-width: none;
    }

    .community h1 {
        max-width: 560px;
    }

    .site-footer {
        padding-block: 26px;
    }

    .content-page__aside,
    .content-page__main {
        padding: 50px clamp(30px, 7vw, 58px);
    }

    .back-link {
        margin-bottom: 50px;
    }
}

@media (max-width: 620px) {
    .site-shell {
        width: min(100% - 20px, 560px);
    }

    .site-header {
        min-height: 82px;
    }

    .brand {
        gap: 8px;
    }

    .brand__seai {
        width: clamp(130px, 35vw, 170px);
    }

    .brand__divider {
        height: 24px;
    }

    .brand__product {
        font-size: 0.67rem;
        letter-spacing: 0.08em;
    }

    .help-link {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        gap: 0;
        font-size: 0;
    }

    .help-link__icon {
        width: 29px;
        height: 29px;
        font-size: 0.82rem;
    }

    .landing {
        border-radius: 18px;
    }

    .community,
    .access,
    .content-page__aside,
    .content-page__main {
        padding: 44px 24px;
    }

    .community h1 {
        font-size: clamp(2.75rem, 14vw, 4.25rem);
    }

    .community__intro {
        font-size: 0.94rem;
    }

    .benefits {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .benefits li {
        min-height: 74px;
    }

    .benefits__number {
        margin-top: 22px;
    }

    .access h2 {
        font-size: 2.65rem;
    }

    .form-field__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .site-footer nav {
        justify-content: flex-start;
        gap: 14px;
    }

    .member-navigation {
        grid-template-columns: 1fr;
    }

    .primary-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-navigation__link,
    .primary-navigation > .header-dropdown > summary {
        justify-content: flex-start;
        text-align: left;
    }

    .primary-navigation > .header-dropdown > summary {
        justify-content: space-between;
    }

    .member-navigation > .profile-menu {
        width: 100%;
        justify-self: stretch;
    }

    .member-navigation > .profile-menu > summary {
        justify-content: space-between;
        border-bottom: 1px solid var(--line);
        padding: 12px 13px;
    }

    .header-dropdown__panel {
        position: static;
        width: 100%;
        margin-top: -1px;
        border-radius: 0;
        box-shadow: none;
    }

    .header-dropdown--more .header-dropdown__panel {
        border-top: 0;
    }

    .header-search {
        max-width: none;
        flex-basis: auto;
    }

    .private-area {
        min-height: 470px;
        padding: 38px 24px;
        border-radius: 18px;
    }

    .profile-page {
        min-height: 470px;
        padding: 34px 22px;
        border-radius: 18px;
    }

    .profile-page__intro {
        flex-direction: column;
        gap: 18px;
        padding-bottom: 27px;
    }

    .profile-page__home {
        margin: 0;
    }

    .profile-page__layout {
        gap: 30px;
        padding-top: 28px;
    }

    .profile-sections {
        grid-template-columns: 1fr;
    }

    .profile-form__grid,
    .choice-grid--two,
    .preference-notes {
        grid-template-columns: 1fr;
    }

    .profile-form__wide {
        grid-column: auto;
    }

    .profile-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-form__actions--end {
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .profile-preview__card {
        align-items: flex-start;
        flex-direction: column;
    }

    .private-area__heading {
        flex-direction: column;
    }

    .empty-state {
        min-height: 260px;
        margin-top: 32px;
    }

    .content-page {
        border-radius: 18px;
    }

    .content-page__aside h1 {
        font-size: 2.8rem;
    }

    .back-link {
        margin-bottom: 42px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field--wide {
        grid-column: auto;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions .submit-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
