:root {
    --dmc-primary: #0aa75a;
    --dmc-primary-dark: #087b45;
    --dmc-blue: #0f9ed8;
    --dmc-text: #17212b;
    --dmc-muted: #66717d;
    --dmc-border: #dce7e2;
    --dmc-surface: #ffffff;
    --dmc-background: #f3f8f6;
    --dmc-danger: #d9343a;
    --dmc-radius: 20px;
    --dmc-shadow: 0 18px 45px rgb(30 74 55 / 10%);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--dmc-text);
    background:
        radial-gradient(
            circle at top,
            rgb(10 167 90 / 12%),
            transparent 360px
        ),
        var(--dmc-background);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.auth-shell {
    display: flex;
    width: min(100%, 520px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px 16px;
    flex-direction: column;
}

.auth-brand {
    padding: 10px 0 28px;
}

.auth-brand__link {
    display: flex;
    width: fit-content;
    margin: 0 auto;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.auth-brand__mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgb(10 167 90 / 24%);
    border-radius: 50%;
    background: var(--dmc-surface);
    box-shadow: 0 8px 25px rgb(10 167 90 / 12%);
    font-size: 25px;
}

.auth-brand__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.auth-brand__text strong {
    color: var(--dmc-primary-dark);
    font-size: 18px;
}

.auth-brand__text small {
    color: var(--dmc-muted);
    font-size: 12px;
}

.auth-content {
    width: 100%;
}

.auth-card {
    padding: 24px 20px;
    border: 1px solid var(--dmc-border);
    border-radius: var(--dmc-radius);
    background: var(--dmc-surface);
    box-shadow: var(--dmc-shadow);
}

.auth-card__eyebrow {
    margin: 0 0 8px;
    color: var(--dmc-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card__title {
    margin: 0;
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.16;
}

.auth-card__description {
    margin: 12px 0 0;
    color: var(--dmc-muted);
    font-size: 14px;
    line-height: 1.65;
}

.auth-footer {
    margin-top: auto;
    padding: 28px 8px 4px;
    color: var(--dmc-muted);
    text-align: center;
    font-size: 12px;
}

.auth-footer p {
    margin: 0;
}

@media (min-width: 640px) {
    .auth-shell {
        justify-content: center;
        padding: 40px 24px;
    }

    .auth-card {
        padding: 32px;
    }

    .auth-footer {
        margin-top: 28px;
    }
}
.auth-form {
    display: grid;
    margin-top: 26px;
    gap: 18px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    font-size: 14px;
    font-weight: 700;
}

.auth-field__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-field__heading a {
    color: var(--dmc-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--dmc-border);
    border-radius: 14px;
    outline: none;
    color: var(--dmc-text);
    background: #fbfdfc;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.auth-field input::placeholder {
    color: #9aa4ad;
}

.auth-field input:focus {
    border-color: var(--dmc-primary);
    background: var(--dmc-surface);
    box-shadow: 0 0 0 4px rgb(10 167 90 / 11%);
}

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--dmc-muted);
    cursor: pointer;
    font-size: 13px;
    line-height: 1.45;
}

.auth-checkbox input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--dmc-primary);
}

.auth-button {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            var(--dmc-primary),
            var(--dmc-primary-dark)
        );
    box-shadow: 0 12px 25px rgb(10 167 90 / 20%);
    cursor: pointer;
    font-weight: 800;
    transition:
        transform 160ms ease,
        opacity 160ms ease;
}

.auth-button:hover {
    transform: translateY(-1px);
}

.auth-button:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.auth-feedback {
    padding: 12px 14px;
    border: 1px solid rgb(217 52 58 / 22%);
    border-radius: 12px;
    color: var(--dmc-danger);
    background: rgb(217 52 58 / 7%);
    font-size: 13px;
    line-height: 1.5;
}

.auth-feedback.is-success {
    border-color: rgb(10 167 90 / 24%);
    color: var(--dmc-primary-dark);
    background: rgb(10 167 90 / 8%);
}

.auth-divider {
    display: flex;
    margin: 25px 0 16px;
    align-items: center;
    gap: 12px;
    color: var(--dmc-muted);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--dmc-border);
    content: "";
}

.auth-secondary-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgb(10 167 90 / 35%);
    border-radius: 14px;
    color: var(--dmc-primary-dark);
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}
.member-summary {
    display: grid;
    margin: 24px 0;
    gap: 10px;
}

.member-summary div {
    display: grid;
    padding: 13px 14px;
    border: 1px solid var(--dmc-border);
    border-radius: 13px;
    background: #f8fbfa;
    gap: 4px;
}

.member-summary dt {
    color: var(--dmc-muted);
    font-size: 12px;
}

.member-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 750;
}
.auth-actions {
    display: grid;
    gap: 10px;
}

.auth-logout-button {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgb(217 52 58 / 28%);
    border-radius: 14px;
    color: var(--dmc-danger);
    background: rgb(217 52 58 / 5%);
    cursor: pointer;
    font-weight: 800;
}

.auth-logout-button:hover {
    background: rgb(217 52 58 / 9%);
}

.auth-logout-button:disabled {
    cursor: wait;
    opacity: 0.65;
}
.auth-code-input {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.28em;
}
.profile-card {
    display: grid;
    gap: 24px;
}

.profile-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    display: grid;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #cde9dc;
    border-radius: 50%;
    background: #effaf5;
    font-size: 30px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-heading__content {
    min-width: 0;
}

.profile-heading__name {
    margin: 4px 0;
    overflow-wrap: anywhere;
    color: #10231b;
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.15;
}

.profile-heading__meta {
    margin: 0;
    color: #64746c;
    font-size: 14px;
}

.auth-field textarea {
    width: 100%;
    min-height: 128px;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid #d3e1da;
    border-radius: 16px;
    padding: 14px 16px;
    background: #fbfdfc;
    color: #10231b;
    font: inherit;
    line-height: 1.55;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.auth-field textarea::placeholder {
    color: #9aa8a1;
}

.auth-field textarea:focus {
    border-color: #08a85a;
    box-shadow: 0 0 0 3px rgb(8 168 90 / 12%);
}

.auth-field__heading span {
    color: #728078;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 420px) {
    .profile-heading {
        align-items: flex-start;
    }

    .profile-avatar {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }
}
.auth-field select {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    appearance: none;
    border: 1px solid #d3e1da;
    border-radius: 16px;
    padding: 0 46px 0 16px;
    background-color: #fbfdfc;
    background-image:
        linear-gradient(45deg, transparent 50%, #5d6c64 50%),
        linear-gradient(135deg, #5d6c64 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 22px,
        calc(100% - 15px) 22px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    color: #10231b;
    font: inherit;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.auth-field select:focus {
    border-color: #08a85a;
    box-shadow: 0 0 0 3px rgb(8 168 90 / 12%);
}
.profile-avatar-control {
    display: grid;
    flex: 0 0 82px;
    justify-items: center;
    gap: 7px;
}

.profile-avatar-button {
    cursor: pointer;
    color: #078e4d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.profile-avatar-button:hover {
    text-decoration: underline;
}

.profile-avatar-button.is-loading {
    cursor: wait;
    color: #728078;
    pointer-events: none;
}
.profile-avatar-remove-button {
    appearance: none;
    padding: 0 0 0 8px;
    border: 0;
    border-left: 1px solid #d5e1da;
    background: transparent;
    color: #d43b3b;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.profile-avatar-remove-button:hover {
    color: #b42323;
    text-decoration: underline;
}

.profile-avatar-remove-button:focus-visible {
    border-radius: 3px;
    outline: 2px solid #d43b3b;
    outline-offset: 3px;
}

.profile-avatar-remove-button:disabled {
    color: #8b9690;
    cursor: wait;
    opacity: 0.7;
    text-decoration: none;
}
.profile-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.public-member-card {
    display: grid;
    gap: 24px;
}

.public-member-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.public-member-avatar {
    display: grid;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #bce8d0;
    border-radius: 50%;
    background: #f1fbf6;
    color: #078e4d;
    font-size: 30px;
}

.public-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-member-identity {
    min-width: 0;
}

.public-member-identity .auth-card__eyebrow {
    margin: 0 0 5px;
}

.public-member-identity .auth-card__title {
    margin: 0;
    overflow-wrap: anywhere;
}

.public-member-handle {
    margin: 6px 0 0;
    color: #637269;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.public-member-location {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #d8eee2;
    border-radius: 999px;
    background: #f5fbf7;
    color: #344b3d;
    font-size: 14px;
}

.public-member-about {
    padding-top: 22px;
    border-top: 1px solid #dce8e1;
}

.public-member-about h2 {
    margin: 0 0 12px;
    color: #102119;
    font-size: 18px;
}

.public-member-about p {
    margin: 0;
    color: #45574d;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.public-member-empty {
    color: #78857e !important;
    font-style: italic;
}

.public-member-card .auth-actions {
    margin-top: 2px;
}

@media (max-width: 480px) {
    .public-member-card {
        gap: 20px;
    }

    .public-member-header {
        align-items: flex-start;
        gap: 13px;
    }

    .public-member-avatar {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
        font-size: 27px;
    }

    .public-member-identity .auth-card__title {
        font-size: 25px;
    }
}
.profile-handle-section {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid #dce8e1;
}

.profile-handle-heading h2 {
    margin: 5px 0 0;
    color: #102119;
    font-size: 23px;
}

.profile-handle-description {
    margin: 14px 0 22px;
    color: #52645a;
    font-size: 14px;
    line-height: 1.6;
}

.profile-handle-input {
    position: relative;
}

.profile-handle-input > span {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 16px;
    color: #506158;
    font-weight: 700;
    transform: translateY(-50%);
    pointer-events: none;
}

.profile-handle-input input {
    width: 100%;
    padding-left: 36px;
}

.profile-handle-help {
    display: block;
    margin-top: 7px;
    color: #69776f;
    font-size: 12px;
    line-height: 1.5;
}

.profile-handle-preview {
    padding: 12px 14px;
    border: 1px solid #d8eee2;
    border-radius: 12px;
    background: #f5fbf7;
    color: #52645a;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.profile-handle-preview strong {
    display: block;
    margin-top: 3px;
    color: #087d45;
}

.profile-handle-section .auth-secondary-link {
    display: block;
    text-align: center;
}

.profile-handle-section
.auth-secondary-link[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
}
/* =========================================================
   COMMUNITY MEMBER DIRECTORY
   ========================================================= */

body:has(.member-directory) .auth-shell {
    width: min(1120px, 100%);
    max-width: none;
}

body:has(.member-directory) .auth-content {
    width: 100%;
}

.member-directory {
    width: 100%;
    color: #10231a;
}

.member-directory__header {
    margin-bottom: 24px;
    text-align: center;
}

.member-directory__title {
    margin: 8px 0 10px;
    color: #071c12;
    font-size: clamp(30px, 6vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.member-directory__description {
    max-width: 620px;
    margin: 0 auto;
    color: #607168;
    font-size: 15px;
    line-height: 1.7;
}

.member-directory-filter {
    display: grid;
    gap: 16px;
    padding: 20px;
    margin-bottom: 22px;
    border: 1px solid #d4e6dc;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(16, 76, 48, 0.08);
}

.member-directory-filter .auth-field {
    margin: 0;
}

.member-directory-filter__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-directory-filter__actions .auth-button {
    width: 100%;
    margin: 0;
}

.member-directory-filter__reset {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    color: #087b46;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.member-directory-filter__reset:hover {
    text-decoration: underline;
}

.member-directory__summary {
    margin: 0 2px 16px;
    color: #63746b;
    font-size: 14px;
}

.member-directory__summary strong {
    color: #078d4d;
    font-size: 16px;
}

.member-directory-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.member-directory-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d7e7de;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(14, 65, 42, 0.07);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.member-directory-card:hover {
    border-color: #8bd9b0;
    box-shadow: 0 20px 45px rgba(8, 116, 65, 0.12);
    transform: translateY(-3px);
}

.member-directory-card__link {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 18px;
    color: inherit;
    text-decoration: none;
}

.member-directory-card__top {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.member-directory-card__avatar {
    display: grid;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #afe6c9;
    border-radius: 50%;
    background: #eefaf4;
    font-size: 28px;
}

.member-directory-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-directory-card__identity {
    min-width: 0;
}

.member-directory-card__identity h2 {
    overflow: hidden;
    margin: 0 0 4px;
    color: #081b12;
    font-size: 19px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-directory-card__identity p {
    overflow: hidden;
    margin: 0;
    color: #68786f;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-directory-card__province {
    align-self: flex-start;
    padding: 7px 11px;
    margin-top: 15px;
    border: 1px solid #d4ebdf;
    border-radius: 999px;
    background: #f3fbf7;
    color: #305e48;
    font-size: 12px;
    font-weight: 600;
}

.member-directory-card__bio {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 14px 0 0;
    color: #56675e;
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.member-directory-card__action {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 17px;
    color: #069552;
    font-size: 13px;
    font-weight: 800;
}

.member-directory-card:hover
.member-directory-card__action {
    color: #04733f;
}

.member-directory-empty {
    padding: 42px 22px;
    border: 1px dashed #b9dcca;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.member-directory-empty > span {
    display: block;
    margin-bottom: 12px;
    font-size: 36px;
}

.member-directory-empty h2 {
    margin: 0 0 8px;
    color: #10251b;
    font-size: 20px;
}

.member-directory-empty p {
    max-width: 440px;
    margin: 0 auto;
    color: #687970;
    font-size: 14px;
    line-height: 1.65;
}

.member-directory-pagination {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
}

.member-directory-pagination__button,
.member-directory-pagination__status {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 750;
}

.member-directory-pagination__button {
    border: 1px solid #91dcb4;
    background: #ffffff;
    color: #078347;
    text-decoration: none;
}

.member-directory-pagination__button:not(.is-disabled):hover {
    border-color: #079653;
    background: #effaf4;
}

.member-directory-pagination__button.is-disabled {
    cursor: not-allowed;
    border-color: #dde7e1;
    color: #a0ada6;
}

.member-directory-pagination__status {
    color: #5e7066;
}

.member-directory__back {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    border: 1px solid #a3dfbf;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.78);
    color: #087e47;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.member-directory__back:hover {
    background: #ffffff;
}

@media (min-width: 640px) {
    .member-directory-pagination {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .member-directory-pagination__button:last-child {
        grid-column: 3;
    }
}

@media (min-width: 720px) {
    .member-directory-filter {
        grid-template-columns:
            minmax(0, 1.5fr)
            minmax(190px, 0.8fr);
        align-items: end;
        padding: 22px;
    }

    .member-directory-filter__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
    }

    .member-directory-filter__actions .auth-button {
        max-width: 240px;
    }

    .member-directory-filter__reset {
        padding: 0 12px;
    }

    .member-directory-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
        gap: 18px;
    }
}

@media (min-width: 1000px) {
    .member-directory-filter {
        grid-template-columns:
            minmax(0, 1.4fr)
            minmax(210px, 0.75fr)
            auto;
    }

    .member-directory-filter__actions {
        grid-column: auto;
        flex-direction: row;
    }

    .member-directory-filter__actions .auth-button {
        min-width: 150px;
    }

    .member-directory-grid {
        grid-template-columns: repeat(
            3,
            minmax(0, 1fr)
        );
    }
}
/* =========================================================
   PUBLIC MEMBER FOLLOW
   ========================================================= */

.public-member-follow-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 20px 0;
}

.public-member-follow-stats div {
    padding: 14px 10px;
    border: 1px solid #d7e9df;
    border-radius: 15px;
    background: #f5fbf8;
    text-align: center;
}

.public-member-follow-stats dt {
    margin: 0;
    color: #087f48;
    font-size: 21px;
    font-weight: 850;
    line-height: 1.1;
}

.public-member-follow-stats dd {
    margin: 6px 0 0;
    color: #64756c;
    font-size: 12px;
    font-weight: 650;
}

.public-member-follow-action {
    margin: 16px 0 24px;
}

.public-member-follow-action .auth-button {
    width: 100%;
    margin: 0;
}

.public-member-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.public-member-follow-button.is-following {
    border: 1px solid #8dd8b1;
    background: #effaf4;
    color: #087d47;
    box-shadow: none;
}

.public-member-follow-button.is-following:hover {
    border-color: #ef9a9a;
    background: #fff4f4;
    color: #c63131;
}

.public-member-follow-button.is-loading {
    cursor: wait;
    opacity: 0.72;
}

.public-member-follow-button:disabled {
    cursor: wait;
}
.connection-directory {
    display: grid;
    gap: 24px;
}

.connection-directory__header {
    display: grid;
    gap: 8px;
}

.connection-directory__owner {
    color: #078e4d;
    font-weight: 700;
    text-decoration: none;
}

.connection-directory__owner:hover {
    text-decoration: underline;
}

.connection-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 5px;
    border: 1px solid #cfe8dc;
    border-radius: 16px;
    background: #f3faf6;
}

.connection-tabs__item {
    padding: 12px 8px;
    border-radius: 12px;
    color: #526158;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.connection-tabs__item.is-active {
    color: #ffffff;
    background: #079653;
    box-shadow: 0 8px 20px rgb(7 150 83 / 18%);
}

.connection-list {
    display: grid;
    gap: 12px;
}

.connection-member {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d7e9df;
    border-radius: 18px;
    background: #ffffff;
}

.connection-member__main {
    display: flex;
    gap: 13px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.connection-member__avatar {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #aee3c8;
    border-radius: 50%;
    background: #f1faf5;
    font-size: 24px;
}

.connection-member__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.connection-member__identity {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.connection-member__identity strong {
    overflow: hidden;
    font-size: 17px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connection-member__identity small {
    overflow: hidden;
    color: #637168;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connection-member__province {
    width: fit-content;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid #cde9da;
    border-radius: 999px;
    color: #344b3e;
    background: #f3faf6;
    font-size: 12px;
}

.connection-member__bio {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #56655d;
    font-size: 13px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.connection-member__link {
    width: fit-content;
    color: #078e4d;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.connection-member__link:hover {
    text-decoration: underline;
}

.connection-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 32px 18px;
    border: 1px dashed #b9ddca;
    border-radius: 18px;
    color: #65746b;
    background: #f7fbf9;
    text-align: center;
}

.connection-empty__icon {
    font-size: 32px;
}

.connection-empty h2,
.connection-empty p {
    margin: 0;
}

.connection-empty h2 {
    color: #16251d;
    font-size: 17px;
}

.connection-empty p {
    font-size: 13px;
    line-height: 1.6;
}

.connection-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.connection-pagination a {
    color: #078e4d;
    font-weight: 800;
    text-decoration: none;
}

.connection-pagination a:last-child {
    text-align: right;
}

.connection-pagination > span {
    color: #69776f;
    text-align: center;
}
.public-member-follow-stats a {
    display: grid;
    min-width: 0;
    gap: 5px;
    padding: 17px 10px;
    border: 1px solid #cfe8dc;
    border-radius: 16px;
    color: inherit;
    background: #f5fbf8;
    text-align: center;
    text-decoration: none;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.public-member-follow-stats a:hover {
    border-color: #79d6a6;
    background: #effaf4;
    box-shadow: 0 8px 20px rgb(7 142 77 / 10%);
    transform: translateY(-1px);
}

.public-member-follow-stats a:focus-visible {
    outline: 3px solid rgb(7 150 83 / 22%);
    outline-offset: 2px;
}

.public-member-follow-stats strong {
    color: #078e4d;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
}

.public-member-follow-stats span {
    color: #526158;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.notification-page {
    display: grid;
    gap: 22px;
}

.notification-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.notification-page__header > div {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.notification-page__badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: #e9364f;
    font-size: 11px;
    font-weight: 800;
}

.notification-list {
    display: grid;
    gap: 10px;
}

.notification-item {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #d9e9e0;
    border-radius: 17px;
    color: inherit;
    background: #ffffff;
    text-decoration: none;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.notification-item:hover {
    border-color: #85d9ae;
    transform: translateY(-1px);
}

.notification-item.is-unread {
    border-color: #8bddb3;
    background: #f0fbf5;
}

.notification-item__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: #e7f8ef;
    font-size: 20px;
}

.notification-item__content {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.notification-item__content strong {
    color: #16251d;
    font-size: 14px;
    line-height: 1.5;
}

.notification-item__content small {
    color: #718078;
    font-size: 11px;
}

.notification-item__unread {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e9364f;
}

.notification-item__arrow {
    color: #078e4d;
    font-size: 17px;
    font-weight: 800;
}

.notification-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 36px 18px;
    border: 1px dashed #b9ddca;
    border-radius: 18px;
    color: #65746b;
    background: #f7fbf9;
    text-align: center;
}

.notification-empty__icon {
    font-size: 34px;
}

.notification-empty h2,
.notification-empty p {
    margin: 0;
}

.notification-empty h2 {
    color: #16251d;
    font-size: 17px;
}

.notification-empty p {
    max-width: 290px;
    font-size: 13px;
    line-height: 1.6;
}

.notification-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.notification-pagination a {
    color: #078e4d;
    font-weight: 800;
    text-decoration: none;
}

.notification-pagination a:last-child {
    text-align: right;
}

.notification-pagination > span {
    color: #69776f;
    text-align: center;
}

.notification-item.is-loading {
    cursor: wait;
    opacity: 0.72;
    pointer-events: none;
}

.notification-page__unread-actions {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: 7px;
}

.notification-page__read-all {
    padding: 0;
    border: 0;
    color: #078e4d;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
}

.notification-page__read-all:hover {
    text-decoration: underline;
}

.notification-page__read-all.is-loading {
    color: #718078;
    cursor: wait;
}

.community-notification-link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d5e8de;
    border-radius: 17px;
    color: inherit;
    background: #f7fbf9;
    text-decoration: none;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.community-notification-link:hover {
    border-color: #83d9ad;
    transform: translateY(-1px);
}

.community-notification-link.has-unread {
    border-color: #79d6a6;
    background: #effaf4;
    box-shadow: 0 8px 22px rgb(7 150 83 / 10%);
}

.community-notification-link__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: #e2f7ec;
    font-size: 19px;
}

.community-notification-link__content {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.community-notification-link__content strong {
    color: #16251d;
    font-size: 14px;
}

.community-notification-link__content small {
    color: #68766e;
    font-size: 11px;
}

.community-notification-link__badge {
    display: grid;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #e9364f;
    font-size: 11px;
    font-weight: 800;
}

.community-notification-link__arrow {
    color: #078e4d;
    font-size: 17px;
    font-weight: 800;
}

.community-notification-link__badge
    + .community-notification-link__arrow {
    margin-left: -4px;
}

/* DMC 9.5B - public member story */
.public-member-story {
    display: grid;
    gap: 18px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #dce9e2;
}
.public-member-story__heading,
.public-member-story__section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.public-member-story__heading h2,
.public-member-story__section-heading h3 {
    margin: 4px 0 0;
    color: #163b2a;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.22;
}
.public-member-story__heading h2 { font-size: clamp(22px, 5.5vw, 28px); }
.public-member-story__heading > span { font-size: 28px; }
.public-member-story__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.public-member-story__stats div {
    display: grid;
    gap: 3px;
    padding: 14px;
    border: 1px solid #d4e7dc;
    border-radius: 15px;
    background: linear-gradient(145deg, #f8fffb, #edf9f2);
}
.public-member-story__stats strong { color: #07894f; font-size: 24px; line-height: 1; }
.public-member-story__stats span { color: #62766b; font-size: 12px; }
.public-member-story__section { display: grid; gap: 10px; min-width: 0; }
.public-member-story__section-heading h3 { font-size: 17px; }
.public-member-story__section-heading a { color: #07894f; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.public-member-story__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 82%);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding: 2px 2px 7px;
}
.public-member-post-card,
.public-member-video-card {
    scroll-snap-align: start;
    display: grid;
    align-content: start;
    gap: 7px;
    overflow: hidden;
    min-width: 0;
    padding: 11px;
    border: 1px solid #d9e8e0;
    border-radius: 15px;
    background: #fff;
    color: #173b2b;
    text-decoration: none;
    box-shadow: 0 7px 20px rgb(20 68 43 / 6%);
}
.public-member-post-card:hover,
.public-member-video-card:hover { border-color: #83cda7; transform: translateY(-1px); }
.public-member-post-card > img,
.public-member-video-card__media {
    display: grid;
    width: 100%;
    height: 118px;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: #eaf6ef;
}
.public-member-post-card > img,
.public-member-video-card__media img { width: 100%; height: 118px; object-fit: cover; }
.public-member-video-card__media > span { color: #079455; font-size: 30px; }
.public-member-post-card__type { width: fit-content; padding: 4px 7px; border-radius: 999px; background: #eaf8f0; color: #07894f; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.public-member-post-card strong,
.public-member-video-card strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.42; }
.public-member-video-card > span:not(.public-member-video-card__media) { color: #5f7368; font-size: 11px; }
.public-member-post-card small,
.public-member-video-card small { color: #718178; font-size: 11px; line-height: 1.35; }
.public-member-story__empty { display: grid; justify-items: center; gap: 6px; padding: 24px 16px; border: 1px dashed #bdd9ca; border-radius: 15px; background: #f8fcfa; text-align: center; }
.public-member-story__empty > span { font-size: 27px; }
.public-member-story__empty strong { color: #234536; }
.public-member-story__empty p { margin: 0; color: #6c7d74; font-size: 12px; line-height: 1.5; }
@media (min-width: 720px) {
    .public-member-story__rail { grid-auto-columns: minmax(230px, 46%); }
}

/* DMC 9.6A - shared public desktop shell */
@media (min-width: 1024px) {
    body:has(.home-v1) .auth-shell,
    body:has(.public-article-page) .auth-shell,
    body:has(.public-video-page) .auth-shell,
    body:has(.public-product-page) .auth-shell {
        width: min(1180px, calc(100% - 48px));
        max-width: none;
        padding: 28px 0 116px;
        justify-content: flex-start;
    }

    body:has(.home-v1) .member-access-header,
    body:has(.public-article-page) .member-access-header,
    body:has(.public-video-page) .member-access-header,
    body:has(.public-product-page) .member-access-header {
        width: 100%;
        margin-bottom: 22px;
        padding: 10px 6px 20px;
        border-bottom: 1px solid rgb(14 111 66 / 13%);
    }

    body:has(.home-v1) .auth-content,
    body:has(.public-article-page) .auth-content,
    body:has(.public-video-page) .auth-content,
    body:has(.public-product-page) .auth-content {
        width: 100%;
        min-width: 0;
    }

    body:has(.home-v1) .auth-footer,
    body:has(.public-article-page) .auth-footer,
    body:has(.public-video-page) .auth-footer,
    body:has(.public-product-page) .auth-footer {
        width: 100%;
        margin-top: 34px;
        padding-top: 22px;
        border-top: 1px solid rgb(14 111 66 / 11%);
    }
}
/* End DMC 9.6A */


/* DMC 9.16C - brand image mark */
.auth-brand__mark { overflow: hidden; background: #fff; }
.auth-brand__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* End DMC 9.16C */

/* DMC 9.21 - contextual guidance and active-email notice. */
.auth-email-notice,
.context-guide-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(0, 167, 99, .28);
    border-radius: 16px;
    background: linear-gradient(135deg, #effcf6, #fffdf5);
    color: #173f32;
}

.auth-email-notice {
    margin: -2px 0 2px;
    padding: 13px 14px;
}

.auth-email-notice__icon {
    display: grid;
    flex: 0 0 34px;
    min-height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #dff8ec;
}

.auth-email-notice strong,
.context-guide-link strong { display: block; }
.auth-email-notice p { margin: 4px 0 0; font-size: .86rem; line-height: 1.5; color: #45645a; }
.auth-registration-agreement a { color: #007e4c; font-weight: 800; }

.context-guide-link {
    width: 100%;
    margin: 14px 0 18px;
    padding: 13px 15px;
    box-sizing: border-box;
}

.context-guide-link > span { font-size: 1.35rem; }
.context-guide-link div { min-width: 0; flex: 1; }
.context-guide-link small { display: block; margin-top: 3px; line-height: 1.4; color: #557066; }
.context-guide-link a { align-self: center; color: #007e4c; font-weight: 800; white-space: nowrap; }

@media (max-width: 560px) {
    .context-guide-link { flex-wrap: wrap; }
    .context-guide-link a { width: 100%; padding-left: 37px; }
}